Monolithic source layout doesn't really work; go back to modular.
[seven-1.x.git] / include / cache.h
blobb8aa2f96e5a962396d3da29e42f13e1319546d64
1 /* $Id: cache.h 26 2006-09-20 18:02:06Z spb $ */
2 #ifndef INCLUDED_CACHE_H
3 #define INCLUDED_CACHE_H
5 #include "client.h"
6 #include "tools.h"
8 #define HELP_MAX 100
10 #define CACHELINELEN 81
11 #define CACHEFILELEN 30
12 /* two servernames, a gecos, three spaces, ":1", '\0' */
13 #define LINKSLINELEN (HOSTLEN + HOSTLEN + REALLEN + 6)
15 #define HELP_USER 0x001
16 #define HELP_OPER 0x002
18 struct Client;
20 struct cachefile
22 char name[CACHEFILELEN];
23 dlink_list contents;
24 int flags;
27 struct cacheline
29 char data[CACHELINELEN];
30 dlink_node linenode;
33 extern struct cachefile *user_motd;
34 extern struct cachefile *oper_motd;
35 extern struct cacheline *emptyline;
36 extern dlink_list links_cache_list;
38 extern char user_motd_changed[MAX_DATE_STRING];
40 extern void init_cache(void);
41 extern struct cachefile *cache_file(const char *, const char *, int);
42 extern void cache_links(void *unused);
43 extern void free_cachefile(struct cachefile *);
45 extern void load_help(void);
47 extern void send_user_motd(struct Client *);
48 extern void send_oper_motd(struct Client *);
50 #endif