aboutsummaryrefslogtreecommitdiff
path: root/lib/shash.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-01-28 14:21:31 -0800
committerBen Pfaff <blp@nicira.com>2010-01-28 16:06:31 -0800
commitbaa8f41b24179704944f278b5ae00231b1ca8246 (patch)
treed41f3387d716a875af176f6019992e41e326a53c /lib/shash.c
parent63e60b866ffee6895e1772da2c48591ab2767aa7 (diff)
New functions hmap_moved(), shash_moved().
To be used in ovs-vsctl in an upcoming commit.
Diffstat (limited to 'lib/shash.c')
-rw-r--r--lib/shash.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/shash.c b/lib/shash.c
index 53abbe43..a5bfecf0 100644
--- a/lib/shash.c
+++ b/lib/shash.c
@@ -47,6 +47,12 @@ shash_swap(struct shash *a, struct shash *b)
}
void
+shash_moved(struct shash *sh)
+{
+ hmap_moved(&sh->map);
+}
+
+void
shash_clear(struct shash *sh)
{
struct shash_node *node, *next;