diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-06-29 10:48:37 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-06-29 10:48:37 +0200 |
commit | ac55568b38bd1ebac80cbd8d511213a56593b9ab (patch) | |
tree | b942b3a08d14363ec5d9919fb8b0ebb9ddf12b85 /src/lib/third_party/include/ht_hash.h | |
parent | f19937c8c9fd4e1c21988f523d9e78b954f6fcc8 (diff) |
Removed ht_hash as it is not used anymore.remove/ht_hash
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/third_party/include/ht_hash.h')
-rw-r--r-- | src/lib/third_party/include/ht_hash.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/lib/third_party/include/ht_hash.h b/src/lib/third_party/include/ht_hash.h deleted file mode 100644 index 2251706e4..000000000 --- a/src/lib/third_party/include/ht_hash.h +++ /dev/null @@ -1,30 +0,0 @@ -/* Based on https://gist.github.com/tonious/1377667 */ - -#ifndef _HASH_H_ -#define _HASH_H_ - -#include "ndpi_api.h" - -struct entry_s { - char *key; - u_int16_t value; - struct entry_s *next; -}; - -typedef struct entry_s entry_t; - -struct hashtable_s { - int size; - struct entry_s **table; -}; - -typedef struct hashtable_s hashtable_t; - -extern hashtable_t *ht_create( int size ); -extern int ht_hash( hashtable_t *hashtable, char *key ); -extern entry_t *ht_newpair( char *key, u_int16_t value ); -extern void ht_set( hashtable_t *hashtable, char *key, u_int16_t value ); -extern u_int16_t ht_get( hashtable_t *hashtable, char *key ); -extern void ht_free( hashtable_t *hashtable ); - -#endif /* _HASH_H_ */ |