* Unfinished code is now disabled.
[citadel.git] / citadel / citadel.h
index 4a993c1b9e13058c4ca1095743ca9e3b99387ccd..f646fae3c2e652e2f0358a5880f8fffe95db65b2 100644 (file)
@@ -47,12 +47,13 @@ extern "C" {
  * usually more strict because you're not really supposed to dump/load and
  * upgrade at the same time.
  */
-#define REV_LEVEL      707             /* This version */
+#define REV_LEVEL      725             /* This version */
 #define REV_MIN                591             /* Oldest compatible database */
-#define EXPORT_REV_MIN 706             /* Oldest compatible export files */
+#define EXPORT_REV_MIN 725             /* Oldest compatible export files */
+#define LIBCITADEL_MIN 103             /* Minimum required version of libcitadel */
 
-#define SERVER_TYPE 0  /* zero for stock Citadel; other developers please
-                          obtain SERVER_TYPE codes for your implementations */
+#define SERVER_TYPE 0                  /* zero for stock Citadel; other developers please
+                                          obtain SERVER_TYPE codes for your implementations */
 
 /* Various length constants */
 
@@ -126,19 +127,19 @@ struct ctdluser {                 /* User record                      */
 #include "dtds/user-defs.h"
 #include "undef_data.h"
 */
-       int version;                    /* Cit vers. which created this rec */
-       uid_t uid;                      /* Associate with a unix account?   */
-       char password[32];              /* password (for Citadel-only users)*/
-       unsigned flags;                 /* See US_ flags below              */
-       long timescalled;               /* Total number of logins           */
-       long posted;                    /* Number of messages posted (ever) */
-       cit_uint8_t axlevel;            /* Access level                     */
-       long usernum;                   /* User number (never recycled)     */
-       time_t lastcall;                /* Last time the user called        */
-       int USuserpurge;                /* Purge time (in days) for user    */
-       char fullname[64];              /* Name for Citadel messages & mail */
-       cit_uint8_t USscreenwidth;      /* Screen width (for textmode users)*/
-       cit_uint8_t USscreenheight;     /* Screen height(for textmode users)*/
+       int version;                    /* Cit vers. which created this rec  */
+       uid_t uid;                      /* Associate with a unix account?    */
+       char password[32];              /* password                          */
+       unsigned flags;                 /* See US_ flags below               */
+       long timescalled;               /* Total number of logins            */
+       long posted;                    /* Number of messages ever submitted */
+       cit_uint8_t axlevel;            /* Access level                      */
+       long usernum;                   /* User number (never recycled)      */
+       time_t lastcall;                /* Date/time of most recent login    */
+       int USuserpurge;                /* Purge time (in days) for user     */
+       char fullname[64];              /* Display name (primary identifier) */
+       cit_uint8_t USscreenwidth;      /* Screen width (for textmode users) */
+       cit_uint8_t USscreenheight;     /* Screen height(for textmode users) */
 };
 
 
@@ -270,19 +271,11 @@ enum {
 #define LONG_MAX 2147483647L
 #endif
 
-
 /*
- * Views
+ * Authentication modes
  */
-#define        VIEW_BBS                0       /* Bulletin board view */
-#define VIEW_MAILBOX           1       /* Mailbox summary */
-#define VIEW_ADDRESSBOOK       2       /* Address book view */
-#define VIEW_CALENDAR          3       /* Calendar view */
-#define VIEW_TASKS             4       /* Tasks view */
-#define VIEW_NOTES             5       /* Notes view */
-#define        VIEW_WIKI               6       /* Wiki view */
-#define VIEW_CALBRIEF          7       /* Brief Calendar view */
-#define VIEW_SIEVE              8       /* Sieve manage rules store */
+#define AUTHMODE_NATIVE                0       /* native Citadel authentication */
+#define AUTHMODE_HOST          1       /* host integrated */
 
 #ifdef __cplusplus
 }