]> diplodocus.org Git - nmh/blobdiff - h/mhcachesbr.h
lock_file.c: close(2) file descriptor on failure, avoiding leak.
[nmh] / h / mhcachesbr.h
index 8f980a60998912d394d9ea425ac2b3e00e4cbed9..6e6beacb839c2d5cddcd50c4f72afe9bb057b0a5 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * mhcachesbr.h -- definitions for manipulating MIME content cache
+/* mhcachesbr.h -- definitions for manipulating MIME content cache
  */
 
 /*
  */
 
 /*
 #define X(sw, minchars, id) id,
 DEFINE_SWITCH_ENUM(CACHE);
 #undef X
 #define X(sw, minchars, id) id,
 DEFINE_SWITCH_ENUM(CACHE);
 #undef X
+extern struct swit *cache_policy;
 
 
-#define X(sw, minchars, id) { sw, minchars, id },
-DEFINE_SWITCH_ARRAY(CACHE, caches);
-#undef X
+void cache_all_messages(CT *cts);
+int find_cache(CT ct, int policy, int *writing, char *id,
+    char *buffer, int buflen);
+
+extern int rcachesw;
+extern int wcachesw;
+
+extern char *cache_public;
+extern char *cache_private;