1 #ifndef HASH_H 2 #define HASH_H 3 4 typedef uint32_t (*hash_func)(const void *key, size_t length); 5 extern hash_func hash; 6 7 enum hashfunc_type { 8 JENKINS_HASH=0, MURMUR3_HASH, XXH3_HASH 9 }; 10 11 int hash_init(enum hashfunc_type type); 12 13 #endif /* HASH_H */ 14 15