/usr/include/libr/sdb/ht.h is in libradare2-dev 0.9.6-3.1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #include "ls.h"
#include "types.h"
/** ht **/
typedef struct ht_entry_t {
SdbListIter *iter;
ut32 hash;
void *data;
} SdbHashEntry;
typedef struct ht_t {
SdbList *list;
SdbHashEntry *table;
ut32 size;
ut32 rehash;
ut32 max_entries;
ut32 size_index;
ut32 entries;
ut32 deleted_entries;
} SdbHash;
SdbHash* ht_new(void);
void ht_free(SdbHash *ht);
//void ht_set(SdbHash *ht, ut32 hash, void *data);
SdbHashEntry* ht_search(SdbHash *ht, ut32 hash);
void *ht_lookup(SdbHash *ht, ut32 hash);
void ht_set(SdbHash *ht, ut32 hash, void *data);
int ht_insert(SdbHash *ht, ut32 hash, void *data, SdbListIter *iter);
void ht_remove(SdbHash *ht, ut32 hash);
void ht_remove_entry(SdbHash *ht, SdbHashEntry *entry);
|