summaryrefslogtreecommitdiffstats
path: root/lib/pb-protocol/pb-protocol.h
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-02-07 18:35:52 +0000
committerJeremy Kerr <jk@ozlabs.org>2009-02-21 11:06:22 +1100
commit08b9b747db92ce682e094ef86f48321d29fc44d6 (patch)
tree93e6a063e42c2d65ac54e4a79206ac14f15156c0 /lib/pb-protocol/pb-protocol.h
parent8cb7063b23c1ec7a712270e6e264a3b2e0ab80a2 (diff)
downloadtalos-petitboot-08b9b747db92ce682e094ef86f48321d29fc44d6.tar.gz
talos-petitboot-08b9b747db92ce682e094ef86f48321d29fc44d6.zip
Add protocol object compare routines
Add routines pb_protocol_device_cmp() and pb_protocol_boot_option_cmp() to hide the implemention details of the device. The implementation of the id can be changed without effecting the users of it. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib/pb-protocol/pb-protocol.h')
-rw-r--r--lib/pb-protocol/pb-protocol.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pb-protocol/pb-protocol.h b/lib/pb-protocol/pb-protocol.h
index 98f2906..fa5dd86 100644
--- a/lib/pb-protocol/pb-protocol.h
+++ b/lib/pb-protocol/pb-protocol.h
@@ -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,
OpenPOWER on IntegriCloud