preserve stringlengths when outputting stuff in the imap module
[citadel.git] / citadel / database.h
index a9f0bbfd3a1d523a1212ec4e86bc39d2f109db10..7b3b844b90b9b25d16b2d9c58addab941981b88f 100644 (file)
@@ -33,6 +33,8 @@ void *checkpoint_thread(void *arg);
 void cdb_chmod_data(void);
 void cdb_checkpoint(void);
 void check_handles(void *arg);
+void cdb_cull_logs(void);
+
 
 /*
  * Database records beginning with this magic number are assumed to
@@ -51,5 +53,21 @@ struct CtdlCompressHeader {
        size_t compressed_len;
 };
 
+typedef enum __eCheckType {
+       eCheckExist,
+       eCheckUpdate,
+       eUpdate,
+       eWrite
+}eCheckType;
+
+time_t CheckIfAlreadySeen(const char *Facility,
+                         StrBuf *guid,
+                         time_t now,
+                         time_t antiexpire,
+                         eCheckType cType,
+                         long ccid,
+                         long ioid);
+
+
 #endif /* DATABASE_H */