1 #ifndef INCLUDED_CACHE_H
2 #define INCLUDED_CACHE_H
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
21 char name
[CACHEFILELEN
];
28 char data
[CACHELINELEN
];
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
*);