summaryrefslogtreecommitdiff
path: root/res/stasis/app.h
diff options
context:
space:
mode:
Diffstat (limited to 'res/stasis/app.h')
-rw-r--r--res/stasis/app.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/res/stasis/app.h b/res/stasis/app.h
index 2c8db1ccd..6ed6a295b 100644
--- a/res/stasis/app.h
+++ b/res/stasis/app.h
@@ -127,8 +127,26 @@ void app_send(struct stasis_app *app, struct ast_json *message);
struct app_forwards;
+/*!
+ * \brief Create a JSON representation of a \c stasis_app
+ *
+ * \param app The application
+ *
+ * \return \c JSON blob on success
+ * \return \c NULL on error
+ */
struct ast_json *app_to_json(const struct stasis_app *app);
+struct ast_cli_args;
+
+/*!
+ * \brief Dump properties of a \c stasis_app to the CLI
+ *
+ * \param app The application
+ * \param a The CLI arguments
+ */
+void app_to_cli(const struct stasis_app *app, struct ast_cli_args *a);
+
/*!
* \brief Subscribes an application to a channel.
*
@@ -282,4 +300,12 @@ char *app_get_replace_channel_app(struct ast_channel *chan);
*/
int app_send_end_msg(struct stasis_app *app, struct ast_channel *chan);
+/*!
+ * \brief Enable/disable debugging on an application
+ *
+ * \param app The app to debug
+ * \param debug If non-zero, enable debugging. If zero, disable.
+ */
+void app_set_debug(struct stasis_app *app, int debug);
+
#endif /* _ASTERISK_RES_STASIS_APP_H */