diff options
Diffstat (limited to 'bindings/java/android')
78 files changed, 14940 insertions, 0 deletions
diff --git a/bindings/java/android/ActionConfig.java b/bindings/java/android/ActionConfig.java new file mode 100644 index 0000000..6f5cf16 --- /dev/null +++ b/bindings/java/android/ActionConfig.java @@ -0,0 +1,59 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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 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/CallSession.java b/bindings/java/android/CallSession.java new file mode 100644 index 0000000..802d05b --- /dev/null +++ b/bindings/java/android/CallSession.java @@ -0,0 +1,96 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGCallSessionUpcast(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 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_CallSession(swigCPtr); + } + swigCPtr = 0; + super.delete(); + } + + public CallSession(SipStack Stack) { + this(tinyWRAPJNI.new_CallSession(SipStack.getCPtr(Stack), Stack), true); + } + + public boolean callAudio(String remoteUri, ActionConfig config) { + return tinyWRAPJNI.CallSession_callAudio__SWIG_0(swigCPtr, this, remoteUri, ActionConfig.getCPtr(config), config); + } + + public boolean callAudio(String remoteUri) { + return tinyWRAPJNI.CallSession_callAudio__SWIG_1(swigCPtr, this, remoteUri); + } + + public boolean callAudioVideo(String remoteUri, ActionConfig config) { + return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_0(swigCPtr, this, remoteUri, ActionConfig.getCPtr(config), config); + } + + public boolean callAudioVideo(String remoteUri) { + return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_1(swigCPtr, this, remoteUri); + } + + public boolean callVideo(String remoteUri, ActionConfig config) { + return tinyWRAPJNI.CallSession_callVideo__SWIG_0(swigCPtr, this, remoteUri, ActionConfig.getCPtr(config), config); + } + + public boolean callVideo(String remoteUri) { + return tinyWRAPJNI.CallSession_callVideo__SWIG_1(swigCPtr, this, remoteUri); + } + + 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 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 sendDTMF(int number) { + return tinyWRAPJNI.CallSession_sendDTMF(swigCPtr, this, number); + } + +} diff --git a/bindings/java/android/DDebugCallback.java b/bindings/java/android/DDebugCallback.java new file mode 100644 index 0000000..e84922c --- /dev/null +++ b/bindings/java/android/DDebugCallback.java @@ -0,0 +1,72 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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, false); + } + + 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..ac409f6 --- /dev/null +++ b/bindings/java/android/DialogEvent.java @@ -0,0 +1,36 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGDialogEventUpcast(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 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_DialogEvent(swigCPtr); + } + swigCPtr = 0; + super.delete(); + } + +} diff --git a/bindings/java/android/InviteEvent.java b/bindings/java/android/InviteEvent.java new file mode 100644 index 0000000..e7a79c9 --- /dev/null +++ b/bindings/java/android/InviteEvent.java @@ -0,0 +1,59 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGInviteEventUpcast(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 && 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..71d6f6c --- /dev/null +++ b/bindings/java/android/InviteSession.java @@ -0,0 +1,69 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGInviteSessionUpcast(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 && 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 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..43faede --- /dev/null +++ b/bindings/java/android/MediaContent.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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 output, long maxsize) { + return tinyWRAPJNI.MediaContent_getData(swigCPtr, this, output, maxsize); + } + + public static MediaContent parse(java.nio.ByteBuffer data, long size, String type) { + long cPtr = tinyWRAPJNI.MediaContent_parse__SWIG_0(data, size, type); + return (cPtr == 0) ? null : new MediaContent(cPtr, true); + } + + public static MediaContentCPIM parse(java.nio.ByteBuffer data, long size) { + long cPtr = tinyWRAPJNI.MediaContent_parse__SWIG_1(data, size); + return (cPtr == 0) ? null : new MediaContentCPIM(cPtr, true); + } + + public long getPayloadLength() { + return tinyWRAPJNI.MediaContent_getPayloadLength(swigCPtr, this); + } + + public long getPayload(java.nio.ByteBuffer output, long maxsize) { + return tinyWRAPJNI.MediaContent_getPayload(swigCPtr, this, output, maxsize); + } + +} diff --git a/bindings/java/android/MediaContentCPIM.java b/bindings/java/android/MediaContentCPIM.java new file mode 100644 index 0000000..fb708e8 --- /dev/null +++ b/bindings/java/android/MediaContentCPIM.java @@ -0,0 +1,48 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGMediaContentCPIMUpcast(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 && 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 output, long maxsize) { + return tinyWRAPJNI.MediaContentCPIM_getPayload(swigCPtr, this, output, maxsize); + } + + public String getHeaderValue(String name) { + return tinyWRAPJNI.MediaContentCPIM_getHeaderValue(swigCPtr, this, name); + } + +} diff --git a/bindings/java/android/MediaSessionMgr.java b/bindings/java/android/MediaSessionMgr.java new file mode 100644 index 0000000..346e64c --- /dev/null +++ b/bindings/java/android/MediaSessionMgr.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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 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 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); + } + +} diff --git a/bindings/java/android/MessagingEvent.java b/bindings/java/android/MessagingEvent.java new file mode 100644 index 0000000..c502d31 --- /dev/null +++ b/bindings/java/android/MessagingEvent.java @@ -0,0 +1,50 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGMessagingEventUpcast(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 && 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..db6fed4 --- /dev/null +++ b/bindings/java/android/MessagingSession.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGMessagingSessionUpcast(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 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MessagingSession(swigCPtr); + } + swigCPtr = 0; + super.delete(); + } + + public MessagingSession(SipStack Stack) { + this(tinyWRAPJNI.new_MessagingSession(SipStack.getCPtr(Stack), Stack), true); + } + + public boolean send(java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.MessagingSession_send(swigCPtr, this, payload, len); + } + + public boolean accept() { + return tinyWRAPJNI.MessagingSession_accept(swigCPtr, this); + } + + public boolean reject() { + return tinyWRAPJNI.MessagingSession_reject(swigCPtr, this); + } + +} diff --git a/bindings/java/android/MsrpCallback.java b/bindings/java/android/MsrpCallback.java new file mode 100644 index 0000000..021bd93 --- /dev/null +++ b/bindings/java/android/MsrpCallback.java @@ -0,0 +1,60 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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, false); + } + + 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..4703fde --- /dev/null +++ b/bindings/java/android/MsrpEvent.java @@ -0,0 +1,50 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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..379d201 --- /dev/null +++ b/bindings/java/android/MsrpMessage.java @@ -0,0 +1,84 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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 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..7cd3b31 --- /dev/null +++ b/bindings/java/android/MsrpSession.java @@ -0,0 +1,68 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGMsrpSessionUpcast(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 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MsrpSession(swigCPtr); + } + swigCPtr = 0; + super.delete(); + } + + public MsrpSession(SipStack Stack, MsrpCallback callback) { + this(tinyWRAPJNI.new_MsrpSession(SipStack.getCPtr(Stack), Stack, MsrpCallback.getCPtr(callback), callback), true); + } + + public boolean setCallback(MsrpCallback callback) { + return tinyWRAPJNI.MsrpSession_setCallback(swigCPtr, this, MsrpCallback.getCPtr(callback), callback); + } + + public boolean callMsrp(String remoteUri, ActionConfig config) { + return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_0(swigCPtr, this, remoteUri, ActionConfig.getCPtr(config), config); + } + + public boolean callMsrp(String remoteUri) { + return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_1(swigCPtr, this, 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..ca77684 --- /dev/null +++ b/bindings/java/android/OptionsEvent.java @@ -0,0 +1,45 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGOptionsEventUpcast(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 && 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); + } + +} diff --git a/bindings/java/android/OptionsSession.java b/bindings/java/android/OptionsSession.java new file mode 100644 index 0000000..78f315e --- /dev/null +++ b/bindings/java/android/OptionsSession.java @@ -0,0 +1,44 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGOptionsSessionUpcast(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 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_OptionsSession(swigCPtr); + } + swigCPtr = 0; + super.delete(); + } + + public OptionsSession(SipStack Stack) { + this(tinyWRAPJNI.new_OptionsSession(SipStack.getCPtr(Stack), Stack), true); + } + + public boolean send() { + return tinyWRAPJNI.OptionsSession_send(swigCPtr, this); + } + +} diff --git a/bindings/java/android/ProxyAudioConsumer.java b/bindings/java/android/ProxyAudioConsumer.java new file mode 100644 index 0000000..d143dc0 --- /dev/null +++ b/bindings/java/android/ProxyAudioConsumer.java @@ -0,0 +1,56 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGProxyAudioConsumerUpcast(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 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyAudioConsumer(swigCPtr); + } + swigCPtr = 0; + super.delete(); + } + + public long pull(java.nio.ByteBuffer output, long size) { + return tinyWRAPJNI.ProxyAudioConsumer_pull(swigCPtr, this, output, size); + } + + public boolean reset() { + return tinyWRAPJNI.ProxyAudioConsumer_reset(swigCPtr, this); + } + + public void setCallback(ProxyAudioConsumerCallback _callback) { + tinyWRAPJNI.ProxyAudioConsumer_setCallback(swigCPtr, this, ProxyAudioConsumerCallback.getCPtr(_callback), _callback); + } + + 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..836c7e8 --- /dev/null +++ b/bindings/java/android/ProxyAudioConsumerCallback.java @@ -0,0 +1,72 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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, false); + } + + 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..2fca0d7 --- /dev/null +++ b/bindings/java/android/ProxyAudioProducer.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGProxyAudioProducerUpcast(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 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyAudioProducer(swigCPtr); + } + swigCPtr = 0; + super.delete(); + } + + public int push(java.nio.ByteBuffer buffer, long size) { + return tinyWRAPJNI.ProxyAudioProducer_push(swigCPtr, this, buffer, size); + } + + public void setCallback(ProxyAudioProducerCallback _callback) { + tinyWRAPJNI.ProxyAudioProducer_setCallback(swigCPtr, this, ProxyAudioProducerCallback.getCPtr(_callback), _callback); + } + + 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..a54e281 --- /dev/null +++ b/bindings/java/android/ProxyAudioProducerCallback.java @@ -0,0 +1,72 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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, false); + } + + 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); + } + +} diff --git a/bindings/java/android/ProxyPlugin.java b/bindings/java/android/ProxyPlugin.java new file mode 100644 index 0000000..62e2afc --- /dev/null +++ b/bindings/java/android/ProxyPlugin.java @@ -0,0 +1,44 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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..03f9683 --- /dev/null +++ b/bindings/java/android/ProxyPluginMgr.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyPluginMgr(swigCPtr); + } + swigCPtr = 0; + } + + public static ProxyPluginMgr createInstance(ProxyPluginMgrCallback callback) { + long cPtr = tinyWRAPJNI.ProxyPluginMgr_createInstance(ProxyPluginMgrCallback.getCPtr(callback), callback); + 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 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..8a8c684 --- /dev/null +++ b/bindings/java/android/ProxyPluginMgrCallback.java @@ -0,0 +1,64 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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, false); + } + + 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..4e020ce --- /dev/null +++ b/bindings/java/android/ProxyVideoConsumer.java @@ -0,0 +1,56 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGProxyVideoConsumerUpcast(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 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyVideoConsumer(swigCPtr); + } + swigCPtr = 0; + super.delete(); + } + + public boolean setDisplaySize(int width, int height) { + return tinyWRAPJNI.ProxyVideoConsumer_setDisplaySize(swigCPtr, this, width, height); + } + + public void setCallback(ProxyVideoConsumerCallback _callback) { + tinyWRAPJNI.ProxyVideoConsumer_setCallback(swigCPtr, this, ProxyVideoConsumerCallback.getCPtr(_callback), _callback); + } + + 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 chroma) { + tinyWRAPJNI.ProxyVideoConsumer_setDefaultChroma(chroma.swigValue()); + } + +} diff --git a/bindings/java/android/ProxyVideoConsumerCallback.java b/bindings/java/android/ProxyVideoConsumerCallback.java new file mode 100644 index 0000000..b2d70fd --- /dev/null +++ b/bindings/java/android/ProxyVideoConsumerCallback.java @@ -0,0 +1,76 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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, false); + } + + public int prepare(int width, int height, int fps) { + return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_prepare(swigCPtr, this, width, height, fps) : tinyWRAPJNI.ProxyVideoConsumerCallback_prepareSwigExplicitProxyVideoConsumerCallback(swigCPtr, this, width, height, fps); + } + + 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 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..34a01ca --- /dev/null +++ b/bindings/java/android/ProxyVideoFrame.java @@ -0,0 +1,44 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyVideoFrame(swigCPtr); + } + swigCPtr = 0; + } + + public long getSize() { + return tinyWRAPJNI.ProxyVideoFrame_getSize(swigCPtr, this); + } + + public long getContent(java.nio.ByteBuffer output, long maxsize) { + return tinyWRAPJNI.ProxyVideoFrame_getContent(swigCPtr, this, output, maxsize); + } + +} diff --git a/bindings/java/android/ProxyVideoProducer.java b/bindings/java/android/ProxyVideoProducer.java new file mode 100644 index 0000000..250cd44 --- /dev/null +++ b/bindings/java/android/ProxyVideoProducer.java @@ -0,0 +1,68 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGProxyVideoProducerUpcast(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 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyVideoProducer(swigCPtr); + } + swigCPtr = 0; + super.delete(); + } + + public int getRotation() { + return tinyWRAPJNI.ProxyVideoProducer_getRotation(swigCPtr, this); + } + + public void setRotation(int rot) { + tinyWRAPJNI.ProxyVideoProducer_setRotation(swigCPtr, this, rot); + } + + public int push(java.nio.ByteBuffer buffer, long size) { + return tinyWRAPJNI.ProxyVideoProducer_push(swigCPtr, this, buffer, size); + } + + public int send(java.nio.ByteBuffer buffer, long size, long duration, boolean marker) { + return tinyWRAPJNI.ProxyVideoProducer_send(swigCPtr, this, buffer, size, duration, marker); + } + + public void setCallback(ProxyVideoProducerCallback _callback) { + tinyWRAPJNI.ProxyVideoProducer_setCallback(swigCPtr, this, ProxyVideoProducerCallback.getCPtr(_callback), _callback); + } + + 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 chroma) { + tinyWRAPJNI.ProxyVideoProducer_setDefaultChroma(chroma.swigValue()); + } + +} diff --git a/bindings/java/android/ProxyVideoProducerCallback.java b/bindings/java/android/ProxyVideoProducerCallback.java new file mode 100644 index 0000000..3c533c2 --- /dev/null +++ b/bindings/java/android/ProxyVideoProducerCallback.java @@ -0,0 +1,72 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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, false); + } + + 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..8854168 --- /dev/null +++ b/bindings/java/android/PublicationEvent.java @@ -0,0 +1,45 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGPublicationEventUpcast(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 && 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); + } + +} diff --git a/bindings/java/android/PublicationSession.java b/bindings/java/android/PublicationSession.java new file mode 100644 index 0000000..62d7ab2 --- /dev/null +++ b/bindings/java/android/PublicationSession.java @@ -0,0 +1,56 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGPublicationSessionUpcast(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 && 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 Stack) { + this(tinyWRAPJNI.new_PublicationSession(SipStack.getCPtr(Stack), Stack), true); + } + + public boolean publish(java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.PublicationSession_publish(swigCPtr, this, payload, len); + } + + public boolean unPublish() { + return tinyWRAPJNI.PublicationSession_unPublish(swigCPtr, this); + } + +} diff --git a/bindings/java/android/RPMessage.java b/bindings/java/android/RPMessage.java new file mode 100644 index 0000000..711f990 --- /dev/null +++ b/bindings/java/android/RPMessage.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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..6ae317b --- /dev/null +++ b/bindings/java/android/RegistrationEvent.java @@ -0,0 +1,50 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGRegistrationEventUpcast(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 && 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..44aa32f --- /dev/null +++ b/bindings/java/android/RegistrationSession.java @@ -0,0 +1,64 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGRegistrationSessionUpcast(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 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_RegistrationSession(swigCPtr); + } + swigCPtr = 0; + super.delete(); + } + + public RegistrationSession(SipStack Stack) { + this(tinyWRAPJNI.new_RegistrationSession(SipStack.getCPtr(Stack), Stack), true); + } + + public boolean register_() { + return tinyWRAPJNI.RegistrationSession_register_(swigCPtr, this); + } + + public boolean unRegister() { + return tinyWRAPJNI.RegistrationSession_unRegister(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..12957ec --- /dev/null +++ b/bindings/java/android/SMSData.java @@ -0,0 +1,64 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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..3e44573 --- /dev/null +++ b/bindings/java/android/SMSEncoder.java @@ -0,0 +1,61 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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..4cef075 --- /dev/null +++ b/bindings/java/android/SafeObject.java @@ -0,0 +1,48 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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..410ba16 --- /dev/null +++ b/bindings/java/android/SdpMessage.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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..dcf3207 --- /dev/null +++ b/bindings/java/android/SipCallback.java @@ -0,0 +1,88 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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, false); + } + + 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 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..48cab3a --- /dev/null +++ b/bindings/java/android/SipEvent.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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..840260a --- /dev/null +++ b/bindings/java/android/SipMessage.java @@ -0,0 +1,81 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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 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..d3d9b84 --- /dev/null +++ b/bindings/java/android/SipSession.java @@ -0,0 +1,101 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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 fromUri) { + return tinyWRAPJNI.SipSession_setFromUri(swigCPtr, this, fromUri); + } + + public boolean setToUri(String toUri) { + return tinyWRAPJNI.SipSession_setToUri(swigCPtr, this, 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..ddc220a --- /dev/null +++ b/bindings/java/android/SipStack.java @@ -0,0 +1,184 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGSipStackUpcast(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 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SipStack(swigCPtr); + } + swigCPtr = 0; + super.delete(); + } + + public SipStack(SipCallback callback, String realm_uri, String impi_uri, String impu_uri) { + this(tinyWRAPJNI.new_SipStack(SipCallback.getCPtr(callback), callback, realm_uri, impi_uri, impu_uri), true); + } + + public boolean start() { + return tinyWRAPJNI.SipStack_start(swigCPtr, this); + } + + public boolean setDebugCallback(DDebugCallback callback) { + return tinyWRAPJNI.SipStack_setDebugCallback(swigCPtr, this, DDebugCallback.getCPtr(callback), callback); + } + + 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) { + return tinyWRAPJNI.SipStack_setLocalIP(swigCPtr, this, ip); + } + + public boolean setLocalPort(int port) { + return tinyWRAPJNI.SipStack_setLocalPort(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 setSTUNServer(String ip, int port) { + return tinyWRAPJNI.SipStack_setSTUNServer(swigCPtr, this, ip, port); + } + + public boolean setSTUNCred(String login, String password) { + return tinyWRAPJNI.SipStack_setSTUNCred(swigCPtr, this, login, password); + } + + public boolean setTLSSecAgree(boolean enabled) { + return tinyWRAPJNI.SipStack_setTLSSecAgree(swigCPtr, this, enabled); + } + + public boolean setSSLCretificates(String privKey, String pubKey, String caKey) { + return tinyWRAPJNI.SipStack_setSSLCretificates(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 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 void setCodecs(tdav_codec_id_t codecs) { + tinyWRAPJNI.SipStack_setCodecs(codecs.swigValue()); + } + + public static void setCodecs_2(int codecs) { + tinyWRAPJNI.SipStack_setCodecs_2(codecs); + } + + public static boolean isCodecSupported(tdav_codec_id_t codec) { + return tinyWRAPJNI.SipStack_isCodecSupported(codec.swigValue()); + } + +} diff --git a/bindings/java/android/SipUri.java b/bindings/java/android/SipUri.java new file mode 100644 index 0000000..d056a04 --- /dev/null +++ b/bindings/java/android/SipUri.java @@ -0,0 +1,76 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SipUri(swigCPtr); + } + swigCPtr = 0; + } + + public SipUri(String arg0) { + this(tinyWRAPJNI.new_SipUri(arg0), 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); + } + +} diff --git a/bindings/java/android/StackEvent.java b/bindings/java/android/StackEvent.java new file mode 100644 index 0000000..ee0ba84 --- /dev/null +++ b/bindings/java/android/StackEvent.java @@ -0,0 +1,36 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGStackEventUpcast(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 && 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..03d6345 --- /dev/null +++ b/bindings/java/android/SubscriptionEvent.java @@ -0,0 +1,45 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGSubscriptionEventUpcast(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 && 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); + } + +} diff --git a/bindings/java/android/SubscriptionSession.java b/bindings/java/android/SubscriptionSession.java new file mode 100644 index 0000000..64cf108 --- /dev/null +++ b/bindings/java/android/SubscriptionSession.java @@ -0,0 +1,48 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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.SWIGSubscriptionSessionUpcast(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 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SubscriptionSession(swigCPtr); + } + swigCPtr = 0; + super.delete(); + } + + public SubscriptionSession(SipStack Stack) { + this(tinyWRAPJNI.new_SubscriptionSession(SipStack.getCPtr(Stack), Stack), 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/XcapCallback.java b/bindings/java/android/XcapCallback.java new file mode 100644 index 0000000..5a58891 --- /dev/null +++ b/bindings/java/android/XcapCallback.java @@ -0,0 +1,60 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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, false); + } + + 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..86ed797 --- /dev/null +++ b/bindings/java/android/XcapEvent.java @@ -0,0 +1,45 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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..07dbfbb --- /dev/null +++ b/bindings/java/android/XcapMessage.java @@ -0,0 +1,84 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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..efcda49 --- /dev/null +++ b/bindings/java/android/XcapSelector.java @@ -0,0 +1,78 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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..95d28e9 --- /dev/null +++ b/bindings/java/android/XcapStack.java @@ -0,0 +1,116 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 && 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..19e8761 --- /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 tinyRTP tinyMSRP tinyMEDIA tinyDAV tinySIP +#for project in tinyMSRP +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 $@ all
\ No newline at end of file diff --git a/bindings/java/android/droid-makefile b/bindings/java/android/droid-makefile new file mode 100644 index 0000000..63beb29 --- /dev/null +++ b/bindings/java/android/droid-makefile @@ -0,0 +1,76 @@ +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, you need all librarires
+THIRDPARTIES_LIB := ../../../thirdparties/android/lib
+THIRDPARTIES_MARCH_LIB := ../../../thirdparties/android/lib/$(MARCH)
+
+FFMPEG_LDFLAGS := -lavutil -lswscale -lavcore -lavcodec -lx264 -ltheora -logg
+SPEEX_LDFLAGS := -lspeexdsp -lspeex
+OPENCORE_ARM_LDFLAGS := -lopencore-amrnb
+BV16_LDFLAGS := -lbv16
+ILBC_LDFLAGS := -liLBC
+LIBGSM_LDFLAGS := -lgsm
+
+ifeq ($(G729), yes)
+ G729_LDFLAGS := -lg729b_$(MARCH)
+
+ # Reset all other ITU CODECS
+ OPENCORE_ARM_LDFLAGS :=
+ BV16_LDFLAGS :=
+else
+ G729_LDFLAGS :=
+endif
+
+LDFLAGS := $(LDFLAGS_LIB) -L$(THIRDPARTIES_LIB) -L$(THIRDPARTIES_MARCH_LIB) $(FFMPEG_LDFLAGS) $(SPEEX_LDFLAGS) $(OPENCORE_ARM_LDFLAGS) $(BV16_LDFLAGS) $(ILBC_LDFLAGS) $(LIBGSM_LDFLAGS) $(G729_LDFLAGS)\
+ -Wl,-Bdynamic -lm -lstdc++ -lgcc -llog \
+ -Wl,-Bstatic -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/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/tdav_codec_id_t.java b/bindings/java/android/tdav_codec_id_t.java new file mode 100644 index 0000000..f3e3f87 --- /dev/null +++ b/bindings/java/android/tdav_codec_id_t.java @@ -0,0 +1,75 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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_evrc(0x00000001 << 13), + tdav_codec_id_g729ab(0x00000001 << 14), + 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_bp10(0x00010000 << 4), + tdav_codec_id_h264_bp20(0x00010000 << 5), + tdav_codec_id_h264_bp30(0x00010000 << 6), + tdav_codec_id_theora(0x00010000 << 7), + tdav_codec_id_mp4ves_es(0x00010000 << 8); + + 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..de06855 --- /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 1.3.39 + * + * 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..d10c59a --- /dev/null +++ b/bindings/java/android/tinyWRAP.java @@ -0,0 +1,12 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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..ae496b7 --- /dev/null +++ b/bindings/java/android/tinyWRAPConstants.java @@ -0,0 +1,26 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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_cancelled = 801; + public final static int tsip_event_code_dialog_request_sent = 802; + 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_started = 950; + public final static int tsip_event_code_stack_stopped = 951; + public final static int tsip_event_code_stack_failed_to_start = 952; + public final static int tsip_event_code_stack_failed_to_stop = 953; +} diff --git a/bindings/java/android/tinyWRAPJNI.java b/bindings/java/android/tinyWRAPJNI.java new file mode 100644 index 0000000..9ffcb56 --- /dev/null +++ b/bindings/java/android/tinyWRAPJNI.java @@ -0,0 +1,556 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +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_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 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_MediaSessionMgr(long jarg1); + public final static native boolean MediaSessionMgr_sessionSetInt32(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3, int jarg4); + 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_findProxyPluginConsumer(long jarg1, MediaSessionMgr jarg1_, int jarg2); + public final static native long MediaSessionMgr_findProxyPluginProducer(long jarg1, MediaSessionMgr jarg1_, int jarg2); + 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(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 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 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_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 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 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 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(long jarg1, SipSession jarg1_, String jarg2); + public final static native boolean SipSession_setToUri(long jarg1, SipSession jarg1_, String 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 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_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_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_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_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_sendDTMF(long jarg1, CallSession jarg1_, int 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_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(long jarg1, MessagingSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native boolean MessagingSession_accept(long jarg1, MessagingSession jarg1_); + public final static native boolean MessagingSession_reject(long jarg1, MessagingSession 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(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(long jarg1, PublicationSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native boolean PublicationSession_unPublish(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_(long jarg1, RegistrationSession jarg1_); + public final static native boolean RegistrationSession_unRegister(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_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 long ProxyAudioConsumer_pull(long jarg1, ProxyAudioConsumer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + 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_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_, int jarg2, int jarg3); + public final static native void ProxyVideoConsumer_setCallback(long jarg1, ProxyVideoConsumer jarg1_, long jarg2, ProxyVideoConsumerCallback jarg2_); + 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 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 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 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 int ProxyAudioProducer_push(long jarg1, ProxyAudioProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + 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 void ProxyVideoProducer_setRotation(long jarg1, ProxyVideoProducer jarg1_, int jarg2); + public final static native int ProxyVideoProducer_push(long jarg1, ProxyVideoProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native int ProxyVideoProducer_send(long jarg1, ProxyVideoProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3, long jarg4, boolean jarg5); + 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_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_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(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setLocalPort(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_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_setTLSSecAgree(long jarg1, SipStack jarg1_, boolean jarg2); + public final static native boolean SipStack_setSSLCretificates(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 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 void SipStack_setCodecs(int jarg1); + public final static native void SipStack_setCodecs_2(int jarg1); + public final static native boolean SipStack_isCodecSupported(int jarg1); + 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 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 SWIGMediaContentCPIMUpcast(long jarg1); + public final static native long SWIGDialogEventUpcast(long jarg1); + public final static native long SWIGStackEventUpcast(long jarg1); + public final static native long SWIGInviteEventUpcast(long jarg1); + public final static native long SWIGMessagingEventUpcast(long jarg1); + public final static native long SWIGOptionsEventUpcast(long jarg1); + public final static native long SWIGPublicationEventUpcast(long jarg1); + public final static native long SWIGRegistrationEventUpcast(long jarg1); + public final static native long SWIGSubscriptionEventUpcast(long jarg1); + public final static native long SWIGInviteSessionUpcast(long jarg1); + public final static native long SWIGCallSessionUpcast(long jarg1); + public final static native long SWIGMsrpSessionUpcast(long jarg1); + public final static native long SWIGMessagingSessionUpcast(long jarg1); + public final static native long SWIGOptionsSessionUpcast(long jarg1); + public final static native long SWIGPublicationSessionUpcast(long jarg1); + public final static native long SWIGRegistrationSessionUpcast(long jarg1); + public final static native long SWIGSubscriptionSessionUpcast(long jarg1); + public final static native long SWIGProxyAudioConsumerUpcast(long jarg1); + public final static native long SWIGProxyVideoConsumerUpcast(long jarg1); + public final static native long SWIGProxyAudioProducerUpcast(long jarg1); + public final static native long SWIGProxyVideoProducerUpcast(long jarg1); + public final static native long SWIGSipStackUpcast(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_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 width, int height, int fps) { + return self.prepare(width, height, fps); + } + 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_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_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_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..a4815b4 --- /dev/null +++ b/bindings/java/android/tinyWRAP_wrap.cxx @@ -0,0 +1,9660 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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 + +/* ----------------------------------------------------------------------------- + * See the LICENSE file for information on copyright, usage and redistribution + * of SWIG, and the README file for authors - http://www.swig.org/release.html. + * + * 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; + if (jobj) + jthis_ = ((weak_global_ || !mem_own) ? 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; + } + + 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_; + public: + JNIEnvWrapper(const Director *director) : director_(director), jenv_(0) { +#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((void **) &jenv_, NULL); +#else + director_->swig_jvm_->AttachCurrentThread((JNIEnv **) &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. + 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_.peek(); +#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); + } + } + } + + 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 { + static jclass jclass_tinyWRAPJNI = NULL; + static jmethodID director_methids[33]; +} + +#include <stdint.h> // Use the C99 official header + + +#include "DDebug.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->ExceptionOccurred()) 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->ExceptionOccurred()) 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->ExceptionOccurred()) 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->ExceptionOccurred()) 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_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[4], swigjobj, jid, jtype); + if (jenv->ExceptionOccurred()) 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[5], swigjobj, jid, jtype); + if (jenv->ExceptionOccurred()) 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[6], swigjobj, jptime, jrate, jchannels); + if (jenv->ExceptionOccurred()) 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[7], swigjobj); + if (jenv->ExceptionOccurred()) 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[8], swigjobj); + if (jenv->ExceptionOccurred()) 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[9], swigjobj); + if (jenv->ExceptionOccurred()) 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 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 ProxyVideoConsumerCallback::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[10], swigjobj, jwidth, jheight, jfps); + if (jenv->ExceptionOccurred()) 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[11], swigjobj, jframe); + if (jenv->ExceptionOccurred()) 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[2]) { + 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[12], swigjobj); + if (jenv->ExceptionOccurred()) 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[3]) { + 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[13], swigjobj); + if (jenv->ExceptionOccurred()) 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[4]) { + 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[14], swigjobj); + if (jenv->ExceptionOccurred()) 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 + }, + { + "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 < 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_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[15], swigjobj, jptime, jrate, jchannels); + if (jenv->ExceptionOccurred()) 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[16], swigjobj); + if (jenv->ExceptionOccurred()) 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[17], swigjobj); + if (jenv->ExceptionOccurred()) 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[18], swigjobj); + if (jenv->ExceptionOccurred()) 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 + } + }; + + 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 < 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_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[19], swigjobj, jwidth, jheight, jfps); + if (jenv->ExceptionOccurred()) 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[20], swigjobj); + if (jenv->ExceptionOccurred()) 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[21], swigjobj); + if (jenv->ExceptionOccurred()) 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[22], swigjobj); + if (jenv->ExceptionOccurred()) 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[23], swigjobj, je); + if (jenv->ExceptionOccurred()) 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[24], swigjobj, je); + if (jenv->ExceptionOccurred()) 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[25], swigjobj, je); + if (jenv->ExceptionOccurred()) 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[26], swigjobj, je); + if (jenv->ExceptionOccurred()) 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[4]) { + 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[27], swigjobj, je); + if (jenv->ExceptionOccurred()) 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[5]) { + 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[28], swigjobj, je); + if (jenv->ExceptionOccurred()) 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[6]) { + 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[29], swigjobj, je); + if (jenv->ExceptionOccurred()) 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[7]) { + 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[30], swigjobj, je); + if (jenv->ExceptionOccurred()) 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 + }, + { + "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 < 8; ++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[31], swigjobj, je); + if (jenv->ExceptionOccurred()) 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[32], swigjobj, je); + if (jenv->ExceptionOccurred()) 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_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 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_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 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_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 *)(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 *)(arg1)->findProxyPluginProducer(arg2); + *(ProxyPlugin **)&jresult = 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(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 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 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)(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_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 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 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_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(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_1setToUri(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_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)(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 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_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_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_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_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_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_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_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(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(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(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_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(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 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(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(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(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(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_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 jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1pull(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 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_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_, jint jarg2, jint jarg3) { + jboolean jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + int arg2 ; + int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + result = (bool)(arg1)->setDisplaySize(arg2,arg3); + jresult = (jboolean)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 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_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_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 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 jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1push(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 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)(arg1)->getRotation(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setRotation(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + int arg2 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducer **)&jarg1; + arg2 = (int)jarg2; + (arg1)->setRotation(arg2); +} + + +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 jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1send(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jboolean jarg5) { + jint jresult = 0 ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int arg4 ; + bool arg5 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + arg4 = (unsigned int)jarg4; + arg5 = jarg5 ? true : false; + result = (int)(arg1)->send((void const *)arg2,arg3,arg4,arg5); + 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_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_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(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(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_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_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_1setSSLCretificates(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; + } + 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; + } + 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 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; + } + 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 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, jint jarg1) { + int arg1 ; + + (void)jenv; + (void)jcls; + arg1 = (int)jarg1; + SipStack::setCodecs_2(arg1); +} + + +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 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 ; + } + 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 ; + } + 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 ; + } + 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 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_SWIGMediaContentCPIMUpcast(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_SWIGDialogEventUpcast(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_SWIGStackEventUpcast(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_SWIGInviteEventUpcast(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_SWIGMessagingEventUpcast(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_SWIGOptionsEventUpcast(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_SWIGPublicationEventUpcast(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_SWIGRegistrationEventUpcast(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_SWIGSubscriptionEventUpcast(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_SWIGInviteSessionUpcast(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_SWIGCallSessionUpcast(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_SWIGMsrpSessionUpcast(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_SWIGMessagingSessionUpcast(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_SWIGOptionsSessionUpcast(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_SWIGPublicationSessionUpcast(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_SWIGRegistrationSessionUpcast(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_SWIGSubscriptionSessionUpcast(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_SWIGProxyAudioConsumerUpcast(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_SWIGProxyVideoConsumerUpcast(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_SWIGProxyAudioProducerUpcast(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_SWIGProxyVideoProducerUpcast(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_SWIGSipStackUpcast(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[33] = { + { + "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_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_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_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_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..dcccf16 --- /dev/null +++ b/bindings/java/android/tinyWRAP_wrap.h @@ -0,0 +1,174 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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_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 width, int height, int fps); + virtual int consume(ProxyVideoFrame const *frame); + virtual int start(); + virtual int pause(); + virtual int stop(); +public: + bool swig_overrides(int n) { + return (n < 5 ? swig_override[n] : false); + } +protected: + bool swig_override[5]; +}; + +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(); +public: + bool swig_overrides(int n) { + return (n < 4 ? swig_override[n] : false); + } +protected: + bool swig_override[4]; +}; + +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 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 < 8 ? swig_override[n] : false); + } +protected: + bool swig_override[8]; +}; + +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..3d094f3 --- /dev/null +++ b/bindings/java/android/tmedia_bandwidth_level_t.java @@ -0,0 +1,53 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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; + + 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..18fbb97 --- /dev/null +++ b/bindings/java/android/tmedia_chroma_t.java @@ -0,0 +1,60 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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_rgb24, + tmedia_bgr24, + tmedia_rgb32, + tmedia_rgb565le, + tmedia_rgb565be, + tmedia_nv12, + tmedia_nv21, + tmedia_yuv422p, + tmedia_uyvy422, + tmedia_yuv420p; + + 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_qos_strength_t.java b/bindings/java/android/tmedia_qos_strength_t.java new file mode 100644 index 0000000..5bd8017 --- /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 1.3.39 + * + * 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..e81416e --- /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 1.3.39 + * + * 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/tmsrp_event_type_t.java b/bindings/java/android/tmsrp_event_type_t.java new file mode 100644 index 0000000..c849e75 --- /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 1.3.39 + * + * 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..5c0d691 --- /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 1.3.39 + * + * 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..6527ee1 --- /dev/null +++ b/bindings/java/android/tsip_event_type_t.java @@ -0,0 +1,57 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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_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_invite_event_type_t.java b/bindings/java/android/tsip_invite_event_type_t.java new file mode 100644 index 0000000..64f036d --- /dev/null +++ b/bindings/java/android/tsip_invite_event_type_t.java @@ -0,0 +1,63 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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_ok, + tsip_o_ect_nok, + tsip_i_ect, + tsip_m_early_media, + 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..280845a --- /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 1.3.39 + * + * 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..7016676 --- /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 1.3.39 + * + * 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..a9ec14a --- /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 1.3.39 + * + * 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..298204e --- /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 1.3.39 + * + * 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_subscribe_event_type_t.java b/bindings/java/android/tsip_subscribe_event_type_t.java new file mode 100644 index 0000000..5091b65 --- /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 1.3.39 + * + * 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..c70e6c9 --- /dev/null +++ b/bindings/java/android/twrap_media_type_t.java @@ -0,0 +1,55 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.39 + * + * 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, + twrap_media_audio, + twrap_media_video, + twrap_media_audiovideo, + twrap_media_msrp; + + 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..bc0421b --- /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 1.3.39 + * + * 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..f8ed86a --- /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 1.3.39 + * + * 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..dde6e1b --- /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 1.3.39 + * + * 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; + } +} + |