]> code.citadel.org Git - citadel.git/blobdiff - citadel/server.h
* sysdep.c: worker_thread(): Make scheduling a little more fair to higher
[citadel.git] / citadel / server.h
index b83a8079a3e881d59efd300206094bfd55e03b73..cc28f21515b24ce0603f1f1fd0533f01a7cb018b 100644 (file)
@@ -10,7 +10,7 @@
 #define SERVER_H
 
 #ifdef __GNUC__
-#define INLINE inline
+#define INLINE __inline__
 #else
 #define INLINE
 #endif
@@ -156,7 +156,8 @@ typedef struct CitContext t_context;
 /* Values for CitContext.state */
 enum {
        CON_IDLE,               /* This context is doing nothing */
-       CON_EXECUTING           /* This context is bound to a thread */
+       CON_READY,              /* This context is ready-to-run */
+       CON_EXECUTING,          /* This context is bound to a thread */
 };
 
 
@@ -214,6 +215,8 @@ enum {
        S_DIRECTORY,
        S_NETCONFIGS,
        S_PUBLIC_CLIENTS,
+       S_LDAP,
+       S_FLOORCACHE,
        MAX_SEMAPHORES
 };
 
@@ -320,13 +323,13 @@ extern struct SessionFunctionHook *SessionHookTable;
  */
 struct UserFunctionHook {
        struct UserFunctionHook *next;
-       void (*h_function_pointer) (char *username, long usernum);
+       void (*h_function_pointer) (struct ctdluser *usbuf);
        int eventtype;
 };
 extern struct UserFunctionHook *UserHookTable;
 
 #define EVT_PURGEUSER  100     /* Deleting a user */
-#define EVT_OUTPUTMSG  101     /* Outputting a message */
+#define EVT_NEWUSER    102     /* Creating a user */
 
 /*
  * MessageFunctionHook extensions are used for hooks which implement handlers