mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-24 18:41:57 +00:00
22 lines
505 B
C
22 lines
505 B
C
|
SWITCH_BEGIN_EXTERN_C
|
||
|
|
||
|
|
||
|
int mod_lua_conjure_event(lua_State *L, switch_event_t *event, const char *name, int destroy_me)
|
||
|
{
|
||
|
Event *result = new Event(event);
|
||
|
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event, destroy_me);
|
||
|
lua_setglobal(L, name);
|
||
|
}
|
||
|
|
||
|
|
||
|
int mod_lua_conjure_stream(lua_State *L, switch_stream_handle_t *stream, const char *name, int destroy_me)
|
||
|
{
|
||
|
Stream *result = new Stream(stream);
|
||
|
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream, destroy_me);
|
||
|
lua_setglobal(L, name);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
SWITCH_END_EXTERN_C
|