Event handler notifications (headers) More...
Go to the source code of this file.
Functions | |
int | janus_events_init (gboolean enabled, GHashTable *handlers) |
Initialize the event handlers broadcaster. More... | |
void | janus_events_deinit (void) |
De-initialize the event handlers broadcaster. More... | |
gboolean | janus_events_is_enabled (void) |
Quick method to check whether event handlers are enabled at all or not. More... | |
void | janus_events_notify_handlers (int type, guint64 session_id,...) |
Notify an event to all interested handlers. More... | |
Event handler notifications (headers)
Event handler plugins can receive events from the Janus core and other plugins, in order to handle them somehow. This methods provide helpers to notify events to such handlers.
void janus_events_deinit | ( | void | ) |
De-initialize the event handlers broadcaster.
int janus_events_init | ( | gboolean | enabled, |
GHashTable * | handlers | ||
) |
Initialize the event handlers broadcaster.
[in] | enabled | Whether broadcasting events should be supported at all |
[in] | handlers | Map of all registered event handlers |
gboolean janus_events_is_enabled | ( | void | ) |
Quick method to check whether event handlers are enabled at all or not.
void janus_events_notify_handlers | ( | int | type, |
guint64 | session_id, | ||
... | |||
) |
Notify an event to all interested handlers.
[in] | type | Type of the event to notify |
[in] | session_id | Janus session identifier this event refers to |