]>
Commit | Line | Data |
---|---|---|
84ca44e7 P |
1 | #ifndef __PATRICIANICKS_H |
2 | #define __PATRICIANICKS_H | |
3 | ||
4 | #include "../nick/nick.h" | |
5 | ||
32a0a978 C |
6 | #define PATRICIANICK_HASHSIZE 5 |
7 | #define pn_getidenthash(x) ((crc32i(x)) % PATRICIANICK_HASHSIZE) | |
8 | #define PATRICIANICK_MAXRESULTS 1000 | |
84ca44e7 | 9 | |
32a0a978 C |
10 | typedef struct patricianick_s { |
11 | nick *identhash[PATRICIANICK_HASHSIZE]; | |
84ca44e7 P |
12 | } patricianick_t; |
13 | ||
14 | extern int pnode_ext; | |
15 | extern int pnick_ext; | |
16 | ||
17 | void pn_hook_newuser(int hook, void *arg); | |
18 | void pn_hook_lostuser(int hook, void *arg); | |
19 | ||
20 | void addnicktonode(patricia_node_t *node, nick *nick); | |
32a0a978 | 21 | void deletenickfromnode(patricia_node_t *node, nick *nick); |
84ca44e7 P |
22 | void freepatricianick(patricianick_t *pnp); |
23 | #endif |