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:
@@ -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 *
|
||||
|
Reference in New Issue
Block a user