]>
jfr.im git - irc/quakenet/newserv.git/blob - chanindex/chanindex.h
4 #include "../lib/sstring.h"
6 #define CHANNELHASHSIZE 60000
7 #define MAXCHANNELEXTS 7
11 typedef struct chanindex
{
13 struct channel
*channel
;
14 struct chanindex
*next
;
16 void *exts
[MAXCHANNELEXTS
];
19 extern chanindex
*chantable
[CHANNELHASHSIZE
];
21 chanindex
*getchanindex();
22 void freechanindex(chanindex
*cip
);
23 void initchannelindex();
24 chanindex
*findchanindex(const char *name
);
25 chanindex
*findorcreatechanindex(const char *name
);
26 void releasechanindex(chanindex
*cip
);
27 int registerchanext(const char *name
);
28 int findchanext(const char *name
);
29 void releasechanext(int index
);
30 unsigned int nextchanmarker();