summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-11-30 11:20:31 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-11-30 11:20:31 +0100
commit28f27f827c67128073d1691edcdb43bb4f3f1c03 (patch)
tree1d2199d1f3df324709324d1efd23f27de84db65d /common
parentc3059736cbbc58a8ee4a15bd139d652dd9e06772 (diff)
downloadeurephia-28f27f827c67128073d1691edcdb43bb4f3f1c03.tar.gz
eurephia-28f27f827c67128073d1691edcdb43bb4f3f1c03.tar.xz
eurephia-28f27f827c67128073d1691edcdb43bb4f3f1c03.zip
Completed the change of authentication model in database driver
Follow up of commit 103acd7c2e1467401f0795930be9140dc5ed47ff. Seems to work fine via both plugin mode and eurephiadm, regarding core dumping too.
Diffstat (limited to 'common')
-rw-r--r--common/eurephiadb_session_common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/eurephiadb_session_common.c b/common/eurephiadb_session_common.c
index 213a60e..6fd0411 100644
--- a/common/eurephiadb_session_common.c
+++ b/common/eurephiadb_session_common.c
@@ -31,10 +31,13 @@
#include <eurephiadb_session_struct.h>
-#ifndef DRIVER_MODE // Do not add this declaration if we are compiling a driver
+#ifndef DRIVER_MODE // Use the right declaration, depending on if we compile driver or plugin/exec
// Functions needed to be found in the database driver
int (*eDBstore_session_value) (eurephiaCTX *ctx, eurephiaSESSION *session, int mode,
const char *key, const char *val);
+#else
+int eDBstore_session_value (eurephiaCTX *ctx, eurephiaSESSION *session, int mode,
+ const char *key, const char *val);
#endif
// Adds or updates a key in the eurephiaVALUES stack. Database is updated before the stack is updated.