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
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
tilghman
ff343139b2
Shouldn't have been a public function
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9801 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-13 20:55:13 +00:00
russell
4c6776c6d7
remove LOCAL_USER_ACF_ADD since it is now the same as LOCAL_USER_ADD
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9800 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-13 20:12:50 +00:00
kpfleming
5d9ed5739a
major dialplan functions update
...
deprecate LANGUAGE() and MUSICCLASS(), in favor of CHANNEL()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9674 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-12 04:28:58 +00:00
russell
252fb982f4
on this pass, only remove duplicate log messages
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8403 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 20:57:06 +00:00
russell
b14bdc5a12
revert my pass through the tree to remove checks of the result of ast_strdupa
...
(revisions 8378 through 8381)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8387 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 17:50:04 +00:00
russell
3f2c7248c6
remove lots of useless checks of the result of ast_strdupa
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8379 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 08:13:12 +00:00
russell
ab6566173e
update doxygen docs to specify authors
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7682 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-30 21:18:06 +00:00
tilghman
1475cfca95
Merged revisions 7608 via svnmerge from
...
/branches/1.2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7609 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-23 06:39:44 +00:00
russell
cfb1ef4712
convert most of the option_*'s to a single ast_flags structure. Also, fix some
...
formatting, remove some unnecessary casts, and other little code cleanups.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7331 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-04 20:40:46 +00:00
russell
8e67fa9daa
convert VMCOUNT function to use new app args parsing macros (issue #5688 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7235 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-30 19:20:28 +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
twisted
1db2b873dc
issue #5795
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7139 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-20 05:22:26 +00:00
russell
465d1d7712
make app_queue 1.2 jump compliant (issue #5580 )
...
add missing includes of stdio.h
remove some unused and duplicate headers
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7026 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08 04:48:00 +00:00
russell
4eff003f9d
issue #5625
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6985 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-06 19:36:27 +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
2a1fd152ed
remove unnecessary checks before calls to ast_strlen_zero
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6864 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26 19:48:14 +00:00
russell
2c3b3edc86
Doxygen documentation update from oej (issue #5505 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6847 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-24 20:12:06 +00:00
russell
58818426d6
Massive cleanups to applications for LOCAL_USER handling and some other things.
...
In general, LOCAL_USER_ADD/REMOVE should be the first/last thing called in an
application. An exception is if there is some *fast* setup code that might
halt the execution of the application, such as checking to see if an argument
exists.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6832 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-19 18:19:02 +00:00
russell
2c83f05ebb
it's a good idea to unregister everything before calling STANDARD_HANGUP_LOCALUSERS
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6828 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-18 22:52:21 +00:00
kpfleming
e6a17759d8
add VMCOUNT() function to replace HasVoicemail/HasNewVoicemail apps (issue #5335 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6731 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-05 01:37:48 +00:00
kpfleming
f89c44df03
more license/copyright header updates (thanks Ian!)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6618 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-15 15:44:26 +00:00
kpfleming
a21860310e
convert a bunch of apps to use ast_goto_if_exists() (issue #5138 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6533 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-07 19:13:00 +00:00
kpfleming
8dc28b2439
the last round of file version tags
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5867 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06 22:39:32 +00:00
kpfleming
e500673791
major Makefile and build process improvements, including removal of all hardcoded paths (modules must now use run-time paths as they should) (bug #4116 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5855 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06 03:04:58 +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
7288b1ced0
update copyright headers for 2005
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4868 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-21 07:06:25 +00:00
markster
6f30a687ba
Add app_hasnewvoicemail
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3906 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-03 21:23:54 +00:00
citats
38c6530b2a
Fix HasVoicemail so it can parse all arguments correctly (bug 2559)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3890 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-03 05:38:27 +00:00
markster
6868babd22
Huge callerid rework (might break H.323, others)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3874 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-02 00:58:31 +00:00
markster
59d780973e
Merge rgagnon's pedantic string checks (apps a-m, bug #2035 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3428 f38db490-d61c-443f-a65b-d21fe96a405b
2004-07-14 07:22:30 +00:00
citats
31e064cf03
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@3277 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-22 19:32:52 +00:00
markster
b20ae7f621
Rid compiler warning, make information meaningful in sip debug for codecs
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2844 f38db490-d61c-443f-a65b-d21fe96a405b
2004-05-01 20:59:37 +00:00
citats
4af43a84cb
Add HasVoicemail application (bug 1520)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2839 f38db490-d61c-443f-a65b-d21fe96a405b
2004-05-01 05:54:50 +00:00
markster
277cbce647
Path fix for hasnewvoicmeail app
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1839 f38db490-d61c-443f-a65b-d21fe96a405b
2003-12-08 19:31:56 +00:00
markster
9771629299
Change strdupa's to ast_strupda's
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1579 f38db490-d61c-443f-a65b-d21fe96a405b
2003-09-29 20:13:54 +00:00
markster
d193dee6c5
Merge app_hasnewvoicemail (bug #290 ) with some mods
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1546 f38db490-d61c-443f-a65b-d21fe96a405b
2003-09-26 03:39:58 +00:00