]> jfr.im git - irc/rqf/shadowircd.git/blame - include/cache.h
make s_user.c build.
[irc/rqf/shadowircd.git] / include / cache.h
CommitLineData
acc2595c
VY
1/* $Id: cache.h 24250 2007-08-22 19:15:08Z androsyn $ */\r
2#ifndef INCLUDED_CACHE_H\r
3#define INCLUDED_CACHE_H\r
4\r
5#define HELP_MAX 100\r
6\r
7#define CACHELINELEN 81\r
8#define CACHEFILELEN 30\r
9/* two servernames, a gecos, three spaces, ":1", '\0' */\r
10#define LINKSLINELEN (HOSTLEN + HOSTLEN + REALLEN + 6)\r
11\r
12#define HELP_USER 0x001\r
13#define HELP_OPER 0x002\r
14\r
15struct Client;\r
16\r
17struct cachefile\r
18{\r
19 char name[CACHEFILELEN];\r
20 rb_dlink_list contents;\r
21 int flags;\r
22};\r
23\r
24struct cacheline\r
25{\r
26 char data[CACHELINELEN];\r
27 rb_dlink_node linenode;\r
28};\r
29\r
30extern struct cachefile *user_motd;\r
31extern struct cachefile *oper_motd;\r
32extern struct cacheline *emptyline;\r
33\r
34extern char user_motd_changed[MAX_DATE_STRING];\r
35extern rb_dlink_list links_cache_list;\r
36\r
37void init_cache(void);\r
38struct cachefile *cache_file(const char *, const char *, int);\r
39void cache_links(void *unused);\r
40void free_cachefile(struct cachefile *);\r
41\r
42void load_help(void);\r
43\r
44void send_user_motd(struct Client *);\r
73897182 45void send_oper_motd(struct Client *);\r
acc2595c
VY
46void cache_user_motd(void);\r
47\r
73897182
WP
48struct Dictionary;\r
49extern struct Dictionary *help_dict_oper;\r
acc2595c 50extern struct Dictionary *help_dict_user;\r
73897182
WP
51#endif\r
52\r