Janus Lua data/session definition (headers)
- Author
- Lorenzo Miniero loren.nosp@m.zo@m.nosp@m.eetec.nosp@m.ho.c.nosp@m.om
- Copyright
- GNU General Public License v3 The Janus Lua plugin implements all the mandatory hooks to allow the C code to interact with a custom Lua script, and viceversa. That said, the janus_lua_extra.c code allows for custom hooks to be added in C, to expose additional Lua functions and implement more complex media management than the one provided by the stock plugin. For this to work, though, the janus_lua_session object and its indexing in the hashtable need to be defined externally, which is what this file is for.
Notice that all the management associated to sessions (creating or destroying sessions, locking their global mutex, updating the hashtable) is done in the core of the Lua plugin: here we only define them, so that they can be accessed/used by the extra code too.
Lua plugin API