]> code.citadel.org Git - citadel.git/blobdiff - citadel/include/ctdl_module.h
threads are using signals and the GC code is #ifdef if available.
[citadel.git] / citadel / include / ctdl_module.h
index 616b68edbd96ab3e1f7e7fc010c1d13c3a756885..e4973849a62c3d7fc3b4735801c2c2f17d904e03 100644 (file)
@@ -4,6 +4,19 @@
 #define CTDL_MODULE_H
 
 #include "sysdep.h"
+
+#ifdef HAVE_GC
+#define GC_THREADS
+#define GC_REDIRECT_TO_LOCAL
+#include <gc/gc_local_alloc.h>
+#else
+#define GC_MALLOC malloc
+#define GC_MALLOC_ATOMIC malloc
+#define GC_FREE free
+#define GC_REALLOC realloc
+#endif
+
+
 #include <stdlib.h>
 #include <unistd.h>
 #include <stdio.h>
@@ -189,6 +202,11 @@ int CtdlWantSingleUser(void);
 int CtdlIsSingleUser(void);
 
 
+int CtdlIsUserLoggedIn (char *user_name);
+int CtdlIsUserLoggedInByNum (long usernum);
+void CtdlBumpNewMailCounter(long which_user);
+
+
 /*
  * CtdlGetCurrentMessageNumber()  -  Obtain the current highest message number in the system
  * This provides a quick way to initialise a variable that might be used to indicate
@@ -321,6 +339,8 @@ enum {
        login_not_found
 };
 
+void CtdlUserLogout(void);
+