Browse code

phonenum: updated to the new mod interface

Victor Seva authored on 28/09/2018 08:51:17
Showing 2 changed files
... ...
@@ -11,7 +11,7 @@ LIB_DIR = /opt/local/lib
11 11
 
12 12
 LIBS= -L${LIB_DIR} cphonenumber.o -lphonenumber -lgeocoding
13 13
 
14
-DEFS+= -I/opt/local/include -DKAMAILIO_MOD_INTERFACE
14
+DEFS+= -I/opt/local/include
15 15
 
16 16
 CXXFLAGS=$(CFLAGS:-Wno-deprecated option=)
17 17
 CXXFLAGS+=-Wno-write-strings -Wno-deprecated -Wno-unused-function -Wno-sign-compare -Wno-strict-aliasing
... ...
@@ -68,18 +68,16 @@ static param_export_t params[]={
68 68
 };
69 69
 
70 70
 struct module_exports exports = {
71
-	"phonenum",
71
+	"phonenum",      /* module name */
72 72
 	DEFAULT_DLFLAGS, /* dlopen flags */
73
-	cmds,            /* exported config functions */
74
-	params,          /* exported config parameters */
75
-	0,
76
-	0,              /* exported MI functions */
77
-	mod_pvs,        /* exported pseudo-variables */
78
-	0,              /* extra processes */
79
-	mod_init,       /* module initialization function */
80
-	0,              /* response function */
81
-	mod_destroy,    /* destroy function */
82
-	0               /* per child init function */
73
+	cmds,            /* cmd (cfg function) exports */
74
+	params,          /* param exports */
75
+	0,               /* RPC method exports */
76
+	mod_pvs,         /* pseudo-variables exports */
77
+	0,               /* response handling function */
78
+	mod_init,        /* module init function */
79
+	0,               /* per-child init function */
80
+	mod_destroy      /* module destroy function */
83 81
 };
84 82
 /* clang-format on */
85 83