temporarily disable evsql stuff build-cmake
authorTero Marttila <terom@fixme.fi>
Mon, 16 Mar 2009 00:09:53 +0200
branchbuild-cmake
changeset 61 4ba21936518a
parent 60 3c440bebcea7
child 62 e0dabc496f64
temporarily disable evsql stuff
src/irc_log.c
src/nexus.c
--- a/src/irc_log.c	Mon Mar 16 00:06:59 2009 +0200
+++ b/src/irc_log.c	Mon Mar 16 00:09:53 2009 +0200
@@ -6,10 +6,12 @@
 #include <stdlib.h>
 #include <string.h>
 
+/*
 #include <event2/event.h>
 // XXX: fix this err_t crap
 #define LIB_ERR_H
 #include <evsql.h>
+*/
 
 /**
  * The irc_log module state
@@ -18,8 +20,10 @@
     /** The nexus this module is loaded for */
     struct nexus *nexus;
 
+#if 0
     /** The database connection */
     struct evsql *db;
+#endif
 
 };
 
@@ -60,14 +64,14 @@
 static err_t irc_log_conf (void *mod_ctx, const char *name, char *value, struct error_info *err)
 {
     struct irc_log_ctx *ctx = mod_ctx;
-
+/*
     if (strcmp(name, "db_info") == 0) {
         log_info("connect to database: %s", value);
 
         if ((ctx->db = evsql_new_pq(ctx->nexus->ev_base, value, NULL, NULL)) == NULL)
            return ERR_EVSQL_NEW_PQ;
 
-    } else if (strcmp(name, "channel") == 0) {
+    } else */ if (strcmp(name, "channel") == 0) {
         const char *network = strsep(&value, "/");
         const char *channel = value;
 
--- a/src/nexus.c	Mon Mar 16 00:06:59 2009 +0200
+++ b/src/nexus.c	Mon Mar 16 00:09:53 2009 +0200
@@ -172,7 +172,7 @@
 
         struct module_info mod_irc_log_info = {
             .name = "irc_log",
-            .path = "modules/irc_log.so"
+            .path = "modules/libirc_log.so"
         };
 
         // load the module