diff options
| author | Franklin Wei <git@fwei.tk> | 2016-03-26 20:47:42 -0400 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2016-03-26 20:47:42 -0400 |
| commit | f6ced470369099e3d837e661b59f9dc539ebde70 (patch) | |
| tree | 19b10984b9670f21a421f61d11a29fb83b51db6f /src/hash.h | |
| parent | eb8b5907df2cf3c4b593197d40d10e83e6943ee3 (diff) | |
| download | netcosm-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.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); |