diff options
author | Kinsey Moore <kmoore@digium.com> | 2013-04-12 21:11:02 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2013-04-12 21:11:02 +0000 |
commit | 7f885dc31d01a3da0bbe785f30afad31cece10d7 (patch) | |
tree | 7c9f6deef33581453ae2fd0c928b11748c0e8f76 /include/asterisk/manager.h | |
parent | fcbb9f0c8dd43dde059abf2deb2ed09b2c4e4539 (diff) |
Expose channel snapshot manager blob generation
These functions are already used in one branch (jrose's parking branch)
and will soon be used in other branches as well.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@385522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/manager.h')
-rw-r--r-- | include/asterisk/manager.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/asterisk/manager.h b/include/asterisk/manager.h index af25edbf9..e0160c6b5 100644 --- a/include/asterisk/manager.h +++ b/include/asterisk/manager.h @@ -316,6 +316,37 @@ int astman_datastore_remove(struct mansession *s, struct ast_datastore *datastor */ struct ast_datastore *astman_datastore_find(struct mansession *s, const struct ast_datastore_info *info, const char *uid); +/*! \brief Struct representing a snapshot of channel state */ +struct ast_channel_snapshot; + +/*! + * \brief Generate the AMI message body from a channel snapshot + * \since 12 + * + * \param snapshot the channel snapshot for which to generate an AMI message + * body + * \param suffix the suffix to append to the channel fields + * + * \retval NULL on error + * \retval ast_str* on success (must be ast_freed by caller) + */ +struct ast_str *ast_manager_build_channel_state_string_suffix( + const struct ast_channel_snapshot *snapshot, + const char *suffix); + +/*! + * \brief Generate the AMI message body from a channel snapshot + * \since 12 + * + * \param snapshot the channel snapshot for which to generate an AMI message + * body + * + * \retval NULL on error + * \retval ast_str* on success (must be ast_freed by caller) + */ +struct ast_str *ast_manager_build_channel_state_string( + const struct ast_channel_snapshot *snapshot); + /*! * \brief Initialize support for AMI channel events. * \return 0 on success. |