aboutsummaryrefslogtreecommitdiff
path: root/src/hash.h
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2016-03-26 20:47:42 -0400
committerFranklin Wei <git@fwei.tk>2016-03-26 20:47:42 -0400
commitf6ced470369099e3d837e661b59f9dc539ebde70 (patch)
tree19b10984b9670f21a421f61d11a29fb83b51db6f /src/hash.h
parenteb8b5907df2cf3c4b593197d40d10e83e6943ee3 (diff)
downloadnetcosm-f6ced470369099e3d837e661b59f9dc539ebde70.zip
netcosm-f6ced470369099e3d837e661b59f9dc539ebde70.tar.gz
netcosm-f6ced470369099e3d837e661b59f9dc539ebde70.tar.bz2
netcosm-f6ced470369099e3d837e661b59f9dc539ebde70.tar.xz
fix drop bug
Diffstat (limited to 'src/hash.h')
-rw-r--r--src/hash.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/hash.h b/src/hash.h
index 9ea3627..5a8b965 100644
--- a/src/hash.h
+++ b/src/hash.h
@@ -102,3 +102,12 @@ void *hash_dup(void*);
/* sets the callback for when duplicating a data node */
void hash_setdupdata_cb(void*, void *(*cb)(void*));
+
+struct hash_export_node {
+ unsigned hash;
+ void *last, *node, *next;
+};
+
+struct hash_export_node hash_get_internal_node(void *ptr, const void *key);
+
+void hash_del_internal_node(void *ptr, const struct hash_export_node *node);