summaryrefslogtreecommitdiffstats
path: root/lib/pb-protocol/pb-protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pb-protocol/pb-protocol.c')
-rw-r--r--lib/pb-protocol/pb-protocol.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/pb-protocol/pb-protocol.c b/lib/pb-protocol/pb-protocol.c
index 4daeb5a..69c9bfe 100644
--- a/lib/pb-protocol/pb-protocol.c
+++ b/lib/pb-protocol/pb-protocol.c
@@ -58,6 +58,17 @@ struct boot_option *boot_option_copy(void* ctx, const struct boot_option *opt)
return new;
}
+int pb_protocol_device_cmp(const struct device *a, const struct device *b)
+{
+ return !strcmp(a->id, b->id);
+}
+
+int pb_protocol_boot_option_cmp(const struct boot_option *a,
+ const struct boot_option *b)
+{
+ return !strcmp(a->id, b->id);
+}
+
/* Write a string into the buffer, starting at pos.
*
* Returns the total length used for the write, including length header.
OpenPOWER on IntegriCloud