shash: Make shash_add() return the new node.
[openvswitch] / lib / shash.h
index 9201bb5d92e0d3c01d65607af98ae33e50cd4c7d..72d8302007462fb74f1d10066e04e77406182b3e 100644 (file)
@@ -34,9 +34,11 @@ struct shash {
 void shash_init(struct shash *);
 void shash_destroy(struct shash *);
 void shash_clear(struct shash *);
-void shash_add(struct shash *, const char *, void *);
+bool shash_is_empty(const struct shash *);
+struct shash_node *shash_add(struct shash *, const char *, void *);
 void shash_delete(struct shash *, struct shash_node *);
 struct shash_node *shash_find(const struct shash *, const char *);
 void *shash_find_data(const struct shash *, const char *);
+struct shash_node *shash_first(const struct shash *);
 
 #endif /* shash.h */