X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fhash.h;h=30a15fb270ca0e5bc8eaedee620bc3abf9cf0cf0;hp=c26e7acd66ee95e7980f89f73f88f0e443a1e744;hb=af9ee7ff003fb448b783ccf39347907adc239cb2;hpb=6b6a025488f289f749498a7e6cc1994be19f53e8 diff --git a/src/hash.h b/src/hash.h index c26e7acd..30a15fb2 100644 --- a/src/hash.h +++ b/src/hash.h @@ -31,6 +31,7 @@ extern hash_t *hash_alloc(size_t n, size_t size) __attribute__ ((__malloc__)); extern void hash_free(hash_t *); extern void hash_insert(hash_t *, const void *key, const void *value); +extern void hash_delete(hash_t *, const void *key); extern void *hash_search(const hash_t *, const void *key); extern void *hash_search_or_insert(hash_t *, const void *key, const void *value); @@ -38,4 +39,4 @@ extern void *hash_search_or_insert(hash_t *, const void *key, const void *value) extern void hash_clear(hash_t *); extern void hash_resize(hash_t *, size_t n); -#endif /* __TINC_HASH_H__ */ +#endif /* __TINC_HASH_H__ */