Fork me on GitHub
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
plugin.c File Reference
#include "plugin.h"
#include "../apierror.h"
#include "../debug.h"
Include dependency graph for plugin.c:

Functions

janus_plugin_resultjanus_plugin_result_new (janus_plugin_result_type type, const char *content)
 Helper to quickly create a janus_plugin_result instance.
void janus_plugin_result_destroy (janus_plugin_result *result)
 Helper to quickly destroy a janus_plugin_result instance.

Function Documentation

void janus_plugin_result_destroy ( janus_plugin_result result)

Helper to quickly destroy a janus_plugin_result instance.

Parameters
[in]resultThe janus_plugin_result instance to destroy
Returns
A valid janus_plugin_result instance, if successful, or NULL otherwise
janus_plugin_result* janus_plugin_result_new ( janus_plugin_result_type  type,
const char *  content 
)

Helper to quickly create a janus_plugin_result instance.

Parameters
[in]typeThe type of result
[in]contentThe content of the result
Note
The content is always strdup-ed, if available, so remember to free the original string yourself, if you allocated it
Returns
A valid janus_plugin_result instance, if successful, or NULL otherwise