Fork me on GitHub
Data Structures | Macros | Typedefs | Functions
janus_wsevh.c File Reference

Janus WebSockets EventHandler plugin. More...

#include "eventhandler.h"
#include <math.h>
#include <libwebsockets.h>
#include "../debug.h"
#include "../config.h"
#include "../mutex.h"
#include "../utils.h"
#include "../events.h"
Include dependency graph for janus_wsevh.c:

Data Structures

struct  janus_wsevh_client
 

Macros

#define JANUS_WSEVH_VERSION   1
 
#define JANUS_WSEVH_VERSION_STRING   "0.0.1"
 
#define JANUS_WSEVH_DESCRIPTION   "This is a trivial WebSockets event handler plugin for Janus."
 
#define JANUS_WSEVH_NAME   "JANUS WebSocketsEventHandler plugin"
 
#define JANUS_WSEVH_AUTHOR   "Meetecho s.r.l."
 
#define JANUS_WSEVH_PACKAGE   "janus.eventhandler.wsevh"
 
#define JANUS_WSEVH_ERROR_INVALID_REQUEST   411
 
#define JANUS_WSEVH_ERROR_MISSING_ELEMENT   412
 
#define JANUS_WSEVH_ERROR_INVALID_ELEMENT   413
 
#define JANUS_WSEVH_ERROR_UNKNOWN_ERROR   499
 
#define CASE_STR(name)   case name: return #name
 

Typedefs

typedef struct janus_wsevh_client janus_wsevh_client
 

Functions

janus_eventhandlercreate (void)
 
int janus_wsevh_init (const char *config_path)
 
void janus_wsevh_destroy (void)
 
int janus_wsevh_get_api_compatibility (void)
 
int janus_wsevh_get_version (void)
 
const char * janus_wsevh_get_version_string (void)
 
const char * janus_wsevh_get_description (void)
 
const char * janus_wsevh_get_name (void)
 
const char * janus_wsevh_get_author (void)
 
const char * janus_wsevh_get_package (void)
 
void janus_wsevh_incoming_event (json_t *event)
 
json_tjanus_wsevh_handle_request (json_t *request)
 

Detailed Description

Janus WebSockets EventHandler plugin.

Author
Lorenzo Miniero loren.nosp@m.zo@m.nosp@m.eetec.nosp@m.ho.c.nosp@m.om

This is a trivial WebSockets event handler plugin for Janus

Event handlers documentation

Macro Definition Documentation

#define CASE_STR (   name)    case name: return #name
#define JANUS_WSEVH_AUTHOR   "Meetecho s.r.l."
#define JANUS_WSEVH_DESCRIPTION   "This is a trivial WebSockets event handler plugin for Janus."
#define JANUS_WSEVH_ERROR_INVALID_ELEMENT   413
#define JANUS_WSEVH_ERROR_INVALID_REQUEST   411
#define JANUS_WSEVH_ERROR_MISSING_ELEMENT   412
#define JANUS_WSEVH_ERROR_UNKNOWN_ERROR   499
#define JANUS_WSEVH_NAME   "JANUS WebSocketsEventHandler plugin"
#define JANUS_WSEVH_PACKAGE   "janus.eventhandler.wsevh"
#define JANUS_WSEVH_VERSION   1
#define JANUS_WSEVH_VERSION_STRING   "0.0.1"

Typedef Documentation

Function Documentation

janus_eventhandler* create ( void  )
void janus_wsevh_destroy ( void  )
int janus_wsevh_get_api_compatibility ( void  )
const char * janus_wsevh_get_author ( void  )
const char * janus_wsevh_get_description ( void  )
const char * janus_wsevh_get_name ( void  )
const char * janus_wsevh_get_package ( void  )
int janus_wsevh_get_version ( void  )
const char * janus_wsevh_get_version_string ( void  )
json_t * janus_wsevh_handle_request ( json_t request)
void janus_wsevh_incoming_event ( json_t event)
int janus_wsevh_init ( const char *  config_path)