Module: sip-router
Branch: master
Commit: 3e44fcbe47774d2b157e82228e6266df2a08d627
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3e44fcb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Nov 24 22:24:25 2010 +0100
db_flatstore: exported DB API v1 bind function
- bind function for DB API v1 was no longer exported upon merging with
implementation of DB API V2
- reported by Javier Gallart
---
modules/db_flatstore/flatstore_mod.c | 1 +
modules/db_flatstore/km_flatstore_mod.h | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules/db_flatstore/flatstore_mod.c b/modules/db_flatstore/flatstore_mod.c
index 0f7b5b5..b008f20 100644
--- a/modules/db_flatstore/flatstore_mod.c
+++ b/modules/db_flatstore/flatstore_mod.c
@@ -110,6 +110,7 @@ static cmd_export_t cmds[] = {
{"db_con", (cmd_function)flat_con, 0, 0, 0},
{"db_cmd", (cmd_function)flat_cmd, 0, 0, 0},
{"db_put", (cmd_function)flat_put, 0, 0, 0},
+ {"db_bind_api", (cmd_function)db_flat_bind_api, 0, 0, 0},
{0, 0, 0, 0, 0}
};
diff --git a/modules/db_flatstore/km_flatstore_mod.h
b/modules/db_flatstore/km_flatstore_mod.h
index 3ca8c50..36c103b 100644
--- a/modules/db_flatstore/km_flatstore_mod.h
+++ b/modules/db_flatstore/km_flatstore_mod.h
@@ -32,6 +32,8 @@
#include <time.h>
+#include "../../lib/srdb1/db.h"
+
/*
* Process number used in filenames
*/
@@ -63,5 +65,7 @@ void km_mod_destroy(void);
int km_child_init(int rank);
+int db_flat_bind_api(db_func_t *dbb);
+
#endif /* KM_FLATSTORE_MOD_H */