aboutsummaryrefslogtreecommitdiff
path: root/dict.h
diff options
context:
space:
mode:
Diffstat (limited to 'dict.h')
-rw-r--r--dict.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/dict.h b/dict.h
index d84ea80..6727a26 100644
--- a/dict.h
+++ b/dict.h
@@ -218,4 +218,10 @@ size_t dict_hash_string(const char **key);
/* An equality predicate callback for strings. */
int dict_eq_string(const char **key1, const char **key2);
+/* A dtor which calls 'free' on keys in a table. */
+void dict_dtor_string(const char **key, void *data);
+
+/* A cloner that calls 'strdup' on keys in a table. */
+int dict_clone_string(const char **tgt, const char **src, void *data);
+
#endif /* _DICT_H_ */