1 #ifndef INCLUDED_CACHE_H
2 #define INCLUDED_CACHE_H
6 #define CACHEFILELEN 30
7 /* two servernames, a gecos, three spaces, ":1", '\0' */
8 #define LINKSLINELEN (HOSTLEN + HOSTLEN + REALLEN + 6)
10 #define HELP_USER 0x001
11 #define HELP_OPER 0x002
17 char name
[CACHEFILELEN
];
18 rb_dlink_list contents
;
25 rb_dlink_node linenode
;
28 extern struct cachefile
*user_motd
;
29 extern struct cachefile
*oper_motd
;
30 extern struct cacheline
*emptyline
;
32 extern char user_motd_changed
[MAX_DATE_STRING
];
33 extern rb_dlink_list links_cache_list
;
35 void init_cache(void);
36 struct cachefile
*cache_file(const char *, const char *, int);
37 void cache_links(void *unused
);
38 void free_cachefile(struct cachefile
*);
42 void send_user_motd(struct Client
*);
43 void send_oper_motd(struct Client
*);
44 void cache_user_motd(void);
47 extern struct Dictionary
*help_dict_oper
;
48 extern struct Dictionary
*help_dict_user
;