Browse code

userblacklist: adapt to new module interface

Henning Westerholt authored on 27/09/2018 15:26:40 • Victor Seva committed on 28/09/2018 11:03:26
Showing 2 changed files
... ...
@@ -5,8 +5,6 @@ auto_gen=
5 5
 NAME=userblacklist.so
6 6
 LIBS=
7 7
 
8
-DEFS+=-DKAMAILIO_MOD_INTERFACE
9
-
10 8
 SERLIBPATH=../../lib
11 9
 SER_LIBS+=$(SERLIBPATH)/trie/trie
12 10
 SER_LIBS+=$(SERLIBPATH)/srdb1/srdb1
... ...
@@ -160,18 +160,16 @@ static mi_export_t mi_cmds[] = {
160 160
 #endif
161 161
 
162 162
 struct module_exports exports= {
163
-	"userblacklist",
164
-	DEFAULT_DLFLAGS,
165
-	cmds,
166
-	params,
167
-	0,
168
-	0,
169
-	0,
170
-	0,
171
-	mod_init,
172
-	0,
173
-	mod_destroy,
174
-	child_init
163
+	"userblacklist", /* module name */
164
+	DEFAULT_DLFLAGS, /* dlopen flags */
165
+	cmds,            /* cmd (cfg function) exports */
166
+	params,          /* param exports */
167
+	0,               /* RPC method exports */
168
+	0,               /* pseudo-variables exports */
169
+	0,               /* response handling function */
170
+	mod_init,        /* module init function */
171
+	child_init,      /* per-child init function */
172
+	mod_destroy      /* module destroy function */
175 173
 };
176 174
 
177 175
 
... ...
@@ -1236,4 +1234,4 @@ int mod_register(char *path, int *dlflags, void *p1, void *p2)
1236 1234
 {
1237 1235
 	sr_kemi_modules_add(sr_kemi_userblacklist_exports);
1238 1236
 	return 0;
1239
-}
1240 1237
\ No newline at end of file
1238
+}