mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-05 11:51:52 +00:00
add args to sleep
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8930 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -5476,6 +5476,37 @@ static int _wrap_CoreSession_streamFile(lua_State* L) {
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_CoreSession_sleep(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
CoreSession *arg1 = (CoreSession *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
int arg3 ;
|
||||
int result;
|
||||
|
||||
SWIG_check_num_args("sleep",3,3)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sleep",1,"CoreSession *");
|
||||
if(!lua_isstring(L,2)) SWIG_fail_arg("sleep",2,"char *");
|
||||
if(!lua_isnumber(L,3)) SWIG_fail_arg("sleep",3,"int");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
|
||||
SWIG_fail_ptr("CoreSession_sleep",1,SWIGTYPE_p_CoreSession);
|
||||
}
|
||||
|
||||
arg2 = (char *)lua_tostring(L, 2);
|
||||
arg3 = (int)lua_tonumber(L, 3);
|
||||
result = (int)(arg1)->sleep(arg2,arg3);
|
||||
SWIG_arg=0;
|
||||
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_CoreSession_flushEvents(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
CoreSession *arg1 = (CoreSession *) 0 ;
|
||||
@@ -6081,6 +6112,7 @@ static swig_lua_method swig_CoreSession_methods[] = {
|
||||
{"read", _wrap_CoreSession_read},
|
||||
{"playAndGetDigits", _wrap_CoreSession_playAndGetDigits},
|
||||
{"streamFile", _wrap_CoreSession_streamFile},
|
||||
{"sleep", _wrap_CoreSession_sleep},
|
||||
{"flushEvents", _wrap_CoreSession_flushEvents},
|
||||
{"flushDigits", _wrap_CoreSession_flushDigits},
|
||||
{"setAutoHangup", _wrap_CoreSession_setAutoHangup},
|
||||
|
||||
Reference in New Issue
Block a user