]> jfr.im git - irc/rqf/shadowircd.git/blame - include/cache.h
start making this compile
[irc/rqf/shadowircd.git] / include / cache.h
CommitLineData
212380e3 1/* $Id: cache.h 6 2005-09-10 01:02:21Z nenolod $ */
2#ifndef INCLUDED_CACHE_H
3#define INCLUDED_CACHE_H
4
5#include "client.h"
6#include "tools.h"
7
8#define HELP_MAX 100
9
10#define CACHELINELEN 81
11#define CACHEFILELEN 30
212380e3 12
13#define HELP_USER 0x001
14#define HELP_OPER 0x002
15
16struct Client;
17
18struct cachefile
19{
20 char name[CACHEFILELEN];
08d11e34 21 rb_dlink_list contents;
212380e3 22 int flags;
23};
24
25struct cacheline
26{
27 char data[CACHELINELEN];
08d11e34 28 rb_dlink_node linenode;
212380e3 29};
30
31extern struct cachefile *user_motd;
32extern struct cachefile *oper_motd;
33extern struct cacheline *emptyline;
212380e3 34
35extern char user_motd_changed[MAX_DATE_STRING];
36
37extern void init_cache(void);
38extern struct cachefile *cache_file(const char *, const char *, int);
212380e3 39extern void free_cachefile(struct cachefile *);
40
41extern void load_help(void);
42
43extern void send_user_motd(struct Client *);
44extern void send_oper_motd(struct Client *);
45
9802490c 46struct Dictionary;
5a34b193
JT
47extern struct Dictionary *help_dict_oper;
48extern struct Dictionary *help_dict_user;
9802490c 49
212380e3 50#endif
51