Janus SampleEventHandler plugin. More...
#include "eventhandler.h"
#include <math.h>
#include <curl/curl.h>
#include "../debug.h"
#include "../config.h"
#include "../mutex.h"
#include "../utils.h"
Macros | |
#define | JANUS_SAMPLEEVH_VERSION 1 |
#define | JANUS_SAMPLEEVH_VERSION_STRING "0.0.1" |
#define | JANUS_SAMPLEEVH_DESCRIPTION "This is a trivial sample event handler plugin for Janus, which forwards events via HTTP POST." |
#define | JANUS_SAMPLEEVH_NAME "JANUS SampleEventHandler plugin" |
#define | JANUS_SAMPLEEVH_AUTHOR "Meetecho s.r.l." |
#define | JANUS_SAMPLEEVH_PACKAGE "janus.eventhandler.sampleevh" |
Functions | |
janus_eventhandler * | create (void) |
int | janus_sampleevh_init (const char *config_path) |
void | janus_sampleevh_destroy (void) |
int | janus_sampleevh_get_api_compatibility (void) |
int | janus_sampleevh_get_version (void) |
const char * | janus_sampleevh_get_version_string (void) |
const char * | janus_sampleevh_get_description (void) |
const char * | janus_sampleevh_get_name (void) |
const char * | janus_sampleevh_get_author (void) |
const char * | janus_sampleevh_get_package (void) |
void | janus_sampleevh_incoming_event (json_t *event) |
Janus SampleEventHandler plugin.
This is a trivial event handler plugin for Janus, which is only there to showcase how you can handle an event coming from the Janus core or one of the plugins. This specific plugin forwards every event it receives to a web server via an HTTP POST request, using libcurl.
#define JANUS_SAMPLEEVH_AUTHOR "Meetecho s.r.l." |
#define JANUS_SAMPLEEVH_DESCRIPTION "This is a trivial sample event handler plugin for Janus, which forwards events via HTTP POST." |
#define JANUS_SAMPLEEVH_NAME "JANUS SampleEventHandler plugin" |
#define JANUS_SAMPLEEVH_PACKAGE "janus.eventhandler.sampleevh" |
#define JANUS_SAMPLEEVH_VERSION 1 |
#define JANUS_SAMPLEEVH_VERSION_STRING "0.0.1" |
janus_eventhandler* create | ( | void | ) |
void janus_sampleevh_destroy | ( | void | ) |
int janus_sampleevh_get_api_compatibility | ( | void | ) |
const char * janus_sampleevh_get_author | ( | void | ) |
const char * janus_sampleevh_get_description | ( | void | ) |
const char * janus_sampleevh_get_name | ( | void | ) |
const char * janus_sampleevh_get_package | ( | void | ) |
int janus_sampleevh_get_version | ( | void | ) |
const char * janus_sampleevh_get_version_string | ( | void | ) |
void janus_sampleevh_incoming_event | ( | json_t * | event | ) |
int janus_sampleevh_init | ( | const char * | config_path | ) |