Skip to content

Commit d9d444f

Browse files
committed
cachedb: update exports structure
1 parent e8344e8 commit d9d444f

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

cachedb/example/example_cachedb.c

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ cachedb_con *con;
5858

5959
static const cmd_export_t cmds[]=
6060
{
61-
{"process_msg", (cmd_function)process_msg, 0, 0, 0, REQUEST_ROUTE},
62-
{0,0,0,0,0,0}
61+
{"process_msg", (cmd_function)process_msg, {{0, 0, 0}}, REQUEST_ROUTE},
62+
{0,0,{{0,0,0}},0}
6363
};
6464

6565
static const param_export_t params[]={
@@ -68,24 +68,27 @@ static const param_export_t params[]={
6868
};
6969

7070

71-
/** module exports */
7271
struct module_exports exports= {
73-
"example_cachedb", /* module name */
74-
MOD_TYPE_DEFAULT,/* class of this module */
72+
"example_cachedb", /* module name */
73+
MOD_TYPE_DEFAULT, /* class of this module */
7574
MODULE_VERSION,
7675
DEFAULT_DLFLAGS, /* dlopen flags */
77-
NULL, /* OpenSIPS module dependencies */
76+
0, /* load function */
77+
0, /* OpenSIPS module dependencies */
7878
cmds, /* exported functions */
79+
0, /* exported asynchronous functions */
7980
params, /* exported parameters */
8081
0, /* exported statistics */
81-
0, /* exported MI functions */
82+
0, /* exported MI functions */
8283
0, /* exported pseudo-variables */
8384
0, /* exported transformations */
8485
0, /* extra processes */
86+
0, /* module pre-initialization function */
8587
mod_init, /* module initialization function */
8688
(response_function) 0, /* response handling function */
8789
(destroy_function)destroy, /* destroy function */
88-
child_init /* per-child init function */
90+
child_init, /* per-child init function */
91+
0 /* reload-ack function */
8992
};
9093

9194

0 commit comments

Comments
 (0)