Fork me on GitHub
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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:86
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:82
void janus_events_notify_handlers(int type, guint64 session_id,...)
Notify an event to all interested handlers.
Definition: events.c:86
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:318
void janus_events_deinit(void)
De-initialize the event handlers broadcaster.
Definition: events.c:68
int janus_events_init(gboolean enabled, char *server_name, GHashTable *handlers)
Initialize the event handlers broadcaster.
Definition: events.c:46
const char * janus_events_type_to_label(int type)
Helper method to stringify an event type to its label.
Definition: events.c:362
const char * janus_events_type_to_name(int type)
Helper method to stringify an event type to its prettified name.
Definition: events.c:372