mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-22 04:02:03 +00:00
swigall
This commit is contained in:
@@ -33,8 +33,8 @@ public class API {
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public API() {
|
||||
this(freeswitchJNI.new_API(), true);
|
||||
public API(CoreSession s) {
|
||||
this(freeswitchJNI.new_API(CoreSession.getCPtr(s), s), true);
|
||||
}
|
||||
|
||||
public String execute(String command, String data) {
|
||||
|
||||
@@ -19,7 +19,7 @@ class freeswitchJNI {
|
||||
public final static native void delete_IVRMenu(long jarg1);
|
||||
public final static native void IVRMenu_bindAction(long jarg1, IVRMenu jarg1_, String jarg2, String jarg3, String jarg4);
|
||||
public final static native void IVRMenu_execute(long jarg1, IVRMenu jarg1_, long jarg2, CoreSession jarg2_, String jarg3);
|
||||
public final static native long new_API();
|
||||
public final static native long new_API(long jarg1, CoreSession jarg1_);
|
||||
public final static native void delete_API(long jarg1);
|
||||
public final static native String API_execute(long jarg1, API jarg1_, String jarg2, String jarg3);
|
||||
public final static native String API_executeString(long jarg1, API jarg1_, String jarg2);
|
||||
|
||||
@@ -521,13 +521,16 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_IVRMenu_1execute(
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1API(JNIEnv *jenv, jclass jcls) {
|
||||
SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1API(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
||||
jlong jresult = 0 ;
|
||||
CoreSession *arg1 = (CoreSession *) NULL ;
|
||||
API *result = 0 ;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
result = (API *)new API();
|
||||
(void)jarg1_;
|
||||
arg1 = *(CoreSession **)&jarg1;
|
||||
result = (API *)new API(arg1);
|
||||
*(API **)&jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user