Browse code

- dynamic library loading flags can be specific per module - new modules under development requires such features - by default RTLD_NOW is used, see 'man dlopen' for more options - thanks to Bastian Friedrich <bastian.friedrich@collax.com>

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1282 689a6050-402a-0410-94f2-e92a70836424

Daniel-Constantin Mierla authored on 28/11/2006 15:49:10
Showing 60 changed files
... ...
@@ -232,6 +232,7 @@ static param_export_t params[] = {
232 232
 
233 233
 struct module_exports exports= {
234 234
 	"acc",
235
+	DEFAULT_DLFLAGS, /* dlopen flags */
235 236
 	cmds,       /* exported functions */
236 237
 	params,     /* exported params */
237 238
 	0,          /* exported statistics */
... ...
@@ -96,6 +96,7 @@ static param_export_t params[] = {
96 96
 /* Module interface */
97 97
 struct module_exports exports = {
98 98
 	"alias_db", 
99
+	DEFAULT_DLFLAGS, /* dlopen flags */
99 100
 	cmds,       /* Exported functions */
100 101
 	params,     /* Exported parameters */
101 102
 	0,          /* exported statistics */
... ...
@@ -149,6 +149,7 @@ static param_export_t params[] = {
149 149
  */
150 150
 struct module_exports exports = {
151 151
 	"auth", 
152
+	DEFAULT_DLFLAGS, /* dlopen flags */
152 153
 	cmds,
153 154
 	params,
154 155
 	0,          /* exported statistics */
... ...
@@ -143,6 +143,7 @@ static param_export_t params[] = {
143 143
  */
144 144
 struct module_exports exports = {
145 145
 	"auth_db", 
146
+	DEFAULT_DLFLAGS, /* dlopen flags */
146 147
 	cmds,       /* Exported functions */
147 148
 	params,     /* Exported parameters */
148 149
 	0,          /* exported statistics */
... ...
@@ -101,6 +101,7 @@ static param_export_t params[] = {
101 101
  */
102 102
 struct module_exports exports = {
103 103
 	"auth_diameter",
104
+	DEFAULT_DLFLAGS, /* dlopen flags */
104 105
 	cmds,          /* Exported functions */
105 106
 	params,        /* Exported parameters */
106 107
 	0,             /* exported statistics */
... ...
@@ -91,6 +91,7 @@ static param_export_t params[] = {
91 91
  */
92 92
 struct module_exports exports = {
93 93
 	"auth_radius", 
94
+	DEFAULT_DLFLAGS, /* dlopen flags */
94 95
 	cmds,       /* Exported functions */
95 96
 	params,     /* Exported parameters */
96 97
 	0,          /* exported statistics */
... ...
@@ -95,6 +95,7 @@ static param_export_t params[] = {
95 95
 
96 96
 struct module_exports exports = {
97 97
 	"avp_radius", 
98
+	DEFAULT_DLFLAGS, /* dlopen flags */
98 99
 	cmds,      /* Exported commands */
99 100
 	params,    /* Exported parameters */
100 101
 	0,         /* exported statistics */
... ...
@@ -152,6 +152,7 @@ static param_export_t params[] = {
152 152
 
153 153
 struct module_exports exports = {
154 154
 	"avpops",
155
+	DEFAULT_DLFLAGS, /* dlopen flags */
155 156
 	cmds,       /* Exported functions */
156 157
 	params,     /* Exported parameters */
157 158
 	0,          /* exported statistics */
... ...
@@ -166,6 +166,7 @@ static mi_export_t mi_cmds[] = {
166 166
 
167 167
 struct module_exports exports = {
168 168
 	"cpl-c",
169
+	DEFAULT_DLFLAGS, /* dlopen flags */
169 170
 	cmds,     /* Exported functions */
170 171
 	params,   /* Exported parameters */
171 172
 	0,        /* exported statistics */
... ...
@@ -69,6 +69,7 @@ static param_export_t params[] = {
69 69
 
70 70
 struct module_exports exports = {	
71 71
 	"dbtext",
72
+	DEFAULT_DLFLAGS, /* dlopen flags */
72 73
 	cmds,     /* Exported functions */
73 74
 	params,   /* Exported parameters */
74 75
 	0,        /* exported statistics */
... ...
@@ -31,6 +31,7 @@
31 31
 #include <string.h>
32 32
 #include <stdlib.h>
33 33
 
34
+
34 35
 #include "../../sr_module.h"
35 36
 #include "../../dprint.h"
36 37
 #include "../../error.h"
... ...
@@ -108,6 +109,7 @@ static mi_export_t mi_cmds[] = {
108 109
 
109 110
 struct module_exports exports= {
110 111
 	"dialog",        /* module's name */
112
+	DEFAULT_DLFLAGS, /* dlopen flags */
111 113
 	cmds,            /* exported functions */
112 114
 	mod_params,      /* param exports */
113 115
 	mod_stats,       /* exported statistics */
... ...
@@ -109,6 +109,7 @@ static mi_export_t mi_cmds[] = {
109 109
 /** module exports */
110 110
 struct module_exports exports= {
111 111
 	"dispatcher",
112
+	DEFAULT_DLFLAGS, /* dlopen flags */
112 113
 	cmds,
113 114
 	params,
114 115
 	0,          /* exported statistics */
... ...
@@ -80,6 +80,7 @@ static param_export_t params[] = {
80 80
  */
81 81
 struct module_exports exports = {
82 82
 	"diversion", 
83
+	DEFAULT_DLFLAGS, /* dlopen flags */
83 84
 	cmds,       /* Exported functions */
84 85
 	params,     /* Exported parameters */
85 86
 	0,          /* exported statistics */
... ...
@@ -127,6 +127,7 @@ static mi_export_t mi_cmds[] = {
127 127
  */
128 128
 struct module_exports exports = {
129 129
 	"domain",
130
+	DEFAULT_DLFLAGS, /* dlopen flags */
130 131
 	cmds,      /* Exported functions */
131 132
 	params,    /* Exported parameters */
132 133
 	0,         /* exported statistics */
... ...
@@ -135,6 +135,7 @@ static param_export_t params[] = {
135 135
  */
136 136
 struct module_exports exports = {
137 137
 	"domainpolicy", 
138
+	DEFAULT_DLFLAGS, /* dlopen flags */
138 139
 	cmds,      /* exported functions */
139 140
 	params,    /* exported parameters */
140 141
 	0,         /* exported statistics */
... ...
@@ -112,6 +112,7 @@ static param_export_t params[] = {
112 112
  */
113 113
 struct module_exports exports = {
114 114
 	"enum", 
115
+	DEFAULT_DLFLAGS, /* dlopen flags */
115 116
 	cmds,     /* Exported functions */
116 117
 	params,   /* Exported parameters */
117 118
 	0,        /* exported statistics */
... ...
@@ -80,6 +80,7 @@ struct module_exports exec_exports = {
80 80
 struct module_exports exports= {
81 81
 #endif
82 82
 	"exec",
83
+	DEFAULT_DLFLAGS, /* dlopen flags */
83 84
 	cmds,           /* Exported functions */
84 85
 	params,         /* Exported parameters */
85 86
 	0,              /* exported statistics */
... ...
@@ -99,6 +99,7 @@ static mi_export_t mi_cmds[] = {
99 99
 
100 100
 struct module_exports exports = {
101 101
 	"flatstore",
102
+	DEFAULT_DLFLAGS, /* dlopen flags */
102 103
 	cmds,
103 104
 	params,      /*  module parameters */
104 105
 	0,           /* exported statistics */
... ...
@@ -106,6 +106,7 @@ static mi_export_t mi_cmds[] = {
106 106
 
107 107
 struct module_exports exports = {
108 108
 	"gflags",
109
+	DEFAULT_DLFLAGS, /* dlopen flags */
109 110
 	cmds,        /* exported functions */
110 111
 	params,      /* exported parameters */
111 112
 	0,           /* exported statistics */
... ...
@@ -154,6 +154,7 @@ static param_export_t params[] = {
154 154
  */
155 155
 struct module_exports exports = {
156 156
 	"group", 
157
+	DEFAULT_DLFLAGS, /* dlopen flags */
157 158
 	cmds,       /* Exported functions */
158 159
 	params,     /* Exported parameters */
159 160
 	0,          /* exported statistics */
... ...
@@ -81,6 +81,7 @@ static param_export_t params[] = {
81 81
  */
82 82
 struct module_exports exports = {
83 83
 	"group_radius", 
84
+	DEFAULT_DLFLAGS, /* dlopen flags */
84 85
 	cmds,       /* Exported functions */
85 86
 	params,     /* Exported parameters */
86 87
 	0,          /* exported statistics */
... ...
@@ -140,6 +140,7 @@ static mi_export_t mi_cmds[] = {
140 140
 /** module exports */
141 141
 struct module_exports exports= {
142 142
 	"imc",      /* module name */
143
+	DEFAULT_DLFLAGS, /* dlopen flags */
143 144
 	cmds,       /* exported commands */
144 145
 	params,     /* exported parameters */
145 146
 #ifdef STATISTICS
... ...
@@ -168,6 +168,7 @@ static param_export_t params[] = {
168 168
 
169 169
 struct module_exports exports= {
170 170
 	"jabber",
171
+	DEFAULT_DLFLAGS, /* dlopen flags */
171 172
 	cmds,       /* Exported functions */
172 173
 	params,     /* Exported parameters */
173 174
 	0,          /* exported statistics */
... ...
@@ -305,6 +305,7 @@ static mi_export_t mi_cmds[] = {
305 305
  */
306 306
 struct module_exports exports = {
307 307
 	"lcr", 
308
+	DEFAULT_DLFLAGS, /* dlopen flags */
308 309
 	cmds,      /* Exported functions */
309 310
 	params,    /* Exported parameters */
310 311
 	0,         /* exported statistics */
... ...
@@ -108,6 +108,7 @@ static cmd_export_t cmds[] =
108 108
  */
109 109
 struct module_exports exports = {
110 110
 	"mangler",
111
+	DEFAULT_DLFLAGS, /* dlopen flags */
111 112
 	cmds,			/* Exported functions */
112 113
 	params,			/* Exported parameters */
113 114
 	0,				/* exported statistics */
... ...
@@ -78,6 +78,7 @@ struct module_exports maxfwd_exports = {
78 78
 struct module_exports exports= {
79 79
 #endif
80 80
 	"maxfwd",
81
+	DEFAULT_DLFLAGS, /* dlopen flags */
81 82
 	cmds,
82 83
 	params,
83 84
 	0,          /* exported statistics */
... ...
@@ -216,6 +216,7 @@ static param_export_t parameters[] = {
216 216
 
217 217
 struct module_exports exports = {
218 218
     "mediaproxy", // module name
219
+	DEFAULT_DLFLAGS, /* dlopen flags */
219 220
     commands,     // module exported functions
220 221
     parameters,   // module exported parameters
221 222
     NULL,         // exported statistics
... ...
@@ -82,6 +82,7 @@ static param_export_t mi_params[] = {
82 82
 
83 83
 struct module_exports exports = {
84 84
 	"mi_fifo",                     /* module name */
85
+	DEFAULT_DLFLAGS,               /* dlopen flags */
85 86
 	0,                             /* exported functions */
86 87
 	mi_params,                     /* exported parameters */
87 88
 	0,                             /* exported statistics */
... ...
@@ -221,6 +221,7 @@ stat_export_t msilo_stats[] = {
221 221
 /** module exports */
222 222
 struct module_exports exports= {
223 223
 	"msilo",    /* module id */
224
+	DEFAULT_DLFLAGS, /* dlopen flags */
224 225
 	cmds,       /* module's exported functions */
225 226
 	params,     /* module's exported parameters */
226 227
 #ifdef STATISTICS
... ...
@@ -73,6 +73,7 @@ static param_export_t params[] = {
73 73
 
74 74
 struct module_exports exports = {	
75 75
 	"mysql",
76
+	DEFAULT_DLFLAGS, /* dlopen flags */
76 77
 	cmds,
77 78
 	params,          /*  module parameters */
78 79
 	0,               /* exported statistics */
... ...
@@ -352,6 +352,7 @@ static param_export_t params[] = {
352 352
 
353 353
 struct module_exports exports = {
354 354
 	"nathelper",
355
+	DEFAULT_DLFLAGS, /* dlopen flags */
355 356
 	cmds,
356 357
 	params,
357 358
 	0, /* exported statistics */
... ...
@@ -72,6 +72,7 @@ static param_export_t params[] = {
72 72
  */
73 73
 struct module_exports exports = {
74 74
 	"options",       /* Module name */
75
+	DEFAULT_DLFLAGS, /* dlopen flags */
75 76
 	cmds,            /* Exported functions */
76 77
 	params,          /* Exported parameters */
77 78
 	0,               /* exported statistics */
... ...
@@ -112,6 +112,7 @@ static param_export_t params[]={
112 112
 
113 113
 struct module_exports exports = {
114 114
     "osp",
115
+	DEFAULT_DLFLAGS, /* dlopen flags */
115 116
     cmds,
116 117
     params,
117 118
     0,            /* exported statistics */
... ...
@@ -127,6 +127,7 @@ static param_export_t params[]={
127 127
 
128 128
 struct module_exports exports = {
129 129
 	"pa", 
130
+	DEFAULT_DLFLAGS, /* dlopen flags */
130 131
 	cmds,        /* Exported functions */
131 132
 	params,      /* Exported parameters */
132 133
 	0,           /* exported statistics */
... ...
@@ -94,6 +94,7 @@ static param_export_t params[] = {
94 94
  */
95 95
 struct module_exports exports = {
96 96
 	"path", 
97
+	DEFAULT_DLFLAGS, /* dlopen flags */
97 98
 	cmds,       /* Exported functions */
98 99
 	params,     /* Exported parameters */
99 100
 	0,          /* exported statistics */
... ...
@@ -137,6 +137,7 @@ static mi_export_t mi_cmds[] = {
137 137
 
138 138
 struct module_exports exports = {
139 139
 	"pdt",
140
+	DEFAULT_DLFLAGS, /* dlopen flags */
140 141
 	cmds,
141 142
 	params,
142 143
 	0,
... ...
@@ -185,6 +185,7 @@ static mi_export_t mi_cmds[] = {
185 185
 /* Module interface */
186 186
 struct module_exports exports = {
187 187
 	"permissions",
188
+	DEFAULT_DLFLAGS, /* dlopen flags */
188 189
 	cmds,      /* Exported functions */
189 190
 	params,    /* Exported parameters */
190 191
 	0,         /* exported statistics */
... ...
@@ -83,6 +83,7 @@ static param_export_t params[]={
83 83
 
84 84
 struct module_exports exports= {
85 85
 	"pike",
86
+	DEFAULT_DLFLAGS, /* dlopen flags */
86 87
 	cmds,
87 88
 	params,
88 89
 	0,           /* exported statistics */
... ...
@@ -58,6 +58,7 @@ static cmd_export_t cmds[]={
58 58
 
59 59
 struct module_exports exports = {	
60 60
 	"postgres",
61
+	DEFAULT_DLFLAGS, /* dlopen flags */
61 62
 	cmds,
62 63
 	0,   /*  module parameters */
63 64
 	0,   /* exported statistics */
... ...
@@ -121,7 +121,8 @@ static param_export_t params[]={
121 121
 
122 122
 /** module exports */
123 123
 struct module_exports exports= {
124
-	"presence",    /* module name */
124
+	"presence",      /* module name */
125
+	DEFAULT_DLFLAGS, /* dlopen flags */
125 126
 	cmds,       /* exported functions */
126 127
 	params,     /* exported parameters */
127 128
 	0,          /* exported statistics */
... ...
@@ -182,6 +182,7 @@ static param_export_t params[] = {
182 182
  */
183 183
 struct module_exports exports = {
184 184
 	"registrar", 
185
+	DEFAULT_DLFLAGS, /* dlopen flags */
185 186
 	cmds,        /* Exported functions */
186 187
 	params,      /* Exported parameters */
187 188
 	0,           /* exported statistics */
... ...
@@ -121,6 +121,7 @@ static param_export_t params[] ={
121 121
 
122 122
 struct module_exports exports = {
123 123
 	"rr",
124
+	DEFAULT_DLFLAGS, /* dlopen flags */
124 125
 	cmds,        /* Exported functions */
125 126
 	params,      /* Exported parameters */
126 127
 	0,           /* exported statistics */
... ...
@@ -153,6 +153,7 @@ stat_export_t siptrace_stats[] = {
153 153
 /* module exports */
154 154
 struct module_exports exports = {
155 155
 	"siptrace", 
156
+	DEFAULT_DLFLAGS, /* dlopen flags */
156 157
 	cmds,       /* Exported functions */
157 158
 	params,     /* Exported parameters */
158 159
 #ifdef STATISTICS
... ...
@@ -108,6 +108,7 @@ struct module_exports sl_exports = {
108 108
 struct module_exports exports= {
109 109
 #endif
110 110
 	"sl",         /* module's name */
111
+	DEFAULT_DLFLAGS, /* dlopen flags */
111 112
 	cmds,         /* exported functions */
112 113
 	mod_params,   /* param exports */
113 114
 	mod_stats,    /* exported statistics */
... ...
@@ -103,6 +103,7 @@ static param_export_t params[]={
103 103
 
104 104
 struct module_exports exports= {
105 105
 	"sms",
106
+	DEFAULT_DLFLAGS, /* dlopen flags */
106 107
 	cmds,
107 108
 	params,
108 109
 	0,          /* exported statistics */
... ...
@@ -96,6 +96,7 @@ static param_export_t params[] = {
96 96
 /* Module interface */
97 97
 struct module_exports exports = {
98 98
 	"speeddial", 
99
+	DEFAULT_DLFLAGS, /* dlopen flags */
99 100
 	cmds,       /* Exported functions */
100 101
 	params,     /* Exported parameters */
101 102
 	0,          /* exported statistics */
... ...
@@ -116,6 +116,7 @@ static stat_export_t mod_stats[] = {
116 116
 
117 117
 struct module_exports exports= {
118 118
 	"sst",        /* module's name */
119
+	DEFAULT_DLFLAGS, /* dlopen flags */
119 120
 	cmds,         /* exported functions */
120 121
 	mod_params,   /* param exports */
121 122
 	mod_stats,    /* exported statistics */
... ...
@@ -63,6 +63,7 @@ static param_export_t mod_params[]={
63 63
 
64 64
 struct module_exports exports= {
65 65
 	"statistics", /* module's name */
66
+	DEFAULT_DLFLAGS, /* dlopen flags */
66 67
 	cmds,         /* exported functions */
67 68
 	mod_params,   /* param exports */
68 69
 	0,            /* exported statistics */
... ...
@@ -173,6 +173,7 @@ static cmd_export_t cmds[]={
173 173
 
174 174
 struct module_exports exports= {
175 175
 	"textops",  /* module name*/
176
+	DEFAULT_DLFLAGS, /* dlopen flags */
176 177
 	cmds,       /* exported functions */
177 178
 	0,          /* module parameters */
178 179
 	0,          /* exported statistics */
... ...
@@ -192,6 +192,7 @@ static item_export_t mod_items[] = {
192 192
  */
193 193
 struct module_exports exports = {
194 194
 	"tlsops", 
195
+	DEFAULT_DLFLAGS, /* dlopen flags */
195 196
 	cmds,        /* Exported functions */
196 197
 	params,      /* Exported parameters */
197 198
 	0,           /* exported statistics */
... ...
@@ -260,6 +260,7 @@ struct module_exports tm_exports = {
260 260
 struct module_exports exports= {
261 261
 #endif
262 262
 	"tm",      /* module name*/
263
+	DEFAULT_DLFLAGS, /* dlopen flags */
263 264
 	cmds,      /* exported functions */
264 265
 	params,    /* exported variables */
265 266
 	mod_stats, /* exported statistics */
... ...
@@ -109,6 +109,7 @@ static param_export_t params[] = {
109 109
 
110 110
 struct module_exports exports= {
111 111
 	"uac",
112
+	DEFAULT_DLFLAGS, /* dlopen flags */
112 113
 	cmds,       /* exported functions */
113 114
 	params,     /* param exports */
114 115
 	0,          /* exported statistics */
... ...
@@ -91,6 +91,7 @@ static param_export_t params[] = {
91 91
 
92 92
 struct module_exports exports = {
93 93
 	"uac_redirect",
94
+	DEFAULT_DLFLAGS, /* dlopen flags */
94 95
 	cmds,     /* Exported functions */
95 96
 	params,   /* Exported parameters */
96 97
 	0,        /* exported statistics */
... ...
@@ -67,6 +67,7 @@ static param_export_t params[] = {
67 67
 
68 68
 struct module_exports exports = {	
69 69
 	"unixodbc",
70
+	DEFAULT_DLFLAGS, /* dlopen flags */
70 71
 	cmds,
71 72
 	params,     /*  module parameters */
72 73
 	0,          /* exported statistics */
... ...
@@ -82,6 +82,7 @@ static param_export_t params[] = {
82 82
  */
83 83
 struct module_exports exports = {
84 84
 	"uri", 
85
+	DEFAULT_DLFLAGS, /* dlopen flags */
85 86
 	cmds,      /* Exported functions */
86 87
 	params,    /* Exported parameters */
87 88
 	0,         /* exported statistics */
... ...
@@ -131,6 +131,7 @@ static param_export_t params[] = {
131 131
  */
132 132
 struct module_exports exports = {
133 133
 	"uri_db",
134
+	DEFAULT_DLFLAGS, /* dlopen flags */
134 135
 	cmds,      /* Exported functions */
135 136
 	params,    /* Exported parameters */
136 137
 	0,         /* exported statistics */
... ...
@@ -75,6 +75,7 @@ static param_export_t params[] = {
75 75
  */
76 76
 struct module_exports exports = {
77 77
 	"uri_radius", 
78
+	DEFAULT_DLFLAGS, /* dlopen flags */
78 79
 	cmds,       /* Exported functions */
79 80
 	params,     /* Exported parameters */
80 81
 	0,          /* exported statistics */
... ...
@@ -186,6 +186,7 @@ static param_export_t params[] = {
186 186
 
187 187
 struct module_exports exports = {
188 188
 	"usrloc",
189
+	DEFAULT_DLFLAGS, /* dlopen flags */
189 190
 	cmds,       /* Exported functions */
190 191
 	params,     /* Export parameters */
191 192
 	0,          /* exported statistics */
... ...
@@ -79,6 +79,7 @@ static param_export_t params[]={
79 79
 /** module exports */
80 80
 struct module_exports exports= {
81 81
 	"xlog",
82
+	DEFAULT_DLFLAGS, /* dlopen flags */
82 83
 	cmds,
83 84
 	params,
84 85
 	0,          /* exported statistics */
... ...
@@ -156,6 +156,7 @@ static param_export_t params[] = {
156 156
  */
157 157
 struct module_exports exports = {
158 158
 	"xmpp",          /* Module name */
159
+	DEFAULT_DLFLAGS, /* dlopen flags */
159 160
 	cmds,            /* Exported functions */
160 161
 	params,          /* Exported parameters */
161 162
 	0,               /* exported statistics */