mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-22 20:21:54 +00:00
swig all
This commit is contained in:
@@ -41,10 +41,18 @@ public class Stream {
|
||||
this(freeswitchJNI.new_Stream__SWIG_1(SWIGTYPE_p_switch_stream_handle_t.getCPtr(arg0)), true);
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_std__string read() {
|
||||
return new SWIGTYPE_p_std__string(freeswitchJNI.Stream_read(swigCPtr, this), true);
|
||||
}
|
||||
|
||||
public void write(String data) {
|
||||
freeswitchJNI.Stream_write(swigCPtr, this, data);
|
||||
}
|
||||
|
||||
public void raw_write(SWIGTYPE_p_std__string data) {
|
||||
freeswitchJNI.Stream_raw_write(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(data));
|
||||
}
|
||||
|
||||
public String get_data() {
|
||||
return freeswitchJNI.Stream_get_data(swigCPtr, this);
|
||||
}
|
||||
|
||||
@@ -47,7 +47,9 @@ class freeswitchJNI {
|
||||
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);
|
||||
public final static native long Stream_read(long jarg1, Stream jarg1_);
|
||||
public final static native void Stream_write(long jarg1, Stream jarg1_, String jarg2);
|
||||
public final static native void Stream_raw_write(long jarg1, Stream jarg1_, long jarg2);
|
||||
public final static native String Stream_get_data(long jarg1, Stream jarg1_);
|
||||
public final static native void Event_event_set(long jarg1, Event jarg1_, long jarg2);
|
||||
public final static native long Event_event_get(long jarg1, Event jarg1_);
|
||||
|
||||
@@ -972,6 +972,21 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1Stream(JN
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1read(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
||||
jlong jresult = 0 ;
|
||||
Stream *arg1 = (Stream *) 0 ;
|
||||
std::string result;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(Stream **)&jarg1;
|
||||
result = (arg1)->read();
|
||||
*(std::string **)&jresult = new std::string((std::string &)result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1write(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
||||
Stream *arg1 = (Stream *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
@@ -990,6 +1005,25 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1write(JNI
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1raw_1write(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
||||
Stream *arg1 = (Stream *) 0 ;
|
||||
std::string arg2 ;
|
||||
std::string *argp2 ;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(Stream **)&jarg1;
|
||||
argp2 = *(std::string **)&jarg2;
|
||||
if (!argp2) {
|
||||
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null std::string");
|
||||
return ;
|
||||
}
|
||||
arg2 = *argp2;
|
||||
(arg1)->raw_write(arg2);
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_Stream_1get_1data(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
||||
jstring jresult = 0 ;
|
||||
Stream *arg1 = (Stream *) 0 ;
|
||||
|
||||
Reference in New Issue
Block a user