#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <inttypes.h>
#include <glib.h>
#include <jansson.h>
#include "../utils.h"
Go to the source code of this file.
Data Structures | |
struct | janus_eventhandler |
The event handler plugin session and callbacks interface. More... | |
Macros | |
#define | JANUS_EVENTHANDLER_API_VERSION 2 |
Version of the API, to match the one event handler plugins were compiled against. More... | |
#define | JANUS_EVENTHANDLER_INIT(...) |
Type of events Janus could notify, and the handler subscribe to | |
Initialization of all event handler plugin properties to NULL
static janus_eventhandler janus_fake_eventhandler handler plugin = { JANUS_EVENTHANDLER_INIT, .init = janus_fake_init, [..] This mask makes it easy to subscribe to, and unsubscribe from, specific events, as all you need to do is to use janus_flags_set and janus_flags_clear on the | |
#define | JANUS_EVENT_TYPE_NONE (0) |
No event. More... | |
#define | JANUS_EVENT_TYPE_SESSION (1 << 0) |
Session related events (e.g., session created/destroyed, etc.) More... | |
#define | JANUS_EVENT_TYPE_HANDLE (1 << 1) |
Handle related events (e.g., handle attached/detached, etc.) More... | |
#define | JANUS_EVENT_TYPE_EXTERNAL (1 << 2) |
External events originated via Admin API (e.g., custom events coming from external scripts) More... | |
#define | JANUS_EVENT_TYPE_JSEP (1 << 3) |
JSEP related events (e.g., got/sent offer/answer) More... | |
#define | JANUS_EVENT_TYPE_WEBRTC (1 << 4) |
WebRTC related events (e.g., PeerConnection up/down, ICE updates, DTLS updates, etc.) More... | |
#define | JANUS_EVENT_TYPE_MEDIA (1 << 5) |
Media related events (e.g., media started/stopped flowing, stats on packets/bytes, etc.) More... | |
#define | JANUS_EVENT_TYPE_PLUGIN (1 << 6) |
Events originated by plugins (at the moment, all of them, no way to pick) More... | |
#define | JANUS_EVENT_TYPE_TRANSPORT (1 << 7) |
Events originated by transports (at the moment, all of them, no way to pick) More... | |
#define | JANUS_EVENT_TYPE_CORE (1 << 8) |
Events originated by the core for its own events (e.g., Janus starting/shutting down) More... | |
#define | JANUS_EVENT_TYPE_ALL (0xffffffff) |
Mask with all events enabled (shortcut when you want to subscribe to everything) More... | |
Typedefs | |
typedef struct janus_eventhandler | janus_eventhandler |
The event handler plugin session and callbacks interface. More... | |
typedef janus_eventhandler * | create_e(void) |
The hook that event handler plugins need to implement to be created from the gateway. More... | |
#define JANUS_EVENT_TYPE_ALL (0xffffffff) |
Mask with all events enabled (shortcut when you want to subscribe to everything)
#define JANUS_EVENT_TYPE_CORE (1 << 8) |
Events originated by the core for its own events (e.g., Janus starting/shutting down)
#define JANUS_EVENT_TYPE_EXTERNAL (1 << 2) |
External events originated via Admin API (e.g., custom events coming from external scripts)
#define JANUS_EVENT_TYPE_HANDLE (1 << 1) |
Handle related events (e.g., handle attached/detached, etc.)
#define JANUS_EVENT_TYPE_JSEP (1 << 3) |
JSEP related events (e.g., got/sent offer/answer)
#define JANUS_EVENT_TYPE_MEDIA (1 << 5) |
Media related events (e.g., media started/stopped flowing, stats on packets/bytes, etc.)
#define JANUS_EVENT_TYPE_NONE (0) |
No event.
#define JANUS_EVENT_TYPE_PLUGIN (1 << 6) |
Events originated by plugins (at the moment, all of them, no way to pick)
#define JANUS_EVENT_TYPE_SESSION (1 << 0) |
Session related events (e.g., session created/destroyed, etc.)
#define JANUS_EVENT_TYPE_TRANSPORT (1 << 7) |
Events originated by transports (at the moment, all of them, no way to pick)
#define JANUS_EVENT_TYPE_WEBRTC (1 << 4) |
WebRTC related events (e.g., PeerConnection up/down, ICE updates, DTLS updates, etc.)
#define JANUS_EVENTHANDLER_API_VERSION 2 |
Version of the API, to match the one event handler plugins were compiled against.
#define JANUS_EVENTHANDLER_INIT | ( | ... | ) |
typedef janus_eventhandler* create_e(void) |
The hook that event handler plugins need to implement to be created from the gateway.
typedef struct janus_eventhandler janus_eventhandler |
The event handler plugin session and callbacks interface.