change types
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10502 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
fc74613246
commit
6ea577d747
|
@ -373,7 +373,7 @@ SWITCH_DECLARE(void) consoleCleanLog(char *msg);
|
||||||
|
|
||||||
SWITCH_DECLARE(void) console_log(char *level_str, char *msg);
|
SWITCH_DECLARE(void) console_log(char *level_str, char *msg);
|
||||||
SWITCH_DECLARE(void) console_clean_log(char *msg);
|
SWITCH_DECLARE(void) console_clean_log(char *msg);
|
||||||
SWITCH_DECLARE(void) msleep(uint32_t ms);
|
SWITCH_DECLARE(void) msleep(unsigned ms);
|
||||||
|
|
||||||
/** \brief bridge the audio of session_b into session_a
|
/** \brief bridge the audio of session_b into session_a
|
||||||
*
|
*
|
||||||
|
|
|
@ -25,8 +25,8 @@ public class freeswitch {
|
||||||
freeswitchJNI.console_clean_log(msg);
|
freeswitchJNI.console_clean_log(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void msleep(SWIGTYPE_p_uint32_t ms) {
|
public static void msleep(long ms) {
|
||||||
freeswitchJNI.msleep(SWIGTYPE_p_uint32_t.getCPtr(ms));
|
freeswitchJNI.msleep(ms);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void bridge(CoreSession session_a, CoreSession session_b) {
|
public static void bridge(CoreSession session_a, CoreSession session_b) {
|
||||||
|
|
|
@ -3033,17 +3033,11 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_console_1clean_1l
|
||||||
|
|
||||||
|
|
||||||
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_msleep(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_msleep(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
||||||
uint32_t arg1 ;
|
unsigned int arg1 ;
|
||||||
uint32_t *argp1 ;
|
|
||||||
|
|
||||||
(void)jenv;
|
(void)jenv;
|
||||||
(void)jcls;
|
(void)jcls;
|
||||||
argp1 = *(uint32_t **)&jarg1;
|
arg1 = (unsigned int)jarg1;
|
||||||
if (!argp1) {
|
|
||||||
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null uint32_t");
|
|
||||||
return ;
|
|
||||||
}
|
|
||||||
arg1 = *argp1;
|
|
||||||
msleep(arg1);
|
msleep(arg1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6793,17 +6793,11 @@ fail:
|
||||||
|
|
||||||
static int _wrap_msleep(lua_State* L) {
|
static int _wrap_msleep(lua_State* L) {
|
||||||
int SWIG_arg = -1;
|
int SWIG_arg = -1;
|
||||||
uint32_t arg1 ;
|
unsigned int arg1 ;
|
||||||
uint32_t *argp1 ;
|
|
||||||
|
|
||||||
SWIG_check_num_args("msleep",1,1)
|
SWIG_check_num_args("msleep",1,1)
|
||||||
if(!lua_isuserdata(L,1)) SWIG_fail_arg("msleep",1,"uint32_t");
|
if(!lua_isnumber(L,1)) SWIG_fail_arg("msleep",1,"unsigned int");
|
||||||
|
arg1 = (unsigned int)lua_tonumber(L, 1);
|
||||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&argp1,SWIGTYPE_p_uint32_t,0))){
|
|
||||||
SWIG_fail_ptr("msleep",1,SWIGTYPE_p_uint32_t);
|
|
||||||
}
|
|
||||||
arg1 = *argp1;
|
|
||||||
|
|
||||||
msleep(arg1);
|
msleep(arg1);
|
||||||
SWIG_arg=0;
|
SWIG_arg=0;
|
||||||
|
|
||||||
|
|
|
@ -26839,10 +26839,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_console_clean_log(char * jarg1) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SWIGEXPORT void SWIGSTDCALL CSharp_msleep(unsigned long jarg1) {
|
SWIGEXPORT void SWIGSTDCALL CSharp_msleep(unsigned int jarg1) {
|
||||||
uint32_t arg1 ;
|
unsigned int arg1 ;
|
||||||
|
|
||||||
arg1 = (uint32_t)jarg1;
|
arg1 = (unsigned int)jarg1;
|
||||||
msleep(arg1);
|
msleep(arg1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8970,30 +8970,26 @@ XS(_wrap_console_clean_log) {
|
||||||
|
|
||||||
XS(_wrap_msleep) {
|
XS(_wrap_msleep) {
|
||||||
{
|
{
|
||||||
uint32_t arg1 ;
|
unsigned int arg1 ;
|
||||||
void *argp1 ;
|
unsigned int val1 ;
|
||||||
int res1 = 0 ;
|
int ecode1 = 0 ;
|
||||||
int argvi = 0;
|
int argvi = 0;
|
||||||
dXSARGS;
|
dXSARGS;
|
||||||
|
|
||||||
if ((items < 1) || (items > 1)) {
|
if ((items < 1) || (items > 1)) {
|
||||||
SWIG_croak("Usage: msleep(ms);");
|
SWIG_croak("Usage: msleep(ms);");
|
||||||
}
|
}
|
||||||
{
|
ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
|
||||||
res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_uint32_t, 0 );
|
if (!SWIG_IsOK(ecode1)) {
|
||||||
if (!SWIG_IsOK(res1)) {
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "msleep" "', argument " "1"" of type '" "unsigned int""'");
|
||||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "msleep" "', argument " "1"" of type '" "uint32_t""'");
|
}
|
||||||
}
|
arg1 = static_cast< unsigned int >(val1);
|
||||||
if (!argp1) {
|
|
||||||
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "msleep" "', argument " "1"" of type '" "uint32_t""'");
|
|
||||||
} else {
|
|
||||||
arg1 = *(reinterpret_cast< uint32_t * >(argp1));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
msleep(arg1);
|
msleep(arg1);
|
||||||
|
|
||||||
|
|
||||||
XSRETURN(argvi);
|
XSRETURN(argvi);
|
||||||
fail:
|
fail:
|
||||||
|
|
||||||
SWIG_croak_null();
|
SWIG_croak_null();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8685,25 +8685,17 @@ fail:
|
||||||
|
|
||||||
SWIGINTERN PyObject *_wrap_msleep(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
SWIGINTERN PyObject *_wrap_msleep(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
PyObject *resultobj = 0;
|
PyObject *resultobj = 0;
|
||||||
uint32_t arg1 ;
|
unsigned int arg1 ;
|
||||||
void *argp1 ;
|
unsigned int val1 ;
|
||||||
int res1 = 0 ;
|
int ecode1 = 0 ;
|
||||||
PyObject * obj0 = 0 ;
|
PyObject * obj0 = 0 ;
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args,(char *)"O:msleep",&obj0)) SWIG_fail;
|
if (!PyArg_ParseTuple(args,(char *)"O:msleep",&obj0)) SWIG_fail;
|
||||||
{
|
ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
|
||||||
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_uint32_t, 0 | 0);
|
if (!SWIG_IsOK(ecode1)) {
|
||||||
if (!SWIG_IsOK(res1)) {
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "msleep" "', argument " "1"" of type '" "unsigned int""'");
|
||||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "msleep" "', argument " "1"" of type '" "uint32_t""'");
|
}
|
||||||
}
|
arg1 = static_cast< unsigned int >(val1);
|
||||||
if (!argp1) {
|
|
||||||
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "msleep" "', argument " "1"" of type '" "uint32_t""'");
|
|
||||||
} else {
|
|
||||||
uint32_t * temp = reinterpret_cast< uint32_t * >(argp1);
|
|
||||||
arg1 = *temp;
|
|
||||||
if (SWIG_IsNewObj(res1)) delete temp;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
msleep(arg1);
|
msleep(arg1);
|
||||||
resultobj = SWIG_Py_Void();
|
resultobj = SWIG_Py_Void();
|
||||||
return resultobj;
|
return resultobj;
|
||||||
|
|
|
@ -1090,7 +1090,7 @@ SWITCH_DECLARE(void) console_clean_log(char *msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SWITCH_DECLARE(void) msleep(uint32_t ms)
|
SWITCH_DECLARE(void) msleep(unsigned ms)
|
||||||
{
|
{
|
||||||
switch_sleep(ms * 1000);
|
switch_sleep(ms * 1000);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue