Browse code

core, lib, modules: restructured source code tree

- new folder src/ to hold the source code for main project applications
- main.c is in src/
- all core files are subfolder are in src/core/
- modules are in src/modules/
- libs are in src/lib/
- application Makefiles are in src/
- application binary is built in src/ (src/kamailio)

Daniel-Constantin Mierla authored on 07/12/2016 11:03:51
Showing 4324 changed files
1 1
similarity index 100%
2 2
rename from Makefile
3 3
rename to src/Makefile
4 4
similarity index 100%
5 5
rename from Makefile.cfg
6 6
rename to src/Makefile.cfg
7 7
similarity index 100%
8 8
rename from Makefile.defs
9 9
rename to src/Makefile.defs
10 10
similarity index 100%
11 11
rename from Makefile.dirs
12 12
rename to src/Makefile.dirs
13 13
similarity index 100%
14 14
rename from Makefile.groups
15 15
rename to src/Makefile.groups
16 16
similarity index 100%
17 17
rename from Makefile.libs
18 18
rename to src/Makefile.libs
19 19
similarity index 100%
20 20
rename from Makefile.modules
21 21
rename to src/Makefile.modules
22 22
similarity index 100%
23 23
rename from Makefile.radius
24 24
rename to src/Makefile.radius
25 25
similarity index 100%
26 26
rename from Makefile.rules
27 27
rename to src/Makefile.rules
28 28
similarity index 100%
29 29
rename from Makefile.shared
30 30
rename to src/Makefile.shared
31 31
similarity index 100%
32 32
rename from Makefile.sources
33 33
rename to src/Makefile.sources
34 34
similarity index 100%
35 35
rename from Makefile.targets
36 36
rename to src/Makefile.targets
37 37
similarity index 100%
38 38
rename from Makefile.utils
39 39
rename to src/Makefile.utils
40 40
similarity index 100%
41 41
rename from action.c
42 42
rename to src/core/action.c
43 43
similarity index 100%
44 44
rename from action.h
45 45
rename to src/core/action.h
46 46
similarity index 100%
47 47
rename from async_task.c
48 48
rename to src/core/async_task.c
49 49
similarity index 100%
50 50
rename from async_task.h
51 51
rename to src/core/async_task.h
52 52
similarity index 100%
53 53
rename from atomic/atomic_alpha.h
54 54
rename to src/core/atomic/atomic_alpha.h
55 55
similarity index 100%
56 56
rename from atomic/atomic_arm.h
57 57
rename to src/core/atomic/atomic_arm.h
58 58
similarity index 100%
59 59
rename from atomic/atomic_common.h
60 60
rename to src/core/atomic/atomic_common.h
61 61
similarity index 100%
62 62
rename from atomic/atomic_mips2.h
63 63
rename to src/core/atomic/atomic_mips2.h
64 64
similarity index 100%
65 65
rename from atomic/atomic_native.h
66 66
rename to src/core/atomic/atomic_native.h
67 67
similarity index 100%
68 68
rename from atomic/atomic_ppc.h
69 69
rename to src/core/atomic/atomic_ppc.h
70 70
similarity index 100%
71 71
rename from atomic/atomic_sparc.h
72 72
rename to src/core/atomic/atomic_sparc.h
73 73
similarity index 100%
74 74
rename from atomic/atomic_sparc64.h
75 75
rename to src/core/atomic/atomic_sparc64.h
76 76
similarity index 100%
77 77
rename from atomic/atomic_unknown.h
78 78
rename to src/core/atomic/atomic_unknown.h
79 79
similarity index 100%
80 80
rename from atomic/atomic_x86.h
81 81
rename to src/core/atomic/atomic_x86.h
82 82
similarity index 100%
83 83
rename from atomic_ops.c
84 84
rename to src/core/atomic_ops.c
85 85
similarity index 100%
86 86
rename from atomic_ops.h
87 87
rename to src/core/atomic_ops.h
88 88
similarity index 100%
89 89
rename from atomic_ops_init.h
90 90
rename to src/core/atomic_ops_init.h
91 91
similarity index 100%
92 92
rename from basex.c
93 93
rename to src/core/basex.c
94 94
similarity index 100%
95 95
rename from basex.h
96 96
rename to src/core/basex.h
97 97
similarity index 100%
98 98
rename from bit_count.c
99 99
rename to src/core/bit_count.c
100 100
similarity index 100%
101 101
rename from bit_count.h
102 102
rename to src/core/bit_count.h
103 103
similarity index 100%
104 104
rename from bit_scan.c
105 105
rename to src/core/bit_scan.c
106 106
similarity index 100%
107 107
rename from bit_scan.h
108 108
rename to src/core/bit_scan.h
109 109
similarity index 100%
110 110
rename from bit_test.h
111 111
rename to src/core/bit_test.h
112 112
similarity index 100%
113 113
rename from ccopts.sh
114 114
rename to src/core/ccopts.sh
115 115
similarity index 100%
116 116
rename from ccver.sh
117 117
rename to src/core/ccver.sh
118 118
similarity index 100%
119 119
rename from cfg.lex
120 120
rename to src/core/cfg.lex
121 121
similarity index 100%
122 122
rename from cfg.y
123 123
rename to src/core/cfg.y
124 124
similarity index 100%
125 125
rename from cfg/cfg.c
126 126
rename to src/core/cfg/cfg.c
127 127
similarity index 100%
128 128
rename from cfg/cfg.h
129 129
rename to src/core/cfg/cfg.h
130 130
similarity index 100%
131 131
rename from cfg/cfg_ctx.c
132 132
rename to src/core/cfg/cfg_ctx.c
133 133
similarity index 100%
134 134
rename from cfg/cfg_ctx.h
135 135
rename to src/core/cfg/cfg_ctx.h
136 136
similarity index 100%
137 137
rename from cfg/cfg_script.c
138 138
rename to src/core/cfg/cfg_script.c
139 139
similarity index 100%
140 140
rename from cfg/cfg_script.h
141 141
rename to src/core/cfg/cfg_script.h
142 142
similarity index 100%
143 143
rename from cfg/cfg_select.c
144 144
rename to src/core/cfg/cfg_select.c
145 145
similarity index 100%
146 146
rename from cfg/cfg_select.h
147 147
rename to src/core/cfg/cfg_select.h
148 148
similarity index 100%
149 149
rename from cfg/cfg_struct.c
150 150
rename to src/core/cfg/cfg_struct.c
151 151
similarity index 100%
152 152
rename from cfg/cfg_struct.h
153 153
rename to src/core/cfg/cfg_struct.h
154 154
similarity index 100%
155 155
rename from cfg_core.c
156 156
rename to src/core/cfg_core.c
157 157
similarity index 100%
158 158
rename from cfg_core.h
159 159
rename to src/core/cfg_core.h
160 160
similarity index 100%
161 161
rename from cfg_parser.c
162 162
rename to src/core/cfg_parser.c
163 163
similarity index 100%
164 164
rename from cfg_parser.h
165 165
rename to src/core/cfg_parser.h
166 166
similarity index 100%
167 167
rename from char_msg_val.h
168 168
rename to src/core/char_msg_val.h
169 169
similarity index 100%
170 170
rename from clist.h
171 171
rename to src/core/clist.h
172 172
similarity index 100%
173 173
rename from comp_defs.h
174 174
rename to src/core/comp_defs.h
175 175
similarity index 100%
176 176
rename from compiler_opt.h
177 177
rename to src/core/compiler_opt.h
178 178
similarity index 100%
179 179
rename from config.h
180 180
rename to src/core/config.h
181 181
similarity index 100%
182 182
rename from core_cmd.c
183 183
rename to src/core/core_cmd.c
184 184
similarity index 100%
185 185
rename from core_cmd.h
186 186
rename to src/core/core_cmd.h
187 187
similarity index 100%
188 188
rename from core_stats.h
189 189
rename to src/core/core_stats.h
190 190
similarity index 100%
191 191
rename from counters.c
192 192
rename to src/core/counters.c
193 193
similarity index 100%
194 194
rename from counters.h
195 195
rename to src/core/counters.h
196 196
similarity index 100%
197 197
rename from crc.c
198 198
rename to src/core/crc.c
199 199
similarity index 100%
200 200
rename from crc.h
201 201
rename to src/core/crc.h
202 202
similarity index 100%
203 203
rename from daemonize.c
204 204
rename to src/core/daemonize.c
205 205
similarity index 100%
206 206
rename from daemonize.h
207 207
rename to src/core/daemonize.h
208 208
similarity index 100%
209 209
rename from data_lump.c
210 210
rename to src/core/data_lump.c
211 211
similarity index 100%
212 212
rename from data_lump.h
213 213
rename to src/core/data_lump.h
214 214
similarity index 100%
215 215
rename from data_lump_rpl.c
216 216
rename to src/core/data_lump_rpl.c
217 217
similarity index 100%
218 218
rename from data_lump_rpl.h
219 219
rename to src/core/data_lump_rpl.h
220 220
similarity index 100%
221 221
rename from dns_cache.c
222 222
rename to src/core/dns_cache.c
223 223
similarity index 100%
224 224
rename from dns_cache.h
225 225
rename to src/core/dns_cache.h
226 226
similarity index 100%
227 227
rename from dns_func.c
228 228
rename to src/core/dns_func.c
229 229
similarity index 100%
230 230
rename from dns_func.h
231 231
rename to src/core/dns_func.h
232 232
similarity index 100%
233 233
rename from dns_wrappers.h
234 234
rename to src/core/dns_wrappers.h
235 235
similarity index 100%
236 236
rename from dprint.c
237 237
rename to src/core/dprint.c
238 238
similarity index 100%
239 239
rename from dprint.h
240 240
rename to src/core/dprint.h
241 241
similarity index 100%
242 242
rename from dset.c
243 243
rename to src/core/dset.c
244 244
similarity index 100%
245 245
rename from dset.h
246 246
rename to src/core/dset.h
247 247
similarity index 100%
248 248
rename from dst_blacklist.c
249 249
rename to src/core/dst_blacklist.c
250 250
similarity index 100%
251 251
rename from dst_blacklist.h
252 252
rename to src/core/dst_blacklist.h
253 253
similarity index 100%
254 254
rename from endianness.c
255 255
rename to src/core/endianness.c
256 256
similarity index 100%
257 257
rename from endianness.h
258 258
rename to src/core/endianness.h
259 259
similarity index 100%
260 260
rename from error.c
261 261
rename to src/core/error.c
262 262
similarity index 100%
263 263
rename from error.h
264 264
rename to src/core/error.h
265 265
similarity index 100%
266 266
rename from events.c
267 267
rename to src/core/events.c
268 268
similarity index 100%
269 269
rename from events.h
270 270
rename to src/core/events.h
271 271
similarity index 100%
272 272
rename from fastlock.h
273 273
rename to src/core/fastlock.h
274 274
similarity index 100%
275 275
rename from fix_lumps.h
276 276
rename to src/core/fix_lumps.h
277 277
similarity index 100%
278 278
rename from flags.c
279 279
rename to src/core/flags.c
280 280
similarity index 100%
281 281
rename from flags.h
282 282
rename to src/core/flags.h
283 283
similarity index 100%
284 284
rename from fmsg.c
285 285
rename to src/core/fmsg.c
286 286
similarity index 100%
287 287
rename from fmsg.h
288 288
rename to src/core/fmsg.h
289 289
similarity index 100%
290 290
rename from forward.c
291 291
rename to src/core/forward.c
292 292
similarity index 100%
293 293
rename from forward.h
294 294
rename to src/core/forward.h
295 295
similarity index 100%
296 296
rename from futexlock.h
297 297
rename to src/core/futexlock.h
298 298
similarity index 100%
299 299
rename from globals.h
300 300
rename to src/core/globals.h
301 301
similarity index 100%
302 302
rename from hash_func.c
303 303
rename to src/core/hash_func.c
304 304
similarity index 100%
305 305
rename from hash_func.h
306 306
rename to src/core/hash_func.h
307 307
similarity index 100%
308 308
rename from hashes.h
309 309
rename to src/core/hashes.h
310 310
similarity index 100%
311 311
rename from id.c
312 312
rename to src/core/id.c
313 313
similarity index 100%
314 314
rename from id.h
315 315
rename to src/core/id.h
316 316
similarity index 100%
317 317
rename from io_wait.c
318 318
rename to src/core/io_wait.c
319 319
similarity index 100%
320 320
rename from io_wait.h
321 321
rename to src/core/io_wait.h
322 322
similarity index 100%
323 323
rename from ip_addr.c
324 324
rename to src/core/ip_addr.c
325 325
similarity index 100%
326 326
rename from ip_addr.h
327 327
rename to src/core/ip_addr.h
328 328
similarity index 100%
329 329
rename from kemi.c
330 330
rename to src/core/kemi.c
331 331
similarity index 100%
332 332
rename from kemi.h
333 333
rename to src/core/kemi.h
334 334
similarity index 100%
335 335
rename from list.h
336 336
rename to src/core/list.h
337 337
similarity index 100%
338 338
rename from local_timer.c
339 339
rename to src/core/local_timer.c
340 340
similarity index 100%
341 341
rename from local_timer.h
342 342
rename to src/core/local_timer.h
343 343
similarity index 100%
344 344
rename from lock_alloc.h
345 345
rename to src/core/lock_alloc.h
346 346
similarity index 100%
347 347
rename from lock_ops.c
348 348
rename to src/core/lock_ops.c
349 349
similarity index 100%
350 350
rename from lock_ops.h
351 351
rename to src/core/lock_ops.h
352 352
similarity index 100%
353 353
rename from lock_ops_init.h
354 354
rename to src/core/lock_ops_init.h
355 355
similarity index 100%
356 356
rename from locking.c
357 357
rename to src/core/locking.c
358 358
similarity index 100%
359 359
rename from locking.h
360 360
rename to src/core/locking.h
361 361
similarity index 100%
362 362
rename from lump_struct.h
363 363
rename to src/core/lump_struct.h
364 364
similarity index 100%
365 365
rename from lvalue.c
366 366
rename to src/core/lvalue.c
367 367
similarity index 100%
368 368
rename from lvalue.h
369 369
rename to src/core/lvalue.h
370 370
similarity index 100%
371 371
rename from make_and_install
372 372
rename to src/core/make_and_install
373 373
similarity index 100%
374 374
rename from md5.c
375 375
rename to src/core/md5.c
376 376
similarity index 100%
377 377
rename from md5.h
378 378
rename to src/core/md5.h
379 379
similarity index 100%
380 380
rename from md5utils.c
381 381
rename to src/core/md5utils.c
382 382
similarity index 100%
383 383
rename from md5utils.h
384 384
rename to src/core/md5utils.h
385 385
similarity index 100%
386 386
rename from mem/Readme.tlsf.txt
387 387
rename to src/core/mem/Readme.tlsf.txt
388 388
similarity index 100%
389 389
rename from mem/dl_config.h
390 390
rename to src/core/mem/dl_config.h
391 391
similarity index 100%
392 392
rename from mem/dl_malloc.c
393 393
rename to src/core/mem/dl_malloc.c
394 394
similarity index 100%
395 395
rename from mem/dl_malloc.h
396 396
rename to src/core/mem/dl_malloc.h
397 397
similarity index 100%
398 398
rename from mem/f_malloc.c
399 399
rename to src/core/mem/f_malloc.c
400 400
similarity index 100%
401 401
rename from mem/f_malloc.h
402 402
rename to src/core/mem/f_malloc.h
403 403
similarity index 100%
404 404
rename from mem/ll_malloc.c
405 405
rename to src/core/mem/ll_malloc.c
406 406
similarity index 100%
407 407
rename from mem/ll_malloc.h
408 408
rename to src/core/mem/ll_malloc.h
409 409
similarity index 100%
410 410
rename from mem/mem.c
411 411
rename to src/core/mem/mem.c
412 412
similarity index 100%
413 413
rename from mem/mem.h
414 414
rename to src/core/mem/mem.h
415 415
similarity index 100%
416 416
rename from mem/memapi.h
417 417
rename to src/core/mem/memapi.h
418 418
similarity index 100%
419 419
rename from mem/memcore.h
420 420
rename to src/core/mem/memcore.h
421 421
similarity index 100%
422 422
rename from mem/memdbg.h
423 423
rename to src/core/mem/memdbg.h
424 424
similarity index 100%
425 425
rename from mem/meminfo.h
426 426
rename to src/core/mem/meminfo.h
427 427
similarity index 100%
428 428
rename from mem/memtest.c
429 429
rename to src/core/mem/memtest.c
430 430
similarity index 100%
431 431
rename from mem/pkg.c
432 432
rename to src/core/mem/pkg.c
433 433
similarity index 100%
434 434
rename from mem/pkg.h
435 435
rename to src/core/mem/pkg.h
436 436
similarity index 100%
437 437
rename from mem/q_malloc.c
438 438
rename to src/core/mem/q_malloc.c
439 439
similarity index 100%
440 440
rename from mem/q_malloc.h
441 441
rename to src/core/mem/q_malloc.h
442 442
similarity index 100%
443 443
rename from mem/sf_malloc.c
444 444
rename to src/core/mem/sf_malloc.c
445 445
similarity index 100%
446 446
rename from mem/sf_malloc.h
447 447
rename to src/core/mem/sf_malloc.h
448 448
similarity index 100%
449 449
rename from mem/shm.c
450 450
rename to src/core/mem/shm.c
451 451
similarity index 100%
452 452
rename from mem/shm.h
453 453
rename to src/core/mem/shm.h
454 454
similarity index 100%
455 455
rename from mem/shm_mem.c
456 456
rename to src/core/mem/shm_mem.c
457 457
similarity index 100%