X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=include%2Fht.h;h=965986e781b60f8adc76260c416b7de61ad3a8a9;hp=b396ce86170b619656d32957c185d301badc8e56;hb=9ec5405d406696c6cbdb7a47ade7fccc736a8b53;hpb=efd90a1b8a9d3bbb1bdd8e6ae41b3462e7193fb2 diff --git a/include/ht.h b/include/ht.h index b396ce8..965986e 100644 --- a/include/ht.h +++ b/include/ht.h @@ -17,9 +17,9 @@ typedef struct hash_table_i *hash_table_t; hash_table_t *ht_alloc (void); void ht_free (hash_table_t *ht); -int64_t ht_get (hash_table_t *ht, const char *key, uint32_t len); -int64_t ht_compare_and_set (hash_table_t *ht, const char *key, uint32_t key_len, int64_t expected_val, int64_t val); -int64_t ht_remove (hash_table_t *ht, const char *key, uint32_t len); +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