Browse code

tls: updated to the new mod interface

Daniel-Constantin Mierla authored on 27/09/2018 15:15:21 • Victor Seva committed on 28/09/2018 11:03:26
Showing 2 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 #
2 2
 # TLS module makefile
3 3
 #
4
-# 
4
+#
5 5
 # WARNING: do not run this directly, it should be run by the master Makefile
6 6
 
7 7
 include ../../Makefile.defs
... ...
@@ -33,10 +33,8 @@ LIBS+= $(TLS_EXTRA_LIBS)
33 33
 # dcm: tls.cfg installed via local 'install-cfg' to update paths
34 34
 #MOD_INSTALL_CFGS=tls.cfg
35 35
 
36
-DEFS+=-DKAMAILIO_MOD_INTERFACE
37 36
 include ../../Makefile.modules
38 37
 
39
-
40 38
 install-tls-cert: $(cfg_prefix)/$(cfg_dir)
41 39
 	MAIN_NAME=$(MAIN_NAME) ./tls_cert.sh -d $(cfg_prefix)/$(cfg_dir)
42 40
 
... ...
@@ -244,18 +244,16 @@ static param_export_t params[] = {
244 244
  * Module interface
245 245
  */
246 246
 struct module_exports exports = {
247
-	"tls",
247
+	"tls",           /* module name */
248 248
 	DEFAULT_DLFLAGS, /* dlopen flags */
249
-	cmds,        /* Exported functions */
250
-	params,      /* Exported parameters */
251
-	0,           /* exported statistics */
252
-	0,           /* exported MI functions */
253
-	tls_pv,      /* exported pseudo-variables */
254
-	0,           /* extra processes */
255
-	mod_init,    /* module initialization function */
256
-	0,           /* response function */
257
-	destroy,     /* destroy function */
258
-	mod_child    /* child initialization function */
249
+	cmds,            /* exported functions */
250
+	params,          /* exported parameters */
251
+	0,               /* exported rpc command */
252
+	tls_pv,          /* exported pseudo-variables */
253
+	0,               /* response handling function */
254
+	mod_init,        /* module init function */
255
+	mod_child,       /* child initi function */
256
+	destroy          /* destroy function */
259 257
 };
260 258
 
261 259