Browse code

registrar: updated to the new mod interface

Daniel-Constantin Mierla authored on 28/09/2018 10:02:20 • Victor Seva committed on 28/09/2018 11:03:26
Showing 2 changed files
... ...
@@ -9,8 +9,6 @@ auto_gen=
9 9
 NAME=registrar.so
10 10
 LIBS=
11 11
 
12
-DEFS+=-DKAMAILIO_MOD_INTERFACE
13
-
14 12
 SERLIBPATH=../../lib
15 13
 SER_LIBS+=$(SERLIBPATH)/srutils/srutils
16 14
 include ../../Makefile.modules
... ...
@@ -254,18 +254,16 @@ stat_export_t mod_stats[] = {
254 254
  * Module exports structure
255 255
  */
256 256
 struct module_exports exports = {
257
-	"registrar",
257
+	"registrar", /* module name */
258 258
 	DEFAULT_DLFLAGS, /* dlopen flags */
259
-	cmds,        /* Exported functions */
260
-	params,      /* Exported parameters */
261
-	mod_stats,   /* exported statistics */
262
-	0,           /* exported MI functions */
259
+	cmds,        /* exported functions */
260
+	params,      /* exported parameters */
261
+	0,           /* exported rpc functions */
263 262
 	mod_pvs,     /* exported pseudo-variables */
264
-	0,           /* extra processes */
263
+	0,           /* response handling function */
265 264
 	mod_init,    /* module initialization function */
266
-	0,
267
-	mod_destroy, /* destroy function */
268
-	child_init,  /* Per-child init function */
265
+	child_init,  /* per-child init function */
266
+	mod_destroy  /* destroy function */
269 267
 };
270 268
 
271 269