Fork me on GitHub
Functions
janus_duktape_extra.c File Reference

Janus Duktape plugin extra hooks. More...

#include "janus_duktape_data.h"
#include "janus_duktape_extra.h"
Include dependency graph for janus_duktape_extra.c:

Functions

void janus_duktape_register_extra_functions (duk_context *ctx)
 Method to register extra JavaScript functions in the C code. More...
 

Detailed Description

Janus Duktape plugin extra hooks.

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

More specifically, the Janus Duktape plugin will always invoke the janus_duktape_register_extra_functions() method when initializing. This means that all developers will need to do to register a new function is adding new duk_push_c_function calls to register their own functions there, and they'll be added to the stack.

Duktape plugin API

Function Documentation

◆ janus_duktape_register_extra_functions()

void janus_duktape_register_extra_functions ( duk_context *  ctx)

Method to register extra JavaScript functions in the C code.

Parameters
[in]ctxThe Duktape context to register the functions on