]> git.ozlabs.org Git - petitboot/blobdiff - lib/pb-protocol/pb-protocol.h
Add protocol object compare routines
[petitboot] / lib / pb-protocol / pb-protocol.h
index 98f290662be0e1a71324572b1a36658c30b81871..fa5dd86a1ca80ee8824507bbad822e676a9e7b35 100644 (file)
@@ -48,6 +48,10 @@ struct boot_option {
 struct boot_option *boot_option_copy(void* ctx, const struct boot_option *opt);
 
 int pb_protocol_device_len(const struct device *dev);
+int pb_protocol_device_cmp(const struct device *a, const struct device *b);
+
+int pb_protocol_boot_option_cmp(const struct boot_option *a,
+       const struct boot_option *b);
 
 int pb_protocol_serialise_string(char *pos, const char *str);
 char *pb_protocol_deserialise_string(void *ctx,