Removed ht_hash as it is not used anymore. (#1220)

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni
2021-06-29 15:32:48 +02:00
committed by GitHub
parent 1c2a0c36f1
commit 8222ac5bdc
4 changed files with 0 additions and 220 deletions
-30
View File
@@ -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_ */