hash.h 469 B

123456789101112131415
  1. #ifndef VSFTP_HASH_H
  2. #define VSFTP_HASH_H
  3. struct hash;
  4. typedef unsigned int (*hashfunc_t)(unsigned int, void*);
  5. struct hash* hash_alloc(unsigned int buckets, unsigned int key_size,
  6. unsigned int value_size, hashfunc_t hash_func);
  7. void* hash_lookup_entry(struct hash* p_hash, void* p_key);
  8. void hash_add_entry(struct hash* p_hash, void* p_key, void* p_value);
  9. void hash_free_entry(struct hash* p_hash, void* p_key);
  10. #endif /* VSFTP_HASH_H */