1 /* $Id: cache.h 26 2006-09-20 18:02:06Z spb $ */
2 #ifndef INCLUDED_CACHE_H
3 #define INCLUDED_CACHE_H
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
22 char name
[CACHEFILELEN
];
29 char data
[CACHELINELEN
];
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
*);