Browse code

permissions: converted to the new module interface

Mikko Lehto authored on 27/09/2018 15:00:46 • Victor Seva committed on 28/09/2018 11:03:26
Showing 2 changed files
... ...
@@ -8,8 +8,6 @@ auto_gen=
8 8
 NAME=permissions.so
9 9
 LIBS=
10 10
 
11
-DEFS+=-DKAMAILIO_MOD_INTERFACE
12
-
13 11
 SERLIBPATH=../../lib
14 12
 SER_LIBS+=$(SERLIBPATH)/srdb1/srdb1
15 13
 include ../../Makefile.modules
... ...
@@ -189,18 +189,16 @@ static param_export_t params[] = {
189 189
 
190 190
 /* Module interface */
191 191
 struct module_exports exports = {
192
-	"permissions",
192
+	"permissions",   /* module name */
193 193
 	DEFAULT_DLFLAGS, /* dlopen flags */
194
-	cmds,      /* Exported functions */
195
-	params,    /* Exported parameters */
196
-	0,         /* exported statistics */
197
-	0,         /* exported MI functions */
198
-	0,         /* exported pseudo-variables */
199
-	0,         /* extra processes */
200
-	mod_init,  /* module initialization function */
201
-	0,         /* response function */
202
-	mod_exit,  /* destroy function */
203
-	child_init /* child initialization function */
194
+	cmds,            /* Exported functions */
195
+	params,          /* Exported parameters */
196
+	0,               /* RPC method exports */
197
+	0,               /* exported pseudo-variables */
198
+	0,               /* response function */
199
+	mod_init,        /* module initialization function */
200
+	child_init,      /* child initialization function */
201
+	mod_exit         /* destroy function */
204 202
 };
205 203
 
206 204