kpfleming
8b0c007ad9
merge new_loader_completion branch, including (at least):
...
- restructured build tree and makefiles to eliminate recursion problems
- support for embedded modules
- support for static builds
- simpler cross-compilation support
- simpler module/loader interface (no exported symbols)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21 02:11:39 +00:00
kpfleming
73c525e6e2
simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07 18:54:56 +00:00
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
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
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
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
5dcfa0427f
use app arg parsing macros (issue #5678 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7239 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-30 20:15:36 +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
e7dd17f2ec
fix typos in my doc cleanup
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7048 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-10 21:39:01 +00:00
russell
44abf0bbac
clean up some application descriptions to use more gooder English
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7047 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-10 20:56:45 +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
e61f71745f
application doc update
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6992 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-07 22:01:22 +00:00
russell
b39d1e60ff
issue #5598
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6980 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-06 18:11:13 +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
twisted
be40e92107
Don't only accept AST_DEVICE_UNKNOWN when we're trying to determine if the device is in use. (Bug # 5338)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6815 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-18 03:29:12 +00:00
russell
82f772cdaf
make sure to LOCAL_USER_REMOVE in all cases where the application can exit (issue #5307 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6678 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-28 19:42:36 +00:00
kpfleming
f47a9b2634
correct sense of logic test (issue #5259 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6650 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-25 20:37:05 +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
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
1945cc0f81
queue device state changes and handle them serially in a background thread
...
optimize device state related functions
add ast_get_channel_by_name_prefix to allow searching for matching channels in O(1) operation
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6062 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-08 21:14:34 +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
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
markster
5a29e6fa72
Fix chanisavail typo that forced "state" mode (bug #3873 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5282 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-27 23:01:55 +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
3e477648da
Documentation fixes (bug #3170 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4580 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-28 23:58:12 +00:00
markster
1d3503b73a
Channel availability updates (bug #2829 with mods)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4257 f38db490-d61c-443f-a65b-d21fe96a405b
2004-11-15 16:27:28 +00:00
markster
e2c75a92f9
Pass concept of status back, permit "leaveempty" to work with static agents who are not loggedon (bug #2719 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4106 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-26 22:25:43 +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
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
b6ac9c016c
Can't use the same buffer to snprintf that we're grabbing
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3156 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-06 17:36:57 +00:00
markster
b1d46e807b
Add ${AVAILORIGCHAN} with original channel name (bug #1793 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3149 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-05 18:42:59 +00:00
citats
5da362991d
Fix app_chanisavail.c when passed string is big (bug #1139 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2295 f38db490-d61c-443f-a65b-d21fe96a405b
2004-03-02 17:49:33 +00:00
citats
a6a040fae1
Fix app_chanisavail if there are invalid arguments (bug #1130 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2277 f38db490-d61c-443f-a65b-d21fe96a405b
2004-02-29 18:30:48 +00:00
markster
09a17e5f80
Fix documentation on chanisavail
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@784 f38db490-d61c-443f-a65b-d21fe96a405b
2003-04-08 19:14:03 +00:00
matteo
8e5427fad9
mar mar 18 18:03:23 CET 2003
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@653 f38db490-d61c-443f-a65b-d21fe96a405b
2003-03-18 17:03:33 +00:00
matteo
40b9926da3
Sun Mar 16 07:00:01 CET 2003
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@646 f38db490-d61c-443f-a65b-d21fe96a405b
2003-03-16 06:00:11 +00:00