Here it is, the new thread interface.
[citadel.git] / citadel / modules / rssclient / serv_rssclient.c
index a7093efa32fd4bf019a0e27d8e26145d8685d660..c9461a673934ed8d45ad0231aa3abd9b3e36ee1d 100644 (file)
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <libcitadel.h>
 #include "citadel.h"
 #include "server.h"
 #include "citserver.h"
 #include "support.h"
 #include "config.h"
-#include "tools.h"
 #include "room_ops.h"
 #include "ctdl_module.h"
 #include "clientsocket.h"
@@ -622,11 +622,15 @@ void rssclient_scan(void) {
 
 CTDL_MODULE_INIT(rssclient)
 {
+       if (!threading)
+       {
 #ifdef HAVE_EXPAT
-       CtdlRegisterSessionHook(rssclient_scan, EVT_TIMER);
+               CtdlRegisterSessionHook(rssclient_scan, EVT_TIMER);
 #else
-        lprintf(CTDL_INFO, "This server is missing the Expat XML parser.  RSS client will be disabled.\n");
+               lprintf(CTDL_INFO, "This server is missing the Expat XML parser.  RSS client will be disabled.\n");
 #endif
+       }
+       
        /* return our Subversion id for the Log */
         return "$Id: serv_rssclient.c 5652 2007-10-29 20:14:48Z ajc $";
 }