aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/astobj.h
AgeCommit message (Collapse)AuthorFilesLines
2008-07-11Merged revisions 129970 via svnmerge from russell1-0/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r129970 | russell | 2008-07-11 09:18:43 -0500 (Fri, 11 Jul 2008) | 2 lines add a simple ASTOBJ_TRYWRLOCK macro ... ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@129987 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-23Round 2 of IMAP_STORAGE app_voicemail.c fixes:mmichelson1-1/+1
This fixes a bug that was thought to be fixed already. app_voicemail, if using IMAP_STORAGE, has a problem because the IMAP header files include syslog.h, which define LOG_WARNING and LOG_DEBUG to be different than what Asterisk uses for those same macros. This was "fixed" in the past by including all the IMAP header files prior to including asterisk.h. This fix worked... unless you were to try to compile with MALLOC_DEBUG. MALLOC_DEBUG prepends the inclusion of astmm.h to every file, which means that no matter what order the includes are in in app_voicemail, the unexpected values for LOG_WARNING and LOG_DEBUG will be in place. The action taken for this fix was to define AST_LOG_* macros in addition to the LOG_* macros already defined. These new macros are used in app_voicemail.c, logger.h, and astobj.h right now, and their use will be encouraged in the future. In consideration of those who have written third-party modules which use the LOG_* macros, these will NOT be removed from the source, however future use of these macros is discouraged. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114577 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-18Go through and fix a bunch of places where character strings were being ↵twilson1-1/+1
interpreted as format strings. Most of these changes are solely to make compiling with -Wsecurity and -Wformat=2 happy, and were not actual problems, per se. I also added format attributes to any printf wrapper functions I found that didn't have them. -Wsecurity and -Wmissing-format-attribute added to --enable-dev-mode. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@109447 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16remove redundant #include "asterisk/compat.h",rizzo1-1/+0
but make sure that asterisk/compiler.h is included everywhere git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89336 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16Start untangling header inclusion in a way that does not affectrizzo1-2/+0
build times - tested, there is no measureable difference before and after this commit. In this change: use asterisk/compat.h to include a small set of system headers: inttypes.h, unistd.h, stddef.h, stddint.h, sys/types.h, stdarg.h, stdlib.h, alloca.h, stdio.h Where available, the inclusion is conditional on HAVE_FOO_H as determined by autoconf. Normally, source files should not include any of the above system headers, and instead use either "asterisk.h" or "asterisk/compat.h" which does it better. For the time being I have left alone second-level directories (main/db1-ast, etc.). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89333 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-02Sure enough, some of the uses of astobj are doing recursive locking. Thisrussell1-14/+14
doesn't work with rwlocks, so, this is reverted for now. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46994 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-02astobj was already set up to use read and write locks. Now that we have ↵russell1-14/+14
wrappers for them, use them here. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46991 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-08Commiting bugfix 5310. added functions to astobjmogorman1-0/+70
for queue like structure. astobj_container_link_end astobj_container_link_start astobj_conatiner_unlink_start git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7867 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-08-30major header file cleanup: license, copyrights, descriptions, markers, etc.kpfleming1-6/+15
remove deprecated config_old.c/config_old.h remove unused cvsid.h git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6454 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-24split up string/time functions into separate header fileskpfleming1-4/+2
make more LOW_MEMORY optimizations, and ensure that a non-inline version of each inlinable function is always available (for external modules) move compiler-specific stuff into a separate header file git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6008 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-14minor fix for refcount/flags to be unsignedkpfleming1-3/+3
explicitly test refcount as a logical value for builtin_expect (thanks to rizzo for the cluebat!) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5651 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-04Fix minor doc issue (bug #4145)markster1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5580 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-04add doxygen docs for astobj.h (bug #4145, with minor mods)kpfleming1-7/+435
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5575 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-01add direct object unlink macro to ASTOBJ apikpfleming1-0/+20
various minor cleanups in chan_sip git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5539 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-21use double-quotes instead of angle-brackets for non-system include files ↵kpfleming1-1/+1
(bug #4058) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5490 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-21update copyright headers for 2005russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4868 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-11Allow multiple bindaddrs so asterisk uses the same interface for tx as rxmarkster1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4756 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-10Improve object destruction (bug #3286)markster1-18/+10
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4747 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-07Include lock performance (bug #3234)markster1-6/+29
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4700 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-04Allow early exit from traverse (bug #3221)markster1-12/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4655 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-02Remove silly break (bug #3217)markster1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4634 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-31Fix astobj to compile against GCC 2.95markster1-0/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4621 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-29Make casts work again properly (bug #3155)markster1-4/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4596 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-29Merge remainder of kpfleming's astobj patch (bug #3183)markster1-2/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4582 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-28Merge kpflemings ASTOBJ improvements (bug #3167)markster1-153/+121
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4578 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-25Add Asterisk "object model" and update chan_sip to use it for peers/regs/usersmarkster1-0/+312
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4554 f38db490-d61c-443f-a65b-d21fe96a405b