2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

shash: New function shash_count().

This commit is contained in:
Ben Pfaff
2009-11-04 14:56:03 -08:00
parent 837e80977c
commit c01da22964
2 changed files with 7 additions and 0 deletions

View File

@@ -58,6 +58,12 @@ shash_is_empty(const struct shash *shash)
return hmap_is_empty(&shash->map);
}
size_t
shash_count(const struct shash *shash)
{
return hmap_count(&shash->map);
}
/* It is the caller's responsibility to avoid duplicate names, if that is
* desirable. */
struct shash_node *