diff options
Diffstat (limited to 'libctf/ctf-hash.c')
-rw-r--r-- | libctf/ctf-hash.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libctf/ctf-hash.c b/libctf/ctf-hash.c index 77b8478..a52f96d 100644 --- a/libctf/ctf-hash.c +++ b/libctf/ctf-hash.c @@ -651,6 +651,12 @@ ctf_dynset_remove (ctf_dynset_t *hp, const void *key) htab_remove_elt ((struct htab *) hp, key_to_internal (key)); } +size_t +ctf_dynset_elements (ctf_dynset_t *hp) +{ + return htab_elements ((struct htab *) hp); +} + void ctf_dynset_destroy (ctf_dynset_t *hp) { |