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 
38 void janus_events_notify_handlers(int type, guint64 session_id, ...);
39 
45 void janus_events_edit_events_mask(const char *list, janus_flags *target);
46 
50 const char *janus_events_type_to_label(int type);
51 
55 const char *janus_events_type_to_name(int type);
56 
57 #endif
gsize janus_flags
Janus flags container.
Definition: utils.h:85
Logging and Debugging.
gboolean janus_events_is_enabled(void)
Quick method to check whether event handlers are enabled at all or not.
Definition: events.c:98
void janus_events_notify_handlers(int type, guint64 session_id,...)
Notify an event to all interested handlers.
Definition: events.c:102
Modular Janus event handlers (headers)
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:325
void janus_events_deinit(void)
De-initialize the event handlers broadcaster.
Definition: events.c:84
int janus_events_init(gboolean enabled, char *server_name, GHashTable *handlers)
Initialize the event handlers broadcaster.
Definition: events.c:45
const char * janus_events_type_to_label(int type)
Helper method to stringify an event type to its label.
Definition: events.c:369
const char * janus_events_type_to_name(int type)
Helper method to stringify an event type to its prettified name.
Definition: events.c:379