]> jfr.im git - irc/quakenet/newserv.git/blame - chanindex/chanindex.h
Merge default.
[irc/quakenet/newserv.git] / chanindex / chanindex.h
CommitLineData
47a18d37 1#ifndef __CHANINDEX_H
2#define __CHANINDEX_H
3
4#include "../lib/sstring.h"
5
6#define CHANNELHASHSIZE 60000
7#define MAXCHANNELEXTS 7
8
9struct channel;
10
11typedef struct chanindex {
12 sstring *name;
13 struct channel *channel;
14 struct chanindex *next;
15 unsigned int marker;
16 void *exts[MAXCHANNELEXTS];
17} chanindex;
18
19extern chanindex *chantable[CHANNELHASHSIZE];
20
21chanindex *getchanindex();
22void freechanindex(chanindex *cip);
23void initchannelindex();
24chanindex *findchanindex(const char *name);
25chanindex *findorcreatechanindex(const char *name);
26void releasechanindex(chanindex *cip);
27int registerchanext(const char *name);
28int findchanext(const char *name);
29void releasechanext(int index);
30unsigned int nextchanmarker();
31
32#endif