Browse code

xhttp: updated to the new mod interface

Daniel-Constantin Mierla authored on 27/09/2018 15:50:33 • Victor Seva committed on 28/09/2018 11:03:26
Showing 2 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 # xhttp - Web server for Kamailio
2
-# 
2
+#
3 3
 # WARNING: do not run this directly, it should be run by the master Makefile
4 4
 
5 5
 include ../../Makefile.defs
... ...
@@ -8,6 +8,4 @@ NAME=xhttp.so
8 8
 DEFS +=
9 9
 LIBS +=
10 10
 
11
-DEFS+=-DKAMAILIO_MOD_INTERFACE
12
-
13 11
 include ../../Makefile.modules
... ...
@@ -94,18 +94,16 @@ static param_export_t params[] = {
94 94
 
95 95
 /** module exports */
96 96
 struct module_exports exports= {
97
-	"xhttp",
97
+	"xhttp",         /* module name */
98 98
 	DEFAULT_DLFLAGS, /* dlopen flags */
99
-	cmds,
100
-	params,
101
-	0,          /* exported statistics */
102
-	0  ,        /* exported MI functions */
103
-	mod_pvs,    /* exported pseudo-variables */
104
-	0,          /* extra processes */
105
-	mod_init,   /* module initialization function */
106
-	0,
107
-	0,
108
-	0           /* per-child init function */
99
+	cmds,            /* cmd (cfg function) exports */
100
+	params,          /* param exports */
101
+	0,               /* exported rpc functions */
102
+	mod_pvs,         /* exported pseudo-variables */
103
+	0,               /* response handling function */
104
+	mod_init,        /* module init function */
105
+	0,               /* per-child init function */
106
+	0                /* module destroy function */
109 107
 };
110 108
 
111 109
 static tr_export_t mod_trans[] = {
... ...
@@ -115,8 +113,8 @@ static tr_export_t mod_trans[] = {
115 113
 	{ { 0, 0 }, 0 }
116 114
 };
117 115
 
118
-/** 
119
- * 
116
+/**
117
+ *
120 118
  */
121 119
 static int mod_init(void)
122 120
 {