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
88396ce2e3
Merged revisions 19345 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r19345 | kpfleming | 2006-04-11 16:14:42 -0500 (Tue, 11 Apr 2006) | 2 lines
don't destroy the entire dialplan during 'reload', just atomically replace it like 'extensions reload' does (issue #6047 )
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19346 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11 21:18:27 +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
rizzo
6976601d47
whitespace and formatting fix postponed from last commit:
...
fix indentation of a large function, localize some variables
and add/remove whitespace where needed.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17827 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06 14:40:47 +00:00
rizzo
865e3d129b
split pbx_load_module so we can reduce the indentation depth.
...
Also convert to MOD_1 style.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17825 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06 14:23:37 +00:00
rizzo
218ae95065
use FREE instead of free as pointer to the destructor function.
...
This way the MALLOC_DEBUG code will always get the correct argument.
(bug introduced in SVN15818)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17824 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06 14:02:19 +00:00
tilghman
e0ba99b7f5
Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) rand() to threadsafe ast_random()
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17627 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-05 17:44:44 +00:00
rizzo
2ddc55345a
fix formatting
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16640 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-31 09:53:05 +00:00
rizzo
80b72c84c1
minor code simplifications - no need to use temporary
...
variables.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16639 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-31 09:50:54 +00:00
rizzo
c977f70f81
as discussed with Mark a few weeks ago, the 'newstack' argument
...
in pbx_exec is always 1 so it can be removed.
This change also takes away ast_exec_extension(), and lets all
switch functions (exists, canmatch, exec, matchmore) all use the same
prototype, which makes the code a bit cleaner.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16558 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30 21:29:39 +00:00
oej
895046a666
Whitespace fix forgotten by someone who added a note about needing to fix this...
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16234 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29 20:08:14 +00:00
rizzo
cc0506a672
as reported in mantis #6066 , fix a bunch of cli bugs and
...
inconsistencies.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15818 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28 22:44:55 +00:00
russell
e4c28d165d
Merged revisions 15658 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r15658 | russell | 2006-03-28 13:09:05 -0500 (Tue, 28 Mar 2006) | 2 lines
fix the order in which for loops are expanded (issue #6810 )
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15659 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28 18:13:53 +00:00
rizzo
5e75d18d31
- remove an unnecessary cast and recomputation of (timeout - now);
...
- remove useless recomputations of strlen(word) in a loop, and
normalize the form of complete_peer_helper();
- move LOCAL_USER_ADD() to after the verification of arguments,
thus removing the need for one LOCAL_USER_REMOVE() call.
The three chunks of the patch are fully disjoint.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15581 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28 15:19:32 +00:00
oej
45d29914cc
Reverting revision 10998 that was accidentaly committed to trunk. My apologies.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10989 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-24 10:50:43 +00:00
oej
5d7fbc4b1e
Update to trunk
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10988 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-24 10:17:40 +00:00
kpfleming
9c4950dff3
add 'consumed' argument to ast_get_time_t, so callers can know how many characters were used in the parser
...
update pbx_dundi to use ast_get_time_t
eliminate some compiler warnings
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10871 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-23 17:13:57 +00:00
markster
efb2e34d29
Fix a few compile warnings (turned errors) and disable -Werror on the
...
normal build. If people want this they can turn it on, and don't anyone
turn it on by default until you fix building on GCC 4.x
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10842 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-23 04:38:38 +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
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
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
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
29c48e23e2
Merged revisions 9609 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r9609 | russell | 2006-02-11 14:23:20 -0500 (Sat, 11 Feb 2006) | 2 lines
fix memory leak from not destroying the scheduler context on module unload
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9610 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 19:31:11 +00:00
russell
0a0b84d8de
Merged revisions 9581 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r9581 | russell | 2006-02-11 13:15:00 -0500 (Sat, 11 Feb 2006) | 2 lines
now that CDR is a loadable module, don't depend on it elsewhere (issue #6460 )
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9582 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 18:31:59 +00:00
kpfleming
64cdc6493a
use auto-build for pbx modules
...
correct install variable for format modules
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9568 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 17:48:44 +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
c6643537f1
constify arguments in more places where strings should not be modified (issue #6286 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8203 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-18 22:17:31 +00:00
kpfleming
8723f63be1
remove some more deprecated (pre-1.2) stuff
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8157 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-17 23:45:05 +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
tilghman
1a5a52c68b
Merged revisions 7908 via svnmerge from
...
/branches/1.2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7909 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-09 20:12:07 +00:00
tilghman
80163cc68b
Merged revisions 7848 via svnmerge from
...
/branches/1.2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7849 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-07 07:31:08 +00:00
tilghman
06a8b57c0c
Merged revisions 7831 via svnmerge from
...
/branches/1.2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7832 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-06 00:36:12 +00:00
russell
ac9d70ac12
Merged revisions 7634 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r7634 | russell | 2005-12-26 13:19:12 -0500 (Mon, 26 Dec 2005) | 2 lines
cast time_t to an int in printf/scanf (issue #5635 )
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7635 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-26 18:35:28 +00:00
tilghman
70141a02c7
Merged revisions 7577 via svnmerge from
...
/branches/1.2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7578 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-21 19:24:56 +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
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
twisted
c7fb2d8749
Make conform to coding guidelines... thanks drumkilla :)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7145 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-20 10:32:28 +00:00
twisted
398581f321
issue #5806
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7143 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-20 06:59:42 +00:00
kpfleming
18013517e4
issue #5761
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7113 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-16 17:16:23 +00:00
russell
8acbf04043
finish merging doxygen updates from issue #5605
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7096 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-14 19:00:38 +00:00
markster
a6c125b59e
Never call load_module / unload_module
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7093 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-13 02:19:14 +00:00
kpfleming
0406912cf9
issue #5354
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7060 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-11 00:14:13 +00:00
kpfleming
99e5289a45
issue #5701
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7055 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-10 23:28:55 +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
kpfleming
df706a8900
issue #5648
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7011 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08 01:55:31 +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
kpfleming
3b5ed22f12
fix various bugs related to list handling of channel variables (issue #5548 )
...
use nolock lists for channel variables, since no locks are needed (these lists are either temporary or protected by the channel's own lock)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6900 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-31 15:34:11 +00:00
russell
db653f9eb1
use ast_skip_blanks in pbx_ael
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6861 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26 18:03:44 +00:00