Fork me on GitHub
Macros | Functions
janus_sampleevh.c File Reference

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"
#include "../events.h"
Include dependency graph for janus_sampleevh.c:


#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"


janus_eventhandlercreate (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)
json_tjanus_sampleevh_handle_request (json_t *request)

Detailed Description

Janus SampleEventHandler plugin.

Lorenzo Miniero

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.

Event Handlers

Macro Definition Documentation

#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"

Function Documentation

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  )
json_t * janus_sampleevh_handle_request ( json_t request)
void janus_sampleevh_incoming_event ( json_t event)
int janus_sampleevh_init ( const char *  config_path)