diff options
author | Kyle Mestery <kmestery@cisco.com> | 2013-02-14 09:37:27 -0500 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-02-14 09:35:39 -0800 |
commit | bcac5b7c1de75a009d27014d3d9e38b1ca9ebc72 (patch) | |
tree | fd33bd9a67437878f6c7d7b61b9f8c2dff041172 /lib/simap.h | |
parent | b2c9b5855bc84811a993a6c99f92593a08cd7536 (diff) |
vxlan: Add utility functions to the simap data structure.
Add utility functions to the simap structure. These are
used by future patches in this seris. The functions added are.
Signed-off-by: Kyle Mestery <kmestery@cisco.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/simap.h')
-rw-r--r-- | lib/simap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/simap.h b/lib/simap.h index e7bf80b7..3e247fc9 100644 --- a/lib/simap.h +++ b/lib/simap.h @@ -58,8 +58,10 @@ unsigned int simap_get(const struct simap *, const char *); struct simap_node *simap_find(const struct simap *, const char *); struct simap_node *simap_find_len(const struct simap *, const char *, size_t len); +bool simap_contains(const struct simap *, const char *); void simap_delete(struct simap *, struct simap_node *); +bool simap_find_and_delete(struct simap *, const char *); const struct simap_node **simap_sort(const struct simap *); |