X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/212380e3f42f585dc1ea927402252eb943f91f7b..94b4fbf93a7653bd9acb52649d6a4a8d5f994d0a:/include/cache.h diff --git a/include/cache.h b/include/cache.h index a3485ec..4bf7ae5 100644 --- a/include/cache.h +++ b/include/cache.h @@ -1,10 +1,7 @@ -/* $Id: cache.h 6 2005-09-10 01:02:21Z nenolod $ */ +/* $Id: cache.h 24250 2007-08-22 19:15:08Z androsyn $ */ #ifndef INCLUDED_CACHE_H #define INCLUDED_CACHE_H -#include "client.h" -#include "tools.h" - #define HELP_MAX 100 #define CACHELINELEN 81 @@ -20,32 +17,36 @@ struct Client; struct cachefile { char name[CACHEFILELEN]; - dlink_list contents; + rb_dlink_list contents; int flags; }; struct cacheline { char data[CACHELINELEN]; - dlink_node linenode; + rb_dlink_node linenode; }; extern struct cachefile *user_motd; extern struct cachefile *oper_motd; extern struct cacheline *emptyline; -extern dlink_list links_cache_list; extern char user_motd_changed[MAX_DATE_STRING]; +extern rb_dlink_list links_cache_list; -extern void init_cache(void); -extern struct cachefile *cache_file(const char *, const char *, int); -extern void cache_links(void *unused); -extern void free_cachefile(struct cachefile *); +void init_cache(void); +struct cachefile *cache_file(const char *, const char *, int); +void cache_links(void *unused); +void free_cachefile(struct cachefile *); -extern void load_help(void); +void load_help(void); -extern void send_user_motd(struct Client *); -extern void send_oper_motd(struct Client *); +void send_user_motd(struct Client *); +void send_oper_motd(struct Client *); +void cache_user_motd(void); +struct Dictionary; +extern struct Dictionary *help_dict_oper; +extern struct Dictionary *help_dict_user; #endif