summaryrefslogtreecommitdiff
path: root/lib/smap.h
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2015-07-31 13:14:40 -0400
committerBen Pfaff <blp@nicira.com>2015-07-31 15:26:31 -0700
commit7962b7f0168ef7d041ff820d66553b30b15b106f (patch)
treef8aa858c26cf8c8cda6b61e32b66398615c7e67e /lib/smap.h
parent29bae5412ea3c6a1e20d79afd25c11b968dffa05 (diff)
downloadopenvswitch-7962b7f0168ef7d041ff820d66553b30b15b106f.tar.gz
smap: Add smap_equal().
Add a method to determine of two smaps are equal (have the exact same set of key-value pairs). Suggested-by: Ben Pfaff <blp@nicira.com> Signed-off-by: Russell Bryant <rbryant@redhat.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/smap.h')
-rw-r--r--lib/smap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/smap.h b/lib/smap.h
index caf3efcac..cac387899 100644
--- a/lib/smap.h
+++ b/lib/smap.h
@@ -67,4 +67,6 @@ const struct smap_node **smap_sort(const struct smap *);
void smap_from_json(struct smap *, const struct json *);
struct json *smap_to_json(const struct smap *);
+bool smap_equal(const struct smap *, const struct smap *);
+
#endif /* smap.h */