diff options
author | Mamadou DIOP <bossiel@yahoo.fr> | 2015-08-17 01:56:35 +0200 |
---|---|---|
committer | Mamadou DIOP <bossiel@yahoo.fr> | 2015-08-17 01:56:35 +0200 |
commit | 631fffee8a28b1bec5ed1f1d26a20e0135967f99 (patch) | |
tree | 74afe3bf3efe15aa82bcd0272b2b0f4d48c2d837 /branches/1.0/bindings/java/android/SipSession.java | |
parent | 7908865936604036e6f200f1b5e069f8752f3a3a (diff) | |
download | doubango-631fffee8a28b1bec5ed1f1d26a20e0135967f99.zip doubango-631fffee8a28b1bec5ed1f1d26a20e0135967f99.tar.gz |
-
Diffstat (limited to 'branches/1.0/bindings/java/android/SipSession.java')
-rw-r--r-- | branches/1.0/bindings/java/android/SipSession.java | 101 |
1 files changed, 0 insertions, 101 deletions
diff --git a/branches/1.0/bindings/java/android/SipSession.java b/branches/1.0/bindings/java/android/SipSession.java deleted file mode 100644 index d3d9b84..0000000 --- a/branches/1.0/bindings/java/android/SipSession.java +++ /dev/null @@ -1,101 +0,0 @@ -/* ---------------------------------------------------------------------------- - * 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); - } - -} |