146 #ifndef _JANUS_PLUGIN_H 147 #define _JANUS_PLUGIN_H 155 #include <inttypes.h> 170 #define JANUS_PLUGIN_API_VERSION 8 188 #define JANUS_PLUGIN_INIT(...) { \ 191 .get_api_compatibility = NULL, \ 192 .get_version = NULL, \ 193 .get_version_string = NULL, \ 194 .get_description = NULL, \ 196 .get_author = NULL, \ 197 .get_package = NULL, \ 198 .create_session = NULL, \ 199 .handle_message = NULL, \ 200 .setup_media = NULL, \ 201 .incoming_rtp = NULL, \ 202 .incoming_rtcp = NULL, \ 203 .incoming_data = NULL, \ 205 .hangup_media = NULL, \ 206 .destroy_session = NULL, \ 207 .query_session = NULL, \ 239 void (*
const destroy)(void);
247 int (*
const get_api_compatibility)(void);
249 int (*
const get_version)(void);
373 gboolean (*
const events_is_enabled)(void);
The request was correctly handled and a response is provided (synchronous)
Definition: plugin.h:411
json_t *(*const query_session)(janus_plugin_session *handle)
Method to get plugin-specific info of a session/handle.
Definition: plugin.h:325
void * gateway_handle
Opaque pointer to the gateway session.
Definition: plugin.h:223
const char *(*const get_author)(void)
Informative method to request the author of the plugin.
Definition: plugin.h:257
const char *(*const get_version_string)(void)
Informative method to request the string version of the plugin.
Definition: plugin.h:251
const char *(*const get_name)(void)
Informative method to request the name of the plugin.
Definition: plugin.h:255
void janus_plugin_result_destroy(janus_plugin_result *result)
Helper to quickly destroy a janus_plugin_result instance.
Definition: plugin.c:32
Janus plugin result.
Definition: plugin.h:417
janus_plugin_result_type
Result types.
Definition: plugin.h:407
const char *(*const get_package)(void)
Informative method to request the package name of the plugin (what will be used in web applications t...
Definition: plugin.h:259
The request was correctly handled and notifications will follow with more info (asynchronous) ...
Definition: plugin.h:413
The plugin session and callbacks interface.
Definition: plugin.h:232
int stopped
Whether this mapping has been stopped definitely or not: if so, the plugin shouldn't make use of it a...
Definition: plugin.h:228
const char *(*const get_description)(void)
Informative method to request a description of the plugin.
Definition: plugin.h:253
json_t * content
Result content.
Definition: plugin.h:434
A severe error happened (not an application level error)
Definition: plugin.h:409
janus_plugin * create_p(void)
The hook that plugins need to implement to be created from the gateway.
Definition: plugin.h:384
Callbacks to contact the gateway.
Definition: plugin.h:330
janus_plugin_result * janus_plugin_result_new(janus_plugin_result_type type, const char *text, json_t *content)
Helper to quickly create a janus_plugin_result instance.
Definition: plugin.c:17
void * plugin_handle
Opaque pointer to the plugin session.
Definition: plugin.h:225
Plugin-Gateway session mapping.
Definition: plugin.h:221
const char * text
Text associated with this plugin result.
Definition: plugin.h:426
janus_plugin_result_type type
Result type.
Definition: plugin.h:419