shash: Make shash_add() return the new node.
[openvswitch] / lib / shash.h
index bcac41b5760d2bac34f856dc2598a5e21805232f..72d8302007462fb74f1d10066e04e77406182b3e 100644 (file)
@@ -35,7 +35,7 @@ void shash_init(struct shash *);
 void shash_destroy(struct shash *);
 void shash_clear(struct shash *);
 bool shash_is_empty(const struct shash *);
-void shash_add(struct shash *, const char *, void *);
+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 *);