Browse code

module version checking introduced

Jiri Kuthan authored on 27/04/2003 18:17:23
Showing 23 changed files
... ...
@@ -58,6 +58,8 @@
58 58
 #include <radiusclient.h>
59 59
 #endif
60 60
 
61
+MODULE_VERSION
62
+
61 63
 struct tm_binds tmb;
62 64
 
63 65
 static int mod_init( void );
... ...
@@ -46,6 +46,8 @@
46 46
 #include "challenge.h"
47 47
 #include "api.h"
48 48
 
49
+MODULE_VERSION
50
+
49 51
 
50 52
 #define RAND_SECRET_LEN 32
51 53
 
... ...
@@ -45,6 +45,8 @@
45 45
 #include "authorize.h"
46 46
 #include "../auth/api.h"
47 47
 
48
+MODULE_VERSION
49
+
48 50
 
49 51
 /*
50 52
  * Module destroy function prototype
... ...
@@ -46,6 +46,8 @@
46 46
 #include "authorize.h"
47 47
 #include <radiusclient.h>
48 48
 
49
+MODULE_VERSION
50
+
49 51
 pre_auth_f pre_auth_func = 0;   /* Pre authorization function from auth module */
50 52
 post_auth_f post_auth_func = 0; /* Post authorization function from auth module */
51 53
 
... ...
@@ -42,6 +42,8 @@
42 42
 #include "dbtext.h"
43 43
 #include "dbt_lib.h"
44 44
 
45
+MODULE_VERSION
46
+
45 47
 static int mod_init(void);
46 48
 void destroy(void);
47 49
 
... ...
@@ -49,6 +49,7 @@ static int mod_init(void);
49 49
 static void destroy(void);
50 50
 static int child_init(int rank);
51 51
 
52
+MODULE_VERSION
52 53
 
53 54
 /*
54 55
  * Module parameter variables
... ...
@@ -38,6 +38,9 @@
38 38
 #include "../../sr_module.h"
39 39
 #include "../../error.h"
40 40
 #include "enum.h"
41
+
42
+MODULE_VERSION
43
+
41 44
 /*
42 45
  * Module initialization function prototype
43 46
  */
... ...
@@ -45,6 +45,8 @@
45 45
 #include "kill.h"
46 46
 #include "exec_hf.h"
47 47
 
48
+MODULE_VERSION
49
+
48 50
 unsigned int time_to_kill=0;
49 51
 
50 52
 static int mod_init( void );
... ...
@@ -47,6 +47,8 @@
47 47
 #include "group_mod.h"
48 48
 #include "group.h"
49 49
 
50
+MODULE_VERSION
51
+
50 52
 
51 53
 /*
52 54
  * Module destroy function prototype
... ...
@@ -43,6 +43,7 @@
43 43
 #include "grouprad_mod.h"
44 44
 #include "group.h"
45 45
 
46
+MODULE_VERSION
46 47
 
47 48
 static int mod_init(void); /* Module initialization function */
48 49
 static int hf_fixup(void** param, int param_no); /* Header field fixup */
... ...
@@ -47,6 +47,8 @@
47 47
 #include "../../mem/mem.h"
48 48
 #include "mf_funcs.h"
49 49
 
50
+MODULE_VERSION
51
+
50 52
 
51 53
 static int fixup_maxfwd_header(void** param, int param_no);
52 54
 static int w_process_maxfwd_header(struct sip_msg* msg,char* str,char* str2);
... ...
@@ -117,6 +117,8 @@
117 117
 		} \
118 118
 	}
119 119
 
120
+MODULE_VERSION
121
+
120 122
 /** database connection */
121 123
 db_con_t *db_con = NULL;
122 124
 
... ...
@@ -37,6 +37,8 @@
37 37
 #include "../../sr_module.h"
38 38
 #include "dbase.h"
39 39
 
40
+MODULE_VERSION
41
+
40 42
 
41 43
 static int mod_init(void);
42 44
 
... ...
@@ -39,6 +39,8 @@
39 39
 #include "dlist.h"
40 40
 #include "../../error.h"
41 41
 
42
+MODULE_VERSION
43
+
42 44
 
43 45
 static int mod_init(void);
44 46
 static void destroy(void);
... ...
@@ -34,12 +34,14 @@
34 34
 #include "parse_config.h"
35 35
 #include "../../parser/parse_from.h"
36 36
 
37
+MODULE_VERSION
38
+
37 39
 rule	*allow_rules = NULL, *deny_rules = NULL;
38 40
 
39 41
 /* Exported functions */
40 42
 static cmd_export_t cmds[] = {
41
-        {"allow_routing", allow_routing, 0, 0},
42
-        {0, 0, 0, 0}
43
+        {"allow_routing", allow_routing, 0, 0, REQUEST_ROUTE},
44
+        {0, 0, 0, 0, 0}
43 45
 };
44 46
 
45 47
 /* Module interface */
... ...
@@ -51,6 +51,8 @@
51 51
 #include "ip_tree.h"
52 52
 #include "pike_funcs.h"
53 53
 
54
+MODULE_VERSION
55
+
54 56
 
55 57
 
56 58
 static int pike_init(void);
... ...
@@ -46,6 +46,8 @@
46 46
 #include "save.h"
47 47
 #include "lookup.h"
48 48
 
49
+MODULE_VERSION
50
+
49 51
 
50 52
 static int mod_init(void);                           /* Module init function */
51 53
 static int domain_fixup(void** param, int param_no); /* Fixup that converts domain name */
... ...
@@ -49,6 +49,8 @@ int append_fromtag = 1;
49 49
 int enable_double_rr = 1; /* Enable using of 2 RR by default */
50 50
 int enable_full_lr = 0;   /* Disabled by default */
51 51
 
52
+MODULE_VERSION;
53
+
52 54
 static int mod_init(void);
53 55
 static int str_fixup(void** param, int param_no);
54 56
 
... ...
@@ -69,6 +69,8 @@
69 69
 #include "sl_stats.h"
70 70
 #include "sl_funcs.h"
71 71
 
72
+MODULE_VERSION
73
+
72 74
 
73 75
 static int w_sl_send_reply(struct sip_msg* msg, char* str, char* str2);
74 76
 static int w_sl_reply_error(struct sip_msg* msg, char* str, char* str2);
... ...
@@ -66,6 +66,8 @@
66 66
 #include <sys/types.h> /* for regex */
67 67
 #include <regex.h>
68 68
 
69
+MODULE_VERSION
70
+
69 71
 static int search_f(struct sip_msg*, char*, char*);
70 72
 static int replace_f(struct sip_msg*, char*, char*);
71 73
 static int remove_hf_f(struct sip_msg* msg, char* str_hf, char* foo);
... ...
@@ -46,6 +46,8 @@
46 46
 #include "uri_mod.h"
47 47
 #include "checks.h"
48 48
 
49
+MODULE_VERSION
50
+
49 51
 
50 52
 static void destroy(void);       /* Module destroy function */
51 53
 static int child_init(int rank); /* Per-child initialization function */
... ...
@@ -38,6 +38,8 @@
38 38
 #include "urirad_mod.h"
39 39
 #include "checks.h"
40 40
 
41
+MODULE_VERSION
42
+
41 43
 
42 44
 static int mod_init(void); /* Module initialization function */
43 45
 
... ...
@@ -51,6 +51,8 @@
51 51
 #include "ul_fifo.h"
52 52
 #include "notify.h"
53 53
 
54
+MODULE_VERSION
55
+
54 56
 
55 57
 static int mod_init(void);                          /* Module initialization function */
56 58
 static void destroy(void);                          /* Module destroy function */