diff options
Diffstat (limited to 'res/stasis_http/resource_channels.h')
-rw-r--r-- | res/stasis_http/resource_channels.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/res/stasis_http/resource_channels.h b/res/stasis_http/resource_channels.h index 7e8dc5dbe..999e16954 100644 --- a/res/stasis_http/resource_channels.h +++ b/res/stasis_http/resource_channels.h @@ -264,5 +264,37 @@ struct ast_record_channel_args { * \param[out] response HTTP response */ void stasis_http_record_channel(struct ast_variable *headers, struct ast_record_channel_args *args, struct stasis_http_response *response); +/*! \brief Argument struct for stasis_http_get_channel_var() */ +struct ast_get_channel_var_args { + /*! \brief Channel's id */ + const char *channel_id; + /*! \brief The channel variable or function to get */ + const char *variable; +}; +/*! + * \brief Get the value of a channel variable or function. + * + * \param headers HTTP headers + * \param args Swagger parameters + * \param[out] response HTTP response + */ +void stasis_http_get_channel_var(struct ast_variable *headers, struct ast_get_channel_var_args *args, struct stasis_http_response *response); +/*! \brief Argument struct for stasis_http_set_channel_var() */ +struct ast_set_channel_var_args { + /*! \brief Channel's id */ + const char *channel_id; + /*! \brief The channel variable or function to set */ + const char *variable; + /*! \brief The value to set the variable to */ + const char *value; +}; +/*! + * \brief Set the value of a channel variable or function. + * + * \param headers HTTP headers + * \param args Swagger parameters + * \param[out] response HTTP response + */ +void stasis_http_set_channel_var(struct ast_variable *headers, struct ast_set_channel_var_args *args, struct stasis_http_response *response); #endif /* _ASTERISK_RESOURCE_CHANNELS_H */ |