Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Event source information and callbacks. More...
#include <stasis_app.h>
Data Fields | |
void *(* | find )(const struct stasis_app *app, const char *id) |
Find an event source data object by the given id/name. More... | |
int(* | is_subscribed )(struct stasis_app *app, const char *id) |
Find an event source by the given id/name. More... | |
struct { | |
struct stasis_app_event_source * next | |
} | next |
const char * | scheme |
The scheme to match against on [un]subscribes. More... | |
int(* | subscribe )(struct stasis_app *app, void *obj) |
Subscribe an application to an event source. More... | |
void(* | to_json )(const struct stasis_app *app, struct ast_json *json) |
Convert event source data to json. More... | |
int(* | unsubscribe )(struct stasis_app *app, const char *id) |
Cancel the subscription an app has to an event source. More... | |
Event source information and callbacks.
Definition at line 174 of file stasis_app.h.
void *(* find) (const struct stasis_app *app, const char *id) |
Find an event source data object by the given id/name.
app | Application |
id | A unique identifier to search on |
Definition at line 186 of file stasis_app.h.
Referenced by app_subscribe().
int(* is_subscribed) (struct stasis_app *app, const char *id) |
Find an event source by the given id/name.
app | Application |
id | A unique identifier to check |
Definition at line 216 of file stasis_app.h.
Referenced by app_unsubscribe().
struct stasis_app_event_source* next |
Definition at line 227 of file stasis_app.h.
Referenced by __stasis_app_register(), app_event_source_find(), app_event_sources_to_json(), and stasis_app_unregister_event_source().
struct { ... } next |
Next item in the list
const char* scheme |
The scheme to match against on [un]subscribes.
Definition at line 176 of file stasis_app.h.
Referenced by app_event_source_find(), app_subscribe(), and app_unsubscribe().
int(* subscribe) (struct stasis_app *app, void *obj) |
Subscribe an application to an event source.
app | Application |
obj | an event source data object |
Definition at line 196 of file stasis_app.h.
Referenced by __stasis_app_register(), and app_subscribe().
void(* to_json) (const struct stasis_app *app, struct ast_json *json) |
Convert event source data to json.
app | Application |
id | json object to fill |
Definition at line 224 of file stasis_app.h.
Referenced by app_event_sources_to_json().
int(* unsubscribe) (struct stasis_app *app, const char *id) |
Cancel the subscription an app has to an event source.
app | Application |
id | a previously subscribed object id |
Definition at line 206 of file stasis_app.h.
Referenced by app_unsubscribe().