2
0
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:
Ben Pfaff
2009-06-24 10:21:25 -07:00
parent 98742ab865
commit 732dcb37a8
2 changed files with 7 additions and 0 deletions

View File

@@ -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