25 #include <sys/types.h>
47 uint(*pHashFunction) (
const char *arKey, uint nKeyLength);
51 extern int completion_hash_init(
HashTable *ht, uint nSize);
52 extern int completion_hash_update(
HashTable *ht,
char *arKey, uint nKeyLength,
char *str);
53 extern int hash_exists(
HashTable *ht,
char *arKey);
54 extern Bucket *find_all_matches(
HashTable *ht,
const char *str, uint length, uint *res_length);
55 extern Bucket *find_longest_match(
HashTable *ht,
char *str, uint length, uint *res_length);
56 extern void add_word(
HashTable *ht,
char *str);
57 extern void completion_hash_clean(
HashTable *ht);
58 extern int completion_hash_exists(
HashTable *ht,
char *arKey, uint nKeyLength);
59 extern void completion_hash_free(
HashTable *ht);