Clean a bit - to be continued...
[seven-1.x.git] / include / cache.h
blobbbc29fdad6619d54b19a20cd2a66949ac9e2be2d
1 #ifndef INCLUDED_CACHE_H
2 #define INCLUDED_CACHE_H
4 #include "client.h"
5 #include "tools.h"
7 #define HELP_MAX 100
9 #define CACHELINELEN 81
10 #define CACHEFILELEN 30
11 /* two servernames, a gecos, three spaces, ":1", '\0' */
12 #define LINKSLINELEN (HOSTLEN + HOSTLEN + REALLEN + 6)
14 #define HELP_USER 0x001
15 #define HELP_OPER 0x002
17 struct Client;
19 struct cachefile
21 char name[CACHEFILELEN];
22 dlink_list contents;
23 int flags;
26 struct cacheline
28 char data[CACHELINELEN];
29 dlink_node linenode;
32 extern struct cachefile *user_motd;
33 extern struct cachefile *oper_motd;
34 extern struct cacheline *emptyline;
35 extern dlink_list links_cache_list;
37 extern char user_motd_changed[MAX_DATE_STRING];
39 extern void init_cache(void);
40 extern struct cachefile *cache_file(const char *, const char *, int);
41 extern void cache_links(void *unused);
42 extern void free_cachefile(struct cachefile *);
44 extern void load_help(void);
46 extern void send_user_motd(struct Client *);
47 extern void send_oper_motd(struct Client *);
49 #endif