X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=include%2Fht.h;fp=include%2Fht.h;h=0000000000000000000000000000000000000000;hp=49198bb3efc1d829081fd908e9cdcb9eb0818bc3;hb=177b35371e1918cb8d00211824acccca47688a4b;hpb=598ef6123ccf44d64347ab4c871c6baae7d29bc4 diff --git a/include/ht.h b/include/ht.h deleted file mode 100644 index 49198bb..0000000 --- a/include/ht.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Written by Josh Dybnis and released to the public domain, as explained at - * http://creativecommons.org/licenses/publicdomain - */ -#ifndef HT_H -#define HT_H - -#include "struct.h" - -#define HT_EXPECT_NOT_EXISTS ( 0) -#define HT_EXPECT_EXISTS (-1) -#define HT_EXPECT_WHATEVER (-2) - -typedef struct hash_table_i *hash_table_t; - -hash_table_t *ht_alloc (void); -void ht_free (hash_table_t *ht); -uint64_t ht_get (hash_table_t *ht, const char *key, uint32_t len); -uint64_t ht_compare_and_set (hash_table_t *ht, const char *key, uint32_t key_len, uint64_t expected_val, uint64_t val); -uint64_t ht_remove (hash_table_t *ht, const char *key, uint32_t len); -uint64_t ht_count (hash_table_t *ht); - -#endif//HT_H