Browse code

auth_ephemeral: converted to the new module interface

Federico Cabiddu authored on 27/09/2018 15:17:26 • Victor Seva committed on 28/09/2018 11:03:26
Showing 2 changed files
... ...
@@ -39,6 +39,5 @@ LIBS+= $(TLS_EXTRA_LIBS)
39 39
 # Static linking, if you'd like to use TLS and AUTH_EPHEMERAL at the same time
40 40
 #
41 41
 #LIBS+= /usr/lib/libcurl.a /usr/lib/libssl.a /usr/lib/libcrypto.a -lkrb5 -lidn -lz -lgssapi_krb5 -lrt
42
-DEFS+=-DKAMAILIO_MOD_INTERFACE
43 42
 
44 43
 include ../../Makefile.modules
... ...
@@ -107,14 +107,12 @@ struct module_exports exports=
107 107
 	DEFAULT_DLFLAGS,	/* dlopen flags */
108 108
 	cmds,			/* Exported functions */
109 109
 	params,			/* Exported parameters */
110
-	0,			/* exported statistics */
111
-	0,			/* exported MI functions */
110
+	0,			/* exported RPC methods */
112 111
 	0,			/* exported pseudo-variables */
113
-	0,			/* extra processes */
114
-	mod_init,		/* module initialization function */
115 112
 	0,			/* response function */
116
-	destroy,		/* destroy function */
117
-	0			/* child initialization function */
113
+	mod_init,		/* module initialization function */
114
+	0,			/* child initialization function */
115
+	destroy			/* destroy function */
118 116
 };
119 117
 
120 118
 static int mod_init(void)
... ...
@@ -449,4 +447,4 @@ int mod_register(char *path, int *dlflags, void *p1, void *p2)
449 447
 {
450 448
 	sr_kemi_modules_add(sr_kemi_auth_ephemeral_exports);
451 449
 	return 0;
452
-}
453 450
\ No newline at end of file
451
+}