Browse code

rtpengine: updated to the new mod interface

Victor Seva authored on 28/09/2018 08:56:04
Showing 2 changed files
... ...
@@ -5,8 +5,6 @@ auto_gen=
5 5
 NAME=rtpengine.so
6 6
 LIBS=
7 7
 
8
-DEFS+=-DKAMAILIO_MOD_INTERFACE
9
-
10 8
 SERLIBPATH=../../lib
11 9
 SER_LIBS+=$(SERLIBPATH)/srdb1/srdb1
12 10
 include ../../Makefile.modules
... ...
@@ -450,18 +450,16 @@ static param_export_t params[] = {
450 450
 };
451 451
 
452 452
 struct module_exports exports = {
453
-	"rtpengine",
453
+	"rtpengine",     /* module name */
454 454
 	DEFAULT_DLFLAGS, /* dlopen flags */
455
-	cmds,
456
-	params,
457
-	0,           /* exported statistics */
458
-	0,           /* exported MI functions */
459
-	mod_pvs,     /* exported pseudo-variables */
460
-	0,           /* extra processes */
461
-	mod_init,
462
-	0,           /* reply processing */
463
-	mod_destroy, /* destroy function */
464
-	child_init
455
+	cmds,            /* cmd (cfg function) exports */
456
+	params,          /* param exports */
457
+	0,               /* RPC method exports */
458
+	mod_pvs,         /* pseudo-variables exports */
459
+	0,               /* response handling function */
460
+	mod_init,        /* module init function */
461
+	child_init,      /* per-child init function */
462
+	mod_destroy      /* module destroy function */
465 463
 };
466 464
 
467 465
 /* check if the node is already queried */