]> jfr.im git - irc/quakenet/newserv.git/blob - patricianick/patricianick.h
merge
[irc/quakenet/newserv.git] / patricianick / patricianick.h
1 #ifndef __PATRICIANICKS_H
2 #define __PATRICIANICKS_H
3
4 #include "../nick/nick.h"
5
6 #define PATRICIANICK_HASHSIZE 5
7 #define pn_getidenthash(x) ((crc32i(x)) % PATRICIANICK_HASHSIZE)
8 #define PATRICIANICK_MAXRESULTS 1000
9
10 typedef struct patricianick_s {
11 nick *identhash[PATRICIANICK_HASHSIZE];
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);
21 void deletenickfromnode(patricia_node_t *node, nick *nick);
22 void freepatricianick(patricianick_t *pnp);
23 #endif