summaryrefslogtreecommitdiffstats
path: root/bindings/java/android
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/java/android')
-rw-r--r--bindings/java/android/ActionConfig.java69
-rw-r--r--bindings/java/android/AudioResampler.java58
-rw-r--r--bindings/java/android/CallSession.java234
-rw-r--r--bindings/java/android/Codec.java66
-rw-r--r--bindings/java/android/DDebugCallback.java74
-rw-r--r--bindings/java/android/DialogEvent.java38
-rw-r--r--bindings/java/android/InfoEvent.java52
-rw-r--r--bindings/java/android/InfoSession.java66
-rw-r--r--bindings/java/android/InviteEvent.java61
-rw-r--r--bindings/java/android/InviteSession.java79
-rw-r--r--bindings/java/android/MediaContent.java68
-rw-r--r--bindings/java/android/MediaContentCPIM.java50
-rw-r--r--bindings/java/android/MediaSessionMgr.java357
-rw-r--r--bindings/java/android/MessagingEvent.java52
-rw-r--r--bindings/java/android/MessagingSession.java66
-rw-r--r--bindings/java/android/MsrpCallback.java62
-rw-r--r--bindings/java/android/MsrpEvent.java52
-rw-r--r--bindings/java/android/MsrpMessage.java90
-rw-r--r--bindings/java/android/MsrpSession.java78
-rw-r--r--bindings/java/android/OptionsEvent.java52
-rw-r--r--bindings/java/android/OptionsSession.java66
-rw-r--r--bindings/java/android/ProxyAudioConsumer.java86
-rw-r--r--bindings/java/android/ProxyAudioConsumerCallback.java74
-rw-r--r--bindings/java/android/ProxyAudioProducer.java82
-rw-r--r--bindings/java/android/ProxyAudioProducerCallback.java78
-rw-r--r--bindings/java/android/ProxyPlugin.java46
-rw-r--r--bindings/java/android/ProxyPluginMgr.java73
-rw-r--r--bindings/java/android/ProxyPluginMgrCallback.java66
-rw-r--r--bindings/java/android/ProxyVideoConsumer.java98
-rw-r--r--bindings/java/android/ProxyVideoConsumerCallback.java82
-rw-r--r--bindings/java/android/ProxyVideoFrame.java54
-rw-r--r--bindings/java/android/ProxyVideoProducer.java78
-rw-r--r--bindings/java/android/ProxyVideoProducerCallback.java74
-rw-r--r--bindings/java/android/PublicationEvent.java52
-rw-r--r--bindings/java/android/PublicationSession.java66
-rw-r--r--bindings/java/android/RPMessage.java54
-rw-r--r--bindings/java/android/RegistrationEvent.java52
-rw-r--r--bindings/java/android/RegistrationSession.java74
-rw-r--r--bindings/java/android/SMSData.java66
-rw-r--r--bindings/java/android/SMSEncoder.java63
-rw-r--r--bindings/java/android/SafeObject.java50
-rw-r--r--bindings/java/android/SdpMessage.java54
-rw-r--r--bindings/java/android/SipCallback.java94
-rw-r--r--bindings/java/android/SipEvent.java56
-rw-r--r--bindings/java/android/SipMessage.java99
-rw-r--r--bindings/java/android/SipSession.java111
-rw-r--r--bindings/java/android/SipStack.java242
-rw-r--r--bindings/java/android/SipUri.java86
-rw-r--r--bindings/java/android/StackEvent.java38
-rw-r--r--bindings/java/android/SubscriptionEvent.java52
-rw-r--r--bindings/java/android/SubscriptionSession.java50
-rw-r--r--bindings/java/android/T140Callback.java62
-rw-r--r--bindings/java/android/T140CallbackData.java62
-rw-r--r--bindings/java/android/XcapCallback.java62
-rw-r--r--bindings/java/android/XcapEvent.java47
-rw-r--r--bindings/java/android/XcapMessage.java86
-rw-r--r--bindings/java/android/XcapSelector.java80
-rw-r--r--bindings/java/android/XcapStack.java118
-rw-r--r--bindings/java/android/buildAll.sh14
-rw-r--r--bindings/java/android/commercial.sh28
-rw-r--r--bindings/java/android/droid-makefile146
-rw-r--r--bindings/java/android/gpl.sh30
-rw-r--r--bindings/java/android/lgpl.sh28
-rw-r--r--bindings/java/android/minimal.sh27
-rw-r--r--bindings/java/android/tdav_codec_id_t.java83
-rw-r--r--bindings/java/android/thttp_event_type_t.java56
-rw-r--r--bindings/java/android/tinyWRAP.java12
-rw-r--r--bindings/java/android/tinyWRAPConstants.java30
-rw-r--r--bindings/java/android/tinyWRAPJNI.java791
-rw-r--r--bindings/java/android/tinyWRAP_wrap.cxx13579
-rw-r--r--bindings/java/android/tinyWRAP_wrap.h192
-rw-r--r--bindings/java/android/tmedia_bandwidth_level_t.java54
-rw-r--r--bindings/java/android/tmedia_chroma_t.java63
-rw-r--r--bindings/java/android/tmedia_codec_id_t.java83
-rw-r--r--bindings/java/android/tmedia_mode_t.java53
-rw-r--r--bindings/java/android/tmedia_pref_video_size_t.java65
-rw-r--r--bindings/java/android/tmedia_profile_t.java52
-rw-r--r--bindings/java/android/tmedia_qos_strength_t.java55
-rw-r--r--bindings/java/android/tmedia_qos_stype_t.java53
-rw-r--r--bindings/java/android/tmedia_srtp_mode_t.java53
-rw-r--r--bindings/java/android/tmedia_srtp_type_t.java54
-rw-r--r--bindings/java/android/tmedia_t140_data_type_t.java65
-rw-r--r--bindings/java/android/tmsrp_event_type_t.java54
-rw-r--r--bindings/java/android/tmsrp_request_type_t.java54
-rw-r--r--bindings/java/android/tsip_event_type_t.java58
-rw-r--r--bindings/java/android/tsip_info_event_type_t.java52
-rw-r--r--bindings/java/android/tsip_invite_event_type_t.java72
-rw-r--r--bindings/java/android/tsip_message_event_type_t.java52
-rw-r--r--bindings/java/android/tsip_options_event_type_t.java52
-rw-r--r--bindings/java/android/tsip_publish_event_type_t.java54
-rw-r--r--bindings/java/android/tsip_register_event_type_t.java55
-rw-r--r--bindings/java/android/tsip_request_type_t.java65
-rw-r--r--bindings/java/android/tsip_stack_mode_t.java54
-rw-r--r--bindings/java/android/tsip_subscribe_event_type_t.java56
-rw-r--r--bindings/java/android/twrap_media_type_t.java60
-rw-r--r--bindings/java/android/twrap_proxy_plugin_type_t.java54
-rw-r--r--bindings/java/android/twrap_rpmessage_type_t.java55
-rw-r--r--bindings/java/android/twrap_sms_type_t.java55
98 files changed, 21125 insertions, 0 deletions
diff --git a/bindings/java/android/ActionConfig.java b/bindings/java/android/ActionConfig.java
new file mode 100644
index 0000000..cf84060
--- /dev/null
+++ b/bindings/java/android/ActionConfig.java
@@ -0,0 +1,69 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class ActionConfig {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected ActionConfig(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(ActionConfig obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_ActionConfig(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public ActionConfig() {
+ this(tinyWRAPJNI.new_ActionConfig(), true);
+ }
+
+ public boolean addHeader(String name, String value) {
+ return tinyWRAPJNI.ActionConfig_addHeader(swigCPtr, this, name, value);
+ }
+
+ public boolean addPayload(java.nio.ByteBuffer payload, long len) {
+ return tinyWRAPJNI.ActionConfig_addPayload(swigCPtr, this, payload, len);
+ }
+
+ public boolean setActiveMedia(twrap_media_type_t type) {
+ return tinyWRAPJNI.ActionConfig_setActiveMedia(swigCPtr, this, type.swigValue());
+ }
+
+ public ActionConfig setResponseLine(short code, String phrase) {
+ long cPtr = tinyWRAPJNI.ActionConfig_setResponseLine(swigCPtr, this, code, phrase);
+ return (cPtr == 0) ? null : new ActionConfig(cPtr, false);
+ }
+
+ public ActionConfig setMediaString(twrap_media_type_t type, String key, String value) {
+ long cPtr = tinyWRAPJNI.ActionConfig_setMediaString(swigCPtr, this, type.swigValue(), key, value);
+ return (cPtr == 0) ? null : new ActionConfig(cPtr, false);
+ }
+
+ public ActionConfig setMediaInt(twrap_media_type_t type, String key, int value) {
+ long cPtr = tinyWRAPJNI.ActionConfig_setMediaInt(swigCPtr, this, type.swigValue(), key, value);
+ return (cPtr == 0) ? null : new ActionConfig(cPtr, false);
+ }
+
+}
diff --git a/bindings/java/android/AudioResampler.java b/bindings/java/android/AudioResampler.java
new file mode 100644
index 0000000..fb7b9e4
--- /dev/null
+++ b/bindings/java/android/AudioResampler.java
@@ -0,0 +1,58 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class AudioResampler {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected AudioResampler(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(AudioResampler obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_AudioResampler(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public AudioResampler(long nInFreq, long nOutFreq, long nFrameDuration, long nChannels, long nQuality) {
+ this(tinyWRAPJNI.new_AudioResampler(nInFreq, nOutFreq, nFrameDuration, nChannels, nQuality), true);
+ }
+
+ public boolean isValid() {
+ return tinyWRAPJNI.AudioResampler_isValid(swigCPtr, this);
+ }
+
+ public long getOutputRequiredSizeInShort() {
+ return tinyWRAPJNI.AudioResampler_getOutputRequiredSizeInShort(swigCPtr, this);
+ }
+
+ public long getInputRequiredSizeInShort() {
+ return tinyWRAPJNI.AudioResampler_getInputRequiredSizeInShort(swigCPtr, this);
+ }
+
+ public long process(java.nio.ByteBuffer pInData, long nInSizeInBytes, java.nio.ByteBuffer pOutData, long nOutSizeInBytes) {
+ return tinyWRAPJNI.AudioResampler_process(swigCPtr, this, pInData, nInSizeInBytes, pOutData, nOutSizeInBytes);
+ }
+
+}
diff --git a/bindings/java/android/CallSession.java b/bindings/java/android/CallSession.java
new file mode 100644
index 0000000..ef4d254
--- /dev/null
+++ b/bindings/java/android/CallSession.java
@@ -0,0 +1,234 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class CallSession extends InviteSession {
+ private long swigCPtr;
+
+ protected CallSession(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.CallSession_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(CallSession obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_CallSession(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public CallSession(SipStack pStack) {
+ this(tinyWRAPJNI.new_CallSession(SipStack.getCPtr(pStack), pStack), true);
+ }
+
+ public boolean callAudio(String remoteUriString, ActionConfig config) {
+ return tinyWRAPJNI.CallSession_callAudio__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean callAudio(String remoteUriString) {
+ return tinyWRAPJNI.CallSession_callAudio__SWIG_1(swigCPtr, this, remoteUriString);
+ }
+
+ public boolean callAudio(SipUri remoteUri, ActionConfig config) {
+ return tinyWRAPJNI.CallSession_callAudio__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean callAudio(SipUri remoteUri) {
+ return tinyWRAPJNI.CallSession_callAudio__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri);
+ }
+
+ public boolean callAudioVideo(String remoteUriString, ActionConfig config) {
+ return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean callAudioVideo(String remoteUriString) {
+ return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_1(swigCPtr, this, remoteUriString);
+ }
+
+ public boolean callAudioVideo(SipUri remoteUri, ActionConfig config) {
+ return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean callAudioVideo(SipUri remoteUri) {
+ return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri);
+ }
+
+ public boolean callVideo(String remoteUriString, ActionConfig config) {
+ return tinyWRAPJNI.CallSession_callVideo__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean callVideo(String remoteUriString) {
+ return tinyWRAPJNI.CallSession_callVideo__SWIG_1(swigCPtr, this, remoteUriString);
+ }
+
+ public boolean callVideo(SipUri remoteUri, ActionConfig config) {
+ return tinyWRAPJNI.CallSession_callVideo__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean callVideo(SipUri remoteUri) {
+ return tinyWRAPJNI.CallSession_callVideo__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri);
+ }
+
+ public boolean call(String remoteUriString, twrap_media_type_t media, ActionConfig config) {
+ return tinyWRAPJNI.CallSession_call__SWIG_0(swigCPtr, this, remoteUriString, media.swigValue(), ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean call(String remoteUriString, twrap_media_type_t media) {
+ return tinyWRAPJNI.CallSession_call__SWIG_1(swigCPtr, this, remoteUriString, media.swigValue());
+ }
+
+ public boolean call(SipUri remoteUri, twrap_media_type_t media, ActionConfig config) {
+ return tinyWRAPJNI.CallSession_call__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, media.swigValue(), ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean call(SipUri remoteUri, twrap_media_type_t media) {
+ return tinyWRAPJNI.CallSession_call__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, media.swigValue());
+ }
+
+ public boolean setSessionTimer(long timeout, String refresher) {
+ return tinyWRAPJNI.CallSession_setSessionTimer(swigCPtr, this, timeout, refresher);
+ }
+
+ public boolean set100rel(boolean enabled) {
+ return tinyWRAPJNI.CallSession_set100rel(swigCPtr, this, enabled);
+ }
+
+ public boolean setRtcp(boolean enabled) {
+ return tinyWRAPJNI.CallSession_setRtcp(swigCPtr, this, enabled);
+ }
+
+ public boolean setRtcpMux(boolean enabled) {
+ return tinyWRAPJNI.CallSession_setRtcpMux(swigCPtr, this, enabled);
+ }
+
+ public boolean setSRtpMode(tmedia_srtp_mode_t mode) {
+ return tinyWRAPJNI.CallSession_setSRtpMode(swigCPtr, this, mode.swigValue());
+ }
+
+ public boolean setAvpfMode(tmedia_mode_t mode) {
+ return tinyWRAPJNI.CallSession_setAvpfMode(swigCPtr, this, mode.swigValue());
+ }
+
+ public boolean setICE(boolean enabled) {
+ return tinyWRAPJNI.CallSession_setICE(swigCPtr, this, enabled);
+ }
+
+ public boolean setICEStun(boolean enabled) {
+ return tinyWRAPJNI.CallSession_setICEStun(swigCPtr, this, enabled);
+ }
+
+ public boolean setICETurn(boolean enabled) {
+ return tinyWRAPJNI.CallSession_setICETurn(swigCPtr, this, enabled);
+ }
+
+ public boolean setSTUNServer(String hostname, int port) {
+ return tinyWRAPJNI.CallSession_setSTUNServer(swigCPtr, this, hostname, port);
+ }
+
+ public boolean setSTUNCred(String username, String password) {
+ return tinyWRAPJNI.CallSession_setSTUNCred(swigCPtr, this, username, password);
+ }
+
+ public boolean setVideoFps(int fps) {
+ return tinyWRAPJNI.CallSession_setVideoFps(swigCPtr, this, fps);
+ }
+
+ public boolean setVideoBandwidthUploadMax(int max) {
+ return tinyWRAPJNI.CallSession_setVideoBandwidthUploadMax(swigCPtr, this, max);
+ }
+
+ public boolean setVideoBandwidthDownloadMax(int max) {
+ return tinyWRAPJNI.CallSession_setVideoBandwidthDownloadMax(swigCPtr, this, max);
+ }
+
+ public boolean setVideoPrefSize(tmedia_pref_video_size_t pref_video_size) {
+ return tinyWRAPJNI.CallSession_setVideoPrefSize(swigCPtr, this, pref_video_size.swigValue());
+ }
+
+ public boolean setQoS(tmedia_qos_stype_t type, tmedia_qos_strength_t strength) {
+ return tinyWRAPJNI.CallSession_setQoS(swigCPtr, this, type.swigValue(), strength.swigValue());
+ }
+
+ public boolean hold(ActionConfig config) {
+ return tinyWRAPJNI.CallSession_hold__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean hold() {
+ return tinyWRAPJNI.CallSession_hold__SWIG_1(swigCPtr, this);
+ }
+
+ public boolean resume(ActionConfig config) {
+ return tinyWRAPJNI.CallSession_resume__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean resume() {
+ return tinyWRAPJNI.CallSession_resume__SWIG_1(swigCPtr, this);
+ }
+
+ public boolean transfer(String referToUriString, ActionConfig config) {
+ return tinyWRAPJNI.CallSession_transfer__SWIG_0(swigCPtr, this, referToUriString, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean transfer(String referToUriString) {
+ return tinyWRAPJNI.CallSession_transfer__SWIG_1(swigCPtr, this, referToUriString);
+ }
+
+ public boolean acceptTransfer(ActionConfig config) {
+ return tinyWRAPJNI.CallSession_acceptTransfer__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean acceptTransfer() {
+ return tinyWRAPJNI.CallSession_acceptTransfer__SWIG_1(swigCPtr, this);
+ }
+
+ public boolean rejectTransfer(ActionConfig config) {
+ return tinyWRAPJNI.CallSession_rejectTransfer__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean rejectTransfer() {
+ return tinyWRAPJNI.CallSession_rejectTransfer__SWIG_1(swigCPtr, this);
+ }
+
+ public boolean sendDTMF(int number) {
+ return tinyWRAPJNI.CallSession_sendDTMF(swigCPtr, this, number);
+ }
+
+ public long getSessionTransferId() {
+ return tinyWRAPJNI.CallSession_getSessionTransferId(swigCPtr, this);
+ }
+
+ public boolean sendT140Data(tmedia_t140_data_type_t data_type, java.nio.ByteBuffer data_ptr, long data_size) {
+ return tinyWRAPJNI.CallSession_sendT140Data__SWIG_0(swigCPtr, this, data_type.swigValue(), data_ptr, data_size);
+ }
+
+ public boolean sendT140Data(tmedia_t140_data_type_t data_type, java.nio.ByteBuffer data_ptr) {
+ return tinyWRAPJNI.CallSession_sendT140Data__SWIG_1(swigCPtr, this, data_type.swigValue(), data_ptr);
+ }
+
+ public boolean sendT140Data(tmedia_t140_data_type_t data_type) {
+ return tinyWRAPJNI.CallSession_sendT140Data__SWIG_2(swigCPtr, this, data_type.swigValue());
+ }
+
+ public boolean setT140Callback(T140Callback pT140Callback) {
+ return tinyWRAPJNI.CallSession_setT140Callback(swigCPtr, this, T140Callback.getCPtr(pT140Callback), pT140Callback);
+ }
+
+}
diff --git a/bindings/java/android/Codec.java b/bindings/java/android/Codec.java
new file mode 100644
index 0000000..6c2a68d
--- /dev/null
+++ b/bindings/java/android/Codec.java
@@ -0,0 +1,66 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class Codec {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected Codec(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(Codec obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_Codec(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public twrap_media_type_t getMediaType() {
+ return twrap_media_type_t.swigToEnum(tinyWRAPJNI.Codec_getMediaType(swigCPtr, this));
+ }
+
+ public String getName() {
+ return tinyWRAPJNI.Codec_getName(swigCPtr, this);
+ }
+
+ public String getDescription() {
+ return tinyWRAPJNI.Codec_getDescription(swigCPtr, this);
+ }
+
+ public String getNegFormat() {
+ return tinyWRAPJNI.Codec_getNegFormat(swigCPtr, this);
+ }
+
+ public int getAudioSamplingRate() {
+ return tinyWRAPJNI.Codec_getAudioSamplingRate(swigCPtr, this);
+ }
+
+ public int getAudioChannels() {
+ return tinyWRAPJNI.Codec_getAudioChannels(swigCPtr, this);
+ }
+
+ public int getAudioPTime() {
+ return tinyWRAPJNI.Codec_getAudioPTime(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/DDebugCallback.java b/bindings/java/android/DDebugCallback.java
new file mode 100644
index 0000000..e469d30
--- /dev/null
+++ b/bindings/java/android/DDebugCallback.java
@@ -0,0 +1,74 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class DDebugCallback {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected DDebugCallback(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(DDebugCallback obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_DDebugCallback(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ protected void swigDirectorDisconnect() {
+ swigCMemOwn = false;
+ delete();
+ }
+
+ public void swigReleaseOwnership() {
+ swigCMemOwn = false;
+ tinyWRAPJNI.DDebugCallback_change_ownership(this, swigCPtr, false);
+ }
+
+ public void swigTakeOwnership() {
+ swigCMemOwn = true;
+ tinyWRAPJNI.DDebugCallback_change_ownership(this, swigCPtr, true);
+ }
+
+ public DDebugCallback() {
+ this(tinyWRAPJNI.new_DDebugCallback(), true);
+ tinyWRAPJNI.DDebugCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
+ }
+
+ public int OnDebugInfo(String message) {
+ return (getClass() == DDebugCallback.class) ? tinyWRAPJNI.DDebugCallback_OnDebugInfo(swigCPtr, this, message) : tinyWRAPJNI.DDebugCallback_OnDebugInfoSwigExplicitDDebugCallback(swigCPtr, this, message);
+ }
+
+ public int OnDebugWarn(String message) {
+ return (getClass() == DDebugCallback.class) ? tinyWRAPJNI.DDebugCallback_OnDebugWarn(swigCPtr, this, message) : tinyWRAPJNI.DDebugCallback_OnDebugWarnSwigExplicitDDebugCallback(swigCPtr, this, message);
+ }
+
+ public int OnDebugError(String message) {
+ return (getClass() == DDebugCallback.class) ? tinyWRAPJNI.DDebugCallback_OnDebugError(swigCPtr, this, message) : tinyWRAPJNI.DDebugCallback_OnDebugErrorSwigExplicitDDebugCallback(swigCPtr, this, message);
+ }
+
+ public int OnDebugFatal(String message) {
+ return (getClass() == DDebugCallback.class) ? tinyWRAPJNI.DDebugCallback_OnDebugFatal(swigCPtr, this, message) : tinyWRAPJNI.DDebugCallback_OnDebugFatalSwigExplicitDDebugCallback(swigCPtr, this, message);
+ }
+
+}
diff --git a/bindings/java/android/DialogEvent.java b/bindings/java/android/DialogEvent.java
new file mode 100644
index 0000000..fc83b5f
--- /dev/null
+++ b/bindings/java/android/DialogEvent.java
@@ -0,0 +1,38 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class DialogEvent extends SipEvent {
+ private long swigCPtr;
+
+ protected DialogEvent(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.DialogEvent_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(DialogEvent obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_DialogEvent(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+}
diff --git a/bindings/java/android/InfoEvent.java b/bindings/java/android/InfoEvent.java
new file mode 100644
index 0000000..9166a57
--- /dev/null
+++ b/bindings/java/android/InfoEvent.java
@@ -0,0 +1,52 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class InfoEvent extends SipEvent {
+ private long swigCPtr;
+
+ protected InfoEvent(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.InfoEvent_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(InfoEvent obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_InfoEvent(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public tsip_info_event_type_t getType() {
+ return tsip_info_event_type_t.swigToEnum(tinyWRAPJNI.InfoEvent_getType(swigCPtr, this));
+ }
+
+ public InfoSession getSession() {
+ long cPtr = tinyWRAPJNI.InfoEvent_getSession(swigCPtr, this);
+ return (cPtr == 0) ? null : new InfoSession(cPtr, false);
+ }
+
+ public InfoSession takeSessionOwnership() {
+ long cPtr = tinyWRAPJNI.InfoEvent_takeSessionOwnership(swigCPtr, this);
+ return (cPtr == 0) ? null : new InfoSession(cPtr, false);
+ }
+
+}
diff --git a/bindings/java/android/InfoSession.java b/bindings/java/android/InfoSession.java
new file mode 100644
index 0000000..f7c7996
--- /dev/null
+++ b/bindings/java/android/InfoSession.java
@@ -0,0 +1,66 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class InfoSession extends SipSession {
+ private long swigCPtr;
+
+ protected InfoSession(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.InfoSession_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(InfoSession obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_InfoSession(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public InfoSession(SipStack pStack) {
+ this(tinyWRAPJNI.new_InfoSession(SipStack.getCPtr(pStack), pStack), true);
+ }
+
+ public boolean send(java.nio.ByteBuffer payload, long len, ActionConfig config) {
+ return tinyWRAPJNI.InfoSession_send__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean send(java.nio.ByteBuffer payload, long len) {
+ return tinyWRAPJNI.InfoSession_send__SWIG_1(swigCPtr, this, payload, len);
+ }
+
+ public boolean accept(ActionConfig config) {
+ return tinyWRAPJNI.InfoSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean accept() {
+ return tinyWRAPJNI.InfoSession_accept__SWIG_1(swigCPtr, this);
+ }
+
+ public boolean reject(ActionConfig config) {
+ return tinyWRAPJNI.InfoSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean reject() {
+ return tinyWRAPJNI.InfoSession_reject__SWIG_1(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/InviteEvent.java b/bindings/java/android/InviteEvent.java
new file mode 100644
index 0000000..11675d1
--- /dev/null
+++ b/bindings/java/android/InviteEvent.java
@@ -0,0 +1,61 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class InviteEvent extends SipEvent {
+ private long swigCPtr;
+
+ protected InviteEvent(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.InviteEvent_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(InviteEvent obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_InviteEvent(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public tsip_invite_event_type_t getType() {
+ return tsip_invite_event_type_t.swigToEnum(tinyWRAPJNI.InviteEvent_getType(swigCPtr, this));
+ }
+
+ public twrap_media_type_t getMediaType() {
+ return twrap_media_type_t.swigToEnum(tinyWRAPJNI.InviteEvent_getMediaType(swigCPtr, this));
+ }
+
+ public InviteSession getSession() {
+ long cPtr = tinyWRAPJNI.InviteEvent_getSession(swigCPtr, this);
+ return (cPtr == 0) ? null : new InviteSession(cPtr, false);
+ }
+
+ public CallSession takeCallSessionOwnership() {
+ long cPtr = tinyWRAPJNI.InviteEvent_takeCallSessionOwnership(swigCPtr, this);
+ return (cPtr == 0) ? null : new CallSession(cPtr, true);
+ }
+
+ public MsrpSession takeMsrpSessionOwnership() {
+ long cPtr = tinyWRAPJNI.InviteEvent_takeMsrpSessionOwnership(swigCPtr, this);
+ return (cPtr == 0) ? null : new MsrpSession(cPtr, true);
+ }
+
+}
diff --git a/bindings/java/android/InviteSession.java b/bindings/java/android/InviteSession.java
new file mode 100644
index 0000000..bf85bdf
--- /dev/null
+++ b/bindings/java/android/InviteSession.java
@@ -0,0 +1,79 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class InviteSession extends SipSession {
+ private long swigCPtr;
+
+ protected InviteSession(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.InviteSession_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(InviteSession obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_InviteSession(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public InviteSession(SipStack Stack) {
+ this(tinyWRAPJNI.new_InviteSession(SipStack.getCPtr(Stack), Stack), true);
+ }
+
+ public boolean accept(ActionConfig config) {
+ return tinyWRAPJNI.InviteSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean accept() {
+ return tinyWRAPJNI.InviteSession_accept__SWIG_1(swigCPtr, this);
+ }
+
+ public boolean hangup(ActionConfig config) {
+ return tinyWRAPJNI.InviteSession_hangup__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean hangup() {
+ return tinyWRAPJNI.InviteSession_hangup__SWIG_1(swigCPtr, this);
+ }
+
+ public boolean reject(ActionConfig config) {
+ return tinyWRAPJNI.InviteSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean reject() {
+ return tinyWRAPJNI.InviteSession_reject__SWIG_1(swigCPtr, this);
+ }
+
+ public boolean sendInfo(java.nio.ByteBuffer payload, long len, ActionConfig config) {
+ return tinyWRAPJNI.InviteSession_sendInfo__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean sendInfo(java.nio.ByteBuffer payload, long len) {
+ return tinyWRAPJNI.InviteSession_sendInfo__SWIG_1(swigCPtr, this, payload, len);
+ }
+
+ public MediaSessionMgr getMediaMgr() {
+ long cPtr = tinyWRAPJNI.InviteSession_getMediaMgr(swigCPtr, this);
+ return (cPtr == 0) ? null : new MediaSessionMgr(cPtr, false);
+ }
+
+}
diff --git a/bindings/java/android/MediaContent.java b/bindings/java/android/MediaContent.java
new file mode 100644
index 0000000..d7ef55f
--- /dev/null
+++ b/bindings/java/android/MediaContent.java
@@ -0,0 +1,68 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class MediaContent {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected MediaContent(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(MediaContent obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_MediaContent(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public String getType() {
+ return tinyWRAPJNI.MediaContent_getType(swigCPtr, this);
+ }
+
+ public long getDataLength() {
+ return tinyWRAPJNI.MediaContent_getDataLength(swigCPtr, this);
+ }
+
+ public long getData(java.nio.ByteBuffer pOutput, long nMaxsize) {
+ return tinyWRAPJNI.MediaContent_getData(swigCPtr, this, pOutput, nMaxsize);
+ }
+
+ public static MediaContent parse(java.nio.ByteBuffer pData, long nSize, String pType) {
+ long cPtr = tinyWRAPJNI.MediaContent_parse__SWIG_0(pData, nSize, pType);
+ return (cPtr == 0) ? null : new MediaContent(cPtr, true);
+ }
+
+ public static MediaContentCPIM parse(java.nio.ByteBuffer pData, long nSize) {
+ long cPtr = tinyWRAPJNI.MediaContent_parse__SWIG_1(pData, nSize);
+ return (cPtr == 0) ? null : new MediaContentCPIM(cPtr, true);
+ }
+
+ public long getPayloadLength() {
+ return tinyWRAPJNI.MediaContent_getPayloadLength(swigCPtr, this);
+ }
+
+ public long getPayload(java.nio.ByteBuffer pOutput, long nMaxsize) {
+ return tinyWRAPJNI.MediaContent_getPayload(swigCPtr, this, pOutput, nMaxsize);
+ }
+
+}
diff --git a/bindings/java/android/MediaContentCPIM.java b/bindings/java/android/MediaContentCPIM.java
new file mode 100644
index 0000000..65bd4ea
--- /dev/null
+++ b/bindings/java/android/MediaContentCPIM.java
@@ -0,0 +1,50 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class MediaContentCPIM extends MediaContent {
+ private long swigCPtr;
+
+ protected MediaContentCPIM(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.MediaContentCPIM_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(MediaContentCPIM obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_MediaContentCPIM(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public long getPayloadLength() {
+ return tinyWRAPJNI.MediaContentCPIM_getPayloadLength(swigCPtr, this);
+ }
+
+ public long getPayload(java.nio.ByteBuffer pOutput, long nMaxsize) {
+ return tinyWRAPJNI.MediaContentCPIM_getPayload(swigCPtr, this, pOutput, nMaxsize);
+ }
+
+ public String getHeaderValue(String pName) {
+ return tinyWRAPJNI.MediaContentCPIM_getHeaderValue(swigCPtr, this, pName);
+ }
+
+}
diff --git a/bindings/java/android/MediaSessionMgr.java b/bindings/java/android/MediaSessionMgr.java
new file mode 100644
index 0000000..f5d0177
--- /dev/null
+++ b/bindings/java/android/MediaSessionMgr.java
@@ -0,0 +1,357 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class MediaSessionMgr {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected MediaSessionMgr(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(MediaSessionMgr obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_MediaSessionMgr(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public boolean sessionSetInt32(twrap_media_type_t media, String key, int value) {
+ return tinyWRAPJNI.MediaSessionMgr_sessionSetInt32(swigCPtr, this, media.swigValue(), key, value);
+ }
+
+ public int sessionGetInt32(twrap_media_type_t media, String key) {
+ return tinyWRAPJNI.MediaSessionMgr_sessionGetInt32(swigCPtr, this, media.swigValue(), key);
+ }
+
+ public boolean consumerSetInt32(twrap_media_type_t media, String key, int value) {
+ return tinyWRAPJNI.MediaSessionMgr_consumerSetInt32(swigCPtr, this, media.swigValue(), key, value);
+ }
+
+ public boolean consumerSetInt64(twrap_media_type_t media, String key, long value) {
+ return tinyWRAPJNI.MediaSessionMgr_consumerSetInt64(swigCPtr, this, media.swigValue(), key, value);
+ }
+
+ public boolean producerSetInt32(twrap_media_type_t media, String key, int value) {
+ return tinyWRAPJNI.MediaSessionMgr_producerSetInt32(swigCPtr, this, media.swigValue(), key, value);
+ }
+
+ public boolean producerSetInt64(twrap_media_type_t media, String key, long value) {
+ return tinyWRAPJNI.MediaSessionMgr_producerSetInt64(swigCPtr, this, media.swigValue(), key, value);
+ }
+
+ public Codec producerGetCodec(twrap_media_type_t media) {
+ long cPtr = tinyWRAPJNI.MediaSessionMgr_producerGetCodec(swigCPtr, this, media.swigValue());
+ return (cPtr == 0) ? null : new Codec(cPtr, true);
+ }
+
+ public ProxyPlugin findProxyPluginConsumer(twrap_media_type_t media) {
+ long cPtr = tinyWRAPJNI.MediaSessionMgr_findProxyPluginConsumer(swigCPtr, this, media.swigValue());
+ return (cPtr == 0) ? null : new ProxyPlugin(cPtr, false);
+ }
+
+ public ProxyPlugin findProxyPluginProducer(twrap_media_type_t media) {
+ long cPtr = tinyWRAPJNI.MediaSessionMgr_findProxyPluginProducer(swigCPtr, this, media.swigValue());
+ return (cPtr == 0) ? null : new ProxyPlugin(cPtr, false);
+ }
+
+ public static long registerAudioPluginFromFile(String path) {
+ return tinyWRAPJNI.MediaSessionMgr_registerAudioPluginFromFile(path);
+ }
+
+ public java.math.BigInteger getSessionId(twrap_media_type_t media) {
+ return tinyWRAPJNI.MediaSessionMgr_getSessionId(swigCPtr, this, media.swigValue());
+ }
+
+ public static boolean defaultsSetProfile(tmedia_profile_t profile) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetProfile(profile.swigValue());
+ }
+
+ public static tmedia_profile_t defaultsGetProfile() {
+ return tmedia_profile_t.swigToEnum(tinyWRAPJNI.MediaSessionMgr_defaultsGetProfile());
+ }
+
+ public static boolean defaultsSetBandwidthLevel(tmedia_bandwidth_level_t bl) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetBandwidthLevel(bl.swigValue());
+ }
+
+ public static tmedia_bandwidth_level_t defaultsGetBandwidthLevel() {
+ return tmedia_bandwidth_level_t.swigToEnum(tinyWRAPJNI.MediaSessionMgr_defaultsGetBandwidthLevel());
+ }
+
+ public static boolean defaultsSetCongestionCtrlEnabled(boolean enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetCongestionCtrlEnabled(enabled);
+ }
+
+ public static boolean defaultsSetVideoMotionRank(int video_motion_rank) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetVideoMotionRank(video_motion_rank);
+ }
+
+ public static boolean defaultsSetVideoFps(int video_fps) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetVideoFps(video_fps);
+ }
+
+ public static boolean defaultsSetBandwidthVideoUploadMax(int bw_video_up_max_kbps) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetBandwidthVideoUploadMax(bw_video_up_max_kbps);
+ }
+
+ public static boolean defaultsSetBandwidthVideoDownloadMax(int bw_video_down_max_kbps) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax(bw_video_down_max_kbps);
+ }
+
+ public static boolean defaultsSetPrefVideoSize(tmedia_pref_video_size_t pref_video_size) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetPrefVideoSize(pref_video_size.swigValue());
+ }
+
+ public static boolean defaultsSetJbMargin(long jb_margin_ms) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetJbMargin(jb_margin_ms);
+ }
+
+ public static boolean defaultsSetJbMaxLateRate(long jb_late_rate_percent) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetJbMaxLateRate(jb_late_rate_percent);
+ }
+
+ public static boolean defaultsSetEchoTail(long echo_tail) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetEchoTail(echo_tail);
+ }
+
+ public static long defaultsGetEchoTail() {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsGetEchoTail();
+ }
+
+ public static boolean defaultsSetEchoSkew(long echo_skew) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetEchoSkew(echo_skew);
+ }
+
+ public static boolean defaultsSetEchoSuppEnabled(boolean echo_supp_enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetEchoSuppEnabled(echo_supp_enabled);
+ }
+
+ public static boolean defaultsGetEchoSuppEnabled() {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsGetEchoSuppEnabled();
+ }
+
+ public static boolean defaultsSetAgcEnabled(boolean agc_enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetAgcEnabled(agc_enabled);
+ }
+
+ public static boolean defaultsGetAgcEnabled() {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsGetAgcEnabled();
+ }
+
+ public static boolean defaultsSetAgcLevel(float agc_level) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetAgcLevel(agc_level);
+ }
+
+ public static float defaultsGetAgcLevel() {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsGetAgcLevel();
+ }
+
+ public static boolean defaultsSetVadEnabled(boolean vad_enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetVadEnabled(vad_enabled);
+ }
+
+ public static boolean defaultsGetGetVadEnabled() {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsGetGetVadEnabled();
+ }
+
+ public static boolean defaultsSetNoiseSuppEnabled(boolean noise_supp_enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetNoiseSuppEnabled(noise_supp_enabled);
+ }
+
+ public static boolean defaultsGetNoiseSuppEnabled() {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsGetNoiseSuppEnabled();
+ }
+
+ public static boolean defaultsSetNoiseSuppLevel(int noise_supp_level) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetNoiseSuppLevel(noise_supp_level);
+ }
+
+ public static int defaultsGetNoiseSuppLevel() {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsGetNoiseSuppLevel();
+ }
+
+ public static boolean defaultsSet100relEnabled(boolean _100rel_enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSet100relEnabled(_100rel_enabled);
+ }
+
+ public static boolean defaultsGet100relEnabled() {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsGet100relEnabled();
+ }
+
+ public static boolean defaultsSetScreenSize(int sx, int sy) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetScreenSize(sx, sy);
+ }
+
+ public static boolean defaultsSetAudioGain(int producer_gain, int consumer_gain) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetAudioGain(producer_gain, consumer_gain);
+ }
+
+ public static boolean defaultsSetAudioPtime(int ptime) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetAudioPtime(ptime);
+ }
+
+ public static boolean defaultsSetAudioChannels(int channel_playback, int channel_record) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetAudioChannels(channel_playback, channel_record);
+ }
+
+ public static boolean defaultsSetRtpPortRange(int range_start, int range_stop) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtpPortRange(range_start, range_stop);
+ }
+
+ public static boolean defaultsSetRtpSymetricEnabled(boolean enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtpSymetricEnabled(enabled);
+ }
+
+ public static boolean defaultsSetMediaType(twrap_media_type_t media_type) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetMediaType(media_type.swigValue());
+ }
+
+ public static boolean defaultsSetVolume(int volume) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetVolume(volume);
+ }
+
+ public static int defaultsGetVolume() {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsGetVolume();
+ }
+
+ public static boolean defaultsSetInviteSessionTimers(int timeout, String refresher) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetInviteSessionTimers(timeout, refresher);
+ }
+
+ public static boolean defaultsSetSRtpMode(tmedia_srtp_mode_t mode) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetSRtpMode(mode.swigValue());
+ }
+
+ public static tmedia_srtp_mode_t defaultsGetSRtpMode() {
+ return tmedia_srtp_mode_t.swigToEnum(tinyWRAPJNI.MediaSessionMgr_defaultsGetSRtpMode());
+ }
+
+ public static boolean defaultsSetSRtpType(tmedia_srtp_type_t srtp_type) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetSRtpType(srtp_type.swigValue());
+ }
+
+ public static tmedia_srtp_type_t defaultsGetSRtpType() {
+ return tmedia_srtp_type_t.swigToEnum(tinyWRAPJNI.MediaSessionMgr_defaultsGetSRtpType());
+ }
+
+ public static boolean defaultsSetRtcpEnabled(boolean enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtcpEnabled(enabled);
+ }
+
+ public static boolean defaultsGetRtcpEnabled() {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsGetRtcpEnabled();
+ }
+
+ public static boolean defaultsSetRtcpMuxEnabled(boolean enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtcpMuxEnabled(enabled);
+ }
+
+ public static boolean defaultsGetRtcpMuxEnabled() {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsGetRtcpMuxEnabled();
+ }
+
+ public static boolean defaultsSetStunEnabled(boolean stun_enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetStunEnabled(stun_enabled);
+ }
+
+ public static boolean defaultsSetIceStunEnabled(boolean icestun_enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetIceStunEnabled(icestun_enabled);
+ }
+
+ public static boolean defaultsSetIceTurnEnabled(boolean iceturn_enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetIceTurnEnabled(iceturn_enabled);
+ }
+
+ public static boolean defaultsSetStunServer(String server_ip, int server_port) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetStunServer(server_ip, server_port);
+ }
+
+ public static boolean defaultsSetStunCred(String username, String password) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetStunCred(username, password);
+ }
+
+ public static boolean defaultsSetIceEnabled(boolean ice_enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetIceEnabled(ice_enabled);
+ }
+
+ public static boolean defaultsSetByPassEncoding(boolean enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetByPassEncoding(enabled);
+ }
+
+ public static boolean defaultsGetByPassEncoding() {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsGetByPassEncoding();
+ }
+
+ public static boolean defaultsSetByPassDecoding(boolean enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetByPassDecoding(enabled);
+ }
+
+ public static boolean defaultsGetByPassDecoding() {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsGetByPassDecoding();
+ }
+
+ public static boolean defaultsSetVideoJbEnabled(boolean enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetVideoJbEnabled(enabled);
+ }
+
+ public static boolean defaultsGetVideoJbEnabled() {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsGetVideoJbEnabled();
+ }
+
+ public static boolean defaultsSetVideoZeroArtifactsEnabled(boolean enabled) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled(enabled);
+ }
+
+ public static boolean defaultsGetVideoZeroArtifactsEnabled() {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled();
+ }
+
+ public static boolean defaultsSetRtpBuffSize(long buffSize) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtpBuffSize(buffSize);
+ }
+
+ public static long defaultsGetRtpBuffSize() {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsGetRtpBuffSize();
+ }
+
+ public static boolean defaultsSetAvpfTail(long tail_min, long tail_max) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetAvpfTail(tail_min, tail_max);
+ }
+
+ public static boolean defaultsSetAvpfMode(tmedia_mode_t mode) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetAvpfMode(mode.swigValue());
+ }
+
+ public static boolean defaultsSetOpusMaxCaptureRate(long opus_maxcapturerate) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetOpusMaxCaptureRate(opus_maxcapturerate);
+ }
+
+ public static boolean defaultsSetOpusMaxPlaybackRate(long opus_maxplaybackrate) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetOpusMaxPlaybackRate(opus_maxplaybackrate);
+ }
+
+ public static boolean defaultsSetMaxFds(int max_fds) {
+ return tinyWRAPJNI.MediaSessionMgr_defaultsSetMaxFds(max_fds);
+ }
+
+}
diff --git a/bindings/java/android/MessagingEvent.java b/bindings/java/android/MessagingEvent.java
new file mode 100644
index 0000000..4d88c33
--- /dev/null
+++ b/bindings/java/android/MessagingEvent.java
@@ -0,0 +1,52 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class MessagingEvent extends SipEvent {
+ private long swigCPtr;
+
+ protected MessagingEvent(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.MessagingEvent_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(MessagingEvent obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_MessagingEvent(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public tsip_message_event_type_t getType() {
+ return tsip_message_event_type_t.swigToEnum(tinyWRAPJNI.MessagingEvent_getType(swigCPtr, this));
+ }
+
+ public MessagingSession getSession() {
+ long cPtr = tinyWRAPJNI.MessagingEvent_getSession(swigCPtr, this);
+ return (cPtr == 0) ? null : new MessagingSession(cPtr, false);
+ }
+
+ public MessagingSession takeSessionOwnership() {
+ long cPtr = tinyWRAPJNI.MessagingEvent_takeSessionOwnership(swigCPtr, this);
+ return (cPtr == 0) ? null : new MessagingSession(cPtr, true);
+ }
+
+}
diff --git a/bindings/java/android/MessagingSession.java b/bindings/java/android/MessagingSession.java
new file mode 100644
index 0000000..95e0389
--- /dev/null
+++ b/bindings/java/android/MessagingSession.java
@@ -0,0 +1,66 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class MessagingSession extends SipSession {
+ private long swigCPtr;
+
+ protected MessagingSession(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.MessagingSession_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(MessagingSession obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_MessagingSession(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public MessagingSession(SipStack pStack) {
+ this(tinyWRAPJNI.new_MessagingSession(SipStack.getCPtr(pStack), pStack), true);
+ }
+
+ public boolean send(java.nio.ByteBuffer payload, long len, ActionConfig config) {
+ return tinyWRAPJNI.MessagingSession_send__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean send(java.nio.ByteBuffer payload, long len) {
+ return tinyWRAPJNI.MessagingSession_send__SWIG_1(swigCPtr, this, payload, len);
+ }
+
+ public boolean accept(ActionConfig config) {
+ return tinyWRAPJNI.MessagingSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean accept() {
+ return tinyWRAPJNI.MessagingSession_accept__SWIG_1(swigCPtr, this);
+ }
+
+ public boolean reject(ActionConfig config) {
+ return tinyWRAPJNI.MessagingSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean reject() {
+ return tinyWRAPJNI.MessagingSession_reject__SWIG_1(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/MsrpCallback.java b/bindings/java/android/MsrpCallback.java
new file mode 100644
index 0000000..55de1a8
--- /dev/null
+++ b/bindings/java/android/MsrpCallback.java
@@ -0,0 +1,62 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class MsrpCallback {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected MsrpCallback(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(MsrpCallback obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_MsrpCallback(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ protected void swigDirectorDisconnect() {
+ swigCMemOwn = false;
+ delete();
+ }
+
+ public void swigReleaseOwnership() {
+ swigCMemOwn = false;
+ tinyWRAPJNI.MsrpCallback_change_ownership(this, swigCPtr, false);
+ }
+
+ public void swigTakeOwnership() {
+ swigCMemOwn = true;
+ tinyWRAPJNI.MsrpCallback_change_ownership(this, swigCPtr, true);
+ }
+
+ public MsrpCallback() {
+ this(tinyWRAPJNI.new_MsrpCallback(), true);
+ tinyWRAPJNI.MsrpCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
+ }
+
+ public int OnEvent(MsrpEvent e) {
+ return (getClass() == MsrpCallback.class) ? tinyWRAPJNI.MsrpCallback_OnEvent(swigCPtr, this, MsrpEvent.getCPtr(e), e) : tinyWRAPJNI.MsrpCallback_OnEventSwigExplicitMsrpCallback(swigCPtr, this, MsrpEvent.getCPtr(e), e);
+ }
+
+}
diff --git a/bindings/java/android/MsrpEvent.java b/bindings/java/android/MsrpEvent.java
new file mode 100644
index 0000000..7a024d4
--- /dev/null
+++ b/bindings/java/android/MsrpEvent.java
@@ -0,0 +1,52 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class MsrpEvent {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected MsrpEvent(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(MsrpEvent obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_MsrpEvent(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public tmsrp_event_type_t getType() {
+ return tmsrp_event_type_t.swigToEnum(tinyWRAPJNI.MsrpEvent_getType(swigCPtr, this));
+ }
+
+ public MsrpSession getSipSession() {
+ long cPtr = tinyWRAPJNI.MsrpEvent_getSipSession(swigCPtr, this);
+ return (cPtr == 0) ? null : new MsrpSession(cPtr, false);
+ }
+
+ public MsrpMessage getMessage() {
+ long cPtr = tinyWRAPJNI.MsrpEvent_getMessage(swigCPtr, this);
+ return (cPtr == 0) ? null : new MsrpMessage(cPtr, false);
+ }
+
+}
diff --git a/bindings/java/android/MsrpMessage.java b/bindings/java/android/MsrpMessage.java
new file mode 100644
index 0000000..8fd6e39
--- /dev/null
+++ b/bindings/java/android/MsrpMessage.java
@@ -0,0 +1,90 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class MsrpMessage {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected MsrpMessage(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(MsrpMessage obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_MsrpMessage(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public MsrpMessage() {
+ this(tinyWRAPJNI.new_MsrpMessage(), true);
+ }
+
+ public boolean isRequest() {
+ return tinyWRAPJNI.MsrpMessage_isRequest(swigCPtr, this);
+ }
+
+ public short getCode() {
+ return tinyWRAPJNI.MsrpMessage_getCode(swigCPtr, this);
+ }
+
+ public String getPhrase() {
+ return tinyWRAPJNI.MsrpMessage_getPhrase(swigCPtr, this);
+ }
+
+ public tmsrp_request_type_t getRequestType() {
+ return tmsrp_request_type_t.swigToEnum(tinyWRAPJNI.MsrpMessage_getRequestType(swigCPtr, this));
+ }
+
+ public void getByteRange(long[] arg0, long[] arg1, long[] arg2) {
+ tinyWRAPJNI.MsrpMessage_getByteRange(swigCPtr, this, arg0, arg1, arg2);
+ }
+
+ public boolean isLastChunck() {
+ return tinyWRAPJNI.MsrpMessage_isLastChunck(swigCPtr, this);
+ }
+
+ public boolean isFirstChunck() {
+ return tinyWRAPJNI.MsrpMessage_isFirstChunck(swigCPtr, this);
+ }
+
+ public boolean isSuccessReport() {
+ return tinyWRAPJNI.MsrpMessage_isSuccessReport(swigCPtr, this);
+ }
+
+ public String getMsrpHeaderValue(String name) {
+ return tinyWRAPJNI.MsrpMessage_getMsrpHeaderValue(swigCPtr, this, name);
+ }
+
+ public String getMsrpHeaderParamValue(String name, String param) {
+ return tinyWRAPJNI.MsrpMessage_getMsrpHeaderParamValue(swigCPtr, this, name, param);
+ }
+
+ public long getMsrpContentLength() {
+ return tinyWRAPJNI.MsrpMessage_getMsrpContentLength(swigCPtr, this);
+ }
+
+ public long getMsrpContent(java.nio.ByteBuffer output, long maxsize) {
+ return tinyWRAPJNI.MsrpMessage_getMsrpContent(swigCPtr, this, output, maxsize);
+ }
+
+}
diff --git a/bindings/java/android/MsrpSession.java b/bindings/java/android/MsrpSession.java
new file mode 100644
index 0000000..6393dec
--- /dev/null
+++ b/bindings/java/android/MsrpSession.java
@@ -0,0 +1,78 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class MsrpSession extends InviteSession {
+ private long swigCPtr;
+
+ protected MsrpSession(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.MsrpSession_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(MsrpSession obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_MsrpSession(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public MsrpSession(SipStack pStack, MsrpCallback pCallback) {
+ this(tinyWRAPJNI.new_MsrpSession(SipStack.getCPtr(pStack), pStack, MsrpCallback.getCPtr(pCallback), pCallback), true);
+ }
+
+ public boolean setCallback(MsrpCallback pCallback) {
+ return tinyWRAPJNI.MsrpSession_setCallback(swigCPtr, this, MsrpCallback.getCPtr(pCallback), pCallback);
+ }
+
+ public boolean callMsrp(String remoteUriString, ActionConfig config) {
+ return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean callMsrp(String remoteUriString) {
+ return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_1(swigCPtr, this, remoteUriString);
+ }
+
+ public boolean callMsrp(SipUri remoteUri, ActionConfig config) {
+ return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean callMsrp(SipUri remoteUri) {
+ return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri);
+ }
+
+ public boolean sendMessage(java.nio.ByteBuffer payload, long len, ActionConfig config) {
+ return tinyWRAPJNI.MsrpSession_sendMessage__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean sendMessage(java.nio.ByteBuffer payload, long len) {
+ return tinyWRAPJNI.MsrpSession_sendMessage__SWIG_1(swigCPtr, this, payload, len);
+ }
+
+ public boolean sendFile(ActionConfig config) {
+ return tinyWRAPJNI.MsrpSession_sendFile__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean sendFile() {
+ return tinyWRAPJNI.MsrpSession_sendFile__SWIG_1(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/OptionsEvent.java b/bindings/java/android/OptionsEvent.java
new file mode 100644
index 0000000..4dde699
--- /dev/null
+++ b/bindings/java/android/OptionsEvent.java
@@ -0,0 +1,52 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class OptionsEvent extends SipEvent {
+ private long swigCPtr;
+
+ protected OptionsEvent(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.OptionsEvent_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(OptionsEvent obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_OptionsEvent(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public tsip_options_event_type_t getType() {
+ return tsip_options_event_type_t.swigToEnum(tinyWRAPJNI.OptionsEvent_getType(swigCPtr, this));
+ }
+
+ public OptionsSession getSession() {
+ long cPtr = tinyWRAPJNI.OptionsEvent_getSession(swigCPtr, this);
+ return (cPtr == 0) ? null : new OptionsSession(cPtr, false);
+ }
+
+ public OptionsSession takeSessionOwnership() {
+ long cPtr = tinyWRAPJNI.OptionsEvent_takeSessionOwnership(swigCPtr, this);
+ return (cPtr == 0) ? null : new OptionsSession(cPtr, false);
+ }
+
+}
diff --git a/bindings/java/android/OptionsSession.java b/bindings/java/android/OptionsSession.java
new file mode 100644
index 0000000..fb018c4
--- /dev/null
+++ b/bindings/java/android/OptionsSession.java
@@ -0,0 +1,66 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class OptionsSession extends SipSession {
+ private long swigCPtr;
+
+ protected OptionsSession(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.OptionsSession_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(OptionsSession obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_OptionsSession(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public OptionsSession(SipStack pStack) {
+ this(tinyWRAPJNI.new_OptionsSession(SipStack.getCPtr(pStack), pStack), true);
+ }
+
+ public boolean send(ActionConfig config) {
+ return tinyWRAPJNI.OptionsSession_send__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean send() {
+ return tinyWRAPJNI.OptionsSession_send__SWIG_1(swigCPtr, this);
+ }
+
+ public boolean accept(ActionConfig config) {
+ return tinyWRAPJNI.OptionsSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean accept() {
+ return tinyWRAPJNI.OptionsSession_accept__SWIG_1(swigCPtr, this);
+ }
+
+ public boolean reject(ActionConfig config) {
+ return tinyWRAPJNI.OptionsSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean reject() {
+ return tinyWRAPJNI.OptionsSession_reject__SWIG_1(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/ProxyAudioConsumer.java b/bindings/java/android/ProxyAudioConsumer.java
new file mode 100644
index 0000000..50c4474
--- /dev/null
+++ b/bindings/java/android/ProxyAudioConsumer.java
@@ -0,0 +1,86 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class ProxyAudioConsumer extends ProxyPlugin {
+ private long swigCPtr;
+
+ protected ProxyAudioConsumer(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.ProxyAudioConsumer_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(ProxyAudioConsumer obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_ProxyAudioConsumer(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public boolean setActualSndCardPlaybackParams(int nPtime, int nRate, int nChannels) {
+ return tinyWRAPJNI.ProxyAudioConsumer_setActualSndCardPlaybackParams(swigCPtr, this, nPtime, nRate, nChannels);
+ }
+
+ public boolean queryForResampler(int nInFreq, int nOutFreq, int nFrameDuration, int nChannels, int nResamplerQuality) {
+ return tinyWRAPJNI.ProxyAudioConsumer_queryForResampler(swigCPtr, this, nInFreq, nOutFreq, nFrameDuration, nChannels, nResamplerQuality);
+ }
+
+ public boolean setPullBuffer(java.nio.ByteBuffer pPullBufferPtr, long nPullBufferSize) {
+ return tinyWRAPJNI.ProxyAudioConsumer_setPullBuffer(swigCPtr, this, pPullBufferPtr, nPullBufferSize);
+ }
+
+ public long pull(java.nio.ByteBuffer pOutput, long nSize) {
+ return tinyWRAPJNI.ProxyAudioConsumer_pull__SWIG_0(swigCPtr, this, pOutput, nSize);
+ }
+
+ public long pull(java.nio.ByteBuffer pOutput) {
+ return tinyWRAPJNI.ProxyAudioConsumer_pull__SWIG_1(swigCPtr, this, pOutput);
+ }
+
+ public long pull() {
+ return tinyWRAPJNI.ProxyAudioConsumer_pull__SWIG_2(swigCPtr, this);
+ }
+
+ public boolean setGain(long nGain) {
+ return tinyWRAPJNI.ProxyAudioConsumer_setGain(swigCPtr, this, nGain);
+ }
+
+ public long getGain() {
+ return tinyWRAPJNI.ProxyAudioConsumer_getGain(swigCPtr, this);
+ }
+
+ public boolean reset() {
+ return tinyWRAPJNI.ProxyAudioConsumer_reset(swigCPtr, this);
+ }
+
+ public void setCallback(ProxyAudioConsumerCallback pCallback) {
+ tinyWRAPJNI.ProxyAudioConsumer_setCallback(swigCPtr, this, ProxyAudioConsumerCallback.getCPtr(pCallback), pCallback);
+ }
+
+ public java.math.BigInteger getMediaSessionId() {
+ return tinyWRAPJNI.ProxyAudioConsumer_getMediaSessionId(swigCPtr, this);
+ }
+
+ public static boolean registerPlugin() {
+ return tinyWRAPJNI.ProxyAudioConsumer_registerPlugin();
+ }
+
+}
diff --git a/bindings/java/android/ProxyAudioConsumerCallback.java b/bindings/java/android/ProxyAudioConsumerCallback.java
new file mode 100644
index 0000000..b48d5d3
--- /dev/null
+++ b/bindings/java/android/ProxyAudioConsumerCallback.java
@@ -0,0 +1,74 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class ProxyAudioConsumerCallback {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected ProxyAudioConsumerCallback(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(ProxyAudioConsumerCallback obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_ProxyAudioConsumerCallback(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ protected void swigDirectorDisconnect() {
+ swigCMemOwn = false;
+ delete();
+ }
+
+ public void swigReleaseOwnership() {
+ swigCMemOwn = false;
+ tinyWRAPJNI.ProxyAudioConsumerCallback_change_ownership(this, swigCPtr, false);
+ }
+
+ public void swigTakeOwnership() {
+ swigCMemOwn = true;
+ tinyWRAPJNI.ProxyAudioConsumerCallback_change_ownership(this, swigCPtr, true);
+ }
+
+ public ProxyAudioConsumerCallback() {
+ this(tinyWRAPJNI.new_ProxyAudioConsumerCallback(), true);
+ tinyWRAPJNI.ProxyAudioConsumerCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
+ }
+
+ public int prepare(int ptime, int rate, int channels) {
+ return (getClass() == ProxyAudioConsumerCallback.class) ? tinyWRAPJNI.ProxyAudioConsumerCallback_prepare(swigCPtr, this, ptime, rate, channels) : tinyWRAPJNI.ProxyAudioConsumerCallback_prepareSwigExplicitProxyAudioConsumerCallback(swigCPtr, this, ptime, rate, channels);
+ }
+
+ public int start() {
+ return (getClass() == ProxyAudioConsumerCallback.class) ? tinyWRAPJNI.ProxyAudioConsumerCallback_start(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumerCallback_startSwigExplicitProxyAudioConsumerCallback(swigCPtr, this);
+ }
+
+ public int pause() {
+ return (getClass() == ProxyAudioConsumerCallback.class) ? tinyWRAPJNI.ProxyAudioConsumerCallback_pause(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumerCallback_pauseSwigExplicitProxyAudioConsumerCallback(swigCPtr, this);
+ }
+
+ public int stop() {
+ return (getClass() == ProxyAudioConsumerCallback.class) ? tinyWRAPJNI.ProxyAudioConsumerCallback_stop(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumerCallback_stopSwigExplicitProxyAudioConsumerCallback(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/ProxyAudioProducer.java b/bindings/java/android/ProxyAudioProducer.java
new file mode 100644
index 0000000..288287a
--- /dev/null
+++ b/bindings/java/android/ProxyAudioProducer.java
@@ -0,0 +1,82 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class ProxyAudioProducer extends ProxyPlugin {
+ private long swigCPtr;
+
+ protected ProxyAudioProducer(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.ProxyAudioProducer_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(ProxyAudioProducer obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_ProxyAudioProducer(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public boolean setActualSndCardRecordParams(int nPtime, int nRate, int nChannels) {
+ return tinyWRAPJNI.ProxyAudioProducer_setActualSndCardRecordParams(swigCPtr, this, nPtime, nRate, nChannels);
+ }
+
+ public boolean setPushBuffer(java.nio.ByteBuffer pPushBufferPtr, long nPushBufferSize, boolean bUsePushCallback) {
+ return tinyWRAPJNI.ProxyAudioProducer_setPushBuffer__SWIG_0(swigCPtr, this, pPushBufferPtr, nPushBufferSize, bUsePushCallback);
+ }
+
+ public boolean setPushBuffer(java.nio.ByteBuffer pPushBufferPtr, long nPushBufferSize) {
+ return tinyWRAPJNI.ProxyAudioProducer_setPushBuffer__SWIG_1(swigCPtr, this, pPushBufferPtr, nPushBufferSize);
+ }
+
+ public int push(java.nio.ByteBuffer pBuffer, long nSize) {
+ return tinyWRAPJNI.ProxyAudioProducer_push__SWIG_0(swigCPtr, this, pBuffer, nSize);
+ }
+
+ public int push(java.nio.ByteBuffer pBuffer) {
+ return tinyWRAPJNI.ProxyAudioProducer_push__SWIG_1(swigCPtr, this, pBuffer);
+ }
+
+ public int push() {
+ return tinyWRAPJNI.ProxyAudioProducer_push__SWIG_2(swigCPtr, this);
+ }
+
+ public boolean setGain(long nGain) {
+ return tinyWRAPJNI.ProxyAudioProducer_setGain(swigCPtr, this, nGain);
+ }
+
+ public long getGain() {
+ return tinyWRAPJNI.ProxyAudioProducer_getGain(swigCPtr, this);
+ }
+
+ public void setCallback(ProxyAudioProducerCallback pCallback) {
+ tinyWRAPJNI.ProxyAudioProducer_setCallback(swigCPtr, this, ProxyAudioProducerCallback.getCPtr(pCallback), pCallback);
+ }
+
+ public java.math.BigInteger getMediaSessionId() {
+ return tinyWRAPJNI.ProxyAudioProducer_getMediaSessionId(swigCPtr, this);
+ }
+
+ public static boolean registerPlugin() {
+ return tinyWRAPJNI.ProxyAudioProducer_registerPlugin();
+ }
+
+}
diff --git a/bindings/java/android/ProxyAudioProducerCallback.java b/bindings/java/android/ProxyAudioProducerCallback.java
new file mode 100644
index 0000000..7dc1bfd
--- /dev/null
+++ b/bindings/java/android/ProxyAudioProducerCallback.java
@@ -0,0 +1,78 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class ProxyAudioProducerCallback {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected ProxyAudioProducerCallback(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(ProxyAudioProducerCallback obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_ProxyAudioProducerCallback(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ protected void swigDirectorDisconnect() {
+ swigCMemOwn = false;
+ delete();
+ }
+
+ public void swigReleaseOwnership() {
+ swigCMemOwn = false;
+ tinyWRAPJNI.ProxyAudioProducerCallback_change_ownership(this, swigCPtr, false);
+ }
+
+ public void swigTakeOwnership() {
+ swigCMemOwn = true;
+ tinyWRAPJNI.ProxyAudioProducerCallback_change_ownership(this, swigCPtr, true);
+ }
+
+ public ProxyAudioProducerCallback() {
+ this(tinyWRAPJNI.new_ProxyAudioProducerCallback(), true);
+ tinyWRAPJNI.ProxyAudioProducerCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
+ }
+
+ public int prepare(int ptime, int rate, int channels) {
+ return (getClass() == ProxyAudioProducerCallback.class) ? tinyWRAPJNI.ProxyAudioProducerCallback_prepare(swigCPtr, this, ptime, rate, channels) : tinyWRAPJNI.ProxyAudioProducerCallback_prepareSwigExplicitProxyAudioProducerCallback(swigCPtr, this, ptime, rate, channels);
+ }
+
+ public int start() {
+ return (getClass() == ProxyAudioProducerCallback.class) ? tinyWRAPJNI.ProxyAudioProducerCallback_start(swigCPtr, this) : tinyWRAPJNI.ProxyAudioProducerCallback_startSwigExplicitProxyAudioProducerCallback(swigCPtr, this);
+ }
+
+ public int pause() {
+ return (getClass() == ProxyAudioProducerCallback.class) ? tinyWRAPJNI.ProxyAudioProducerCallback_pause(swigCPtr, this) : tinyWRAPJNI.ProxyAudioProducerCallback_pauseSwigExplicitProxyAudioProducerCallback(swigCPtr, this);
+ }
+
+ public int stop() {
+ return (getClass() == ProxyAudioProducerCallback.class) ? tinyWRAPJNI.ProxyAudioProducerCallback_stop(swigCPtr, this) : tinyWRAPJNI.ProxyAudioProducerCallback_stopSwigExplicitProxyAudioProducerCallback(swigCPtr, this);
+ }
+
+ public int fillPushBuffer() {
+ return (getClass() == ProxyAudioProducerCallback.class) ? tinyWRAPJNI.ProxyAudioProducerCallback_fillPushBuffer(swigCPtr, this) : tinyWRAPJNI.ProxyAudioProducerCallback_fillPushBufferSwigExplicitProxyAudioProducerCallback(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/ProxyPlugin.java b/bindings/java/android/ProxyPlugin.java
new file mode 100644
index 0000000..6ccfe9b
--- /dev/null
+++ b/bindings/java/android/ProxyPlugin.java
@@ -0,0 +1,46 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class ProxyPlugin {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected ProxyPlugin(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(ProxyPlugin obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_ProxyPlugin(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public twrap_proxy_plugin_type_t getType() {
+ return twrap_proxy_plugin_type_t.swigToEnum(tinyWRAPJNI.ProxyPlugin_getType(swigCPtr, this));
+ }
+
+ public java.math.BigInteger getId() {
+ return tinyWRAPJNI.ProxyPlugin_getId(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/ProxyPluginMgr.java b/bindings/java/android/ProxyPluginMgr.java
new file mode 100644
index 0000000..22ee6dd
--- /dev/null
+++ b/bindings/java/android/ProxyPluginMgr.java
@@ -0,0 +1,73 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class ProxyPluginMgr {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected ProxyPluginMgr(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(ProxyPluginMgr obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_ProxyPluginMgr(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public static ProxyPluginMgr createInstance(ProxyPluginMgrCallback pCallback) {
+ long cPtr = tinyWRAPJNI.ProxyPluginMgr_createInstance(ProxyPluginMgrCallback.getCPtr(pCallback), pCallback);
+ return (cPtr == 0) ? null : new ProxyPluginMgr(cPtr, true);
+ }
+
+ public static ProxyPluginMgr getInstance() {
+ long cPtr = tinyWRAPJNI.ProxyPluginMgr_getInstance();
+ return (cPtr == 0) ? null : new ProxyPluginMgr(cPtr, false);
+ }
+
+ public ProxyPlugin findPlugin(java.math.BigInteger id) {
+ long cPtr = tinyWRAPJNI.ProxyPluginMgr_findPlugin(swigCPtr, this, id);
+ return (cPtr == 0) ? null : new ProxyPlugin(cPtr, false);
+ }
+
+ public ProxyAudioConsumer findAudioConsumer(java.math.BigInteger id) {
+ long cPtr = tinyWRAPJNI.ProxyPluginMgr_findAudioConsumer(swigCPtr, this, id);
+ return (cPtr == 0) ? null : new ProxyAudioConsumer(cPtr, false);
+ }
+
+ public ProxyVideoConsumer findVideoConsumer(java.math.BigInteger id) {
+ long cPtr = tinyWRAPJNI.ProxyPluginMgr_findVideoConsumer(swigCPtr, this, id);
+ return (cPtr == 0) ? null : new ProxyVideoConsumer(cPtr, false);
+ }
+
+ public ProxyAudioProducer findAudioProducer(java.math.BigInteger id) {
+ long cPtr = tinyWRAPJNI.ProxyPluginMgr_findAudioProducer(swigCPtr, this, id);
+ return (cPtr == 0) ? null : new ProxyAudioProducer(cPtr, false);
+ }
+
+ public ProxyVideoProducer findVideoProducer(java.math.BigInteger id) {
+ long cPtr = tinyWRAPJNI.ProxyPluginMgr_findVideoProducer(swigCPtr, this, id);
+ return (cPtr == 0) ? null : new ProxyVideoProducer(cPtr, false);
+ }
+
+}
diff --git a/bindings/java/android/ProxyPluginMgrCallback.java b/bindings/java/android/ProxyPluginMgrCallback.java
new file mode 100644
index 0000000..7e45b61
--- /dev/null
+++ b/bindings/java/android/ProxyPluginMgrCallback.java
@@ -0,0 +1,66 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class ProxyPluginMgrCallback {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected ProxyPluginMgrCallback(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(ProxyPluginMgrCallback obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_ProxyPluginMgrCallback(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ protected void swigDirectorDisconnect() {
+ swigCMemOwn = false;
+ delete();
+ }
+
+ public void swigReleaseOwnership() {
+ swigCMemOwn = false;
+ tinyWRAPJNI.ProxyPluginMgrCallback_change_ownership(this, swigCPtr, false);
+ }
+
+ public void swigTakeOwnership() {
+ swigCMemOwn = true;
+ tinyWRAPJNI.ProxyPluginMgrCallback_change_ownership(this, swigCPtr, true);
+ }
+
+ public ProxyPluginMgrCallback() {
+ this(tinyWRAPJNI.new_ProxyPluginMgrCallback(), true);
+ tinyWRAPJNI.ProxyPluginMgrCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
+ }
+
+ public int OnPluginCreated(java.math.BigInteger id, twrap_proxy_plugin_type_t type) {
+ return (getClass() == ProxyPluginMgrCallback.class) ? tinyWRAPJNI.ProxyPluginMgrCallback_OnPluginCreated(swigCPtr, this, id, type.swigValue()) : tinyWRAPJNI.ProxyPluginMgrCallback_OnPluginCreatedSwigExplicitProxyPluginMgrCallback(swigCPtr, this, id, type.swigValue());
+ }
+
+ public int OnPluginDestroyed(java.math.BigInteger id, twrap_proxy_plugin_type_t type) {
+ return (getClass() == ProxyPluginMgrCallback.class) ? tinyWRAPJNI.ProxyPluginMgrCallback_OnPluginDestroyed(swigCPtr, this, id, type.swigValue()) : tinyWRAPJNI.ProxyPluginMgrCallback_OnPluginDestroyedSwigExplicitProxyPluginMgrCallback(swigCPtr, this, id, type.swigValue());
+ }
+
+}
diff --git a/bindings/java/android/ProxyVideoConsumer.java b/bindings/java/android/ProxyVideoConsumer.java
new file mode 100644
index 0000000..53d7a70
--- /dev/null
+++ b/bindings/java/android/ProxyVideoConsumer.java
@@ -0,0 +1,98 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class ProxyVideoConsumer extends ProxyPlugin {
+ private long swigCPtr;
+
+ protected ProxyVideoConsumer(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.ProxyVideoConsumer_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(ProxyVideoConsumer obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_ProxyVideoConsumer(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public boolean setDisplaySize(long nWidth, long nHeight) {
+ return tinyWRAPJNI.ProxyVideoConsumer_setDisplaySize(swigCPtr, this, nWidth, nHeight);
+ }
+
+ public long getDisplayWidth() {
+ return tinyWRAPJNI.ProxyVideoConsumer_getDisplayWidth(swigCPtr, this);
+ }
+
+ public long getDisplayHeight() {
+ return tinyWRAPJNI.ProxyVideoConsumer_getDisplayHeight(swigCPtr, this);
+ }
+
+ public long getDecodedWidth() {
+ return tinyWRAPJNI.ProxyVideoConsumer_getDecodedWidth(swigCPtr, this);
+ }
+
+ public long getDecodedHeight() {
+ return tinyWRAPJNI.ProxyVideoConsumer_getDecodedHeight(swigCPtr, this);
+ }
+
+ public void setCallback(ProxyVideoConsumerCallback pCallback) {
+ tinyWRAPJNI.ProxyVideoConsumer_setCallback(swigCPtr, this, ProxyVideoConsumerCallback.getCPtr(pCallback), pCallback);
+ }
+
+ public boolean setAutoResizeDisplay(boolean bAutoResizeDisplay) {
+ return tinyWRAPJNI.ProxyVideoConsumer_setAutoResizeDisplay(swigCPtr, this, bAutoResizeDisplay);
+ }
+
+ public boolean getAutoResizeDisplay() {
+ return tinyWRAPJNI.ProxyVideoConsumer_getAutoResizeDisplay(swigCPtr, this);
+ }
+
+ public boolean setConsumeBuffer(java.nio.ByteBuffer pConsumeBufferPtr, long nConsumeBufferSize) {
+ return tinyWRAPJNI.ProxyVideoConsumer_setConsumeBuffer(swigCPtr, this, pConsumeBufferPtr, nConsumeBufferSize);
+ }
+
+ public long pull(java.nio.ByteBuffer pOutput, long nSize) {
+ return tinyWRAPJNI.ProxyVideoConsumer_pull(swigCPtr, this, pOutput, nSize);
+ }
+
+ public boolean reset() {
+ return tinyWRAPJNI.ProxyVideoConsumer_reset(swigCPtr, this);
+ }
+
+ public java.math.BigInteger getMediaSessionId() {
+ return tinyWRAPJNI.ProxyVideoConsumer_getMediaSessionId(swigCPtr, this);
+ }
+
+ public static boolean registerPlugin() {
+ return tinyWRAPJNI.ProxyVideoConsumer_registerPlugin();
+ }
+
+ public static void setDefaultChroma(tmedia_chroma_t eChroma) {
+ tinyWRAPJNI.ProxyVideoConsumer_setDefaultChroma(eChroma.swigValue());
+ }
+
+ public static void setDefaultAutoResizeDisplay(boolean bAutoResizeDisplay) {
+ tinyWRAPJNI.ProxyVideoConsumer_setDefaultAutoResizeDisplay(bAutoResizeDisplay);
+ }
+
+}
diff --git a/bindings/java/android/ProxyVideoConsumerCallback.java b/bindings/java/android/ProxyVideoConsumerCallback.java
new file mode 100644
index 0000000..e2a4349
--- /dev/null
+++ b/bindings/java/android/ProxyVideoConsumerCallback.java
@@ -0,0 +1,82 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class ProxyVideoConsumerCallback {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected ProxyVideoConsumerCallback(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(ProxyVideoConsumerCallback obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_ProxyVideoConsumerCallback(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ protected void swigDirectorDisconnect() {
+ swigCMemOwn = false;
+ delete();
+ }
+
+ public void swigReleaseOwnership() {
+ swigCMemOwn = false;
+ tinyWRAPJNI.ProxyVideoConsumerCallback_change_ownership(this, swigCPtr, false);
+ }
+
+ public void swigTakeOwnership() {
+ swigCMemOwn = true;
+ tinyWRAPJNI.ProxyVideoConsumerCallback_change_ownership(this, swigCPtr, true);
+ }
+
+ public ProxyVideoConsumerCallback() {
+ this(tinyWRAPJNI.new_ProxyVideoConsumerCallback(), true);
+ tinyWRAPJNI.ProxyVideoConsumerCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
+ }
+
+ public int prepare(int nWidth, int nHeight, int nFps) {
+ return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_prepare(swigCPtr, this, nWidth, nHeight, nFps) : tinyWRAPJNI.ProxyVideoConsumerCallback_prepareSwigExplicitProxyVideoConsumerCallback(swigCPtr, this, nWidth, nHeight, nFps);
+ }
+
+ public int consume(ProxyVideoFrame frame) {
+ return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_consume(swigCPtr, this, ProxyVideoFrame.getCPtr(frame), frame) : tinyWRAPJNI.ProxyVideoConsumerCallback_consumeSwigExplicitProxyVideoConsumerCallback(swigCPtr, this, ProxyVideoFrame.getCPtr(frame), frame);
+ }
+
+ public int bufferCopied(long nCopiedSize, long nAvailableSize) {
+ return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_bufferCopied(swigCPtr, this, nCopiedSize, nAvailableSize) : tinyWRAPJNI.ProxyVideoConsumerCallback_bufferCopiedSwigExplicitProxyVideoConsumerCallback(swigCPtr, this, nCopiedSize, nAvailableSize);
+ }
+
+ public int start() {
+ return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_start(swigCPtr, this) : tinyWRAPJNI.ProxyVideoConsumerCallback_startSwigExplicitProxyVideoConsumerCallback(swigCPtr, this);
+ }
+
+ public int pause() {
+ return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_pause(swigCPtr, this) : tinyWRAPJNI.ProxyVideoConsumerCallback_pauseSwigExplicitProxyVideoConsumerCallback(swigCPtr, this);
+ }
+
+ public int stop() {
+ return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_stop(swigCPtr, this) : tinyWRAPJNI.ProxyVideoConsumerCallback_stopSwigExplicitProxyVideoConsumerCallback(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/ProxyVideoFrame.java b/bindings/java/android/ProxyVideoFrame.java
new file mode 100644
index 0000000..8c4ef4c
--- /dev/null
+++ b/bindings/java/android/ProxyVideoFrame.java
@@ -0,0 +1,54 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class ProxyVideoFrame {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected ProxyVideoFrame(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(ProxyVideoFrame obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_ProxyVideoFrame(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public long getSize() {
+ return tinyWRAPJNI.ProxyVideoFrame_getSize(swigCPtr, this);
+ }
+
+ public long getContent(java.nio.ByteBuffer pOutput, long nMaxsize) {
+ return tinyWRAPJNI.ProxyVideoFrame_getContent(swigCPtr, this, pOutput, nMaxsize);
+ }
+
+ public long getFrameWidth() {
+ return tinyWRAPJNI.ProxyVideoFrame_getFrameWidth(swigCPtr, this);
+ }
+
+ public long getFrameHeight() {
+ return tinyWRAPJNI.ProxyVideoFrame_getFrameHeight(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/ProxyVideoProducer.java b/bindings/java/android/ProxyVideoProducer.java
new file mode 100644
index 0000000..f9cfe2b
--- /dev/null
+++ b/bindings/java/android/ProxyVideoProducer.java
@@ -0,0 +1,78 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class ProxyVideoProducer extends ProxyPlugin {
+ private long swigCPtr;
+
+ protected ProxyVideoProducer(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.ProxyVideoProducer_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(ProxyVideoProducer obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_ProxyVideoProducer(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public int getRotation() {
+ return tinyWRAPJNI.ProxyVideoProducer_getRotation(swigCPtr, this);
+ }
+
+ public boolean setRotation(int nRot) {
+ return tinyWRAPJNI.ProxyVideoProducer_setRotation(swigCPtr, this, nRot);
+ }
+
+ public boolean getMirror() {
+ return tinyWRAPJNI.ProxyVideoProducer_getMirror(swigCPtr, this);
+ }
+
+ public boolean setMirror(boolean bMirror) {
+ return tinyWRAPJNI.ProxyVideoProducer_setMirror(swigCPtr, this, bMirror);
+ }
+
+ public boolean setActualCameraOutputSize(long nWidth, long nHeight) {
+ return tinyWRAPJNI.ProxyVideoProducer_setActualCameraOutputSize(swigCPtr, this, nWidth, nHeight);
+ }
+
+ public int push(java.nio.ByteBuffer pBuffer, long nSize) {
+ return tinyWRAPJNI.ProxyVideoProducer_push(swigCPtr, this, pBuffer, nSize);
+ }
+
+ public void setCallback(ProxyVideoProducerCallback pCallback) {
+ tinyWRAPJNI.ProxyVideoProducer_setCallback(swigCPtr, this, ProxyVideoProducerCallback.getCPtr(pCallback), pCallback);
+ }
+
+ public java.math.BigInteger getMediaSessionId() {
+ return tinyWRAPJNI.ProxyVideoProducer_getMediaSessionId(swigCPtr, this);
+ }
+
+ public static boolean registerPlugin() {
+ return tinyWRAPJNI.ProxyVideoProducer_registerPlugin();
+ }
+
+ public static void setDefaultChroma(tmedia_chroma_t eChroma) {
+ tinyWRAPJNI.ProxyVideoProducer_setDefaultChroma(eChroma.swigValue());
+ }
+
+}
diff --git a/bindings/java/android/ProxyVideoProducerCallback.java b/bindings/java/android/ProxyVideoProducerCallback.java
new file mode 100644
index 0000000..c625405
--- /dev/null
+++ b/bindings/java/android/ProxyVideoProducerCallback.java
@@ -0,0 +1,74 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class ProxyVideoProducerCallback {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected ProxyVideoProducerCallback(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(ProxyVideoProducerCallback obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_ProxyVideoProducerCallback(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ protected void swigDirectorDisconnect() {
+ swigCMemOwn = false;
+ delete();
+ }
+
+ public void swigReleaseOwnership() {
+ swigCMemOwn = false;
+ tinyWRAPJNI.ProxyVideoProducerCallback_change_ownership(this, swigCPtr, false);
+ }
+
+ public void swigTakeOwnership() {
+ swigCMemOwn = true;
+ tinyWRAPJNI.ProxyVideoProducerCallback_change_ownership(this, swigCPtr, true);
+ }
+
+ public ProxyVideoProducerCallback() {
+ this(tinyWRAPJNI.new_ProxyVideoProducerCallback(), true);
+ tinyWRAPJNI.ProxyVideoProducerCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
+ }
+
+ public int prepare(int width, int height, int fps) {
+ return (getClass() == ProxyVideoProducerCallback.class) ? tinyWRAPJNI.ProxyVideoProducerCallback_prepare(swigCPtr, this, width, height, fps) : tinyWRAPJNI.ProxyVideoProducerCallback_prepareSwigExplicitProxyVideoProducerCallback(swigCPtr, this, width, height, fps);
+ }
+
+ public int start() {
+ return (getClass() == ProxyVideoProducerCallback.class) ? tinyWRAPJNI.ProxyVideoProducerCallback_start(swigCPtr, this) : tinyWRAPJNI.ProxyVideoProducerCallback_startSwigExplicitProxyVideoProducerCallback(swigCPtr, this);
+ }
+
+ public int pause() {
+ return (getClass() == ProxyVideoProducerCallback.class) ? tinyWRAPJNI.ProxyVideoProducerCallback_pause(swigCPtr, this) : tinyWRAPJNI.ProxyVideoProducerCallback_pauseSwigExplicitProxyVideoProducerCallback(swigCPtr, this);
+ }
+
+ public int stop() {
+ return (getClass() == ProxyVideoProducerCallback.class) ? tinyWRAPJNI.ProxyVideoProducerCallback_stop(swigCPtr, this) : tinyWRAPJNI.ProxyVideoProducerCallback_stopSwigExplicitProxyVideoProducerCallback(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/PublicationEvent.java b/bindings/java/android/PublicationEvent.java
new file mode 100644
index 0000000..ba44ed8
--- /dev/null
+++ b/bindings/java/android/PublicationEvent.java
@@ -0,0 +1,52 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class PublicationEvent extends SipEvent {
+ private long swigCPtr;
+
+ protected PublicationEvent(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.PublicationEvent_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(PublicationEvent obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_PublicationEvent(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public tsip_publish_event_type_t getType() {
+ return tsip_publish_event_type_t.swigToEnum(tinyWRAPJNI.PublicationEvent_getType(swigCPtr, this));
+ }
+
+ public PublicationSession getSession() {
+ long cPtr = tinyWRAPJNI.PublicationEvent_getSession(swigCPtr, this);
+ return (cPtr == 0) ? null : new PublicationSession(cPtr, false);
+ }
+
+ public PublicationSession takeSessionOwnership() {
+ long cPtr = tinyWRAPJNI.PublicationEvent_takeSessionOwnership(swigCPtr, this);
+ return (cPtr == 0) ? null : new PublicationSession(cPtr, false);
+ }
+
+}
diff --git a/bindings/java/android/PublicationSession.java b/bindings/java/android/PublicationSession.java
new file mode 100644
index 0000000..adfef9a
--- /dev/null
+++ b/bindings/java/android/PublicationSession.java
@@ -0,0 +1,66 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class PublicationSession extends SipSession {
+ private long swigCPtr;
+
+ protected PublicationSession(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.PublicationSession_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(PublicationSession obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_PublicationSession(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public boolean Publish(byte[] bytes) {
+ if(bytes != null){
+ final java.nio.ByteBuffer byteBuffer = this.getByteBuffer(bytes);
+ return this.publish(byteBuffer, bytes.length);
+ }
+ return false;
+ }
+
+ public PublicationSession(SipStack pStack) {
+ this(tinyWRAPJNI.new_PublicationSession(SipStack.getCPtr(pStack), pStack), true);
+ }
+
+ public boolean publish(java.nio.ByteBuffer payload, long len, ActionConfig config) {
+ return tinyWRAPJNI.PublicationSession_publish__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean publish(java.nio.ByteBuffer payload, long len) {
+ return tinyWRAPJNI.PublicationSession_publish__SWIG_1(swigCPtr, this, payload, len);
+ }
+
+ public boolean unPublish(ActionConfig config) {
+ return tinyWRAPJNI.PublicationSession_unPublish__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean unPublish() {
+ return tinyWRAPJNI.PublicationSession_unPublish__SWIG_1(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/RPMessage.java b/bindings/java/android/RPMessage.java
new file mode 100644
index 0000000..0e9b864
--- /dev/null
+++ b/bindings/java/android/RPMessage.java
@@ -0,0 +1,54 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class RPMessage {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected RPMessage(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(RPMessage obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_RPMessage(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public RPMessage() {
+ this(tinyWRAPJNI.new_RPMessage(), true);
+ }
+
+ public twrap_rpmessage_type_t getType() {
+ return twrap_rpmessage_type_t.swigToEnum(tinyWRAPJNI.RPMessage_getType(swigCPtr, this));
+ }
+
+ public long getPayloadLength() {
+ return tinyWRAPJNI.RPMessage_getPayloadLength(swigCPtr, this);
+ }
+
+ public long getPayload(java.nio.ByteBuffer output, long maxsize) {
+ return tinyWRAPJNI.RPMessage_getPayload(swigCPtr, this, output, maxsize);
+ }
+
+}
diff --git a/bindings/java/android/RegistrationEvent.java b/bindings/java/android/RegistrationEvent.java
new file mode 100644
index 0000000..5a1cc25
--- /dev/null
+++ b/bindings/java/android/RegistrationEvent.java
@@ -0,0 +1,52 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class RegistrationEvent extends SipEvent {
+ private long swigCPtr;
+
+ protected RegistrationEvent(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.RegistrationEvent_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(RegistrationEvent obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_RegistrationEvent(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public tsip_register_event_type_t getType() {
+ return tsip_register_event_type_t.swigToEnum(tinyWRAPJNI.RegistrationEvent_getType(swigCPtr, this));
+ }
+
+ public RegistrationSession getSession() {
+ long cPtr = tinyWRAPJNI.RegistrationEvent_getSession(swigCPtr, this);
+ return (cPtr == 0) ? null : new RegistrationSession(cPtr, false);
+ }
+
+ public RegistrationSession takeSessionOwnership() {
+ long cPtr = tinyWRAPJNI.RegistrationEvent_takeSessionOwnership(swigCPtr, this);
+ return (cPtr == 0) ? null : new RegistrationSession(cPtr, true);
+ }
+
+}
diff --git a/bindings/java/android/RegistrationSession.java b/bindings/java/android/RegistrationSession.java
new file mode 100644
index 0000000..2857a72
--- /dev/null
+++ b/bindings/java/android/RegistrationSession.java
@@ -0,0 +1,74 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class RegistrationSession extends SipSession {
+ private long swigCPtr;
+
+ protected RegistrationSession(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.RegistrationSession_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(RegistrationSession obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_RegistrationSession(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public RegistrationSession(SipStack pStack) {
+ this(tinyWRAPJNI.new_RegistrationSession(SipStack.getCPtr(pStack), pStack), true);
+ }
+
+ public boolean register_(ActionConfig config) {
+ return tinyWRAPJNI.RegistrationSession_register___SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean register_() {
+ return tinyWRAPJNI.RegistrationSession_register___SWIG_1(swigCPtr, this);
+ }
+
+ public boolean unRegister(ActionConfig config) {
+ return tinyWRAPJNI.RegistrationSession_unRegister__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean unRegister() {
+ return tinyWRAPJNI.RegistrationSession_unRegister__SWIG_1(swigCPtr, this);
+ }
+
+ public boolean accept(ActionConfig config) {
+ return tinyWRAPJNI.RegistrationSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean accept() {
+ return tinyWRAPJNI.RegistrationSession_accept__SWIG_1(swigCPtr, this);
+ }
+
+ public boolean reject(ActionConfig config) {
+ return tinyWRAPJNI.RegistrationSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean reject() {
+ return tinyWRAPJNI.RegistrationSession_reject__SWIG_1(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/SMSData.java b/bindings/java/android/SMSData.java
new file mode 100644
index 0000000..1ab6479
--- /dev/null
+++ b/bindings/java/android/SMSData.java
@@ -0,0 +1,66 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class SMSData {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected SMSData(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(SMSData obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_SMSData(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public SMSData() {
+ this(tinyWRAPJNI.new_SMSData(), true);
+ }
+
+ public twrap_sms_type_t getType() {
+ return twrap_sms_type_t.swigToEnum(tinyWRAPJNI.SMSData_getType(swigCPtr, this));
+ }
+
+ public int getMR() {
+ return tinyWRAPJNI.SMSData_getMR(swigCPtr, this);
+ }
+
+ public long getPayloadLength() {
+ return tinyWRAPJNI.SMSData_getPayloadLength(swigCPtr, this);
+ }
+
+ public long getPayload(java.nio.ByteBuffer output, long maxsize) {
+ return tinyWRAPJNI.SMSData_getPayload(swigCPtr, this, output, maxsize);
+ }
+
+ public String getOA() {
+ return tinyWRAPJNI.SMSData_getOA(swigCPtr, this);
+ }
+
+ public String getDA() {
+ return tinyWRAPJNI.SMSData_getDA(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/SMSEncoder.java b/bindings/java/android/SMSEncoder.java
new file mode 100644
index 0000000..2c0885f
--- /dev/null
+++ b/bindings/java/android/SMSEncoder.java
@@ -0,0 +1,63 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class SMSEncoder {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected SMSEncoder(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(SMSEncoder obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_SMSEncoder(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public static RPMessage encodeSubmit(int mr, String smsc, String destination, String ascii) {
+ long cPtr = tinyWRAPJNI.SMSEncoder_encodeSubmit(mr, smsc, destination, ascii);
+ return (cPtr == 0) ? null : new RPMessage(cPtr, true);
+ }
+
+ public static RPMessage encodeDeliver(int mr, String smsc, String originator, String ascii) {
+ long cPtr = tinyWRAPJNI.SMSEncoder_encodeDeliver(mr, smsc, originator, ascii);
+ return (cPtr == 0) ? null : new RPMessage(cPtr, true);
+ }
+
+ public static RPMessage encodeACK(int mr, String smsc, String destination, boolean forSUBMIT) {
+ long cPtr = tinyWRAPJNI.SMSEncoder_encodeACK(mr, smsc, destination, forSUBMIT);
+ return (cPtr == 0) ? null : new RPMessage(cPtr, true);
+ }
+
+ public static RPMessage encodeError(int mr, String smsc, String destination, boolean forSUBMIT) {
+ long cPtr = tinyWRAPJNI.SMSEncoder_encodeError(mr, smsc, destination, forSUBMIT);
+ return (cPtr == 0) ? null : new RPMessage(cPtr, true);
+ }
+
+ public static SMSData decode(java.nio.ByteBuffer data, long size, boolean MobOrig) {
+ long cPtr = tinyWRAPJNI.SMSEncoder_decode(data, size, MobOrig);
+ return (cPtr == 0) ? null : new SMSData(cPtr, true);
+ }
+
+}
diff --git a/bindings/java/android/SafeObject.java b/bindings/java/android/SafeObject.java
new file mode 100644
index 0000000..eb984d6
--- /dev/null
+++ b/bindings/java/android/SafeObject.java
@@ -0,0 +1,50 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class SafeObject {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected SafeObject(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(SafeObject obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_SafeObject(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public SafeObject() {
+ this(tinyWRAPJNI.new_SafeObject(), true);
+ }
+
+ public int Lock() {
+ return tinyWRAPJNI.SafeObject_Lock(swigCPtr, this);
+ }
+
+ public int UnLock() {
+ return tinyWRAPJNI.SafeObject_UnLock(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/SdpMessage.java b/bindings/java/android/SdpMessage.java
new file mode 100644
index 0000000..742ffb8
--- /dev/null
+++ b/bindings/java/android/SdpMessage.java
@@ -0,0 +1,54 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class SdpMessage {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected SdpMessage(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(SdpMessage obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_SdpMessage(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public SdpMessage() {
+ this(tinyWRAPJNI.new_SdpMessage(), true);
+ }
+
+ public String getSdpHeaderValue(String media, char name, long index) {
+ return tinyWRAPJNI.SdpMessage_getSdpHeaderValue__SWIG_0(swigCPtr, this, media, name, index);
+ }
+
+ public String getSdpHeaderValue(String media, char name) {
+ return tinyWRAPJNI.SdpMessage_getSdpHeaderValue__SWIG_1(swigCPtr, this, media, name);
+ }
+
+ public String getSdpHeaderAValue(String media, String attributeName) {
+ return tinyWRAPJNI.SdpMessage_getSdpHeaderAValue(swigCPtr, this, media, attributeName);
+ }
+
+}
diff --git a/bindings/java/android/SipCallback.java b/bindings/java/android/SipCallback.java
new file mode 100644
index 0000000..bcfe026
--- /dev/null
+++ b/bindings/java/android/SipCallback.java
@@ -0,0 +1,94 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class SipCallback {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected SipCallback(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(SipCallback obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_SipCallback(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ protected void swigDirectorDisconnect() {
+ swigCMemOwn = false;
+ delete();
+ }
+
+ public void swigReleaseOwnership() {
+ swigCMemOwn = false;
+ tinyWRAPJNI.SipCallback_change_ownership(this, swigCPtr, false);
+ }
+
+ public void swigTakeOwnership() {
+ swigCMemOwn = true;
+ tinyWRAPJNI.SipCallback_change_ownership(this, swigCPtr, true);
+ }
+
+ public SipCallback() {
+ this(tinyWRAPJNI.new_SipCallback(), true);
+ tinyWRAPJNI.SipCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
+ }
+
+ public int OnDialogEvent(DialogEvent e) {
+ return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnDialogEvent(swigCPtr, this, DialogEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnDialogEventSwigExplicitSipCallback(swigCPtr, this, DialogEvent.getCPtr(e), e);
+ }
+
+ public int OnStackEvent(StackEvent e) {
+ return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnStackEvent(swigCPtr, this, StackEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnStackEventSwigExplicitSipCallback(swigCPtr, this, StackEvent.getCPtr(e), e);
+ }
+
+ public int OnInviteEvent(InviteEvent e) {
+ return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnInviteEvent(swigCPtr, this, InviteEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnInviteEventSwigExplicitSipCallback(swigCPtr, this, InviteEvent.getCPtr(e), e);
+ }
+
+ public int OnMessagingEvent(MessagingEvent e) {
+ return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnMessagingEvent(swigCPtr, this, MessagingEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnMessagingEventSwigExplicitSipCallback(swigCPtr, this, MessagingEvent.getCPtr(e), e);
+ }
+
+ public int OnInfoEvent(InfoEvent e) {
+ return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnInfoEvent(swigCPtr, this, InfoEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnInfoEventSwigExplicitSipCallback(swigCPtr, this, InfoEvent.getCPtr(e), e);
+ }
+
+ public int OnOptionsEvent(OptionsEvent e) {
+ return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnOptionsEvent(swigCPtr, this, OptionsEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnOptionsEventSwigExplicitSipCallback(swigCPtr, this, OptionsEvent.getCPtr(e), e);
+ }
+
+ public int OnPublicationEvent(PublicationEvent e) {
+ return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnPublicationEvent(swigCPtr, this, PublicationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnPublicationEventSwigExplicitSipCallback(swigCPtr, this, PublicationEvent.getCPtr(e), e);
+ }
+
+ public int OnRegistrationEvent(RegistrationEvent e) {
+ return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnRegistrationEvent(swigCPtr, this, RegistrationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnRegistrationEventSwigExplicitSipCallback(swigCPtr, this, RegistrationEvent.getCPtr(e), e);
+ }
+
+ public int OnSubscriptionEvent(SubscriptionEvent e) {
+ return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnSubscriptionEvent(swigCPtr, this, SubscriptionEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnSubscriptionEventSwigExplicitSipCallback(swigCPtr, this, SubscriptionEvent.getCPtr(e), e);
+ }
+
+}
diff --git a/bindings/java/android/SipEvent.java b/bindings/java/android/SipEvent.java
new file mode 100644
index 0000000..3d03581
--- /dev/null
+++ b/bindings/java/android/SipEvent.java
@@ -0,0 +1,56 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class SipEvent {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected SipEvent(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(SipEvent obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_SipEvent(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public short getCode() {
+ return tinyWRAPJNI.SipEvent_getCode(swigCPtr, this);
+ }
+
+ public String getPhrase() {
+ return tinyWRAPJNI.SipEvent_getPhrase(swigCPtr, this);
+ }
+
+ public SipSession getBaseSession() {
+ long cPtr = tinyWRAPJNI.SipEvent_getBaseSession(swigCPtr, this);
+ return (cPtr == 0) ? null : new SipSession(cPtr, false);
+ }
+
+ public SipMessage getSipMessage() {
+ long cPtr = tinyWRAPJNI.SipEvent_getSipMessage(swigCPtr, this);
+ return (cPtr == 0) ? null : new SipMessage(cPtr, false);
+ }
+
+}
diff --git a/bindings/java/android/SipMessage.java b/bindings/java/android/SipMessage.java
new file mode 100644
index 0000000..ff9b1d1
--- /dev/null
+++ b/bindings/java/android/SipMessage.java
@@ -0,0 +1,99 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class SipMessage {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected SipMessage(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(SipMessage obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_SipMessage(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public byte[] getSipContent() {
+ final int clen = (int)this.getSipContentLength();
+ if(clen>0){
+ final java.nio.ByteBuffer buffer = java.nio.ByteBuffer.allocateDirect(clen);
+ final int read = (int)this.getSipContent(buffer, clen);
+ final byte[] bytes = new byte[read];
+ buffer.get(bytes, 0, read);
+ return bytes;
+ }
+ return null;
+ }
+
+ public SipMessage() {
+ this(tinyWRAPJNI.new_SipMessage(), true);
+ }
+
+ public boolean isResponse() {
+ return tinyWRAPJNI.SipMessage_isResponse(swigCPtr, this);
+ }
+
+ public tsip_request_type_t getRequestType() {
+ return tsip_request_type_t.swigToEnum(tinyWRAPJNI.SipMessage_getRequestType(swigCPtr, this));
+ }
+
+ public short getResponseCode() {
+ return tinyWRAPJNI.SipMessage_getResponseCode(swigCPtr, this);
+ }
+
+ public String getResponsePhrase() {
+ return tinyWRAPJNI.SipMessage_getResponsePhrase(swigCPtr, this);
+ }
+
+ public String getSipHeaderValue(String name, long index) {
+ return tinyWRAPJNI.SipMessage_getSipHeaderValue__SWIG_0(swigCPtr, this, name, index);
+ }
+
+ public String getSipHeaderValue(String name) {
+ return tinyWRAPJNI.SipMessage_getSipHeaderValue__SWIG_1(swigCPtr, this, name);
+ }
+
+ public String getSipHeaderParamValue(String name, String param, long index) {
+ return tinyWRAPJNI.SipMessage_getSipHeaderParamValue__SWIG_0(swigCPtr, this, name, param, index);
+ }
+
+ public String getSipHeaderParamValue(String name, String param) {
+ return tinyWRAPJNI.SipMessage_getSipHeaderParamValue__SWIG_1(swigCPtr, this, name, param);
+ }
+
+ public long getSipContentLength() {
+ return tinyWRAPJNI.SipMessage_getSipContentLength(swigCPtr, this);
+ }
+
+ public long getSipContent(java.nio.ByteBuffer output, long maxsize) {
+ return tinyWRAPJNI.SipMessage_getSipContent(swigCPtr, this, output, maxsize);
+ }
+
+ public SdpMessage getSdpMessage() {
+ long cPtr = tinyWRAPJNI.SipMessage_getSdpMessage(swigCPtr, this);
+ return (cPtr == 0) ? null : new SdpMessage(cPtr, false);
+ }
+
+}
diff --git a/bindings/java/android/SipSession.java b/bindings/java/android/SipSession.java
new file mode 100644
index 0000000..fcb8364
--- /dev/null
+++ b/bindings/java/android/SipSession.java
@@ -0,0 +1,111 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class SipSession {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected SipSession(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(SipSession obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_SipSession(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ protected java.nio.ByteBuffer getByteBuffer(byte[] bytes) {
+ if(bytes != null){
+ final java.nio.ByteBuffer byteBuffer = java.nio.ByteBuffer.allocateDirect(bytes.length);
+ byteBuffer.put(bytes);
+ return byteBuffer;
+ }
+ return null;
+ }
+
+ public SipSession(SipStack stack) {
+ this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(stack), stack), true);
+ }
+
+ public boolean haveOwnership() {
+ return tinyWRAPJNI.SipSession_haveOwnership(swigCPtr, this);
+ }
+
+ public boolean addHeader(String name, String value) {
+ return tinyWRAPJNI.SipSession_addHeader(swigCPtr, this, name, value);
+ }
+
+ public boolean removeHeader(String name) {
+ return tinyWRAPJNI.SipSession_removeHeader(swigCPtr, this, name);
+ }
+
+ public boolean addCaps(String name, String value) {
+ return tinyWRAPJNI.SipSession_addCaps__SWIG_0(swigCPtr, this, name, value);
+ }
+
+ public boolean addCaps(String name) {
+ return tinyWRAPJNI.SipSession_addCaps__SWIG_1(swigCPtr, this, name);
+ }
+
+ public boolean removeCaps(String name) {
+ return tinyWRAPJNI.SipSession_removeCaps(swigCPtr, this, name);
+ }
+
+ public boolean setExpires(long expires) {
+ return tinyWRAPJNI.SipSession_setExpires(swigCPtr, this, expires);
+ }
+
+ public boolean setFromUri(String fromUriString) {
+ return tinyWRAPJNI.SipSession_setFromUri__SWIG_0(swigCPtr, this, fromUriString);
+ }
+
+ public boolean setFromUri(SipUri fromUri) {
+ return tinyWRAPJNI.SipSession_setFromUri__SWIG_1(swigCPtr, this, SipUri.getCPtr(fromUri), fromUri);
+ }
+
+ public boolean setToUri(String toUriString) {
+ return tinyWRAPJNI.SipSession_setToUri__SWIG_0(swigCPtr, this, toUriString);
+ }
+
+ public boolean setToUri(SipUri toUri) {
+ return tinyWRAPJNI.SipSession_setToUri__SWIG_1(swigCPtr, this, SipUri.getCPtr(toUri), toUri);
+ }
+
+ public boolean setSilentHangup(boolean silent) {
+ return tinyWRAPJNI.SipSession_setSilentHangup(swigCPtr, this, silent);
+ }
+
+ public boolean addSigCompCompartment(String compId) {
+ return tinyWRAPJNI.SipSession_addSigCompCompartment(swigCPtr, this, compId);
+ }
+
+ public boolean removeSigCompCompartment() {
+ return tinyWRAPJNI.SipSession_removeSigCompCompartment(swigCPtr, this);
+ }
+
+ public long getId() {
+ return tinyWRAPJNI.SipSession_getId(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/SipStack.java b/bindings/java/android/SipStack.java
new file mode 100644
index 0000000..5e3b41a
--- /dev/null
+++ b/bindings/java/android/SipStack.java
@@ -0,0 +1,242 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class SipStack extends SafeObject {
+ private long swigCPtr;
+
+ protected SipStack(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.SipStack_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(SipStack obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_SipStack(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public SipStack(SipCallback pCallback, String realm_uri, String impi_uri, String impu_uri) {
+ this(tinyWRAPJNI.new_SipStack(SipCallback.getCPtr(pCallback), pCallback, realm_uri, impi_uri, impu_uri), true);
+ }
+
+ public boolean start() {
+ return tinyWRAPJNI.SipStack_start(swigCPtr, this);
+ }
+
+ public boolean setDebugCallback(DDebugCallback pCallback) {
+ return tinyWRAPJNI.SipStack_setDebugCallback(swigCPtr, this, DDebugCallback.getCPtr(pCallback), pCallback);
+ }
+
+ public boolean setDisplayName(String display_name) {
+ return tinyWRAPJNI.SipStack_setDisplayName(swigCPtr, this, display_name);
+ }
+
+ public boolean setRealm(String realm_uri) {
+ return tinyWRAPJNI.SipStack_setRealm(swigCPtr, this, realm_uri);
+ }
+
+ public boolean setIMPI(String impi) {
+ return tinyWRAPJNI.SipStack_setIMPI(swigCPtr, this, impi);
+ }
+
+ public boolean setIMPU(String impu_uri) {
+ return tinyWRAPJNI.SipStack_setIMPU(swigCPtr, this, impu_uri);
+ }
+
+ public boolean setPassword(String password) {
+ return tinyWRAPJNI.SipStack_setPassword(swigCPtr, this, password);
+ }
+
+ public boolean setAMF(String amf) {
+ return tinyWRAPJNI.SipStack_setAMF(swigCPtr, this, amf);
+ }
+
+ public boolean setOperatorId(String opid) {
+ return tinyWRAPJNI.SipStack_setOperatorId(swigCPtr, this, opid);
+ }
+
+ public boolean setProxyCSCF(String fqdn, int port, String transport, String ipversion) {
+ return tinyWRAPJNI.SipStack_setProxyCSCF(swigCPtr, this, fqdn, port, transport, ipversion);
+ }
+
+ public boolean setLocalIP(String ip, String transport) {
+ return tinyWRAPJNI.SipStack_setLocalIP__SWIG_0(swigCPtr, this, ip, transport);
+ }
+
+ public boolean setLocalIP(String ip) {
+ return tinyWRAPJNI.SipStack_setLocalIP__SWIG_1(swigCPtr, this, ip);
+ }
+
+ public boolean setLocalPort(int port, String transport) {
+ return tinyWRAPJNI.SipStack_setLocalPort__SWIG_0(swigCPtr, this, port, transport);
+ }
+
+ public boolean setLocalPort(int port) {
+ return tinyWRAPJNI.SipStack_setLocalPort__SWIG_1(swigCPtr, this, port);
+ }
+
+ public boolean setEarlyIMS(boolean enabled) {
+ return tinyWRAPJNI.SipStack_setEarlyIMS(swigCPtr, this, enabled);
+ }
+
+ public boolean addHeader(String name, String value) {
+ return tinyWRAPJNI.SipStack_addHeader(swigCPtr, this, name, value);
+ }
+
+ public boolean removeHeader(String name) {
+ return tinyWRAPJNI.SipStack_removeHeader(swigCPtr, this, name);
+ }
+
+ public boolean addDnsServer(String ip) {
+ return tinyWRAPJNI.SipStack_addDnsServer(swigCPtr, this, ip);
+ }
+
+ public boolean setDnsDiscovery(boolean enabled) {
+ return tinyWRAPJNI.SipStack_setDnsDiscovery(swigCPtr, this, enabled);
+ }
+
+ public boolean setAoR(String ip, int port) {
+ return tinyWRAPJNI.SipStack_setAoR(swigCPtr, this, ip, port);
+ }
+
+ public boolean setSigCompParams(long dms, long sms, long cpb, boolean enablePresDict) {
+ return tinyWRAPJNI.SipStack_setSigCompParams(swigCPtr, this, dms, sms, cpb, enablePresDict);
+ }
+
+ public boolean addSigCompCompartment(String compId) {
+ return tinyWRAPJNI.SipStack_addSigCompCompartment(swigCPtr, this, compId);
+ }
+
+ public boolean removeSigCompCompartment(String compId) {
+ return tinyWRAPJNI.SipStack_removeSigCompCompartment(swigCPtr, this, compId);
+ }
+
+ public boolean setSTUNEnabledForICE(boolean enabled) {
+ return tinyWRAPJNI.SipStack_setSTUNEnabledForICE(swigCPtr, this, enabled);
+ }
+
+ public boolean setSTUNServer(String hostname, int port) {
+ return tinyWRAPJNI.SipStack_setSTUNServer(swigCPtr, this, hostname, port);
+ }
+
+ public boolean setSTUNCred(String login, String password) {
+ return tinyWRAPJNI.SipStack_setSTUNCred(swigCPtr, this, login, password);
+ }
+
+ public boolean setSTUNEnabled(boolean enabled) {
+ return tinyWRAPJNI.SipStack_setSTUNEnabled(swigCPtr, this, enabled);
+ }
+
+ public boolean setTLSSecAgree(boolean enabled) {
+ return tinyWRAPJNI.SipStack_setTLSSecAgree(swigCPtr, this, enabled);
+ }
+
+ public boolean setSSLCertificates(String privKey, String pubKey, String caKey, boolean verify) {
+ return tinyWRAPJNI.SipStack_setSSLCertificates__SWIG_0(swigCPtr, this, privKey, pubKey, caKey, verify);
+ }
+
+ public boolean setSSLCertificates(String privKey, String pubKey, String caKey) {
+ return tinyWRAPJNI.SipStack_setSSLCertificates__SWIG_1(swigCPtr, this, privKey, pubKey, caKey);
+ }
+
+ public boolean setSSLCretificates(String privKey, String pubKey, String caKey, boolean verify) {
+ return tinyWRAPJNI.SipStack_setSSLCretificates__SWIG_0(swigCPtr, this, privKey, pubKey, caKey, verify);
+ }
+
+ public boolean setSSLCretificates(String privKey, String pubKey, String caKey) {
+ return tinyWRAPJNI.SipStack_setSSLCretificates__SWIG_1(swigCPtr, this, privKey, pubKey, caKey);
+ }
+
+ public boolean setIPSecSecAgree(boolean enabled) {
+ return tinyWRAPJNI.SipStack_setIPSecSecAgree(swigCPtr, this, enabled);
+ }
+
+ public boolean setIPSecParameters(String algo, String ealgo, String mode, String proto) {
+ return tinyWRAPJNI.SipStack_setIPSecParameters(swigCPtr, this, algo, ealgo, mode, proto);
+ }
+
+ public String dnsENUM(String service, String e164num, String domain) {
+ return tinyWRAPJNI.SipStack_dnsENUM(swigCPtr, this, service, e164num, domain);
+ }
+
+ public String dnsNaptrSrv(String domain, String service, int[] OUTPUT) {
+ return tinyWRAPJNI.SipStack_dnsNaptrSrv(swigCPtr, this, domain, service, OUTPUT);
+ }
+
+ public String dnsSrv(String service, int[] OUTPUT) {
+ return tinyWRAPJNI.SipStack_dnsSrv(swigCPtr, this, service, OUTPUT);
+ }
+
+ public boolean setMaxFDs(long max_fds) {
+ return tinyWRAPJNI.SipStack_setMaxFDs(swigCPtr, this, max_fds);
+ }
+
+ public String getLocalIPnPort(String protocol, int[] OUTPUT) {
+ return tinyWRAPJNI.SipStack_getLocalIPnPort(swigCPtr, this, protocol, OUTPUT);
+ }
+
+ public String getPreferredIdentity() {
+ return tinyWRAPJNI.SipStack_getPreferredIdentity(swigCPtr, this);
+ }
+
+ public boolean isValid() {
+ return tinyWRAPJNI.SipStack_isValid(swigCPtr, this);
+ }
+
+ public boolean stop() {
+ return tinyWRAPJNI.SipStack_stop(swigCPtr, this);
+ }
+
+ public static boolean initialize() {
+ return tinyWRAPJNI.SipStack_initialize();
+ }
+
+ public static boolean deInitialize() {
+ return tinyWRAPJNI.SipStack_deInitialize();
+ }
+
+ public static void setCodecs(tdav_codec_id_t codecs) {
+ tinyWRAPJNI.SipStack_setCodecs(codecs.swigValue());
+ }
+
+ public static void setCodecs_2(long codecs) {
+ tinyWRAPJNI.SipStack_setCodecs_2(codecs);
+ }
+
+ public static boolean setCodecPriority(tdav_codec_id_t codec_id, int priority) {
+ return tinyWRAPJNI.SipStack_setCodecPriority(codec_id.swigValue(), priority);
+ }
+
+ public static boolean setCodecPriority_2(int codec, int priority) {
+ return tinyWRAPJNI.SipStack_setCodecPriority_2(codec, priority);
+ }
+
+ public static boolean isCodecSupported(tdav_codec_id_t codec_id) {
+ return tinyWRAPJNI.SipStack_isCodecSupported(codec_id.swigValue());
+ }
+
+ public static boolean isIPSecSupported() {
+ return tinyWRAPJNI.SipStack_isIPSecSupported();
+ }
+
+}
diff --git a/bindings/java/android/SipUri.java b/bindings/java/android/SipUri.java
new file mode 100644
index 0000000..34413ef
--- /dev/null
+++ b/bindings/java/android/SipUri.java
@@ -0,0 +1,86 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class SipUri {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected SipUri(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(SipUri obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_SipUri(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public SipUri(String uriString, String displayName) {
+ this(tinyWRAPJNI.new_SipUri__SWIG_0(uriString, displayName), true);
+ }
+
+ public SipUri(String uriString) {
+ this(tinyWRAPJNI.new_SipUri__SWIG_1(uriString), true);
+ }
+
+ public static boolean isValid(String arg0) {
+ return tinyWRAPJNI.SipUri_isValid__SWIG_0(arg0);
+ }
+
+ public boolean isValid() {
+ return tinyWRAPJNI.SipUri_isValid__SWIG_1(swigCPtr, this);
+ }
+
+ public String getScheme() {
+ return tinyWRAPJNI.SipUri_getScheme(swigCPtr, this);
+ }
+
+ public String getHost() {
+ return tinyWRAPJNI.SipUri_getHost(swigCPtr, this);
+ }
+
+ public int getPort() {
+ return tinyWRAPJNI.SipUri_getPort(swigCPtr, this);
+ }
+
+ public String getUserName() {
+ return tinyWRAPJNI.SipUri_getUserName(swigCPtr, this);
+ }
+
+ public String getPassword() {
+ return tinyWRAPJNI.SipUri_getPassword(swigCPtr, this);
+ }
+
+ public String getDisplayName() {
+ return tinyWRAPJNI.SipUri_getDisplayName(swigCPtr, this);
+ }
+
+ public String getParamValue(String pname) {
+ return tinyWRAPJNI.SipUri_getParamValue(swigCPtr, this, pname);
+ }
+
+ public void setDisplayName(String displayName) {
+ tinyWRAPJNI.SipUri_setDisplayName(swigCPtr, this, displayName);
+ }
+
+}
diff --git a/bindings/java/android/StackEvent.java b/bindings/java/android/StackEvent.java
new file mode 100644
index 0000000..53a48dd
--- /dev/null
+++ b/bindings/java/android/StackEvent.java
@@ -0,0 +1,38 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class StackEvent extends SipEvent {
+ private long swigCPtr;
+
+ protected StackEvent(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.StackEvent_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(StackEvent obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_StackEvent(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+}
diff --git a/bindings/java/android/SubscriptionEvent.java b/bindings/java/android/SubscriptionEvent.java
new file mode 100644
index 0000000..96c63fd
--- /dev/null
+++ b/bindings/java/android/SubscriptionEvent.java
@@ -0,0 +1,52 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class SubscriptionEvent extends SipEvent {
+ private long swigCPtr;
+
+ protected SubscriptionEvent(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.SubscriptionEvent_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(SubscriptionEvent obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_SubscriptionEvent(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public tsip_subscribe_event_type_t getType() {
+ return tsip_subscribe_event_type_t.swigToEnum(tinyWRAPJNI.SubscriptionEvent_getType(swigCPtr, this));
+ }
+
+ public SubscriptionSession getSession() {
+ long cPtr = tinyWRAPJNI.SubscriptionEvent_getSession(swigCPtr, this);
+ return (cPtr == 0) ? null : new SubscriptionSession(cPtr, false);
+ }
+
+ public SubscriptionSession takeSessionOwnership() {
+ long cPtr = tinyWRAPJNI.SubscriptionEvent_takeSessionOwnership(swigCPtr, this);
+ return (cPtr == 0) ? null : new SubscriptionSession(cPtr, false);
+ }
+
+}
diff --git a/bindings/java/android/SubscriptionSession.java b/bindings/java/android/SubscriptionSession.java
new file mode 100644
index 0000000..bbe9c65
--- /dev/null
+++ b/bindings/java/android/SubscriptionSession.java
@@ -0,0 +1,50 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class SubscriptionSession extends SipSession {
+ private long swigCPtr;
+
+ protected SubscriptionSession(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.SubscriptionSession_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(SubscriptionSession obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_SubscriptionSession(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public SubscriptionSession(SipStack pStack) {
+ this(tinyWRAPJNI.new_SubscriptionSession(SipStack.getCPtr(pStack), pStack), true);
+ }
+
+ public boolean subscribe() {
+ return tinyWRAPJNI.SubscriptionSession_subscribe(swigCPtr, this);
+ }
+
+ public boolean unSubscribe() {
+ return tinyWRAPJNI.SubscriptionSession_unSubscribe(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/T140Callback.java b/bindings/java/android/T140Callback.java
new file mode 100644
index 0000000..c20de22
--- /dev/null
+++ b/bindings/java/android/T140Callback.java
@@ -0,0 +1,62 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class T140Callback {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected T140Callback(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(T140Callback obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_T140Callback(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ protected void swigDirectorDisconnect() {
+ swigCMemOwn = false;
+ delete();
+ }
+
+ public void swigReleaseOwnership() {
+ swigCMemOwn = false;
+ tinyWRAPJNI.T140Callback_change_ownership(this, swigCPtr, false);
+ }
+
+ public void swigTakeOwnership() {
+ swigCMemOwn = true;
+ tinyWRAPJNI.T140Callback_change_ownership(this, swigCPtr, true);
+ }
+
+ public T140Callback() {
+ this(tinyWRAPJNI.new_T140Callback(), true);
+ tinyWRAPJNI.T140Callback_director_connect(this, swigCPtr, swigCMemOwn, true);
+ }
+
+ public int ondata(T140CallbackData pData) {
+ return (getClass() == T140Callback.class) ? tinyWRAPJNI.T140Callback_ondata(swigCPtr, this, T140CallbackData.getCPtr(pData), pData) : tinyWRAPJNI.T140Callback_ondataSwigExplicitT140Callback(swigCPtr, this, T140CallbackData.getCPtr(pData), pData);
+ }
+
+}
diff --git a/bindings/java/android/T140CallbackData.java b/bindings/java/android/T140CallbackData.java
new file mode 100644
index 0000000..b08a9c4
--- /dev/null
+++ b/bindings/java/android/T140CallbackData.java
@@ -0,0 +1,62 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class T140CallbackData {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected T140CallbackData(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(T140CallbackData obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_T140CallbackData(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public byte[] getData() {
+ final int size = (int)this.getSize();
+ if(size > 0){
+ final java.nio.ByteBuffer buffer = java.nio.ByteBuffer.allocateDirect(size);
+ final int read = (int)this.getData(buffer, size);
+ final byte[] bytes = new byte[read];
+ buffer.get(bytes, 0, read);
+ return bytes;
+ }
+ return null;
+ }
+
+ public tmedia_t140_data_type_t getType() {
+ return tmedia_t140_data_type_t.swigToEnum(tinyWRAPJNI.T140CallbackData_getType(swigCPtr, this));
+ }
+
+ public long getSize() {
+ return tinyWRAPJNI.T140CallbackData_getSize(swigCPtr, this);
+ }
+
+ public long getData(java.nio.ByteBuffer pOutput, long nMaxsize) {
+ return tinyWRAPJNI.T140CallbackData_getData(swigCPtr, this, pOutput, nMaxsize);
+ }
+
+}
diff --git a/bindings/java/android/XcapCallback.java b/bindings/java/android/XcapCallback.java
new file mode 100644
index 0000000..7976fec
--- /dev/null
+++ b/bindings/java/android/XcapCallback.java
@@ -0,0 +1,62 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class XcapCallback {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected XcapCallback(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(XcapCallback obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_XcapCallback(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ protected void swigDirectorDisconnect() {
+ swigCMemOwn = false;
+ delete();
+ }
+
+ public void swigReleaseOwnership() {
+ swigCMemOwn = false;
+ tinyWRAPJNI.XcapCallback_change_ownership(this, swigCPtr, false);
+ }
+
+ public void swigTakeOwnership() {
+ swigCMemOwn = true;
+ tinyWRAPJNI.XcapCallback_change_ownership(this, swigCPtr, true);
+ }
+
+ public XcapCallback() {
+ this(tinyWRAPJNI.new_XcapCallback(), true);
+ tinyWRAPJNI.XcapCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
+ }
+
+ public int onEvent(XcapEvent e) {
+ return (getClass() == XcapCallback.class) ? tinyWRAPJNI.XcapCallback_onEvent(swigCPtr, this, XcapEvent.getCPtr(e), e) : tinyWRAPJNI.XcapCallback_onEventSwigExplicitXcapCallback(swigCPtr, this, XcapEvent.getCPtr(e), e);
+ }
+
+}
diff --git a/bindings/java/android/XcapEvent.java b/bindings/java/android/XcapEvent.java
new file mode 100644
index 0000000..1d5f3b4
--- /dev/null
+++ b/bindings/java/android/XcapEvent.java
@@ -0,0 +1,47 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class XcapEvent {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected XcapEvent(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(XcapEvent obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_XcapEvent(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public thttp_event_type_t getType() {
+ return thttp_event_type_t.swigToEnum(tinyWRAPJNI.XcapEvent_getType(swigCPtr, this));
+ }
+
+ public XcapMessage getXcapMessage() {
+ long cPtr = tinyWRAPJNI.XcapEvent_getXcapMessage(swigCPtr, this);
+ return (cPtr == 0) ? null : new XcapMessage(cPtr, false);
+ }
+
+}
diff --git a/bindings/java/android/XcapMessage.java b/bindings/java/android/XcapMessage.java
new file mode 100644
index 0000000..9366911
--- /dev/null
+++ b/bindings/java/android/XcapMessage.java
@@ -0,0 +1,86 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class XcapMessage {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected XcapMessage(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(XcapMessage obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_XcapMessage(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public byte[] getXcapContent() {
+ final int clen = (int)this.getXcapContentLength();
+ if(clen>0){
+ final java.nio.ByteBuffer buffer = java.nio.ByteBuffer.allocateDirect(clen);
+ final int read = (int)this.getXcapContent(buffer, clen);
+ final byte[] bytes = new byte[read];
+ buffer.get(bytes, 0, read);
+ return bytes;
+ }
+ return null;
+ }
+
+ public XcapMessage() {
+ this(tinyWRAPJNI.new_XcapMessage(), true);
+ }
+
+ public short getCode() {
+ return tinyWRAPJNI.XcapMessage_getCode(swigCPtr, this);
+ }
+
+ public String getPhrase() {
+ return tinyWRAPJNI.XcapMessage_getPhrase(swigCPtr, this);
+ }
+
+ public String getXcapHeaderValue(String name, long index) {
+ return tinyWRAPJNI.XcapMessage_getXcapHeaderValue__SWIG_0(swigCPtr, this, name, index);
+ }
+
+ public String getXcapHeaderValue(String name) {
+ return tinyWRAPJNI.XcapMessage_getXcapHeaderValue__SWIG_1(swigCPtr, this, name);
+ }
+
+ public String getXcapHeaderParamValue(String name, String param, long index) {
+ return tinyWRAPJNI.XcapMessage_getXcapHeaderParamValue__SWIG_0(swigCPtr, this, name, param, index);
+ }
+
+ public String getXcapHeaderParamValue(String name, String param) {
+ return tinyWRAPJNI.XcapMessage_getXcapHeaderParamValue__SWIG_1(swigCPtr, this, name, param);
+ }
+
+ public long getXcapContentLength() {
+ return tinyWRAPJNI.XcapMessage_getXcapContentLength(swigCPtr, this);
+ }
+
+ public long getXcapContent(java.nio.ByteBuffer output, long maxsize) {
+ return tinyWRAPJNI.XcapMessage_getXcapContent(swigCPtr, this, output, maxsize);
+ }
+
+}
diff --git a/bindings/java/android/XcapSelector.java b/bindings/java/android/XcapSelector.java
new file mode 100644
index 0000000..0a0c297
--- /dev/null
+++ b/bindings/java/android/XcapSelector.java
@@ -0,0 +1,80 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class XcapSelector {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected XcapSelector(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(XcapSelector obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_XcapSelector(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public XcapSelector(XcapStack stack) {
+ this(tinyWRAPJNI.new_XcapSelector(XcapStack.getCPtr(stack), stack), true);
+ }
+
+ public XcapSelector setAUID(String auid) {
+ long cPtr = tinyWRAPJNI.XcapSelector_setAUID(swigCPtr, this, auid);
+ return (cPtr == 0) ? null : new XcapSelector(cPtr, false);
+ }
+
+ public XcapSelector setName(String qname) {
+ long cPtr = tinyWRAPJNI.XcapSelector_setName(swigCPtr, this, qname);
+ return (cPtr == 0) ? null : new XcapSelector(cPtr, false);
+ }
+
+ public XcapSelector setAttribute(String qname, String att_qname, String att_value) {
+ long cPtr = tinyWRAPJNI.XcapSelector_setAttribute(swigCPtr, this, qname, att_qname, att_value);
+ return (cPtr == 0) ? null : new XcapSelector(cPtr, false);
+ }
+
+ public XcapSelector setPos(String qname, long pos) {
+ long cPtr = tinyWRAPJNI.XcapSelector_setPos(swigCPtr, this, qname, pos);
+ return (cPtr == 0) ? null : new XcapSelector(cPtr, false);
+ }
+
+ public XcapSelector setPosAttribute(String qname, long pos, String att_qname, String att_value) {
+ long cPtr = tinyWRAPJNI.XcapSelector_setPosAttribute(swigCPtr, this, qname, pos, att_qname, att_value);
+ return (cPtr == 0) ? null : new XcapSelector(cPtr, false);
+ }
+
+ public XcapSelector setNamespace(String prefix, String value) {
+ long cPtr = tinyWRAPJNI.XcapSelector_setNamespace(swigCPtr, this, prefix, value);
+ return (cPtr == 0) ? null : new XcapSelector(cPtr, false);
+ }
+
+ public String getString() {
+ return tinyWRAPJNI.XcapSelector_getString(swigCPtr, this);
+ }
+
+ public void reset() {
+ tinyWRAPJNI.XcapSelector_reset(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/XcapStack.java b/bindings/java/android/XcapStack.java
new file mode 100644
index 0000000..80a360a
--- /dev/null
+++ b/bindings/java/android/XcapStack.java
@@ -0,0 +1,118 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class XcapStack {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ protected XcapStack(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(XcapStack obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_XcapStack(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public XcapStack(XcapCallback callback, String xui, String password, String xcap_root) {
+ this(tinyWRAPJNI.new_XcapStack(XcapCallback.getCPtr(callback), callback, xui, password, xcap_root), true);
+ }
+
+ public boolean registerAUID(String id, String mime_type, String ns, String document_name, boolean is_global) {
+ return tinyWRAPJNI.XcapStack_registerAUID(swigCPtr, this, id, mime_type, ns, document_name, is_global);
+ }
+
+ public boolean start() {
+ return tinyWRAPJNI.XcapStack_start(swigCPtr, this);
+ }
+
+ public boolean setCredentials(String xui, String password) {
+ return tinyWRAPJNI.XcapStack_setCredentials(swigCPtr, this, xui, password);
+ }
+
+ public boolean setXcapRoot(String xcap_root) {
+ return tinyWRAPJNI.XcapStack_setXcapRoot(swigCPtr, this, xcap_root);
+ }
+
+ public boolean setLocalIP(String ip) {
+ return tinyWRAPJNI.XcapStack_setLocalIP(swigCPtr, this, ip);
+ }
+
+ public boolean setLocalPort(long port) {
+ return tinyWRAPJNI.XcapStack_setLocalPort(swigCPtr, this, port);
+ }
+
+ public boolean addHeader(String name, String value) {
+ return tinyWRAPJNI.XcapStack_addHeader(swigCPtr, this, name, value);
+ }
+
+ public boolean removeHeader(String name) {
+ return tinyWRAPJNI.XcapStack_removeHeader(swigCPtr, this, name);
+ }
+
+ public boolean setTimeout(long timeout) {
+ return tinyWRAPJNI.XcapStack_setTimeout(swigCPtr, this, timeout);
+ }
+
+ public boolean getDocument(String url) {
+ return tinyWRAPJNI.XcapStack_getDocument(swigCPtr, this, url);
+ }
+
+ public boolean getElement(String url) {
+ return tinyWRAPJNI.XcapStack_getElement(swigCPtr, this, url);
+ }
+
+ public boolean getAttribute(String url) {
+ return tinyWRAPJNI.XcapStack_getAttribute(swigCPtr, this, url);
+ }
+
+ public boolean deleteDocument(String url) {
+ return tinyWRAPJNI.XcapStack_deleteDocument(swigCPtr, this, url);
+ }
+
+ public boolean deleteElement(String url) {
+ return tinyWRAPJNI.XcapStack_deleteElement(swigCPtr, this, url);
+ }
+
+ public boolean deleteAttribute(String url) {
+ return tinyWRAPJNI.XcapStack_deleteAttribute(swigCPtr, this, url);
+ }
+
+ public boolean putDocument(String url, java.nio.ByteBuffer payload, long len, String contentType) {
+ return tinyWRAPJNI.XcapStack_putDocument(swigCPtr, this, url, payload, len, contentType);
+ }
+
+ public boolean putElement(String url, java.nio.ByteBuffer payload, long len) {
+ return tinyWRAPJNI.XcapStack_putElement(swigCPtr, this, url, payload, len);
+ }
+
+ public boolean putAttribute(String url, java.nio.ByteBuffer payload, long len) {
+ return tinyWRAPJNI.XcapStack_putAttribute(swigCPtr, this, url, payload, len);
+ }
+
+ public boolean stop() {
+ return tinyWRAPJNI.XcapStack_stop(swigCPtr, this);
+ }
+
+}
diff --git a/bindings/java/android/buildAll.sh b/bindings/java/android/buildAll.sh
new file mode 100644
index 0000000..7b0fdb5
--- /dev/null
+++ b/bindings/java/android/buildAll.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+# Build tinyWRAP for Google Android Systems
+
+for project in tinySAK tinyNET tinyHTTP tinyXCAP tinyIPSec tinySMS tinySIGCOMP tinySDP tinyMSRP tinyMEDIA tinyRTP tinyDAV tinySIP
+#for project in tinyDAV
+do
+ echo -e building "$project with parameters=$@\n"
+ make PROJECT=$project clean
+ make PROJECT=$project BT=static $@ all
+done
+
+echo building tinyWRAP....
+make PROJECT=tinyWRAP clean
+make PROJECT=tinyWRAP BT=shared LT=static $@ all \ No newline at end of file
diff --git a/bindings/java/android/commercial.sh b/bindings/java/android/commercial.sh
new file mode 100644
index 0000000..4e62a27
--- /dev/null
+++ b/bindings/java/android/commercial.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+# Build tinyWRAP for Google Android Systems
+
+# GPL parameters
+export COMMERCIAL_PARAMS=LICENSE=lgpl \
+FFMPEG=no \
+LIBYUV=yes \
+VPX=yes \
+H264=no \
+THEORA=yes \
+OPUS=yes \
+OPENCORE_AMR=no \
+SPEEX_DSP=yes \
+SPEEX_JB=yes \
+SPEEX_RESAMPLER=yes \
+SPEEX_DENOISE=yes \
+SPEEX=yes \
+ILBC=yes \
+LIBGSM=yes \
+G729=no \
+SRTP=yes \
+TLS=yes
+
+for IS_NEON in no yes
+do
+../bindings/java/android/buildAll.sh $@ NEON=$IS_NEON $COMMERCIAL_PARAMS WEBRTC=$IS_NEON WEBRTC_DENOISE=$IS_NEON
+done
+
diff --git a/bindings/java/android/droid-makefile b/bindings/java/android/droid-makefile
new file mode 100644
index 0000000..5383adc
--- /dev/null
+++ b/bindings/java/android/droid-makefile
@@ -0,0 +1,146 @@
+APP := lib$(PROJECT)_$(MARCH).$(EXT)
+
+CFLAGS := $(CFLAGS_LIB) -fno-rtti -fno-exceptions -I../../_common -I../../. -I../../../tinySAK/src -I../../../tinyNET/src -I../../../tinyHTTP/include -I../../../tinyXCAP/include \
+ -I../../../tinySMS/include -I../../../tinySDP/include -I../../../tinyMEDIA/include -I../../../tinyMSRP/include -I../../../tinyDAV/include -I../../../tinySIP/include
+
+# Because of the static build, we need all librarires
+THIRDPARTIES_LIB := ../../../thirdparties/android/lib
+THIRDPARTIES_MARCH_LIB := ../../../thirdparties/android/lib/$(MARCH)
+
+##########
+# Before starting to set parmeters we will override those provided by the user
+#
+
+ifeq ($(LICENSE),lgpl)
+ H264 := no
+endif
+
+
+##########
+# Set LD and CFLAGS according to the user parameters
+#
+
+ifneq ($(FFMPEG), no)
+FFMPEG_LDFLAGS := -lavutil-$(LICENSE) -lswscale-$(LICENSE) -lavcore-$(LICENSE) -lavcodec-$(LICENSE)
+ ifneq ($(H264),no)
+ FFMPEG_LDFLAGS := $(FFMPEG_LDFLAGS) -lx264
+ endif
+ ifneq ($(THEORA),no)
+ FFMPEG_LDFLAGS := $(FFMPEG_LDFLAGS) -ltheora -logg
+ endif
+endif
+
+ifneq ($(LIBYUV),no)
+ LIBYUV_LDLAGS := -lyuv_$(MARCH)
+endif
+
+ifeq ($(VPX),yes)
+ VPX_LDLAGS := -lvpx_$(MARCH)
+endif
+
+ifneq ($(OPUS), no)
+ OPUS_LDFLAGS := -lopus
+endif
+
+ifneq ($(OPENCORE_AMR), no)
+ OPENCORE_ARM_LDFLAGS := -lopencore-amrnb
+endif
+
+ifeq ($(SPEEX_DSP), yes)
+ SPEEX_DSP_LDFLAGS := -lspeexdsp
+endif
+
+ifeq ($(SPEEX), yes)
+ SPEEX_LDFLAGS := -lspeex
+endif
+
+ifeq ($(WEBRTC), yes)
+ WEBRTC_LDFLAGS := -lwebrtc_aec_$(MARCH) -lwebrtc_spl_$(MARCH) -lwebrtc_apm_utility_$(MARCH) -lwebrtc_nsx_$(MARCH) -lwebrtc_system_wrappers_$(MARCH)
+endif
+
+ifeq ($(ILBC), yes)
+ ILBC_LDFLAGS := -liLBC
+endif
+
+ifneq ($(LIBGSM),no)
+ LIBGSM_LDFLAGS := -lgsm
+endif
+
+#BV16_LDFLAGS := -lbv16
+
+ifeq ($(G729), yes)
+ G729_LDFLAGS := -lg729b_$(MARCH)
+
+ # Reset all other ITU CODECS
+ OPENCORE_ARM_LDFLAGS :=
+ BV16_LDFLAGS :=
+else
+ G729_LDFLAGS :=
+endif
+
+ifneq ($(SRTP),no)
+ LIBSRTP_LDFLAGS := -lsrtp
+endif
+
+ifneq ($(TLS), no)
+ TLS_LDFLAGS := -lssl_$(MARCH) -lcrypto_$(MARCH)
+endif
+
+ifeq ($(LT),shared)
+ _LT=Bdynamic
+else
+ _LT=Bstatic
+endif
+
+LDFLAGS := $(LDFLAGS_LIB) -L$(THIRDPARTIES_LIB) -L$(THIRDPARTIES_MARCH_LIB) $(FFMPEG_LDFLAGS) $(LIBYUV_LDLAGS) $(VPX_LDLAGS) $(WEBRTC_LDFLAGS) $(SPEEX_DSP_LDFLAGS) $(SPEEX_LDFLAGS) $(OPUS_LDFLAGS) $(OPENCORE_ARM_LDFLAGS) $(BV16_LDFLAGS) $(ILBC_LDFLAGS) $(LIBGSM_LDFLAGS) $(G729_LDFLAGS) \
+ $(LIBSRTP_LDFLAGS) $(TLS_LDFLAGS) \
+ -Wl,-Bdynamic -lm -lstdc++ -lgnustl_static -lgcc -llog -ldl \
+ -Wl,-$(_LT) -ltinySAK_$(MARCH) -ltinyHTTP_$(MARCH) -ltinyXCAP_$(MARCH) -ltinyIPSec_$(MARCH) -ltinySIGCOMP_$(MARCH) -ltinySMS_$(MARCH) -ltinyNET_$(MARCH) -ltinySDP_$(MARCH) -ltinyRTP_$(MARCH) -ltinyMEDIA_$(MARCH) -ltinyMSRP_$(MARCH) -ltinyDAV_$(MARCH) -ltinySIP_$(MARCH)
+
+
+all: $(APP)
+
+OBJS = tinyWRAP_wrap.o\
+ ../../_common/ActionConfig.o \
+ ../../_common/AudioResampler.o \
+ ../../_common/DDebug.o \
+ ../../_common/MediaContent.o \
+ ../../_common/MediaSessionMgr.o \
+ ../../_common/Msrp.o \
+ ../../_common/ProxyConsumer.o \
+ ../../_common/ProxyPluginMgr.o \
+ ../../_common/ProxyProducer.o \
+ ../../_common/SafeObject.o \
+ ../../_common/SipCallback.o \
+ ../../_common/SipEvent.o \
+ ../../_common/SipMessage.o \
+ ../../_common/SipSession.o \
+ ../../_common/SipStack.o \
+ ../../_common/SipUri.o \
+ ../../_common/SMSEncoder.o \
+ ../../_common/Xcap.o
+
+
+$(APP): $(OBJS)
+ifeq ($(EXT), a)
+ $(AR) rcs $@ $^
+else
+ $(CC) $(LDFLAGS) -o $@ $^
+endif
+
+%.o: %.cxx
+ $(CPP) -c $(INCLUDE) $(CFLAGS) $< -o $@
+
+install: $(APP)
+ $(ANDROID_SDK_ROOT)/tools/adb remount
+ $(ANDROID_SDK_ROOT)/tools/adb push $(APP) $(LIB_DIR)/$(APP)
+ $(ANDROID_SDK_ROOT)/tools/adb shell chmod 777 $(LIB_DIR)/$(APP)
+
+shell:
+ $(ANDROID_SDK_ROOT)/tools/adb shell
+
+run:
+ $(ANDROID_SDK_ROOT)/tools/adb shell $(LIB_DIR)/$(APP)
+
+clean:
+ @rm -f $(OBJS) $(APP) \ No newline at end of file
diff --git a/bindings/java/android/gpl.sh b/bindings/java/android/gpl.sh
new file mode 100644
index 0000000..94cfcf3
--- /dev/null
+++ b/bindings/java/android/gpl.sh
@@ -0,0 +1,30 @@
+#!/bin/bash
+# Build tinyWRAP for Google Android Systems
+
+# GPL parameters
+export GPL_PARAMS=LICENSE=gpl \
+NO_FREE=yes \
+FFMPEG=yes \
+LIBYUV=yes \
+VPX=yes \
+H264=yes \
+THEORA=yes \
+OPUS=yes \
+OPENCORE_AMR=yes \
+SPEEX_DSP=yes \
+SPEEX_JB=yes \
+SPEEX_RESAMPLER=yes \
+SPEEX_DENOISE=yes \
+SPEEX=yes \
+ILBC=yes \
+LIBGSM=yes \
+G729=yes \
+SRTP=yes \
+TLS=yes
+
+for IS_NEON in no yes
+#for IS_NEON in yes
+do
+../bindings/java/android/buildAll.sh $@ NEON=$IS_NEON $GPL_PARAMS WEBRTC=$IS_NEON WEBRTC_DENOISE=$IS_NEON
+done
+
diff --git a/bindings/java/android/lgpl.sh b/bindings/java/android/lgpl.sh
new file mode 100644
index 0000000..29e9a12
--- /dev/null
+++ b/bindings/java/android/lgpl.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+# Build tinyWRAP for Google Android Systems
+
+# GPL parameters
+export LGPL_PARAMS=LICENSE=lgpl \
+FFMPEG=yes \
+LIBYUV=yes \
+VPX=yes \
+H264=no \
+THEORA=yes \
+OPUS=yes \
+OPENCORE_AMR=yes \
+SPEEX_DSP=yes \
+SPEEX_JB=yes \
+SPEEX_RESAMPLER=yes \
+SPEEX_DENOISE=yes \
+SPEEX=yes \
+ILBC=yes \
+LIBGSM=yes \
+G729=yes \
+SRTP=yes \
+TLS=yes
+
+for IS_NEON in no yes
+do
+../bindings/java/android/buildAll.sh $@ NEON=$IS_NEON $LGPL_PARAMS WEBRTC=$IS_NEON WEBRTC_DENOISE=$IS_NEON
+done
+
diff --git a/bindings/java/android/minimal.sh b/bindings/java/android/minimal.sh
new file mode 100644
index 0000000..d451176
--- /dev/null
+++ b/bindings/java/android/minimal.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+# Build tinyWRAP for Google Android Systems
+
+# GPL parameters
+export MINIMAL_PARAMS= \
+FFMPEG=no \
+LIBYUV=yes \
+VPX=yes \
+H264=no \
+THEORA=no \
+OPUS=no \
+OPENCORE_AMR=no \
+SPEEX_DSP=yes \
+SPEEX_JB=yes \
+SPEEX_RESAMPLER=yes \
+SPEEX_DENOISE=yes \
+SPEEX=no \
+ILBC=no \
+LIBGSM=no \
+G729=no \
+SRTP=yes \
+TLS=yes
+
+for IS_NEON in no yes
+do
+../bindings/java/android/buildAll.sh $@ NEON=$IS_NEON $MINIMAL_PARAMS WEBRTC=$IS_NEON WEBRTC_DENOISE=$IS_NEON
+done
diff --git a/bindings/java/android/tdav_codec_id_t.java b/bindings/java/android/tdav_codec_id_t.java
new file mode 100644
index 0000000..2556437
--- /dev/null
+++ b/bindings/java/android/tdav_codec_id_t.java
@@ -0,0 +1,83 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tdav_codec_id_t {
+ tdav_codec_id_none(0x00000000),
+ tdav_codec_id_amr_nb_oa(0x00000001 << 0),
+ tdav_codec_id_amr_nb_be(0x00000001 << 1),
+ tdav_codec_id_amr_wb_oa(0x00000001 << 2),
+ tdav_codec_id_amr_wb_be(0x00000001 << 3),
+ tdav_codec_id_gsm(0x00000001 << 4),
+ tdav_codec_id_pcma(0x00000001 << 5),
+ tdav_codec_id_pcmu(0x00000001 << 6),
+ tdav_codec_id_ilbc(0x00000001 << 7),
+ tdav_codec_id_speex_nb(0x00000001 << 8),
+ tdav_codec_id_speex_wb(0x00000001 << 9),
+ tdav_codec_id_speex_uwb(0x00000001 << 10),
+ tdav_codec_id_bv16(0x00000001 << 11),
+ tdav_codec_id_bv32(0x00000001 << 12),
+ tdav_codec_id_opus(0x00000001 << 13),
+ tdav_codec_id_g729ab(0x00000001 << 14),
+ tdav_codec_id_g722(0x00000001 << 15),
+ tdav_codec_id_h261(0x00010000 << 0),
+ tdav_codec_id_h263(0x00010000 << 1),
+ tdav_codec_id_h263p(0x00010000 << 2),
+ tdav_codec_id_h263pp(0x00010000 << 3),
+ tdav_codec_id_h264_bp(0x00010000 << 4),
+ tdav_codec_id_h264_mp(0x00010000 << 5),
+ tdav_codec_id_h264_hp(0x00010000 << 6),
+ tdav_codec_id_h264_bp10(tdav_codec_id_h264_bp),
+ tdav_codec_id_h264_bp20(tdav_codec_id_h264_bp),
+ tdav_codec_id_h264_bp30(tdav_codec_id_h264_bp),
+ tdav_codec_id_h264_svc(0x00010000 << 7),
+ tdav_codec_id_theora(0x00010000 << 8),
+ tdav_codec_id_mp4ves_es(0x00010000 << 9),
+ tdav_codec_id_vp8(0x00010000 << 10),
+ tdav_codec_id_t140(0x00010000 << 14),
+ tdav_codec_id_red(0x00010000 << 15);
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tdav_codec_id_t swigToEnum(int swigValue) {
+ tdav_codec_id_t[] swigValues = tdav_codec_id_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tdav_codec_id_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tdav_codec_id_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tdav_codec_id_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tdav_codec_id_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tdav_codec_id_t(tdav_codec_id_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/thttp_event_type_t.java b/bindings/java/android/thttp_event_type_t.java
new file mode 100644
index 0000000..022295b
--- /dev/null
+++ b/bindings/java/android/thttp_event_type_t.java
@@ -0,0 +1,56 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum thttp_event_type_t {
+ thttp_event_dialog_started,
+ thttp_event_message,
+ thttp_event_auth_failed,
+ thttp_event_closed,
+ thttp_event_transport_error,
+ thttp_event_dialog_terminated;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static thttp_event_type_t swigToEnum(int swigValue) {
+ thttp_event_type_t[] swigValues = thttp_event_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (thttp_event_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + thttp_event_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private thttp_event_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private thttp_event_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private thttp_event_type_t(thttp_event_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tinyWRAP.java b/bindings/java/android/tinyWRAP.java
new file mode 100644
index 0000000..1accccf
--- /dev/null
+++ b/bindings/java/android/tinyWRAP.java
@@ -0,0 +1,12 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class tinyWRAP implements tinyWRAPConstants {
+}
diff --git a/bindings/java/android/tinyWRAPConstants.java b/bindings/java/android/tinyWRAPConstants.java
new file mode 100644
index 0000000..5d5f094
--- /dev/null
+++ b/bindings/java/android/tinyWRAPConstants.java
@@ -0,0 +1,30 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public interface tinyWRAPConstants {
+ public final static int tsip_event_code_dialog_transport_error = 702;
+ public final static int tsip_event_code_dialog_global_error = 703;
+ public final static int tsip_event_code_dialog_message_error = 704;
+ public final static int tsip_event_code_dialog_request_incoming = 800;
+ public final static int tsip_event_code_dialog_request_outgoing = 802;
+ public final static int tsip_event_code_dialog_request_cancelled = 803;
+ public final static int tsip_event_code_dialog_request_sent = 804;
+ public final static int tsip_event_code_dialog_connecting = 900;
+ public final static int tsip_event_code_dialog_connected = 901;
+ public final static int tsip_event_code_dialog_terminating = 902;
+ public final static int tsip_event_code_dialog_terminated = 903;
+ public final static int tsip_event_code_stack_starting = 950;
+ public final static int tsip_event_code_stack_started = 951;
+ public final static int tsip_event_code_stack_stopping = 952;
+ public final static int tsip_event_code_stack_stopped = 953;
+ public final static int tsip_event_code_stack_failed_to_start = 954;
+ public final static int tsip_event_code_stack_failed_to_stop = 955;
+ public final static int tsip_event_code_stack_disconnected = 956;
+}
diff --git a/bindings/java/android/tinyWRAPJNI.java b/bindings/java/android/tinyWRAPJNI.java
new file mode 100644
index 0000000..e7e86fc
--- /dev/null
+++ b/bindings/java/android/tinyWRAPJNI.java
@@ -0,0 +1,791 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class tinyWRAPJNI {
+ public final static native long new_DDebugCallback();
+ public final static native void delete_DDebugCallback(long jarg1);
+ public final static native int DDebugCallback_OnDebugInfo(long jarg1, DDebugCallback jarg1_, String jarg2);
+ public final static native int DDebugCallback_OnDebugInfoSwigExplicitDDebugCallback(long jarg1, DDebugCallback jarg1_, String jarg2);
+ public final static native int DDebugCallback_OnDebugWarn(long jarg1, DDebugCallback jarg1_, String jarg2);
+ public final static native int DDebugCallback_OnDebugWarnSwigExplicitDDebugCallback(long jarg1, DDebugCallback jarg1_, String jarg2);
+ public final static native int DDebugCallback_OnDebugError(long jarg1, DDebugCallback jarg1_, String jarg2);
+ public final static native int DDebugCallback_OnDebugErrorSwigExplicitDDebugCallback(long jarg1, DDebugCallback jarg1_, String jarg2);
+ public final static native int DDebugCallback_OnDebugFatal(long jarg1, DDebugCallback jarg1_, String jarg2);
+ public final static native int DDebugCallback_OnDebugFatalSwigExplicitDDebugCallback(long jarg1, DDebugCallback jarg1_, String jarg2);
+ public final static native void DDebugCallback_director_connect(DDebugCallback obj, long cptr, boolean mem_own, boolean weak_global);
+ public final static native void DDebugCallback_change_ownership(DDebugCallback obj, long cptr, boolean take_or_release);
+ public final static native long new_AudioResampler(long jarg1, long jarg2, long jarg3, long jarg4, long jarg5);
+ public final static native void delete_AudioResampler(long jarg1);
+ public final static native boolean AudioResampler_isValid(long jarg1, AudioResampler jarg1_);
+ public final static native long AudioResampler_getOutputRequiredSizeInShort(long jarg1, AudioResampler jarg1_);
+ public final static native long AudioResampler_getInputRequiredSizeInShort(long jarg1, AudioResampler jarg1_);
+ public final static native long AudioResampler_process(long jarg1, AudioResampler jarg1_, java.nio.ByteBuffer jarg2, long jarg3, java.nio.ByteBuffer jarg4, long jarg5);
+ public final static native long new_ActionConfig();
+ public final static native void delete_ActionConfig(long jarg1);
+ public final static native boolean ActionConfig_addHeader(long jarg1, ActionConfig jarg1_, String jarg2, String jarg3);
+ public final static native boolean ActionConfig_addPayload(long jarg1, ActionConfig jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native boolean ActionConfig_setActiveMedia(long jarg1, ActionConfig jarg1_, int jarg2);
+ public final static native long ActionConfig_setResponseLine(long jarg1, ActionConfig jarg1_, short jarg2, String jarg3);
+ public final static native long ActionConfig_setMediaString(long jarg1, ActionConfig jarg1_, int jarg2, String jarg3, String jarg4);
+ public final static native long ActionConfig_setMediaInt(long jarg1, ActionConfig jarg1_, int jarg2, String jarg3, int jarg4);
+ public final static native void delete_Codec(long jarg1);
+ public final static native int Codec_getMediaType(long jarg1, Codec jarg1_);
+ public final static native String Codec_getName(long jarg1, Codec jarg1_);
+ public final static native String Codec_getDescription(long jarg1, Codec jarg1_);
+ public final static native String Codec_getNegFormat(long jarg1, Codec jarg1_);
+ public final static native int Codec_getAudioSamplingRate(long jarg1, Codec jarg1_);
+ public final static native int Codec_getAudioChannels(long jarg1, Codec jarg1_);
+ public final static native int Codec_getAudioPTime(long jarg1, Codec jarg1_);
+ public final static native void delete_MediaSessionMgr(long jarg1);
+ public final static native boolean MediaSessionMgr_sessionSetInt32(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3, int jarg4);
+ public final static native int MediaSessionMgr_sessionGetInt32(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3);
+ public final static native boolean MediaSessionMgr_consumerSetInt32(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3, int jarg4);
+ public final static native boolean MediaSessionMgr_consumerSetInt64(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3, long jarg4);
+ public final static native boolean MediaSessionMgr_producerSetInt32(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3, int jarg4);
+ public final static native boolean MediaSessionMgr_producerSetInt64(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3, long jarg4);
+ public final static native long MediaSessionMgr_producerGetCodec(long jarg1, MediaSessionMgr jarg1_, int jarg2);
+ public final static native long MediaSessionMgr_findProxyPluginConsumer(long jarg1, MediaSessionMgr jarg1_, int jarg2);
+ public final static native long MediaSessionMgr_findProxyPluginProducer(long jarg1, MediaSessionMgr jarg1_, int jarg2);
+ public final static native long MediaSessionMgr_registerAudioPluginFromFile(String jarg1);
+ public final static native java.math.BigInteger MediaSessionMgr_getSessionId(long jarg1, MediaSessionMgr jarg1_, int jarg2);
+ public final static native boolean MediaSessionMgr_defaultsSetProfile(int jarg1);
+ public final static native int MediaSessionMgr_defaultsGetProfile();
+ public final static native boolean MediaSessionMgr_defaultsSetBandwidthLevel(int jarg1);
+ public final static native int MediaSessionMgr_defaultsGetBandwidthLevel();
+ public final static native boolean MediaSessionMgr_defaultsSetCongestionCtrlEnabled(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetVideoMotionRank(int jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetVideoFps(int jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetBandwidthVideoUploadMax(int jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax(int jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetPrefVideoSize(int jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetJbMargin(long jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetJbMaxLateRate(long jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetEchoTail(long jarg1);
+ public final static native long MediaSessionMgr_defaultsGetEchoTail();
+ public final static native boolean MediaSessionMgr_defaultsSetEchoSkew(long jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetEchoSuppEnabled(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsGetEchoSuppEnabled();
+ public final static native boolean MediaSessionMgr_defaultsSetAgcEnabled(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsGetAgcEnabled();
+ public final static native boolean MediaSessionMgr_defaultsSetAgcLevel(float jarg1);
+ public final static native float MediaSessionMgr_defaultsGetAgcLevel();
+ public final static native boolean MediaSessionMgr_defaultsSetVadEnabled(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsGetGetVadEnabled();
+ public final static native boolean MediaSessionMgr_defaultsSetNoiseSuppEnabled(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsGetNoiseSuppEnabled();
+ public final static native boolean MediaSessionMgr_defaultsSetNoiseSuppLevel(int jarg1);
+ public final static native int MediaSessionMgr_defaultsGetNoiseSuppLevel();
+ public final static native boolean MediaSessionMgr_defaultsSet100relEnabled(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsGet100relEnabled();
+ public final static native boolean MediaSessionMgr_defaultsSetScreenSize(int jarg1, int jarg2);
+ public final static native boolean MediaSessionMgr_defaultsSetAudioGain(int jarg1, int jarg2);
+ public final static native boolean MediaSessionMgr_defaultsSetAudioPtime(int jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetAudioChannels(int jarg1, int jarg2);
+ public final static native boolean MediaSessionMgr_defaultsSetRtpPortRange(int jarg1, int jarg2);
+ public final static native boolean MediaSessionMgr_defaultsSetRtpSymetricEnabled(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetMediaType(int jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetVolume(int jarg1);
+ public final static native int MediaSessionMgr_defaultsGetVolume();
+ public final static native boolean MediaSessionMgr_defaultsSetInviteSessionTimers(int jarg1, String jarg2);
+ public final static native boolean MediaSessionMgr_defaultsSetSRtpMode(int jarg1);
+ public final static native int MediaSessionMgr_defaultsGetSRtpMode();
+ public final static native boolean MediaSessionMgr_defaultsSetSRtpType(int jarg1);
+ public final static native int MediaSessionMgr_defaultsGetSRtpType();
+ public final static native boolean MediaSessionMgr_defaultsSetRtcpEnabled(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsGetRtcpEnabled();
+ public final static native boolean MediaSessionMgr_defaultsSetRtcpMuxEnabled(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsGetRtcpMuxEnabled();
+ public final static native boolean MediaSessionMgr_defaultsSetStunEnabled(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetIceStunEnabled(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetIceTurnEnabled(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetStunServer(String jarg1, int jarg2);
+ public final static native boolean MediaSessionMgr_defaultsSetStunCred(String jarg1, String jarg2);
+ public final static native boolean MediaSessionMgr_defaultsSetIceEnabled(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetByPassEncoding(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsGetByPassEncoding();
+ public final static native boolean MediaSessionMgr_defaultsSetByPassDecoding(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsGetByPassDecoding();
+ public final static native boolean MediaSessionMgr_defaultsSetVideoJbEnabled(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsGetVideoJbEnabled();
+ public final static native boolean MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled(boolean jarg1);
+ public final static native boolean MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled();
+ public final static native boolean MediaSessionMgr_defaultsSetRtpBuffSize(long jarg1);
+ public final static native long MediaSessionMgr_defaultsGetRtpBuffSize();
+ public final static native boolean MediaSessionMgr_defaultsSetAvpfTail(long jarg1, long jarg2);
+ public final static native boolean MediaSessionMgr_defaultsSetAvpfMode(int jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetOpusMaxCaptureRate(long jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetOpusMaxPlaybackRate(long jarg1);
+ public final static native boolean MediaSessionMgr_defaultsSetMaxFds(int jarg1);
+ public final static native void delete_MediaContent(long jarg1);
+ public final static native String MediaContent_getType(long jarg1, MediaContent jarg1_);
+ public final static native long MediaContent_getDataLength(long jarg1, MediaContent jarg1_);
+ public final static native long MediaContent_getData(long jarg1, MediaContent jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native long MediaContent_parse__SWIG_0(java.nio.ByteBuffer jarg1, long jarg2, String jarg3);
+ public final static native long MediaContent_parse__SWIG_1(java.nio.ByteBuffer jarg1, long jarg2);
+ public final static native long MediaContent_getPayloadLength(long jarg1, MediaContent jarg1_);
+ public final static native long MediaContent_getPayload(long jarg1, MediaContent jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native void delete_MediaContentCPIM(long jarg1);
+ public final static native long MediaContentCPIM_getPayloadLength(long jarg1, MediaContentCPIM jarg1_);
+ public final static native long MediaContentCPIM_getPayload(long jarg1, MediaContentCPIM jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native String MediaContentCPIM_getHeaderValue(long jarg1, MediaContentCPIM jarg1_, String jarg2);
+ public final static native long new_SipUri__SWIG_0(String jarg1, String jarg2);
+ public final static native long new_SipUri__SWIG_1(String jarg1);
+ public final static native void delete_SipUri(long jarg1);
+ public final static native boolean SipUri_isValid__SWIG_0(String jarg1);
+ public final static native boolean SipUri_isValid__SWIG_1(long jarg1, SipUri jarg1_);
+ public final static native String SipUri_getScheme(long jarg1, SipUri jarg1_);
+ public final static native String SipUri_getHost(long jarg1, SipUri jarg1_);
+ public final static native int SipUri_getPort(long jarg1, SipUri jarg1_);
+ public final static native String SipUri_getUserName(long jarg1, SipUri jarg1_);
+ public final static native String SipUri_getPassword(long jarg1, SipUri jarg1_);
+ public final static native String SipUri_getDisplayName(long jarg1, SipUri jarg1_);
+ public final static native String SipUri_getParamValue(long jarg1, SipUri jarg1_, String jarg2);
+ public final static native void SipUri_setDisplayName(long jarg1, SipUri jarg1_, String jarg2);
+ public final static native long new_SdpMessage();
+ public final static native void delete_SdpMessage(long jarg1);
+ public final static native String SdpMessage_getSdpHeaderValue__SWIG_0(long jarg1, SdpMessage jarg1_, String jarg2, char jarg3, long jarg4);
+ public final static native String SdpMessage_getSdpHeaderValue__SWIG_1(long jarg1, SdpMessage jarg1_, String jarg2, char jarg3);
+ public final static native String SdpMessage_getSdpHeaderAValue(long jarg1, SdpMessage jarg1_, String jarg2, String jarg3);
+ public final static native long new_SipMessage();
+ public final static native void delete_SipMessage(long jarg1);
+ public final static native boolean SipMessage_isResponse(long jarg1, SipMessage jarg1_);
+ public final static native int SipMessage_getRequestType(long jarg1, SipMessage jarg1_);
+ public final static native short SipMessage_getResponseCode(long jarg1, SipMessage jarg1_);
+ public final static native String SipMessage_getResponsePhrase(long jarg1, SipMessage jarg1_);
+ public final static native String SipMessage_getSipHeaderValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, long jarg3);
+ public final static native String SipMessage_getSipHeaderValue__SWIG_1(long jarg1, SipMessage jarg1_, String jarg2);
+ public final static native String SipMessage_getSipHeaderParamValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, String jarg3, long jarg4);
+ public final static native String SipMessage_getSipHeaderParamValue__SWIG_1(long jarg1, SipMessage jarg1_, String jarg2, String jarg3);
+ public final static native long SipMessage_getSipContentLength(long jarg1, SipMessage jarg1_);
+ public final static native long SipMessage_getSipContent(long jarg1, SipMessage jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native long SipMessage_getSdpMessage(long jarg1, SipMessage jarg1_);
+ public final static native void delete_SipEvent(long jarg1);
+ public final static native short SipEvent_getCode(long jarg1, SipEvent jarg1_);
+ public final static native String SipEvent_getPhrase(long jarg1, SipEvent jarg1_);
+ public final static native long SipEvent_getBaseSession(long jarg1, SipEvent jarg1_);
+ public final static native long SipEvent_getSipMessage(long jarg1, SipEvent jarg1_);
+ public final static native void delete_DialogEvent(long jarg1);
+ public final static native void delete_StackEvent(long jarg1);
+ public final static native void delete_InviteEvent(long jarg1);
+ public final static native int InviteEvent_getType(long jarg1, InviteEvent jarg1_);
+ public final static native int InviteEvent_getMediaType(long jarg1, InviteEvent jarg1_);
+ public final static native long InviteEvent_getSession(long jarg1, InviteEvent jarg1_);
+ public final static native long InviteEvent_takeCallSessionOwnership(long jarg1, InviteEvent jarg1_);
+ public final static native long InviteEvent_takeMsrpSessionOwnership(long jarg1, InviteEvent jarg1_);
+ public final static native void delete_MessagingEvent(long jarg1);
+ public final static native int MessagingEvent_getType(long jarg1, MessagingEvent jarg1_);
+ public final static native long MessagingEvent_getSession(long jarg1, MessagingEvent jarg1_);
+ public final static native long MessagingEvent_takeSessionOwnership(long jarg1, MessagingEvent jarg1_);
+ public final static native void delete_InfoEvent(long jarg1);
+ public final static native int InfoEvent_getType(long jarg1, InfoEvent jarg1_);
+ public final static native long InfoEvent_getSession(long jarg1, InfoEvent jarg1_);
+ public final static native long InfoEvent_takeSessionOwnership(long jarg1, InfoEvent jarg1_);
+ public final static native void delete_OptionsEvent(long jarg1);
+ public final static native int OptionsEvent_getType(long jarg1, OptionsEvent jarg1_);
+ public final static native long OptionsEvent_getSession(long jarg1, OptionsEvent jarg1_);
+ public final static native long OptionsEvent_takeSessionOwnership(long jarg1, OptionsEvent jarg1_);
+ public final static native void delete_PublicationEvent(long jarg1);
+ public final static native int PublicationEvent_getType(long jarg1, PublicationEvent jarg1_);
+ public final static native long PublicationEvent_getSession(long jarg1, PublicationEvent jarg1_);
+ public final static native long PublicationEvent_takeSessionOwnership(long jarg1, PublicationEvent jarg1_);
+ public final static native void delete_RegistrationEvent(long jarg1);
+ public final static native int RegistrationEvent_getType(long jarg1, RegistrationEvent jarg1_);
+ public final static native long RegistrationEvent_getSession(long jarg1, RegistrationEvent jarg1_);
+ public final static native long RegistrationEvent_takeSessionOwnership(long jarg1, RegistrationEvent jarg1_);
+ public final static native void delete_SubscriptionEvent(long jarg1);
+ public final static native int SubscriptionEvent_getType(long jarg1, SubscriptionEvent jarg1_);
+ public final static native long SubscriptionEvent_getSession(long jarg1, SubscriptionEvent jarg1_);
+ public final static native long SubscriptionEvent_takeSessionOwnership(long jarg1, SubscriptionEvent jarg1_);
+ public final static native void delete_T140CallbackData(long jarg1);
+ public final static native int T140CallbackData_getType(long jarg1, T140CallbackData jarg1_);
+ public final static native long T140CallbackData_getSize(long jarg1, T140CallbackData jarg1_);
+ public final static native long T140CallbackData_getData(long jarg1, T140CallbackData jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native long new_T140Callback();
+ public final static native void delete_T140Callback(long jarg1);
+ public final static native int T140Callback_ondata(long jarg1, T140Callback jarg1_, long jarg2, T140CallbackData jarg2_);
+ public final static native int T140Callback_ondataSwigExplicitT140Callback(long jarg1, T140Callback jarg1_, long jarg2, T140CallbackData jarg2_);
+ public final static native void T140Callback_director_connect(T140Callback obj, long cptr, boolean mem_own, boolean weak_global);
+ public final static native void T140Callback_change_ownership(T140Callback obj, long cptr, boolean take_or_release);
+ public final static native long new_SipSession(long jarg1, SipStack jarg1_);
+ public final static native void delete_SipSession(long jarg1);
+ public final static native boolean SipSession_haveOwnership(long jarg1, SipSession jarg1_);
+ public final static native boolean SipSession_addHeader(long jarg1, SipSession jarg1_, String jarg2, String jarg3);
+ public final static native boolean SipSession_removeHeader(long jarg1, SipSession jarg1_, String jarg2);
+ public final static native boolean SipSession_addCaps__SWIG_0(long jarg1, SipSession jarg1_, String jarg2, String jarg3);
+ public final static native boolean SipSession_addCaps__SWIG_1(long jarg1, SipSession jarg1_, String jarg2);
+ public final static native boolean SipSession_removeCaps(long jarg1, SipSession jarg1_, String jarg2);
+ public final static native boolean SipSession_setExpires(long jarg1, SipSession jarg1_, long jarg2);
+ public final static native boolean SipSession_setFromUri__SWIG_0(long jarg1, SipSession jarg1_, String jarg2);
+ public final static native boolean SipSession_setFromUri__SWIG_1(long jarg1, SipSession jarg1_, long jarg2, SipUri jarg2_);
+ public final static native boolean SipSession_setToUri__SWIG_0(long jarg1, SipSession jarg1_, String jarg2);
+ public final static native boolean SipSession_setToUri__SWIG_1(long jarg1, SipSession jarg1_, long jarg2, SipUri jarg2_);
+ public final static native boolean SipSession_setSilentHangup(long jarg1, SipSession jarg1_, boolean jarg2);
+ public final static native boolean SipSession_addSigCompCompartment(long jarg1, SipSession jarg1_, String jarg2);
+ public final static native boolean SipSession_removeSigCompCompartment(long jarg1, SipSession jarg1_);
+ public final static native long SipSession_getId(long jarg1, SipSession jarg1_);
+ public final static native long new_InviteSession(long jarg1, SipStack jarg1_);
+ public final static native void delete_InviteSession(long jarg1);
+ public final static native boolean InviteSession_accept__SWIG_0(long jarg1, InviteSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean InviteSession_accept__SWIG_1(long jarg1, InviteSession jarg1_);
+ public final static native boolean InviteSession_hangup__SWIG_0(long jarg1, InviteSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean InviteSession_hangup__SWIG_1(long jarg1, InviteSession jarg1_);
+ public final static native boolean InviteSession_reject__SWIG_0(long jarg1, InviteSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean InviteSession_reject__SWIG_1(long jarg1, InviteSession jarg1_);
+ public final static native boolean InviteSession_sendInfo__SWIG_0(long jarg1, InviteSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3, long jarg4, ActionConfig jarg4_);
+ public final static native boolean InviteSession_sendInfo__SWIG_1(long jarg1, InviteSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native long InviteSession_getMediaMgr(long jarg1, InviteSession jarg1_);
+ public final static native long new_CallSession(long jarg1, SipStack jarg1_);
+ public final static native void delete_CallSession(long jarg1);
+ public final static native boolean CallSession_callAudio__SWIG_0(long jarg1, CallSession jarg1_, String jarg2, long jarg3, ActionConfig jarg3_);
+ public final static native boolean CallSession_callAudio__SWIG_1(long jarg1, CallSession jarg1_, String jarg2);
+ public final static native boolean CallSession_callAudio__SWIG_2(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_, long jarg3, ActionConfig jarg3_);
+ public final static native boolean CallSession_callAudio__SWIG_3(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_);
+ public final static native boolean CallSession_callAudioVideo__SWIG_0(long jarg1, CallSession jarg1_, String jarg2, long jarg3, ActionConfig jarg3_);
+ public final static native boolean CallSession_callAudioVideo__SWIG_1(long jarg1, CallSession jarg1_, String jarg2);
+ public final static native boolean CallSession_callAudioVideo__SWIG_2(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_, long jarg3, ActionConfig jarg3_);
+ public final static native boolean CallSession_callAudioVideo__SWIG_3(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_);
+ public final static native boolean CallSession_callVideo__SWIG_0(long jarg1, CallSession jarg1_, String jarg2, long jarg3, ActionConfig jarg3_);
+ public final static native boolean CallSession_callVideo__SWIG_1(long jarg1, CallSession jarg1_, String jarg2);
+ public final static native boolean CallSession_callVideo__SWIG_2(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_, long jarg3, ActionConfig jarg3_);
+ public final static native boolean CallSession_callVideo__SWIG_3(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_);
+ public final static native boolean CallSession_call__SWIG_0(long jarg1, CallSession jarg1_, String jarg2, int jarg3, long jarg4, ActionConfig jarg4_);
+ public final static native boolean CallSession_call__SWIG_1(long jarg1, CallSession jarg1_, String jarg2, int jarg3);
+ public final static native boolean CallSession_call__SWIG_2(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_, int jarg3, long jarg4, ActionConfig jarg4_);
+ public final static native boolean CallSession_call__SWIG_3(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_, int jarg3);
+ public final static native boolean CallSession_setSessionTimer(long jarg1, CallSession jarg1_, long jarg2, String jarg3);
+ public final static native boolean CallSession_set100rel(long jarg1, CallSession jarg1_, boolean jarg2);
+ public final static native boolean CallSession_setRtcp(long jarg1, CallSession jarg1_, boolean jarg2);
+ public final static native boolean CallSession_setRtcpMux(long jarg1, CallSession jarg1_, boolean jarg2);
+ public final static native boolean CallSession_setSRtpMode(long jarg1, CallSession jarg1_, int jarg2);
+ public final static native boolean CallSession_setAvpfMode(long jarg1, CallSession jarg1_, int jarg2);
+ public final static native boolean CallSession_setICE(long jarg1, CallSession jarg1_, boolean jarg2);
+ public final static native boolean CallSession_setICEStun(long jarg1, CallSession jarg1_, boolean jarg2);
+ public final static native boolean CallSession_setICETurn(long jarg1, CallSession jarg1_, boolean jarg2);
+ public final static native boolean CallSession_setSTUNServer(long jarg1, CallSession jarg1_, String jarg2, int jarg3);
+ public final static native boolean CallSession_setSTUNCred(long jarg1, CallSession jarg1_, String jarg2, String jarg3);
+ public final static native boolean CallSession_setVideoFps(long jarg1, CallSession jarg1_, int jarg2);
+ public final static native boolean CallSession_setVideoBandwidthUploadMax(long jarg1, CallSession jarg1_, int jarg2);
+ public final static native boolean CallSession_setVideoBandwidthDownloadMax(long jarg1, CallSession jarg1_, int jarg2);
+ public final static native boolean CallSession_setVideoPrefSize(long jarg1, CallSession jarg1_, int jarg2);
+ public final static native boolean CallSession_setQoS(long jarg1, CallSession jarg1_, int jarg2, int jarg3);
+ public final static native boolean CallSession_hold__SWIG_0(long jarg1, CallSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean CallSession_hold__SWIG_1(long jarg1, CallSession jarg1_);
+ public final static native boolean CallSession_resume__SWIG_0(long jarg1, CallSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean CallSession_resume__SWIG_1(long jarg1, CallSession jarg1_);
+ public final static native boolean CallSession_transfer__SWIG_0(long jarg1, CallSession jarg1_, String jarg2, long jarg3, ActionConfig jarg3_);
+ public final static native boolean CallSession_transfer__SWIG_1(long jarg1, CallSession jarg1_, String jarg2);
+ public final static native boolean CallSession_acceptTransfer__SWIG_0(long jarg1, CallSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean CallSession_acceptTransfer__SWIG_1(long jarg1, CallSession jarg1_);
+ public final static native boolean CallSession_rejectTransfer__SWIG_0(long jarg1, CallSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean CallSession_rejectTransfer__SWIG_1(long jarg1, CallSession jarg1_);
+ public final static native boolean CallSession_sendDTMF(long jarg1, CallSession jarg1_, int jarg2);
+ public final static native long CallSession_getSessionTransferId(long jarg1, CallSession jarg1_);
+ public final static native boolean CallSession_sendT140Data__SWIG_0(long jarg1, CallSession jarg1_, int jarg2, java.nio.ByteBuffer jarg3, long jarg4);
+ public final static native boolean CallSession_sendT140Data__SWIG_1(long jarg1, CallSession jarg1_, int jarg2, java.nio.ByteBuffer jarg3);
+ public final static native boolean CallSession_sendT140Data__SWIG_2(long jarg1, CallSession jarg1_, int jarg2);
+ public final static native boolean CallSession_setT140Callback(long jarg1, CallSession jarg1_, long jarg2, T140Callback jarg2_);
+ public final static native long new_MsrpSession(long jarg1, SipStack jarg1_, long jarg2, MsrpCallback jarg2_);
+ public final static native void delete_MsrpSession(long jarg1);
+ public final static native boolean MsrpSession_setCallback(long jarg1, MsrpSession jarg1_, long jarg2, MsrpCallback jarg2_);
+ public final static native boolean MsrpSession_callMsrp__SWIG_0(long jarg1, MsrpSession jarg1_, String jarg2, long jarg3, ActionConfig jarg3_);
+ public final static native boolean MsrpSession_callMsrp__SWIG_1(long jarg1, MsrpSession jarg1_, String jarg2);
+ public final static native boolean MsrpSession_callMsrp__SWIG_2(long jarg1, MsrpSession jarg1_, long jarg2, SipUri jarg2_, long jarg3, ActionConfig jarg3_);
+ public final static native boolean MsrpSession_callMsrp__SWIG_3(long jarg1, MsrpSession jarg1_, long jarg2, SipUri jarg2_);
+ public final static native boolean MsrpSession_sendMessage__SWIG_0(long jarg1, MsrpSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3, long jarg4, ActionConfig jarg4_);
+ public final static native boolean MsrpSession_sendMessage__SWIG_1(long jarg1, MsrpSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native boolean MsrpSession_sendFile__SWIG_0(long jarg1, MsrpSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean MsrpSession_sendFile__SWIG_1(long jarg1, MsrpSession jarg1_);
+ public final static native long new_MessagingSession(long jarg1, SipStack jarg1_);
+ public final static native void delete_MessagingSession(long jarg1);
+ public final static native boolean MessagingSession_send__SWIG_0(long jarg1, MessagingSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3, long jarg4, ActionConfig jarg4_);
+ public final static native boolean MessagingSession_send__SWIG_1(long jarg1, MessagingSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native boolean MessagingSession_accept__SWIG_0(long jarg1, MessagingSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean MessagingSession_accept__SWIG_1(long jarg1, MessagingSession jarg1_);
+ public final static native boolean MessagingSession_reject__SWIG_0(long jarg1, MessagingSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean MessagingSession_reject__SWIG_1(long jarg1, MessagingSession jarg1_);
+ public final static native long new_InfoSession(long jarg1, SipStack jarg1_);
+ public final static native void delete_InfoSession(long jarg1);
+ public final static native boolean InfoSession_send__SWIG_0(long jarg1, InfoSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3, long jarg4, ActionConfig jarg4_);
+ public final static native boolean InfoSession_send__SWIG_1(long jarg1, InfoSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native boolean InfoSession_accept__SWIG_0(long jarg1, InfoSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean InfoSession_accept__SWIG_1(long jarg1, InfoSession jarg1_);
+ public final static native boolean InfoSession_reject__SWIG_0(long jarg1, InfoSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean InfoSession_reject__SWIG_1(long jarg1, InfoSession jarg1_);
+ public final static native long new_OptionsSession(long jarg1, SipStack jarg1_);
+ public final static native void delete_OptionsSession(long jarg1);
+ public final static native boolean OptionsSession_send__SWIG_0(long jarg1, OptionsSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean OptionsSession_send__SWIG_1(long jarg1, OptionsSession jarg1_);
+ public final static native boolean OptionsSession_accept__SWIG_0(long jarg1, OptionsSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean OptionsSession_accept__SWIG_1(long jarg1, OptionsSession jarg1_);
+ public final static native boolean OptionsSession_reject__SWIG_0(long jarg1, OptionsSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean OptionsSession_reject__SWIG_1(long jarg1, OptionsSession jarg1_);
+ public final static native long new_PublicationSession(long jarg1, SipStack jarg1_);
+ public final static native void delete_PublicationSession(long jarg1);
+ public final static native boolean PublicationSession_publish__SWIG_0(long jarg1, PublicationSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3, long jarg4, ActionConfig jarg4_);
+ public final static native boolean PublicationSession_publish__SWIG_1(long jarg1, PublicationSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native boolean PublicationSession_unPublish__SWIG_0(long jarg1, PublicationSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean PublicationSession_unPublish__SWIG_1(long jarg1, PublicationSession jarg1_);
+ public final static native long new_RegistrationSession(long jarg1, SipStack jarg1_);
+ public final static native void delete_RegistrationSession(long jarg1);
+ public final static native boolean RegistrationSession_register___SWIG_0(long jarg1, RegistrationSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean RegistrationSession_register___SWIG_1(long jarg1, RegistrationSession jarg1_);
+ public final static native boolean RegistrationSession_unRegister__SWIG_0(long jarg1, RegistrationSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean RegistrationSession_unRegister__SWIG_1(long jarg1, RegistrationSession jarg1_);
+ public final static native boolean RegistrationSession_accept__SWIG_0(long jarg1, RegistrationSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean RegistrationSession_accept__SWIG_1(long jarg1, RegistrationSession jarg1_);
+ public final static native boolean RegistrationSession_reject__SWIG_0(long jarg1, RegistrationSession jarg1_, long jarg2, ActionConfig jarg2_);
+ public final static native boolean RegistrationSession_reject__SWIG_1(long jarg1, RegistrationSession jarg1_);
+ public final static native long new_SubscriptionSession(long jarg1, SipStack jarg1_);
+ public final static native void delete_SubscriptionSession(long jarg1);
+ public final static native boolean SubscriptionSession_subscribe(long jarg1, SubscriptionSession jarg1_);
+ public final static native boolean SubscriptionSession_unSubscribe(long jarg1, SubscriptionSession jarg1_);
+ public final static native void delete_ProxyPluginMgr(long jarg1);
+ public final static native long ProxyPluginMgr_createInstance(long jarg1, ProxyPluginMgrCallback jarg1_);
+ public final static native long ProxyPluginMgr_getInstance();
+ public final static native long ProxyPluginMgr_findPlugin(long jarg1, ProxyPluginMgr jarg1_, java.math.BigInteger jarg2);
+ public final static native long ProxyPluginMgr_findAudioConsumer(long jarg1, ProxyPluginMgr jarg1_, java.math.BigInteger jarg2);
+ public final static native long ProxyPluginMgr_findVideoConsumer(long jarg1, ProxyPluginMgr jarg1_, java.math.BigInteger jarg2);
+ public final static native long ProxyPluginMgr_findAudioProducer(long jarg1, ProxyPluginMgr jarg1_, java.math.BigInteger jarg2);
+ public final static native long ProxyPluginMgr_findVideoProducer(long jarg1, ProxyPluginMgr jarg1_, java.math.BigInteger jarg2);
+ public final static native long new_ProxyPluginMgrCallback();
+ public final static native void delete_ProxyPluginMgrCallback(long jarg1);
+ public final static native int ProxyPluginMgrCallback_OnPluginCreated(long jarg1, ProxyPluginMgrCallback jarg1_, java.math.BigInteger jarg2, int jarg3);
+ public final static native int ProxyPluginMgrCallback_OnPluginCreatedSwigExplicitProxyPluginMgrCallback(long jarg1, ProxyPluginMgrCallback jarg1_, java.math.BigInteger jarg2, int jarg3);
+ public final static native int ProxyPluginMgrCallback_OnPluginDestroyed(long jarg1, ProxyPluginMgrCallback jarg1_, java.math.BigInteger jarg2, int jarg3);
+ public final static native int ProxyPluginMgrCallback_OnPluginDestroyedSwigExplicitProxyPluginMgrCallback(long jarg1, ProxyPluginMgrCallback jarg1_, java.math.BigInteger jarg2, int jarg3);
+ public final static native void ProxyPluginMgrCallback_director_connect(ProxyPluginMgrCallback obj, long cptr, boolean mem_own, boolean weak_global);
+ public final static native void ProxyPluginMgrCallback_change_ownership(ProxyPluginMgrCallback obj, long cptr, boolean take_or_release);
+ public final static native void delete_ProxyPlugin(long jarg1);
+ public final static native int ProxyPlugin_getType(long jarg1, ProxyPlugin jarg1_);
+ public final static native java.math.BigInteger ProxyPlugin_getId(long jarg1, ProxyPlugin jarg1_);
+ public final static native long new_ProxyAudioConsumerCallback();
+ public final static native void delete_ProxyAudioConsumerCallback(long jarg1);
+ public final static native int ProxyAudioConsumerCallback_prepare(long jarg1, ProxyAudioConsumerCallback jarg1_, int jarg2, int jarg3, int jarg4);
+ public final static native int ProxyAudioConsumerCallback_prepareSwigExplicitProxyAudioConsumerCallback(long jarg1, ProxyAudioConsumerCallback jarg1_, int jarg2, int jarg3, int jarg4);
+ public final static native int ProxyAudioConsumerCallback_start(long jarg1, ProxyAudioConsumerCallback jarg1_);
+ public final static native int ProxyAudioConsumerCallback_startSwigExplicitProxyAudioConsumerCallback(long jarg1, ProxyAudioConsumerCallback jarg1_);
+ public final static native int ProxyAudioConsumerCallback_pause(long jarg1, ProxyAudioConsumerCallback jarg1_);
+ public final static native int ProxyAudioConsumerCallback_pauseSwigExplicitProxyAudioConsumerCallback(long jarg1, ProxyAudioConsumerCallback jarg1_);
+ public final static native int ProxyAudioConsumerCallback_stop(long jarg1, ProxyAudioConsumerCallback jarg1_);
+ public final static native int ProxyAudioConsumerCallback_stopSwigExplicitProxyAudioConsumerCallback(long jarg1, ProxyAudioConsumerCallback jarg1_);
+ public final static native void ProxyAudioConsumerCallback_director_connect(ProxyAudioConsumerCallback obj, long cptr, boolean mem_own, boolean weak_global);
+ public final static native void ProxyAudioConsumerCallback_change_ownership(ProxyAudioConsumerCallback obj, long cptr, boolean take_or_release);
+ public final static native void delete_ProxyAudioConsumer(long jarg1);
+ public final static native boolean ProxyAudioConsumer_setActualSndCardPlaybackParams(long jarg1, ProxyAudioConsumer jarg1_, int jarg2, int jarg3, int jarg4);
+ public final static native boolean ProxyAudioConsumer_queryForResampler(long jarg1, ProxyAudioConsumer jarg1_, int jarg2, int jarg3, int jarg4, int jarg5, int jarg6);
+ public final static native boolean ProxyAudioConsumer_setPullBuffer(long jarg1, ProxyAudioConsumer jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native long ProxyAudioConsumer_pull__SWIG_0(long jarg1, ProxyAudioConsumer jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native long ProxyAudioConsumer_pull__SWIG_1(long jarg1, ProxyAudioConsumer jarg1_, java.nio.ByteBuffer jarg2);
+ public final static native long ProxyAudioConsumer_pull__SWIG_2(long jarg1, ProxyAudioConsumer jarg1_);
+ public final static native boolean ProxyAudioConsumer_setGain(long jarg1, ProxyAudioConsumer jarg1_, long jarg2);
+ public final static native long ProxyAudioConsumer_getGain(long jarg1, ProxyAudioConsumer jarg1_);
+ public final static native boolean ProxyAudioConsumer_reset(long jarg1, ProxyAudioConsumer jarg1_);
+ public final static native void ProxyAudioConsumer_setCallback(long jarg1, ProxyAudioConsumer jarg1_, long jarg2, ProxyAudioConsumerCallback jarg2_);
+ public final static native java.math.BigInteger ProxyAudioConsumer_getMediaSessionId(long jarg1, ProxyAudioConsumer jarg1_);
+ public final static native boolean ProxyAudioConsumer_registerPlugin();
+ public final static native long new_ProxyVideoConsumerCallback();
+ public final static native void delete_ProxyVideoConsumerCallback(long jarg1);
+ public final static native int ProxyVideoConsumerCallback_prepare(long jarg1, ProxyVideoConsumerCallback jarg1_, int jarg2, int jarg3, int jarg4);
+ public final static native int ProxyVideoConsumerCallback_prepareSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_, int jarg2, int jarg3, int jarg4);
+ public final static native int ProxyVideoConsumerCallback_consume(long jarg1, ProxyVideoConsumerCallback jarg1_, long jarg2, ProxyVideoFrame jarg2_);
+ public final static native int ProxyVideoConsumerCallback_consumeSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_, long jarg2, ProxyVideoFrame jarg2_);
+ public final static native int ProxyVideoConsumerCallback_bufferCopied(long jarg1, ProxyVideoConsumerCallback jarg1_, long jarg2, long jarg3);
+ public final static native int ProxyVideoConsumerCallback_bufferCopiedSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_, long jarg2, long jarg3);
+ public final static native int ProxyVideoConsumerCallback_start(long jarg1, ProxyVideoConsumerCallback jarg1_);
+ public final static native int ProxyVideoConsumerCallback_startSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_);
+ public final static native int ProxyVideoConsumerCallback_pause(long jarg1, ProxyVideoConsumerCallback jarg1_);
+ public final static native int ProxyVideoConsumerCallback_pauseSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_);
+ public final static native int ProxyVideoConsumerCallback_stop(long jarg1, ProxyVideoConsumerCallback jarg1_);
+ public final static native int ProxyVideoConsumerCallback_stopSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_);
+ public final static native void ProxyVideoConsumerCallback_director_connect(ProxyVideoConsumerCallback obj, long cptr, boolean mem_own, boolean weak_global);
+ public final static native void ProxyVideoConsumerCallback_change_ownership(ProxyVideoConsumerCallback obj, long cptr, boolean take_or_release);
+ public final static native void delete_ProxyVideoConsumer(long jarg1);
+ public final static native boolean ProxyVideoConsumer_setDisplaySize(long jarg1, ProxyVideoConsumer jarg1_, long jarg2, long jarg3);
+ public final static native long ProxyVideoConsumer_getDisplayWidth(long jarg1, ProxyVideoConsumer jarg1_);
+ public final static native long ProxyVideoConsumer_getDisplayHeight(long jarg1, ProxyVideoConsumer jarg1_);
+ public final static native long ProxyVideoConsumer_getDecodedWidth(long jarg1, ProxyVideoConsumer jarg1_);
+ public final static native long ProxyVideoConsumer_getDecodedHeight(long jarg1, ProxyVideoConsumer jarg1_);
+ public final static native void ProxyVideoConsumer_setCallback(long jarg1, ProxyVideoConsumer jarg1_, long jarg2, ProxyVideoConsumerCallback jarg2_);
+ public final static native boolean ProxyVideoConsumer_setAutoResizeDisplay(long jarg1, ProxyVideoConsumer jarg1_, boolean jarg2);
+ public final static native boolean ProxyVideoConsumer_getAutoResizeDisplay(long jarg1, ProxyVideoConsumer jarg1_);
+ public final static native boolean ProxyVideoConsumer_setConsumeBuffer(long jarg1, ProxyVideoConsumer jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native long ProxyVideoConsumer_pull(long jarg1, ProxyVideoConsumer jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native boolean ProxyVideoConsumer_reset(long jarg1, ProxyVideoConsumer jarg1_);
+ public final static native java.math.BigInteger ProxyVideoConsumer_getMediaSessionId(long jarg1, ProxyVideoConsumer jarg1_);
+ public final static native boolean ProxyVideoConsumer_registerPlugin();
+ public final static native void ProxyVideoConsumer_setDefaultChroma(int jarg1);
+ public final static native void ProxyVideoConsumer_setDefaultAutoResizeDisplay(boolean jarg1);
+ public final static native void delete_ProxyVideoFrame(long jarg1);
+ public final static native long ProxyVideoFrame_getSize(long jarg1, ProxyVideoFrame jarg1_);
+ public final static native long ProxyVideoFrame_getContent(long jarg1, ProxyVideoFrame jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native long ProxyVideoFrame_getFrameWidth(long jarg1, ProxyVideoFrame jarg1_);
+ public final static native long ProxyVideoFrame_getFrameHeight(long jarg1, ProxyVideoFrame jarg1_);
+ public final static native long new_ProxyAudioProducerCallback();
+ public final static native void delete_ProxyAudioProducerCallback(long jarg1);
+ public final static native int ProxyAudioProducerCallback_prepare(long jarg1, ProxyAudioProducerCallback jarg1_, int jarg2, int jarg3, int jarg4);
+ public final static native int ProxyAudioProducerCallback_prepareSwigExplicitProxyAudioProducerCallback(long jarg1, ProxyAudioProducerCallback jarg1_, int jarg2, int jarg3, int jarg4);
+ public final static native int ProxyAudioProducerCallback_start(long jarg1, ProxyAudioProducerCallback jarg1_);
+ public final static native int ProxyAudioProducerCallback_startSwigExplicitProxyAudioProducerCallback(long jarg1, ProxyAudioProducerCallback jarg1_);
+ public final static native int ProxyAudioProducerCallback_pause(long jarg1, ProxyAudioProducerCallback jarg1_);
+ public final static native int ProxyAudioProducerCallback_pauseSwigExplicitProxyAudioProducerCallback(long jarg1, ProxyAudioProducerCallback jarg1_);
+ public final static native int ProxyAudioProducerCallback_stop(long jarg1, ProxyAudioProducerCallback jarg1_);
+ public final static native int ProxyAudioProducerCallback_stopSwigExplicitProxyAudioProducerCallback(long jarg1, ProxyAudioProducerCallback jarg1_);
+ public final static native int ProxyAudioProducerCallback_fillPushBuffer(long jarg1, ProxyAudioProducerCallback jarg1_);
+ public final static native int ProxyAudioProducerCallback_fillPushBufferSwigExplicitProxyAudioProducerCallback(long jarg1, ProxyAudioProducerCallback jarg1_);
+ public final static native void ProxyAudioProducerCallback_director_connect(ProxyAudioProducerCallback obj, long cptr, boolean mem_own, boolean weak_global);
+ public final static native void ProxyAudioProducerCallback_change_ownership(ProxyAudioProducerCallback obj, long cptr, boolean take_or_release);
+ public final static native void delete_ProxyAudioProducer(long jarg1);
+ public final static native boolean ProxyAudioProducer_setActualSndCardRecordParams(long jarg1, ProxyAudioProducer jarg1_, int jarg2, int jarg3, int jarg4);
+ public final static native boolean ProxyAudioProducer_setPushBuffer__SWIG_0(long jarg1, ProxyAudioProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3, boolean jarg4);
+ public final static native boolean ProxyAudioProducer_setPushBuffer__SWIG_1(long jarg1, ProxyAudioProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native int ProxyAudioProducer_push__SWIG_0(long jarg1, ProxyAudioProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native int ProxyAudioProducer_push__SWIG_1(long jarg1, ProxyAudioProducer jarg1_, java.nio.ByteBuffer jarg2);
+ public final static native int ProxyAudioProducer_push__SWIG_2(long jarg1, ProxyAudioProducer jarg1_);
+ public final static native boolean ProxyAudioProducer_setGain(long jarg1, ProxyAudioProducer jarg1_, long jarg2);
+ public final static native long ProxyAudioProducer_getGain(long jarg1, ProxyAudioProducer jarg1_);
+ public final static native void ProxyAudioProducer_setCallback(long jarg1, ProxyAudioProducer jarg1_, long jarg2, ProxyAudioProducerCallback jarg2_);
+ public final static native java.math.BigInteger ProxyAudioProducer_getMediaSessionId(long jarg1, ProxyAudioProducer jarg1_);
+ public final static native boolean ProxyAudioProducer_registerPlugin();
+ public final static native long new_ProxyVideoProducerCallback();
+ public final static native void delete_ProxyVideoProducerCallback(long jarg1);
+ public final static native int ProxyVideoProducerCallback_prepare(long jarg1, ProxyVideoProducerCallback jarg1_, int jarg2, int jarg3, int jarg4);
+ public final static native int ProxyVideoProducerCallback_prepareSwigExplicitProxyVideoProducerCallback(long jarg1, ProxyVideoProducerCallback jarg1_, int jarg2, int jarg3, int jarg4);
+ public final static native int ProxyVideoProducerCallback_start(long jarg1, ProxyVideoProducerCallback jarg1_);
+ public final static native int ProxyVideoProducerCallback_startSwigExplicitProxyVideoProducerCallback(long jarg1, ProxyVideoProducerCallback jarg1_);
+ public final static native int ProxyVideoProducerCallback_pause(long jarg1, ProxyVideoProducerCallback jarg1_);
+ public final static native int ProxyVideoProducerCallback_pauseSwigExplicitProxyVideoProducerCallback(long jarg1, ProxyVideoProducerCallback jarg1_);
+ public final static native int ProxyVideoProducerCallback_stop(long jarg1, ProxyVideoProducerCallback jarg1_);
+ public final static native int ProxyVideoProducerCallback_stopSwigExplicitProxyVideoProducerCallback(long jarg1, ProxyVideoProducerCallback jarg1_);
+ public final static native void ProxyVideoProducerCallback_director_connect(ProxyVideoProducerCallback obj, long cptr, boolean mem_own, boolean weak_global);
+ public final static native void ProxyVideoProducerCallback_change_ownership(ProxyVideoProducerCallback obj, long cptr, boolean take_or_release);
+ public final static native void delete_ProxyVideoProducer(long jarg1);
+ public final static native int ProxyVideoProducer_getRotation(long jarg1, ProxyVideoProducer jarg1_);
+ public final static native boolean ProxyVideoProducer_setRotation(long jarg1, ProxyVideoProducer jarg1_, int jarg2);
+ public final static native boolean ProxyVideoProducer_getMirror(long jarg1, ProxyVideoProducer jarg1_);
+ public final static native boolean ProxyVideoProducer_setMirror(long jarg1, ProxyVideoProducer jarg1_, boolean jarg2);
+ public final static native boolean ProxyVideoProducer_setActualCameraOutputSize(long jarg1, ProxyVideoProducer jarg1_, long jarg2, long jarg3);
+ public final static native int ProxyVideoProducer_push(long jarg1, ProxyVideoProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native void ProxyVideoProducer_setCallback(long jarg1, ProxyVideoProducer jarg1_, long jarg2, ProxyVideoProducerCallback jarg2_);
+ public final static native java.math.BigInteger ProxyVideoProducer_getMediaSessionId(long jarg1, ProxyVideoProducer jarg1_);
+ public final static native boolean ProxyVideoProducer_registerPlugin();
+ public final static native void ProxyVideoProducer_setDefaultChroma(int jarg1);
+ public final static native long new_SipCallback();
+ public final static native void delete_SipCallback(long jarg1);
+ public final static native int SipCallback_OnDialogEvent(long jarg1, SipCallback jarg1_, long jarg2, DialogEvent jarg2_);
+ public final static native int SipCallback_OnDialogEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, DialogEvent jarg2_);
+ public final static native int SipCallback_OnStackEvent(long jarg1, SipCallback jarg1_, long jarg2, StackEvent jarg2_);
+ public final static native int SipCallback_OnStackEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, StackEvent jarg2_);
+ public final static native int SipCallback_OnInviteEvent(long jarg1, SipCallback jarg1_, long jarg2, InviteEvent jarg2_);
+ public final static native int SipCallback_OnInviteEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, InviteEvent jarg2_);
+ public final static native int SipCallback_OnMessagingEvent(long jarg1, SipCallback jarg1_, long jarg2, MessagingEvent jarg2_);
+ public final static native int SipCallback_OnMessagingEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, MessagingEvent jarg2_);
+ public final static native int SipCallback_OnInfoEvent(long jarg1, SipCallback jarg1_, long jarg2, InfoEvent jarg2_);
+ public final static native int SipCallback_OnInfoEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, InfoEvent jarg2_);
+ public final static native int SipCallback_OnOptionsEvent(long jarg1, SipCallback jarg1_, long jarg2, OptionsEvent jarg2_);
+ public final static native int SipCallback_OnOptionsEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, OptionsEvent jarg2_);
+ public final static native int SipCallback_OnPublicationEvent(long jarg1, SipCallback jarg1_, long jarg2, PublicationEvent jarg2_);
+ public final static native int SipCallback_OnPublicationEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, PublicationEvent jarg2_);
+ public final static native int SipCallback_OnRegistrationEvent(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_);
+ public final static native int SipCallback_OnRegistrationEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_);
+ public final static native int SipCallback_OnSubscriptionEvent(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_);
+ public final static native int SipCallback_OnSubscriptionEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_);
+ public final static native void SipCallback_director_connect(SipCallback obj, long cptr, boolean mem_own, boolean weak_global);
+ public final static native void SipCallback_change_ownership(SipCallback obj, long cptr, boolean take_or_release);
+ public final static native long new_SafeObject();
+ public final static native void delete_SafeObject(long jarg1);
+ public final static native int SafeObject_Lock(long jarg1, SafeObject jarg1_);
+ public final static native int SafeObject_UnLock(long jarg1, SafeObject jarg1_);
+ public final static native long new_SipStack(long jarg1, SipCallback jarg1_, String jarg2, String jarg3, String jarg4);
+ public final static native void delete_SipStack(long jarg1);
+ public final static native boolean SipStack_start(long jarg1, SipStack jarg1_);
+ public final static native boolean SipStack_setDebugCallback(long jarg1, SipStack jarg1_, long jarg2, DDebugCallback jarg2_);
+ public final static native boolean SipStack_setDisplayName(long jarg1, SipStack jarg1_, String jarg2);
+ public final static native boolean SipStack_setRealm(long jarg1, SipStack jarg1_, String jarg2);
+ public final static native boolean SipStack_setIMPI(long jarg1, SipStack jarg1_, String jarg2);
+ public final static native boolean SipStack_setIMPU(long jarg1, SipStack jarg1_, String jarg2);
+ public final static native boolean SipStack_setPassword(long jarg1, SipStack jarg1_, String jarg2);
+ public final static native boolean SipStack_setAMF(long jarg1, SipStack jarg1_, String jarg2);
+ public final static native boolean SipStack_setOperatorId(long jarg1, SipStack jarg1_, String jarg2);
+ public final static native boolean SipStack_setProxyCSCF(long jarg1, SipStack jarg1_, String jarg2, int jarg3, String jarg4, String jarg5);
+ public final static native boolean SipStack_setLocalIP__SWIG_0(long jarg1, SipStack jarg1_, String jarg2, String jarg3);
+ public final static native boolean SipStack_setLocalIP__SWIG_1(long jarg1, SipStack jarg1_, String jarg2);
+ public final static native boolean SipStack_setLocalPort__SWIG_0(long jarg1, SipStack jarg1_, int jarg2, String jarg3);
+ public final static native boolean SipStack_setLocalPort__SWIG_1(long jarg1, SipStack jarg1_, int jarg2);
+ public final static native boolean SipStack_setEarlyIMS(long jarg1, SipStack jarg1_, boolean jarg2);
+ public final static native boolean SipStack_addHeader(long jarg1, SipStack jarg1_, String jarg2, String jarg3);
+ public final static native boolean SipStack_removeHeader(long jarg1, SipStack jarg1_, String jarg2);
+ public final static native boolean SipStack_addDnsServer(long jarg1, SipStack jarg1_, String jarg2);
+ public final static native boolean SipStack_setDnsDiscovery(long jarg1, SipStack jarg1_, boolean jarg2);
+ public final static native boolean SipStack_setAoR(long jarg1, SipStack jarg1_, String jarg2, int jarg3);
+ public final static native boolean SipStack_setSigCompParams(long jarg1, SipStack jarg1_, long jarg2, long jarg3, long jarg4, boolean jarg5);
+ public final static native boolean SipStack_addSigCompCompartment(long jarg1, SipStack jarg1_, String jarg2);
+ public final static native boolean SipStack_removeSigCompCompartment(long jarg1, SipStack jarg1_, String jarg2);
+ public final static native boolean SipStack_setSTUNEnabledForICE(long jarg1, SipStack jarg1_, boolean jarg2);
+ public final static native boolean SipStack_setSTUNServer(long jarg1, SipStack jarg1_, String jarg2, int jarg3);
+ public final static native boolean SipStack_setSTUNCred(long jarg1, SipStack jarg1_, String jarg2, String jarg3);
+ public final static native boolean SipStack_setSTUNEnabled(long jarg1, SipStack jarg1_, boolean jarg2);
+ public final static native boolean SipStack_setTLSSecAgree(long jarg1, SipStack jarg1_, boolean jarg2);
+ public final static native boolean SipStack_setSSLCertificates__SWIG_0(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4, boolean jarg5);
+ public final static native boolean SipStack_setSSLCertificates__SWIG_1(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4);
+ public final static native boolean SipStack_setSSLCretificates__SWIG_0(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4, boolean jarg5);
+ public final static native boolean SipStack_setSSLCretificates__SWIG_1(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4);
+ public final static native boolean SipStack_setIPSecSecAgree(long jarg1, SipStack jarg1_, boolean jarg2);
+ public final static native boolean SipStack_setIPSecParameters(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4, String jarg5);
+ public final static native String SipStack_dnsENUM(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4);
+ public final static native String SipStack_dnsNaptrSrv(long jarg1, SipStack jarg1_, String jarg2, String jarg3, int[] jarg4);
+ public final static native String SipStack_dnsSrv(long jarg1, SipStack jarg1_, String jarg2, int[] jarg3);
+ public final static native boolean SipStack_setMaxFDs(long jarg1, SipStack jarg1_, long jarg2);
+ public final static native String SipStack_getLocalIPnPort(long jarg1, SipStack jarg1_, String jarg2, int[] jarg3);
+ public final static native String SipStack_getPreferredIdentity(long jarg1, SipStack jarg1_);
+ public final static native boolean SipStack_isValid(long jarg1, SipStack jarg1_);
+ public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_);
+ public final static native boolean SipStack_initialize();
+ public final static native boolean SipStack_deInitialize();
+ public final static native void SipStack_setCodecs(int jarg1);
+ public final static native void SipStack_setCodecs_2(long jarg1);
+ public final static native boolean SipStack_setCodecPriority(int jarg1, int jarg2);
+ public final static native boolean SipStack_setCodecPriority_2(int jarg1, int jarg2);
+ public final static native boolean SipStack_isCodecSupported(int jarg1);
+ public final static native boolean SipStack_isIPSecSupported();
+ public final static native long new_XcapSelector(long jarg1, XcapStack jarg1_);
+ public final static native void delete_XcapSelector(long jarg1);
+ public final static native long XcapSelector_setAUID(long jarg1, XcapSelector jarg1_, String jarg2);
+ public final static native long XcapSelector_setName(long jarg1, XcapSelector jarg1_, String jarg2);
+ public final static native long XcapSelector_setAttribute(long jarg1, XcapSelector jarg1_, String jarg2, String jarg3, String jarg4);
+ public final static native long XcapSelector_setPos(long jarg1, XcapSelector jarg1_, String jarg2, long jarg3);
+ public final static native long XcapSelector_setPosAttribute(long jarg1, XcapSelector jarg1_, String jarg2, long jarg3, String jarg4, String jarg5);
+ public final static native long XcapSelector_setNamespace(long jarg1, XcapSelector jarg1_, String jarg2, String jarg3);
+ public final static native String XcapSelector_getString(long jarg1, XcapSelector jarg1_);
+ public final static native void XcapSelector_reset(long jarg1, XcapSelector jarg1_);
+ public final static native long new_XcapMessage();
+ public final static native void delete_XcapMessage(long jarg1);
+ public final static native short XcapMessage_getCode(long jarg1, XcapMessage jarg1_);
+ public final static native String XcapMessage_getPhrase(long jarg1, XcapMessage jarg1_);
+ public final static native String XcapMessage_getXcapHeaderValue__SWIG_0(long jarg1, XcapMessage jarg1_, String jarg2, long jarg3);
+ public final static native String XcapMessage_getXcapHeaderValue__SWIG_1(long jarg1, XcapMessage jarg1_, String jarg2);
+ public final static native String XcapMessage_getXcapHeaderParamValue__SWIG_0(long jarg1, XcapMessage jarg1_, String jarg2, String jarg3, long jarg4);
+ public final static native String XcapMessage_getXcapHeaderParamValue__SWIG_1(long jarg1, XcapMessage jarg1_, String jarg2, String jarg3);
+ public final static native long XcapMessage_getXcapContentLength(long jarg1, XcapMessage jarg1_);
+ public final static native long XcapMessage_getXcapContent(long jarg1, XcapMessage jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native void delete_XcapEvent(long jarg1);
+ public final static native int XcapEvent_getType(long jarg1, XcapEvent jarg1_);
+ public final static native long XcapEvent_getXcapMessage(long jarg1, XcapEvent jarg1_);
+ public final static native long new_XcapCallback();
+ public final static native void delete_XcapCallback(long jarg1);
+ public final static native int XcapCallback_onEvent(long jarg1, XcapCallback jarg1_, long jarg2, XcapEvent jarg2_);
+ public final static native int XcapCallback_onEventSwigExplicitXcapCallback(long jarg1, XcapCallback jarg1_, long jarg2, XcapEvent jarg2_);
+ public final static native void XcapCallback_director_connect(XcapCallback obj, long cptr, boolean mem_own, boolean weak_global);
+ public final static native void XcapCallback_change_ownership(XcapCallback obj, long cptr, boolean take_or_release);
+ public final static native long new_XcapStack(long jarg1, XcapCallback jarg1_, String jarg2, String jarg3, String jarg4);
+ public final static native void delete_XcapStack(long jarg1);
+ public final static native boolean XcapStack_registerAUID(long jarg1, XcapStack jarg1_, String jarg2, String jarg3, String jarg4, String jarg5, boolean jarg6);
+ public final static native boolean XcapStack_start(long jarg1, XcapStack jarg1_);
+ public final static native boolean XcapStack_setCredentials(long jarg1, XcapStack jarg1_, String jarg2, String jarg3);
+ public final static native boolean XcapStack_setXcapRoot(long jarg1, XcapStack jarg1_, String jarg2);
+ public final static native boolean XcapStack_setLocalIP(long jarg1, XcapStack jarg1_, String jarg2);
+ public final static native boolean XcapStack_setLocalPort(long jarg1, XcapStack jarg1_, long jarg2);
+ public final static native boolean XcapStack_addHeader(long jarg1, XcapStack jarg1_, String jarg2, String jarg3);
+ public final static native boolean XcapStack_removeHeader(long jarg1, XcapStack jarg1_, String jarg2);
+ public final static native boolean XcapStack_setTimeout(long jarg1, XcapStack jarg1_, long jarg2);
+ public final static native boolean XcapStack_getDocument(long jarg1, XcapStack jarg1_, String jarg2);
+ public final static native boolean XcapStack_getElement(long jarg1, XcapStack jarg1_, String jarg2);
+ public final static native boolean XcapStack_getAttribute(long jarg1, XcapStack jarg1_, String jarg2);
+ public final static native boolean XcapStack_deleteDocument(long jarg1, XcapStack jarg1_, String jarg2);
+ public final static native boolean XcapStack_deleteElement(long jarg1, XcapStack jarg1_, String jarg2);
+ public final static native boolean XcapStack_deleteAttribute(long jarg1, XcapStack jarg1_, String jarg2);
+ public final static native boolean XcapStack_putDocument(long jarg1, XcapStack jarg1_, String jarg2, java.nio.ByteBuffer jarg3, long jarg4, String jarg5);
+ public final static native boolean XcapStack_putElement(long jarg1, XcapStack jarg1_, String jarg2, java.nio.ByteBuffer jarg3, long jarg4);
+ public final static native boolean XcapStack_putAttribute(long jarg1, XcapStack jarg1_, String jarg2, java.nio.ByteBuffer jarg3, long jarg4);
+ public final static native boolean XcapStack_stop(long jarg1, XcapStack jarg1_);
+ public final static native long new_RPMessage();
+ public final static native void delete_RPMessage(long jarg1);
+ public final static native int RPMessage_getType(long jarg1, RPMessage jarg1_);
+ public final static native long RPMessage_getPayloadLength(long jarg1, RPMessage jarg1_);
+ public final static native long RPMessage_getPayload(long jarg1, RPMessage jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native long new_SMSData();
+ public final static native void delete_SMSData(long jarg1);
+ public final static native int SMSData_getType(long jarg1, SMSData jarg1_);
+ public final static native int SMSData_getMR(long jarg1, SMSData jarg1_);
+ public final static native long SMSData_getPayloadLength(long jarg1, SMSData jarg1_);
+ public final static native long SMSData_getPayload(long jarg1, SMSData jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native String SMSData_getOA(long jarg1, SMSData jarg1_);
+ public final static native String SMSData_getDA(long jarg1, SMSData jarg1_);
+ public final static native long SMSEncoder_encodeSubmit(int jarg1, String jarg2, String jarg3, String jarg4);
+ public final static native long SMSEncoder_encodeDeliver(int jarg1, String jarg2, String jarg3, String jarg4);
+ public final static native long SMSEncoder_encodeACK(int jarg1, String jarg2, String jarg3, boolean jarg4);
+ public final static native long SMSEncoder_encodeError(int jarg1, String jarg2, String jarg3, boolean jarg4);
+ public final static native long SMSEncoder_decode(java.nio.ByteBuffer jarg1, long jarg2, boolean jarg3);
+ public final static native void delete_SMSEncoder(long jarg1);
+ public final static native long new_MsrpMessage();
+ public final static native void delete_MsrpMessage(long jarg1);
+ public final static native boolean MsrpMessage_isRequest(long jarg1, MsrpMessage jarg1_);
+ public final static native short MsrpMessage_getCode(long jarg1, MsrpMessage jarg1_);
+ public final static native String MsrpMessage_getPhrase(long jarg1, MsrpMessage jarg1_);
+ public final static native int MsrpMessage_getRequestType(long jarg1, MsrpMessage jarg1_);
+ public final static native void MsrpMessage_getByteRange(long jarg1, MsrpMessage jarg1_, long[] jarg2, long[] jarg3, long[] jarg4);
+ public final static native boolean MsrpMessage_isLastChunck(long jarg1, MsrpMessage jarg1_);
+ public final static native boolean MsrpMessage_isFirstChunck(long jarg1, MsrpMessage jarg1_);
+ public final static native boolean MsrpMessage_isSuccessReport(long jarg1, MsrpMessage jarg1_);
+ public final static native String MsrpMessage_getMsrpHeaderValue(long jarg1, MsrpMessage jarg1_, String jarg2);
+ public final static native String MsrpMessage_getMsrpHeaderParamValue(long jarg1, MsrpMessage jarg1_, String jarg2, String jarg3);
+ public final static native long MsrpMessage_getMsrpContentLength(long jarg1, MsrpMessage jarg1_);
+ public final static native long MsrpMessage_getMsrpContent(long jarg1, MsrpMessage jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
+ public final static native void delete_MsrpEvent(long jarg1);
+ public final static native int MsrpEvent_getType(long jarg1, MsrpEvent jarg1_);
+ public final static native long MsrpEvent_getSipSession(long jarg1, MsrpEvent jarg1_);
+ public final static native long MsrpEvent_getMessage(long jarg1, MsrpEvent jarg1_);
+ public final static native long new_MsrpCallback();
+ public final static native void delete_MsrpCallback(long jarg1);
+ public final static native int MsrpCallback_OnEvent(long jarg1, MsrpCallback jarg1_, long jarg2, MsrpEvent jarg2_);
+ public final static native int MsrpCallback_OnEventSwigExplicitMsrpCallback(long jarg1, MsrpCallback jarg1_, long jarg2, MsrpEvent jarg2_);
+ public final static native void MsrpCallback_director_connect(MsrpCallback obj, long cptr, boolean mem_own, boolean weak_global);
+ public final static native void MsrpCallback_change_ownership(MsrpCallback obj, long cptr, boolean take_or_release);
+ public final static native long MediaContentCPIM_SWIGUpcast(long jarg1);
+ public final static native long DialogEvent_SWIGUpcast(long jarg1);
+ public final static native long StackEvent_SWIGUpcast(long jarg1);
+ public final static native long InviteEvent_SWIGUpcast(long jarg1);
+ public final static native long MessagingEvent_SWIGUpcast(long jarg1);
+ public final static native long InfoEvent_SWIGUpcast(long jarg1);
+ public final static native long OptionsEvent_SWIGUpcast(long jarg1);
+ public final static native long PublicationEvent_SWIGUpcast(long jarg1);
+ public final static native long RegistrationEvent_SWIGUpcast(long jarg1);
+ public final static native long SubscriptionEvent_SWIGUpcast(long jarg1);
+ public final static native long InviteSession_SWIGUpcast(long jarg1);
+ public final static native long CallSession_SWIGUpcast(long jarg1);
+ public final static native long MsrpSession_SWIGUpcast(long jarg1);
+ public final static native long MessagingSession_SWIGUpcast(long jarg1);
+ public final static native long InfoSession_SWIGUpcast(long jarg1);
+ public final static native long OptionsSession_SWIGUpcast(long jarg1);
+ public final static native long PublicationSession_SWIGUpcast(long jarg1);
+ public final static native long RegistrationSession_SWIGUpcast(long jarg1);
+ public final static native long SubscriptionSession_SWIGUpcast(long jarg1);
+ public final static native long ProxyAudioConsumer_SWIGUpcast(long jarg1);
+ public final static native long ProxyVideoConsumer_SWIGUpcast(long jarg1);
+ public final static native long ProxyAudioProducer_SWIGUpcast(long jarg1);
+ public final static native long ProxyVideoProducer_SWIGUpcast(long jarg1);
+ public final static native long SipStack_SWIGUpcast(long jarg1);
+
+ public static int SwigDirector_DDebugCallback_OnDebugInfo(DDebugCallback self, String message) {
+ return self.OnDebugInfo(message);
+ }
+ public static int SwigDirector_DDebugCallback_OnDebugWarn(DDebugCallback self, String message) {
+ return self.OnDebugWarn(message);
+ }
+ public static int SwigDirector_DDebugCallback_OnDebugError(DDebugCallback self, String message) {
+ return self.OnDebugError(message);
+ }
+ public static int SwigDirector_DDebugCallback_OnDebugFatal(DDebugCallback self, String message) {
+ return self.OnDebugFatal(message);
+ }
+ public static int SwigDirector_T140Callback_ondata(T140Callback self, long pData) {
+ return self.ondata((pData == 0) ? null : new T140CallbackData(pData, false));
+ }
+ public static int SwigDirector_ProxyPluginMgrCallback_OnPluginCreated(ProxyPluginMgrCallback self, java.math.BigInteger id, int type) {
+ return self.OnPluginCreated(id, twrap_proxy_plugin_type_t.swigToEnum(type));
+ }
+ public static int SwigDirector_ProxyPluginMgrCallback_OnPluginDestroyed(ProxyPluginMgrCallback self, java.math.BigInteger id, int type) {
+ return self.OnPluginDestroyed(id, twrap_proxy_plugin_type_t.swigToEnum(type));
+ }
+ public static int SwigDirector_ProxyAudioConsumerCallback_prepare(ProxyAudioConsumerCallback self, int ptime, int rate, int channels) {
+ return self.prepare(ptime, rate, channels);
+ }
+ public static int SwigDirector_ProxyAudioConsumerCallback_start(ProxyAudioConsumerCallback self) {
+ return self.start();
+ }
+ public static int SwigDirector_ProxyAudioConsumerCallback_pause(ProxyAudioConsumerCallback self) {
+ return self.pause();
+ }
+ public static int SwigDirector_ProxyAudioConsumerCallback_stop(ProxyAudioConsumerCallback self) {
+ return self.stop();
+ }
+ public static int SwigDirector_ProxyVideoConsumerCallback_prepare(ProxyVideoConsumerCallback self, int nWidth, int nHeight, int nFps) {
+ return self.prepare(nWidth, nHeight, nFps);
+ }
+ public static int SwigDirector_ProxyVideoConsumerCallback_consume(ProxyVideoConsumerCallback self, long frame) {
+ return self.consume((frame == 0) ? null : new ProxyVideoFrame(frame, false));
+ }
+ public static int SwigDirector_ProxyVideoConsumerCallback_bufferCopied(ProxyVideoConsumerCallback self, long nCopiedSize, long nAvailableSize) {
+ return self.bufferCopied(nCopiedSize, nAvailableSize);
+ }
+ public static int SwigDirector_ProxyVideoConsumerCallback_start(ProxyVideoConsumerCallback self) {
+ return self.start();
+ }
+ public static int SwigDirector_ProxyVideoConsumerCallback_pause(ProxyVideoConsumerCallback self) {
+ return self.pause();
+ }
+ public static int SwigDirector_ProxyVideoConsumerCallback_stop(ProxyVideoConsumerCallback self) {
+ return self.stop();
+ }
+ public static int SwigDirector_ProxyAudioProducerCallback_prepare(ProxyAudioProducerCallback self, int ptime, int rate, int channels) {
+ return self.prepare(ptime, rate, channels);
+ }
+ public static int SwigDirector_ProxyAudioProducerCallback_start(ProxyAudioProducerCallback self) {
+ return self.start();
+ }
+ public static int SwigDirector_ProxyAudioProducerCallback_pause(ProxyAudioProducerCallback self) {
+ return self.pause();
+ }
+ public static int SwigDirector_ProxyAudioProducerCallback_stop(ProxyAudioProducerCallback self) {
+ return self.stop();
+ }
+ public static int SwigDirector_ProxyAudioProducerCallback_fillPushBuffer(ProxyAudioProducerCallback self) {
+ return self.fillPushBuffer();
+ }
+ public static int SwigDirector_ProxyVideoProducerCallback_prepare(ProxyVideoProducerCallback self, int width, int height, int fps) {
+ return self.prepare(width, height, fps);
+ }
+ public static int SwigDirector_ProxyVideoProducerCallback_start(ProxyVideoProducerCallback self) {
+ return self.start();
+ }
+ public static int SwigDirector_ProxyVideoProducerCallback_pause(ProxyVideoProducerCallback self) {
+ return self.pause();
+ }
+ public static int SwigDirector_ProxyVideoProducerCallback_stop(ProxyVideoProducerCallback self) {
+ return self.stop();
+ }
+ public static int SwigDirector_SipCallback_OnDialogEvent(SipCallback self, long e) {
+ return self.OnDialogEvent((e == 0) ? null : new DialogEvent(e, false));
+ }
+ public static int SwigDirector_SipCallback_OnStackEvent(SipCallback self, long e) {
+ return self.OnStackEvent((e == 0) ? null : new StackEvent(e, false));
+ }
+ public static int SwigDirector_SipCallback_OnInviteEvent(SipCallback self, long e) {
+ return self.OnInviteEvent((e == 0) ? null : new InviteEvent(e, false));
+ }
+ public static int SwigDirector_SipCallback_OnMessagingEvent(SipCallback self, long e) {
+ return self.OnMessagingEvent((e == 0) ? null : new MessagingEvent(e, false));
+ }
+ public static int SwigDirector_SipCallback_OnInfoEvent(SipCallback self, long e) {
+ return self.OnInfoEvent((e == 0) ? null : new InfoEvent(e, false));
+ }
+ public static int SwigDirector_SipCallback_OnOptionsEvent(SipCallback self, long e) {
+ return self.OnOptionsEvent((e == 0) ? null : new OptionsEvent(e, false));
+ }
+ public static int SwigDirector_SipCallback_OnPublicationEvent(SipCallback self, long e) {
+ return self.OnPublicationEvent((e == 0) ? null : new PublicationEvent(e, false));
+ }
+ public static int SwigDirector_SipCallback_OnRegistrationEvent(SipCallback self, long e) {
+ return self.OnRegistrationEvent((e == 0) ? null : new RegistrationEvent(e, false));
+ }
+ public static int SwigDirector_SipCallback_OnSubscriptionEvent(SipCallback self, long e) {
+ return self.OnSubscriptionEvent((e == 0) ? null : new SubscriptionEvent(e, false));
+ }
+ public static int SwigDirector_XcapCallback_onEvent(XcapCallback self, long e) {
+ return self.onEvent((e == 0) ? null : new XcapEvent(e, false));
+ }
+ public static int SwigDirector_MsrpCallback_OnEvent(MsrpCallback self, long e) {
+ return self.OnEvent((e == 0) ? null : new MsrpEvent(e, false));
+ }
+
+ private final static native void swig_module_init();
+ static {
+ swig_module_init();
+ }
+}
diff --git a/bindings/java/android/tinyWRAP_wrap.cxx b/bindings/java/android/tinyWRAP_wrap.cxx
new file mode 100644
index 0000000..e68ff27
--- /dev/null
+++ b/bindings/java/android/tinyWRAP_wrap.cxx
@@ -0,0 +1,13579 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * This file is not intended to be easily readable and contains a number of
+ * coding conventions designed to improve portability and efficiency. Do not make
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+#define SWIGJAVA
+#define SWIG_DIRECTORS
+
+
+#ifdef __cplusplus
+/* SwigValueWrapper is described in swig.swg */
+template<typename T> class SwigValueWrapper {
+ struct SwigMovePointer {
+ T *ptr;
+ SwigMovePointer(T *p) : ptr(p) { }
+ ~SwigMovePointer() { delete ptr; }
+ SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
+ } pointer;
+ SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
+ SwigValueWrapper(const SwigValueWrapper<T>& rhs);
+public:
+ SwigValueWrapper() : pointer(0) { }
+ SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
+ operator T&() const { return *pointer.ptr; }
+ T *operator&() { return pointer.ptr; }
+};
+
+template <typename T> T SwigValueInit() {
+ return T();
+}
+#endif
+
+/* -----------------------------------------------------------------------------
+ * This section contains generic SWIG labels for method/variable
+ * declarations/attributes, and other compiler dependent labels.
+ * ----------------------------------------------------------------------------- */
+
+/* template workaround for compilers that cannot correctly implement the C++ standard */
+#ifndef SWIGTEMPLATEDISAMBIGUATOR
+# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
+# define SWIGTEMPLATEDISAMBIGUATOR template
+# elif defined(__HP_aCC)
+/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
+/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
+# define SWIGTEMPLATEDISAMBIGUATOR template
+# else
+# define SWIGTEMPLATEDISAMBIGUATOR
+# endif
+#endif
+
+/* inline attribute */
+#ifndef SWIGINLINE
+# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
+# define SWIGINLINE inline
+# else
+# define SWIGINLINE
+# endif
+#endif
+
+/* attribute recognised by some compilers to avoid 'unused' warnings */
+#ifndef SWIGUNUSED
+# if defined(__GNUC__)
+# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
+# define SWIGUNUSED __attribute__ ((__unused__))
+# else
+# define SWIGUNUSED
+# endif
+# elif defined(__ICC)
+# define SWIGUNUSED __attribute__ ((__unused__))
+# else
+# define SWIGUNUSED
+# endif
+#endif
+
+#ifndef SWIG_MSC_UNSUPPRESS_4505
+# if defined(_MSC_VER)
+# pragma warning(disable : 4505) /* unreferenced local function has been removed */
+# endif
+#endif
+
+#ifndef SWIGUNUSEDPARM
+# ifdef __cplusplus
+# define SWIGUNUSEDPARM(p)
+# else
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# endif
+#endif
+
+/* internal SWIG method */
+#ifndef SWIGINTERN
+# define SWIGINTERN static SWIGUNUSED
+#endif
+
+/* internal inline SWIG method */
+#ifndef SWIGINTERNINLINE
+# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
+#endif
+
+/* exporting methods */
+#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
+# ifndef GCC_HASCLASSVISIBILITY
+# define GCC_HASCLASSVISIBILITY
+# endif
+#endif
+
+#ifndef SWIGEXPORT
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+# if defined(STATIC_LINKED)
+# define SWIGEXPORT
+# else
+# define SWIGEXPORT __declspec(dllexport)
+# endif
+# else
+# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
+# define SWIGEXPORT __attribute__ ((visibility("default")))
+# else
+# define SWIGEXPORT
+# endif
+# endif
+#endif
+
+/* calling conventions for Windows */
+#ifndef SWIGSTDCALL
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+# define SWIGSTDCALL __stdcall
+# else
+# define SWIGSTDCALL
+# endif
+#endif
+
+/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
+#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
+# define _CRT_SECURE_NO_DEPRECATE
+#endif
+
+/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
+#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
+# define _SCL_SECURE_NO_DEPRECATE
+#endif
+
+
+
+/* Fix for jlong on some versions of gcc on Windows */
+#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
+ typedef long long __int64;
+#endif
+
+/* Fix for jlong on 64-bit x86 Solaris */
+#if defined(__x86_64)
+# ifdef _LP64
+# undef _LP64
+# endif
+#endif
+
+#include <jni.h>
+#include <stdlib.h>
+#include <string.h>
+
+
+/* Support for throwing Java exceptions */
+typedef enum {
+ SWIG_JavaOutOfMemoryError = 1,
+ SWIG_JavaIOException,
+ SWIG_JavaRuntimeException,
+ SWIG_JavaIndexOutOfBoundsException,
+ SWIG_JavaArithmeticException,
+ SWIG_JavaIllegalArgumentException,
+ SWIG_JavaNullPointerException,
+ SWIG_JavaDirectorPureVirtual,
+ SWIG_JavaUnknownError
+} SWIG_JavaExceptionCodes;
+
+typedef struct {
+ SWIG_JavaExceptionCodes code;
+ const char *java_exception;
+} SWIG_JavaExceptions_t;
+
+
+static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) {
+ jclass excep;
+ static const SWIG_JavaExceptions_t java_exceptions[] = {
+ { SWIG_JavaOutOfMemoryError, "java/lang/OutOfMemoryError" },
+ { SWIG_JavaIOException, "java/io/IOException" },
+ { SWIG_JavaRuntimeException, "java/lang/RuntimeException" },
+ { SWIG_JavaIndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException" },
+ { SWIG_JavaArithmeticException, "java/lang/ArithmeticException" },
+ { SWIG_JavaIllegalArgumentException, "java/lang/IllegalArgumentException" },
+ { SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
+ { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
+ { SWIG_JavaUnknownError, "java/lang/UnknownError" },
+ { (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" }
+ };
+ const SWIG_JavaExceptions_t *except_ptr = java_exceptions;
+
+ while (except_ptr->code != code && except_ptr->code)
+ except_ptr++;
+
+ jenv->ExceptionClear();
+ excep = jenv->FindClass(except_ptr->java_exception);
+ if (excep)
+ jenv->ThrowNew(excep, msg);
+}
+
+
+/* Contract support */
+
+#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else
+
+/* -----------------------------------------------------------------------------
+ * director.swg
+ *
+ * This file contains support for director classes that proxy
+ * method calls from C++ to Java extensions.
+ * ----------------------------------------------------------------------------- */
+
+#ifdef __cplusplus
+
+#if defined(DEBUG_DIRECTOR_OWNED)
+#include <iostream>
+#endif
+
+namespace Swig {
+ /* Java object wrapper */
+ class JObjectWrapper {
+ public:
+ JObjectWrapper() : jthis_(NULL), weak_global_(true) {
+ }
+
+ ~JObjectWrapper() {
+ jthis_ = NULL;
+ weak_global_ = true;
+ }
+
+ bool set(JNIEnv *jenv, jobject jobj, bool mem_own, bool weak_global) {
+ if (!jthis_) {
+ weak_global_ = weak_global || !mem_own; // hold as weak global if explicitly requested or not owned
+ if (jobj)
+ jthis_ = weak_global_ ? jenv->NewWeakGlobalRef(jobj) : jenv->NewGlobalRef(jobj);
+#if defined(DEBUG_DIRECTOR_OWNED)
+ std::cout << "JObjectWrapper::set(" << jobj << ", " << (weak_global ? "weak_global" : "global_ref") << ") -> " << jthis_ << std::endl;
+#endif
+ return true;
+ } else {
+#if defined(DEBUG_DIRECTOR_OWNED)
+ std::cout << "JObjectWrapper::set(" << jobj << ", " << (weak_global ? "weak_global" : "global_ref") << ") -> already set" << std::endl;
+#endif
+ return false;
+ }
+ }
+
+ jobject get(JNIEnv *jenv) const {
+#if defined(DEBUG_DIRECTOR_OWNED)
+ std::cout << "JObjectWrapper::get(";
+ if (jthis_)
+ std::cout << jthis_;
+ else
+ std::cout << "null";
+ std::cout << ") -> return new local ref" << std::endl;
+#endif
+ return (jthis_ ? jenv->NewLocalRef(jthis_) : jthis_);
+ }
+
+ void release(JNIEnv *jenv) {
+#if defined(DEBUG_DIRECTOR_OWNED)
+ std::cout << "JObjectWrapper::release(" << jthis_ << "): " << (weak_global_ ? "weak global ref" : "global ref") << std::endl;
+#endif
+ if (jthis_) {
+ if (weak_global_) {
+ if (jenv->IsSameObject(jthis_, NULL) == JNI_FALSE)
+ jenv->DeleteWeakGlobalRef((jweak)jthis_);
+ } else
+ jenv->DeleteGlobalRef(jthis_);
+ }
+
+ jthis_ = NULL;
+ weak_global_ = true;
+ }
+
+ /* Only call peek if you know what you are doing wrt to weak/global references */
+ jobject peek() {
+ return jthis_;
+ }
+
+ /* Java proxy releases ownership of C++ object, C++ object is now
+ responsible for destruction (creates NewGlobalRef to pin Java
+ proxy) */
+ void java_change_ownership(JNIEnv *jenv, jobject jself, bool take_or_release) {
+ if (take_or_release) { /* Java takes ownership of C++ object's lifetime. */
+ if (!weak_global_) {
+ jenv->DeleteGlobalRef(jthis_);
+ jthis_ = jenv->NewWeakGlobalRef(jself);
+ weak_global_ = true;
+ }
+ } else { /* Java releases ownership of C++ object's lifetime */
+ if (weak_global_) {
+ jenv->DeleteWeakGlobalRef((jweak)jthis_);
+ jthis_ = jenv->NewGlobalRef(jself);
+ weak_global_ = false;
+ }
+ }
+ }
+
+ private:
+ /* pointer to Java object */
+ jobject jthis_;
+ /* Local or global reference flag */
+ bool weak_global_;
+ };
+
+ /* director base class */
+ class Director {
+ /* pointer to Java virtual machine */
+ JavaVM *swig_jvm_;
+
+ protected:
+#if defined (_MSC_VER) && (_MSC_VER<1300)
+ class JNIEnvWrapper;
+ friend class JNIEnvWrapper;
+#endif
+ /* Utility class for managing the JNI environment */
+ class JNIEnvWrapper {
+ const Director *director_;
+ JNIEnv *jenv_;
+ int env_status;
+ public:
+ JNIEnvWrapper(const Director *director) : director_(director), jenv_(0), env_status(0) {
+#if defined(__ANDROID__)
+ JNIEnv **jenv = &jenv_;
+#else
+ void **jenv = (void **)&jenv_;
+#endif
+ env_status = director_->swig_jvm_->GetEnv((void **)&jenv_, JNI_VERSION_1_2);
+#if defined(SWIG_JAVA_ATTACH_CURRENT_THREAD_AS_DAEMON)
+ // Attach a daemon thread to the JVM. Useful when the JVM should not wait for
+ // the thread to exit upon shutdown. Only for jdk-1.4 and later.
+ director_->swig_jvm_->AttachCurrentThreadAsDaemon(jenv, NULL);
+#else
+ director_->swig_jvm_->AttachCurrentThread(jenv, NULL);
+#endif
+ }
+ ~JNIEnvWrapper() {
+#if !defined(SWIG_JAVA_NO_DETACH_CURRENT_THREAD)
+ // Some JVMs, eg jdk-1.4.2 and lower on Solaris have a bug and crash with the DetachCurrentThread call.
+ // However, without this call, the JVM hangs on exit when the thread was not created by the JVM and creates a memory leak.
+ if (env_status == JNI_EDETACHED)
+ director_->swig_jvm_->DetachCurrentThread();
+#endif
+ }
+ JNIEnv *getJNIEnv() const {
+ return jenv_;
+ }
+ };
+
+ /* Java object wrapper */
+ JObjectWrapper swig_self_;
+
+ /* Disconnect director from Java object */
+ void swig_disconnect_director_self(const char *disconn_method) {
+ JNIEnvWrapper jnienv(this) ;
+ JNIEnv *jenv = jnienv.getJNIEnv() ;
+ jobject jobj = swig_self_.get(jenv);
+#if defined(DEBUG_DIRECTOR_OWNED)
+ std::cout << "Swig::Director::disconnect_director_self(" << jobj << ")" << std::endl;
+#endif
+ if (jobj && jenv->IsSameObject(jobj, NULL) == JNI_FALSE) {
+ jmethodID disconn_meth = jenv->GetMethodID(jenv->GetObjectClass(jobj), disconn_method, "()V");
+ if (disconn_meth) {
+#if defined(DEBUG_DIRECTOR_OWNED)
+ std::cout << "Swig::Director::disconnect_director_self upcall to " << disconn_method << std::endl;
+#endif
+ jenv->CallVoidMethod(jobj, disconn_meth);
+ }
+ }
+ jenv->DeleteLocalRef(jobj);
+ }
+
+ public:
+ Director(JNIEnv *jenv) : swig_jvm_((JavaVM *) NULL), swig_self_() {
+ /* Acquire the Java VM pointer */
+ jenv->GetJavaVM(&swig_jvm_);
+ }
+
+ virtual ~Director() {
+ JNIEnvWrapper jnienv(this) ;
+ JNIEnv *jenv = jnienv.getJNIEnv() ;
+ swig_self_.release(jenv);
+ }
+
+ bool swig_set_self(JNIEnv *jenv, jobject jself, bool mem_own, bool weak_global) {
+ return swig_self_.set(jenv, jself, mem_own, weak_global);
+ }
+
+ jobject swig_get_self(JNIEnv *jenv) const {
+ return swig_self_.get(jenv);
+ }
+
+ // Change C++ object's ownership, relative to Java
+ void swig_java_change_ownership(JNIEnv *jenv, jobject jself, bool take_or_release) {
+ swig_self_.java_change_ownership(jenv, jself, take_or_release);
+ }
+ };
+}
+
+#endif /* __cplusplus */
+
+
+namespace Swig {
+ namespace {
+ jclass jclass_tinyWRAPJNI = NULL;
+ jmethodID director_methids[37];
+ }
+}
+
+#include <stdint.h> // Use the C99 official header
+
+
+#include "tinyWRAP_config.h"
+#include "DDebug.h"
+#include "AudioResampler.h"
+
+
+#include "ActionConfig.h"
+#include "MediaSessionMgr.h"
+#include "MediaContent.h"
+#include "SipUri.h"
+#include "SipMessage.h"
+#include "SipEvent.h"
+#include "SipSession.h"
+
+#include "ProxyPluginMgr.h"
+#include "ProxyConsumer.h"
+#include "ProxyProducer.h"
+
+#include "SipCallback.h"
+#include "SafeObject.h"
+#include "SipStack.h"
+
+
+#include "Xcap.h"
+
+
+#include "SMSEncoder.h"
+
+
+#include "Msrp.h"
+
+
+
+/* ---------------------------------------------------
+ * C++ director class methods
+ * --------------------------------------------------- */
+
+#include "tinyWRAP_wrap.h"
+
+SwigDirector_DDebugCallback::SwigDirector_DDebugCallback(JNIEnv *jenv) : DDebugCallback(), Swig::Director(jenv) {
+}
+
+SwigDirector_DDebugCallback::~SwigDirector_DDebugCallback() {
+ swig_disconnect_director_self("swigDirectorDisconnect");
+}
+
+
+int SwigDirector_DDebugCallback::OnDebugInfo(char const *message) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jstring jmessage = 0 ;
+
+ if (!swig_override[0]) {
+ return DDebugCallback::OnDebugInfo(message);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jmessage = 0;
+ if (message) {
+ jmessage = jenv->NewStringUTF((const char *)message);
+ if (!jmessage) return c_result;
+ }
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[0], swigjobj, jmessage);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_DDebugCallback::OnDebugWarn(char const *message) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jstring jmessage = 0 ;
+
+ if (!swig_override[1]) {
+ return DDebugCallback::OnDebugWarn(message);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jmessage = 0;
+ if (message) {
+ jmessage = jenv->NewStringUTF((const char *)message);
+ if (!jmessage) return c_result;
+ }
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[1], swigjobj, jmessage);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_DDebugCallback::OnDebugError(char const *message) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jstring jmessage = 0 ;
+
+ if (!swig_override[2]) {
+ return DDebugCallback::OnDebugError(message);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jmessage = 0;
+ if (message) {
+ jmessage = jenv->NewStringUTF((const char *)message);
+ if (!jmessage) return c_result;
+ }
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[2], swigjobj, jmessage);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_DDebugCallback::OnDebugFatal(char const *message) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jstring jmessage = 0 ;
+
+ if (!swig_override[3]) {
+ return DDebugCallback::OnDebugFatal(message);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jmessage = 0;
+ if (message) {
+ jmessage = jenv->NewStringUTF((const char *)message);
+ if (!jmessage) return c_result;
+ }
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[3], swigjobj, jmessage);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+void SwigDirector_DDebugCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
+ static struct {
+ const char *mname;
+ const char *mdesc;
+ jmethodID base_methid;
+ } methods[] = {
+ {
+ "OnDebugInfo", "(Ljava/lang/String;)I", NULL
+ },
+ {
+ "OnDebugWarn", "(Ljava/lang/String;)I", NULL
+ },
+ {
+ "OnDebugError", "(Ljava/lang/String;)I", NULL
+ },
+ {
+ "OnDebugFatal", "(Ljava/lang/String;)I", NULL
+ }
+ };
+
+ static jclass baseclass = 0 ;
+
+ if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
+ if (!baseclass) {
+ baseclass = jenv->FindClass("org/doubango/tinyWRAP/DDebugCallback");
+ if (!baseclass) return;
+ baseclass = (jclass) jenv->NewGlobalRef(baseclass);
+ }
+ bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
+ for (int i = 0; i < 4; ++i) {
+ if (!methods[i].base_methid) {
+ methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
+ if (!methods[i].base_methid) return;
+ }
+ swig_override[i] = false;
+ if (derived) {
+ jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
+ swig_override[i] = (methid != methods[i].base_methid);
+ jenv->ExceptionClear();
+ }
+ }
+ }
+}
+
+
+SwigDirector_T140Callback::SwigDirector_T140Callback(JNIEnv *jenv) : T140Callback(), Swig::Director(jenv) {
+}
+
+SwigDirector_T140Callback::~SwigDirector_T140Callback() {
+ swig_disconnect_director_self("swigDirectorDisconnect");
+}
+
+
+int SwigDirector_T140Callback::ondata(T140CallbackData const *pData) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jlong jpData = 0 ;
+
+ if (!swig_override[0]) {
+ return T140Callback::ondata(pData);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ *((T140CallbackData **)&jpData) = (T140CallbackData *) pData;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[4], swigjobj, jpData);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+void SwigDirector_T140Callback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
+ static struct {
+ const char *mname;
+ const char *mdesc;
+ jmethodID base_methid;
+ } methods[] = {
+ {
+ "ondata", "(Lorg/doubango/tinyWRAP/T140CallbackData;)I", NULL
+ }
+ };
+
+ static jclass baseclass = 0 ;
+
+ if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
+ if (!baseclass) {
+ baseclass = jenv->FindClass("org/doubango/tinyWRAP/T140Callback");
+ if (!baseclass) return;
+ baseclass = (jclass) jenv->NewGlobalRef(baseclass);
+ }
+ bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
+ for (int i = 0; i < 1; ++i) {
+ if (!methods[i].base_methid) {
+ methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
+ if (!methods[i].base_methid) return;
+ }
+ swig_override[i] = false;
+ if (derived) {
+ jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
+ swig_override[i] = (methid != methods[i].base_methid);
+ jenv->ExceptionClear();
+ }
+ }
+ }
+}
+
+
+SwigDirector_ProxyPluginMgrCallback::SwigDirector_ProxyPluginMgrCallback(JNIEnv *jenv) : ProxyPluginMgrCallback(), Swig::Director(jenv) {
+}
+
+SwigDirector_ProxyPluginMgrCallback::~SwigDirector_ProxyPluginMgrCallback() {
+ swig_disconnect_director_self("swigDirectorDisconnect");
+}
+
+
+int SwigDirector_ProxyPluginMgrCallback::OnPluginCreated(uint64_t id, enum twrap_proxy_plugin_type_e type) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jobject jid ;
+ jint jtype ;
+
+ if (!swig_override[0]) {
+ return ProxyPluginMgrCallback::OnPluginCreated(id,type);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ {
+ jbyteArray ba = jenv->NewByteArray(9);
+ jbyte* bae = jenv->GetByteArrayElements(ba, 0);
+ jclass clazz = jenv->FindClass("java/math/BigInteger");
+ jmethodID mid = jenv->GetMethodID(clazz, "<init>", "([B)V");
+ jobject bigint;
+ int swig_i;
+
+ bae[0] = 0;
+ for(swig_i=1; swig_i<9; swig_i++ ) {
+ bae[swig_i] = (jbyte)(id>>8*(8-swig_i));
+ }
+
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ bigint = jenv->NewObject(clazz, mid, ba);
+ jid = bigint;
+ }
+ jtype = (jint) type;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[5], swigjobj, jid, jtype);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_ProxyPluginMgrCallback::OnPluginDestroyed(uint64_t id, enum twrap_proxy_plugin_type_e type) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jobject jid ;
+ jint jtype ;
+
+ if (!swig_override[1]) {
+ return ProxyPluginMgrCallback::OnPluginDestroyed(id,type);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ {
+ jbyteArray ba = jenv->NewByteArray(9);
+ jbyte* bae = jenv->GetByteArrayElements(ba, 0);
+ jclass clazz = jenv->FindClass("java/math/BigInteger");
+ jmethodID mid = jenv->GetMethodID(clazz, "<init>", "([B)V");
+ jobject bigint;
+ int swig_i;
+
+ bae[0] = 0;
+ for(swig_i=1; swig_i<9; swig_i++ ) {
+ bae[swig_i] = (jbyte)(id>>8*(8-swig_i));
+ }
+
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ bigint = jenv->NewObject(clazz, mid, ba);
+ jid = bigint;
+ }
+ jtype = (jint) type;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[6], swigjobj, jid, jtype);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+void SwigDirector_ProxyPluginMgrCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
+ static struct {
+ const char *mname;
+ const char *mdesc;
+ jmethodID base_methid;
+ } methods[] = {
+ {
+ "OnPluginCreated", "(Ljava/math/BigInteger;Lorg/doubango/tinyWRAP/twrap_proxy_plugin_type_t;)I", NULL
+ },
+ {
+ "OnPluginDestroyed", "(Ljava/math/BigInteger;Lorg/doubango/tinyWRAP/twrap_proxy_plugin_type_t;)I", NULL
+ }
+ };
+
+ static jclass baseclass = 0 ;
+
+ if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
+ if (!baseclass) {
+ baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyPluginMgrCallback");
+ if (!baseclass) return;
+ baseclass = (jclass) jenv->NewGlobalRef(baseclass);
+ }
+ bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
+ for (int i = 0; i < 2; ++i) {
+ if (!methods[i].base_methid) {
+ methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
+ if (!methods[i].base_methid) return;
+ }
+ swig_override[i] = false;
+ if (derived) {
+ jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
+ swig_override[i] = (methid != methods[i].base_methid);
+ jenv->ExceptionClear();
+ }
+ }
+ }
+}
+
+
+SwigDirector_ProxyAudioConsumerCallback::SwigDirector_ProxyAudioConsumerCallback(JNIEnv *jenv) : ProxyAudioConsumerCallback(), Swig::Director(jenv) {
+}
+
+SwigDirector_ProxyAudioConsumerCallback::~SwigDirector_ProxyAudioConsumerCallback() {
+ swig_disconnect_director_self("swigDirectorDisconnect");
+}
+
+
+int SwigDirector_ProxyAudioConsumerCallback::prepare(int ptime, int rate, int channels) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jint jptime ;
+ jint jrate ;
+ jint jchannels ;
+
+ if (!swig_override[0]) {
+ return ProxyAudioConsumerCallback::prepare(ptime,rate,channels);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jptime = (jint) ptime;
+ jrate = (jint) rate;
+ jchannels = (jint) channels;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[7], swigjobj, jptime, jrate, jchannels);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_ProxyAudioConsumerCallback::start() {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+
+ if (!swig_override[1]) {
+ return ProxyAudioConsumerCallback::start();
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[8], swigjobj);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_ProxyAudioConsumerCallback::pause() {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+
+ if (!swig_override[2]) {
+ return ProxyAudioConsumerCallback::pause();
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[9], swigjobj);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_ProxyAudioConsumerCallback::stop() {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+
+ if (!swig_override[3]) {
+ return ProxyAudioConsumerCallback::stop();
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[10], swigjobj);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+void SwigDirector_ProxyAudioConsumerCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
+ static struct {
+ const char *mname;
+ const char *mdesc;
+ jmethodID base_methid;
+ } methods[] = {
+ {
+ "prepare", "(III)I", NULL
+ },
+ {
+ "start", "()I", NULL
+ },
+ {
+ "pause", "()I", NULL
+ },
+ {
+ "stop", "()I", NULL
+ }
+ };
+
+ static jclass baseclass = 0 ;
+
+ if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
+ if (!baseclass) {
+ baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyAudioConsumerCallback");
+ if (!baseclass) return;
+ baseclass = (jclass) jenv->NewGlobalRef(baseclass);
+ }
+ bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
+ for (int i = 0; i < 4; ++i) {
+ if (!methods[i].base_methid) {
+ methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
+ if (!methods[i].base_methid) return;
+ }
+ swig_override[i] = false;
+ if (derived) {
+ jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
+ swig_override[i] = (methid != methods[i].base_methid);
+ jenv->ExceptionClear();
+ }
+ }
+ }
+}
+
+
+SwigDirector_ProxyVideoConsumerCallback::SwigDirector_ProxyVideoConsumerCallback(JNIEnv *jenv) : ProxyVideoConsumerCallback(), Swig::Director(jenv) {
+}
+
+SwigDirector_ProxyVideoConsumerCallback::~SwigDirector_ProxyVideoConsumerCallback() {
+ swig_disconnect_director_self("swigDirectorDisconnect");
+}
+
+
+int SwigDirector_ProxyVideoConsumerCallback::prepare(int nWidth, int nHeight, int nFps) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jint jnWidth ;
+ jint jnHeight ;
+ jint jnFps ;
+
+ if (!swig_override[0]) {
+ return ProxyVideoConsumerCallback::prepare(nWidth,nHeight,nFps);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jnWidth = (jint) nWidth;
+ jnHeight = (jint) nHeight;
+ jnFps = (jint) nFps;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[11], swigjobj, jnWidth, jnHeight, jnFps);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_ProxyVideoConsumerCallback::consume(ProxyVideoFrame const *frame) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jlong jframe = 0 ;
+
+ if (!swig_override[1]) {
+ return ProxyVideoConsumerCallback::consume(frame);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ *((ProxyVideoFrame **)&jframe) = (ProxyVideoFrame *) frame;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[12], swigjobj, jframe);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_ProxyVideoConsumerCallback::bufferCopied(unsigned int nCopiedSize, unsigned int nAvailableSize) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jlong jnCopiedSize ;
+ jlong jnAvailableSize ;
+
+ if (!swig_override[2]) {
+ return ProxyVideoConsumerCallback::bufferCopied(nCopiedSize,nAvailableSize);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jnCopiedSize = (jlong) nCopiedSize;
+ jnAvailableSize = (jlong) nAvailableSize;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[13], swigjobj, jnCopiedSize, jnAvailableSize);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_ProxyVideoConsumerCallback::start() {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+
+ if (!swig_override[3]) {
+ return ProxyVideoConsumerCallback::start();
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[14], swigjobj);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_ProxyVideoConsumerCallback::pause() {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+
+ if (!swig_override[4]) {
+ return ProxyVideoConsumerCallback::pause();
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[15], swigjobj);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_ProxyVideoConsumerCallback::stop() {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+
+ if (!swig_override[5]) {
+ return ProxyVideoConsumerCallback::stop();
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[16], swigjobj);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+void SwigDirector_ProxyVideoConsumerCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
+ static struct {
+ const char *mname;
+ const char *mdesc;
+ jmethodID base_methid;
+ } methods[] = {
+ {
+ "prepare", "(III)I", NULL
+ },
+ {
+ "consume", "(Lorg/doubango/tinyWRAP/ProxyVideoFrame;)I", NULL
+ },
+ {
+ "bufferCopied", "(JJ)I", NULL
+ },
+ {
+ "start", "()I", NULL
+ },
+ {
+ "pause", "()I", NULL
+ },
+ {
+ "stop", "()I", NULL
+ }
+ };
+
+ static jclass baseclass = 0 ;
+
+ if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
+ if (!baseclass) {
+ baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyVideoConsumerCallback");
+ if (!baseclass) return;
+ baseclass = (jclass) jenv->NewGlobalRef(baseclass);
+ }
+ bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
+ for (int i = 0; i < 6; ++i) {
+ if (!methods[i].base_methid) {
+ methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
+ if (!methods[i].base_methid) return;
+ }
+ swig_override[i] = false;
+ if (derived) {
+ jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
+ swig_override[i] = (methid != methods[i].base_methid);
+ jenv->ExceptionClear();
+ }
+ }
+ }
+}
+
+
+SwigDirector_ProxyAudioProducerCallback::SwigDirector_ProxyAudioProducerCallback(JNIEnv *jenv) : ProxyAudioProducerCallback(), Swig::Director(jenv) {
+}
+
+SwigDirector_ProxyAudioProducerCallback::~SwigDirector_ProxyAudioProducerCallback() {
+ swig_disconnect_director_self("swigDirectorDisconnect");
+}
+
+
+int SwigDirector_ProxyAudioProducerCallback::prepare(int ptime, int rate, int channels) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jint jptime ;
+ jint jrate ;
+ jint jchannels ;
+
+ if (!swig_override[0]) {
+ return ProxyAudioProducerCallback::prepare(ptime,rate,channels);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jptime = (jint) ptime;
+ jrate = (jint) rate;
+ jchannels = (jint) channels;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[17], swigjobj, jptime, jrate, jchannels);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_ProxyAudioProducerCallback::start() {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+
+ if (!swig_override[1]) {
+ return ProxyAudioProducerCallback::start();
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[18], swigjobj);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_ProxyAudioProducerCallback::pause() {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+
+ if (!swig_override[2]) {
+ return ProxyAudioProducerCallback::pause();
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[19], swigjobj);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_ProxyAudioProducerCallback::stop() {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+
+ if (!swig_override[3]) {
+ return ProxyAudioProducerCallback::stop();
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[20], swigjobj);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_ProxyAudioProducerCallback::fillPushBuffer() {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+
+ if (!swig_override[4]) {
+ return ProxyAudioProducerCallback::fillPushBuffer();
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[21], swigjobj);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+void SwigDirector_ProxyAudioProducerCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
+ static struct {
+ const char *mname;
+ const char *mdesc;
+ jmethodID base_methid;
+ } methods[] = {
+ {
+ "prepare", "(III)I", NULL
+ },
+ {
+ "start", "()I", NULL
+ },
+ {
+ "pause", "()I", NULL
+ },
+ {
+ "stop", "()I", NULL
+ },
+ {
+ "fillPushBuffer", "()I", NULL
+ }
+ };
+
+ static jclass baseclass = 0 ;
+
+ if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
+ if (!baseclass) {
+ baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyAudioProducerCallback");
+ if (!baseclass) return;
+ baseclass = (jclass) jenv->NewGlobalRef(baseclass);
+ }
+ bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
+ for (int i = 0; i < 5; ++i) {
+ if (!methods[i].base_methid) {
+ methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
+ if (!methods[i].base_methid) return;
+ }
+ swig_override[i] = false;
+ if (derived) {
+ jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
+ swig_override[i] = (methid != methods[i].base_methid);
+ jenv->ExceptionClear();
+ }
+ }
+ }
+}
+
+
+SwigDirector_ProxyVideoProducerCallback::SwigDirector_ProxyVideoProducerCallback(JNIEnv *jenv) : ProxyVideoProducerCallback(), Swig::Director(jenv) {
+}
+
+SwigDirector_ProxyVideoProducerCallback::~SwigDirector_ProxyVideoProducerCallback() {
+ swig_disconnect_director_self("swigDirectorDisconnect");
+}
+
+
+int SwigDirector_ProxyVideoProducerCallback::prepare(int width, int height, int fps) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jint jwidth ;
+ jint jheight ;
+ jint jfps ;
+
+ if (!swig_override[0]) {
+ return ProxyVideoProducerCallback::prepare(width,height,fps);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jwidth = (jint) width;
+ jheight = (jint) height;
+ jfps = (jint) fps;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[22], swigjobj, jwidth, jheight, jfps);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_ProxyVideoProducerCallback::start() {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+
+ if (!swig_override[1]) {
+ return ProxyVideoProducerCallback::start();
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[23], swigjobj);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_ProxyVideoProducerCallback::pause() {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+
+ if (!swig_override[2]) {
+ return ProxyVideoProducerCallback::pause();
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[24], swigjobj);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_ProxyVideoProducerCallback::stop() {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+
+ if (!swig_override[3]) {
+ return ProxyVideoProducerCallback::stop();
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[25], swigjobj);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+void SwigDirector_ProxyVideoProducerCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
+ static struct {
+ const char *mname;
+ const char *mdesc;
+ jmethodID base_methid;
+ } methods[] = {
+ {
+ "prepare", "(III)I", NULL
+ },
+ {
+ "start", "()I", NULL
+ },
+ {
+ "pause", "()I", NULL
+ },
+ {
+ "stop", "()I", NULL
+ }
+ };
+
+ static jclass baseclass = 0 ;
+
+ if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
+ if (!baseclass) {
+ baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyVideoProducerCallback");
+ if (!baseclass) return;
+ baseclass = (jclass) jenv->NewGlobalRef(baseclass);
+ }
+ bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
+ for (int i = 0; i < 4; ++i) {
+ if (!methods[i].base_methid) {
+ methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
+ if (!methods[i].base_methid) return;
+ }
+ swig_override[i] = false;
+ if (derived) {
+ jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
+ swig_override[i] = (methid != methods[i].base_methid);
+ jenv->ExceptionClear();
+ }
+ }
+ }
+}
+
+
+SwigDirector_SipCallback::SwigDirector_SipCallback(JNIEnv *jenv) : SipCallback(), Swig::Director(jenv) {
+}
+
+SwigDirector_SipCallback::~SwigDirector_SipCallback() {
+ swig_disconnect_director_self("swigDirectorDisconnect");
+}
+
+
+int SwigDirector_SipCallback::OnDialogEvent(DialogEvent const *e) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jlong je = 0 ;
+
+ if (!swig_override[0]) {
+ return SipCallback::OnDialogEvent(e);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ *((DialogEvent **)&je) = (DialogEvent *) e;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[26], swigjobj, je);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_SipCallback::OnStackEvent(StackEvent const *e) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jlong je = 0 ;
+
+ if (!swig_override[1]) {
+ return SipCallback::OnStackEvent(e);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ *((StackEvent **)&je) = (StackEvent *) e;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[27], swigjobj, je);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_SipCallback::OnInviteEvent(InviteEvent const *e) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jlong je = 0 ;
+
+ if (!swig_override[2]) {
+ return SipCallback::OnInviteEvent(e);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ *((InviteEvent **)&je) = (InviteEvent *) e;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[28], swigjobj, je);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_SipCallback::OnMessagingEvent(MessagingEvent const *e) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jlong je = 0 ;
+
+ if (!swig_override[3]) {
+ return SipCallback::OnMessagingEvent(e);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ *((MessagingEvent **)&je) = (MessagingEvent *) e;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[29], swigjobj, je);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_SipCallback::OnInfoEvent(InfoEvent const *e) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jlong je = 0 ;
+
+ if (!swig_override[4]) {
+ return SipCallback::OnInfoEvent(e);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ *((InfoEvent **)&je) = (InfoEvent *) e;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[30], swigjobj, je);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_SipCallback::OnOptionsEvent(OptionsEvent const *e) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jlong je = 0 ;
+
+ if (!swig_override[5]) {
+ return SipCallback::OnOptionsEvent(e);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ *((OptionsEvent **)&je) = (OptionsEvent *) e;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[31], swigjobj, je);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_SipCallback::OnPublicationEvent(PublicationEvent const *e) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jlong je = 0 ;
+
+ if (!swig_override[6]) {
+ return SipCallback::OnPublicationEvent(e);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ *((PublicationEvent **)&je) = (PublicationEvent *) e;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[32], swigjobj, je);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_SipCallback::OnRegistrationEvent(RegistrationEvent const *e) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jlong je = 0 ;
+
+ if (!swig_override[7]) {
+ return SipCallback::OnRegistrationEvent(e);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ *((RegistrationEvent **)&je) = (RegistrationEvent *) e;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[33], swigjobj, je);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+int SwigDirector_SipCallback::OnSubscriptionEvent(SubscriptionEvent const *e) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jlong je = 0 ;
+
+ if (!swig_override[8]) {
+ return SipCallback::OnSubscriptionEvent(e);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ *((SubscriptionEvent **)&je) = (SubscriptionEvent *) e;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[34], swigjobj, je);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
+ static struct {
+ const char *mname;
+ const char *mdesc;
+ jmethodID base_methid;
+ } methods[] = {
+ {
+ "OnDialogEvent", "(Lorg/doubango/tinyWRAP/DialogEvent;)I", NULL
+ },
+ {
+ "OnStackEvent", "(Lorg/doubango/tinyWRAP/StackEvent;)I", NULL
+ },
+ {
+ "OnInviteEvent", "(Lorg/doubango/tinyWRAP/InviteEvent;)I", NULL
+ },
+ {
+ "OnMessagingEvent", "(Lorg/doubango/tinyWRAP/MessagingEvent;)I", NULL
+ },
+ {
+ "OnInfoEvent", "(Lorg/doubango/tinyWRAP/InfoEvent;)I", NULL
+ },
+ {
+ "OnOptionsEvent", "(Lorg/doubango/tinyWRAP/OptionsEvent;)I", NULL
+ },
+ {
+ "OnPublicationEvent", "(Lorg/doubango/tinyWRAP/PublicationEvent;)I", NULL
+ },
+ {
+ "OnRegistrationEvent", "(Lorg/doubango/tinyWRAP/RegistrationEvent;)I", NULL
+ },
+ {
+ "OnSubscriptionEvent", "(Lorg/doubango/tinyWRAP/SubscriptionEvent;)I", NULL
+ }
+ };
+
+ static jclass baseclass = 0 ;
+
+ if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
+ if (!baseclass) {
+ baseclass = jenv->FindClass("org/doubango/tinyWRAP/SipCallback");
+ if (!baseclass) return;
+ baseclass = (jclass) jenv->NewGlobalRef(baseclass);
+ }
+ bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
+ for (int i = 0; i < 9; ++i) {
+ if (!methods[i].base_methid) {
+ methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
+ if (!methods[i].base_methid) return;
+ }
+ swig_override[i] = false;
+ if (derived) {
+ jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
+ swig_override[i] = (methid != methods[i].base_methid);
+ jenv->ExceptionClear();
+ }
+ }
+ }
+}
+
+
+SwigDirector_XcapCallback::SwigDirector_XcapCallback(JNIEnv *jenv) : XcapCallback(), Swig::Director(jenv) {
+}
+
+SwigDirector_XcapCallback::~SwigDirector_XcapCallback() {
+ swig_disconnect_director_self("swigDirectorDisconnect");
+}
+
+
+int SwigDirector_XcapCallback::onEvent(XcapEvent const *e) const {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jlong je = 0 ;
+
+ if (!swig_override[0]) {
+ return XcapCallback::onEvent(e);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ *((XcapEvent **)&je) = (XcapEvent *) e;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[35], swigjobj, je);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+void SwigDirector_XcapCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
+ static struct {
+ const char *mname;
+ const char *mdesc;
+ jmethodID base_methid;
+ } methods[] = {
+ {
+ "onEvent", "(Lorg/doubango/tinyWRAP/XcapEvent;)I", NULL
+ }
+ };
+
+ static jclass baseclass = 0 ;
+
+ if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
+ if (!baseclass) {
+ baseclass = jenv->FindClass("org/doubango/tinyWRAP/XcapCallback");
+ if (!baseclass) return;
+ baseclass = (jclass) jenv->NewGlobalRef(baseclass);
+ }
+ bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
+ for (int i = 0; i < 1; ++i) {
+ if (!methods[i].base_methid) {
+ methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
+ if (!methods[i].base_methid) return;
+ }
+ swig_override[i] = false;
+ if (derived) {
+ jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
+ swig_override[i] = (methid != methods[i].base_methid);
+ jenv->ExceptionClear();
+ }
+ }
+ }
+}
+
+
+SwigDirector_MsrpCallback::SwigDirector_MsrpCallback(JNIEnv *jenv) : MsrpCallback(), Swig::Director(jenv) {
+}
+
+SwigDirector_MsrpCallback::~SwigDirector_MsrpCallback() {
+ swig_disconnect_director_self("swigDirectorDisconnect");
+}
+
+
+int SwigDirector_MsrpCallback::OnEvent(MsrpEvent const *e) {
+ int c_result = SwigValueInit< int >() ;
+ jint jresult = 0 ;
+ JNIEnvWrapper swigjnienv(this) ;
+ JNIEnv * jenv = swigjnienv.getJNIEnv() ;
+ jobject swigjobj = (jobject) NULL ;
+ jlong je = 0 ;
+
+ if (!swig_override[0]) {
+ return MsrpCallback::OnEvent(e);
+ }
+ swigjobj = swig_get_self(jenv);
+ if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
+ *((MsrpEvent **)&je) = (MsrpEvent *) e;
+ jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[36], swigjobj, je);
+ if (jenv->ExceptionCheck() == JNI_TRUE) return c_result;
+ c_result = (int)jresult;
+ } else {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
+ }
+ if (swigjobj) jenv->DeleteLocalRef(swigjobj);
+ return c_result;
+}
+
+void SwigDirector_MsrpCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
+ static struct {
+ const char *mname;
+ const char *mdesc;
+ jmethodID base_methid;
+ } methods[] = {
+ {
+ "OnEvent", "(Lorg/doubango/tinyWRAP/MsrpEvent;)I", NULL
+ }
+ };
+
+ static jclass baseclass = 0 ;
+
+ if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) {
+ if (!baseclass) {
+ baseclass = jenv->FindClass("org/doubango/tinyWRAP/MsrpCallback");
+ if (!baseclass) return;
+ baseclass = (jclass) jenv->NewGlobalRef(baseclass);
+ }
+ bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
+ for (int i = 0; i < 1; ++i) {
+ if (!methods[i].base_methid) {
+ methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
+ if (!methods[i].base_methid) return;
+ }
+ swig_override[i] = false;
+ if (derived) {
+ jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc);
+ swig_override[i] = (methid != methods[i].base_methid);
+ jenv->ExceptionClear();
+ }
+ }
+ }
+}
+
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1DDebugCallback(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ DDebugCallback *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (DDebugCallback *)new SwigDirector_DDebugCallback(jenv);
+ *(DDebugCallback **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1DDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ DDebugCallback *arg1 = (DDebugCallback *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(DDebugCallback **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugInfo(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jint jresult = 0 ;
+ DDebugCallback *arg1 = (DDebugCallback *) 0 ;
+ char *arg2 = (char *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(DDebugCallback **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (int)(arg1)->OnDebugInfo((char const *)arg2);
+ jresult = (jint)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugInfoSwigExplicitDDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jint jresult = 0 ;
+ DDebugCallback *arg1 = (DDebugCallback *) 0 ;
+ char *arg2 = (char *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(DDebugCallback **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (int)(arg1)->DDebugCallback::OnDebugInfo((char const *)arg2);
+ jresult = (jint)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugWarn(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jint jresult = 0 ;
+ DDebugCallback *arg1 = (DDebugCallback *) 0 ;
+ char *arg2 = (char *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(DDebugCallback **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (int)(arg1)->OnDebugWarn((char const *)arg2);
+ jresult = (jint)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugWarnSwigExplicitDDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jint jresult = 0 ;
+ DDebugCallback *arg1 = (DDebugCallback *) 0 ;
+ char *arg2 = (char *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(DDebugCallback **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (int)(arg1)->DDebugCallback::OnDebugWarn((char const *)arg2);
+ jresult = (jint)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugError(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jint jresult = 0 ;
+ DDebugCallback *arg1 = (DDebugCallback *) 0 ;
+ char *arg2 = (char *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(DDebugCallback **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (int)(arg1)->OnDebugError((char const *)arg2);
+ jresult = (jint)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugErrorSwigExplicitDDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jint jresult = 0 ;
+ DDebugCallback *arg1 = (DDebugCallback *) 0 ;
+ char *arg2 = (char *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(DDebugCallback **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (int)(arg1)->DDebugCallback::OnDebugError((char const *)arg2);
+ jresult = (jint)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugFatal(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jint jresult = 0 ;
+ DDebugCallback *arg1 = (DDebugCallback *) 0 ;
+ char *arg2 = (char *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(DDebugCallback **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (int)(arg1)->OnDebugFatal((char const *)arg2);
+ jresult = (jint)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugFatalSwigExplicitDDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jint jresult = 0 ;
+ DDebugCallback *arg1 = (DDebugCallback *) 0 ;
+ char *arg2 = (char *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(DDebugCallback **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (int)(arg1)->DDebugCallback::OnDebugFatal((char const *)arg2);
+ jresult = (jint)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
+ DDebugCallback *obj = *((DDebugCallback **)&objarg);
+ (void)jcls;
+ SwigDirector_DDebugCallback *director = static_cast<SwigDirector_DDebugCallback *>(obj);
+ if (director) {
+ director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
+ }
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
+ DDebugCallback *obj = *((DDebugCallback **)&objarg);
+ SwigDirector_DDebugCallback *director = static_cast<SwigDirector_DDebugCallback *>(obj);
+ (void)jcls;
+ if (director) {
+ director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
+ }
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1AudioResampler(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jlong jarg5) {
+ jlong jresult = 0 ;
+ uint32_t arg1 ;
+ uint32_t arg2 ;
+ uint32_t arg3 ;
+ uint32_t arg4 ;
+ uint32_t arg5 ;
+ AudioResampler *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (uint32_t)jarg1;
+ arg2 = (uint32_t)jarg2;
+ arg3 = (uint32_t)jarg3;
+ arg4 = (uint32_t)jarg4;
+ arg5 = (uint32_t)jarg5;
+ result = (AudioResampler *)new AudioResampler(arg1,arg2,arg3,arg4,arg5);
+ *(AudioResampler **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1AudioResampler(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ AudioResampler *arg1 = (AudioResampler *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(AudioResampler **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_AudioResampler_1isValid(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ AudioResampler *arg1 = (AudioResampler *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(AudioResampler **)&jarg1;
+ result = (bool)(arg1)->isValid();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_AudioResampler_1getOutputRequiredSizeInShort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ AudioResampler *arg1 = (AudioResampler *) 0 ;
+ uint32_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(AudioResampler **)&jarg1;
+ result = (uint32_t)(arg1)->getOutputRequiredSizeInShort();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_AudioResampler_1getInputRequiredSizeInShort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ AudioResampler *arg1 = (AudioResampler *) 0 ;
+ uint32_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(AudioResampler **)&jarg1;
+ result = (uint32_t)(arg1)->getInputRequiredSizeInShort();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_AudioResampler_1process(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jbyteArray jarg4, jlong jarg5) {
+ jlong jresult = 0 ;
+ AudioResampler *arg1 = (AudioResampler *) 0 ;
+ void *arg2 = (void *) 0 ;
+ uint32_t arg3 ;
+ void *arg4 = (void *) 0 ;
+ uint32_t arg5 ;
+ uint32_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(AudioResampler **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (uint32_t)jarg3;
+
+ arg4 = jenv->GetDirectBufferAddress(jarg4);
+
+ arg5 = (uint32_t)jarg5;
+ result = (uint32_t)(arg1)->process((void const *)arg2,arg3,arg4,arg5);
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ActionConfig(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ ActionConfig *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (ActionConfig *)new ActionConfig();
+ *(ActionConfig **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ActionConfig(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ ActionConfig *arg1 = (ActionConfig *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(ActionConfig **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
+ jboolean jresult = 0 ;
+ ActionConfig *arg1 = (ActionConfig *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ActionConfig **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1addPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jboolean jresult = 0 ;
+ ActionConfig *arg1 = (ActionConfig *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ActionConfig **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (bool)(arg1)->addPayload((void const *)arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1setActiveMedia(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
+ jboolean jresult = 0 ;
+ ActionConfig *arg1 = (ActionConfig *) 0 ;
+ twrap_media_type_t arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ActionConfig **)&jarg1;
+ arg2 = (twrap_media_type_t)jarg2;
+ result = (bool)(arg1)->setActiveMedia(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1setResponseLine(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshort jarg2, jstring jarg3) {
+ jlong jresult = 0 ;
+ ActionConfig *arg1 = (ActionConfig *) 0 ;
+ short arg2 ;
+ char *arg3 = (char *) 0 ;
+ ActionConfig *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ActionConfig **)&jarg1;
+ arg2 = (short)jarg2;
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (ActionConfig *)(arg1)->setResponseLine(arg2,(char const *)arg3);
+ *(ActionConfig **)&jresult = result;
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1setMediaString(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jstring jarg4) {
+ jlong jresult = 0 ;
+ ActionConfig *arg1 = (ActionConfig *) 0 ;
+ twrap_media_type_t arg2 ;
+ char *arg3 = (char *) 0 ;
+ char *arg4 = (char *) 0 ;
+ ActionConfig *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ActionConfig **)&jarg1;
+ arg2 = (twrap_media_type_t)jarg2;
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = 0;
+ if (jarg4) {
+ arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
+ if (!arg4) return 0;
+ }
+ result = (ActionConfig *)(arg1)->setMediaString(arg2,(char const *)arg3,(char const *)arg4);
+ *(ActionConfig **)&jresult = result;
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1setMediaInt(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) {
+ jlong jresult = 0 ;
+ ActionConfig *arg1 = (ActionConfig *) 0 ;
+ twrap_media_type_t arg2 ;
+ char *arg3 = (char *) 0 ;
+ int arg4 ;
+ ActionConfig *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ActionConfig **)&jarg1;
+ arg2 = (twrap_media_type_t)jarg2;
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = (int)jarg4;
+ result = (ActionConfig *)(arg1)->setMediaInt(arg2,(char const *)arg3,arg4);
+ *(ActionConfig **)&jresult = result;
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1Codec(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ Codec *arg1 = (Codec *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(Codec **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getMediaType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ Codec *arg1 = (Codec *) 0 ;
+ twrap_media_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(Codec **)&jarg1;
+ result = (twrap_media_type_t)(arg1)->getMediaType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ Codec *arg1 = (Codec *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(Codec **)&jarg1;
+ result = (char *)(arg1)->getName();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getDescription(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ Codec *arg1 = (Codec *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(Codec **)&jarg1;
+ result = (char *)(arg1)->getDescription();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getNegFormat(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ Codec *arg1 = (Codec *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(Codec **)&jarg1;
+ result = (char *)(arg1)->getNegFormat();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getAudioSamplingRate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ Codec *arg1 = (Codec *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(Codec **)&jarg1;
+ result = (int)(arg1)->getAudioSamplingRate();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getAudioChannels(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ Codec *arg1 = (Codec *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(Codec **)&jarg1;
+ result = (int)(arg1)->getAudioChannels();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getAudioPTime(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ Codec *arg1 = (Codec *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(Codec **)&jarg1;
+ result = (int)(arg1)->getAudioPTime();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MediaSessionMgr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(MediaSessionMgr **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1sessionSetInt32(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) {
+ jboolean jresult = 0 ;
+ MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
+ twrap_media_type_t arg2 ;
+ char *arg3 = (char *) 0 ;
+ int32_t arg4 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaSessionMgr **)&jarg1;
+ arg2 = (twrap_media_type_t)jarg2;
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = (int32_t)jarg4;
+ result = (bool)(arg1)->sessionSetInt32(arg2,(char const *)arg3,arg4);
+ jresult = (jboolean)result;
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1sessionGetInt32(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3) {
+ jint jresult = 0 ;
+ MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
+ twrap_media_type_t arg2 ;
+ char *arg3 = (char *) 0 ;
+ int32_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaSessionMgr **)&jarg1;
+ arg2 = (twrap_media_type_t)jarg2;
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (int32_t)(arg1)->sessionGetInt32(arg2,(char const *)arg3);
+ jresult = (jint)result;
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1consumerSetInt32(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) {
+ jboolean jresult = 0 ;
+ MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
+ twrap_media_type_t arg2 ;
+ char *arg3 = (char *) 0 ;
+ int32_t arg4 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaSessionMgr **)&jarg1;
+ arg2 = (twrap_media_type_t)jarg2;
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = (int32_t)jarg4;
+ result = (bool)(arg1)->consumerSetInt32(arg2,(char const *)arg3,arg4);
+ jresult = (jboolean)result;
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1consumerSetInt64(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jlong jarg4) {
+ jboolean jresult = 0 ;
+ MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
+ twrap_media_type_t arg2 ;
+ char *arg3 = (char *) 0 ;
+ int64_t arg4 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaSessionMgr **)&jarg1;
+ arg2 = (twrap_media_type_t)jarg2;
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = (int64_t)jarg4;
+ result = (bool)(arg1)->consumerSetInt64(arg2,(char const *)arg3,arg4);
+ jresult = (jboolean)result;
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1producerSetInt32(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) {
+ jboolean jresult = 0 ;
+ MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
+ twrap_media_type_t arg2 ;
+ char *arg3 = (char *) 0 ;
+ int32_t arg4 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaSessionMgr **)&jarg1;
+ arg2 = (twrap_media_type_t)jarg2;
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = (int32_t)jarg4;
+ result = (bool)(arg1)->producerSetInt32(arg2,(char const *)arg3,arg4);
+ jresult = (jboolean)result;
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1producerSetInt64(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jlong jarg4) {
+ jboolean jresult = 0 ;
+ MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
+ twrap_media_type_t arg2 ;
+ char *arg3 = (char *) 0 ;
+ int64_t arg4 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaSessionMgr **)&jarg1;
+ arg2 = (twrap_media_type_t)jarg2;
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = (int64_t)jarg4;
+ result = (bool)(arg1)->producerSetInt64(arg2,(char const *)arg3,arg4);
+ jresult = (jboolean)result;
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1producerGetCodec(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
+ jlong jresult = 0 ;
+ MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
+ twrap_media_type_t arg2 ;
+ Codec *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaSessionMgr **)&jarg1;
+ arg2 = (twrap_media_type_t)jarg2;
+ result = (Codec *)(arg1)->producerGetCodec(arg2);
+ *(Codec **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1findProxyPluginConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
+ jlong jresult = 0 ;
+ MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
+ twrap_media_type_t arg2 ;
+ ProxyPlugin *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaSessionMgr **)&jarg1;
+ arg2 = (twrap_media_type_t)jarg2;
+ result = (ProxyPlugin *)((MediaSessionMgr const *)arg1)->findProxyPluginConsumer(arg2);
+ *(ProxyPlugin **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1findProxyPluginProducer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
+ jlong jresult = 0 ;
+ MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
+ twrap_media_type_t arg2 ;
+ ProxyPlugin *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaSessionMgr **)&jarg1;
+ arg2 = (twrap_media_type_t)jarg2;
+ result = (ProxyPlugin *)((MediaSessionMgr const *)arg1)->findProxyPluginProducer(arg2);
+ *(ProxyPlugin **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1registerAudioPluginFromFile(JNIEnv *jenv, jclass jcls, jstring jarg1) {
+ jlong jresult = 0 ;
+ char *arg1 = (char *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = 0;
+ if (jarg1) {
+ arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
+ if (!arg1) return 0;
+ }
+ result = (unsigned int)MediaSessionMgr::registerAudioPluginFromFile((char const *)arg1);
+ jresult = (jlong)result;
+ if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
+ return jresult;
+}
+
+
+SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1getSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
+ jobject jresult = 0 ;
+ MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ;
+ twrap_media_type_t arg2 ;
+ uint64_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaSessionMgr **)&jarg1;
+ arg2 = (twrap_media_type_t)jarg2;
+ result = (uint64_t)((MediaSessionMgr const *)arg1)->getSessionId(arg2);
+ {
+ jbyteArray ba = jenv->NewByteArray(9);
+ jbyte* bae = jenv->GetByteArrayElements(ba, 0);
+ jclass clazz = jenv->FindClass("java/math/BigInteger");
+ jmethodID mid = jenv->GetMethodID(clazz, "<init>", "([B)V");
+ jobject bigint;
+ int i;
+
+ bae[0] = 0;
+ for(i=1; i<9; i++ ) {
+ bae[i] = (jbyte)(result>>8*(8-i));
+ }
+
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ bigint = jenv->NewObject(clazz, mid, ba);
+ jresult = bigint;
+ }
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetProfile(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ jboolean jresult = 0 ;
+ tmedia_profile_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (tmedia_profile_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetProfile(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetProfile(JNIEnv *jenv, jclass jcls) {
+ jint jresult = 0 ;
+ tmedia_profile_t result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (tmedia_profile_t)MediaSessionMgr::defaultsGetProfile();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetBandwidthLevel(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ jboolean jresult = 0 ;
+ tmedia_bandwidth_level_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (tmedia_bandwidth_level_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetBandwidthLevel(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetBandwidthLevel(JNIEnv *jenv, jclass jcls) {
+ jint jresult = 0 ;
+ tmedia_bandwidth_level_t result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (tmedia_bandwidth_level_t)MediaSessionMgr::defaultsGetBandwidthLevel();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetCongestionCtrlEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSetCongestionCtrlEnabled(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVideoMotionRank(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ jboolean jresult = 0 ;
+ int32_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int32_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetVideoMotionRank(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVideoFps(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ jboolean jresult = 0 ;
+ int32_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int32_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetVideoFps(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetBandwidthVideoUploadMax(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ jboolean jresult = 0 ;
+ int32_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int32_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetBandwidthVideoUploadMax(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetBandwidthVideoDownloadMax(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ jboolean jresult = 0 ;
+ int32_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int32_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetBandwidthVideoDownloadMax(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetPrefVideoSize(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ jboolean jresult = 0 ;
+ tmedia_pref_video_size_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (tmedia_pref_video_size_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetPrefVideoSize(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetJbMargin(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jboolean jresult = 0 ;
+ uint32_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (uint32_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetJbMargin(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetJbMaxLateRate(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jboolean jresult = 0 ;
+ uint32_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (uint32_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetJbMaxLateRate(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetEchoTail(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jboolean jresult = 0 ;
+ uint32_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (uint32_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetEchoTail(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetEchoTail(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ uint32_t result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (uint32_t)MediaSessionMgr::defaultsGetEchoTail();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetEchoSkew(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jboolean jresult = 0 ;
+ uint32_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (uint32_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetEchoSkew(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetEchoSuppEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSetEchoSuppEnabled(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetEchoSuppEnabled(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)MediaSessionMgr::defaultsGetEchoSuppEnabled();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAgcEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSetAgcEnabled(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetAgcEnabled(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)MediaSessionMgr::defaultsGetAgcEnabled();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAgcLevel(JNIEnv *jenv, jclass jcls, jfloat jarg1) {
+ jboolean jresult = 0 ;
+ float arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (float)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetAgcLevel(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jfloat JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetAgcLevel(JNIEnv *jenv, jclass jcls) {
+ jfloat jresult = 0 ;
+ float result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (float)MediaSessionMgr::defaultsGetAgcLevel();
+ jresult = (jfloat)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVadEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSetVadEnabled(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetGetVadEnabled(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)MediaSessionMgr::defaultsGetGetVadEnabled();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetNoiseSuppEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSetNoiseSuppEnabled(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetNoiseSuppEnabled(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)MediaSessionMgr::defaultsGetNoiseSuppEnabled();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetNoiseSuppLevel(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ jboolean jresult = 0 ;
+ int32_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int32_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetNoiseSuppLevel(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetNoiseSuppLevel(JNIEnv *jenv, jclass jcls) {
+ jint jresult = 0 ;
+ int32_t result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (int32_t)MediaSessionMgr::defaultsGetNoiseSuppLevel();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSet100relEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSet100relEnabled(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGet100relEnabled(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)MediaSessionMgr::defaultsGet100relEnabled();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetScreenSize(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) {
+ jboolean jresult = 0 ;
+ int32_t arg1 ;
+ int32_t arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int32_t)jarg1;
+ arg2 = (int32_t)jarg2;
+ result = (bool)MediaSessionMgr::defaultsSetScreenSize(arg1,arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAudioGain(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) {
+ jboolean jresult = 0 ;
+ int32_t arg1 ;
+ int32_t arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int32_t)jarg1;
+ arg2 = (int32_t)jarg2;
+ result = (bool)MediaSessionMgr::defaultsSetAudioGain(arg1,arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAudioPtime(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ jboolean jresult = 0 ;
+ int32_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int32_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetAudioPtime(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAudioChannels(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) {
+ jboolean jresult = 0 ;
+ int32_t arg1 ;
+ int32_t arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int32_t)jarg1;
+ arg2 = (int32_t)jarg2;
+ result = (bool)MediaSessionMgr::defaultsSetAudioChannels(arg1,arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtpPortRange(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) {
+ jboolean jresult = 0 ;
+ uint16_t arg1 ;
+ uint16_t arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (uint16_t)jarg1;
+ arg2 = (uint16_t)jarg2;
+ result = (bool)MediaSessionMgr::defaultsSetRtpPortRange(arg1,arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtpSymetricEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSetRtpSymetricEnabled(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetMediaType(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ jboolean jresult = 0 ;
+ twrap_media_type_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (twrap_media_type_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetMediaType(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVolume(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ jboolean jresult = 0 ;
+ int32_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int32_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetVolume(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetVolume(JNIEnv *jenv, jclass jcls) {
+ jint jresult = 0 ;
+ int32_t result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (int32_t)MediaSessionMgr::defaultsGetVolume();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetInviteSessionTimers(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2) {
+ jboolean jresult = 0 ;
+ int32_t arg1 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int32_t)jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)MediaSessionMgr::defaultsSetInviteSessionTimers(arg1,(char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetSRtpMode(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ jboolean jresult = 0 ;
+ tmedia_srtp_mode_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (tmedia_srtp_mode_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetSRtpMode(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetSRtpMode(JNIEnv *jenv, jclass jcls) {
+ jint jresult = 0 ;
+ tmedia_srtp_mode_t result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (tmedia_srtp_mode_t)MediaSessionMgr::defaultsGetSRtpMode();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetSRtpType(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ jboolean jresult = 0 ;
+ tmedia_srtp_type_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (tmedia_srtp_type_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetSRtpType(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetSRtpType(JNIEnv *jenv, jclass jcls) {
+ jint jresult = 0 ;
+ tmedia_srtp_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (tmedia_srtp_type_t)MediaSessionMgr::defaultsGetSRtpType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtcpEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSetRtcpEnabled(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetRtcpEnabled(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)MediaSessionMgr::defaultsGetRtcpEnabled();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtcpMuxEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSetRtcpMuxEnabled(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetRtcpMuxEnabled(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)MediaSessionMgr::defaultsGetRtcpMuxEnabled();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetStunEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSetStunEnabled(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetIceStunEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSetIceStunEnabled(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetIceTurnEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSetIceTurnEnabled(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetStunServer(JNIEnv *jenv, jclass jcls, jstring jarg1, jint jarg2) {
+ jboolean jresult = 0 ;
+ char *arg1 = (char *) 0 ;
+ uint16_t arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = 0;
+ if (jarg1) {
+ arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
+ if (!arg1) return 0;
+ }
+ arg2 = (uint16_t)jarg2;
+ result = (bool)MediaSessionMgr::defaultsSetStunServer((char const *)arg1,arg2);
+ jresult = (jboolean)result;
+ if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetStunCred(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) {
+ jboolean jresult = 0 ;
+ char *arg1 = (char *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = 0;
+ if (jarg1) {
+ arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
+ if (!arg1) return 0;
+ }
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)MediaSessionMgr::defaultsSetStunCred((char const *)arg1,(char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetIceEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSetIceEnabled(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetByPassEncoding(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSetByPassEncoding(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetByPassEncoding(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)MediaSessionMgr::defaultsGetByPassEncoding();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetByPassDecoding(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSetByPassDecoding(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetByPassDecoding(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)MediaSessionMgr::defaultsGetByPassDecoding();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVideoJbEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSetVideoJbEnabled(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetVideoJbEnabled(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)MediaSessionMgr::defaultsGetVideoJbEnabled();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVideoZeroArtifactsEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ jboolean jresult = 0 ;
+ bool arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ result = (bool)MediaSessionMgr::defaultsSetVideoZeroArtifactsEnabled(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetVideoZeroArtifactsEnabled(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)MediaSessionMgr::defaultsGetVideoZeroArtifactsEnabled();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtpBuffSize(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jboolean jresult = 0 ;
+ unsigned int arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (unsigned int)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetRtpBuffSize(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetRtpBuffSize(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (unsigned int)MediaSessionMgr::defaultsGetRtpBuffSize();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAvpfTail(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
+ jboolean jresult = 0 ;
+ unsigned int arg1 ;
+ unsigned int arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (unsigned int)jarg1;
+ arg2 = (unsigned int)jarg2;
+ result = (bool)MediaSessionMgr::defaultsSetAvpfTail(arg1,arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAvpfMode(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ jboolean jresult = 0 ;
+ enum tmedia_mode_e arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (enum tmedia_mode_e)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetAvpfMode(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetOpusMaxCaptureRate(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jboolean jresult = 0 ;
+ uint32_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (uint32_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetOpusMaxCaptureRate(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetOpusMaxPlaybackRate(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jboolean jresult = 0 ;
+ uint32_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (uint32_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetOpusMaxPlaybackRate(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetMaxFds(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ jboolean jresult = 0 ;
+ int32_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int32_t)jarg1;
+ result = (bool)MediaSessionMgr::defaultsSetMaxFds(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MediaContent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ MediaContent *arg1 = (MediaContent *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(MediaContent **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ MediaContent *arg1 = (MediaContent *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaContent **)&jarg1;
+ result = (char *)(arg1)->getType();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getDataLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ MediaContent *arg1 = (MediaContent *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaContent **)&jarg1;
+ result = (unsigned int)(arg1)->getDataLength();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getData(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jlong jresult = 0 ;
+ MediaContent *arg1 = (MediaContent *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaContent **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (unsigned int)(arg1)->getData(arg2,arg3);
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1parse_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jbyteArray jarg1, jlong jarg2, jstring jarg3) {
+ jlong jresult = 0 ;
+ void *arg1 = (void *) 0 ;
+ unsigned int arg2 ;
+ char *arg3 = (char *) 0 ;
+ MediaContent *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+
+ arg1 = jenv->GetDirectBufferAddress(jarg1);
+
+ arg2 = (unsigned int)jarg2;
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (MediaContent *)MediaContent::parse((void const *)arg1,arg2,(char const *)arg3);
+ *(MediaContent **)&jresult = result;
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1parse_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jbyteArray jarg1, jlong jarg2) {
+ jlong jresult = 0 ;
+ void *arg1 = (void *) 0 ;
+ unsigned int arg2 ;
+ MediaContentCPIM *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+
+ arg1 = jenv->GetDirectBufferAddress(jarg1);
+
+ arg2 = (unsigned int)jarg2;
+ result = (MediaContentCPIM *)MediaContent::parse((void const *)arg1,arg2);
+ *(MediaContentCPIM **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getPayloadLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ MediaContent *arg1 = (MediaContent *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaContent **)&jarg1;
+ result = (unsigned int)(arg1)->getPayloadLength();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jlong jresult = 0 ;
+ MediaContent *arg1 = (MediaContent *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaContent **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (unsigned int)(arg1)->getPayload(arg2,arg3);
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MediaContentCPIM(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(MediaContentCPIM **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContentCPIM_1getPayloadLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaContentCPIM **)&jarg1;
+ result = (unsigned int)(arg1)->getPayloadLength();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContentCPIM_1getPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jlong jresult = 0 ;
+ MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaContentCPIM **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (unsigned int)(arg1)->getPayload(arg2,arg3);
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContentCPIM_1getHeaderValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jstring jresult = 0 ;
+ MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MediaContentCPIM **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (char *)(arg1)->getHeaderValue((char const *)arg2);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipUri_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) {
+ jlong jresult = 0 ;
+ char *arg1 = (char *) 0 ;
+ char *arg2 = (char *) 0 ;
+ SipUri *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = 0;
+ if (jarg1) {
+ arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
+ if (!arg1) return 0;
+ }
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (SipUri *)new SipUri((char const *)arg1,(char const *)arg2);
+ *(SipUri **)&jresult = result;
+ if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipUri_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jstring jarg1) {
+ jlong jresult = 0 ;
+ char *arg1 = (char *) 0 ;
+ SipUri *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = 0;
+ if (jarg1) {
+ arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
+ if (!arg1) return 0;
+ }
+ result = (SipUri *)new SipUri((char const *)arg1);
+ *(SipUri **)&jresult = result;
+ if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipUri(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ SipUri *arg1 = (SipUri *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(SipUri **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1isValid_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jstring jarg1) {
+ jboolean jresult = 0 ;
+ char *arg1 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = 0;
+ if (jarg1) {
+ arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
+ if (!arg1) return 0;
+ }
+ result = (bool)SipUri::isValid((char const *)arg1);
+ jresult = (jboolean)result;
+ if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1isValid_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ SipUri *arg1 = (SipUri *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipUri **)&jarg1;
+ result = (bool)(arg1)->isValid();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getScheme(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ SipUri *arg1 = (SipUri *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipUri **)&jarg1;
+ result = (char *)(arg1)->getScheme();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getHost(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ SipUri *arg1 = (SipUri *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipUri **)&jarg1;
+ result = (char *)(arg1)->getHost();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getPort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ SipUri *arg1 = (SipUri *) 0 ;
+ unsigned short result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipUri **)&jarg1;
+ result = (unsigned short)(arg1)->getPort();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getUserName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ SipUri *arg1 = (SipUri *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipUri **)&jarg1;
+ result = (char *)(arg1)->getUserName();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getPassword(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ SipUri *arg1 = (SipUri *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipUri **)&jarg1;
+ result = (char *)(arg1)->getPassword();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getDisplayName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ SipUri *arg1 = (SipUri *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipUri **)&jarg1;
+ result = (char *)(arg1)->getDisplayName();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getParamValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jstring jresult = 0 ;
+ SipUri *arg1 = (SipUri *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipUri **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (char *)(arg1)->getParamValue((char const *)arg2);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1setDisplayName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ SipUri *arg1 = (SipUri *) 0 ;
+ char *arg2 = (char *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipUri **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return ;
+ }
+ (arg1)->setDisplayName((char const *)arg2);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SdpMessage(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ SdpMessage *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (SdpMessage *)new SdpMessage();
+ *(SdpMessage **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SdpMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ SdpMessage *arg1 = (SdpMessage *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(SdpMessage **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SdpMessage_1getSdpHeaderValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jchar jarg3, jlong jarg4) {
+ jstring jresult = 0 ;
+ SdpMessage *arg1 = (SdpMessage *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char arg3 ;
+ unsigned int arg4 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SdpMessage **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = (char)jarg3;
+ arg4 = (unsigned int)jarg4;
+ result = (char *)(arg1)->getSdpHeaderValue((char const *)arg2,arg3,arg4);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SdpMessage_1getSdpHeaderValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jchar jarg3) {
+ jstring jresult = 0 ;
+ SdpMessage *arg1 = (SdpMessage *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char arg3 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SdpMessage **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = (char)jarg3;
+ result = (char *)(arg1)->getSdpHeaderValue((char const *)arg2,arg3);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SdpMessage_1getSdpHeaderAValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
+ jstring jresult = 0 ;
+ SdpMessage *arg1 = (SdpMessage *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SdpMessage **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (char *)(arg1)->getSdpHeaderAValue((char const *)arg2,(char const *)arg3);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipMessage(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ SipMessage *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (SipMessage *)new SipMessage();
+ *(SipMessage **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ SipMessage *arg1 = (SipMessage *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(SipMessage **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1isResponse(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ SipMessage *arg1 = (SipMessage *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipMessage **)&jarg1;
+ result = (bool)(arg1)->isResponse();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getRequestType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ SipMessage *arg1 = (SipMessage *) 0 ;
+ tsip_request_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipMessage **)&jarg1;
+ result = (tsip_request_type_t)(arg1)->getRequestType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jshort JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getResponseCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jshort jresult = 0 ;
+ SipMessage *arg1 = (SipMessage *) 0 ;
+ short result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipMessage **)&jarg1;
+ result = (short)(arg1)->getResponseCode();
+ jresult = (jshort)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getResponsePhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ SipMessage *arg1 = (SipMessage *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipMessage **)&jarg1;
+ result = (char *)(arg1)->getResponsePhrase();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) {
+ jstring jresult = 0 ;
+ SipMessage *arg1 = (SipMessage *) 0 ;
+ char *arg2 = (char *) 0 ;
+ unsigned int arg3 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipMessage **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = (unsigned int)jarg3;
+ result = (char *)(arg1)->getSipHeaderValue((char const *)arg2,arg3);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jstring jresult = 0 ;
+ SipMessage *arg1 = (SipMessage *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipMessage **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (char *)(arg1)->getSipHeaderValue((char const *)arg2);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderParamValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jlong jarg4) {
+ jstring jresult = 0 ;
+ SipMessage *arg1 = (SipMessage *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ unsigned int arg4 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipMessage **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = (unsigned int)jarg4;
+ result = (char *)(arg1)->getSipHeaderParamValue((char const *)arg2,(char const *)arg3,arg4);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderParamValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
+ jstring jresult = 0 ;
+ SipMessage *arg1 = (SipMessage *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipMessage **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (char *)(arg1)->getSipHeaderParamValue((char const *)arg2,(char const *)arg3);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipContentLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SipMessage *arg1 = (SipMessage *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipMessage **)&jarg1;
+ result = (unsigned int)(arg1)->getSipContentLength();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jlong jresult = 0 ;
+ SipMessage *arg1 = (SipMessage *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipMessage **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (unsigned int)(arg1)->getSipContent(arg2,arg3);
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSdpMessage(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SipMessage *arg1 = (SipMessage *) 0 ;
+ SdpMessage *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipMessage **)&jarg1;
+ result = (SdpMessage *)(arg1)->getSdpMessage();
+ *(SdpMessage **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ SipEvent *arg1 = (SipEvent *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(SipEvent **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jshort JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jshort jresult = 0 ;
+ SipEvent *arg1 = (SipEvent *) 0 ;
+ short result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipEvent **)&jarg1;
+ result = (short)((SipEvent const *)arg1)->getCode();
+ jresult = (jshort)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getPhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ SipEvent *arg1 = (SipEvent *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipEvent **)&jarg1;
+ result = (char *)((SipEvent const *)arg1)->getPhrase();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getBaseSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SipEvent *arg1 = (SipEvent *) 0 ;
+ SipSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipEvent **)&jarg1;
+ result = (SipSession *)((SipEvent const *)arg1)->getBaseSession();
+ *(SipSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getSipMessage(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SipEvent *arg1 = (SipEvent *) 0 ;
+ SipMessage *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipEvent **)&jarg1;
+ result = (SipMessage *)((SipEvent const *)arg1)->getSipMessage();
+ *(SipMessage **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1DialogEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ DialogEvent *arg1 = (DialogEvent *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(DialogEvent **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1StackEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ StackEvent *arg1 = (StackEvent *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(StackEvent **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1InviteEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ InviteEvent *arg1 = (InviteEvent *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(InviteEvent **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ InviteEvent *arg1 = (InviteEvent *) 0 ;
+ tsip_invite_event_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(InviteEvent **)&jarg1;
+ result = (tsip_invite_event_type_t)((InviteEvent const *)arg1)->getType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1getMediaType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ InviteEvent *arg1 = (InviteEvent *) 0 ;
+ twrap_media_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(InviteEvent **)&jarg1;
+ result = (twrap_media_type_t)((InviteEvent const *)arg1)->getMediaType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ InviteEvent *arg1 = (InviteEvent *) 0 ;
+ InviteSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(InviteEvent **)&jarg1;
+ result = (InviteSession *)((InviteEvent const *)arg1)->getSession();
+ *(InviteSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1takeCallSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ InviteEvent *arg1 = (InviteEvent *) 0 ;
+ CallSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(InviteEvent **)&jarg1;
+ result = (CallSession *)((InviteEvent const *)arg1)->takeCallSessionOwnership();
+ *(CallSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1takeMsrpSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ InviteEvent *arg1 = (InviteEvent *) 0 ;
+ MsrpSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(InviteEvent **)&jarg1;
+ result = (MsrpSession *)((InviteEvent const *)arg1)->takeMsrpSessionOwnership();
+ *(MsrpSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MessagingEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ MessagingEvent *arg1 = (MessagingEvent *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(MessagingEvent **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ MessagingEvent *arg1 = (MessagingEvent *) 0 ;
+ tsip_message_event_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MessagingEvent **)&jarg1;
+ result = (tsip_message_event_type_t)((MessagingEvent const *)arg1)->getType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ MessagingEvent *arg1 = (MessagingEvent *) 0 ;
+ MessagingSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MessagingEvent **)&jarg1;
+ result = (MessagingSession *)((MessagingEvent const *)arg1)->getSession();
+ *(MessagingSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ MessagingEvent *arg1 = (MessagingEvent *) 0 ;
+ MessagingSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MessagingEvent **)&jarg1;
+ result = (MessagingSession *)((MessagingEvent const *)arg1)->takeSessionOwnership();
+ *(MessagingSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1InfoEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ InfoEvent *arg1 = (InfoEvent *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(InfoEvent **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ InfoEvent *arg1 = (InfoEvent *) 0 ;
+ tsip_info_event_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(InfoEvent **)&jarg1;
+ result = (tsip_info_event_type_t)((InfoEvent const *)arg1)->getType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ InfoEvent *arg1 = (InfoEvent *) 0 ;
+ InfoSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(InfoEvent **)&jarg1;
+ result = (InfoSession *)((InfoEvent const *)arg1)->getSession();
+ *(InfoSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ InfoEvent *arg1 = (InfoEvent *) 0 ;
+ InfoSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(InfoEvent **)&jarg1;
+ result = (InfoSession *)((InfoEvent const *)arg1)->takeSessionOwnership();
+ *(InfoSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1OptionsEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ OptionsEvent *arg1 = (OptionsEvent *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(OptionsEvent **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ OptionsEvent *arg1 = (OptionsEvent *) 0 ;
+ tsip_options_event_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(OptionsEvent **)&jarg1;
+ result = (tsip_options_event_type_t)((OptionsEvent const *)arg1)->getType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ OptionsEvent *arg1 = (OptionsEvent *) 0 ;
+ OptionsSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(OptionsEvent **)&jarg1;
+ result = (OptionsSession *)((OptionsEvent const *)arg1)->getSession();
+ *(OptionsSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ OptionsEvent *arg1 = (OptionsEvent *) 0 ;
+ OptionsSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(OptionsEvent **)&jarg1;
+ result = (OptionsSession *)((OptionsEvent const *)arg1)->takeSessionOwnership();
+ *(OptionsSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1PublicationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ PublicationEvent *arg1 = (PublicationEvent *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(PublicationEvent **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ PublicationEvent *arg1 = (PublicationEvent *) 0 ;
+ tsip_publish_event_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(PublicationEvent **)&jarg1;
+ result = (tsip_publish_event_type_t)((PublicationEvent const *)arg1)->getType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ PublicationEvent *arg1 = (PublicationEvent *) 0 ;
+ PublicationSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(PublicationEvent **)&jarg1;
+ result = (PublicationSession *)((PublicationEvent const *)arg1)->getSession();
+ *(PublicationSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ PublicationEvent *arg1 = (PublicationEvent *) 0 ;
+ PublicationSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(PublicationEvent **)&jarg1;
+ result = (PublicationSession *)((PublicationEvent const *)arg1)->takeSessionOwnership();
+ *(PublicationSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1RegistrationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ RegistrationEvent *arg1 = (RegistrationEvent *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(RegistrationEvent **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ RegistrationEvent *arg1 = (RegistrationEvent *) 0 ;
+ tsip_register_event_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(RegistrationEvent **)&jarg1;
+ result = (tsip_register_event_type_t)((RegistrationEvent const *)arg1)->getType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ RegistrationEvent *arg1 = (RegistrationEvent *) 0 ;
+ RegistrationSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(RegistrationEvent **)&jarg1;
+ result = (RegistrationSession *)((RegistrationEvent const *)arg1)->getSession();
+ *(RegistrationSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ RegistrationEvent *arg1 = (RegistrationEvent *) 0 ;
+ RegistrationSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(RegistrationEvent **)&jarg1;
+ result = (RegistrationSession *)((RegistrationEvent const *)arg1)->takeSessionOwnership();
+ *(RegistrationSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SubscriptionEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(SubscriptionEvent **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ;
+ tsip_subscribe_event_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SubscriptionEvent **)&jarg1;
+ result = (tsip_subscribe_event_type_t)((SubscriptionEvent const *)arg1)->getType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ;
+ SubscriptionSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SubscriptionEvent **)&jarg1;
+ result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->getSession();
+ *(SubscriptionSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ;
+ SubscriptionSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SubscriptionEvent **)&jarg1;
+ result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->takeSessionOwnership();
+ *(SubscriptionSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1T140CallbackData(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ T140CallbackData *arg1 = (T140CallbackData *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(T140CallbackData **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140CallbackData_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ T140CallbackData *arg1 = (T140CallbackData *) 0 ;
+ enum tmedia_t140_data_type_e result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(T140CallbackData **)&jarg1;
+ result = (enum tmedia_t140_data_type_e)((T140CallbackData const *)arg1)->getType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140CallbackData_1getSize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ T140CallbackData *arg1 = (T140CallbackData *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(T140CallbackData **)&jarg1;
+ result = (unsigned int)((T140CallbackData const *)arg1)->getSize();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140CallbackData_1getData(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jlong jresult = 0 ;
+ T140CallbackData *arg1 = (T140CallbackData *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(T140CallbackData **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (unsigned int)((T140CallbackData const *)arg1)->getData(arg2,arg3);
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1T140Callback(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ T140Callback *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (T140Callback *)new SwigDirector_T140Callback(jenv);
+ *(T140Callback **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1T140Callback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ T140Callback *arg1 = (T140Callback *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(T140Callback **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140Callback_1ondata(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ T140Callback *arg1 = (T140Callback *) 0 ;
+ T140CallbackData *arg2 = (T140CallbackData *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(T140Callback **)&jarg1;
+ arg2 = *(T140CallbackData **)&jarg2;
+ result = (int)(arg1)->ondata((T140CallbackData const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140Callback_1ondataSwigExplicitT140Callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ T140Callback *arg1 = (T140Callback *) 0 ;
+ T140CallbackData *arg2 = (T140CallbackData *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(T140Callback **)&jarg1;
+ arg2 = *(T140CallbackData **)&jarg2;
+ result = (int)(arg1)->T140Callback::ondata((T140CallbackData const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140Callback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
+ T140Callback *obj = *((T140Callback **)&objarg);
+ (void)jcls;
+ SwigDirector_T140Callback *director = static_cast<SwigDirector_T140Callback *>(obj);
+ if (director) {
+ director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
+ }
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140Callback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
+ T140Callback *obj = *((T140Callback **)&objarg);
+ SwigDirector_T140Callback *director = static_cast<SwigDirector_T140Callback *>(obj);
+ (void)jcls;
+ if (director) {
+ director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
+ }
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ SipSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ result = (SipSession *)new SipSession(arg1);
+ *(SipSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ SipSession *arg1 = (SipSession *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(SipSession **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1haveOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ SipSession *arg1 = (SipSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipSession **)&jarg1;
+ result = (bool)(arg1)->haveOwnership();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
+ jboolean jresult = 0 ;
+ SipSession *arg1 = (SipSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1removeHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipSession *arg1 = (SipSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->removeHeader((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1addCaps_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
+ jboolean jresult = 0 ;
+ SipSession *arg1 = (SipSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (bool)(arg1)->addCaps((char const *)arg2,(char const *)arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1addCaps_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipSession *arg1 = (SipSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->addCaps((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1removeCaps(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipSession *arg1 = (SipSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->removeCaps((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setExpires(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
+ jboolean jresult = 0 ;
+ SipSession *arg1 = (SipSession *) 0 ;
+ unsigned int arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipSession **)&jarg1;
+ arg2 = (unsigned int)jarg2;
+ result = (bool)(arg1)->setExpires(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setFromUri_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipSession *arg1 = (SipSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->setFromUri((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setFromUri_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ SipSession *arg1 = (SipSession *) 0 ;
+ SipUri *arg2 = (SipUri *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipSession **)&jarg1;
+ arg2 = *(SipUri **)&jarg2;
+ result = (bool)(arg1)->setFromUri((SipUri const *)arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setToUri_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipSession *arg1 = (SipSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->setToUri((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setToUri_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ SipSession *arg1 = (SipSession *) 0 ;
+ SipUri *arg2 = (SipUri *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipSession **)&jarg1;
+ arg2 = *(SipUri **)&jarg2;
+ result = (bool)(arg1)->setToUri((SipUri const *)arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setSilentHangup(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
+ jboolean jresult = 0 ;
+ SipSession *arg1 = (SipSession *) 0 ;
+ bool arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipSession **)&jarg1;
+ arg2 = jarg2 ? true : false;
+ result = (bool)(arg1)->setSilentHangup(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1addSigCompCompartment(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipSession *arg1 = (SipSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->addSigCompCompartment((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1removeSigCompCompartment(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ SipSession *arg1 = (SipSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipSession **)&jarg1;
+ result = (bool)(arg1)->removeSigCompCompartment();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1getId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SipSession *arg1 = (SipSession *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipSession **)&jarg1;
+ result = (unsigned int)((SipSession const *)arg1)->getId();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1InviteSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ InviteSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ result = (InviteSession *)new InviteSession(arg1);
+ *(InviteSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1InviteSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ InviteSession *arg1 = (InviteSession *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(InviteSession **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ InviteSession *arg1 = (InviteSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(InviteSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->accept(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ InviteSession *arg1 = (InviteSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(InviteSession **)&jarg1;
+ result = (bool)(arg1)->accept();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1hangup_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ InviteSession *arg1 = (InviteSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(InviteSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->hangup(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1hangup_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ InviteSession *arg1 = (InviteSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(InviteSession **)&jarg1;
+ result = (bool)(arg1)->hangup();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ InviteSession *arg1 = (InviteSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(InviteSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->reject(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ InviteSession *arg1 = (InviteSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(InviteSession **)&jarg1;
+ result = (bool)(arg1)->reject();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1sendInfo_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) {
+ jboolean jresult = 0 ;
+ InviteSession *arg1 = (InviteSession *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ ActionConfig *arg4 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg4_;
+ arg1 = *(InviteSession **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ arg4 = *(ActionConfig **)&jarg4;
+ result = (bool)(arg1)->sendInfo((void const *)arg2,arg3,arg4);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1sendInfo_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jboolean jresult = 0 ;
+ InviteSession *arg1 = (InviteSession *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(InviteSession **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (bool)(arg1)->sendInfo((void const *)arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1getMediaMgr(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ InviteSession *arg1 = (InviteSession *) 0 ;
+ MediaSessionMgr *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(InviteSession **)&jarg1;
+ result = (MediaSessionMgr *)(arg1)->getMediaMgr();
+ *(MediaSessionMgr **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1CallSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ CallSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ result = (CallSession *)new CallSession(arg1);
+ *(CallSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1CallSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ CallSession *arg1 = (CallSession *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(CallSession **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudio_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ ActionConfig *arg3 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg3_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = *(ActionConfig **)&jarg3;
+ result = (bool)(arg1)->callAudio((char const *)arg2,arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudio_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->callAudio((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudio_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ SipUri *arg2 = (SipUri *) 0 ;
+ ActionConfig *arg3 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ (void)jarg3_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = *(SipUri **)&jarg2;
+ arg3 = *(ActionConfig **)&jarg3;
+ result = (bool)(arg1)->callAudio((SipUri const *)arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudio_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ SipUri *arg2 = (SipUri *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = *(SipUri **)&jarg2;
+ result = (bool)(arg1)->callAudio((SipUri const *)arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudioVideo_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ ActionConfig *arg3 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg3_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = *(ActionConfig **)&jarg3;
+ result = (bool)(arg1)->callAudioVideo((char const *)arg2,arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudioVideo_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->callAudioVideo((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudioVideo_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ SipUri *arg2 = (SipUri *) 0 ;
+ ActionConfig *arg3 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ (void)jarg3_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = *(SipUri **)&jarg2;
+ arg3 = *(ActionConfig **)&jarg3;
+ result = (bool)(arg1)->callAudioVideo((SipUri const *)arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudioVideo_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ SipUri *arg2 = (SipUri *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = *(SipUri **)&jarg2;
+ result = (bool)(arg1)->callAudioVideo((SipUri const *)arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callVideo_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ ActionConfig *arg3 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg3_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = *(ActionConfig **)&jarg3;
+ result = (bool)(arg1)->callVideo((char const *)arg2,arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callVideo_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->callVideo((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callVideo_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ SipUri *arg2 = (SipUri *) 0 ;
+ ActionConfig *arg3 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ (void)jarg3_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = *(SipUri **)&jarg2;
+ arg3 = *(ActionConfig **)&jarg3;
+ result = (bool)(arg1)->callVideo((SipUri const *)arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callVideo_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ SipUri *arg2 = (SipUri *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = *(SipUri **)&jarg2;
+ result = (bool)(arg1)->callVideo((SipUri const *)arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1call_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3, jlong jarg4, jobject jarg4_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ twrap_media_type_t arg3 ;
+ ActionConfig *arg4 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg4_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = (twrap_media_type_t)jarg3;
+ arg4 = *(ActionConfig **)&jarg4;
+ result = (bool)(arg1)->call((char const *)arg2,arg3,arg4);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1call_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ twrap_media_type_t arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = (twrap_media_type_t)jarg3;
+ result = (bool)(arg1)->call((char const *)arg2,arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1call_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jint jarg3, jlong jarg4, jobject jarg4_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ SipUri *arg2 = (SipUri *) 0 ;
+ twrap_media_type_t arg3 ;
+ ActionConfig *arg4 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ (void)jarg4_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = *(SipUri **)&jarg2;
+ arg3 = (twrap_media_type_t)jarg3;
+ arg4 = *(ActionConfig **)&jarg4;
+ result = (bool)(arg1)->call((SipUri const *)arg2,arg3,arg4);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1call_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jint jarg3) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ SipUri *arg2 = (SipUri *) 0 ;
+ twrap_media_type_t arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = *(SipUri **)&jarg2;
+ arg3 = (twrap_media_type_t)jarg3;
+ result = (bool)(arg1)->call((SipUri const *)arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setSessionTimer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jstring jarg3) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ unsigned int arg2 ;
+ char *arg3 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = (unsigned int)jarg2;
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (bool)(arg1)->setSessionTimer(arg2,(char const *)arg3);
+ jresult = (jboolean)result;
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1set100rel(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ bool arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = jarg2 ? true : false;
+ result = (bool)(arg1)->set100rel(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setRtcp(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ bool arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = jarg2 ? true : false;
+ result = (bool)(arg1)->setRtcp(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setRtcpMux(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ bool arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = jarg2 ? true : false;
+ result = (bool)(arg1)->setRtcpMux(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setSRtpMode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ enum tmedia_srtp_mode_e arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = (enum tmedia_srtp_mode_e)jarg2;
+ result = (bool)(arg1)->setSRtpMode(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setAvpfMode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ enum tmedia_mode_e arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = (enum tmedia_mode_e)jarg2;
+ result = (bool)(arg1)->setAvpfMode(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setICE(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ bool arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = jarg2 ? true : false;
+ result = (bool)(arg1)->setICE(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setICEStun(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ bool arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = jarg2 ? true : false;
+ result = (bool)(arg1)->setICEStun(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setICETurn(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ bool arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = jarg2 ? true : false;
+ result = (bool)(arg1)->setICETurn(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setSTUNServer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ uint16_t arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = (uint16_t)jarg3;
+ result = (bool)(arg1)->setSTUNServer((char const *)arg2,arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setSTUNCred(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (bool)(arg1)->setSTUNCred((char const *)arg2,(char const *)arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setVideoFps(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ int32_t arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = (int32_t)jarg2;
+ result = (bool)(arg1)->setVideoFps(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setVideoBandwidthUploadMax(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ int32_t arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = (int32_t)jarg2;
+ result = (bool)(arg1)->setVideoBandwidthUploadMax(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setVideoBandwidthDownloadMax(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ int32_t arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = (int32_t)jarg2;
+ result = (bool)(arg1)->setVideoBandwidthDownloadMax(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setVideoPrefSize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ tmedia_pref_video_size_t arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = (tmedia_pref_video_size_t)jarg2;
+ result = (bool)(arg1)->setVideoPrefSize(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setQoS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ tmedia_qos_stype_t arg2 ;
+ tmedia_qos_strength_t arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = (tmedia_qos_stype_t)jarg2;
+ arg3 = (tmedia_qos_strength_t)jarg3;
+ result = (bool)(arg1)->setQoS(arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1hold_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->hold(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1hold_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ result = (bool)(arg1)->hold();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1resume_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->resume(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1resume_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ result = (bool)(arg1)->resume();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1transfer_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ ActionConfig *arg3 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg3_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = *(ActionConfig **)&jarg3;
+ result = (bool)(arg1)->transfer((char const *)arg2,arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1transfer_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->transfer((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1acceptTransfer_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->acceptTransfer(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1acceptTransfer_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ result = (bool)(arg1)->acceptTransfer();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1rejectTransfer_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->rejectTransfer(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1rejectTransfer_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ result = (bool)(arg1)->rejectTransfer();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1sendDTMF(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ int arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = (int)jarg2;
+ result = (bool)(arg1)->sendDTMF(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1getSessionTransferId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ result = (unsigned int)(arg1)->getSessionTransferId();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1sendT140Data_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jbyteArray jarg3, jlong jarg4) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ enum tmedia_t140_data_type_e arg2 ;
+ void *arg3 = (void *) 0 ;
+ unsigned int arg4 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = (enum tmedia_t140_data_type_e)jarg2;
+
+ arg3 = jenv->GetDirectBufferAddress(jarg3);
+
+ arg4 = (unsigned int)jarg4;
+ result = (bool)(arg1)->sendT140Data(arg2,(void const *)arg3,arg4);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1sendT140Data_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jbyteArray jarg3) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ enum tmedia_t140_data_type_e arg2 ;
+ void *arg3 = (void *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = (enum tmedia_t140_data_type_e)jarg2;
+
+ arg3 = jenv->GetDirectBufferAddress(jarg3);
+
+ result = (bool)(arg1)->sendT140Data(arg2,(void const *)arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1sendT140Data_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ enum tmedia_t140_data_type_e arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = (enum tmedia_t140_data_type_e)jarg2;
+ result = (bool)(arg1)->sendT140Data(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setT140Callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ CallSession *arg1 = (CallSession *) 0 ;
+ T140Callback *arg2 = (T140Callback *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(CallSession **)&jarg1;
+ arg2 = *(T140Callback **)&jarg2;
+ result = (bool)(arg1)->setT140Callback((T140Callback const *)arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1MsrpSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jlong jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ MsrpCallback *arg2 = (MsrpCallback *) 0 ;
+ MsrpSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = *(MsrpCallback **)&jarg2;
+ result = (MsrpSession *)new MsrpSession(arg1,arg2);
+ *(MsrpSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MsrpSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ MsrpSession *arg1 = (MsrpSession *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(MsrpSession **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ MsrpSession *arg1 = (MsrpSession *) 0 ;
+ MsrpCallback *arg2 = (MsrpCallback *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(MsrpSession **)&jarg1;
+ arg2 = *(MsrpCallback **)&jarg2;
+ result = (bool)(arg1)->setCallback(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1callMsrp_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) {
+ jboolean jresult = 0 ;
+ MsrpSession *arg1 = (MsrpSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ ActionConfig *arg3 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg3_;
+ arg1 = *(MsrpSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = *(ActionConfig **)&jarg3;
+ result = (bool)(arg1)->callMsrp((char const *)arg2,arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1callMsrp_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ MsrpSession *arg1 = (MsrpSession *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpSession **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->callMsrp((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1callMsrp_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) {
+ jboolean jresult = 0 ;
+ MsrpSession *arg1 = (MsrpSession *) 0 ;
+ SipUri *arg2 = (SipUri *) 0 ;
+ ActionConfig *arg3 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ (void)jarg3_;
+ arg1 = *(MsrpSession **)&jarg1;
+ arg2 = *(SipUri **)&jarg2;
+ arg3 = *(ActionConfig **)&jarg3;
+ result = (bool)(arg1)->callMsrp((SipUri const *)arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1callMsrp_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ MsrpSession *arg1 = (MsrpSession *) 0 ;
+ SipUri *arg2 = (SipUri *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(MsrpSession **)&jarg1;
+ arg2 = *(SipUri **)&jarg2;
+ result = (bool)(arg1)->callMsrp((SipUri const *)arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1sendMessage_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) {
+ jboolean jresult = 0 ;
+ MsrpSession *arg1 = (MsrpSession *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ ActionConfig *arg4 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg4_;
+ arg1 = *(MsrpSession **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ arg4 = *(ActionConfig **)&jarg4;
+ result = (bool)(arg1)->sendMessage((void const *)arg2,arg3,arg4);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1sendMessage_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jboolean jresult = 0 ;
+ MsrpSession *arg1 = (MsrpSession *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpSession **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (bool)(arg1)->sendMessage((void const *)arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1sendFile_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ MsrpSession *arg1 = (MsrpSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(MsrpSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->sendFile(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1sendFile_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ MsrpSession *arg1 = (MsrpSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpSession **)&jarg1;
+ result = (bool)(arg1)->sendFile();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1MessagingSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ MessagingSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ result = (MessagingSession *)new MessagingSession(arg1);
+ *(MessagingSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MessagingSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ MessagingSession *arg1 = (MessagingSession *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(MessagingSession **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1send_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) {
+ jboolean jresult = 0 ;
+ MessagingSession *arg1 = (MessagingSession *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ ActionConfig *arg4 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg4_;
+ arg1 = *(MessagingSession **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ arg4 = *(ActionConfig **)&jarg4;
+ result = (bool)(arg1)->send((void const *)arg2,arg3,arg4);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1send_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jboolean jresult = 0 ;
+ MessagingSession *arg1 = (MessagingSession *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MessagingSession **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (bool)(arg1)->send((void const *)arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ MessagingSession *arg1 = (MessagingSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(MessagingSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->accept(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ MessagingSession *arg1 = (MessagingSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MessagingSession **)&jarg1;
+ result = (bool)(arg1)->accept();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ MessagingSession *arg1 = (MessagingSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(MessagingSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->reject(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ MessagingSession *arg1 = (MessagingSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MessagingSession **)&jarg1;
+ result = (bool)(arg1)->reject();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1InfoSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ InfoSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ result = (InfoSession *)new InfoSession(arg1);
+ *(InfoSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1InfoSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ InfoSession *arg1 = (InfoSession *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(InfoSession **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1send_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) {
+ jboolean jresult = 0 ;
+ InfoSession *arg1 = (InfoSession *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ ActionConfig *arg4 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg4_;
+ arg1 = *(InfoSession **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ arg4 = *(ActionConfig **)&jarg4;
+ result = (bool)(arg1)->send((void const *)arg2,arg3,arg4);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1send_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jboolean jresult = 0 ;
+ InfoSession *arg1 = (InfoSession *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(InfoSession **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (bool)(arg1)->send((void const *)arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ InfoSession *arg1 = (InfoSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(InfoSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->accept(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ InfoSession *arg1 = (InfoSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(InfoSession **)&jarg1;
+ result = (bool)(arg1)->accept();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ InfoSession *arg1 = (InfoSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(InfoSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->reject(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ InfoSession *arg1 = (InfoSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(InfoSession **)&jarg1;
+ result = (bool)(arg1)->reject();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1OptionsSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ OptionsSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ result = (OptionsSession *)new OptionsSession(arg1);
+ *(OptionsSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1OptionsSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ OptionsSession *arg1 = (OptionsSession *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(OptionsSession **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1send_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ OptionsSession *arg1 = (OptionsSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(OptionsSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->send(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1send_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ OptionsSession *arg1 = (OptionsSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(OptionsSession **)&jarg1;
+ result = (bool)(arg1)->send();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ OptionsSession *arg1 = (OptionsSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(OptionsSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->accept(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ OptionsSession *arg1 = (OptionsSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(OptionsSession **)&jarg1;
+ result = (bool)(arg1)->accept();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ OptionsSession *arg1 = (OptionsSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(OptionsSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->reject(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ OptionsSession *arg1 = (OptionsSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(OptionsSession **)&jarg1;
+ result = (bool)(arg1)->reject();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1PublicationSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ PublicationSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ result = (PublicationSession *)new PublicationSession(arg1);
+ *(PublicationSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1PublicationSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ PublicationSession *arg1 = (PublicationSession *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(PublicationSession **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1publish_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) {
+ jboolean jresult = 0 ;
+ PublicationSession *arg1 = (PublicationSession *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ ActionConfig *arg4 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg4_;
+ arg1 = *(PublicationSession **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ arg4 = *(ActionConfig **)&jarg4;
+ result = (bool)(arg1)->publish((void const *)arg2,arg3,arg4);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1publish_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jboolean jresult = 0 ;
+ PublicationSession *arg1 = (PublicationSession *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(PublicationSession **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (bool)(arg1)->publish((void const *)arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1unPublish_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ PublicationSession *arg1 = (PublicationSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(PublicationSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->unPublish(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1unPublish_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ PublicationSession *arg1 = (PublicationSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(PublicationSession **)&jarg1;
+ result = (bool)(arg1)->unPublish();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1RegistrationSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ RegistrationSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ result = (RegistrationSession *)new RegistrationSession(arg1);
+ *(RegistrationSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1RegistrationSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ RegistrationSession *arg1 = (RegistrationSession *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(RegistrationSession **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1register_1_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ RegistrationSession *arg1 = (RegistrationSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(RegistrationSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->register_(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1register_1_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ RegistrationSession *arg1 = (RegistrationSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(RegistrationSession **)&jarg1;
+ result = (bool)(arg1)->register_();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1unRegister_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ RegistrationSession *arg1 = (RegistrationSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(RegistrationSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->unRegister(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1unRegister_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ RegistrationSession *arg1 = (RegistrationSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(RegistrationSession **)&jarg1;
+ result = (bool)(arg1)->unRegister();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ RegistrationSession *arg1 = (RegistrationSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(RegistrationSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->accept(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ RegistrationSession *arg1 = (RegistrationSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(RegistrationSession **)&jarg1;
+ result = (bool)(arg1)->accept();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ RegistrationSession *arg1 = (RegistrationSession *) 0 ;
+ ActionConfig *arg2 = (ActionConfig *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(RegistrationSession **)&jarg1;
+ arg2 = *(ActionConfig **)&jarg2;
+ result = (bool)(arg1)->reject(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ RegistrationSession *arg1 = (RegistrationSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(RegistrationSession **)&jarg1;
+ result = (bool)(arg1)->reject();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SubscriptionSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ SubscriptionSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ result = (SubscriptionSession *)new SubscriptionSession(arg1);
+ *(SubscriptionSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SubscriptionSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ SubscriptionSession *arg1 = (SubscriptionSession *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(SubscriptionSession **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionSession_1subscribe(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ SubscriptionSession *arg1 = (SubscriptionSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SubscriptionSession **)&jarg1;
+ result = (bool)(arg1)->subscribe();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionSession_1unSubscribe(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ SubscriptionSession *arg1 = (SubscriptionSession *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SubscriptionSession **)&jarg1;
+ result = (bool)(arg1)->unSubscribe();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyPluginMgr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(ProxyPluginMgr **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1createInstance(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ;
+ ProxyPluginMgr *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyPluginMgrCallback **)&jarg1;
+ result = (ProxyPluginMgr *)ProxyPluginMgr::createInstance(arg1);
+ *(ProxyPluginMgr **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1getInstance(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ ProxyPluginMgr *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (ProxyPluginMgr *)ProxyPluginMgr::getInstance();
+ *(ProxyPluginMgr **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findPlugin(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
+ jlong jresult = 0 ;
+ ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ;
+ uint64_t arg2 ;
+ ProxyPlugin *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyPluginMgr **)&jarg1;
+ {
+ jclass clazz;
+ jmethodID mid;
+ jbyteArray ba;
+ jbyte* bae;
+ jsize sz;
+ int i;
+
+ if (!jarg2) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
+ return 0;
+ }
+ clazz = jenv->GetObjectClass(jarg2);
+ mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
+ ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
+ bae = jenv->GetByteArrayElements(ba, 0);
+ sz = jenv->GetArrayLength(ba);
+ arg2 = 0;
+ for(i=0; i<sz; i++) {
+ arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
+ }
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ }
+ result = (ProxyPlugin *)(arg1)->findPlugin(arg2);
+ *(ProxyPlugin **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findAudioConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
+ jlong jresult = 0 ;
+ ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ;
+ uint64_t arg2 ;
+ ProxyAudioConsumer *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyPluginMgr **)&jarg1;
+ {
+ jclass clazz;
+ jmethodID mid;
+ jbyteArray ba;
+ jbyte* bae;
+ jsize sz;
+ int i;
+
+ if (!jarg2) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
+ return 0;
+ }
+ clazz = jenv->GetObjectClass(jarg2);
+ mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
+ ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
+ bae = jenv->GetByteArrayElements(ba, 0);
+ sz = jenv->GetArrayLength(ba);
+ arg2 = 0;
+ for(i=0; i<sz; i++) {
+ arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
+ }
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ }
+ result = (ProxyAudioConsumer *)(arg1)->findAudioConsumer(arg2);
+ *(ProxyAudioConsumer **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findVideoConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
+ jlong jresult = 0 ;
+ ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ;
+ uint64_t arg2 ;
+ ProxyVideoConsumer *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyPluginMgr **)&jarg1;
+ {
+ jclass clazz;
+ jmethodID mid;
+ jbyteArray ba;
+ jbyte* bae;
+ jsize sz;
+ int i;
+
+ if (!jarg2) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
+ return 0;
+ }
+ clazz = jenv->GetObjectClass(jarg2);
+ mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
+ ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
+ bae = jenv->GetByteArrayElements(ba, 0);
+ sz = jenv->GetArrayLength(ba);
+ arg2 = 0;
+ for(i=0; i<sz; i++) {
+ arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
+ }
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ }
+ result = (ProxyVideoConsumer *)(arg1)->findVideoConsumer(arg2);
+ *(ProxyVideoConsumer **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findAudioProducer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
+ jlong jresult = 0 ;
+ ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ;
+ uint64_t arg2 ;
+ ProxyAudioProducer *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyPluginMgr **)&jarg1;
+ {
+ jclass clazz;
+ jmethodID mid;
+ jbyteArray ba;
+ jbyte* bae;
+ jsize sz;
+ int i;
+
+ if (!jarg2) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
+ return 0;
+ }
+ clazz = jenv->GetObjectClass(jarg2);
+ mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
+ ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
+ bae = jenv->GetByteArrayElements(ba, 0);
+ sz = jenv->GetArrayLength(ba);
+ arg2 = 0;
+ for(i=0; i<sz; i++) {
+ arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
+ }
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ }
+ result = (ProxyAudioProducer *)(arg1)->findAudioProducer(arg2);
+ *(ProxyAudioProducer **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findVideoProducer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
+ jlong jresult = 0 ;
+ ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ;
+ uint64_t arg2 ;
+ ProxyVideoProducer *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyPluginMgr **)&jarg1;
+ {
+ jclass clazz;
+ jmethodID mid;
+ jbyteArray ba;
+ jbyte* bae;
+ jsize sz;
+ int i;
+
+ if (!jarg2) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
+ return 0;
+ }
+ clazz = jenv->GetObjectClass(jarg2);
+ mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
+ ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
+ bae = jenv->GetByteArrayElements(ba, 0);
+ sz = jenv->GetArrayLength(ba);
+ arg2 = 0;
+ for(i=0; i<sz; i++) {
+ arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
+ }
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ }
+ result = (ProxyVideoProducer *)(arg1)->findVideoProducer(arg2);
+ *(ProxyVideoProducer **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyPluginMgrCallback(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ ProxyPluginMgrCallback *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (ProxyPluginMgrCallback *)new SwigDirector_ProxyPluginMgrCallback(jenv);
+ *(ProxyPluginMgrCallback **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyPluginMgrCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(ProxyPluginMgrCallback **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1OnPluginCreated(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jint jarg3) {
+ jint jresult = 0 ;
+ ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ;
+ uint64_t arg2 ;
+ enum twrap_proxy_plugin_type_e arg3 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyPluginMgrCallback **)&jarg1;
+ {
+ jclass clazz;
+ jmethodID mid;
+ jbyteArray ba;
+ jbyte* bae;
+ jsize sz;
+ int i;
+
+ if (!jarg2) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
+ return 0;
+ }
+ clazz = jenv->GetObjectClass(jarg2);
+ mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
+ ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
+ bae = jenv->GetByteArrayElements(ba, 0);
+ sz = jenv->GetArrayLength(ba);
+ arg2 = 0;
+ for(i=0; i<sz; i++) {
+ arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
+ }
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ }
+ arg3 = (enum twrap_proxy_plugin_type_e)jarg3;
+ result = (int)(arg1)->OnPluginCreated(arg2,arg3);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1OnPluginCreatedSwigExplicitProxyPluginMgrCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jint jarg3) {
+ jint jresult = 0 ;
+ ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ;
+ uint64_t arg2 ;
+ enum twrap_proxy_plugin_type_e arg3 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyPluginMgrCallback **)&jarg1;
+ {
+ jclass clazz;
+ jmethodID mid;
+ jbyteArray ba;
+ jbyte* bae;
+ jsize sz;
+ int i;
+
+ if (!jarg2) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
+ return 0;
+ }
+ clazz = jenv->GetObjectClass(jarg2);
+ mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
+ ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
+ bae = jenv->GetByteArrayElements(ba, 0);
+ sz = jenv->GetArrayLength(ba);
+ arg2 = 0;
+ for(i=0; i<sz; i++) {
+ arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
+ }
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ }
+ arg3 = (enum twrap_proxy_plugin_type_e)jarg3;
+ result = (int)(arg1)->ProxyPluginMgrCallback::OnPluginCreated(arg2,arg3);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1OnPluginDestroyed(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jint jarg3) {
+ jint jresult = 0 ;
+ ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ;
+ uint64_t arg2 ;
+ enum twrap_proxy_plugin_type_e arg3 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyPluginMgrCallback **)&jarg1;
+ {
+ jclass clazz;
+ jmethodID mid;
+ jbyteArray ba;
+ jbyte* bae;
+ jsize sz;
+ int i;
+
+ if (!jarg2) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
+ return 0;
+ }
+ clazz = jenv->GetObjectClass(jarg2);
+ mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
+ ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
+ bae = jenv->GetByteArrayElements(ba, 0);
+ sz = jenv->GetArrayLength(ba);
+ arg2 = 0;
+ for(i=0; i<sz; i++) {
+ arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
+ }
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ }
+ arg3 = (enum twrap_proxy_plugin_type_e)jarg3;
+ result = (int)(arg1)->OnPluginDestroyed(arg2,arg3);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1OnPluginDestroyedSwigExplicitProxyPluginMgrCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jint jarg3) {
+ jint jresult = 0 ;
+ ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ;
+ uint64_t arg2 ;
+ enum twrap_proxy_plugin_type_e arg3 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyPluginMgrCallback **)&jarg1;
+ {
+ jclass clazz;
+ jmethodID mid;
+ jbyteArray ba;
+ jbyte* bae;
+ jsize sz;
+ int i;
+
+ if (!jarg2) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
+ return 0;
+ }
+ clazz = jenv->GetObjectClass(jarg2);
+ mid = jenv->GetMethodID(clazz, "toByteArray", "()[B");
+ ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid);
+ bae = jenv->GetByteArrayElements(ba, 0);
+ sz = jenv->GetArrayLength(ba);
+ arg2 = 0;
+ for(i=0; i<sz; i++) {
+ arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
+ }
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ }
+ arg3 = (enum twrap_proxy_plugin_type_e)jarg3;
+ result = (int)(arg1)->ProxyPluginMgrCallback::OnPluginDestroyed(arg2,arg3);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
+ ProxyPluginMgrCallback *obj = *((ProxyPluginMgrCallback **)&objarg);
+ (void)jcls;
+ SwigDirector_ProxyPluginMgrCallback *director = static_cast<SwigDirector_ProxyPluginMgrCallback *>(obj);
+ if (director) {
+ director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
+ }
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
+ ProxyPluginMgrCallback *obj = *((ProxyPluginMgrCallback **)&objarg);
+ SwigDirector_ProxyPluginMgrCallback *director = static_cast<SwigDirector_ProxyPluginMgrCallback *>(obj);
+ (void)jcls;
+ if (director) {
+ director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
+ }
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyPlugin(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ ProxyPlugin *arg1 = (ProxyPlugin *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(ProxyPlugin **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPlugin_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyPlugin *arg1 = (ProxyPlugin *) 0 ;
+ twrap_proxy_plugin_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyPlugin **)&jarg1;
+ result = (twrap_proxy_plugin_type_t)((ProxyPlugin const *)arg1)->getType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPlugin_1getId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jobject jresult = 0 ;
+ ProxyPlugin *arg1 = (ProxyPlugin *) 0 ;
+ uint64_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyPlugin **)&jarg1;
+ result = (uint64_t)((ProxyPlugin const *)arg1)->getId();
+ {
+ jbyteArray ba = jenv->NewByteArray(9);
+ jbyte* bae = jenv->GetByteArrayElements(ba, 0);
+ jclass clazz = jenv->FindClass("java/math/BigInteger");
+ jmethodID mid = jenv->GetMethodID(clazz, "<init>", "([B)V");
+ jobject bigint;
+ int i;
+
+ bae[0] = 0;
+ for(i=1; i<9; i++ ) {
+ bae[i] = (jbyte)(result>>8*(8-i));
+ }
+
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ bigint = jenv->NewObject(clazz, mid, ba);
+ jresult = bigint;
+ }
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ ProxyAudioConsumerCallback *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (ProxyAudioConsumerCallback *)new SwigDirector_ProxyAudioConsumerCallback(jenv);
+ *(ProxyAudioConsumerCallback **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1prepare(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
+ jint jresult = 0 ;
+ ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
+ int arg2 ;
+ int arg3 ;
+ int arg4 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
+ arg2 = (int)jarg2;
+ arg3 = (int)jarg3;
+ arg4 = (int)jarg4;
+ result = (int)(arg1)->prepare(arg2,arg3,arg4);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1prepareSwigExplicitProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
+ jint jresult = 0 ;
+ ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
+ int arg2 ;
+ int arg3 ;
+ int arg4 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
+ arg2 = (int)jarg2;
+ arg3 = (int)jarg3;
+ arg4 = (int)jarg4;
+ result = (int)(arg1)->ProxyAudioConsumerCallback::prepare(arg2,arg3,arg4);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
+ result = (int)(arg1)->start();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1startSwigExplicitProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
+ result = (int)(arg1)->ProxyAudioConsumerCallback::start();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1pause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
+ result = (int)(arg1)->pause();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1pauseSwigExplicitProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
+ result = (int)(arg1)->ProxyAudioConsumerCallback::pause();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
+ result = (int)(arg1)->stop();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1stopSwigExplicitProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumerCallback **)&jarg1;
+ result = (int)(arg1)->ProxyAudioConsumerCallback::stop();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
+ ProxyAudioConsumerCallback *obj = *((ProxyAudioConsumerCallback **)&objarg);
+ (void)jcls;
+ SwigDirector_ProxyAudioConsumerCallback *director = static_cast<SwigDirector_ProxyAudioConsumerCallback *>(obj);
+ if (director) {
+ director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
+ }
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
+ ProxyAudioConsumerCallback *obj = *((ProxyAudioConsumerCallback **)&objarg);
+ SwigDirector_ProxyAudioConsumerCallback *director = static_cast<SwigDirector_ProxyAudioConsumerCallback *>(obj);
+ (void)jcls;
+ if (director) {
+ director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
+ }
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyAudioConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(ProxyAudioConsumer **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setActualSndCardPlaybackParams(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
+ jboolean jresult = 0 ;
+ ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
+ int arg2 ;
+ int arg3 ;
+ int arg4 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumer **)&jarg1;
+ arg2 = (int)jarg2;
+ arg3 = (int)jarg3;
+ arg4 = (int)jarg4;
+ result = (bool)(arg1)->setActualSndCardPlaybackParams(arg2,arg3,arg4);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1queryForResampler(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4, jint jarg5, jint jarg6) {
+ jboolean jresult = 0 ;
+ ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
+ uint16_t arg2 ;
+ uint16_t arg3 ;
+ uint16_t arg4 ;
+ uint16_t arg5 ;
+ uint16_t arg6 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumer **)&jarg1;
+ arg2 = (uint16_t)jarg2;
+ arg3 = (uint16_t)jarg3;
+ arg4 = (uint16_t)jarg4;
+ arg5 = (uint16_t)jarg5;
+ arg6 = (uint16_t)jarg6;
+ result = (bool)(arg1)->queryForResampler(arg2,arg3,arg4,arg5,arg6);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setPullBuffer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jboolean jresult = 0 ;
+ ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumer **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (bool)(arg1)->setPullBuffer((void const *)arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1pull_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jlong jresult = 0 ;
+ ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumer **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (unsigned int)(arg1)->pull(arg2,arg3);
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1pull_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
+ jlong jresult = 0 ;
+ ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumer **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ result = (unsigned int)(arg1)->pull(arg2);
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1pull_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumer **)&jarg1;
+ result = (unsigned int)(arg1)->pull();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setGain(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
+ jboolean jresult = 0 ;
+ ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
+ unsigned int arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumer **)&jarg1;
+ arg2 = (unsigned int)jarg2;
+ result = (bool)(arg1)->setGain(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1getGain(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumer **)&jarg1;
+ result = (unsigned int)(arg1)->getGain();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1reset(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumer **)&jarg1;
+ result = (bool)(arg1)->reset();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
+ ProxyAudioConsumerCallback *arg2 = (ProxyAudioConsumerCallback *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(ProxyAudioConsumer **)&jarg1;
+ arg2 = *(ProxyAudioConsumerCallback **)&jarg2;
+ (arg1)->setCallback(arg2);
+}
+
+
+SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1getMediaSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jobject jresult = 0 ;
+ ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
+ uint64_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioConsumer **)&jarg1;
+ result = (uint64_t)(arg1)->getMediaSessionId();
+ {
+ jbyteArray ba = jenv->NewByteArray(9);
+ jbyte* bae = jenv->GetByteArrayElements(ba, 0);
+ jclass clazz = jenv->FindClass("java/math/BigInteger");
+ jmethodID mid = jenv->GetMethodID(clazz, "<init>", "([B)V");
+ jobject bigint;
+ int i;
+
+ bae[0] = 0;
+ for(i=1; i<9; i++ ) {
+ bae[i] = (jbyte)(result>>8*(8-i));
+ }
+
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ bigint = jenv->NewObject(clazz, mid, ba);
+ jresult = bigint;
+ }
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1registerPlugin(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)ProxyAudioConsumer::registerPlugin();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ ProxyVideoConsumerCallback *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (ProxyVideoConsumerCallback *)new SwigDirector_ProxyVideoConsumerCallback(jenv);
+ *(ProxyVideoConsumerCallback **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1prepare(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
+ jint jresult = 0 ;
+ ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
+ int arg2 ;
+ int arg3 ;
+ int arg4 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
+ arg2 = (int)jarg2;
+ arg3 = (int)jarg3;
+ arg4 = (int)jarg4;
+ result = (int)(arg1)->prepare(arg2,arg3,arg4);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1prepareSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
+ jint jresult = 0 ;
+ ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
+ int arg2 ;
+ int arg3 ;
+ int arg4 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
+ arg2 = (int)jarg2;
+ arg3 = (int)jarg3;
+ arg4 = (int)jarg4;
+ result = (int)(arg1)->ProxyVideoConsumerCallback::prepare(arg2,arg3,arg4);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1consume(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
+ ProxyVideoFrame *arg2 = (ProxyVideoFrame *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
+ arg2 = *(ProxyVideoFrame **)&jarg2;
+ result = (int)(arg1)->consume((ProxyVideoFrame const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1consumeSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
+ ProxyVideoFrame *arg2 = (ProxyVideoFrame *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
+ arg2 = *(ProxyVideoFrame **)&jarg2;
+ result = (int)(arg1)->ProxyVideoConsumerCallback::consume((ProxyVideoFrame const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1bufferCopied(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
+ jint jresult = 0 ;
+ ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
+ unsigned int arg2 ;
+ unsigned int arg3 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
+ arg2 = (unsigned int)jarg2;
+ arg3 = (unsigned int)jarg3;
+ result = (int)(arg1)->bufferCopied(arg2,arg3);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1bufferCopiedSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
+ jint jresult = 0 ;
+ ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
+ unsigned int arg2 ;
+ unsigned int arg3 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
+ arg2 = (unsigned int)jarg2;
+ arg3 = (unsigned int)jarg3;
+ result = (int)(arg1)->ProxyVideoConsumerCallback::bufferCopied(arg2,arg3);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
+ result = (int)(arg1)->start();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1startSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
+ result = (int)(arg1)->ProxyVideoConsumerCallback::start();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1pause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
+ result = (int)(arg1)->pause();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1pauseSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
+ result = (int)(arg1)->ProxyVideoConsumerCallback::pause();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
+ result = (int)(arg1)->stop();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1stopSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumerCallback **)&jarg1;
+ result = (int)(arg1)->ProxyVideoConsumerCallback::stop();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
+ ProxyVideoConsumerCallback *obj = *((ProxyVideoConsumerCallback **)&objarg);
+ (void)jcls;
+ SwigDirector_ProxyVideoConsumerCallback *director = static_cast<SwigDirector_ProxyVideoConsumerCallback *>(obj);
+ if (director) {
+ director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
+ }
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
+ ProxyVideoConsumerCallback *obj = *((ProxyVideoConsumerCallback **)&objarg);
+ SwigDirector_ProxyVideoConsumerCallback *director = static_cast<SwigDirector_ProxyVideoConsumerCallback *>(obj);
+ (void)jcls;
+ if (director) {
+ director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
+ }
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(ProxyVideoConsumer **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setDisplaySize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
+ jboolean jresult = 0 ;
+ ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
+ unsigned int arg2 ;
+ unsigned int arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumer **)&jarg1;
+ arg2 = (unsigned int)jarg2;
+ arg3 = (unsigned int)jarg3;
+ result = (bool)(arg1)->setDisplaySize(arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getDisplayWidth(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumer **)&jarg1;
+ result = (unsigned int)(arg1)->getDisplayWidth();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getDisplayHeight(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumer **)&jarg1;
+ result = (unsigned int)(arg1)->getDisplayHeight();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getDecodedWidth(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumer **)&jarg1;
+ result = (unsigned int)(arg1)->getDecodedWidth();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getDecodedHeight(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumer **)&jarg1;
+ result = (unsigned int)(arg1)->getDecodedHeight();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
+ ProxyVideoConsumerCallback *arg2 = (ProxyVideoConsumerCallback *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(ProxyVideoConsumer **)&jarg1;
+ arg2 = *(ProxyVideoConsumerCallback **)&jarg2;
+ (arg1)->setCallback(arg2);
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setAutoResizeDisplay(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
+ jboolean jresult = 0 ;
+ ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
+ bool arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumer **)&jarg1;
+ arg2 = jarg2 ? true : false;
+ result = (bool)(arg1)->setAutoResizeDisplay(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getAutoResizeDisplay(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumer **)&jarg1;
+ result = (bool)((ProxyVideoConsumer const *)arg1)->getAutoResizeDisplay();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setConsumeBuffer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jboolean jresult = 0 ;
+ ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumer **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (bool)(arg1)->setConsumeBuffer((void const *)arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1pull(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jlong jresult = 0 ;
+ ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumer **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (unsigned int)(arg1)->pull(arg2,arg3);
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1reset(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumer **)&jarg1;
+ result = (bool)(arg1)->reset();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getMediaSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jobject jresult = 0 ;
+ ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
+ uint64_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoConsumer **)&jarg1;
+ result = (uint64_t)(arg1)->getMediaSessionId();
+ {
+ jbyteArray ba = jenv->NewByteArray(9);
+ jbyte* bae = jenv->GetByteArrayElements(ba, 0);
+ jclass clazz = jenv->FindClass("java/math/BigInteger");
+ jmethodID mid = jenv->GetMethodID(clazz, "<init>", "([B)V");
+ jobject bigint;
+ int i;
+
+ bae[0] = 0;
+ for(i=1; i<9; i++ ) {
+ bae[i] = (jbyte)(result>>8*(8-i));
+ }
+
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ bigint = jenv->NewObject(clazz, mid, ba);
+ jresult = bigint;
+ }
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1registerPlugin(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)ProxyVideoConsumer::registerPlugin();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setDefaultChroma(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ tmedia_chroma_t arg1 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (tmedia_chroma_t)jarg1;
+ ProxyVideoConsumer::setDefaultChroma(arg1);
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setDefaultAutoResizeDisplay(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
+ bool arg1 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = jarg1 ? true : false;
+ ProxyVideoConsumer::setDefaultAutoResizeDisplay(arg1);
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoFrame(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(ProxyVideoFrame **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoFrame_1getSize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoFrame **)&jarg1;
+ result = (unsigned int)(arg1)->getSize();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoFrame_1getContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jlong jresult = 0 ;
+ ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoFrame **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (unsigned int)(arg1)->getContent(arg2,arg3);
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoFrame_1getFrameWidth(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoFrame **)&jarg1;
+ result = (unsigned int)((ProxyVideoFrame const *)arg1)->getFrameWidth();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoFrame_1getFrameHeight(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoFrame **)&jarg1;
+ result = (unsigned int)((ProxyVideoFrame const *)arg1)->getFrameHeight();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ ProxyAudioProducerCallback *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (ProxyAudioProducerCallback *)new SwigDirector_ProxyAudioProducerCallback(jenv);
+ *(ProxyAudioProducerCallback **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(ProxyAudioProducerCallback **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1prepare(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
+ jint jresult = 0 ;
+ ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
+ int arg2 ;
+ int arg3 ;
+ int arg4 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducerCallback **)&jarg1;
+ arg2 = (int)jarg2;
+ arg3 = (int)jarg3;
+ arg4 = (int)jarg4;
+ result = (int)(arg1)->prepare(arg2,arg3,arg4);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1prepareSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
+ jint jresult = 0 ;
+ ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
+ int arg2 ;
+ int arg3 ;
+ int arg4 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducerCallback **)&jarg1;
+ arg2 = (int)jarg2;
+ arg3 = (int)jarg3;
+ arg4 = (int)jarg4;
+ result = (int)(arg1)->ProxyAudioProducerCallback::prepare(arg2,arg3,arg4);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducerCallback **)&jarg1;
+ result = (int)(arg1)->start();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1startSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducerCallback **)&jarg1;
+ result = (int)(arg1)->ProxyAudioProducerCallback::start();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1pause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducerCallback **)&jarg1;
+ result = (int)(arg1)->pause();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1pauseSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducerCallback **)&jarg1;
+ result = (int)(arg1)->ProxyAudioProducerCallback::pause();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducerCallback **)&jarg1;
+ result = (int)(arg1)->stop();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1stopSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducerCallback **)&jarg1;
+ result = (int)(arg1)->ProxyAudioProducerCallback::stop();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1fillPushBuffer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducerCallback **)&jarg1;
+ result = (int)(arg1)->fillPushBuffer();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1fillPushBufferSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducerCallback **)&jarg1;
+ result = (int)(arg1)->ProxyAudioProducerCallback::fillPushBuffer();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
+ ProxyAudioProducerCallback *obj = *((ProxyAudioProducerCallback **)&objarg);
+ (void)jcls;
+ SwigDirector_ProxyAudioProducerCallback *director = static_cast<SwigDirector_ProxyAudioProducerCallback *>(obj);
+ if (director) {
+ director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
+ }
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
+ ProxyAudioProducerCallback *obj = *((ProxyAudioProducerCallback **)&objarg);
+ SwigDirector_ProxyAudioProducerCallback *director = static_cast<SwigDirector_ProxyAudioProducerCallback *>(obj);
+ (void)jcls;
+ if (director) {
+ director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
+ }
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyAudioProducer(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(ProxyAudioProducer **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setActualSndCardRecordParams(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
+ jboolean jresult = 0 ;
+ ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
+ int arg2 ;
+ int arg3 ;
+ int arg4 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducer **)&jarg1;
+ arg2 = (int)jarg2;
+ arg3 = (int)jarg3;
+ arg4 = (int)jarg4;
+ result = (bool)(arg1)->setActualSndCardRecordParams(arg2,arg3,arg4);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setPushBuffer_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jboolean jarg4) {
+ jboolean jresult = 0 ;
+ ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ bool arg4 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducer **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ arg4 = jarg4 ? true : false;
+ result = (bool)(arg1)->setPushBuffer((void const *)arg2,arg3,arg4);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setPushBuffer_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jboolean jresult = 0 ;
+ ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducer **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (bool)(arg1)->setPushBuffer((void const *)arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1push_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jint jresult = 0 ;
+ ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducer **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (int)(arg1)->push((void const *)arg2,arg3);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1push_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
+ jint jresult = 0 ;
+ ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
+ void *arg2 = (void *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducer **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ result = (int)(arg1)->push((void const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1push_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducer **)&jarg1;
+ result = (int)(arg1)->push();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setGain(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
+ jboolean jresult = 0 ;
+ ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
+ unsigned int arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducer **)&jarg1;
+ arg2 = (unsigned int)jarg2;
+ result = (bool)(arg1)->setGain(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1getGain(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducer **)&jarg1;
+ result = (unsigned int)(arg1)->getGain();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
+ ProxyAudioProducerCallback *arg2 = (ProxyAudioProducerCallback *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(ProxyAudioProducer **)&jarg1;
+ arg2 = *(ProxyAudioProducerCallback **)&jarg2;
+ (arg1)->setCallback(arg2);
+}
+
+
+SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1getMediaSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jobject jresult = 0 ;
+ ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
+ uint64_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyAudioProducer **)&jarg1;
+ result = (uint64_t)(arg1)->getMediaSessionId();
+ {
+ jbyteArray ba = jenv->NewByteArray(9);
+ jbyte* bae = jenv->GetByteArrayElements(ba, 0);
+ jclass clazz = jenv->FindClass("java/math/BigInteger");
+ jmethodID mid = jenv->GetMethodID(clazz, "<init>", "([B)V");
+ jobject bigint;
+ int i;
+
+ bae[0] = 0;
+ for(i=1; i<9; i++ ) {
+ bae[i] = (jbyte)(result>>8*(8-i));
+ }
+
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ bigint = jenv->NewObject(clazz, mid, ba);
+ jresult = bigint;
+ }
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1registerPlugin(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)ProxyAudioProducer::registerPlugin();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ ProxyVideoProducerCallback *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (ProxyVideoProducerCallback *)new SwigDirector_ProxyVideoProducerCallback(jenv);
+ *(ProxyVideoProducerCallback **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(ProxyVideoProducerCallback **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1prepare(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
+ jint jresult = 0 ;
+ ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
+ int arg2 ;
+ int arg3 ;
+ int arg4 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoProducerCallback **)&jarg1;
+ arg2 = (int)jarg2;
+ arg3 = (int)jarg3;
+ arg4 = (int)jarg4;
+ result = (int)(arg1)->prepare(arg2,arg3,arg4);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1prepareSwigExplicitProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) {
+ jint jresult = 0 ;
+ ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
+ int arg2 ;
+ int arg3 ;
+ int arg4 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoProducerCallback **)&jarg1;
+ arg2 = (int)jarg2;
+ arg3 = (int)jarg3;
+ arg4 = (int)jarg4;
+ result = (int)(arg1)->ProxyVideoProducerCallback::prepare(arg2,arg3,arg4);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoProducerCallback **)&jarg1;
+ result = (int)(arg1)->start();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1startSwigExplicitProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoProducerCallback **)&jarg1;
+ result = (int)(arg1)->ProxyVideoProducerCallback::start();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1pause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoProducerCallback **)&jarg1;
+ result = (int)(arg1)->pause();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1pauseSwigExplicitProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoProducerCallback **)&jarg1;
+ result = (int)(arg1)->ProxyVideoProducerCallback::pause();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoProducerCallback **)&jarg1;
+ result = (int)(arg1)->stop();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1stopSwigExplicitProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoProducerCallback **)&jarg1;
+ result = (int)(arg1)->ProxyVideoProducerCallback::stop();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
+ ProxyVideoProducerCallback *obj = *((ProxyVideoProducerCallback **)&objarg);
+ (void)jcls;
+ SwigDirector_ProxyVideoProducerCallback *director = static_cast<SwigDirector_ProxyVideoProducerCallback *>(obj);
+ if (director) {
+ director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
+ }
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
+ ProxyVideoProducerCallback *obj = *((ProxyVideoProducerCallback **)&objarg);
+ SwigDirector_ProxyVideoProducerCallback *director = static_cast<SwigDirector_ProxyVideoProducerCallback *>(obj);
+ (void)jcls;
+ if (director) {
+ director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
+ }
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoProducer(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(ProxyVideoProducer **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1getRotation(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoProducer **)&jarg1;
+ result = (int)((ProxyVideoProducer const *)arg1)->getRotation();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setRotation(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
+ jboolean jresult = 0 ;
+ ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
+ int arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoProducer **)&jarg1;
+ arg2 = (int)jarg2;
+ result = (bool)(arg1)->setRotation(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1getMirror(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoProducer **)&jarg1;
+ result = (bool)((ProxyVideoProducer const *)arg1)->getMirror();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setMirror(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
+ jboolean jresult = 0 ;
+ ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
+ bool arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoProducer **)&jarg1;
+ arg2 = jarg2 ? true : false;
+ result = (bool)(arg1)->setMirror(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setActualCameraOutputSize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
+ jboolean jresult = 0 ;
+ ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
+ unsigned int arg2 ;
+ unsigned int arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoProducer **)&jarg1;
+ arg2 = (unsigned int)jarg2;
+ arg3 = (unsigned int)jarg3;
+ result = (bool)(arg1)->setActualCameraOutputSize(arg2,arg3);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1push(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jint jresult = 0 ;
+ ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoProducer **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (int)(arg1)->push((void const *)arg2,arg3);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
+ ProxyVideoProducerCallback *arg2 = (ProxyVideoProducerCallback *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(ProxyVideoProducer **)&jarg1;
+ arg2 = *(ProxyVideoProducerCallback **)&jarg2;
+ (arg1)->setCallback(arg2);
+}
+
+
+SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1getMediaSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jobject jresult = 0 ;
+ ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ;
+ uint64_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(ProxyVideoProducer **)&jarg1;
+ result = (uint64_t)(arg1)->getMediaSessionId();
+ {
+ jbyteArray ba = jenv->NewByteArray(9);
+ jbyte* bae = jenv->GetByteArrayElements(ba, 0);
+ jclass clazz = jenv->FindClass("java/math/BigInteger");
+ jmethodID mid = jenv->GetMethodID(clazz, "<init>", "([B)V");
+ jobject bigint;
+ int i;
+
+ bae[0] = 0;
+ for(i=1; i<9; i++ ) {
+ bae[i] = (jbyte)(result>>8*(8-i));
+ }
+
+ jenv->ReleaseByteArrayElements(ba, bae, 0);
+ bigint = jenv->NewObject(clazz, mid, ba);
+ jresult = bigint;
+ }
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1registerPlugin(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)ProxyVideoProducer::registerPlugin();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setDefaultChroma(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ tmedia_chroma_t arg1 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (tmedia_chroma_t)jarg1;
+ ProxyVideoProducer::setDefaultChroma(arg1);
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipCallback(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ SipCallback *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (SipCallback *)new SwigDirector_SipCallback(jenv);
+ *(SipCallback **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ SipCallback *arg1 = (SipCallback *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(SipCallback **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnDialogEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ DialogEvent *arg2 = (DialogEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(DialogEvent **)&jarg2;
+ result = (int)(arg1)->OnDialogEvent((DialogEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnDialogEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ DialogEvent *arg2 = (DialogEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(DialogEvent **)&jarg2;
+ result = (int)(arg1)->SipCallback::OnDialogEvent((DialogEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnStackEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ StackEvent *arg2 = (StackEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(StackEvent **)&jarg2;
+ result = (int)(arg1)->OnStackEvent((StackEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnStackEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ StackEvent *arg2 = (StackEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(StackEvent **)&jarg2;
+ result = (int)(arg1)->SipCallback::OnStackEvent((StackEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnInviteEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ InviteEvent *arg2 = (InviteEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(InviteEvent **)&jarg2;
+ result = (int)(arg1)->OnInviteEvent((InviteEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnInviteEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ InviteEvent *arg2 = (InviteEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(InviteEvent **)&jarg2;
+ result = (int)(arg1)->SipCallback::OnInviteEvent((InviteEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnMessagingEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ MessagingEvent *arg2 = (MessagingEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(MessagingEvent **)&jarg2;
+ result = (int)(arg1)->OnMessagingEvent((MessagingEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnMessagingEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ MessagingEvent *arg2 = (MessagingEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(MessagingEvent **)&jarg2;
+ result = (int)(arg1)->SipCallback::OnMessagingEvent((MessagingEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnInfoEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ InfoEvent *arg2 = (InfoEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(InfoEvent **)&jarg2;
+ result = (int)(arg1)->OnInfoEvent((InfoEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnInfoEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ InfoEvent *arg2 = (InfoEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(InfoEvent **)&jarg2;
+ result = (int)(arg1)->SipCallback::OnInfoEvent((InfoEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnOptionsEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ OptionsEvent *arg2 = (OptionsEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(OptionsEvent **)&jarg2;
+ result = (int)(arg1)->OnOptionsEvent((OptionsEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnOptionsEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ OptionsEvent *arg2 = (OptionsEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(OptionsEvent **)&jarg2;
+ result = (int)(arg1)->SipCallback::OnOptionsEvent((OptionsEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnPublicationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ PublicationEvent *arg2 = (PublicationEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(PublicationEvent **)&jarg2;
+ result = (int)(arg1)->OnPublicationEvent((PublicationEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnPublicationEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ PublicationEvent *arg2 = (PublicationEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(PublicationEvent **)&jarg2;
+ result = (int)(arg1)->SipCallback::OnPublicationEvent((PublicationEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnRegistrationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ RegistrationEvent *arg2 = (RegistrationEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(RegistrationEvent **)&jarg2;
+ result = (int)(arg1)->OnRegistrationEvent((RegistrationEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnRegistrationEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ RegistrationEvent *arg2 = (RegistrationEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(RegistrationEvent **)&jarg2;
+ result = (int)(arg1)->SipCallback::OnRegistrationEvent((RegistrationEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSubscriptionEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(SubscriptionEvent **)&jarg2;
+ result = (int)(arg1)->OnSubscriptionEvent((SubscriptionEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSubscriptionEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = *(SubscriptionEvent **)&jarg2;
+ result = (int)(arg1)->SipCallback::OnSubscriptionEvent((SubscriptionEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
+ SipCallback *obj = *((SipCallback **)&objarg);
+ (void)jcls;
+ SwigDirector_SipCallback *director = static_cast<SwigDirector_SipCallback *>(obj);
+ if (director) {
+ director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
+ }
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
+ SipCallback *obj = *((SipCallback **)&objarg);
+ SwigDirector_SipCallback *director = static_cast<SwigDirector_SipCallback *>(obj);
+ (void)jcls;
+ if (director) {
+ director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
+ }
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SafeObject(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ SafeObject *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (SafeObject *)new SafeObject();
+ *(SafeObject **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SafeObject(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ SafeObject *arg1 = (SafeObject *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(SafeObject **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SafeObject_1Lock(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ SafeObject *arg1 = (SafeObject *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SafeObject **)&jarg1;
+ result = (int)((SafeObject const *)arg1)->Lock();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SafeObject_1UnLock(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ SafeObject *arg1 = (SafeObject *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SafeObject **)&jarg1;
+ result = (int)((SafeObject const *)arg1)->UnLock();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipStack(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) {
+ jlong jresult = 0 ;
+ SipCallback *arg1 = (SipCallback *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *arg4 = (char *) 0 ;
+ SipStack *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipCallback **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = 0;
+ if (jarg4) {
+ arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
+ if (!arg4) return 0;
+ }
+ result = (SipStack *)new SipStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
+ *(SipStack **)&jresult = result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipStack(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ SipStack *arg1 = (SipStack *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(SipStack **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ result = (bool)(arg1)->start();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ DDebugCallback *arg2 = (DDebugCallback *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = *(DDebugCallback **)&jarg2;
+ result = (bool)(arg1)->setDebugCallback(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setDisplayName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->setDisplayName((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setRealm(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->setRealm((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIMPI(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->setIMPI((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIMPU(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->setIMPU((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setPassword(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->setPassword((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setAMF(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->setAMF((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setOperatorId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->setOperatorId((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setProxyCSCF(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3, jstring jarg4, jstring jarg5) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ unsigned short arg3 ;
+ char *arg4 = (char *) 0 ;
+ char *arg5 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = (unsigned short)jarg3;
+ arg4 = 0;
+ if (jarg4) {
+ arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
+ if (!arg4) return 0;
+ }
+ arg5 = 0;
+ if (jarg5) {
+ arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0);
+ if (!arg5) return 0;
+ }
+ result = (bool)(arg1)->setProxyCSCF((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
+ if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setLocalIP_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (bool)(arg1)->setLocalIP((char const *)arg2,(char const *)arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setLocalIP_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->setLocalIP((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setLocalPort_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ unsigned short arg2 ;
+ char *arg3 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = (unsigned short)jarg2;
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (bool)(arg1)->setLocalPort(arg2,(char const *)arg3);
+ jresult = (jboolean)result;
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setLocalPort_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ unsigned short arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = (unsigned short)jarg2;
+ result = (bool)(arg1)->setLocalPort(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setEarlyIMS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ bool arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = jarg2 ? true : false;
+ result = (bool)(arg1)->setEarlyIMS(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1removeHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->removeHeader((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1addDnsServer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->addDnsServer((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setDnsDiscovery(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ bool arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = jarg2 ? true : false;
+ result = (bool)(arg1)->setDnsDiscovery(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setAoR(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ int arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = (int)jarg3;
+ result = (bool)(arg1)->setAoR((char const *)arg2,arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSigCompParams(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3, jlong jarg4, jboolean jarg5) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ unsigned int arg2 ;
+ unsigned int arg3 ;
+ unsigned int arg4 ;
+ bool arg5 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = (unsigned int)jarg2;
+ arg3 = (unsigned int)jarg3;
+ arg4 = (unsigned int)jarg4;
+ arg5 = jarg5 ? true : false;
+ result = (bool)(arg1)->setSigCompParams(arg2,arg3,arg4,arg5);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1addSigCompCompartment(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->addSigCompCompartment((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1removeSigCompCompartment(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->removeSigCompCompartment((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSTUNEnabledForICE(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ bool arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = jarg2 ? true : false;
+ result = (bool)(arg1)->setSTUNEnabledForICE(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSTUNServer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ unsigned short arg3 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = (unsigned short)jarg3;
+ result = (bool)(arg1)->setSTUNServer((char const *)arg2,arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSTUNCred(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (bool)(arg1)->setSTUNCred((char const *)arg2,(char const *)arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSTUNEnabled(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ bool arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = jarg2 ? true : false;
+ result = (bool)(arg1)->setSTUNEnabled(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setTLSSecAgree(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ bool arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = jarg2 ? true : false;
+ result = (bool)(arg1)->setTLSSecAgree(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSSLCertificates_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jboolean jarg5) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *arg4 = (char *) 0 ;
+ bool arg5 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = 0;
+ if (jarg4) {
+ arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
+ if (!arg4) return 0;
+ }
+ arg5 = jarg5 ? true : false;
+ result = (bool)(arg1)->setSSLCertificates((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSSLCertificates_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *arg4 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = 0;
+ if (jarg4) {
+ arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
+ if (!arg4) return 0;
+ }
+ result = (bool)(arg1)->setSSLCertificates((char const *)arg2,(char const *)arg3,(char const *)arg4);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSSLCretificates_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jboolean jarg5) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *arg4 = (char *) 0 ;
+ bool arg5 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = 0;
+ if (jarg4) {
+ arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
+ if (!arg4) return 0;
+ }
+ arg5 = jarg5 ? true : false;
+ result = (bool)(arg1)->setSSLCretificates((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSSLCretificates_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *arg4 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = 0;
+ if (jarg4) {
+ arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
+ if (!arg4) return 0;
+ }
+ result = (bool)(arg1)->setSSLCretificates((char const *)arg2,(char const *)arg3,(char const *)arg4);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIPSecSecAgree(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ bool arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = jarg2 ? true : false;
+ result = (bool)(arg1)->setIPSecSecAgree(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIPSecParameters(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *arg4 = (char *) 0 ;
+ char *arg5 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = 0;
+ if (jarg4) {
+ arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
+ if (!arg4) return 0;
+ }
+ arg5 = 0;
+ if (jarg5) {
+ arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0);
+ if (!arg5) return 0;
+ }
+ result = (bool)(arg1)->setIPSecParameters((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
+ if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5);
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1dnsENUM(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) {
+ jstring jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *arg4 = (char *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = 0;
+ if (jarg4) {
+ arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
+ if (!arg4) return 0;
+ }
+ result = (char *)(arg1)->dnsENUM((char const *)arg2,(char const *)arg3,(char const *)arg4);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1dnsNaptrSrv(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jintArray jarg4) {
+ jstring jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ unsigned short *arg4 = (unsigned short *) 0 ;
+ unsigned short temp4 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ {
+ if (!jarg4) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
+ return 0;
+ }
+ if (jenv->GetArrayLength(jarg4) == 0) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
+ return 0;
+ }
+ temp4 = (unsigned short)0;
+ arg4 = &temp4;
+ }
+ result = (char *)(arg1)->dnsNaptrSrv((char const *)arg2,(char const *)arg3,arg4);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ {
+ jint jvalue = (jint)temp4;
+ jenv->SetIntArrayRegion(jarg4, 0, 1, &jvalue);
+ }
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1dnsSrv(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jintArray jarg3) {
+ jstring jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ unsigned short *arg3 = (unsigned short *) 0 ;
+ unsigned short temp3 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ {
+ if (!jarg3) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
+ return 0;
+ }
+ if (jenv->GetArrayLength(jarg3) == 0) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
+ return 0;
+ }
+ temp3 = (unsigned short)0;
+ arg3 = &temp3;
+ }
+ result = (char *)(arg1)->dnsSrv((char const *)arg2,arg3);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ {
+ jint jvalue = (jint)temp3;
+ jenv->SetIntArrayRegion(jarg3, 0, 1, &jvalue);
+ }
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setMaxFDs(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ unsigned int arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = (unsigned int)jarg2;
+ result = (bool)(arg1)->setMaxFDs(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1getLocalIPnPort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jintArray jarg3) {
+ jstring jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ unsigned short *arg3 = (unsigned short *) 0 ;
+ unsigned short temp3 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ {
+ if (!jarg3) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
+ return 0;
+ }
+ if (jenv->GetArrayLength(jarg3) == 0) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
+ return 0;
+ }
+ temp3 = (unsigned short)0;
+ arg3 = &temp3;
+ }
+ result = (char *)(arg1)->getLocalIPnPort((char const *)arg2,arg3);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ {
+ jint jvalue = (jint)temp3;
+ jenv->SetIntArrayRegion(jarg3, 0, 1, &jvalue);
+ }
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1getPreferredIdentity(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ result = (char *)(arg1)->getPreferredIdentity();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1isValid(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ result = (bool)(arg1)->isValid();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ SipStack *arg1 = (SipStack *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SipStack **)&jarg1;
+ result = (bool)(arg1)->stop();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1initialize(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)SipStack::initialize();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1deInitialize(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)SipStack::deInitialize();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setCodecs(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ tdav_codec_id_t arg1 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (tdav_codec_id_t)jarg1;
+ SipStack::setCodecs(arg1);
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setCodecs_12(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ int64_t arg1 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int64_t)jarg1;
+ SipStack::setCodecs_2(arg1);
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setCodecPriority(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) {
+ jboolean jresult = 0 ;
+ tdav_codec_id_t arg1 ;
+ int arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (tdav_codec_id_t)jarg1;
+ arg2 = (int)jarg2;
+ result = (bool)SipStack::setCodecPriority(arg1,arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setCodecPriority_12(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) {
+ jboolean jresult = 0 ;
+ int arg1 ;
+ int arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int)jarg1;
+ arg2 = (int)jarg2;
+ result = (bool)SipStack::setCodecPriority_2(arg1,arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1isCodecSupported(JNIEnv *jenv, jclass jcls, jint jarg1) {
+ jboolean jresult = 0 ;
+ tdav_codec_id_t arg1 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (tdav_codec_id_t)jarg1;
+ result = (bool)SipStack::isCodecSupported(arg1);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1isIPSecSupported(JNIEnv *jenv, jclass jcls) {
+ jboolean jresult = 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ result = (bool)SipStack::isIPSecSupported();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1XcapSelector(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ XcapSelector *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ result = (XcapSelector *)new XcapSelector(arg1);
+ *(XcapSelector **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapSelector(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ XcapSelector *arg1 = (XcapSelector *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(XcapSelector **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setAUID(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jlong jresult = 0 ;
+ XcapSelector *arg1 = (XcapSelector *) 0 ;
+ char *arg2 = (char *) 0 ;
+ XcapSelector *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapSelector **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (XcapSelector *)(arg1)->setAUID((char const *)arg2);
+ *(XcapSelector **)&jresult = result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jlong jresult = 0 ;
+ XcapSelector *arg1 = (XcapSelector *) 0 ;
+ char *arg2 = (char *) 0 ;
+ XcapSelector *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapSelector **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (XcapSelector *)(arg1)->setName((char const *)arg2);
+ *(XcapSelector **)&jresult = result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) {
+ jlong jresult = 0 ;
+ XcapSelector *arg1 = (XcapSelector *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *arg4 = (char *) 0 ;
+ XcapSelector *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapSelector **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = 0;
+ if (jarg4) {
+ arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
+ if (!arg4) return 0;
+ }
+ result = (XcapSelector *)(arg1)->setAttribute((char const *)arg2,(char const *)arg3,(char const *)arg4);
+ *(XcapSelector **)&jresult = result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setPos(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) {
+ jlong jresult = 0 ;
+ XcapSelector *arg1 = (XcapSelector *) 0 ;
+ char *arg2 = (char *) 0 ;
+ unsigned int arg3 ;
+ XcapSelector *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapSelector **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = (unsigned int)jarg3;
+ result = (XcapSelector *)(arg1)->setPos((char const *)arg2,arg3);
+ *(XcapSelector **)&jresult = result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setPosAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jstring jarg4, jstring jarg5) {
+ jlong jresult = 0 ;
+ XcapSelector *arg1 = (XcapSelector *) 0 ;
+ char *arg2 = (char *) 0 ;
+ unsigned int arg3 ;
+ char *arg4 = (char *) 0 ;
+ char *arg5 = (char *) 0 ;
+ XcapSelector *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapSelector **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = (unsigned int)jarg3;
+ arg4 = 0;
+ if (jarg4) {
+ arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
+ if (!arg4) return 0;
+ }
+ arg5 = 0;
+ if (jarg5) {
+ arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0);
+ if (!arg5) return 0;
+ }
+ result = (XcapSelector *)(arg1)->setPosAttribute((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5);
+ *(XcapSelector **)&jresult = result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
+ if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setNamespace(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
+ jlong jresult = 0 ;
+ XcapSelector *arg1 = (XcapSelector *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ XcapSelector *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapSelector **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (XcapSelector *)(arg1)->setNamespace((char const *)arg2,(char const *)arg3);
+ *(XcapSelector **)&jresult = result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1getString(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ XcapSelector *arg1 = (XcapSelector *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapSelector **)&jarg1;
+ result = (char *)(arg1)->getString();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1reset(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ XcapSelector *arg1 = (XcapSelector *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapSelector **)&jarg1;
+ (arg1)->reset();
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1XcapMessage(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ XcapMessage *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (XcapMessage *)new XcapMessage();
+ *(XcapMessage **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ XcapMessage *arg1 = (XcapMessage *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(XcapMessage **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jshort JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jshort jresult = 0 ;
+ XcapMessage *arg1 = (XcapMessage *) 0 ;
+ short result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapMessage **)&jarg1;
+ result = (short)((XcapMessage const *)arg1)->getCode();
+ jresult = (jshort)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getPhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ XcapMessage *arg1 = (XcapMessage *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapMessage **)&jarg1;
+ result = (char *)((XcapMessage const *)arg1)->getPhrase();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapHeaderValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) {
+ jstring jresult = 0 ;
+ XcapMessage *arg1 = (XcapMessage *) 0 ;
+ char *arg2 = (char *) 0 ;
+ unsigned int arg3 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapMessage **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = (unsigned int)jarg3;
+ result = (char *)(arg1)->getXcapHeaderValue((char const *)arg2,arg3);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapHeaderValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jstring jresult = 0 ;
+ XcapMessage *arg1 = (XcapMessage *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapMessage **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (char *)(arg1)->getXcapHeaderValue((char const *)arg2);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapHeaderParamValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jlong jarg4) {
+ jstring jresult = 0 ;
+ XcapMessage *arg1 = (XcapMessage *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ unsigned int arg4 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapMessage **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = (unsigned int)jarg4;
+ result = (char *)(arg1)->getXcapHeaderParamValue((char const *)arg2,(char const *)arg3,arg4);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapHeaderParamValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
+ jstring jresult = 0 ;
+ XcapMessage *arg1 = (XcapMessage *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapMessage **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (char *)(arg1)->getXcapHeaderParamValue((char const *)arg2,(char const *)arg3);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapContentLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ XcapMessage *arg1 = (XcapMessage *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapMessage **)&jarg1;
+ result = (unsigned int)(arg1)->getXcapContentLength();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jlong jresult = 0 ;
+ XcapMessage *arg1 = (XcapMessage *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapMessage **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (unsigned int)(arg1)->getXcapContent(arg2,arg3);
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ XcapEvent *arg1 = (XcapEvent *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(XcapEvent **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ XcapEvent *arg1 = (XcapEvent *) 0 ;
+ thttp_event_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapEvent **)&jarg1;
+ result = (thttp_event_type_t)(arg1)->getType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapEvent_1getXcapMessage(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ XcapEvent *arg1 = (XcapEvent *) 0 ;
+ XcapMessage *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapEvent **)&jarg1;
+ result = (XcapMessage *)((XcapEvent const *)arg1)->getXcapMessage();
+ *(XcapMessage **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1XcapCallback(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ XcapCallback *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (XcapCallback *)new SwigDirector_XcapCallback(jenv);
+ *(XcapCallback **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ XcapCallback *arg1 = (XcapCallback *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(XcapCallback **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapCallback_1onEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ XcapCallback *arg1 = (XcapCallback *) 0 ;
+ XcapEvent *arg2 = (XcapEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(XcapCallback **)&jarg1;
+ arg2 = *(XcapEvent **)&jarg2;
+ result = (int)((XcapCallback const *)arg1)->onEvent((XcapEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapCallback_1onEventSwigExplicitXcapCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ XcapCallback *arg1 = (XcapCallback *) 0 ;
+ XcapEvent *arg2 = (XcapEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(XcapCallback **)&jarg1;
+ arg2 = *(XcapEvent **)&jarg2;
+ result = (int)((XcapCallback const *)arg1)->XcapCallback::onEvent((XcapEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
+ XcapCallback *obj = *((XcapCallback **)&objarg);
+ (void)jcls;
+ SwigDirector_XcapCallback *director = static_cast<SwigDirector_XcapCallback *>(obj);
+ if (director) {
+ director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
+ }
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
+ XcapCallback *obj = *((XcapCallback **)&objarg);
+ SwigDirector_XcapCallback *director = static_cast<SwigDirector_XcapCallback *>(obj);
+ (void)jcls;
+ if (director) {
+ director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
+ }
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1XcapStack(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) {
+ jlong jresult = 0 ;
+ XcapCallback *arg1 = (XcapCallback *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *arg4 = (char *) 0 ;
+ XcapStack *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapCallback **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = 0;
+ if (jarg4) {
+ arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
+ if (!arg4) return 0;
+ }
+ result = (XcapStack *)new XcapStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
+ *(XcapStack **)&jresult = result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapStack(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ XcapStack *arg1 = (XcapStack *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(XcapStack **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1registerAUID(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jboolean jarg6) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *arg4 = (char *) 0 ;
+ char *arg5 = (char *) 0 ;
+ bool arg6 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = 0;
+ if (jarg4) {
+ arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
+ if (!arg4) return 0;
+ }
+ arg5 = 0;
+ if (jarg5) {
+ arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0);
+ if (!arg5) return 0;
+ }
+ arg6 = jarg6 ? true : false;
+ result = (bool)(arg1)->registerAUID((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
+ if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ result = (bool)(arg1)->start();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setCredentials(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (bool)(arg1)->setCredentials((char const *)arg2,(char const *)arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setXcapRoot(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->setXcapRoot((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setLocalIP(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->setLocalIP((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setLocalPort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ unsigned int arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = (unsigned int)jarg2;
+ result = (bool)(arg1)->setLocalPort(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1removeHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->removeHeader((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setTimeout(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ unsigned int arg2 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = (unsigned int)jarg2;
+ result = (bool)(arg1)->setTimeout(arg2);
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1getDocument(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->getDocument((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1getElement(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->getElement((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1getAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->getAttribute((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1deleteDocument(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->deleteDocument((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1deleteElement(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->deleteElement((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1deleteAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (bool)(arg1)->deleteAttribute((char const *)arg2);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1putDocument(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jbyteArray jarg3, jlong jarg4, jstring jarg5) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ void *arg3 = (void *) 0 ;
+ unsigned int arg4 ;
+ char *arg5 = (char *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+
+ arg3 = jenv->GetDirectBufferAddress(jarg3);
+
+ arg4 = (unsigned int)jarg4;
+ arg5 = 0;
+ if (jarg5) {
+ arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0);
+ if (!arg5) return 0;
+ }
+ result = (bool)(arg1)->putDocument((char const *)arg2,(void const *)arg3,arg4,(char const *)arg5);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1putElement(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jbyteArray jarg3, jlong jarg4) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ void *arg3 = (void *) 0 ;
+ unsigned int arg4 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+
+ arg3 = jenv->GetDirectBufferAddress(jarg3);
+
+ arg4 = (unsigned int)jarg4;
+ result = (bool)(arg1)->putElement((char const *)arg2,(void const *)arg3,arg4);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1putAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jbyteArray jarg3, jlong jarg4) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ char *arg2 = (char *) 0 ;
+ void *arg3 = (void *) 0 ;
+ unsigned int arg4 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+
+ arg3 = jenv->GetDirectBufferAddress(jarg3);
+
+ arg4 = (unsigned int)jarg4;
+ result = (bool)(arg1)->putAttribute((char const *)arg2,(void const *)arg3,arg4);
+ jresult = (jboolean)result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ XcapStack *arg1 = (XcapStack *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(XcapStack **)&jarg1;
+ result = (bool)(arg1)->stop();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1RPMessage(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ RPMessage *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (RPMessage *)new RPMessage();
+ *(RPMessage **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1RPMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ RPMessage *arg1 = (RPMessage *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(RPMessage **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RPMessage_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ RPMessage *arg1 = (RPMessage *) 0 ;
+ twrap_rpmessage_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(RPMessage **)&jarg1;
+ result = (twrap_rpmessage_type_t)(arg1)->getType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RPMessage_1getPayloadLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ RPMessage *arg1 = (RPMessage *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(RPMessage **)&jarg1;
+ result = (unsigned int)(arg1)->getPayloadLength();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RPMessage_1getPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jlong jresult = 0 ;
+ RPMessage *arg1 = (RPMessage *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(RPMessage **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (unsigned int)(arg1)->getPayload(arg2,arg3);
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SMSData(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ SMSData *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (SMSData *)new SMSData();
+ *(SMSData **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SMSData(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ SMSData *arg1 = (SMSData *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(SMSData **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ SMSData *arg1 = (SMSData *) 0 ;
+ twrap_sms_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SMSData **)&jarg1;
+ result = (twrap_sms_type_t)(arg1)->getType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getMR(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ SMSData *arg1 = (SMSData *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SMSData **)&jarg1;
+ result = (int)(arg1)->getMR();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getPayloadLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ SMSData *arg1 = (SMSData *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SMSData **)&jarg1;
+ result = (unsigned int)(arg1)->getPayloadLength();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jlong jresult = 0 ;
+ SMSData *arg1 = (SMSData *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SMSData **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (unsigned int)(arg1)->getPayload(arg2,arg3);
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getOA(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ SMSData *arg1 = (SMSData *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SMSData **)&jarg1;
+ result = (char *)(arg1)->getOA();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getDA(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ SMSData *arg1 = (SMSData *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(SMSData **)&jarg1;
+ result = (char *)(arg1)->getDA();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1encodeSubmit(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jstring jarg3, jstring jarg4) {
+ jlong jresult = 0 ;
+ int arg1 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *arg4 = (char *) 0 ;
+ RPMessage *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int)jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = 0;
+ if (jarg4) {
+ arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
+ if (!arg4) return 0;
+ }
+ result = (RPMessage *)SMSEncoder::encodeSubmit(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
+ *(RPMessage **)&jresult = result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1encodeDeliver(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jstring jarg3, jstring jarg4) {
+ jlong jresult = 0 ;
+ int arg1 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *arg4 = (char *) 0 ;
+ RPMessage *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int)jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = 0;
+ if (jarg4) {
+ arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
+ if (!arg4) return 0;
+ }
+ result = (RPMessage *)SMSEncoder::encodeDeliver(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
+ *(RPMessage **)&jresult = result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1encodeACK(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jstring jarg3, jboolean jarg4) {
+ jlong jresult = 0 ;
+ int arg1 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ bool arg4 ;
+ RPMessage *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int)jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = jarg4 ? true : false;
+ result = (RPMessage *)SMSEncoder::encodeACK(arg1,(char const *)arg2,(char const *)arg3,arg4);
+ *(RPMessage **)&jresult = result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1encodeError(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jstring jarg3, jboolean jarg4) {
+ jlong jresult = 0 ;
+ int arg1 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ bool arg4 ;
+ RPMessage *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = (int)jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ arg4 = jarg4 ? true : false;
+ result = (RPMessage *)SMSEncoder::encodeError(arg1,(char const *)arg2,(char const *)arg3,arg4);
+ *(RPMessage **)&jresult = result;
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1decode(JNIEnv *jenv, jclass jcls, jbyteArray jarg1, jlong jarg2, jboolean jarg3) {
+ jlong jresult = 0 ;
+ void *arg1 = (void *) 0 ;
+ unsigned int arg2 ;
+ bool arg3 ;
+ SMSData *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+
+ arg1 = jenv->GetDirectBufferAddress(jarg1);
+
+ arg2 = (unsigned int)jarg2;
+ arg3 = jarg3 ? true : false;
+ result = (SMSData *)SMSEncoder::decode((void const *)arg1,arg2,arg3);
+ *(SMSData **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SMSEncoder(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ SMSEncoder *arg1 = (SMSEncoder *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(SMSEncoder **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1MsrpMessage(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ MsrpMessage *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (MsrpMessage *)new MsrpMessage();
+ *(MsrpMessage **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MsrpMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ MsrpMessage *arg1 = (MsrpMessage *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(MsrpMessage **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1isRequest(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ MsrpMessage *arg1 = (MsrpMessage *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpMessage **)&jarg1;
+ result = (bool)(arg1)->isRequest();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jshort JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jshort jresult = 0 ;
+ MsrpMessage *arg1 = (MsrpMessage *) 0 ;
+ short result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpMessage **)&jarg1;
+ result = (short)(arg1)->getCode();
+ jresult = (jshort)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getPhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jstring jresult = 0 ;
+ MsrpMessage *arg1 = (MsrpMessage *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpMessage **)&jarg1;
+ result = (char *)(arg1)->getPhrase();
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getRequestType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ MsrpMessage *arg1 = (MsrpMessage *) 0 ;
+ tmsrp_request_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpMessage **)&jarg1;
+ result = (tmsrp_request_type_t)(arg1)->getRequestType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getByteRange(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlongArray jarg2, jlongArray jarg3, jlongArray jarg4) {
+ MsrpMessage *arg1 = (MsrpMessage *) 0 ;
+ int64_t *arg2 = (int64_t *) 0 ;
+ int64_t *arg3 = (int64_t *) 0 ;
+ int64_t *arg4 = (int64_t *) 0 ;
+ int64_t temp2 ;
+ int64_t temp3 ;
+ int64_t temp4 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpMessage **)&jarg1;
+ {
+ if (!jarg2) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
+ return ;
+ }
+ if (jenv->GetArrayLength(jarg2) == 0) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
+ return ;
+ }
+ temp2 = (int64_t)0;
+ arg2 = &temp2;
+ }
+ {
+ if (!jarg3) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
+ return ;
+ }
+ if (jenv->GetArrayLength(jarg3) == 0) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
+ return ;
+ }
+ temp3 = (int64_t)0;
+ arg3 = &temp3;
+ }
+ {
+ if (!jarg4) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
+ return ;
+ }
+ if (jenv->GetArrayLength(jarg4) == 0) {
+ SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
+ return ;
+ }
+ temp4 = (int64_t)0;
+ arg4 = &temp4;
+ }
+ (arg1)->getByteRange(arg2,arg3,arg4);
+ {
+ jlong jvalue = (jlong)temp2;
+ jenv->SetLongArrayRegion(jarg2, 0, 1, &jvalue);
+ }
+ {
+ jlong jvalue = (jlong)temp3;
+ jenv->SetLongArrayRegion(jarg3, 0, 1, &jvalue);
+ }
+ {
+ jlong jvalue = (jlong)temp4;
+ jenv->SetLongArrayRegion(jarg4, 0, 1, &jvalue);
+ }
+
+
+
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1isLastChunck(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ MsrpMessage *arg1 = (MsrpMessage *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpMessage **)&jarg1;
+ result = (bool)(arg1)->isLastChunck();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1isFirstChunck(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ MsrpMessage *arg1 = (MsrpMessage *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpMessage **)&jarg1;
+ result = (bool)(arg1)->isFirstChunck();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1isSuccessReport(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jboolean jresult = 0 ;
+ MsrpMessage *arg1 = (MsrpMessage *) 0 ;
+ bool result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpMessage **)&jarg1;
+ result = (bool)(arg1)->isSuccessReport();
+ jresult = (jboolean)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getMsrpHeaderValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
+ jstring jresult = 0 ;
+ MsrpMessage *arg1 = (MsrpMessage *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpMessage **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (char *)(arg1)->getMsrpHeaderValue((char const *)arg2);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getMsrpHeaderParamValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
+ jstring jresult = 0 ;
+ MsrpMessage *arg1 = (MsrpMessage *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpMessage **)&jarg1;
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
+ if (!arg2) return 0;
+ }
+ arg3 = 0;
+ if (jarg3) {
+ arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
+ if (!arg3) return 0;
+ }
+ result = (char *)(arg1)->getMsrpHeaderParamValue((char const *)arg2,(char const *)arg3);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
+ if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
+ delete [] result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getMsrpContentLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ MsrpMessage *arg1 = (MsrpMessage *) 0 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpMessage **)&jarg1;
+ result = (unsigned int)(arg1)->getMsrpContentLength();
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getMsrpContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) {
+ jlong jresult = 0 ;
+ MsrpMessage *arg1 = (MsrpMessage *) 0 ;
+ void *arg2 = (void *) 0 ;
+ unsigned int arg3 ;
+ unsigned int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpMessage **)&jarg1;
+
+ arg2 = jenv->GetDirectBufferAddress(jarg2);
+
+ arg3 = (unsigned int)jarg3;
+ result = (unsigned int)(arg1)->getMsrpContent(arg2,arg3);
+ jresult = (jlong)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MsrpEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ MsrpEvent *arg1 = (MsrpEvent *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(MsrpEvent **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jint jresult = 0 ;
+ MsrpEvent *arg1 = (MsrpEvent *) 0 ;
+ tmsrp_event_type_t result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpEvent **)&jarg1;
+ result = (tmsrp_event_type_t)(arg1)->getType();
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpEvent_1getSipSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ MsrpEvent *arg1 = (MsrpEvent *) 0 ;
+ MsrpSession *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpEvent **)&jarg1;
+ result = (MsrpSession *)(arg1)->getSipSession();
+ *(MsrpSession **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpEvent_1getMessage(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+ jlong jresult = 0 ;
+ MsrpEvent *arg1 = (MsrpEvent *) 0 ;
+ MsrpMessage *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ arg1 = *(MsrpEvent **)&jarg1;
+ result = (MsrpMessage *)((MsrpEvent const *)arg1)->getMessage();
+ *(MsrpMessage **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1MsrpCallback(JNIEnv *jenv, jclass jcls) {
+ jlong jresult = 0 ;
+ MsrpCallback *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (MsrpCallback *)new SwigDirector_MsrpCallback(jenv);
+ *(MsrpCallback **)&jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MsrpCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ MsrpCallback *arg1 = (MsrpCallback *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = *(MsrpCallback **)&jarg1;
+ delete arg1;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpCallback_1OnEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ MsrpCallback *arg1 = (MsrpCallback *) 0 ;
+ MsrpEvent *arg2 = (MsrpEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(MsrpCallback **)&jarg1;
+ arg2 = *(MsrpEvent **)&jarg2;
+ result = (int)(arg1)->OnEvent((MsrpEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpCallback_1OnEventSwigExplicitMsrpCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
+ jint jresult = 0 ;
+ MsrpCallback *arg1 = (MsrpCallback *) 0 ;
+ MsrpEvent *arg2 = (MsrpEvent *) 0 ;
+ int result;
+
+ (void)jenv;
+ (void)jcls;
+ (void)jarg1_;
+ (void)jarg2_;
+ arg1 = *(MsrpCallback **)&jarg1;
+ arg2 = *(MsrpEvent **)&jarg2;
+ result = (int)(arg1)->MsrpCallback::OnEvent((MsrpEvent const *)arg2);
+ jresult = (jint)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
+ MsrpCallback *obj = *((MsrpCallback **)&objarg);
+ (void)jcls;
+ SwigDirector_MsrpCallback *director = static_cast<SwigDirector_MsrpCallback *>(obj);
+ if (director) {
+ director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
+ }
+}
+
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
+ MsrpCallback *obj = *((MsrpCallback **)&objarg);
+ SwigDirector_MsrpCallback *director = static_cast<SwigDirector_MsrpCallback *>(obj);
+ (void)jcls;
+ if (director) {
+ director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
+ }
+}
+
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContentCPIM_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(MediaContent **)&baseptr = *(MediaContentCPIM **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DialogEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SipEvent **)&baseptr = *(DialogEvent **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_StackEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SipEvent **)&baseptr = *(StackEvent **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SipEvent **)&baseptr = *(InviteEvent **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SipEvent **)&baseptr = *(MessagingEvent **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SipEvent **)&baseptr = *(InfoEvent **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SipEvent **)&baseptr = *(OptionsEvent **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SipEvent **)&baseptr = *(PublicationEvent **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SipEvent **)&baseptr = *(RegistrationEvent **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SipEvent **)&baseptr = *(SubscriptionEvent **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SipSession **)&baseptr = *(InviteSession **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(InviteSession **)&baseptr = *(CallSession **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(InviteSession **)&baseptr = *(MsrpSession **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SipSession **)&baseptr = *(MessagingSession **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SipSession **)&baseptr = *(InfoSession **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SipSession **)&baseptr = *(OptionsSession **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SipSession **)&baseptr = *(PublicationSession **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SipSession **)&baseptr = *(RegistrationSession **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SipSession **)&baseptr = *(SubscriptionSession **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(ProxyPlugin **)&baseptr = *(ProxyAudioConsumer **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(ProxyPlugin **)&baseptr = *(ProxyVideoConsumer **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(ProxyPlugin **)&baseptr = *(ProxyAudioProducer **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(ProxyPlugin **)&baseptr = *(ProxyVideoProducer **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+ jlong baseptr = 0;
+ (void)jenv;
+ (void)jcls;
+ *(SafeObject **)&baseptr = *(SipStack **)&jarg1;
+ return baseptr;
+}
+
+SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_swig_1module_1init(JNIEnv *jenv, jclass jcls) {
+ int i;
+
+ static struct {
+ const char *method;
+ const char *signature;
+ } methods[37] = {
+ {
+ "SwigDirector_DDebugCallback_OnDebugInfo", "(Lorg/doubango/tinyWRAP/DDebugCallback;Ljava/lang/String;)I"
+ },
+ {
+ "SwigDirector_DDebugCallback_OnDebugWarn", "(Lorg/doubango/tinyWRAP/DDebugCallback;Ljava/lang/String;)I"
+ },
+ {
+ "SwigDirector_DDebugCallback_OnDebugError", "(Lorg/doubango/tinyWRAP/DDebugCallback;Ljava/lang/String;)I"
+ },
+ {
+ "SwigDirector_DDebugCallback_OnDebugFatal", "(Lorg/doubango/tinyWRAP/DDebugCallback;Ljava/lang/String;)I"
+ },
+ {
+ "SwigDirector_T140Callback_ondata", "(Lorg/doubango/tinyWRAP/T140Callback;J)I"
+ },
+ {
+ "SwigDirector_ProxyPluginMgrCallback_OnPluginCreated", "(Lorg/doubango/tinyWRAP/ProxyPluginMgrCallback;Ljava/math/BigInteger;I)I"
+ },
+ {
+ "SwigDirector_ProxyPluginMgrCallback_OnPluginDestroyed", "(Lorg/doubango/tinyWRAP/ProxyPluginMgrCallback;Ljava/math/BigInteger;I)I"
+ },
+ {
+ "SwigDirector_ProxyAudioConsumerCallback_prepare", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumerCallback;III)I"
+ },
+ {
+ "SwigDirector_ProxyAudioConsumerCallback_start", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumerCallback;)I"
+ },
+ {
+ "SwigDirector_ProxyAudioConsumerCallback_pause", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumerCallback;)I"
+ },
+ {
+ "SwigDirector_ProxyAudioConsumerCallback_stop", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumerCallback;)I"
+ },
+ {
+ "SwigDirector_ProxyVideoConsumerCallback_prepare", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;III)I"
+ },
+ {
+ "SwigDirector_ProxyVideoConsumerCallback_consume", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;J)I"
+ },
+ {
+ "SwigDirector_ProxyVideoConsumerCallback_bufferCopied", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;JJ)I"
+ },
+ {
+ "SwigDirector_ProxyVideoConsumerCallback_start", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;)I"
+ },
+ {
+ "SwigDirector_ProxyVideoConsumerCallback_pause", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;)I"
+ },
+ {
+ "SwigDirector_ProxyVideoConsumerCallback_stop", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;)I"
+ },
+ {
+ "SwigDirector_ProxyAudioProducerCallback_prepare", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;III)I"
+ },
+ {
+ "SwigDirector_ProxyAudioProducerCallback_start", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;)I"
+ },
+ {
+ "SwigDirector_ProxyAudioProducerCallback_pause", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;)I"
+ },
+ {
+ "SwigDirector_ProxyAudioProducerCallback_stop", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;)I"
+ },
+ {
+ "SwigDirector_ProxyAudioProducerCallback_fillPushBuffer", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;)I"
+ },
+ {
+ "SwigDirector_ProxyVideoProducerCallback_prepare", "(Lorg/doubango/tinyWRAP/ProxyVideoProducerCallback;III)I"
+ },
+ {
+ "SwigDirector_ProxyVideoProducerCallback_start", "(Lorg/doubango/tinyWRAP/ProxyVideoProducerCallback;)I"
+ },
+ {
+ "SwigDirector_ProxyVideoProducerCallback_pause", "(Lorg/doubango/tinyWRAP/ProxyVideoProducerCallback;)I"
+ },
+ {
+ "SwigDirector_ProxyVideoProducerCallback_stop", "(Lorg/doubango/tinyWRAP/ProxyVideoProducerCallback;)I"
+ },
+ {
+ "SwigDirector_SipCallback_OnDialogEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
+ },
+ {
+ "SwigDirector_SipCallback_OnStackEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
+ },
+ {
+ "SwigDirector_SipCallback_OnInviteEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
+ },
+ {
+ "SwigDirector_SipCallback_OnMessagingEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
+ },
+ {
+ "SwigDirector_SipCallback_OnInfoEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
+ },
+ {
+ "SwigDirector_SipCallback_OnOptionsEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
+ },
+ {
+ "SwigDirector_SipCallback_OnPublicationEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
+ },
+ {
+ "SwigDirector_SipCallback_OnRegistrationEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
+ },
+ {
+ "SwigDirector_SipCallback_OnSubscriptionEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
+ },
+ {
+ "SwigDirector_XcapCallback_onEvent", "(Lorg/doubango/tinyWRAP/XcapCallback;J)I"
+ },
+ {
+ "SwigDirector_MsrpCallback_OnEvent", "(Lorg/doubango/tinyWRAP/MsrpCallback;J)I"
+ }
+ };
+ Swig::jclass_tinyWRAPJNI = (jclass) jenv->NewGlobalRef(jcls);
+ if (!Swig::jclass_tinyWRAPJNI) return;
+ for (i = 0; i < (int) (sizeof(methods)/sizeof(methods[0])); ++i) {
+ Swig::director_methids[i] = jenv->GetStaticMethodID(jcls, methods[i].method, methods[i].signature);
+ if (!Swig::director_methids[i]) return;
+ }
+}
+
+
+#ifdef __cplusplus
+}
+#endif
+
diff --git a/bindings/java/android/tinyWRAP_wrap.h b/bindings/java/android/tinyWRAP_wrap.h
new file mode 100644
index 0000000..847b552
--- /dev/null
+++ b/bindings/java/android/tinyWRAP_wrap.h
@@ -0,0 +1,192 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * This file is not intended to be easily readable and contains a number of
+ * coding conventions designed to improve portability and efficiency. Do not make
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+#ifndef SWIG_tinyWRAP_WRAP_H_
+#define SWIG_tinyWRAP_WRAP_H_
+
+class SwigDirector_DDebugCallback : public DDebugCallback, public Swig::Director {
+
+public:
+ void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
+ SwigDirector_DDebugCallback(JNIEnv *jenv);
+ virtual ~SwigDirector_DDebugCallback();
+ virtual int OnDebugInfo(char const *message);
+ virtual int OnDebugWarn(char const *message);
+ virtual int OnDebugError(char const *message);
+ virtual int OnDebugFatal(char const *message);
+public:
+ bool swig_overrides(int n) {
+ return (n < 4 ? swig_override[n] : false);
+ }
+protected:
+ bool swig_override[4];
+};
+
+class SwigDirector_T140Callback : public T140Callback, public Swig::Director {
+
+public:
+ void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
+ SwigDirector_T140Callback(JNIEnv *jenv);
+ virtual ~SwigDirector_T140Callback();
+ virtual int ondata(T140CallbackData const *pData);
+public:
+ bool swig_overrides(int n) {
+ return (n < 1 ? swig_override[n] : false);
+ }
+protected:
+ bool swig_override[1];
+};
+
+class SwigDirector_ProxyPluginMgrCallback : public ProxyPluginMgrCallback, public Swig::Director {
+
+public:
+ void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
+ SwigDirector_ProxyPluginMgrCallback(JNIEnv *jenv);
+ virtual ~SwigDirector_ProxyPluginMgrCallback();
+ virtual int OnPluginCreated(uint64_t id, enum twrap_proxy_plugin_type_e type);
+ virtual int OnPluginDestroyed(uint64_t id, enum twrap_proxy_plugin_type_e type);
+public:
+ bool swig_overrides(int n) {
+ return (n < 2 ? swig_override[n] : false);
+ }
+protected:
+ bool swig_override[2];
+};
+
+class SwigDirector_ProxyAudioConsumerCallback : public ProxyAudioConsumerCallback, public Swig::Director {
+
+public:
+ void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
+ SwigDirector_ProxyAudioConsumerCallback(JNIEnv *jenv);
+ virtual ~SwigDirector_ProxyAudioConsumerCallback();
+ virtual int prepare(int ptime, int rate, int channels);
+ virtual int start();
+ virtual int pause();
+ virtual int stop();
+public:
+ bool swig_overrides(int n) {
+ return (n < 4 ? swig_override[n] : false);
+ }
+protected:
+ bool swig_override[4];
+};
+
+class SwigDirector_ProxyVideoConsumerCallback : public ProxyVideoConsumerCallback, public Swig::Director {
+
+public:
+ void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
+ SwigDirector_ProxyVideoConsumerCallback(JNIEnv *jenv);
+ virtual ~SwigDirector_ProxyVideoConsumerCallback();
+ virtual int prepare(int nWidth, int nHeight, int nFps);
+ virtual int consume(ProxyVideoFrame const *frame);
+ virtual int bufferCopied(unsigned int nCopiedSize, unsigned int nAvailableSize);
+ virtual int start();
+ virtual int pause();
+ virtual int stop();
+public:
+ bool swig_overrides(int n) {
+ return (n < 6 ? swig_override[n] : false);
+ }
+protected:
+ bool swig_override[6];
+};
+
+class SwigDirector_ProxyAudioProducerCallback : public ProxyAudioProducerCallback, public Swig::Director {
+
+public:
+ void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
+ SwigDirector_ProxyAudioProducerCallback(JNIEnv *jenv);
+ virtual ~SwigDirector_ProxyAudioProducerCallback();
+ virtual int prepare(int ptime, int rate, int channels);
+ virtual int start();
+ virtual int pause();
+ virtual int stop();
+ virtual int fillPushBuffer();
+public:
+ bool swig_overrides(int n) {
+ return (n < 5 ? swig_override[n] : false);
+ }
+protected:
+ bool swig_override[5];
+};
+
+class SwigDirector_ProxyVideoProducerCallback : public ProxyVideoProducerCallback, public Swig::Director {
+
+public:
+ void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
+ SwigDirector_ProxyVideoProducerCallback(JNIEnv *jenv);
+ virtual ~SwigDirector_ProxyVideoProducerCallback();
+ virtual int prepare(int width, int height, int fps);
+ virtual int start();
+ virtual int pause();
+ virtual int stop();
+public:
+ bool swig_overrides(int n) {
+ return (n < 4 ? swig_override[n] : false);
+ }
+protected:
+ bool swig_override[4];
+};
+
+class SwigDirector_SipCallback : public SipCallback, public Swig::Director {
+
+public:
+ void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
+ SwigDirector_SipCallback(JNIEnv *jenv);
+ virtual ~SwigDirector_SipCallback();
+ virtual int OnDialogEvent(DialogEvent const *e);
+ virtual int OnStackEvent(StackEvent const *e);
+ virtual int OnInviteEvent(InviteEvent const *e);
+ virtual int OnMessagingEvent(MessagingEvent const *e);
+ virtual int OnInfoEvent(InfoEvent const *e);
+ virtual int OnOptionsEvent(OptionsEvent const *e);
+ virtual int OnPublicationEvent(PublicationEvent const *e);
+ virtual int OnRegistrationEvent(RegistrationEvent const *e);
+ virtual int OnSubscriptionEvent(SubscriptionEvent const *e);
+public:
+ bool swig_overrides(int n) {
+ return (n < 9 ? swig_override[n] : false);
+ }
+protected:
+ bool swig_override[9];
+};
+
+class SwigDirector_XcapCallback : public XcapCallback, public Swig::Director {
+
+public:
+ void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
+ SwigDirector_XcapCallback(JNIEnv *jenv);
+ virtual ~SwigDirector_XcapCallback();
+ virtual int onEvent(XcapEvent const *e) const;
+public:
+ bool swig_overrides(int n) {
+ return (n < 1 ? swig_override[n] : false);
+ }
+protected:
+ bool swig_override[1];
+};
+
+class SwigDirector_MsrpCallback : public MsrpCallback, public Swig::Director {
+
+public:
+ void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
+ SwigDirector_MsrpCallback(JNIEnv *jenv);
+ virtual ~SwigDirector_MsrpCallback();
+ virtual int OnEvent(MsrpEvent const *e);
+public:
+ bool swig_overrides(int n) {
+ return (n < 1 ? swig_override[n] : false);
+ }
+protected:
+ bool swig_override[1];
+};
+
+
+#endif
diff --git a/bindings/java/android/tmedia_bandwidth_level_t.java b/bindings/java/android/tmedia_bandwidth_level_t.java
new file mode 100644
index 0000000..bc7d636
--- /dev/null
+++ b/bindings/java/android/tmedia_bandwidth_level_t.java
@@ -0,0 +1,54 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tmedia_bandwidth_level_t {
+ tmedia_bl_low,
+ tmedia_bl_medium,
+ tmedia_bl_hight,
+ tmedia_bl_unrestricted;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tmedia_bandwidth_level_t swigToEnum(int swigValue) {
+ tmedia_bandwidth_level_t[] swigValues = tmedia_bandwidth_level_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tmedia_bandwidth_level_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tmedia_bandwidth_level_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_bandwidth_level_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_bandwidth_level_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_bandwidth_level_t(tmedia_bandwidth_level_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tmedia_chroma_t.java b/bindings/java/android/tmedia_chroma_t.java
new file mode 100644
index 0000000..b71da66
--- /dev/null
+++ b/bindings/java/android/tmedia_chroma_t.java
@@ -0,0 +1,63 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tmedia_chroma_t {
+ tmedia_chroma_none(0),
+ tmedia_chroma_rgb24,
+ tmedia_chroma_bgr24,
+ tmedia_chroma_rgb32,
+ tmedia_chroma_rgb565le,
+ tmedia_chroma_rgb565be,
+ tmedia_chroma_nv12,
+ tmedia_chroma_nv21,
+ tmedia_chroma_yuv422p,
+ tmedia_chroma_uyvy422,
+ tmedia_chroma_yuv420p,
+ tmedia_chroma_mjpeg,
+ tmedia_chroma_yuyv422;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tmedia_chroma_t swigToEnum(int swigValue) {
+ tmedia_chroma_t[] swigValues = tmedia_chroma_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tmedia_chroma_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tmedia_chroma_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_chroma_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_chroma_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_chroma_t(tmedia_chroma_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tmedia_codec_id_t.java b/bindings/java/android/tmedia_codec_id_t.java
new file mode 100644
index 0000000..604270e
--- /dev/null
+++ b/bindings/java/android/tmedia_codec_id_t.java
@@ -0,0 +1,83 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tmedia_codec_id_t {
+ tmedia_codec_id_none(0x00000000),
+ tmedia_codec_id_amr_nb_oa(0x00000001 << 0),
+ tmedia_codec_id_amr_nb_be(0x00000001 << 1),
+ tmedia_codec_id_amr_wb_oa(0x00000001 << 2),
+ tmedia_codec_id_amr_wb_be(0x00000001 << 3),
+ tmedia_codec_id_gsm(0x00000001 << 4),
+ tmedia_codec_id_pcma(0x00000001 << 5),
+ tmedia_codec_id_pcmu(0x00000001 << 6),
+ tmedia_codec_id_ilbc(0x00000001 << 7),
+ tmedia_codec_id_speex_nb(0x00000001 << 8),
+ tmedia_codec_id_speex_wb(0x00000001 << 9),
+ tmedia_codec_id_speex_uwb(0x00000001 << 10),
+ tmedia_codec_id_bv16(0x00000001 << 11),
+ tmedia_codec_id_bv32(0x00000001 << 12),
+ tmedia_codec_id_opus(0x00000001 << 13),
+ tmedia_codec_id_g729ab(0x00000001 << 14),
+ tmedia_codec_id_g722(0x00000001 << 15),
+ tmedia_codec_id_h261(0x00010000 << 0),
+ tmedia_codec_id_h263(0x00010000 << 1),
+ tmedia_codec_id_h263p(0x00010000 << 2),
+ tmedia_codec_id_h263pp(0x00010000 << 3),
+ tmedia_codec_id_h264_bp(0x00010000 << 4),
+ tmedia_codec_id_h264_mp(0x00010000 << 5),
+ tmedia_codec_id_h264_hp(0x00010000 << 6),
+ tmedia_codec_id_h264_bp10(tmedia_codec_id_h264_bp),
+ tmedia_codec_id_h264_bp20(tmedia_codec_id_h264_bp),
+ tmedia_codec_id_h264_bp30(tmedia_codec_id_h264_bp),
+ tmedia_codec_id_h264_svc(0x00010000 << 7),
+ tmedia_codec_id_theora(0x00010000 << 8),
+ tmedia_codec_id_mp4ves_es(0x00010000 << 9),
+ tmedia_codec_id_vp8(0x00010000 << 10),
+ tmedia_codec_id_t140(0x00010000 << 14),
+ tmedia_codec_id_red(0x00010000 << 15);
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tmedia_codec_id_t swigToEnum(int swigValue) {
+ tmedia_codec_id_t[] swigValues = tmedia_codec_id_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tmedia_codec_id_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tmedia_codec_id_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_codec_id_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_codec_id_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_codec_id_t(tmedia_codec_id_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tmedia_mode_t.java b/bindings/java/android/tmedia_mode_t.java
new file mode 100644
index 0000000..83527ca
--- /dev/null
+++ b/bindings/java/android/tmedia_mode_t.java
@@ -0,0 +1,53 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tmedia_mode_t {
+ tmedia_mode_none,
+ tmedia_mode_optional,
+ tmedia_mode_mandatory;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tmedia_mode_t swigToEnum(int swigValue) {
+ tmedia_mode_t[] swigValues = tmedia_mode_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tmedia_mode_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tmedia_mode_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_mode_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_mode_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_mode_t(tmedia_mode_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tmedia_pref_video_size_t.java b/bindings/java/android/tmedia_pref_video_size_t.java
new file mode 100644
index 0000000..a93a031
--- /dev/null
+++ b/bindings/java/android/tmedia_pref_video_size_t.java
@@ -0,0 +1,65 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tmedia_pref_video_size_t {
+ tmedia_pref_video_size_sqcif,
+ tmedia_pref_video_size_qcif,
+ tmedia_pref_video_size_qvga,
+ tmedia_pref_video_size_cif,
+ tmedia_pref_video_size_hvga,
+ tmedia_pref_video_size_vga,
+ tmedia_pref_video_size_4cif,
+ tmedia_pref_video_size_wvga,
+ tmedia_pref_video_size_svga,
+ tmedia_pref_video_size_480p,
+ tmedia_pref_video_size_xga,
+ tmedia_pref_video_size_720p,
+ tmedia_pref_video_size_16cif,
+ tmedia_pref_video_size_1080p,
+ tmedia_pref_video_size_2160p;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tmedia_pref_video_size_t swigToEnum(int swigValue) {
+ tmedia_pref_video_size_t[] swigValues = tmedia_pref_video_size_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tmedia_pref_video_size_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tmedia_pref_video_size_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_pref_video_size_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_pref_video_size_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_pref_video_size_t(tmedia_pref_video_size_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tmedia_profile_t.java b/bindings/java/android/tmedia_profile_t.java
new file mode 100644
index 0000000..bfb8f60
--- /dev/null
+++ b/bindings/java/android/tmedia_profile_t.java
@@ -0,0 +1,52 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tmedia_profile_t {
+ tmedia_profile_default,
+ tmedia_profile_rtcweb;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tmedia_profile_t swigToEnum(int swigValue) {
+ tmedia_profile_t[] swigValues = tmedia_profile_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tmedia_profile_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tmedia_profile_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_profile_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_profile_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_profile_t(tmedia_profile_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tmedia_qos_strength_t.java b/bindings/java/android/tmedia_qos_strength_t.java
new file mode 100644
index 0000000..8f8e465
--- /dev/null
+++ b/bindings/java/android/tmedia_qos_strength_t.java
@@ -0,0 +1,55 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tmedia_qos_strength_t {
+ tmedia_qos_strength_none,
+ tmedia_qos_strength_failure,
+ tmedia_qos_strength_unknown,
+ tmedia_qos_strength_optional,
+ tmedia_qos_strength_mandatory;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tmedia_qos_strength_t swigToEnum(int swigValue) {
+ tmedia_qos_strength_t[] swigValues = tmedia_qos_strength_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tmedia_qos_strength_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tmedia_qos_strength_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_qos_strength_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_qos_strength_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_qos_strength_t(tmedia_qos_strength_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tmedia_qos_stype_t.java b/bindings/java/android/tmedia_qos_stype_t.java
new file mode 100644
index 0000000..f19af37
--- /dev/null
+++ b/bindings/java/android/tmedia_qos_stype_t.java
@@ -0,0 +1,53 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tmedia_qos_stype_t {
+ tmedia_qos_stype_none,
+ tmedia_qos_stype_segmented,
+ tmedia_qos_stype_e2e;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tmedia_qos_stype_t swigToEnum(int swigValue) {
+ tmedia_qos_stype_t[] swigValues = tmedia_qos_stype_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tmedia_qos_stype_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tmedia_qos_stype_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_qos_stype_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_qos_stype_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_qos_stype_t(tmedia_qos_stype_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tmedia_srtp_mode_t.java b/bindings/java/android/tmedia_srtp_mode_t.java
new file mode 100644
index 0000000..42a6f1c
--- /dev/null
+++ b/bindings/java/android/tmedia_srtp_mode_t.java
@@ -0,0 +1,53 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tmedia_srtp_mode_t {
+ tmedia_srtp_mode_none,
+ tmedia_srtp_mode_optional,
+ tmedia_srtp_mode_mandatory;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tmedia_srtp_mode_t swigToEnum(int swigValue) {
+ tmedia_srtp_mode_t[] swigValues = tmedia_srtp_mode_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tmedia_srtp_mode_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tmedia_srtp_mode_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_srtp_mode_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_srtp_mode_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_srtp_mode_t(tmedia_srtp_mode_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tmedia_srtp_type_t.java b/bindings/java/android/tmedia_srtp_type_t.java
new file mode 100644
index 0000000..a33778b
--- /dev/null
+++ b/bindings/java/android/tmedia_srtp_type_t.java
@@ -0,0 +1,54 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tmedia_srtp_type_t {
+ tmedia_srtp_type_none(0x00),
+ tmedia_srtp_type_sdes(0x01),
+ tmedia_srtp_type_dtls(0x02),
+ tmedia_srtp_type_sdes_dtls((0x01|0x02));
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tmedia_srtp_type_t swigToEnum(int swigValue) {
+ tmedia_srtp_type_t[] swigValues = tmedia_srtp_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tmedia_srtp_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tmedia_srtp_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_srtp_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_srtp_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_srtp_type_t(tmedia_srtp_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tmedia_t140_data_type_t.java b/bindings/java/android/tmedia_t140_data_type_t.java
new file mode 100644
index 0000000..4eb7a5f
--- /dev/null
+++ b/bindings/java/android/tmedia_t140_data_type_t.java
@@ -0,0 +1,65 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tmedia_t140_data_type_t {
+ tmedia_t140_data_type_utf8,
+ tmedia_t140_data_type_zero_width_no_break_space(0xefbbbf),
+ tmedia_t140_data_type_backspace(0x08),
+ tmedia_t140_data_type_esc(0x1b),
+ tmedia_t140_data_type_cr(0x0d),
+ tmedia_t140_data_type_lf(0x0a),
+ tmedia_t140_data_type_cr_lf(0x0d0a),
+ tmedia_t140_data_type_interrupt2(0x61),
+ tmedia_t140_data_type_bell(0x07),
+ tmedia_t140_data_type_sos(0x98),
+ tmedia_t140_data_type_string_term(0x9c),
+ tmedia_t140_data_type_graphic_start(0x9b),
+ tmedia_t140_data_type_graphic_end(0x6d),
+ tmedia_t140_data_type_loss_char_char(0xfffd),
+ tmedia_t140_data_type_loss_utf8(0xefbfbd);
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tmedia_t140_data_type_t swigToEnum(int swigValue) {
+ tmedia_t140_data_type_t[] swigValues = tmedia_t140_data_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tmedia_t140_data_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tmedia_t140_data_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_t140_data_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_t140_data_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tmedia_t140_data_type_t(tmedia_t140_data_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tmsrp_event_type_t.java b/bindings/java/android/tmsrp_event_type_t.java
new file mode 100644
index 0000000..dc832bd
--- /dev/null
+++ b/bindings/java/android/tmsrp_event_type_t.java
@@ -0,0 +1,54 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tmsrp_event_type_t {
+ tmsrp_event_type_none,
+ tmsrp_event_type_connected,
+ tmsrp_event_type_disconnected,
+ tmsrp_event_type_message;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tmsrp_event_type_t swigToEnum(int swigValue) {
+ tmsrp_event_type_t[] swigValues = tmsrp_event_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tmsrp_event_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tmsrp_event_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tmsrp_event_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tmsrp_event_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tmsrp_event_type_t(tmsrp_event_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tmsrp_request_type_t.java b/bindings/java/android/tmsrp_request_type_t.java
new file mode 100644
index 0000000..49147bd
--- /dev/null
+++ b/bindings/java/android/tmsrp_request_type_t.java
@@ -0,0 +1,54 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tmsrp_request_type_t {
+ tmsrp_NONE(0),
+ tmsrp_SEND,
+ tmsrp_REPORT,
+ tmsrp_AUTH;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tmsrp_request_type_t swigToEnum(int swigValue) {
+ tmsrp_request_type_t[] swigValues = tmsrp_request_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tmsrp_request_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tmsrp_request_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tmsrp_request_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tmsrp_request_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tmsrp_request_type_t(tmsrp_request_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tsip_event_type_t.java b/bindings/java/android/tsip_event_type_t.java
new file mode 100644
index 0000000..7519707
--- /dev/null
+++ b/bindings/java/android/tsip_event_type_t.java
@@ -0,0 +1,58 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tsip_event_type_t {
+ tsip_event_invite,
+ tsip_event_message,
+ tsip_event_info,
+ tsip_event_options,
+ tsip_event_publish,
+ tsip_event_register,
+ tsip_event_subscribe,
+ tsip_event_dialog;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tsip_event_type_t swigToEnum(int swigValue) {
+ tsip_event_type_t[] swigValues = tsip_event_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tsip_event_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tsip_event_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_event_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_event_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_event_type_t(tsip_event_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tsip_info_event_type_t.java b/bindings/java/android/tsip_info_event_type_t.java
new file mode 100644
index 0000000..96a2064
--- /dev/null
+++ b/bindings/java/android/tsip_info_event_type_t.java
@@ -0,0 +1,52 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tsip_info_event_type_t {
+ tsip_i_info,
+ tsip_ao_info;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tsip_info_event_type_t swigToEnum(int swigValue) {
+ tsip_info_event_type_t[] swigValues = tsip_info_event_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tsip_info_event_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tsip_info_event_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_info_event_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_info_event_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_info_event_type_t(tsip_info_event_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tsip_invite_event_type_t.java b/bindings/java/android/tsip_invite_event_type_t.java
new file mode 100644
index 0000000..9c84c57
--- /dev/null
+++ b/bindings/java/android/tsip_invite_event_type_t.java
@@ -0,0 +1,72 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tsip_invite_event_type_t {
+ tsip_i_newcall,
+ tsip_i_request,
+ tsip_ao_request,
+ tsip_o_ect_trying,
+ tsip_o_ect_accepted,
+ tsip_o_ect_completed,
+ tsip_o_ect_failed,
+ tsip_o_ect_notify,
+ tsip_i_ect_requested,
+ tsip_i_ect_newcall,
+ tsip_i_ect_completed,
+ tsip_i_ect_failed,
+ tsip_i_ect_notify,
+ tsip_m_early_media,
+ tsip_m_updating,
+ tsip_m_updated,
+ tsip_m_local_hold_ok,
+ tsip_m_local_hold_nok,
+ tsip_m_local_resume_ok,
+ tsip_m_local_resume_nok,
+ tsip_m_remote_hold,
+ tsip_m_remote_resume;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tsip_invite_event_type_t swigToEnum(int swigValue) {
+ tsip_invite_event_type_t[] swigValues = tsip_invite_event_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tsip_invite_event_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tsip_invite_event_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_invite_event_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_invite_event_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_invite_event_type_t(tsip_invite_event_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tsip_message_event_type_t.java b/bindings/java/android/tsip_message_event_type_t.java
new file mode 100644
index 0000000..cbf332b
--- /dev/null
+++ b/bindings/java/android/tsip_message_event_type_t.java
@@ -0,0 +1,52 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tsip_message_event_type_t {
+ tsip_i_message,
+ tsip_ao_message;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tsip_message_event_type_t swigToEnum(int swigValue) {
+ tsip_message_event_type_t[] swigValues = tsip_message_event_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tsip_message_event_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tsip_message_event_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_message_event_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_message_event_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_message_event_type_t(tsip_message_event_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tsip_options_event_type_t.java b/bindings/java/android/tsip_options_event_type_t.java
new file mode 100644
index 0000000..ca5ab1e
--- /dev/null
+++ b/bindings/java/android/tsip_options_event_type_t.java
@@ -0,0 +1,52 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tsip_options_event_type_t {
+ tsip_i_options,
+ tsip_ao_options;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tsip_options_event_type_t swigToEnum(int swigValue) {
+ tsip_options_event_type_t[] swigValues = tsip_options_event_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tsip_options_event_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tsip_options_event_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_options_event_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_options_event_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_options_event_type_t(tsip_options_event_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tsip_publish_event_type_t.java b/bindings/java/android/tsip_publish_event_type_t.java
new file mode 100644
index 0000000..c04e0ae
--- /dev/null
+++ b/bindings/java/android/tsip_publish_event_type_t.java
@@ -0,0 +1,54 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tsip_publish_event_type_t {
+ tsip_i_publish,
+ tsip_ao_publish,
+ tsip_i_unpublish,
+ tsip_ao_unpublish;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tsip_publish_event_type_t swigToEnum(int swigValue) {
+ tsip_publish_event_type_t[] swigValues = tsip_publish_event_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tsip_publish_event_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tsip_publish_event_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_publish_event_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_publish_event_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_publish_event_type_t(tsip_publish_event_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tsip_register_event_type_t.java b/bindings/java/android/tsip_register_event_type_t.java
new file mode 100644
index 0000000..e95d1f4
--- /dev/null
+++ b/bindings/java/android/tsip_register_event_type_t.java
@@ -0,0 +1,55 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tsip_register_event_type_t {
+ tsip_i_newreg,
+ tsip_i_register,
+ tsip_ao_register,
+ tsip_i_unregister,
+ tsip_ao_unregister;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tsip_register_event_type_t swigToEnum(int swigValue) {
+ tsip_register_event_type_t[] swigValues = tsip_register_event_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tsip_register_event_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tsip_register_event_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_register_event_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_register_event_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_register_event_type_t(tsip_register_event_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tsip_request_type_t.java b/bindings/java/android/tsip_request_type_t.java
new file mode 100644
index 0000000..a96be99
--- /dev/null
+++ b/bindings/java/android/tsip_request_type_t.java
@@ -0,0 +1,65 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tsip_request_type_t {
+ tsip_NONE(0),
+ tsip_ACK,
+ tsip_BYE,
+ tsip_CANCEL,
+ tsip_INVITE,
+ tsip_OPTIONS,
+ tsip_REGISTER,
+ tsip_SUBSCRIBE,
+ tsip_NOTIFY,
+ tsip_REFER,
+ tsip_INFO,
+ tsip_UPDATE,
+ tsip_MESSAGE,
+ tsip_PUBLISH,
+ tsip_PRACK;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tsip_request_type_t swigToEnum(int swigValue) {
+ tsip_request_type_t[] swigValues = tsip_request_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tsip_request_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tsip_request_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_request_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_request_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_request_type_t(tsip_request_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tsip_stack_mode_t.java b/bindings/java/android/tsip_stack_mode_t.java
new file mode 100644
index 0000000..5dcec38
--- /dev/null
+++ b/bindings/java/android/tsip_stack_mode_t.java
@@ -0,0 +1,54 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tsip_stack_mode_t {
+ tsip_stack_mode_ua,
+ tsip_stack_mode_p2p,
+ tsip_stack_mode_mediaproxy,
+ tsip_stack_mode_mcu;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tsip_stack_mode_t swigToEnum(int swigValue) {
+ tsip_stack_mode_t[] swigValues = tsip_stack_mode_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tsip_stack_mode_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tsip_stack_mode_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_stack_mode_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_stack_mode_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_stack_mode_t(tsip_stack_mode_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/tsip_subscribe_event_type_t.java b/bindings/java/android/tsip_subscribe_event_type_t.java
new file mode 100644
index 0000000..03cab19
--- /dev/null
+++ b/bindings/java/android/tsip_subscribe_event_type_t.java
@@ -0,0 +1,56 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum tsip_subscribe_event_type_t {
+ tsip_i_subscribe,
+ tsip_ao_subscribe,
+ tsip_i_unsubscribe,
+ tsip_ao_unsubscribe,
+ tsip_i_notify,
+ tsip_ao_notify;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static tsip_subscribe_event_type_t swigToEnum(int swigValue) {
+ tsip_subscribe_event_type_t[] swigValues = tsip_subscribe_event_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (tsip_subscribe_event_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + tsip_subscribe_event_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_subscribe_event_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_subscribe_event_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private tsip_subscribe_event_type_t(tsip_subscribe_event_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/twrap_media_type_t.java b/bindings/java/android/twrap_media_type_t.java
new file mode 100644
index 0000000..25924a7
--- /dev/null
+++ b/bindings/java/android/twrap_media_type_t.java
@@ -0,0 +1,60 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum twrap_media_type_t {
+ twrap_media_none(0x00),
+ twrap_media_audio(0x01),
+ twrap_media_video(0x02),
+ twrap_media_msrp(0x04),
+ twrap_media_t140(0x08),
+ twrap_media_bfcp(0x10),
+ twrap_media_bfcp_audio(0x30),
+ twrap_media_bfcp_video(0x50),
+ twrap_media_audiovideo(0x03),
+ twrap_media_audio_video(twrap_media_audiovideo);
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static twrap_media_type_t swigToEnum(int swigValue) {
+ twrap_media_type_t[] swigValues = twrap_media_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (twrap_media_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + twrap_media_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private twrap_media_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private twrap_media_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private twrap_media_type_t(twrap_media_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/twrap_proxy_plugin_type_t.java b/bindings/java/android/twrap_proxy_plugin_type_t.java
new file mode 100644
index 0000000..eb8eb08
--- /dev/null
+++ b/bindings/java/android/twrap_proxy_plugin_type_t.java
@@ -0,0 +1,54 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum twrap_proxy_plugin_type_t {
+ twrap_proxy_plugin_audio_producer,
+ twrap_proxy_plugin_video_producer,
+ twrap_proxy_plugin_audio_consumer,
+ twrap_proxy_plugin_video_consumer;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static twrap_proxy_plugin_type_t swigToEnum(int swigValue) {
+ twrap_proxy_plugin_type_t[] swigValues = twrap_proxy_plugin_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (twrap_proxy_plugin_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + twrap_proxy_plugin_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private twrap_proxy_plugin_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private twrap_proxy_plugin_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private twrap_proxy_plugin_type_t(twrap_proxy_plugin_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/twrap_rpmessage_type_t.java b/bindings/java/android/twrap_rpmessage_type_t.java
new file mode 100644
index 0000000..9e879b1
--- /dev/null
+++ b/bindings/java/android/twrap_rpmessage_type_t.java
@@ -0,0 +1,55 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum twrap_rpmessage_type_t {
+ twrap_rpmessage_type_sms_none,
+ twrap_rpmessage_type_sms_submit,
+ twrap_rpmessage_type_sms_deliver,
+ twrap_rpmessage_type_sms_ack,
+ twrap_rpmessage_type_sms_error;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static twrap_rpmessage_type_t swigToEnum(int swigValue) {
+ twrap_rpmessage_type_t[] swigValues = twrap_rpmessage_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (twrap_rpmessage_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + twrap_rpmessage_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private twrap_rpmessage_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private twrap_rpmessage_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private twrap_rpmessage_type_t(twrap_rpmessage_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
diff --git a/bindings/java/android/twrap_sms_type_t.java b/bindings/java/android/twrap_sms_type_t.java
new file mode 100644
index 0000000..8d5a910
--- /dev/null
+++ b/bindings/java/android/twrap_sms_type_t.java
@@ -0,0 +1,55 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public enum twrap_sms_type_t {
+ twrap_sms_type_none,
+ twrap_sms_type_rpdata,
+ twrap_sms_type_smma,
+ twrap_sms_type_ack,
+ twrap_sms_type_error;
+
+ public final int swigValue() {
+ return swigValue;
+ }
+
+ public static twrap_sms_type_t swigToEnum(int swigValue) {
+ twrap_sms_type_t[] swigValues = twrap_sms_type_t.class.getEnumConstants();
+ if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
+ return swigValues[swigValue];
+ for (twrap_sms_type_t swigEnum : swigValues)
+ if (swigEnum.swigValue == swigValue)
+ return swigEnum;
+ throw new IllegalArgumentException("No enum " + twrap_sms_type_t.class + " with value " + swigValue);
+ }
+
+ @SuppressWarnings("unused")
+ private twrap_sms_type_t() {
+ this.swigValue = SwigNext.next++;
+ }
+
+ @SuppressWarnings("unused")
+ private twrap_sms_type_t(int swigValue) {
+ this.swigValue = swigValue;
+ SwigNext.next = swigValue+1;
+ }
+
+ @SuppressWarnings("unused")
+ private twrap_sms_type_t(twrap_sms_type_t swigEnum) {
+ this.swigValue = swigEnum.swigValue;
+ SwigNext.next = this.swigValue+1;
+ }
+
+ private final int swigValue;
+
+ private static class SwigNext {
+ private static int next = 0;
+ }
+}
+
OpenPOWER on IntegriCloud