Fork me on GitHub
Loading...
Searching...
No Matches
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
24int janus_events_init(gboolean enabled, char *server_name, GHashTable *handlers);
25
27void janus_events_deinit(void);
28
31gboolean janus_events_is_enabled(void);
32
39void janus_events_notify_handlers(int type, int subtype, guint64 session_id, ...);
40
46void janus_events_edit_events_mask(const char *list, janus_flags *target);
47
51const char *janus_events_type_to_label(int type);
52
56const char *janus_events_type_to_name(int type);
57
58#endif
Logging and Debugging.
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:327
void janus_events_deinit(void)
De-initialize the event handlers broadcaster.
Definition: events.c:69
void janus_events_notify_handlers(int type, int subtype, guint64 session_id,...)
Notify an event to all interested handlers.
Definition: events.c:87
const char * janus_events_type_to_name(int type)
Helper method to stringify an event type to its prettified name.
Definition: events.c:381
const char * janus_events_type_to_label(int type)
Helper method to stringify an event type to its label.
Definition: events.c:371
int janus_events_init(gboolean enabled, char *server_name, GHashTable *handlers)
Initialize the event handlers broadcaster.
Definition: events.c:46
gboolean janus_events_is_enabled(void)
Quick method to check whether event handlers are enabled at all or not.
Definition: events.c:83
gsize janus_flags
Janus flags container.
Definition: utils.h:163