Skip to content

Commit

Permalink
db_mongodb: updated to new module interface format
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrchance authored and linuxmaniac committed Sep 28, 2018
1 parent 28b2288 commit 0598da7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
2 changes: 0 additions & 2 deletions src/modules/db_mongodb/Makefile
Expand Up @@ -20,8 +20,6 @@ else
LIBS= -L$(LOCALBASE)/lib -lmongoc
endif

DEFS+=-DKAMAILIO_MOD_INTERFACE

SERLIBPATH=../../lib
SER_LIBS+=$(SERLIBPATH)/srdb1/srdb1
include ../../Makefile.modules
22 changes: 10 additions & 12 deletions src/modules/db_mongodb/db_mongodb_mod.c
Expand Up @@ -50,18 +50,16 @@ static param_export_t params[] = {


struct module_exports exports = {
"db_mongodb",
DEFAULT_DLFLAGS, /* dlopen flags */
cmds,
params, /* module parameters */
0, /* exported statistics */
0, /* exported MI functions */
0, /* exported pseudo-variables */
0, /* extra processes */
mod_init, /* module initialization function */
0, /* response function*/
0, /* destroy function */
0 /* per-child init function */
"db_mongodb", /* module name */
DEFAULT_DLFLAGS, /* dlopen flags */
cmds, /* exported functions */
params, /* exported parameters */
0, /* RPC method exports */
0, /* exported pseudo-variables */
0, /* response handling function */
mod_init, /* module initialization function */
0, /* per-child init function */
0 /* module destroy function */
};

static int db_mongodb_bind_api(db_func_t *dbb)
Expand Down

0 comments on commit 0598da7

Please sign in to comment.