/* Interface to hashtable implementations.
- Copyright (C) 2006-2021 Free Software Foundation, Inc.
+ Copyright (C) 2006-2023 Free Software Foundation, Inc.
This file is part of libctf.
&& (key_a->ctii_type == key_b->ctii_type);
}
-/* Hash and eq functions for the dynset. Most of these can just use the
- underlying hashtab functions directly. */
-
-int
-ctf_dynset_eq_string (const void *a, const void *b)
-{
- return !strcmp((const char *) a, (const char *) b);
-}
-
/* The dynhash, used for hashes whose size is not known at creation time. */
/* Free a single ctf_helem with arbitrary key/value functions. */
return NULL;
}
+size_t
+ctf_dynset_elements (ctf_dynset_t *hp)
+{
+ return htab_elements ((struct htab *) hp);
+}
+
/* TRUE/FALSE return. */
int
ctf_dynset_exists (ctf_dynset_t *hp, const void *key, const void **orig_key)