mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8218 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
0bde97add0
commit
2981fd57c2
@ -116,9 +116,9 @@ static void lua_parse_and_execute(lua_State *L, char *input_code)
|
|||||||
char *args = strchr(input_code, ' ');
|
char *args = strchr(input_code, ' ');
|
||||||
if (args) {
|
if (args) {
|
||||||
char *code = NULL;
|
char *code = NULL;
|
||||||
*args++ = '\0';
|
|
||||||
int x, argc;
|
int x, argc;
|
||||||
char *argv[128] = { 0 };
|
char *argv[128] = { 0 };
|
||||||
|
*args++ = '\0';
|
||||||
|
|
||||||
if ((argc = switch_separate_string(args, ' ', argv, (sizeof(argv) / sizeof(argv[0]))))) {
|
if ((argc = switch_separate_string(args, ' ', argv, (sizeof(argv) / sizeof(argv[0]))))) {
|
||||||
switch_stream_handle_t stream = { 0 };
|
switch_stream_handle_t stream = { 0 };
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
SWITCH_BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
|
|
||||||
int mod_lua_conjure_event(lua_State *L, switch_event_t *event, const char *name, int destroy_me)
|
void mod_lua_conjure_event(lua_State *L, switch_event_t *event, const char *name, int destroy_me)
|
||||||
{
|
{
|
||||||
Event *result = new Event(event);
|
Event *result = new Event(event);
|
||||||
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event, destroy_me);
|
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event, destroy_me);
|
||||||
@ -9,7 +9,7 @@ int mod_lua_conjure_event(lua_State *L, switch_event_t *event, const char *name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int mod_lua_conjure_stream(lua_State *L, switch_stream_handle_t *stream, const char *name, int destroy_me)
|
void mod_lua_conjure_stream(lua_State *L, switch_stream_handle_t *stream, const char *name, int destroy_me)
|
||||||
{
|
{
|
||||||
Stream *result = new Stream(stream);
|
Stream *result = new Stream(stream);
|
||||||
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream, destroy_me);
|
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream, destroy_me);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user