]>
jfr.im git - irc/rqf/shadowircd.git/blob - include/cache.h
1 /* $Id: cache.h 6 2005-09-10 01:02:21Z nenolod $ */
2 #ifndef INCLUDED_CACHE_H
3 #define INCLUDED_CACHE_H
10 #define CACHELINELEN 81
11 #define CACHEFILELEN 30
13 #define HELP_USER 0x001
14 #define HELP_OPER 0x002
20 char name
[CACHEFILELEN
];
21 rb_dlink_list contents
;
27 char data
[CACHELINELEN
];
28 rb_dlink_node linenode
;
31 extern struct cachefile
*user_motd
;
32 extern struct cachefile
*oper_motd
;
33 extern struct cacheline
*emptyline
;
35 extern char user_motd_changed
[MAX_DATE_STRING
];
37 extern void init_cache(void);
38 extern struct cachefile
*cache_file(const char *, const char *, int);
39 extern void free_cachefile(struct cachefile
*);
41 extern void load_help(void);
43 extern void send_user_motd(struct Client
*);
44 extern void send_oper_motd(struct Client
*);
47 extern struct Dictionary
*help_dict_oper
;
48 extern struct Dictionary
*help_dict_user
;