From d54717c39e62f4cc8b290ac4836c4d4469d87c24 Mon Sep 17 00:00:00 2001 From: Terry Wilson Date: Fri, 1 Jun 2012 16:33:25 +0000 Subject: Add new config-parsing framework This framework adds a way to register the various options in a config file with Asterisk and to handle loading and reloading of that config in a consistent and atomic manner. Review: https://reviewboard.asterisk.org/r/1873/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368181 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/astobj2.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/asterisk/astobj2.h') diff --git a/include/asterisk/astobj2.h b/include/asterisk/astobj2.h index 15ed4892e..a5068ebe6 100644 --- a/include/asterisk/astobj2.h +++ b/include/asterisk/astobj2.h @@ -1461,4 +1461,10 @@ void *__ao2_iterator_next(struct ao2_iterator *iter); /* extra functions */ void ao2_bt(void); /* backtrace */ +/*! gcc __attribute__(cleanup()) functions + * \note they must be able to handle NULL parameters because most of the + * allocation/find functions can fail and we don't want to try to tear + * down a NULL */ +void ao2_cleanup(void *obj); +void ao2_iterator_cleanup(struct ao2_iterator *iter); #endif /* _ASTERISK_ASTOBJ2_H */ -- cgit v1.2.3