diff options
author | Jonathan Rose <jrose@digium.com> | 2013-05-17 17:36:10 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2013-05-17 17:36:10 +0000 |
commit | b90bba7a303bf57c3c874a1c8f506d39d4e78a9c (patch) | |
tree | 56e6ca0d885b1e9e11856a6be44b4b92582f5606 /include/asterisk/json.h | |
parent | 15945a7185187a3d79c7c7247a297bf92b49c139 (diff) |
Stasis: Update security events to use Stasis
Also moves ACL messages to the security topic and gets rid of the
ACL topic
(closes issue ASTERISK-21103)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/2496/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388975 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/json.h')
-rw-r--r-- | include/asterisk/json.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asterisk/json.h b/include/asterisk/json.h index 8e646584d..978d6396a 100644 --- a/include/asterisk/json.h +++ b/include/asterisk/json.h @@ -19,6 +19,8 @@ #ifndef _ASTERISK_JSON_H #define _ASTERISK_JSON_H +#include "asterisk/netsock2.h" + /*! \file * * \brief Asterisk JSON abstraction layer. @@ -863,6 +865,18 @@ struct ast_json *ast_json_name_number(const char *name, const char *number); struct ast_json *ast_json_timeval(const struct timeval tv, const char *zone); /*! + * \brief Construct an IP address as JSON + * + * XXX some comments describing the need for this here + * + * \param addr ast_sockaddr to encode + * \param transport_type ast_transport to include in the address string if any. Should just be one. + * \return JSON string containing the IP address with optional transport information + * \return \c NULL on error. + */ +struct ast_json *ast_json_ipaddr(const struct ast_sockaddr *addr, enum ast_transport transport_type); + +/*! * \brief Construct a context/exten/priority as JSON. * * If a \c NULL is passed for \c context or \c exten, or -1 for \c priority, |