diff options
Diffstat (limited to 'res/stasis/app.h')
-rw-r--r-- | res/stasis/app.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/res/stasis/app.h b/res/stasis/app.h index 59574f584..2c8db1ccd 100644 --- a/res/stasis/app.h +++ b/res/stasis/app.h @@ -36,6 +36,19 @@ */ struct stasis_app; +enum stasis_app_subscription_model { + /* + * \brief An application must manually subscribe to each + * resource that it cares about. This is the default approach. + */ + STASIS_APP_SUBSCRIBE_MANUAL, + /* + * \brief An application is automatically subscribed to all + * resources in Asterisk, even if it does not control them. + */ + STASIS_APP_SUBSCRIBE_ALL +}; + /*! * \brief Create a res_stasis application. * @@ -45,7 +58,7 @@ struct stasis_app; * \return New \c res_stasis application. * \return \c NULL on error. */ -struct stasis_app *app_create(const char *name, stasis_app_cb handler, void *data); +struct stasis_app *app_create(const char *name, stasis_app_cb handler, void *data, enum stasis_app_subscription_model subscription_model); /*! * \brief Tears down an application. |