Archived
14
0
Fork 0
Commit graph

12 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
rizzo
80782b1b45 normalize code preparing for loader changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19220 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11 15:19:34 +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
bweschke
c90723f092 More code optimizations. Thanks kpfleming!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18025 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06 20:37:29 +00:00
bweschke
0bd5db4f73 Fix a problem where if the channel was hungup during detection, the application wouldn't block indefinitely looking for another frame from that channel. Don't try to do frame size analysis on a frame that isn't voice, only report DEBUG and VERBOSE msgs to the logger channels when the DEBUG and VERBOSE settings are high enough to require it, and some other minor cleanups.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18023 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06 20:23:18 +00:00
rizzo
03817f45e8 Add missing
#include "asterisk.h"  
    ASTERISK_FILE_VERSION(__FILE__, "$Revision$")

to these files.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14714 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-24 15:01:22 +00:00
mogorman
e03764cc6f Changing syntax once again slightly and standardizing
config to other asterisk samples , bug note 6530


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10559 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-20 18:30:49 +00:00
russell
c72e5e1b38 remove the uses of the deprecated STANDARD_LOCAL_USER
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10241 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15 20:11:56 +00:00
mogorman
a6a33b46c2 Now Kevin will be really happy!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10087 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14 23:38:27 +00:00
mogorman
4d6fbdd052 changed naming scheme for variables so it matches
asterisk standard, changed it so it can take frames
 of sizes other than 20ms, allowed for the app to reload
 properly, and finalyl changed sample to general section
 as to follow standards.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10086 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14 23:30:18 +00:00
kpfleming
9c8ab2d165 set properties for new files (i need to get this documented)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9960 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14 18:44:18 +00:00
mogorman
85d32fb41a Commiting 5959 with minor formatting and typo
fixes.  Thanks to all those involved.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9918 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14 16:42:50 +00:00