mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-12 23:31:50 +00:00
fix build prob
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8366 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -117,6 +117,10 @@ public class CoreSession {
|
||||
return freeswitchJNI.CoreSession_getVariable(swigCPtr, this, var);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_switch_status_t process_callback_result(String ret) {
|
||||
return new SWIGTYPE_p_switch_status_t(freeswitchJNI.CoreSession_process_callback_result(swigCPtr, this, ret), true);
|
||||
}
|
||||
|
||||
public int recordFile(String file_name, int max_len, int silence_threshold, int silence_secs) {
|
||||
return freeswitchJNI.CoreSession_recordFile__SWIG_0(swigCPtr, this, file_name, max_len, silence_threshold, silence_secs);
|
||||
}
|
||||
|
||||
@@ -80,6 +80,7 @@ class freeswitchJNI {
|
||||
public final static native void CoreSession_setPrivate(long jarg1, CoreSession jarg1_, String jarg2, long jarg3);
|
||||
public final static native long CoreSession_getPrivate(long jarg1, CoreSession jarg1_, String jarg2);
|
||||
public final static native String CoreSession_getVariable(long jarg1, CoreSession jarg1_, String jarg2);
|
||||
public final static native long CoreSession_process_callback_result(long jarg1, CoreSession jarg1_, String jarg2);
|
||||
public final static native int CoreSession_recordFile__SWIG_0(long jarg1, CoreSession jarg1_, String jarg2, int jarg3, int jarg4, int jarg5);
|
||||
public final static native int CoreSession_recordFile__SWIG_1(long jarg1, CoreSession jarg1_, String jarg2, int jarg3, int jarg4);
|
||||
public final static native int CoreSession_recordFile__SWIG_2(long jarg1, CoreSession jarg1_, String jarg2, int jarg3);
|
||||
|
||||
@@ -1453,6 +1453,28 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1g
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1process_1callback_1result(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
||||
jlong jresult = 0 ;
|
||||
CoreSession *arg1 = (CoreSession *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
switch_status_t result;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(CoreSession **)&jarg1;
|
||||
arg2 = 0;
|
||||
if (jarg2) {
|
||||
arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
|
||||
if (!arg2) return 0;
|
||||
}
|
||||
result = (arg1)->process_callback_result(arg2);
|
||||
*(switch_status_t **)&jresult = new switch_status_t((switch_status_t &)result);
|
||||
if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1recordFile_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3, jint jarg4, jint jarg5) {
|
||||
jint jresult = 0 ;
|
||||
CoreSession *arg1 = (CoreSession *) 0 ;
|
||||
|
||||
Reference in New Issue
Block a user