aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
AgeCommit message (Collapse)AuthorFilesLines
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-1167/+0
- 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-06-14Merged revisions 33993 via svnmerge from kpfleming1-1/+5
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r33993 | kpfleming | 2006-06-13 21:20:22 -0500 (Tue, 13 Jun 2006) | 2 lines don't output 'no format found' when we _did_ find the format but couldn't open the desired file for some other reason ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33994 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07simplify autoconfig include mechanism (make tholo happy he can use lint ↵kpfleming1-5/+5
again :-) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08VIDUPDATE does not matter during playback.markster1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25385 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 Make certain ast_stopstream() sets the channel's stream members to NULL ↵bweschke1-0/+1
after closing them. #7067 (jcomellas) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24329 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-24Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have ↵kpfleming1-3/+3
autoconf and menuselect tools for Asterisk! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22267 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21move wait_and_stream to ast_wait_and_stream() because equivalentrizzo1-0/+17
code is replicated in way too many places not to have a global function for that. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22075 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-15We are shaking up trunk tonight! allow data dir to be specified (issue #6967 ↵file1-1/+1
reported by tzafrir) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20330 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14This rather large commit changes the way modules are loaded. rizzo1-19/+6
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-13Unregister format says it's already unregisteredtilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19811 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06make sure that file calls other than OPEN work on all formatsrizzo1-37/+37
if called with a NULL 'fmt' argument. (SVN 6898) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17859 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-04Largely simplify format handlers (for file copy etc.)rizzo1-635/+501
collecting common functions in a single place and removing them from the individual handlers. The full description is on mantis, http://bugs.digium.com/view.php?id=6375 and only the ogg_vorbis handler needs to be converted to the new structure. As a result of this change, format_au.c and format_pcm_alaw.c should go away (in a separate commit) as their functionality (trivial) has been merged in another file. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17243 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-20Bug 5984 - Convert file offsets to 64 bittilghman1-10/+10
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10579 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15don't dereference memory that has been freed (issue #6405)kpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10139 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-09various code cleanup changes including changing #define'd constants to enums,russell1-18/+14
comments to doxygen style, memory allocation to use ast_ wrappers, use calloc instead of malloc+memset, and removing duplicated error messages (issue #6435) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9259 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-09Bug 6112: file.c list macro conversion (drumkilla)oej1-44/+45
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7912 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-08Minor video fixesmarkster1-2/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7866 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-07Add support for H.264 with SIP and recordingmarkster1-24/+34
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7855 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-07Bug 6161 - Remove duplicated codetilghman1-7/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7850 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-03update copyright headers for files changed this yearkpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7751 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-02doxygen updatesrussell1-17/+17
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7720 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-30update doxygen docs to specify authorsrussell1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7682 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-19Merged revisions 7523 via svnmerge fromtilghman1-0/+2
/branches/1.2 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7524 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-04convert most of the option_*'s to a single ast_flags structure. Also, fix somerussell1-1/+1
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-11-29git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7221 ↵kpfleming1-0/+0
f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26change ast_strlen_zero to also check for the string to be definedrussell1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6862 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-24Doxygen documentation update from oej (issue #5505)russell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6847 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-16minor changes and eliminate some compiler warningskpfleming1-6/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6803 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-16Use FILE * instead of fd for files to support bufferingmarkster1-20/+43
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6801 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14update MANY more files with proper copyright/license info (thanks Ian!)kpfleming1-6/+17
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6596 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-07remove useless buffer initializations (issue #5134)kpfleming1-2/+2
convert pbx_dundi to use ast_copy_string) (issue #5134) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6540 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-30Add SIP video fixesmarkster1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6448 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-23add counter to 'show formats' (issue #5001)kpfleming1-0/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6384 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15ensure that format string macros are undef'd after use (bug #4716)kpfleming1-0/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6139 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-12add 'exit context' and 'only stop on match' options to Background app (bug ↵kpfleming1-0/+62
#4511) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6093 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-05don't unlink files just because they can't be opened (bug #4641)kpfleming1-86/+94
clean up and reformat ast_readfile and ast_writefile git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6020 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06more file version tagskpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5866 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06remove experimental module version tagskpfleming1-1/+4
add per-file revision tags and 'show version files' CLI command git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5864 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06major Makefile and build process improvements, including removal of all ↵kpfleming1-1/+0
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-05more ast_copy_string() conversionkpfleming1-11/+11
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5849 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-05make ast_waitstream_* return value compatible with platforms that use ↵kpfleming1-3/+3
unsigned char by default (bug #4455) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5846 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-02consolidate API functions for saying numbers/digits/alpha/phonetic into less ↵kpfleming1-2/+0
functions, using more efficient and clearer code (inspired by bug #4414) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5819 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-30Fix language handling (bug #4399)markster1-2/+10
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5783 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-22phase 1 of header include cleanup (bug #4067)kpfleming1-9/+10
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5498 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-21use double-quotes instead of angle-brackets for non-system include files ↵kpfleming1-11/+11
(bug #4058) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5490 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-07Match special case of wav49 behavior (bug #3975)markster1-8/+11
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5436 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-31Use requested extension (bug #3894)markster1-19/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5312 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-22Ignore interrupted system calls (bug #3831)markster1-0/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5231 f38db490-d61c-443f-a65b-d21fe96a405b
2005-02-06Don't crash when pause/stop keys aren't defined on the command line (Bug #3514)twisted1-0/+11
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4970 f38db490-d61c-443f-a65b-d21fe96a405b
2005-02-03Fix wav append mode (bug #3498)markster1-1/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4958 f38db490-d61c-443f-a65b-d21fe96a405b