Fork me on GitHub
events.h
Go to the documentation of this file.
1 
13 #ifndef JANUS_EVENTS_H
14 #define JANUS_EVENTS_H
15 
16 #include "debug.h"
17 #include "events/eventhandler.h"
18 
24 int janus_events_init(gboolean enabled, char *server_name, GHashTable *handlers);
25 
27 void janus_events_deinit(void);
28 
31 gboolean janus_events_is_enabled(void);
32 
39 void janus_events_notify_handlers(int type, int subtype, guint64 session_id, ...);
40 
46 void janus_events_edit_events_mask(const char *list, janus_flags *target);
47 
51 const char *janus_events_type_to_label(int type);
52 
56 const char *janus_events_type_to_name(int type);
57 
58 #endif
janus_events_is_enabled
gboolean janus_events_is_enabled(void)
Quick method to check whether event handlers are enabled at all or not.
Definition: events.c:83
eventhandler.h
Modular Janus event handlers (headers)
janus_events_notify_handlers
void janus_events_notify_handlers(int type, int subtype, guint64 session_id,...)
Notify an event to all interested handlers.
Definition: events.c:87
janus_events_type_to_label
const char * janus_events_type_to_label(int type)
Helper method to stringify an event type to its label.
Definition: events.c:371
janus_flags
gsize janus_flags
Janus flags container.
Definition: utils.h:117
janus_events_edit_events_mask
void janus_events_edit_events_mask(const char *list, janus_flags *target)
Helper method to change the mask of events a handler is interested in.
Definition: events.c:327
janus_events_type_to_name
const char * janus_events_type_to_name(int type)
Helper method to stringify an event type to its prettified name.
Definition: events.c:381
janus_events_init
int janus_events_init(gboolean enabled, char *server_name, GHashTable *handlers)
Initialize the event handlers broadcaster.
Definition: events.c:46
janus_events_deinit
void janus_events_deinit(void)
De-initialize the event handlers broadcaster.
Definition: events.c:69
debug.h
Logging and Debugging.