mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-12 15:21:50 +00:00
snake charming
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8998 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.35
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
package org.freeswitch.swig;
|
||||
|
||||
public class DTMF {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected DTMF(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(DTMF obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
freeswitchJNI.delete_DTMF(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public void setDigit(char value) {
|
||||
freeswitchJNI.DTMF_digit_set(swigCPtr, this, value);
|
||||
}
|
||||
|
||||
public char getDigit() {
|
||||
return freeswitchJNI.DTMF_digit_get(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setDuration(SWIGTYPE_p_uint32_t value) {
|
||||
freeswitchJNI.DTMF_duration_set(swigCPtr, this, SWIGTYPE_p_uint32_t.getCPtr(value));
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_uint32_t getDuration() {
|
||||
return new SWIGTYPE_p_uint32_t(freeswitchJNI.DTMF_duration_get(swigCPtr, this), true);
|
||||
}
|
||||
|
||||
public DTMF(char idigit, SWIGTYPE_p_uint32_t iduration) {
|
||||
this(freeswitchJNI.new_DTMF__SWIG_0(idigit, SWIGTYPE_p_uint32_t.getCPtr(iduration)), true);
|
||||
}
|
||||
|
||||
public DTMF(char idigit) {
|
||||
this(freeswitchJNI.new_DTMF__SWIG_1(idigit), true);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.35
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
package org.freeswitch.swig;
|
||||
|
||||
public class SWIGTYPE_p_uint32_t {
|
||||
private long swigCPtr;
|
||||
|
||||
protected SWIGTYPE_p_uint32_t(long cPtr, boolean futureUse) {
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_uint32_t() {
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SWIGTYPE_p_uint32_t obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,6 +32,13 @@ class freeswitchJNI {
|
||||
public final static native int S_HUP_get();
|
||||
public final static native int S_FREE_get();
|
||||
public final static native int S_RDLOCK_get();
|
||||
public final static native void DTMF_digit_set(long jarg1, DTMF jarg1_, char jarg2);
|
||||
public final static native char DTMF_digit_get(long jarg1, DTMF jarg1_);
|
||||
public final static native void DTMF_duration_set(long jarg1, DTMF jarg1_, long jarg2);
|
||||
public final static native long DTMF_duration_get(long jarg1, DTMF jarg1_);
|
||||
public final static native long new_DTMF__SWIG_0(char jarg1, long jarg2);
|
||||
public final static native long new_DTMF__SWIG_1(char jarg1);
|
||||
public final static native void delete_DTMF(long jarg1);
|
||||
public final static native long new_Stream__SWIG_0();
|
||||
public final static native long new_Stream__SWIG_1(long jarg1);
|
||||
public final static native void delete_Stream(long jarg1);
|
||||
|
||||
@@ -643,6 +643,117 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_S_1RDLOCK_1get(JN
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1digit_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jchar jarg2) {
|
||||
DTMF *arg1 = (DTMF *) 0 ;
|
||||
char arg2 ;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(DTMF **)&jarg1;
|
||||
arg2 = (char)jarg2;
|
||||
if (arg1) (arg1)->digit = arg2;
|
||||
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jchar JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1digit_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
||||
jchar jresult = 0 ;
|
||||
DTMF *arg1 = (DTMF *) 0 ;
|
||||
char result;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(DTMF **)&jarg1;
|
||||
result = (char) ((arg1)->digit);
|
||||
jresult = (jchar)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1duration_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
||||
DTMF *arg1 = (DTMF *) 0 ;
|
||||
uint32_t arg2 ;
|
||||
uint32_t *argp2 ;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(DTMF **)&jarg1;
|
||||
argp2 = *(uint32_t **)&jarg2;
|
||||
if (!argp2) {
|
||||
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null uint32_t");
|
||||
return ;
|
||||
}
|
||||
arg2 = *argp2;
|
||||
if (arg1) (arg1)->duration = arg2;
|
||||
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_DTMF_1duration_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
||||
jlong jresult = 0 ;
|
||||
DTMF *arg1 = (DTMF *) 0 ;
|
||||
uint32_t result;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(DTMF **)&jarg1;
|
||||
result = ((arg1)->duration);
|
||||
*(uint32_t **)&jresult = new uint32_t((uint32_t &)result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1DTMF_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jchar jarg1, jlong jarg2) {
|
||||
jlong jresult = 0 ;
|
||||
char arg1 ;
|
||||
uint32_t arg2 ;
|
||||
DTMF *result = 0 ;
|
||||
uint32_t *argp2 ;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
arg1 = (char)jarg1;
|
||||
argp2 = *(uint32_t **)&jarg2;
|
||||
if (!argp2) {
|
||||
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null uint32_t");
|
||||
return 0;
|
||||
}
|
||||
arg2 = *argp2;
|
||||
result = (DTMF *)new DTMF(arg1,arg2);
|
||||
*(DTMF **)&jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1DTMF_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jchar jarg1) {
|
||||
jlong jresult = 0 ;
|
||||
char arg1 ;
|
||||
DTMF *result = 0 ;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
arg1 = (char)jarg1;
|
||||
result = (DTMF *)new DTMF(arg1);
|
||||
*(DTMF **)&jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1DTMF(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
||||
DTMF *arg1 = (DTMF *) 0 ;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
arg1 = *(DTMF **)&jarg1;
|
||||
delete arg1;
|
||||
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1Stream_1_1SWIG_10(JNIEnv *jenv, jclass jcls) {
|
||||
jlong jresult = 0 ;
|
||||
Stream *result = 0 ;
|
||||
|
||||
Reference in New Issue
Block a user