git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10485 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2008-11-20 23:12:15 +00:00
parent 369e606564
commit ec5c366f30
10 changed files with 127 additions and 0 deletions
@@ -25,6 +25,10 @@ public class freeswitch {
freeswitchJNI.console_clean_log(msg);
}
public static void msleep(SWIGTYPE_p_uint32_t ms) {
freeswitchJNI.msleep(SWIGTYPE_p_uint32_t.getCPtr(ms));
}
public static void bridge(CoreSession session_a, CoreSession session_b) {
freeswitchJNI.bridge(CoreSession.getCPtr(session_a), session_a, CoreSession.getCPtr(session_b), session_b);
}
@@ -158,6 +158,7 @@ class freeswitchJNI {
public final static native long CoreSession_run_dtmf_callback(long jarg1, CoreSession jarg1_, long jarg2, long jarg3);
public final static native void console_log(String jarg1, String jarg2);
public final static native void console_clean_log(String jarg1);
public final static native void msleep(long jarg1);
public final static native void bridge(long jarg1, CoreSession jarg1_, long jarg2, CoreSession jarg2_);
public final static native long hanguphook(long jarg1);
public final static native long dtmf_callback(long jarg1, long jarg2, long jarg3, long jarg4, long jarg5);
@@ -3032,6 +3032,22 @@ 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) {
uint32_t arg1 ;
uint32_t *argp1 ;
(void)jenv;
(void)jcls;
argp1 = *(uint32_t **)&jarg1;
if (!argp1) {
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null uint32_t");
return ;
}
arg1 = *argp1;
msleep(arg1);
}
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_bridge(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
CoreSession *arg1 = 0 ;
CoreSession *arg2 = 0 ;