diff options
author | Terry Wilson <twilson@digium.com> | 2012-06-01 16:33:25 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2012-06-01 16:33:25 +0000 |
commit | d54717c39e62f4cc8b290ac4836c4d4469d87c24 (patch) | |
tree | 5a765e82be880f3b8c2407133fbcc15c4b4349d0 /include/asterisk/astobj2.h | |
parent | 463f9d729aed1a5ed538aa3deed1a3fed9462111 (diff) |
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
Diffstat (limited to 'include/asterisk/astobj2.h')
-rw-r--r-- | include/asterisk/astobj2.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 */ |