mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-16 08:14:13 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8214 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
f2994a09f8
commit
5952667987
14 files changed
+2999
-586
No files matched your search
@@ -0,0 +1,21 @@
|
||||
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
|
||||
Reference in new issue
Block a user