rizzo
3664249356
This rather large commit changes the way modules are loaded.
...
As partly documented in loader.c and include/asterisk/module.h,
modules are now expected to return all of their methods and flags
into a structure 'mod_data', and are normally loaded with RTLD_NOW
| RTLD_LOCAL, so symbols are resolved immediately and conflicts
should be less likely. Only in a small number of cases (res_*,
typically) modules are loaded RTLD_GLOBAL, so they can export
symbols.
The core of the change is only the two files loader.c and
include/asterisk/module.h, all the rest is simply adaptation of the
existing modules to the new API, a rather mechanical (but believe
me, time and finger-consuming!) process whose detail you can figure
out by svn diff'ing any single module.
Expect some minor compilation issue after this change, please
report it on mantis http://bugs.digium.com/view.php?id=6968
so we collect all the feedback in one place.
I am just sorry that this change missed SVN version number 20000!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20003 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14 14:08:19 +00:00
kpfleming
e4880150b1
since the module API is changing, it's a good time to const-ify the description() and key() return values
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18552 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-08 22:01:19 +00:00
kpfleming
f1822bc2a6
merge rizzo's codec module rework (very similar to the format module rework)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18541 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-08 21:40:57 +00:00
file
2ab8fe16e4
Add more 64-bit detection goodness (issue #6850 reported by evilbunny)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16564 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30 21:57:49 +00:00
rizzo
0901d3a59a
Bring in the new loader code as described in mantis #4377
...
and updated to today's version.
The core of the patch is only two files, loader.c
and include/asterisk/module.h, with the other files
touched only to adapt non-standard usages of the
reference counts and localuser lists.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15784 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28 21:15:10 +00:00
kpfleming
5ba06203e6
revert loader changes that have clearly not undergone adequate testing before commit
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14952 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-25 23:22:44 +00:00
tilghman
2fa222dfb9
Bug 4377 - Round 2 of the loader updates
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14886 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-25 06:02:46 +00:00
mattf
3a7fb44834
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14001 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-21 19:28:12 +00:00
tilghman
c964b7ebf6
Bug 6709 - Simplify extensive embedded ifneq logic (and fix missing endif's)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12714 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-13 05:24:13 +00:00
russell
71bef7bacc
Merged revisions 12577 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r12577 | russell | 2006-03-12 12:57:37 -0500 (Sun, 12 Mar 2006) | 2 lines
fix build on parisc (issue #6704 )
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12610 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-12 18:07:23 +00:00
kpfleming
298fa6c9e1
merge rizzo's patch to make compiler warnings stop the build, and fix a bunch of warnings found
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10805 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-22 22:53:49 +00:00
kpfleming
8d844f5bf8
set proper mime-type and eol-style on all files
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9991 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14 19:14:15 +00:00
russell
9189fa7aa5
fix codec_ilbc.so build - it would build before, but libilbc.a was not linked
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9732 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-13 01:58:33 +00:00
kpfleming
e217105bfc
ensure that dependencies are rebuilt after 'make update' so that builds don't break when files are removed/renamed
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9691 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-12 16:52:42 +00:00
kpfleming
7efd245a3a
don't blow up if multiple copies of the headers are found
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9628 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 20:48:48 +00:00
kpfleming
af19357c5d
use auto-build for codecs
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9566 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 17:41:36 +00:00
kpfleming
7acc893dad
fix compiler warnings
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9468 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 03:13:25 +00:00
mattf
00dd1704f1
Lots of little fixes for doing MSVC compiling codecs in windows ( #6022 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9450 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-10 23:37:27 +00:00
mogorman
4ef13bdcda
Allows for user to uninstall asterisk binaries
...
bug 6177
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9052 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-01 18:39:41 +00:00
russell
52fb581494
conversions to use allocation wrappers (issue #6277 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8381 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 08:45:39 +00:00
mattf
8243b0f682
fix for codec_gsm on ia64 ( #6294 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8361 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-20 23:28:37 +00:00
russell
2e857ae5e5
formatting and doxygen fixes (issue #6300 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8360 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-20 23:23:00 +00:00
russell
a1447ba856
remove redundant CFLAGS for BSD which are already set in the main Makefile (issue #6250 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8101 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-16 17:51:35 +00:00
russell
34b781be4c
use the system libgsm if available (issue #5434 , modified to still work with builtin libgsm)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7539 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-20 08:16:53 +00:00
kpfleming
24c1e3c222
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7221 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29 18:24:39 +00:00
kpfleming
6c54a7cf87
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7220 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29 18:09:49 +00:00
kpfleming
ccc2fc8a31
issue #5569 minus lock.h changes
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7024 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08 04:13:19 +00:00
kpfleming
ba59f0a01e
issue #5572
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7018 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08 03:31:45 +00:00
russell
d3ddc001a2
issue #5605
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6979 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-06 15:09:47 +00:00
kpfleming
4d4023555b
issue #4678
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6936 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-01 21:53:30 +00:00
russell
4cc87ee6e1
clean up a lot of doxygen errors and warnings (issue #5522 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6865 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26 23:11:36 +00:00
russell
bb65d2e30a
more doxygenification (issue #5513 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6852 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26 13:03:17 +00:00
kpfleming
95fe2b8fd4
update MANY more files with proper copyright/license info (thanks Ian!)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6596 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14 20:46:50 +00:00
russell
59f8aa69fa
look in CROSS_COMPILE_TARGET for speex headers (issue #5118 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6514 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-05 15:48:47 +00:00
kpfleming
a19e58fdd5
correct Makefile errors (issue #5072 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6475 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-31 21:29:58 +00:00
kpfleming
475a3fdb24
clean up, use make functions instead of subshells, remove unused stuff
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6449 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-30 02:54:02 +00:00
kpfleming
74958e6720
update to use Speex 1.1.x features and doc cleanups (issue #4755 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6426 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-26 20:14:06 +00:00
kpfleming
c456de4ee3
use memmove() when memory regions might overlap (issue #4957 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6372 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-23 01:52:38 +00:00
kpfleming
20933df538
support DTX and CNG in speex (bug #4608 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6113 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-12 22:20:16 +00:00
kpfleming
6a802ed569
various speex fixes (bug #4253 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5964 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-21 23:16:32 +00:00
kpfleming
e4c73c5b8d
move tools used during build into build_tools subdirectory
...
clean up Makefile headers
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5942 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-20 17:26:08 +00:00
markster
8526898716
Fix ipaq build (bug #4545 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5937 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-18 17:54:15 +00:00
kpfleming
c8c2a68e9e
fix version tag macro calls
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5869 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06 23:12:05 +00:00
kpfleming
6f0f46299c
more file version tags
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5866 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06 22:12:19 +00:00
kpfleming
7998612185
don't define a local function with the same name as a library function (bug #4239 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5663 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-15 03:18:16 +00:00
mattf
bafac20626
Makefile update for codec_gsm.c to cross compile for powerpc (bug #4228 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5645 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-13 14:59:01 +00:00
mattf
e5bd600fd7
Memory leak fixes Bug #4216
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5638 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-12 17:40:44 +00:00
kpfleming
bef71744f4
fix various compiler warnings
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5491 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-21 06:30:23 +00:00
kpfleming
31e8dcf4fe
use double-quotes instead of angle-brackets for non-system include files (bug #4058 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5490 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-21 06:02:45 +00:00
russell
382d0f9e61
show correct codec in verbose messages (bug #4008 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5452 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-12 02:41:29 +00:00