/[LeafOK_CVS]/lbbs/include/trie_dict.h
ViewVC logotype

Diff of /lbbs/include/trie_dict.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 by sysadm, Sun May 25 06:45:42 2025 UTC Revision 1.5 by sysadm, Sun May 25 08:10:48 2025 UTC
# Line 21  Line 21 
21    
22  #define TRIE_CHILDREN 256  #define TRIE_CHILDREN 256
23  #define TRIE_MAX_KEY_LEN 1023  #define TRIE_MAX_KEY_LEN 1023
24    #define TRIE_NODE_PER_POOL 2000
25    
26  struct trie_node_t  struct trie_node_t
27  {  {
# Line 32  typedef struct trie_node_t TRIE_NODE; Line 33  typedef struct trie_node_t TRIE_NODE;
33    
34  typedef void (*trie_dict_traverse_cb)(const char *, int64_t);  typedef void (*trie_dict_traverse_cb)(const char *, int64_t);
35    
36  extern int trie_dict_init(const char *filename);  extern int trie_dict_init(const char *filename, int node_count_limit);
37  extern void trie_dict_cleanup(void);  extern void trie_dict_cleanup(void);
38    
39  extern int set_trie_dict_shm_readonly(void);  extern int set_trie_dict_shm_readonly(void);
# Line 47  extern int trie_dict_del(TRIE_NODE *p_di Line 48  extern int trie_dict_del(TRIE_NODE *p_di
48    
49  extern void trie_dict_traverse(TRIE_NODE *p_dict, trie_dict_traverse_cb cb);  extern void trie_dict_traverse(TRIE_NODE *p_dict, trie_dict_traverse_cb cb);
50    
51    extern int trie_dict_used_nodes(void);
52    
53  #endif //_TRIE_DICT_H_  #endif //_TRIE_DICT_H_


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1