diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-11-28 13:00:33 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-11-28 13:00:33 +0100 |
commit | 4dabdc0e154b3be0c9b64d97041502b01662ed43 (patch) | |
tree | af1831e4f7bc8560d33ce53d5c52945c52b3d9c8 | |
parent | dd9f3ba31ddfeb1ab54b61128769a64c266f7c4a (diff) | |
download | eurephia-4dabdc0e154b3be0c9b64d97041502b01662ed43.tar.gz eurephia-4dabdc0e154b3be0c9b64d97041502b01662ed43.tar.xz eurephia-4dabdc0e154b3be0c9b64d97041502b01662ed43.zip |
Rough preparation of the db drivers for API ver 2
-rw-r--r-- | database/eurephiadb-driver_template.c | 15 | ||||
-rw-r--r-- | database/sqlite/edb-sqlite.c | 17 |
2 files changed, 29 insertions, 3 deletions
diff --git a/database/eurephiadb-driver_template.c b/database/eurephiadb-driver_template.c index 82d21e0..27a17d1 100644 --- a/database/eurephiadb-driver_template.c +++ b/database/eurephiadb-driver_template.c @@ -43,6 +43,12 @@ #include <passwd.h> +#define DRIVERVERSION "1.0" +#ifndef DRIVERAPIVERSION +# define DRIVERAPIVERSION 1 // Set this value to 2 to support admin utilities +#endif + + // Mapping table - mapping attempt types from .... to database table fields typedef struct { char *colname; @@ -957,3 +963,12 @@ eurephiaVALUES *eDBget_blacklisted_ip(eurephiaCTX *ctx) { return ret; } + + +#if DRIVERAPIVERSION > 1 +/* + * API Version 2 functions + * + */ + +#endif diff --git a/database/sqlite/edb-sqlite.c b/database/sqlite/edb-sqlite.c index bcbf3ec..d4c0a90 100644 --- a/database/sqlite/edb-sqlite.c +++ b/database/sqlite/edb-sqlite.c @@ -39,9 +39,10 @@ #include <memwatch.h> #endif - -#define DRIVERVERSION "1.0" -#define DRIVERAPIVERSION 1 +#define DRIVERVERSION "1.1" +#ifndef DRIVERAPIVERSION +# define DRIVERAPIVERSION 2 +#endif // Mapping table - mapping attempt types from .... to sqlite table fields typedef struct { @@ -898,3 +899,13 @@ eurephiaVALUES *eDBget_blacklisted_ip(eurephiaCTX *ctx) { return ret; } + + +#if DRIVERAPIVERSION > 1 +/* + * API Version 2 functions + * + */ + + +#endif |