Browse code

cnxcc: converted to the new module interface

Victor Seva authored on 27/09/2018 15:28:03
Showing 2 changed files
... ...
@@ -47,7 +47,6 @@ endif
47 47
 DEFS+=$(HIREDISDEFS) $(LEVENTDEFS)
48 48
 LIBS=$(HIREDISLIBS) $(LEVENTLIBS)
49 49
 
50
-DEFS+=-DKAMAILIO_MOD_INTERFACE
51 50
 SERLIBPATH=../../lib
52 51
 SER_LIBS+=$(SERLIBPATH)/srdb1/srdb1
53 52
 include ../../Makefile.modules
... ...
@@ -208,18 +208,16 @@ select_row_t sel_declaration[] = {
208 208
 
209 209
 /** module exports */
210 210
 struct module_exports exports = {
211
-	MODULE_NAME,
211
+	MODULE_NAME,     /* module name */
212 212
 	DEFAULT_DLFLAGS, /* dlopen flags */
213
-	cmds,
214
-	params,
215
-	NULL,          	/* exported statistics */
216
-	NULL, 		    /* exported MI functions */
217
-	mod_pvs,  	    /* exported pseudo-variables */
218
-	NULL,          	/* extra processes */
219
-	__mod_init,   	/* module initialization function */
220
-	NULL,
221
-	NULL,
222
-	__child_init	/* per-child init function */
213
+	cmds,            /* cmd (cfg function) exports */
214
+	params,          /* param exports */
215
+	0,               /* RPC method exports */
216
+	mod_pvs,         /* pseudo-variables exports */
217
+	0,               /* response handling function */
218
+	__mod_init,      /* module init function */
219
+	__child_init,    /* per-child init function */
220
+	0                /* module destroy function */
223 221
 };
224 222
 /* clang-format on */
225 223