]> code.citadel.org Git - citadel.git/blobdiff - citadel/ipcdef.h
* compatibility with Berkeley DB < 3.3
[citadel.git] / citadel / ipcdef.h
index e139b49fdf8a592e0c6e4245f7bac9d089f5f1c1..5acea43a36f8f4658010a4f96ec885818a34f9ec 100644 (file)
@@ -1,10 +1,6 @@
 /* $Id$ */
-#ifdef OK
-#undef OK
-#endif
-
 #define LISTING_FOLLOWS                100
-#define OK                     200
+#define CIT_OK                 200
 #define MORE_DATA              300
 #define SEND_LISTING           400
 #define ERROR                  500
@@ -28,6 +24,9 @@
 #define NO_SUCH_SYSTEM         73
 #define ALREADY_EXISTS         74
 
+#define ASYNC_MSG              900
+#define ASYNC_GEXP             01
+
 struct CtdlServInfo {
        int serv_pid;
        char serv_nodename[32];
@@ -58,12 +57,15 @@ struct CtdlServInfo {
 #define QR_READONLY    8192            /* Aide status required to post     */
 #define QR_MAILBOX     16384           /* Set if this is a private mailbox */
 
+#define QR2_SYSTEM     1               /* System room; hide by default     */
+
 #define US_NEEDVALID   1               /* User needs to be validated       */
 #define US_PERM                4               /* Permanent user                   */
 #define US_LASTOLD     16              /* Print last old message with new  */
 #define US_EXPERT      32              /* Experienced user                 */
 #define US_UNLISTED    64              /* Unlisted userlog entry           */
 #define US_NOPROMPT    128             /* Don't prompt after each message  */
+#define US_PROMPTCTL   256             /* <N>ext & <S>top work at prompt   */
 #define US_DISAPPEAR   512             /* Use "disappearing msg prompts"   */
 #define US_REGIS       1024            /* Registered user                  */
 #define US_PAGINATOR   2048            /* Pause after each screen of text  */
@@ -72,7 +74,8 @@ struct CtdlServInfo {
 #define US_COLOR       16384           /* User wants ANSI color support    */
 #define US_USER_SET    (US_LASTOLD | US_EXPERT | US_UNLISTED | \
                        US_NOPROMPT | US_DISAPPEAR | US_PAGINATOR | \
-                       US_FLOORS | US_COLOR )
+                       US_FLOORS | US_COLOR | US_PROMPTCTL )
 
 void serv_puts(char *buf);
 void serv_gets(char *buf);
+void connection_died(void);