]> jfr.im git - solanum.git/blobdiff - include/cache.h
Add .travis.yml
[solanum.git] / include / cache.h
index 9fada168a5483c5293980e8f798d02a86adc5932..d5396d39af69e20e8b5778c0955ddff304195a1b 100644 (file)
@@ -1,13 +1,12 @@
-/* $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"
-
 #define HELP_MAX       100
 
-#define CACHELINELEN   81
 #define CACHEFILELEN   30
+/* two servernames, a gecos, three spaces, ":1", '\0' */
+#define LINKSLINELEN   (HOSTLEN + HOSTLEN + REALLEN + 6)
 
 #define HELP_USER      0x001
 #define HELP_OPER      0x002
@@ -23,7 +22,7 @@ struct cachefile
 
 struct cacheline
 {
-       char data[CACHELINELEN];
+       char *data;
        rb_dlink_node linenode;
 };
 
@@ -32,19 +31,21 @@ extern struct cachefile *oper_motd;
 extern struct cacheline *emptyline;
 
 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 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