]> code.citadel.org Git - citadel.git/blobdiff - citadel/context.h
Networker: when a remote host fails to connect successfully add floodprotection.
[citadel.git] / citadel / context.h
index 9d158f469e5ae27355fcb99e540d6499dbf25db7..9243d5148230270912919694e908ee9b68a81dea 100644 (file)
@@ -28,6 +28,8 @@ typedef enum __CCState {
        CON_SYS                 /* This is a system context and mustn't be purged */
 } CCState;
 
+typedef struct AsyncIO AsyncIO; /* forward declaration for event_client.h */
+typedef struct CitContext CitContext;
 
 /*
  * Here's the big one... the Citadel context structure.
@@ -37,8 +39,8 @@ typedef enum __CCState {
  *
  */
 struct CitContext {
-       struct CitContext *prev;        /* Link to previous session in list */
-       struct CitContext *next;        /* Link to next session in the list */
+       CitContext *prev;       /* Link to previous session in list */
+       CitContext *next;       /* Link to next session in the list */
 
        int cs_pid;             /* session ID */
        int dont_term;          /* for special activities like artv so we don't get killed */
@@ -140,9 +142,10 @@ struct CitContext {
 
        long *cached_msglist;                   /* results of the previous CtdlForEachMessage() */
        int cached_num_msgs;
+
+       AsyncIO *IO;                            /* if this session has AsyncIO going on... */
 };
 
-typedef struct CitContext CitContext;
 
 
 #define CC MyContext()
@@ -196,7 +199,7 @@ static INLINE void become_session(CitContext *which_con) {
 
 
 
-typedef void (*CtdlDbgFunction) (const int);
+/* typedef void (*CtdlDbgFunction) (const int); */
 
 extern int DebugSession;
 #define CONDBGLOG(LEVEL) if ((LEVEL != LOG_DEBUG) || (DebugSession != 0))