Loading...
Searching...
No Matches
events.h
Go to the documentation of this file.
#ifndef JANUS_EVENTS_H
#define JANUS_EVENTS_H
#include "debug.h"
#include "events/eventhandler.h"
int janus_events_init(gboolean enabled, char *server_name, GHashTable *handlers);
void janus_events_deinit(void);
gboolean janus_events_is_enabled(void);
void janus_events_notify_handlers(int type, int subtype, guint64 session_id, ...);
void janus_events_edit_events_mask(const char *list, janus_flags *target);
const char *janus_events_type_to_label(int type);
const char *janus_events_type_to_name(int type);
#endif
debug.h
Logging and Debugging.
eventhandler.h
Modular Janus event handlers (headers)
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_deinit
void janus_events_deinit(void)
De-initialize the event handlers broadcaster.
Definition events.c:69
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_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_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_events_init
int janus_events_init(gboolean enabled, char *server_name, GHashTable *handlers)
Initialize the event handlers broadcaster.
Definition events.c:46
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
janus_flags
gsize janus_flags
Janus flags container.
Definition utils.h:155