X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fshash.h;h=c2d13b157f3f2870b0844fa65620b9599e4c045e;hb=dc268c788e287da920a90e287339d3eac1f05a5e;hp=5794a20f4d3b0659e3bf7533fff228e734327459;hpb=fd30311c8701d297f31f6dd92c628d1d9112911e;p=openvswitch diff --git a/lib/shash.h b/lib/shash.h index 5794a20f..c2d13b15 100644 --- a/lib/shash.h +++ b/lib/shash.h @@ -42,10 +42,13 @@ void shash_init(struct shash *); void shash_destroy(struct shash *); void shash_clear(struct shash *); bool shash_is_empty(const struct shash *); +size_t shash_count(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 *); +void *shash_find_and_delete(struct shash *, const char *); struct shash_node *shash_first(const struct shash *); +const struct shash_node **shash_sort(const struct shash *); #endif /* shash.h */