mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-09 13:51:53 +00:00
add api.getTime()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12149 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1852,6 +1852,31 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_API_getTime(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
API *arg1 = (API *) 0 ;
|
||||
char *result = 0 ;
|
||||
|
||||
SWIG_check_num_args("getTime",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getTime",1,"API *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){
|
||||
SWIG_fail_ptr("API_getTime",1,SWIGTYPE_p_API);
|
||||
}
|
||||
|
||||
result = (char *)(arg1)->getTime();
|
||||
SWIG_arg=0;
|
||||
lua_pushstring(L,(const char*)result); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static void swig_delete_API(void *obj) {
|
||||
API *arg1 = (API *) obj;
|
||||
delete arg1;
|
||||
@@ -1859,6 +1884,7 @@ delete arg1;
|
||||
static swig_lua_method swig_API_methods[] = {
|
||||
{"execute", _wrap_API_execute},
|
||||
{"executeString", _wrap_API_executeString},
|
||||
{"getTime", _wrap_API_getTime},
|
||||
{0,0}
|
||||
};
|
||||
static swig_lua_attribute swig_API_attributes[] = {
|
||||
|
||||
Reference in New Issue
Block a user