X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fshash.h;h=eab0af45ad13733592bcd79821e9fd563817d6c6;hb=933df876ffa272d9d5768edf7fc5465261888ad2;hp=f97e6616d09c70087122841e775c4f742a108024;hpb=a90b56b7708a17e8bd689d4a3558348f04cb8dcb;p=openvswitch diff --git a/lib/shash.h b/lib/shash.h index f97e6616..eab0af45 100644 --- a/lib/shash.h +++ b/lib/shash.h @@ -55,6 +55,7 @@ struct shash_node *shash_add(struct shash *, const char *, const void *); struct shash_node *shash_add_nocopy(struct shash *, char *, const void *); bool shash_add_once(struct shash *, const char *, const void *); void shash_add_assert(struct shash *, const char *, const void *); +void *shash_replace(struct shash *, const char *, const void *data); 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 *); @@ -63,6 +64,7 @@ void *shash_find_and_delete_assert(struct shash *, const char *); struct shash_node *shash_first(const struct shash *); const struct shash_node **shash_sort(const struct shash *); bool shash_equal_keys(const struct shash *, const struct shash *); +struct shash_node *shash_random_node(struct shash *); #ifdef __cplusplus }