mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
shash: New function shash_is_empty().
This commit is contained in:
@@ -51,6 +51,12 @@ shash_clear(struct shash *sh)
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
shash_is_empty(const struct shash *shash)
|
||||
{
|
||||
return hmap_is_empty(&shash->map);
|
||||
}
|
||||
|
||||
/* It is the caller's responsible to avoid duplicate names, if that is
|
||||
* desirable. */
|
||||
void
|
||||
|
Reference in New Issue
Block a user