diff options
author | David M. Lee <dlee@digium.com> | 2013-05-15 02:37:22 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-05-15 02:37:22 +0000 |
commit | 9648e258c76a24c5a24e16c634fcda73829e5d30 (patch) | |
tree | a0dc5b31ee73a83a7799413929a40436a1526293 /include | |
parent | e8f4ac6c610265b46014da9259062bb74d3892d1 (diff) |
Refactored the rest of the message types to use the STASIS_MESSAGE_TYPE_*
macros.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/stasis.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asterisk/stasis.h b/include/asterisk/stasis.h index 8c77c2694..7e46dbf41 100644 --- a/include/asterisk/stasis.h +++ b/include/asterisk/stasis.h @@ -565,10 +565,17 @@ struct ao2_container *stasis_cache_dump(struct stasis_caching_topic *caching_top */ #define STASIS_MESSAGE_TYPE_INIT(name) \ ({ \ + ast_assert(_priv_ ## name == NULL); \ _priv_ ## name = stasis_message_type_create(#name); \ _priv_ ## name ? 0 : -1; \ }) +/*! + * \brief Boiler-plate removing macro for cleaning up message types. + * + * \param name Name of message type. + * \since 12 + */ #define STASIS_MESSAGE_TYPE_CLEANUP(name) \ ({ \ ao2_cleanup(_priv_ ## name); \ |