dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

29 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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 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
citats 00b34f3e0a Remove pthread.h from source. We should be using asterisk/lock.h everywhere instead (except in asterisk/lock.h).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3276 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-22 18:49:00 +00:00
markster 7d00f23ad4 Merge FreeBSD locking fixes (bug #1411)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3176 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-09 01:45:08 +00:00
markster 4b4f3fb740 Minor samples updates
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2611 f38db490-d61c-443f-a65b-d21fe96a405b
2004-04-04 16:33:56 +00:00
markster 9870b2521b Fix various compiler warnings (bug #322)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1570 f38db490-d61c-443f-a65b-d21fe96a405b
2003-09-27 02:45:37 +00:00
markster dbc9edcaac Totally revamp thread debugging to support locating and removing deadlocks
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1310 f38db490-d61c-443f-a65b-d21fe96a405b
2003-08-13 15:25:16 +00:00
markster e4e2b456fd Minor fixes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@936 f38db490-d61c-443f-a65b-d21fe96a405b
2003-04-29 20:30:08 +00:00
markster e643d45303 Fix CNG issues in G.723.1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@921 f38db490-d61c-443f-a65b-d21fe96a405b
2003-04-28 01:13:19 +00:00
markster 95516e2d7d Version 0.3.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@567 f38db490-d61c-443f-a65b-d21fe96a405b
2002-12-11 00:23:03 +00:00
markster 1642b09aba Version 0.1.12 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@446 f38db490-d61c-443f-a65b-d21fe96a405b
2002-05-13 22:29:39 +00:00
markster eb98f78434 Version 0.1.8 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@264 f38db490-d61c-443f-a65b-d21fe96a405b
2001-04-04 22:05:25 +00:00
markster 53e1dc67e1 Version 0.1.7 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@237 f38db490-d61c-443f-a65b-d21fe96a405b
2001-03-11 01:32:24 +00:00
markster 5d1d53514d Version 0.1.4 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@215 f38db490-d61c-443f-a65b-d21fe96a405b
2000-07-25 20:04:15 +00:00
markster 999d3524e2 Version 0.1.2 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@152 f38db490-d61c-443f-a65b-d21fe96a405b
2000-01-02 20:59:00 +00:00
markster 62474f51d0 Version 0.1.1 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135 f38db490-d61c-443f-a65b-d21fe96a405b
1999-12-12 08:49:19 +00:00
markster 09fff5e635 Version 0.1.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87 f38db490-d61c-443f-a65b-d21fe96a405b
1999-12-05 01:40:43 +00:00