diff --git a/trunk/bindings/_common/SafeObject.cxx b/trunk/bindings/_common/SafeObject.cxx index 0ea8650c..012c6817 100644 --- a/trunk/bindings/_common/SafeObject.cxx +++ b/trunk/bindings/_common/SafeObject.cxx @@ -26,12 +26,12 @@ SafeObject::SafeObject() this->mutex = tsk_mutex_create(); } -int SafeObject::Lock() +int SafeObject::Lock()const { return tsk_mutex_lock(this->mutex); } -int SafeObject::UnLock() +int SafeObject::UnLock()const { return tsk_mutex_unlock(this->mutex); } diff --git a/trunk/bindings/_common/SafeObject.h b/trunk/bindings/_common/SafeObject.h index d085da80..6d1409fb 100644 --- a/trunk/bindings/_common/SafeObject.h +++ b/trunk/bindings/_common/SafeObject.h @@ -31,8 +31,8 @@ public: virtual ~SafeObject(); /* protected: */ - int Lock(); - int UnLock(); + int Lock()const; + int UnLock()const; private: tsk_mutex_handle_t *mutex; diff --git a/trunk/bindings/_common/SipSession.cxx b/trunk/bindings/_common/SipSession.cxx index e3ab6148..4272aa82 100644 --- a/trunk/bindings/_common/SipSession.cxx +++ b/trunk/bindings/_common/SipSession.cxx @@ -22,11 +22,12 @@ #include "SipSession.h" #include "SipStack.h" -SipSession::SipSession(SipStack* Stack) +SipSession::SipSession(SipStack* _stack) { - this->handle = tsip_ssession_create(Stack->getHandle(), + this->handle = tsip_ssession_create(_stack->getHandle(), TSIP_SSESSION_SET_USERDATA(this), TSIP_SSESSION_SET_NULL()); + this->stack = _stack; } SipSession::~SipSession() @@ -107,3 +108,9 @@ bool SipSession::setPayload(const char* payload, unsigned size) return false; } + +const SipStack* SipSession::getStack()const +{ + return this->stack; +} + diff --git a/trunk/bindings/_common/SipSession.h b/trunk/bindings/_common/SipSession.h index 95a63807..82f1f1d9 100644 --- a/trunk/bindings/_common/SipSession.h +++ b/trunk/bindings/_common/SipSession.h @@ -29,7 +29,7 @@ class SipStack; class SipSession { public: - SipSession(SipStack* Stack); + SipSession(SipStack* stack); virtual ~SipSession(); public: @@ -50,9 +50,14 @@ public: %apply (const char *str, unsigned len) { (const char *str, unsigned len) }; #endif bool setPayload(const char *str, unsigned len); + +#if !defined(SWIG) + const SipStack* getStack() const; +#endif protected: tsip_ssession_handle_t* handle; + const SipStack* stack; }; #endif /* TINYWRAP_SIPSESSION_H */ diff --git a/trunk/bindings/_common/SipStack.cxx b/trunk/bindings/_common/SipStack.cxx index 38af31c5..99ec02bd 100644 --- a/trunk/bindings/_common/SipStack.cxx +++ b/trunk/bindings/_common/SipStack.cxx @@ -61,7 +61,7 @@ SipStack::SipStack(SipCallback* callback_, const char* realm_uri, const char* im /* Creates stack handle */ this->handle = tsip_stack_create(stack_callback, realm_uri, impi_uri, impu_uri, TSIP_STACK_SET_LOCAL_IP(DEFAULT_LOCAL_IP), - TSIP_STACK_SET_USERDATA(this), /* used as context */ + /* TSIP_STACK_SET_USERDATA(this), */ /* used as context */ TSIP_STACK_SET_NULL()); SipStack::count++; @@ -198,12 +198,12 @@ bool SipStack::stop() return (ret == 0); } -tsip_stack_handle_t* SipStack::getHandle() +tsip_stack_handle_t* SipStack::getHandle()const { return this->handle; } -SipCallback* SipStack::getCallback() +SipCallback* SipStack::getCallback()const { return this->callback; } @@ -216,7 +216,7 @@ SipDebugCallback* SipStack::getDebugCallback() const int stack_callback(const tsip_event_t *sipevent) { int ret = 0; - SipStack* Stack = tsk_null; + const SipStack* Stack = tsk_null; SipEvent* e = tsk_null; if(!sipevent){ /* should never happen ...but who know? */ @@ -225,7 +225,10 @@ int stack_callback(const tsip_event_t *sipevent) } else{ /* retrive the stack from the context */ - Stack = dyn_cast ((SipStack*)tsip_stack_get_userdata(sipevent->stack)); + const SipSession* session = dyn_cast((const SipSession*)tsip_ssession_get_userdata(sipevent->ss)); + if(session){ + Stack = session->getStack(); + } } if(!Stack){ diff --git a/trunk/bindings/_common/SipStack.h b/trunk/bindings/_common/SipStack.h index c700acb6..bbd05f82 100644 --- a/trunk/bindings/_common/SipStack.h +++ b/trunk/bindings/_common/SipStack.h @@ -55,8 +55,8 @@ public: /* API functions */ public: /* Public helper function */ #if !defined(SWIG) - tsip_stack_handle_t* getHandle(); - SipCallback* getCallback(); + tsip_stack_handle_t* getHandle()const; + SipCallback* getCallback()const; SipDebugCallback* getDebugCallback() const; #endif diff --git a/trunk/bindings/csharp/RegistrationEvent.cs b/trunk/bindings/csharp/RegistrationEvent.cs index 7bbca8a8..18ca5d15 100644 --- a/trunk/bindings/csharp/RegistrationEvent.cs +++ b/trunk/bindings/csharp/RegistrationEvent.cs @@ -1,54 +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. - * ----------------------------------------------------------------------------- */ - - -using System; -using System.Runtime.InteropServices; - -public class RegistrationEvent : SipEvent { - private HandleRef swigCPtr; - - internal RegistrationEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.RegistrationEventUpcast(cPtr), cMemoryOwn) { - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(RegistrationEvent obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~RegistrationEvent() { - Dispose(); - } - - public override void Dispose() { - lock(this) { - if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { - swigCMemOwn = false; - tinyWRAPPINVOKE.delete_RegistrationEvent(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - GC.SuppressFinalize(this); - base.Dispose(); - } - } - - public RegistrationEvent() : this(tinyWRAPPINVOKE.new_RegistrationEvent(), true) { - } - - public tsip_register_event_type_t getType() { - tsip_register_event_type_t ret = (tsip_register_event_type_t)tinyWRAPPINVOKE.RegistrationEvent_getType(swigCPtr); - return ret; - } - - public RegistrationSession getSession() { - IntPtr cPtr = tinyWRAPPINVOKE.RegistrationEvent_getSession(swigCPtr); - RegistrationSession ret = (cPtr == IntPtr.Zero) ? null : new RegistrationSession(cPtr, false); - return ret; - } - -} +/* ---------------------------------------------------------------------------- + * 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. + * ----------------------------------------------------------------------------- */ + + +using System; +using System.Runtime.InteropServices; + +public class RegistrationEvent : SipEvent { + private HandleRef swigCPtr; + + internal RegistrationEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.RegistrationEventUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(RegistrationEvent obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~RegistrationEvent() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_RegistrationEvent(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public RegistrationEvent() : this(tinyWRAPPINVOKE.new_RegistrationEvent(), true) { + } + + public tsip_register_event_type_t getType() { + tsip_register_event_type_t ret = (tsip_register_event_type_t)tinyWRAPPINVOKE.RegistrationEvent_getType(swigCPtr); + return ret; + } + + public RegistrationSession getSession() { + IntPtr cPtr = tinyWRAPPINVOKE.RegistrationEvent_getSession(swigCPtr); + RegistrationSession ret = (cPtr == IntPtr.Zero) ? null : new RegistrationSession(cPtr, false); + return ret; + } + +} diff --git a/trunk/bindings/csharp/RegistrationSession.cs b/trunk/bindings/csharp/RegistrationSession.cs index a4bb38a4..37d922e1 100644 --- a/trunk/bindings/csharp/RegistrationSession.cs +++ b/trunk/bindings/csharp/RegistrationSession.cs @@ -1,53 +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. - * ----------------------------------------------------------------------------- */ - - -using System; -using System.Runtime.InteropServices; - -public class RegistrationSession : SipSession { - private HandleRef swigCPtr; - - internal RegistrationSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.RegistrationSessionUpcast(cPtr), cMemoryOwn) { - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(RegistrationSession obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~RegistrationSession() { - Dispose(); - } - - public override void Dispose() { - lock(this) { - if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { - swigCMemOwn = false; - tinyWRAPPINVOKE.delete_RegistrationSession(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - GC.SuppressFinalize(this); - base.Dispose(); - } - } - - public RegistrationSession(SipStack Stack) : this(tinyWRAPPINVOKE.new_RegistrationSession(SipStack.getCPtr(Stack)), true) { - } - - public bool Register() { - bool ret = tinyWRAPPINVOKE.RegistrationSession_Register(swigCPtr); - return ret; - } - - public bool UnRegister() { - bool ret = tinyWRAPPINVOKE.RegistrationSession_UnRegister(swigCPtr); - return ret; - } - -} +/* ---------------------------------------------------------------------------- + * 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. + * ----------------------------------------------------------------------------- */ + + +using System; +using System.Runtime.InteropServices; + +public class RegistrationSession : SipSession { + private HandleRef swigCPtr; + + internal RegistrationSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.RegistrationSessionUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(RegistrationSession obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~RegistrationSession() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_RegistrationSession(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public RegistrationSession(SipStack Stack) : this(tinyWRAPPINVOKE.new_RegistrationSession(SipStack.getCPtr(Stack)), true) { + } + + public bool Register() { + bool ret = tinyWRAPPINVOKE.RegistrationSession_Register(swigCPtr); + return ret; + } + + public bool UnRegister() { + bool ret = tinyWRAPPINVOKE.RegistrationSession_UnRegister(swigCPtr); + return ret; + } + +} diff --git a/trunk/bindings/csharp/SafeObject.cs b/trunk/bindings/csharp/SafeObject.cs index faffa622..f7dd7a47 100644 --- a/trunk/bindings/csharp/SafeObject.cs +++ b/trunk/bindings/csharp/SafeObject.cs @@ -1,54 +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. - * ----------------------------------------------------------------------------- */ - - -using System; -using System.Runtime.InteropServices; - -public class SafeObject : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal SafeObject(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(SafeObject obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~SafeObject() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { - swigCMemOwn = false; - tinyWRAPPINVOKE.delete_SafeObject(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - GC.SuppressFinalize(this); - } - } - - public SafeObject() : this(tinyWRAPPINVOKE.new_SafeObject(), true) { - } - - public int Lock() { - int ret = tinyWRAPPINVOKE.SafeObject_Lock(swigCPtr); - return ret; - } - - public int UnLock() { - int ret = tinyWRAPPINVOKE.SafeObject_UnLock(swigCPtr); - return ret; - } - -} +/* ---------------------------------------------------------------------------- + * 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. + * ----------------------------------------------------------------------------- */ + + +using System; +using System.Runtime.InteropServices; + +public class SafeObject : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal SafeObject(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SafeObject obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SafeObject() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SafeObject(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + GC.SuppressFinalize(this); + } + } + + public SafeObject() : this(tinyWRAPPINVOKE.new_SafeObject(), true) { + } + + public int Lock() { + int ret = tinyWRAPPINVOKE.SafeObject_Lock(swigCPtr); + return ret; + } + + public int UnLock() { + int ret = tinyWRAPPINVOKE.SafeObject_UnLock(swigCPtr); + return ret; + } + +} diff --git a/trunk/bindings/csharp/SipCallback.cs b/trunk/bindings/csharp/SipCallback.cs index 93e87d30..abeea734 100644 --- a/trunk/bindings/csharp/SipCallback.cs +++ b/trunk/bindings/csharp/SipCallback.cs @@ -1,85 +1,85 @@ -/* ---------------------------------------------------------------------------- - * 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. - * ----------------------------------------------------------------------------- */ - - -using System; -using System.Runtime.InteropServices; - -public class SipCallback : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal SipCallback(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(SipCallback obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~SipCallback() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { - swigCMemOwn = false; - tinyWRAPPINVOKE.delete_SipCallback(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - GC.SuppressFinalize(this); - } - } - - public SipCallback() : this(tinyWRAPPINVOKE.new_SipCallback(), true) { - SwigDirectorConnect(); - } - - public virtual int OnRegistrationChanged(RegistrationEvent e) { - int ret = ((this.GetType() == typeof(SipCallback)) ? tinyWRAPPINVOKE.SipCallback_OnRegistrationChanged(swigCPtr, RegistrationEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnRegistrationChangedSwigExplicitSipCallback(swigCPtr, RegistrationEvent.getCPtr(e))); - return ret; - } - - public virtual int OnSubscriptionChanged(SubscriptionEvent e) { - int ret = ((this.GetType() == typeof(SipCallback)) ? tinyWRAPPINVOKE.SipCallback_OnSubscriptionChanged(swigCPtr, SubscriptionEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, SubscriptionEvent.getCPtr(e))); - return ret; - } - - private void SwigDirectorConnect() { - if (SwigDerivedClassHasMethod("OnRegistrationChanged", swigMethodTypes0)) - swigDelegate0 = new SwigDelegateSipCallback_0(SwigDirectorOnRegistrationChanged); - if (SwigDerivedClassHasMethod("OnSubscriptionChanged", swigMethodTypes1)) - swigDelegate1 = new SwigDelegateSipCallback_1(SwigDirectorOnSubscriptionChanged); - tinyWRAPPINVOKE.SipCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1); - } - - private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) { - System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance, null, methodTypes, null); - bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(SipCallback)); - return hasDerivedMethod; - } - - private int SwigDirectorOnRegistrationChanged(IntPtr e) { - return OnRegistrationChanged((e == IntPtr.Zero) ? null : new RegistrationEvent(e, false)); - } - - private int SwigDirectorOnSubscriptionChanged(IntPtr e) { - return OnSubscriptionChanged((e == IntPtr.Zero) ? null : new SubscriptionEvent(e, false)); - } - - public delegate int SwigDelegateSipCallback_0(IntPtr e); - public delegate int SwigDelegateSipCallback_1(IntPtr e); - - private SwigDelegateSipCallback_0 swigDelegate0; - private SwigDelegateSipCallback_1 swigDelegate1; - - private static Type[] swigMethodTypes0 = new Type[] { typeof(RegistrationEvent) }; - private static Type[] swigMethodTypes1 = new Type[] { typeof(SubscriptionEvent) }; -} +/* ---------------------------------------------------------------------------- + * 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. + * ----------------------------------------------------------------------------- */ + + +using System; +using System.Runtime.InteropServices; + +public class SipCallback : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal SipCallback(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SipCallback obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SipCallback() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SipCallback(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + GC.SuppressFinalize(this); + } + } + + public SipCallback() : this(tinyWRAPPINVOKE.new_SipCallback(), true) { + SwigDirectorConnect(); + } + + public virtual int OnRegistrationChanged(RegistrationEvent e) { + int ret = ((this.GetType() == typeof(SipCallback)) ? tinyWRAPPINVOKE.SipCallback_OnRegistrationChanged(swigCPtr, RegistrationEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnRegistrationChangedSwigExplicitSipCallback(swigCPtr, RegistrationEvent.getCPtr(e))); + return ret; + } + + public virtual int OnSubscriptionChanged(SubscriptionEvent e) { + int ret = ((this.GetType() == typeof(SipCallback)) ? tinyWRAPPINVOKE.SipCallback_OnSubscriptionChanged(swigCPtr, SubscriptionEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, SubscriptionEvent.getCPtr(e))); + return ret; + } + + private void SwigDirectorConnect() { + if (SwigDerivedClassHasMethod("OnRegistrationChanged", swigMethodTypes0)) + swigDelegate0 = new SwigDelegateSipCallback_0(SwigDirectorOnRegistrationChanged); + if (SwigDerivedClassHasMethod("OnSubscriptionChanged", swigMethodTypes1)) + swigDelegate1 = new SwigDelegateSipCallback_1(SwigDirectorOnSubscriptionChanged); + tinyWRAPPINVOKE.SipCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1); + } + + private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) { + System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance, null, methodTypes, null); + bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(SipCallback)); + return hasDerivedMethod; + } + + private int SwigDirectorOnRegistrationChanged(IntPtr e) { + return OnRegistrationChanged((e == IntPtr.Zero) ? null : new RegistrationEvent(e, false)); + } + + private int SwigDirectorOnSubscriptionChanged(IntPtr e) { + return OnSubscriptionChanged((e == IntPtr.Zero) ? null : new SubscriptionEvent(e, false)); + } + + public delegate int SwigDelegateSipCallback_0(IntPtr e); + public delegate int SwigDelegateSipCallback_1(IntPtr e); + + private SwigDelegateSipCallback_0 swigDelegate0; + private SwigDelegateSipCallback_1 swigDelegate1; + + private static Type[] swigMethodTypes0 = new Type[] { typeof(RegistrationEvent) }; + private static Type[] swigMethodTypes1 = new Type[] { typeof(SubscriptionEvent) }; +} diff --git a/trunk/bindings/csharp/SipDebugCallback.cs b/trunk/bindings/csharp/SipDebugCallback.cs index 79f22348..4c66efa2 100644 --- a/trunk/bindings/csharp/SipDebugCallback.cs +++ b/trunk/bindings/csharp/SipDebugCallback.cs @@ -1,113 +1,113 @@ -/* ---------------------------------------------------------------------------- - * 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. - * ----------------------------------------------------------------------------- */ - - -using System; -using System.Runtime.InteropServices; - -public class SipDebugCallback : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal SipDebugCallback(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(SipDebugCallback obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~SipDebugCallback() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { - swigCMemOwn = false; - tinyWRAPPINVOKE.delete_SipDebugCallback(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - GC.SuppressFinalize(this); - } - } - - public SipDebugCallback() : this(tinyWRAPPINVOKE.new_SipDebugCallback(), true) { - SwigDirectorConnect(); - } - - public virtual int OnDebugInfo(string message) { - int ret = ((this.GetType() == typeof(SipDebugCallback)) ? tinyWRAPPINVOKE.SipDebugCallback_OnDebugInfo(swigCPtr, message) : tinyWRAPPINVOKE.SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(swigCPtr, message)); - return ret; - } - - public virtual int OnDebugWarn(string message) { - int ret = ((this.GetType() == typeof(SipDebugCallback)) ? tinyWRAPPINVOKE.SipDebugCallback_OnDebugWarn(swigCPtr, message) : tinyWRAPPINVOKE.SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(swigCPtr, message)); - return ret; - } - - public virtual int OnDebugError(string message) { - int ret = ((this.GetType() == typeof(SipDebugCallback)) ? tinyWRAPPINVOKE.SipDebugCallback_OnDebugError(swigCPtr, message) : tinyWRAPPINVOKE.SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(swigCPtr, message)); - return ret; - } - - public virtual int OnDebugFatal(string message) { - int ret = ((this.GetType() == typeof(SipDebugCallback)) ? tinyWRAPPINVOKE.SipDebugCallback_OnDebugFatal(swigCPtr, message) : tinyWRAPPINVOKE.SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(swigCPtr, message)); - return ret; - } - - private void SwigDirectorConnect() { - if (SwigDerivedClassHasMethod("OnDebugInfo", swigMethodTypes0)) - swigDelegate0 = new SwigDelegateSipDebugCallback_0(SwigDirectorOnDebugInfo); - if (SwigDerivedClassHasMethod("OnDebugWarn", swigMethodTypes1)) - swigDelegate1 = new SwigDelegateSipDebugCallback_1(SwigDirectorOnDebugWarn); - if (SwigDerivedClassHasMethod("OnDebugError", swigMethodTypes2)) - swigDelegate2 = new SwigDelegateSipDebugCallback_2(SwigDirectorOnDebugError); - if (SwigDerivedClassHasMethod("OnDebugFatal", swigMethodTypes3)) - swigDelegate3 = new SwigDelegateSipDebugCallback_3(SwigDirectorOnDebugFatal); - tinyWRAPPINVOKE.SipDebugCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3); - } - - private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) { - System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance, null, methodTypes, null); - bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(SipDebugCallback)); - return hasDerivedMethod; - } - - private int SwigDirectorOnDebugInfo(string message) { - return OnDebugInfo(message); - } - - private int SwigDirectorOnDebugWarn(string message) { - return OnDebugWarn(message); - } - - private int SwigDirectorOnDebugError(string message) { - return OnDebugError(message); - } - - private int SwigDirectorOnDebugFatal(string message) { - return OnDebugFatal(message); - } - - public delegate int SwigDelegateSipDebugCallback_0(string message); - public delegate int SwigDelegateSipDebugCallback_1(string message); - public delegate int SwigDelegateSipDebugCallback_2(string message); - public delegate int SwigDelegateSipDebugCallback_3(string message); - - private SwigDelegateSipDebugCallback_0 swigDelegate0; - private SwigDelegateSipDebugCallback_1 swigDelegate1; - private SwigDelegateSipDebugCallback_2 swigDelegate2; - private SwigDelegateSipDebugCallback_3 swigDelegate3; - - private static Type[] swigMethodTypes0 = new Type[] { typeof(string) }; - private static Type[] swigMethodTypes1 = new Type[] { typeof(string) }; - private static Type[] swigMethodTypes2 = new Type[] { typeof(string) }; - private static Type[] swigMethodTypes3 = new Type[] { typeof(string) }; -} +/* ---------------------------------------------------------------------------- + * 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. + * ----------------------------------------------------------------------------- */ + + +using System; +using System.Runtime.InteropServices; + +public class SipDebugCallback : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal SipDebugCallback(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SipDebugCallback obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SipDebugCallback() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SipDebugCallback(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + GC.SuppressFinalize(this); + } + } + + public SipDebugCallback() : this(tinyWRAPPINVOKE.new_SipDebugCallback(), true) { + SwigDirectorConnect(); + } + + public virtual int OnDebugInfo(string message) { + int ret = ((this.GetType() == typeof(SipDebugCallback)) ? tinyWRAPPINVOKE.SipDebugCallback_OnDebugInfo(swigCPtr, message) : tinyWRAPPINVOKE.SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(swigCPtr, message)); + return ret; + } + + public virtual int OnDebugWarn(string message) { + int ret = ((this.GetType() == typeof(SipDebugCallback)) ? tinyWRAPPINVOKE.SipDebugCallback_OnDebugWarn(swigCPtr, message) : tinyWRAPPINVOKE.SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(swigCPtr, message)); + return ret; + } + + public virtual int OnDebugError(string message) { + int ret = ((this.GetType() == typeof(SipDebugCallback)) ? tinyWRAPPINVOKE.SipDebugCallback_OnDebugError(swigCPtr, message) : tinyWRAPPINVOKE.SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(swigCPtr, message)); + return ret; + } + + public virtual int OnDebugFatal(string message) { + int ret = ((this.GetType() == typeof(SipDebugCallback)) ? tinyWRAPPINVOKE.SipDebugCallback_OnDebugFatal(swigCPtr, message) : tinyWRAPPINVOKE.SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(swigCPtr, message)); + return ret; + } + + private void SwigDirectorConnect() { + if (SwigDerivedClassHasMethod("OnDebugInfo", swigMethodTypes0)) + swigDelegate0 = new SwigDelegateSipDebugCallback_0(SwigDirectorOnDebugInfo); + if (SwigDerivedClassHasMethod("OnDebugWarn", swigMethodTypes1)) + swigDelegate1 = new SwigDelegateSipDebugCallback_1(SwigDirectorOnDebugWarn); + if (SwigDerivedClassHasMethod("OnDebugError", swigMethodTypes2)) + swigDelegate2 = new SwigDelegateSipDebugCallback_2(SwigDirectorOnDebugError); + if (SwigDerivedClassHasMethod("OnDebugFatal", swigMethodTypes3)) + swigDelegate3 = new SwigDelegateSipDebugCallback_3(SwigDirectorOnDebugFatal); + tinyWRAPPINVOKE.SipDebugCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3); + } + + private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) { + System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance, null, methodTypes, null); + bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(SipDebugCallback)); + return hasDerivedMethod; + } + + private int SwigDirectorOnDebugInfo(string message) { + return OnDebugInfo(message); + } + + private int SwigDirectorOnDebugWarn(string message) { + return OnDebugWarn(message); + } + + private int SwigDirectorOnDebugError(string message) { + return OnDebugError(message); + } + + private int SwigDirectorOnDebugFatal(string message) { + return OnDebugFatal(message); + } + + public delegate int SwigDelegateSipDebugCallback_0(string message); + public delegate int SwigDelegateSipDebugCallback_1(string message); + public delegate int SwigDelegateSipDebugCallback_2(string message); + public delegate int SwigDelegateSipDebugCallback_3(string message); + + private SwigDelegateSipDebugCallback_0 swigDelegate0; + private SwigDelegateSipDebugCallback_1 swigDelegate1; + private SwigDelegateSipDebugCallback_2 swigDelegate2; + private SwigDelegateSipDebugCallback_3 swigDelegate3; + + private static Type[] swigMethodTypes0 = new Type[] { typeof(string) }; + private static Type[] swigMethodTypes1 = new Type[] { typeof(string) }; + private static Type[] swigMethodTypes2 = new Type[] { typeof(string) }; + private static Type[] swigMethodTypes3 = new Type[] { typeof(string) }; +} diff --git a/trunk/bindings/csharp/SipEvent.cs b/trunk/bindings/csharp/SipEvent.cs index 1fc4ad76..3ec0222d 100644 --- a/trunk/bindings/csharp/SipEvent.cs +++ b/trunk/bindings/csharp/SipEvent.cs @@ -1,60 +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. - * ----------------------------------------------------------------------------- */ - - -using System; -using System.Runtime.InteropServices; - -public class SipEvent : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal SipEvent(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(SipEvent obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~SipEvent() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { - swigCMemOwn = false; - tinyWRAPPINVOKE.delete_SipEvent(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - GC.SuppressFinalize(this); - } - } - - public SipEvent() : this(tinyWRAPPINVOKE.new_SipEvent(), true) { - } - - public short getCode() { - short ret = tinyWRAPPINVOKE.SipEvent_getCode(swigCPtr); - return ret; - } - - public string getPhrase() { - string ret = tinyWRAPPINVOKE.SipEvent_getPhrase(swigCPtr); - return ret; - } - - public SipSession getBaseSession() { - IntPtr cPtr = tinyWRAPPINVOKE.SipEvent_getBaseSession(swigCPtr); - SipSession ret = (cPtr == IntPtr.Zero) ? null : new SipSession(cPtr, false); - return ret; - } - -} +/* ---------------------------------------------------------------------------- + * 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. + * ----------------------------------------------------------------------------- */ + + +using System; +using System.Runtime.InteropServices; + +public class SipEvent : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal SipEvent(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SipEvent obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SipEvent() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SipEvent(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + GC.SuppressFinalize(this); + } + } + + public SipEvent() : this(tinyWRAPPINVOKE.new_SipEvent(), true) { + } + + public short getCode() { + short ret = tinyWRAPPINVOKE.SipEvent_getCode(swigCPtr); + return ret; + } + + public string getPhrase() { + string ret = tinyWRAPPINVOKE.SipEvent_getPhrase(swigCPtr); + return ret; + } + + public SipSession getBaseSession() { + IntPtr cPtr = tinyWRAPPINVOKE.SipEvent_getBaseSession(swigCPtr); + SipSession ret = (cPtr == IntPtr.Zero) ? null : new SipSession(cPtr, false); + return ret; + } + +} diff --git a/trunk/bindings/csharp/SipSession.cs b/trunk/bindings/csharp/SipSession.cs index a0f4f97e..749cb45b 100644 --- a/trunk/bindings/csharp/SipSession.cs +++ b/trunk/bindings/csharp/SipSession.cs @@ -1,89 +1,89 @@ -/* ---------------------------------------------------------------------------- - * 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. - * ----------------------------------------------------------------------------- */ - - -using System; -using System.Runtime.InteropServices; - -public class SipSession : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal SipSession(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(SipSession obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~SipSession() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { - swigCMemOwn = false; - tinyWRAPPINVOKE.delete_SipSession(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - GC.SuppressFinalize(this); - } - } - - public SipSession(SipStack Stack) : this(tinyWRAPPINVOKE.new_SipSession(SipStack.getCPtr(Stack)), true) { - } - - public bool addHeader(string name, string value) { - bool ret = tinyWRAPPINVOKE.SipSession_addHeader(swigCPtr, name, value); - return ret; - } - - public bool removeHeader(string name) { - bool ret = tinyWRAPPINVOKE.SipSession_removeHeader(swigCPtr, name); - return ret; - } - - public bool addCaps(string name, string value) { - bool ret = tinyWRAPPINVOKE.SipSession_addCaps__SWIG_0(swigCPtr, name, value); - return ret; - } - - public bool addCaps(string name) { - bool ret = tinyWRAPPINVOKE.SipSession_addCaps__SWIG_1(swigCPtr, name); - return ret; - } - - public bool removeCaps(string name) { - bool ret = tinyWRAPPINVOKE.SipSession_removeCaps(swigCPtr, name); - return ret; - } - - public bool setExpires(uint expires) { - bool ret = tinyWRAPPINVOKE.SipSession_setExpires(swigCPtr, expires); - return ret; - } - - public bool setFromUri(string fromUri) { - bool ret = tinyWRAPPINVOKE.SipSession_setFromUri(swigCPtr, fromUri); - return ret; - } - - public bool setToUri(string toUri) { - bool ret = tinyWRAPPINVOKE.SipSession_setToUri(swigCPtr, toUri); - return ret; - } - - public bool setPayload(string str, uint len) { - bool ret = tinyWRAPPINVOKE.SipSession_setPayload(swigCPtr, str, len); - return ret; - } - -} +/* ---------------------------------------------------------------------------- + * 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. + * ----------------------------------------------------------------------------- */ + + +using System; +using System.Runtime.InteropServices; + +public class SipSession : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal SipSession(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SipSession obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SipSession() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SipSession(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + GC.SuppressFinalize(this); + } + } + + public SipSession(SipStack stack) : this(tinyWRAPPINVOKE.new_SipSession(SipStack.getCPtr(stack)), true) { + } + + public bool addHeader(string name, string value) { + bool ret = tinyWRAPPINVOKE.SipSession_addHeader(swigCPtr, name, value); + return ret; + } + + public bool removeHeader(string name) { + bool ret = tinyWRAPPINVOKE.SipSession_removeHeader(swigCPtr, name); + return ret; + } + + public bool addCaps(string name, string value) { + bool ret = tinyWRAPPINVOKE.SipSession_addCaps__SWIG_0(swigCPtr, name, value); + return ret; + } + + public bool addCaps(string name) { + bool ret = tinyWRAPPINVOKE.SipSession_addCaps__SWIG_1(swigCPtr, name); + return ret; + } + + public bool removeCaps(string name) { + bool ret = tinyWRAPPINVOKE.SipSession_removeCaps(swigCPtr, name); + return ret; + } + + public bool setExpires(uint expires) { + bool ret = tinyWRAPPINVOKE.SipSession_setExpires(swigCPtr, expires); + return ret; + } + + public bool setFromUri(string fromUri) { + bool ret = tinyWRAPPINVOKE.SipSession_setFromUri(swigCPtr, fromUri); + return ret; + } + + public bool setToUri(string toUri) { + bool ret = tinyWRAPPINVOKE.SipSession_setToUri(swigCPtr, toUri); + return ret; + } + + public bool setPayload(string str, uint len) { + bool ret = tinyWRAPPINVOKE.SipSession_setPayload(swigCPtr, str, len); + return ret; + } + +} diff --git a/trunk/bindings/csharp/SipStack.cs b/trunk/bindings/csharp/SipStack.cs index 3242aa7c..a523605a 100644 --- a/trunk/bindings/csharp/SipStack.cs +++ b/trunk/bindings/csharp/SipStack.cs @@ -1,118 +1,118 @@ -/* ---------------------------------------------------------------------------- - * 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. - * ----------------------------------------------------------------------------- */ - - -using System; -using System.Runtime.InteropServices; - -public class SipStack : SafeObject { - private HandleRef swigCPtr; - - internal SipStack(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.SipStackUpcast(cPtr), cMemoryOwn) { - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(SipStack obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~SipStack() { - Dispose(); - } - - public override void Dispose() { - lock(this) { - if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { - swigCMemOwn = false; - tinyWRAPPINVOKE.delete_SipStack(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - GC.SuppressFinalize(this); - base.Dispose(); - } - } - - public SipStack(SipCallback callback, string realm_uri, string impi_uri, string impu_uri) : this(tinyWRAPPINVOKE.new_SipStack(SipCallback.getCPtr(callback), realm_uri, impi_uri, impu_uri), true) { - } - - public bool start() { - bool ret = tinyWRAPPINVOKE.SipStack_start(swigCPtr); - return ret; - } - - public bool setDebugCallback(SipDebugCallback callback) { - bool ret = tinyWRAPPINVOKE.SipStack_setDebugCallback(swigCPtr, SipDebugCallback.getCPtr(callback)); - return ret; - } - - public bool setRealm(string realm_uri) { - bool ret = tinyWRAPPINVOKE.SipStack_setRealm(swigCPtr, realm_uri); - return ret; - } - - public bool setIMPI(string impi) { - bool ret = tinyWRAPPINVOKE.SipStack_setIMPI(swigCPtr, impi); - return ret; - } - - public bool setIMPU(string impu_uri) { - bool ret = tinyWRAPPINVOKE.SipStack_setIMPU(swigCPtr, impu_uri); - return ret; - } - - public bool setPassword(string password) { - bool ret = tinyWRAPPINVOKE.SipStack_setPassword(swigCPtr, password); - return ret; - } - - public bool setProxyCSCF(string fqdn, uint port, string transport, string ipversion) { - bool ret = tinyWRAPPINVOKE.SipStack_setProxyCSCF(swigCPtr, fqdn, port, transport, ipversion); - return ret; - } - - public bool setLocalIP(string ip) { - bool ret = tinyWRAPPINVOKE.SipStack_setLocalIP(swigCPtr, ip); - return ret; - } - - public bool setLocalPort(uint port) { - bool ret = tinyWRAPPINVOKE.SipStack_setLocalPort(swigCPtr, port); - return ret; - } - - public bool setEarlyIMS(bool enabled) { - bool ret = tinyWRAPPINVOKE.SipStack_setEarlyIMS(swigCPtr, enabled); - return ret; - } - - public bool addHeader(string name, string value) { - bool ret = tinyWRAPPINVOKE.SipStack_addHeader(swigCPtr, name, value); - return ret; - } - - public bool removeHeader(string name) { - bool ret = tinyWRAPPINVOKE.SipStack_removeHeader(swigCPtr, name); - return ret; - } - - public bool addDnsServer(string ip) { - bool ret = tinyWRAPPINVOKE.SipStack_addDnsServer(swigCPtr, ip); - return ret; - } - - public bool isValid() { - bool ret = tinyWRAPPINVOKE.SipStack_isValid(swigCPtr); - return ret; - } - - public bool stop() { - bool ret = tinyWRAPPINVOKE.SipStack_stop(swigCPtr); - return ret; - } - -} +/* ---------------------------------------------------------------------------- + * 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. + * ----------------------------------------------------------------------------- */ + + +using System; +using System.Runtime.InteropServices; + +public class SipStack : SafeObject { + private HandleRef swigCPtr; + + internal SipStack(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.SipStackUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SipStack obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SipStack() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SipStack(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public SipStack(SipCallback callback, string realm_uri, string impi_uri, string impu_uri) : this(tinyWRAPPINVOKE.new_SipStack(SipCallback.getCPtr(callback), realm_uri, impi_uri, impu_uri), true) { + } + + public bool start() { + bool ret = tinyWRAPPINVOKE.SipStack_start(swigCPtr); + return ret; + } + + public bool setDebugCallback(SipDebugCallback callback) { + bool ret = tinyWRAPPINVOKE.SipStack_setDebugCallback(swigCPtr, SipDebugCallback.getCPtr(callback)); + return ret; + } + + public bool setRealm(string realm_uri) { + bool ret = tinyWRAPPINVOKE.SipStack_setRealm(swigCPtr, realm_uri); + return ret; + } + + public bool setIMPI(string impi) { + bool ret = tinyWRAPPINVOKE.SipStack_setIMPI(swigCPtr, impi); + return ret; + } + + public bool setIMPU(string impu_uri) { + bool ret = tinyWRAPPINVOKE.SipStack_setIMPU(swigCPtr, impu_uri); + return ret; + } + + public bool setPassword(string password) { + bool ret = tinyWRAPPINVOKE.SipStack_setPassword(swigCPtr, password); + return ret; + } + + public bool setProxyCSCF(string fqdn, uint port, string transport, string ipversion) { + bool ret = tinyWRAPPINVOKE.SipStack_setProxyCSCF(swigCPtr, fqdn, port, transport, ipversion); + return ret; + } + + public bool setLocalIP(string ip) { + bool ret = tinyWRAPPINVOKE.SipStack_setLocalIP(swigCPtr, ip); + return ret; + } + + public bool setLocalPort(uint port) { + bool ret = tinyWRAPPINVOKE.SipStack_setLocalPort(swigCPtr, port); + return ret; + } + + public bool setEarlyIMS(bool enabled) { + bool ret = tinyWRAPPINVOKE.SipStack_setEarlyIMS(swigCPtr, enabled); + return ret; + } + + public bool addHeader(string name, string value) { + bool ret = tinyWRAPPINVOKE.SipStack_addHeader(swigCPtr, name, value); + return ret; + } + + public bool removeHeader(string name) { + bool ret = tinyWRAPPINVOKE.SipStack_removeHeader(swigCPtr, name); + return ret; + } + + public bool addDnsServer(string ip) { + bool ret = tinyWRAPPINVOKE.SipStack_addDnsServer(swigCPtr, ip); + return ret; + } + + public bool isValid() { + bool ret = tinyWRAPPINVOKE.SipStack_isValid(swigCPtr); + return ret; + } + + public bool stop() { + bool ret = tinyWRAPPINVOKE.SipStack_stop(swigCPtr); + return ret; + } + +} diff --git a/trunk/bindings/csharp/SipUri.cs b/trunk/bindings/csharp/SipUri.cs index 7a9dbb27..891ddc04 100644 --- a/trunk/bindings/csharp/SipUri.cs +++ b/trunk/bindings/csharp/SipUri.cs @@ -1,54 +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. - * ----------------------------------------------------------------------------- */ - - -using System; -using System.Runtime.InteropServices; - -public class SipUri : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal SipUri(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(SipUri obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~SipUri() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { - swigCMemOwn = false; - tinyWRAPPINVOKE.delete_SipUri(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - GC.SuppressFinalize(this); - } - } - - public SipUri(string arg0) : this(tinyWRAPPINVOKE.new_SipUri(arg0), true) { - } - - public static bool isValid(string arg0) { - bool ret = tinyWRAPPINVOKE.SipUri_isValid__SWIG_0(arg0); - return ret; - } - - public bool isValid() { - bool ret = tinyWRAPPINVOKE.SipUri_isValid__SWIG_1(swigCPtr); - return ret; - } - -} +/* ---------------------------------------------------------------------------- + * 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. + * ----------------------------------------------------------------------------- */ + + +using System; +using System.Runtime.InteropServices; + +public class SipUri : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal SipUri(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SipUri obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SipUri() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SipUri(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + GC.SuppressFinalize(this); + } + } + + public SipUri(string arg0) : this(tinyWRAPPINVOKE.new_SipUri(arg0), true) { + } + + public static bool isValid(string arg0) { + bool ret = tinyWRAPPINVOKE.SipUri_isValid__SWIG_0(arg0); + return ret; + } + + public bool isValid() { + bool ret = tinyWRAPPINVOKE.SipUri_isValid__SWIG_1(swigCPtr); + return ret; + } + +} diff --git a/trunk/bindings/csharp/SubscriptionEvent.cs b/trunk/bindings/csharp/SubscriptionEvent.cs index 404002b8..f68f8add 100644 --- a/trunk/bindings/csharp/SubscriptionEvent.cs +++ b/trunk/bindings/csharp/SubscriptionEvent.cs @@ -1,54 +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. - * ----------------------------------------------------------------------------- */ - - -using System; -using System.Runtime.InteropServices; - -public class SubscriptionEvent : SipEvent { - private HandleRef swigCPtr; - - internal SubscriptionEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.SubscriptionEventUpcast(cPtr), cMemoryOwn) { - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(SubscriptionEvent obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~SubscriptionEvent() { - Dispose(); - } - - public override void Dispose() { - lock(this) { - if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { - swigCMemOwn = false; - tinyWRAPPINVOKE.delete_SubscriptionEvent(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - GC.SuppressFinalize(this); - base.Dispose(); - } - } - - public SubscriptionEvent() : this(tinyWRAPPINVOKE.new_SubscriptionEvent(), true) { - } - - public tsip_subscribe_event_type_t getType() { - tsip_subscribe_event_type_t ret = (tsip_subscribe_event_type_t)tinyWRAPPINVOKE.SubscriptionEvent_getType(swigCPtr); - return ret; - } - - public SubscriptionSession getSession() { - IntPtr cPtr = tinyWRAPPINVOKE.SubscriptionEvent_getSession(swigCPtr); - SubscriptionSession ret = (cPtr == IntPtr.Zero) ? null : new SubscriptionSession(cPtr, false); - return ret; - } - -} +/* ---------------------------------------------------------------------------- + * 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. + * ----------------------------------------------------------------------------- */ + + +using System; +using System.Runtime.InteropServices; + +public class SubscriptionEvent : SipEvent { + private HandleRef swigCPtr; + + internal SubscriptionEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.SubscriptionEventUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SubscriptionEvent obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SubscriptionEvent() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SubscriptionEvent(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public SubscriptionEvent() : this(tinyWRAPPINVOKE.new_SubscriptionEvent(), true) { + } + + public tsip_subscribe_event_type_t getType() { + tsip_subscribe_event_type_t ret = (tsip_subscribe_event_type_t)tinyWRAPPINVOKE.SubscriptionEvent_getType(swigCPtr); + return ret; + } + + public SubscriptionSession getSession() { + IntPtr cPtr = tinyWRAPPINVOKE.SubscriptionEvent_getSession(swigCPtr); + SubscriptionSession ret = (cPtr == IntPtr.Zero) ? null : new SubscriptionSession(cPtr, false); + return ret; + } + +} diff --git a/trunk/bindings/csharp/SubscriptionSession.cs b/trunk/bindings/csharp/SubscriptionSession.cs index 4a31124a..2fbd99df 100644 --- a/trunk/bindings/csharp/SubscriptionSession.cs +++ b/trunk/bindings/csharp/SubscriptionSession.cs @@ -1,53 +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. - * ----------------------------------------------------------------------------- */ - - -using System; -using System.Runtime.InteropServices; - -public class SubscriptionSession : SipSession { - private HandleRef swigCPtr; - - internal SubscriptionSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.SubscriptionSessionUpcast(cPtr), cMemoryOwn) { - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(SubscriptionSession obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~SubscriptionSession() { - Dispose(); - } - - public override void Dispose() { - lock(this) { - if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { - swigCMemOwn = false; - tinyWRAPPINVOKE.delete_SubscriptionSession(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - GC.SuppressFinalize(this); - base.Dispose(); - } - } - - public SubscriptionSession(SipStack Stack) : this(tinyWRAPPINVOKE.new_SubscriptionSession(SipStack.getCPtr(Stack)), true) { - } - - public bool Subscribe() { - bool ret = tinyWRAPPINVOKE.SubscriptionSession_Subscribe(swigCPtr); - return ret; - } - - public bool UnSubscribe() { - bool ret = tinyWRAPPINVOKE.SubscriptionSession_UnSubscribe(swigCPtr); - return ret; - } - -} +/* ---------------------------------------------------------------------------- + * 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. + * ----------------------------------------------------------------------------- */ + + +using System; +using System.Runtime.InteropServices; + +public class SubscriptionSession : SipSession { + private HandleRef swigCPtr; + + internal SubscriptionSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.SubscriptionSessionUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SubscriptionSession obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SubscriptionSession() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SubscriptionSession(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public SubscriptionSession(SipStack Stack) : this(tinyWRAPPINVOKE.new_SubscriptionSession(SipStack.getCPtr(Stack)), true) { + } + + public bool Subscribe() { + bool ret = tinyWRAPPINVOKE.SubscriptionSession_Subscribe(swigCPtr); + return ret; + } + + public bool UnSubscribe() { + bool ret = tinyWRAPPINVOKE.SubscriptionSession_UnSubscribe(swigCPtr); + return ret; + } + +} diff --git a/trunk/bindings/csharp/tinyWRAP.cs b/trunk/bindings/csharp/tinyWRAP.cs index b8ef1af9..00778947 100644 --- a/trunk/bindings/csharp/tinyWRAP.cs +++ b/trunk/bindings/csharp/tinyWRAP.cs @@ -1,14 +1,14 @@ -/* ---------------------------------------------------------------------------- - * 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. - * ----------------------------------------------------------------------------- */ - - -using System; -using System.Runtime.InteropServices; - -public class tinyWRAP { -} +/* ---------------------------------------------------------------------------- + * 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. + * ----------------------------------------------------------------------------- */ + + +using System; +using System.Runtime.InteropServices; + +public class tinyWRAP { +} diff --git a/trunk/bindings/csharp/tinyWRAPPINVOKE.cs b/trunk/bindings/csharp/tinyWRAPPINVOKE.cs index 33d2d44d..95046e8c 100644 --- a/trunk/bindings/csharp/tinyWRAPPINVOKE.cs +++ b/trunk/bindings/csharp/tinyWRAPPINVOKE.cs @@ -1,426 +1,426 @@ -/* ---------------------------------------------------------------------------- - * 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. - * ----------------------------------------------------------------------------- */ - - -using System; -using System.Runtime.InteropServices; - -class tinyWRAPPINVOKE { - - protected class SWIGExceptionHelper { - - public delegate void ExceptionDelegate(string message); - public delegate void ExceptionArgumentDelegate(string message, string paramName); - - static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException); - static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException); - static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException); - static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException); - static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException); - static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException); - static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException); - static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException); - static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException); - static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException); - static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException); - - static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException); - static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException); - static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException); - - [DllImport("tinyWRAP", EntryPoint="SWIGRegisterExceptionCallbacks_tinyWRAP")] - public static extern void SWIGRegisterExceptionCallbacks_tinyWRAP( - ExceptionDelegate applicationDelegate, - ExceptionDelegate arithmeticDelegate, - ExceptionDelegate divideByZeroDelegate, - ExceptionDelegate indexOutOfRangeDelegate, - ExceptionDelegate invalidCastDelegate, - ExceptionDelegate invalidOperationDelegate, - ExceptionDelegate ioDelegate, - ExceptionDelegate nullReferenceDelegate, - ExceptionDelegate outOfMemoryDelegate, - ExceptionDelegate overflowDelegate, - ExceptionDelegate systemExceptionDelegate); - - [DllImport("tinyWRAP", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_tinyWRAP")] - public static extern void SWIGRegisterExceptionCallbacksArgument_tinyWRAP( - ExceptionArgumentDelegate argumentDelegate, - ExceptionArgumentDelegate argumentNullDelegate, - ExceptionArgumentDelegate argumentOutOfRangeDelegate); - - static void SetPendingApplicationException(string message) { - SWIGPendingException.Set(new System.ApplicationException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingArithmeticException(string message) { - SWIGPendingException.Set(new System.ArithmeticException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingDivideByZeroException(string message) { - SWIGPendingException.Set(new System.DivideByZeroException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingIndexOutOfRangeException(string message) { - SWIGPendingException.Set(new System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingInvalidCastException(string message) { - SWIGPendingException.Set(new System.InvalidCastException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingInvalidOperationException(string message) { - SWIGPendingException.Set(new System.InvalidOperationException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingIOException(string message) { - SWIGPendingException.Set(new System.IO.IOException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingNullReferenceException(string message) { - SWIGPendingException.Set(new System.NullReferenceException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingOutOfMemoryException(string message) { - SWIGPendingException.Set(new System.OutOfMemoryException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingOverflowException(string message) { - SWIGPendingException.Set(new System.OverflowException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingSystemException(string message) { - SWIGPendingException.Set(new System.SystemException(message, SWIGPendingException.Retrieve())); - } - - static void SetPendingArgumentException(string message, string paramName) { - SWIGPendingException.Set(new System.ArgumentException(message, paramName, SWIGPendingException.Retrieve())); - } - static void SetPendingArgumentNullException(string message, string paramName) { - Exception e = SWIGPendingException.Retrieve(); - if (e != null) message = message + " Inner Exception: " + e.Message; - SWIGPendingException.Set(new System.ArgumentNullException(paramName, message)); - } - static void SetPendingArgumentOutOfRangeException(string message, string paramName) { - Exception e = SWIGPendingException.Retrieve(); - if (e != null) message = message + " Inner Exception: " + e.Message; - SWIGPendingException.Set(new System.ArgumentOutOfRangeException(paramName, message)); - } - - static SWIGExceptionHelper() { - SWIGRegisterExceptionCallbacks_tinyWRAP( - applicationDelegate, - arithmeticDelegate, - divideByZeroDelegate, - indexOutOfRangeDelegate, - invalidCastDelegate, - invalidOperationDelegate, - ioDelegate, - nullReferenceDelegate, - outOfMemoryDelegate, - overflowDelegate, - systemDelegate); - - SWIGRegisterExceptionCallbacksArgument_tinyWRAP( - argumentDelegate, - argumentNullDelegate, - argumentOutOfRangeDelegate); - } - } - - protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper(); - - public class SWIGPendingException { - [ThreadStatic] - private static Exception pendingException = null; - private static int numExceptionsPending = 0; - - public static bool Pending { - get { - bool pending = false; - if (numExceptionsPending > 0) - if (pendingException != null) - pending = true; - return pending; - } - } - - public static void Set(Exception e) { - if (pendingException != null) - throw new ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e); - pendingException = e; - lock(typeof(tinyWRAPPINVOKE)) { - numExceptionsPending++; - } - } - - public static Exception Retrieve() { - Exception e = null; - if (numExceptionsPending > 0) { - if (pendingException != null) { - e = pendingException; - pendingException = null; - lock(typeof(tinyWRAPPINVOKE)) { - numExceptionsPending--; - } - } - } - return e; - } - } - - - protected class SWIGStringHelper { - - public delegate string SWIGStringDelegate(string message); - static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString); - - [DllImport("tinyWRAP", EntryPoint="SWIGRegisterStringCallback_tinyWRAP")] - public static extern void SWIGRegisterStringCallback_tinyWRAP(SWIGStringDelegate stringDelegate); - - static string CreateString(string cString) { - return cString; - } - - static SWIGStringHelper() { - SWIGRegisterStringCallback_tinyWRAP(stringDelegate); - } - } - - static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper(); - - - [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipUri")] - public static extern IntPtr new_SipUri(string jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipUri")] - public static extern void delete_SipUri(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_isValid__SWIG_0")] - public static extern bool SipUri_isValid__SWIG_0(string jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_isValid__SWIG_1")] - public static extern bool SipUri_isValid__SWIG_1(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipEvent")] - public static extern IntPtr new_SipEvent(); - - [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipEvent")] - public static extern void delete_SipEvent(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getCode")] - public static extern short SipEvent_getCode(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getPhrase")] - public static extern string SipEvent_getPhrase(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getBaseSession")] - public static extern IntPtr SipEvent_getBaseSession(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipSession")] - public static extern IntPtr new_SipSession(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipSession")] - public static extern void delete_SipSession(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_addHeader")] - public static extern bool SipSession_addHeader(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_removeHeader")] - public static extern bool SipSession_removeHeader(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_addCaps__SWIG_0")] - public static extern bool SipSession_addCaps__SWIG_0(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_addCaps__SWIG_1")] - public static extern bool SipSession_addCaps__SWIG_1(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_removeCaps")] - public static extern bool SipSession_removeCaps(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setExpires")] - public static extern bool SipSession_setExpires(HandleRef jarg1, uint jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setFromUri")] - public static extern bool SipSession_setFromUri(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setToUri")] - public static extern bool SipSession_setToUri(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setPayload")] - public static extern bool SipSession_setPayload(HandleRef jarg1, string jarg2, uint jarg3); - - [DllImport("tinyWRAP", EntryPoint="CSharp_new_RegistrationEvent")] - public static extern IntPtr new_RegistrationEvent(); - - [DllImport("tinyWRAP", EntryPoint="CSharp_delete_RegistrationEvent")] - public static extern void delete_RegistrationEvent(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEvent_getType")] - public static extern int RegistrationEvent_getType(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEvent_getSession")] - public static extern IntPtr RegistrationEvent_getSession(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_new_RegistrationSession")] - public static extern IntPtr new_RegistrationSession(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_delete_RegistrationSession")] - public static extern void delete_RegistrationSession(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_Register")] - public static extern bool RegistrationSession_Register(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_UnRegister")] - public static extern bool RegistrationSession_UnRegister(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_new_SubscriptionEvent")] - public static extern IntPtr new_SubscriptionEvent(); - - [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SubscriptionEvent")] - public static extern void delete_SubscriptionEvent(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEvent_getType")] - public static extern int SubscriptionEvent_getType(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEvent_getSession")] - public static extern IntPtr SubscriptionEvent_getSession(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_new_SubscriptionSession")] - public static extern IntPtr new_SubscriptionSession(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SubscriptionSession")] - public static extern void delete_SubscriptionSession(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionSession_Subscribe")] - public static extern bool SubscriptionSession_Subscribe(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionSession_UnSubscribe")] - public static extern bool SubscriptionSession_UnSubscribe(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipCallback")] - public static extern IntPtr new_SipCallback(); - - [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipCallback")] - public static extern void delete_SipCallback(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnRegistrationChanged")] - public static extern int SipCallback_OnRegistrationChanged(HandleRef jarg1, HandleRef jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnRegistrationChangedSwigExplicitSipCallback")] - public static extern int SipCallback_OnRegistrationChangedSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnSubscriptionChanged")] - public static extern int SipCallback_OnSubscriptionChanged(HandleRef jarg1, HandleRef jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnSubscriptionChangedSwigExplicitSipCallback")] - public static extern int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_director_connect")] - public static extern void SipCallback_director_connect(HandleRef jarg1, SipCallback.SwigDelegateSipCallback_0 delegate0, SipCallback.SwigDelegateSipCallback_1 delegate1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipDebugCallback")] - public static extern IntPtr new_SipDebugCallback(); - - [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipDebugCallback")] - public static extern void delete_SipDebugCallback(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugInfo")] - public static extern int SipDebugCallback_OnDebugInfo(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback")] - public static extern int SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugWarn")] - public static extern int SipDebugCallback_OnDebugWarn(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback")] - public static extern int SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugError")] - public static extern int SipDebugCallback_OnDebugError(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback")] - public static extern int SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugFatal")] - public static extern int SipDebugCallback_OnDebugFatal(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback")] - public static extern int SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_director_connect")] - public static extern void SipDebugCallback_director_connect(HandleRef jarg1, SipDebugCallback.SwigDelegateSipDebugCallback_0 delegate0, SipDebugCallback.SwigDelegateSipDebugCallback_1 delegate1, SipDebugCallback.SwigDelegateSipDebugCallback_2 delegate2, SipDebugCallback.SwigDelegateSipDebugCallback_3 delegate3); - - [DllImport("tinyWRAP", EntryPoint="CSharp_new_SafeObject")] - public static extern IntPtr new_SafeObject(); - - [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SafeObject")] - public static extern void delete_SafeObject(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SafeObject_Lock")] - public static extern int SafeObject_Lock(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SafeObject_UnLock")] - public static extern int SafeObject_UnLock(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipStack")] - public static extern IntPtr new_SipStack(HandleRef jarg1, string jarg2, string jarg3, string jarg4); - - [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipStack")] - public static extern void delete_SipStack(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_start")] - public static extern bool SipStack_start(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setDebugCallback")] - public static extern bool SipStack_setDebugCallback(HandleRef jarg1, HandleRef jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setRealm")] - public static extern bool SipStack_setRealm(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setIMPI")] - public static extern bool SipStack_setIMPI(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setIMPU")] - public static extern bool SipStack_setIMPU(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setPassword")] - public static extern bool SipStack_setPassword(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setProxyCSCF")] - public static extern bool SipStack_setProxyCSCF(HandleRef jarg1, string jarg2, uint jarg3, string jarg4, string jarg5); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setLocalIP")] - public static extern bool SipStack_setLocalIP(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setLocalPort")] - public static extern bool SipStack_setLocalPort(HandleRef jarg1, uint jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setEarlyIMS")] - public static extern bool SipStack_setEarlyIMS(HandleRef jarg1, bool jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_addHeader")] - public static extern bool SipStack_addHeader(HandleRef jarg1, string jarg2, string jarg3); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_removeHeader")] - public static extern bool SipStack_removeHeader(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_addDnsServer")] - public static extern bool SipStack_addDnsServer(HandleRef jarg1, string jarg2); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_isValid")] - public static extern bool SipStack_isValid(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_stop")] - public static extern bool SipStack_stop(HandleRef jarg1); - - [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEventUpcast")] - public static extern IntPtr RegistrationEventUpcast(IntPtr objectRef); - - [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSessionUpcast")] - public static extern IntPtr RegistrationSessionUpcast(IntPtr objectRef); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEventUpcast")] - public static extern IntPtr SubscriptionEventUpcast(IntPtr objectRef); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionSessionUpcast")] - public static extern IntPtr SubscriptionSessionUpcast(IntPtr objectRef); - - [DllImport("tinyWRAP", EntryPoint="CSharp_SipStackUpcast")] - public static extern IntPtr SipStackUpcast(IntPtr objectRef); -} +/* ---------------------------------------------------------------------------- + * 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. + * ----------------------------------------------------------------------------- */ + + +using System; +using System.Runtime.InteropServices; + +class tinyWRAPPINVOKE { + + protected class SWIGExceptionHelper { + + public delegate void ExceptionDelegate(string message); + public delegate void ExceptionArgumentDelegate(string message, string paramName); + + static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException); + static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException); + static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException); + static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException); + static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException); + static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException); + static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException); + static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException); + static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException); + static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException); + static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException); + + static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException); + static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException); + static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException); + + [DllImport("tinyWRAP", EntryPoint="SWIGRegisterExceptionCallbacks_tinyWRAP")] + public static extern void SWIGRegisterExceptionCallbacks_tinyWRAP( + ExceptionDelegate applicationDelegate, + ExceptionDelegate arithmeticDelegate, + ExceptionDelegate divideByZeroDelegate, + ExceptionDelegate indexOutOfRangeDelegate, + ExceptionDelegate invalidCastDelegate, + ExceptionDelegate invalidOperationDelegate, + ExceptionDelegate ioDelegate, + ExceptionDelegate nullReferenceDelegate, + ExceptionDelegate outOfMemoryDelegate, + ExceptionDelegate overflowDelegate, + ExceptionDelegate systemExceptionDelegate); + + [DllImport("tinyWRAP", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_tinyWRAP")] + public static extern void SWIGRegisterExceptionCallbacksArgument_tinyWRAP( + ExceptionArgumentDelegate argumentDelegate, + ExceptionArgumentDelegate argumentNullDelegate, + ExceptionArgumentDelegate argumentOutOfRangeDelegate); + + static void SetPendingApplicationException(string message) { + SWIGPendingException.Set(new System.ApplicationException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingArithmeticException(string message) { + SWIGPendingException.Set(new System.ArithmeticException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingDivideByZeroException(string message) { + SWIGPendingException.Set(new System.DivideByZeroException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingIndexOutOfRangeException(string message) { + SWIGPendingException.Set(new System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingInvalidCastException(string message) { + SWIGPendingException.Set(new System.InvalidCastException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingInvalidOperationException(string message) { + SWIGPendingException.Set(new System.InvalidOperationException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingIOException(string message) { + SWIGPendingException.Set(new System.IO.IOException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingNullReferenceException(string message) { + SWIGPendingException.Set(new System.NullReferenceException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingOutOfMemoryException(string message) { + SWIGPendingException.Set(new System.OutOfMemoryException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingOverflowException(string message) { + SWIGPendingException.Set(new System.OverflowException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingSystemException(string message) { + SWIGPendingException.Set(new System.SystemException(message, SWIGPendingException.Retrieve())); + } + + static void SetPendingArgumentException(string message, string paramName) { + SWIGPendingException.Set(new System.ArgumentException(message, paramName, SWIGPendingException.Retrieve())); + } + static void SetPendingArgumentNullException(string message, string paramName) { + Exception e = SWIGPendingException.Retrieve(); + if (e != null) message = message + " Inner Exception: " + e.Message; + SWIGPendingException.Set(new System.ArgumentNullException(paramName, message)); + } + static void SetPendingArgumentOutOfRangeException(string message, string paramName) { + Exception e = SWIGPendingException.Retrieve(); + if (e != null) message = message + " Inner Exception: " + e.Message; + SWIGPendingException.Set(new System.ArgumentOutOfRangeException(paramName, message)); + } + + static SWIGExceptionHelper() { + SWIGRegisterExceptionCallbacks_tinyWRAP( + applicationDelegate, + arithmeticDelegate, + divideByZeroDelegate, + indexOutOfRangeDelegate, + invalidCastDelegate, + invalidOperationDelegate, + ioDelegate, + nullReferenceDelegate, + outOfMemoryDelegate, + overflowDelegate, + systemDelegate); + + SWIGRegisterExceptionCallbacksArgument_tinyWRAP( + argumentDelegate, + argumentNullDelegate, + argumentOutOfRangeDelegate); + } + } + + protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper(); + + public class SWIGPendingException { + [ThreadStatic] + private static Exception pendingException = null; + private static int numExceptionsPending = 0; + + public static bool Pending { + get { + bool pending = false; + if (numExceptionsPending > 0) + if (pendingException != null) + pending = true; + return pending; + } + } + + public static void Set(Exception e) { + if (pendingException != null) + throw new ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e); + pendingException = e; + lock(typeof(tinyWRAPPINVOKE)) { + numExceptionsPending++; + } + } + + public static Exception Retrieve() { + Exception e = null; + if (numExceptionsPending > 0) { + if (pendingException != null) { + e = pendingException; + pendingException = null; + lock(typeof(tinyWRAPPINVOKE)) { + numExceptionsPending--; + } + } + } + return e; + } + } + + + protected class SWIGStringHelper { + + public delegate string SWIGStringDelegate(string message); + static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString); + + [DllImport("tinyWRAP", EntryPoint="SWIGRegisterStringCallback_tinyWRAP")] + public static extern void SWIGRegisterStringCallback_tinyWRAP(SWIGStringDelegate stringDelegate); + + static string CreateString(string cString) { + return cString; + } + + static SWIGStringHelper() { + SWIGRegisterStringCallback_tinyWRAP(stringDelegate); + } + } + + static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper(); + + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipUri")] + public static extern IntPtr new_SipUri(string jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipUri")] + public static extern void delete_SipUri(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_isValid__SWIG_0")] + public static extern bool SipUri_isValid__SWIG_0(string jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_isValid__SWIG_1")] + public static extern bool SipUri_isValid__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipEvent")] + public static extern IntPtr new_SipEvent(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipEvent")] + public static extern void delete_SipEvent(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getCode")] + public static extern short SipEvent_getCode(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getPhrase")] + public static extern string SipEvent_getPhrase(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getBaseSession")] + public static extern IntPtr SipEvent_getBaseSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipSession")] + public static extern IntPtr new_SipSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipSession")] + public static extern void delete_SipSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_addHeader")] + public static extern bool SipSession_addHeader(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_removeHeader")] + public static extern bool SipSession_removeHeader(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_addCaps__SWIG_0")] + public static extern bool SipSession_addCaps__SWIG_0(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_addCaps__SWIG_1")] + public static extern bool SipSession_addCaps__SWIG_1(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_removeCaps")] + public static extern bool SipSession_removeCaps(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setExpires")] + public static extern bool SipSession_setExpires(HandleRef jarg1, uint jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setFromUri")] + public static extern bool SipSession_setFromUri(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setToUri")] + public static extern bool SipSession_setToUri(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setPayload")] + public static extern bool SipSession_setPayload(HandleRef jarg1, string jarg2, uint jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_RegistrationEvent")] + public static extern IntPtr new_RegistrationEvent(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_RegistrationEvent")] + public static extern void delete_RegistrationEvent(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEvent_getType")] + public static extern int RegistrationEvent_getType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEvent_getSession")] + public static extern IntPtr RegistrationEvent_getSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_RegistrationSession")] + public static extern IntPtr new_RegistrationSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_RegistrationSession")] + public static extern void delete_RegistrationSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_Register")] + public static extern bool RegistrationSession_Register(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_UnRegister")] + public static extern bool RegistrationSession_UnRegister(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SubscriptionEvent")] + public static extern IntPtr new_SubscriptionEvent(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SubscriptionEvent")] + public static extern void delete_SubscriptionEvent(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEvent_getType")] + public static extern int SubscriptionEvent_getType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEvent_getSession")] + public static extern IntPtr SubscriptionEvent_getSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SubscriptionSession")] + public static extern IntPtr new_SubscriptionSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SubscriptionSession")] + public static extern void delete_SubscriptionSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionSession_Subscribe")] + public static extern bool SubscriptionSession_Subscribe(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionSession_UnSubscribe")] + public static extern bool SubscriptionSession_UnSubscribe(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipCallback")] + public static extern IntPtr new_SipCallback(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipCallback")] + public static extern void delete_SipCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnRegistrationChanged")] + public static extern int SipCallback_OnRegistrationChanged(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnRegistrationChangedSwigExplicitSipCallback")] + public static extern int SipCallback_OnRegistrationChangedSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnSubscriptionChanged")] + public static extern int SipCallback_OnSubscriptionChanged(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnSubscriptionChangedSwigExplicitSipCallback")] + public static extern int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_director_connect")] + public static extern void SipCallback_director_connect(HandleRef jarg1, SipCallback.SwigDelegateSipCallback_0 delegate0, SipCallback.SwigDelegateSipCallback_1 delegate1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipDebugCallback")] + public static extern IntPtr new_SipDebugCallback(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipDebugCallback")] + public static extern void delete_SipDebugCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugInfo")] + public static extern int SipDebugCallback_OnDebugInfo(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback")] + public static extern int SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugWarn")] + public static extern int SipDebugCallback_OnDebugWarn(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback")] + public static extern int SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugError")] + public static extern int SipDebugCallback_OnDebugError(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback")] + public static extern int SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugFatal")] + public static extern int SipDebugCallback_OnDebugFatal(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback")] + public static extern int SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_director_connect")] + public static extern void SipDebugCallback_director_connect(HandleRef jarg1, SipDebugCallback.SwigDelegateSipDebugCallback_0 delegate0, SipDebugCallback.SwigDelegateSipDebugCallback_1 delegate1, SipDebugCallback.SwigDelegateSipDebugCallback_2 delegate2, SipDebugCallback.SwigDelegateSipDebugCallback_3 delegate3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SafeObject")] + public static extern IntPtr new_SafeObject(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SafeObject")] + public static extern void delete_SafeObject(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SafeObject_Lock")] + public static extern int SafeObject_Lock(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SafeObject_UnLock")] + public static extern int SafeObject_UnLock(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipStack")] + public static extern IntPtr new_SipStack(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipStack")] + public static extern void delete_SipStack(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_start")] + public static extern bool SipStack_start(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setDebugCallback")] + public static extern bool SipStack_setDebugCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setRealm")] + public static extern bool SipStack_setRealm(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setIMPI")] + public static extern bool SipStack_setIMPI(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setIMPU")] + public static extern bool SipStack_setIMPU(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setPassword")] + public static extern bool SipStack_setPassword(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setProxyCSCF")] + public static extern bool SipStack_setProxyCSCF(HandleRef jarg1, string jarg2, uint jarg3, string jarg4, string jarg5); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setLocalIP")] + public static extern bool SipStack_setLocalIP(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setLocalPort")] + public static extern bool SipStack_setLocalPort(HandleRef jarg1, uint jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setEarlyIMS")] + public static extern bool SipStack_setEarlyIMS(HandleRef jarg1, bool jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_addHeader")] + public static extern bool SipStack_addHeader(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_removeHeader")] + public static extern bool SipStack_removeHeader(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_addDnsServer")] + public static extern bool SipStack_addDnsServer(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_isValid")] + public static extern bool SipStack_isValid(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_stop")] + public static extern bool SipStack_stop(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEventUpcast")] + public static extern IntPtr RegistrationEventUpcast(IntPtr objectRef); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSessionUpcast")] + public static extern IntPtr RegistrationSessionUpcast(IntPtr objectRef); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEventUpcast")] + public static extern IntPtr SubscriptionEventUpcast(IntPtr objectRef); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionSessionUpcast")] + public static extern IntPtr SubscriptionSessionUpcast(IntPtr objectRef); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStackUpcast")] + public static extern IntPtr SipStackUpcast(IntPtr objectRef); +} diff --git a/trunk/bindings/csharp/tinyWRAP_wrap.cxx b/trunk/bindings/csharp/tinyWRAP_wrap.cxx index ca6d4fa1..7d8b695a 100644 --- a/trunk/bindings/csharp/tinyWRAP_wrap.cxx +++ b/trunk/bindings/csharp/tinyWRAP_wrap.cxx @@ -1,40 +1,40 @@ -/* ---------------------------------------------------------------------------- - * 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 SWIGCSHARP -#define SWIG_DIRECTORS - - -#ifdef __cplusplus -/* SwigValueWrapper is described in swig.swg */ -template 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& rhs); - SwigValueWrapper(const SwigValueWrapper& 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 T SwigValueInit() { - return T(); -} -#endif - +/* ---------------------------------------------------------------------------- + * 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 SWIGCSHARP +#define SWIG_DIRECTORS + + +#ifdef __cplusplus +/* SwigValueWrapper is described in swig.swg */ +template 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& rhs); + SwigValueWrapper(const SwigValueWrapper& 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 T SwigValueInit() { + return T(); +} +#endif + /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. @@ -143,143 +143,143 @@ template T SwigValueInit() { # define _SCL_SECURE_NO_DEPRECATE #endif - - -#include -#include -#include - - -/* Support for throwing C# exceptions from C/C++. There are two types: - * Exceptions that take a message and ArgumentExceptions that take a message and a parameter name. */ -typedef enum { - SWIG_CSharpApplicationException, - SWIG_CSharpArithmeticException, - SWIG_CSharpDivideByZeroException, - SWIG_CSharpIndexOutOfRangeException, - SWIG_CSharpInvalidCastException, - SWIG_CSharpInvalidOperationException, - SWIG_CSharpIOException, - SWIG_CSharpNullReferenceException, - SWIG_CSharpOutOfMemoryException, - SWIG_CSharpOverflowException, - SWIG_CSharpSystemException -} SWIG_CSharpExceptionCodes; - -typedef enum { - SWIG_CSharpArgumentException, - SWIG_CSharpArgumentNullException, - SWIG_CSharpArgumentOutOfRangeException -} SWIG_CSharpExceptionArgumentCodes; - -typedef void (SWIGSTDCALL* SWIG_CSharpExceptionCallback_t)(const char *); -typedef void (SWIGSTDCALL* SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *); - -typedef struct { - SWIG_CSharpExceptionCodes code; - SWIG_CSharpExceptionCallback_t callback; -} SWIG_CSharpException_t; - -typedef struct { - SWIG_CSharpExceptionArgumentCodes code; - SWIG_CSharpExceptionArgumentCallback_t callback; -} SWIG_CSharpExceptionArgument_t; - -static SWIG_CSharpException_t SWIG_csharp_exceptions[] = { - { SWIG_CSharpApplicationException, NULL }, - { SWIG_CSharpArithmeticException, NULL }, - { SWIG_CSharpDivideByZeroException, NULL }, - { SWIG_CSharpIndexOutOfRangeException, NULL }, - { SWIG_CSharpInvalidCastException, NULL }, - { SWIG_CSharpInvalidOperationException, NULL }, - { SWIG_CSharpIOException, NULL }, - { SWIG_CSharpNullReferenceException, NULL }, - { SWIG_CSharpOutOfMemoryException, NULL }, - { SWIG_CSharpOverflowException, NULL }, - { SWIG_CSharpSystemException, NULL } -}; - -static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = { - { SWIG_CSharpArgumentException, NULL }, - { SWIG_CSharpArgumentNullException, NULL }, - { SWIG_CSharpArgumentOutOfRangeException, NULL }, -}; - -static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) { - SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback; - if ((size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t)) { - callback = SWIG_csharp_exceptions[code].callback; - } - callback(msg); -} - -static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name) { - SWIG_CSharpExceptionArgumentCallback_t callback = SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback; - if ((size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) { - callback = SWIG_csharp_exceptions_argument[code].callback; - } - callback(msg, param_name); -} - - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionCallbacks_tinyWRAP( - SWIG_CSharpExceptionCallback_t applicationCallback, - SWIG_CSharpExceptionCallback_t arithmeticCallback, - SWIG_CSharpExceptionCallback_t divideByZeroCallback, - SWIG_CSharpExceptionCallback_t indexOutOfRangeCallback, - SWIG_CSharpExceptionCallback_t invalidCastCallback, - SWIG_CSharpExceptionCallback_t invalidOperationCallback, - SWIG_CSharpExceptionCallback_t ioCallback, - SWIG_CSharpExceptionCallback_t nullReferenceCallback, - SWIG_CSharpExceptionCallback_t outOfMemoryCallback, - SWIG_CSharpExceptionCallback_t overflowCallback, - SWIG_CSharpExceptionCallback_t systemCallback) { - SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback = applicationCallback; - SWIG_csharp_exceptions[SWIG_CSharpArithmeticException].callback = arithmeticCallback; - SWIG_csharp_exceptions[SWIG_CSharpDivideByZeroException].callback = divideByZeroCallback; - SWIG_csharp_exceptions[SWIG_CSharpIndexOutOfRangeException].callback = indexOutOfRangeCallback; - SWIG_csharp_exceptions[SWIG_CSharpInvalidCastException].callback = invalidCastCallback; - SWIG_csharp_exceptions[SWIG_CSharpInvalidOperationException].callback = invalidOperationCallback; - SWIG_csharp_exceptions[SWIG_CSharpIOException].callback = ioCallback; - SWIG_csharp_exceptions[SWIG_CSharpNullReferenceException].callback = nullReferenceCallback; - SWIG_csharp_exceptions[SWIG_CSharpOutOfMemoryException].callback = outOfMemoryCallback; - SWIG_csharp_exceptions[SWIG_CSharpOverflowException].callback = overflowCallback; - SWIG_csharp_exceptions[SWIG_CSharpSystemException].callback = systemCallback; -} - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionArgumentCallbacks_tinyWRAP( - SWIG_CSharpExceptionArgumentCallback_t argumentCallback, - SWIG_CSharpExceptionArgumentCallback_t argumentNullCallback, - SWIG_CSharpExceptionArgumentCallback_t argumentOutOfRangeCallback) { - SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback = argumentCallback; - SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentNullException].callback = argumentNullCallback; - SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentOutOfRangeException].callback = argumentOutOfRangeCallback; -} - - -/* Callback for returning strings to C# without leaking memory */ -typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *); -static SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback = NULL; - - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_tinyWRAP(SWIG_CSharpStringHelperCallback callback) { - SWIG_csharp_string_callback = callback; -} - - -/* Contract support */ - -#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, msg, ""); return nullreturn; } else - + + +#include +#include +#include + + +/* Support for throwing C# exceptions from C/C++. There are two types: + * Exceptions that take a message and ArgumentExceptions that take a message and a parameter name. */ +typedef enum { + SWIG_CSharpApplicationException, + SWIG_CSharpArithmeticException, + SWIG_CSharpDivideByZeroException, + SWIG_CSharpIndexOutOfRangeException, + SWIG_CSharpInvalidCastException, + SWIG_CSharpInvalidOperationException, + SWIG_CSharpIOException, + SWIG_CSharpNullReferenceException, + SWIG_CSharpOutOfMemoryException, + SWIG_CSharpOverflowException, + SWIG_CSharpSystemException +} SWIG_CSharpExceptionCodes; + +typedef enum { + SWIG_CSharpArgumentException, + SWIG_CSharpArgumentNullException, + SWIG_CSharpArgumentOutOfRangeException +} SWIG_CSharpExceptionArgumentCodes; + +typedef void (SWIGSTDCALL* SWIG_CSharpExceptionCallback_t)(const char *); +typedef void (SWIGSTDCALL* SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *); + +typedef struct { + SWIG_CSharpExceptionCodes code; + SWIG_CSharpExceptionCallback_t callback; +} SWIG_CSharpException_t; + +typedef struct { + SWIG_CSharpExceptionArgumentCodes code; + SWIG_CSharpExceptionArgumentCallback_t callback; +} SWIG_CSharpExceptionArgument_t; + +static SWIG_CSharpException_t SWIG_csharp_exceptions[] = { + { SWIG_CSharpApplicationException, NULL }, + { SWIG_CSharpArithmeticException, NULL }, + { SWIG_CSharpDivideByZeroException, NULL }, + { SWIG_CSharpIndexOutOfRangeException, NULL }, + { SWIG_CSharpInvalidCastException, NULL }, + { SWIG_CSharpInvalidOperationException, NULL }, + { SWIG_CSharpIOException, NULL }, + { SWIG_CSharpNullReferenceException, NULL }, + { SWIG_CSharpOutOfMemoryException, NULL }, + { SWIG_CSharpOverflowException, NULL }, + { SWIG_CSharpSystemException, NULL } +}; + +static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = { + { SWIG_CSharpArgumentException, NULL }, + { SWIG_CSharpArgumentNullException, NULL }, + { SWIG_CSharpArgumentOutOfRangeException, NULL }, +}; + +static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) { + SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback; + if ((size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t)) { + callback = SWIG_csharp_exceptions[code].callback; + } + callback(msg); +} + +static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name) { + SWIG_CSharpExceptionArgumentCallback_t callback = SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback; + if ((size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) { + callback = SWIG_csharp_exceptions_argument[code].callback; + } + callback(msg, param_name); +} + + +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionCallbacks_tinyWRAP( + SWIG_CSharpExceptionCallback_t applicationCallback, + SWIG_CSharpExceptionCallback_t arithmeticCallback, + SWIG_CSharpExceptionCallback_t divideByZeroCallback, + SWIG_CSharpExceptionCallback_t indexOutOfRangeCallback, + SWIG_CSharpExceptionCallback_t invalidCastCallback, + SWIG_CSharpExceptionCallback_t invalidOperationCallback, + SWIG_CSharpExceptionCallback_t ioCallback, + SWIG_CSharpExceptionCallback_t nullReferenceCallback, + SWIG_CSharpExceptionCallback_t outOfMemoryCallback, + SWIG_CSharpExceptionCallback_t overflowCallback, + SWIG_CSharpExceptionCallback_t systemCallback) { + SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback = applicationCallback; + SWIG_csharp_exceptions[SWIG_CSharpArithmeticException].callback = arithmeticCallback; + SWIG_csharp_exceptions[SWIG_CSharpDivideByZeroException].callback = divideByZeroCallback; + SWIG_csharp_exceptions[SWIG_CSharpIndexOutOfRangeException].callback = indexOutOfRangeCallback; + SWIG_csharp_exceptions[SWIG_CSharpInvalidCastException].callback = invalidCastCallback; + SWIG_csharp_exceptions[SWIG_CSharpInvalidOperationException].callback = invalidOperationCallback; + SWIG_csharp_exceptions[SWIG_CSharpIOException].callback = ioCallback; + SWIG_csharp_exceptions[SWIG_CSharpNullReferenceException].callback = nullReferenceCallback; + SWIG_csharp_exceptions[SWIG_CSharpOutOfMemoryException].callback = outOfMemoryCallback; + SWIG_csharp_exceptions[SWIG_CSharpOverflowException].callback = overflowCallback; + SWIG_csharp_exceptions[SWIG_CSharpSystemException].callback = systemCallback; +} + +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionArgumentCallbacks_tinyWRAP( + SWIG_CSharpExceptionArgumentCallback_t argumentCallback, + SWIG_CSharpExceptionArgumentCallback_t argumentNullCallback, + SWIG_CSharpExceptionArgumentCallback_t argumentOutOfRangeCallback) { + SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback = argumentCallback; + SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentNullException].callback = argumentNullCallback; + SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentOutOfRangeException].callback = argumentOutOfRangeCallback; +} + + +/* Callback for returning strings to C# without leaking memory */ +typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *); +static SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback = NULL; + + +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_tinyWRAP(SWIG_CSharpStringHelperCallback callback) { + SWIG_csharp_string_callback = callback; +} + + +/* Contract support */ + +#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, 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. @@ -330,1109 +330,1109 @@ namespace Swig { #endif /* __cplusplus */ - -#include "SipUri.h" -#include "SipEvent.h" -#include "SipSession.h" -#include "RegistrationEvent.h" -#include "RegistrationSession.h" -#include "SubscriptionEvent.h" -#include "SubscriptionSession.h" -#include "SipCallback.h" -#include "SipDebug.h" -#include "SafeObject.h" -#include "SipStack.h" - - - -/* --------------------------------------------------- - * C++ director class methods - * --------------------------------------------------- */ - -#include "tinyWRAP_wrap.h" - -SwigDirector_SipCallback::SwigDirector_SipCallback() : SipCallback(), Swig::Director() { - swig_init_callbacks(); -} - -SwigDirector_SipCallback::~SwigDirector_SipCallback() { - -} - - -int SwigDirector_SipCallback::OnRegistrationChanged(RegistrationEvent const *e) { - int c_result = SwigValueInit< int >() ; - int jresult = 0 ; - void * je = 0 ; - - if (!swig_callbackOnRegistrationChanged) { - return SipCallback::OnRegistrationChanged(e); - } else { - je = (void *) e; - jresult = (int) swig_callbackOnRegistrationChanged(je); - c_result = (int)jresult; - } - return c_result; -} - -int SwigDirector_SipCallback::OnSubscriptionChanged(SubscriptionEvent const *e) { - int c_result = SwigValueInit< int >() ; - int jresult = 0 ; - void * je = 0 ; - - if (!swig_callbackOnSubscriptionChanged) { - return SipCallback::OnSubscriptionChanged(e); - } else { - je = (void *) e; - jresult = (int) swig_callbackOnSubscriptionChanged(je); - c_result = (int)jresult; - } - return c_result; -} - -void SwigDirector_SipCallback::swig_connect_director(SWIG_Callback0_t callbackOnRegistrationChanged, SWIG_Callback1_t callbackOnSubscriptionChanged) { - swig_callbackOnRegistrationChanged = callbackOnRegistrationChanged; - swig_callbackOnSubscriptionChanged = callbackOnSubscriptionChanged; -} - -void SwigDirector_SipCallback::swig_init_callbacks() { - swig_callbackOnRegistrationChanged = 0; - swig_callbackOnSubscriptionChanged = 0; -} - -SwigDirector_SipDebugCallback::SwigDirector_SipDebugCallback() : SipDebugCallback(), Swig::Director() { - swig_init_callbacks(); -} - -SwigDirector_SipDebugCallback::~SwigDirector_SipDebugCallback() { - -} - - -int SwigDirector_SipDebugCallback::OnDebugInfo(char const *message) { - int c_result = SwigValueInit< int >() ; - int jresult = 0 ; - char * jmessage = 0 ; - - if (!swig_callbackOnDebugInfo) { - return SipDebugCallback::OnDebugInfo(message); - } else { - jmessage = SWIG_csharp_string_callback((const char *)message); - jresult = (int) swig_callbackOnDebugInfo(jmessage); - c_result = (int)jresult; - } - return c_result; -} - -int SwigDirector_SipDebugCallback::OnDebugWarn(char const *message) { - int c_result = SwigValueInit< int >() ; - int jresult = 0 ; - char * jmessage = 0 ; - - if (!swig_callbackOnDebugWarn) { - return SipDebugCallback::OnDebugWarn(message); - } else { - jmessage = SWIG_csharp_string_callback((const char *)message); - jresult = (int) swig_callbackOnDebugWarn(jmessage); - c_result = (int)jresult; - } - return c_result; -} - -int SwigDirector_SipDebugCallback::OnDebugError(char const *message) { - int c_result = SwigValueInit< int >() ; - int jresult = 0 ; - char * jmessage = 0 ; - - if (!swig_callbackOnDebugError) { - return SipDebugCallback::OnDebugError(message); - } else { - jmessage = SWIG_csharp_string_callback((const char *)message); - jresult = (int) swig_callbackOnDebugError(jmessage); - c_result = (int)jresult; - } - return c_result; -} - -int SwigDirector_SipDebugCallback::OnDebugFatal(char const *message) { - int c_result = SwigValueInit< int >() ; - int jresult = 0 ; - char * jmessage = 0 ; - - if (!swig_callbackOnDebugFatal) { - return SipDebugCallback::OnDebugFatal(message); - } else { - jmessage = SWIG_csharp_string_callback((const char *)message); - jresult = (int) swig_callbackOnDebugFatal(jmessage); - c_result = (int)jresult; - } - return c_result; -} - -void SwigDirector_SipDebugCallback::swig_connect_director(SWIG_Callback0_t callbackOnDebugInfo, SWIG_Callback1_t callbackOnDebugWarn, SWIG_Callback2_t callbackOnDebugError, SWIG_Callback3_t callbackOnDebugFatal) { - swig_callbackOnDebugInfo = callbackOnDebugInfo; - swig_callbackOnDebugWarn = callbackOnDebugWarn; - swig_callbackOnDebugError = callbackOnDebugError; - swig_callbackOnDebugFatal = callbackOnDebugFatal; -} - -void SwigDirector_SipDebugCallback::swig_init_callbacks() { - swig_callbackOnDebugInfo = 0; - swig_callbackOnDebugWarn = 0; - swig_callbackOnDebugError = 0; - swig_callbackOnDebugFatal = 0; -} - - -#ifdef __cplusplus -extern "C" { -#endif - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipUri(char * jarg1) { - void * jresult ; - char *arg1 = (char *) 0 ; - SipUri *result = 0 ; - - arg1 = (char *)jarg1; - result = (SipUri *)new SipUri((char const *)arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipUri(void * jarg1) { - SipUri *arg1 = (SipUri *) 0 ; - - arg1 = (SipUri *)jarg1; - delete arg1; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipUri_isValid__SWIG_0(char * jarg1) { - unsigned int jresult ; - char *arg1 = (char *) 0 ; - bool result; - - arg1 = (char *)jarg1; - result = (bool)SipUri::isValid((char const *)arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipUri_isValid__SWIG_1(void * jarg1) { - unsigned int jresult ; - SipUri *arg1 = (SipUri *) 0 ; - bool result; - - arg1 = (SipUri *)jarg1; - result = (bool)(arg1)->isValid(); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipEvent() { - void * jresult ; - SipEvent *result = 0 ; - - result = (SipEvent *)new SipEvent(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipEvent(void * jarg1) { - SipEvent *arg1 = (SipEvent *) 0 ; - - arg1 = (SipEvent *)jarg1; - delete arg1; -} - - -SWIGEXPORT short SWIGSTDCALL CSharp_SipEvent_getCode(void * jarg1) { - short jresult ; - SipEvent *arg1 = (SipEvent *) 0 ; - short result; - - arg1 = (SipEvent *)jarg1; - result = (short)((SipEvent const *)arg1)->getCode(); - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_SipEvent_getPhrase(void * jarg1) { - char * jresult ; - SipEvent *arg1 = (SipEvent *) 0 ; - char *result = 0 ; - - arg1 = (SipEvent *)jarg1; - result = (char *)((SipEvent const *)arg1)->getPhrase(); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_SipEvent_getBaseSession(void * jarg1) { - void * jresult ; - SipEvent *arg1 = (SipEvent *) 0 ; - SipSession *result = 0 ; - - arg1 = (SipEvent *)jarg1; - result = (SipSession *)((SipEvent const *)arg1)->getBaseSession(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipSession(void * jarg1) { - void * jresult ; - SipStack *arg1 = (SipStack *) 0 ; - SipSession *result = 0 ; - - arg1 = (SipStack *)jarg1; - result = (SipSession *)new SipSession(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipSession(void * jarg1) { - SipSession *arg1 = (SipSession *) 0 ; - - arg1 = (SipSession *)jarg1; - delete arg1; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_addHeader(void * jarg1, char * jarg2, char * jarg3) { - unsigned int jresult ; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - bool result; - - arg1 = (SipSession *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_removeHeader(void * jarg1, char * jarg2) { - unsigned int jresult ; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - bool result; - - arg1 = (SipSession *)jarg1; - arg2 = (char *)jarg2; - result = (bool)(arg1)->removeHeader((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_addCaps__SWIG_0(void * jarg1, char * jarg2, char * jarg3) { - unsigned int jresult ; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - bool result; - - arg1 = (SipSession *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (bool)(arg1)->addCaps((char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_addCaps__SWIG_1(void * jarg1, char * jarg2) { - unsigned int jresult ; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - bool result; - - arg1 = (SipSession *)jarg1; - arg2 = (char *)jarg2; - result = (bool)(arg1)->addCaps((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_removeCaps(void * jarg1, char * jarg2) { - unsigned int jresult ; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - bool result; - - arg1 = (SipSession *)jarg1; - arg2 = (char *)jarg2; - result = (bool)(arg1)->removeCaps((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_setExpires(void * jarg1, unsigned int jarg2) { - unsigned int jresult ; - SipSession *arg1 = (SipSession *) 0 ; - unsigned int arg2 ; - bool result; - - arg1 = (SipSession *)jarg1; - arg2 = (unsigned int)jarg2; - result = (bool)(arg1)->setExpires(arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_setFromUri(void * jarg1, char * jarg2) { - unsigned int jresult ; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - bool result; - - arg1 = (SipSession *)jarg1; - arg2 = (char *)jarg2; - result = (bool)(arg1)->setFromUri((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_setToUri(void * jarg1, char * jarg2) { - unsigned int jresult ; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - bool result; - - arg1 = (SipSession *)jarg1; - arg2 = (char *)jarg2; - result = (bool)(arg1)->setToUri((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_setPayload(void * jarg1, char * jarg2, unsigned int jarg3) { - unsigned int jresult ; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - unsigned int arg3 ; - bool result; - - arg1 = (SipSession *)jarg1; - arg2 = (char *)jarg2; - arg3 = (unsigned int)jarg3; - result = (bool)(arg1)->setPayload((char const *)arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_RegistrationEvent() { - void * jresult ; - RegistrationEvent *result = 0 ; - - result = (RegistrationEvent *)new RegistrationEvent(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_RegistrationEvent(void * jarg1) { - RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; - - arg1 = (RegistrationEvent *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_RegistrationEvent_getType(void * jarg1) { - int jresult ; - RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; - tsip_register_event_type_t result; - - arg1 = (RegistrationEvent *)jarg1; - result = (tsip_register_event_type_t)((RegistrationEvent const *)arg1)->getType(); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_RegistrationEvent_getSession(void * jarg1) { - void * jresult ; - RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; - RegistrationSession *result = 0 ; - - arg1 = (RegistrationEvent *)jarg1; - result = (RegistrationSession *)((RegistrationEvent const *)arg1)->getSession(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_RegistrationSession(void * jarg1) { - void * jresult ; - SipStack *arg1 = (SipStack *) 0 ; - RegistrationSession *result = 0 ; - - arg1 = (SipStack *)jarg1; - result = (RegistrationSession *)new RegistrationSession(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_RegistrationSession(void * jarg1) { - RegistrationSession *arg1 = (RegistrationSession *) 0 ; - - arg1 = (RegistrationSession *)jarg1; - delete arg1; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_RegistrationSession_Register(void * jarg1) { - unsigned int jresult ; - RegistrationSession *arg1 = (RegistrationSession *) 0 ; - bool result; - - arg1 = (RegistrationSession *)jarg1; - result = (bool)(arg1)->Register(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_RegistrationSession_UnRegister(void * jarg1) { - unsigned int jresult ; - RegistrationSession *arg1 = (RegistrationSession *) 0 ; - bool result; - - arg1 = (RegistrationSession *)jarg1; - result = (bool)(arg1)->UnRegister(); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_SubscriptionEvent() { - void * jresult ; - SubscriptionEvent *result = 0 ; - - result = (SubscriptionEvent *)new SubscriptionEvent(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_SubscriptionEvent(void * jarg1) { - SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; - - arg1 = (SubscriptionEvent *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SubscriptionEvent_getType(void * jarg1) { - int jresult ; - SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; - tsip_subscribe_event_type_t result; - - arg1 = (SubscriptionEvent *)jarg1; - result = (tsip_subscribe_event_type_t)((SubscriptionEvent const *)arg1)->getType(); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_SubscriptionEvent_getSession(void * jarg1) { - void * jresult ; - SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; - SubscriptionSession *result = 0 ; - - arg1 = (SubscriptionEvent *)jarg1; - result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->getSession(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_SubscriptionSession(void * jarg1) { - void * jresult ; - SipStack *arg1 = (SipStack *) 0 ; - SubscriptionSession *result = 0 ; - - arg1 = (SipStack *)jarg1; - result = (SubscriptionSession *)new SubscriptionSession(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_SubscriptionSession(void * jarg1) { - SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; - - arg1 = (SubscriptionSession *)jarg1; - delete arg1; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SubscriptionSession_Subscribe(void * jarg1) { - unsigned int jresult ; - SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; - bool result; - - arg1 = (SubscriptionSession *)jarg1; - result = (bool)(arg1)->Subscribe(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SubscriptionSession_UnSubscribe(void * jarg1) { - unsigned int jresult ; - SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; - bool result; - - arg1 = (SubscriptionSession *)jarg1; - result = (bool)(arg1)->UnSubscribe(); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipCallback() { - void * jresult ; - SipCallback *result = 0 ; - - result = (SipCallback *)new SwigDirector_SipCallback(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipCallback(void * jarg1) { - SipCallback *arg1 = (SipCallback *) 0 ; - - arg1 = (SipCallback *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnRegistrationChanged(void * jarg1, void * jarg2) { - int jresult ; - SipCallback *arg1 = (SipCallback *) 0 ; - RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; - int result; - - arg1 = (SipCallback *)jarg1; - arg2 = (RegistrationEvent *)jarg2; - result = (int)(arg1)->OnRegistrationChanged((RegistrationEvent const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnRegistrationChangedSwigExplicitSipCallback(void * jarg1, void * jarg2) { - int jresult ; - SipCallback *arg1 = (SipCallback *) 0 ; - RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; - int result; - - arg1 = (SipCallback *)jarg1; - arg2 = (RegistrationEvent *)jarg2; - result = (int)(arg1)->SipCallback::OnRegistrationChanged((RegistrationEvent const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnSubscriptionChanged(void * jarg1, void * jarg2) { - int jresult ; - SipCallback *arg1 = (SipCallback *) 0 ; - SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ; - int result; - - arg1 = (SipCallback *)jarg1; - arg2 = (SubscriptionEvent *)jarg2; - result = (int)(arg1)->OnSubscriptionChanged((SubscriptionEvent const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(void * jarg1, void * jarg2) { - int jresult ; - SipCallback *arg1 = (SipCallback *) 0 ; - SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ; - int result; - - arg1 = (SipCallback *)jarg1; - arg2 = (SubscriptionEvent *)jarg2; - result = (int)(arg1)->SipCallback::OnSubscriptionChanged((SubscriptionEvent const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_SipCallback_director_connect(void *objarg, SwigDirector_SipCallback::SWIG_Callback0_t callback0, SwigDirector_SipCallback::SWIG_Callback1_t callback1) { - SipCallback *obj = (SipCallback *)objarg; - SwigDirector_SipCallback *director = dynamic_cast(obj); - if (director) { - director->swig_connect_director(callback0, callback1); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipDebugCallback() { - void * jresult ; - SipDebugCallback *result = 0 ; - - result = (SipDebugCallback *)new SwigDirector_SipDebugCallback(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipDebugCallback(void * jarg1) { - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - - arg1 = (SipDebugCallback *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SipDebugCallback_OnDebugInfo(void * jarg1, char * jarg2) { - int jresult ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - arg1 = (SipDebugCallback *)jarg1; - arg2 = (char *)jarg2; - result = (int)(arg1)->OnDebugInfo((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(void * jarg1, char * jarg2) { - int jresult ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - arg1 = (SipDebugCallback *)jarg1; - arg2 = (char *)jarg2; - result = (int)(arg1)->SipDebugCallback::OnDebugInfo((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SipDebugCallback_OnDebugWarn(void * jarg1, char * jarg2) { - int jresult ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - arg1 = (SipDebugCallback *)jarg1; - arg2 = (char *)jarg2; - result = (int)(arg1)->OnDebugWarn((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(void * jarg1, char * jarg2) { - int jresult ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - arg1 = (SipDebugCallback *)jarg1; - arg2 = (char *)jarg2; - result = (int)(arg1)->SipDebugCallback::OnDebugWarn((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SipDebugCallback_OnDebugError(void * jarg1, char * jarg2) { - int jresult ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - arg1 = (SipDebugCallback *)jarg1; - arg2 = (char *)jarg2; - result = (int)(arg1)->OnDebugError((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(void * jarg1, char * jarg2) { - int jresult ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - arg1 = (SipDebugCallback *)jarg1; - arg2 = (char *)jarg2; - result = (int)(arg1)->SipDebugCallback::OnDebugError((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SipDebugCallback_OnDebugFatal(void * jarg1, char * jarg2) { - int jresult ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - arg1 = (SipDebugCallback *)jarg1; - arg2 = (char *)jarg2; - result = (int)(arg1)->OnDebugFatal((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(void * jarg1, char * jarg2) { - int jresult ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - arg1 = (SipDebugCallback *)jarg1; - arg2 = (char *)jarg2; - result = (int)(arg1)->SipDebugCallback::OnDebugFatal((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_SipDebugCallback_director_connect(void *objarg, SwigDirector_SipDebugCallback::SWIG_Callback0_t callback0, SwigDirector_SipDebugCallback::SWIG_Callback1_t callback1, SwigDirector_SipDebugCallback::SWIG_Callback2_t callback2, SwigDirector_SipDebugCallback::SWIG_Callback3_t callback3) { - SipDebugCallback *obj = (SipDebugCallback *)objarg; - SwigDirector_SipDebugCallback *director = dynamic_cast(obj); - if (director) { - director->swig_connect_director(callback0, callback1, callback2, callback3); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_SafeObject() { - void * jresult ; - SafeObject *result = 0 ; - - result = (SafeObject *)new SafeObject(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_SafeObject(void * jarg1) { - SafeObject *arg1 = (SafeObject *) 0 ; - - arg1 = (SafeObject *)jarg1; - delete arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SafeObject_Lock(void * jarg1) { - int jresult ; - SafeObject *arg1 = (SafeObject *) 0 ; - int result; - - arg1 = (SafeObject *)jarg1; - result = (int)(arg1)->Lock(); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_SafeObject_UnLock(void * jarg1) { - int jresult ; - SafeObject *arg1 = (SafeObject *) 0 ; - int result; - - arg1 = (SafeObject *)jarg1; - result = (int)(arg1)->UnLock(); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipStack(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { - void * jresult ; - SipCallback *arg1 = (SipCallback *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - SipStack *result = 0 ; - - arg1 = (SipCallback *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - arg4 = (char *)jarg4; - result = (SipStack *)new SipStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipStack(void * jarg1) { - SipStack *arg1 = (SipStack *) 0 ; - - arg1 = (SipStack *)jarg1; - delete arg1; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_start(void * jarg1) { - unsigned int jresult ; - SipStack *arg1 = (SipStack *) 0 ; - bool result; - - arg1 = (SipStack *)jarg1; - result = (bool)(arg1)->start(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setDebugCallback(void * jarg1, void * jarg2) { - unsigned int jresult ; - SipStack *arg1 = (SipStack *) 0 ; - SipDebugCallback *arg2 = (SipDebugCallback *) 0 ; - bool result; - - arg1 = (SipStack *)jarg1; - arg2 = (SipDebugCallback *)jarg2; - result = (bool)(arg1)->setDebugCallback(arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setRealm(void * jarg1, char * jarg2) { - unsigned int jresult ; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - bool result; - - arg1 = (SipStack *)jarg1; - arg2 = (char *)jarg2; - result = (bool)(arg1)->setRealm((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setIMPI(void * jarg1, char * jarg2) { - unsigned int jresult ; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - bool result; - - arg1 = (SipStack *)jarg1; - arg2 = (char *)jarg2; - result = (bool)(arg1)->setIMPI((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setIMPU(void * jarg1, char * jarg2) { - unsigned int jresult ; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - bool result; - - arg1 = (SipStack *)jarg1; - arg2 = (char *)jarg2; - result = (bool)(arg1)->setIMPU((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setPassword(void * jarg1, char * jarg2) { - unsigned int jresult ; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - bool result; - - arg1 = (SipStack *)jarg1; - arg2 = (char *)jarg2; - result = (bool)(arg1)->setPassword((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setProxyCSCF(void * jarg1, char * jarg2, unsigned int jarg3, char * jarg4, char * jarg5) { - unsigned int jresult ; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - unsigned int arg3 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - bool result; - - arg1 = (SipStack *)jarg1; - arg2 = (char *)jarg2; - arg3 = (unsigned int)jarg3; - arg4 = (char *)jarg4; - arg5 = (char *)jarg5; - result = (bool)(arg1)->setProxyCSCF((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setLocalIP(void * jarg1, char * jarg2) { - unsigned int jresult ; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - bool result; - - arg1 = (SipStack *)jarg1; - arg2 = (char *)jarg2; - result = (bool)(arg1)->setLocalIP((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setLocalPort(void * jarg1, unsigned int jarg2) { - unsigned int jresult ; - SipStack *arg1 = (SipStack *) 0 ; - unsigned int arg2 ; - bool result; - - arg1 = (SipStack *)jarg1; - arg2 = (unsigned int)jarg2; - result = (bool)(arg1)->setLocalPort(arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setEarlyIMS(void * jarg1, unsigned int jarg2) { - unsigned int jresult ; - SipStack *arg1 = (SipStack *) 0 ; - bool arg2 ; - bool result; - - arg1 = (SipStack *)jarg1; - arg2 = jarg2 ? true : false; - result = (bool)(arg1)->setEarlyIMS(arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_addHeader(void * jarg1, char * jarg2, char * jarg3) { - unsigned int jresult ; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - bool result; - - arg1 = (SipStack *)jarg1; - arg2 = (char *)jarg2; - arg3 = (char *)jarg3; - result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_removeHeader(void * jarg1, char * jarg2) { - unsigned int jresult ; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - bool result; - - arg1 = (SipStack *)jarg1; - arg2 = (char *)jarg2; - result = (bool)(arg1)->removeHeader((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_addDnsServer(void * jarg1, char * jarg2) { - unsigned int jresult ; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - bool result; - - arg1 = (SipStack *)jarg1; - arg2 = (char *)jarg2; - result = (bool)(arg1)->addDnsServer((char const *)arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_isValid(void * jarg1) { - unsigned int jresult ; - SipStack *arg1 = (SipStack *) 0 ; - bool result; - - arg1 = (SipStack *)jarg1; - result = (bool)(arg1)->isValid(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_stop(void * jarg1) { - unsigned int jresult ; - SipStack *arg1 = (SipStack *) 0 ; - bool result; - - arg1 = (SipStack *)jarg1; - result = (bool)(arg1)->stop(); - jresult = result; - return jresult; -} - - -SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_RegistrationEventUpcast(RegistrationEvent *objectRef) { - return (SipEvent *)objectRef; -} - -SWIGEXPORT SipSession * SWIGSTDCALL CSharp_RegistrationSessionUpcast(RegistrationSession *objectRef) { - return (SipSession *)objectRef; -} - -SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_SubscriptionEventUpcast(SubscriptionEvent *objectRef) { - return (SipEvent *)objectRef; -} - -SWIGEXPORT SipSession * SWIGSTDCALL CSharp_SubscriptionSessionUpcast(SubscriptionSession *objectRef) { - return (SipSession *)objectRef; -} - -SWIGEXPORT SafeObject * SWIGSTDCALL CSharp_SipStackUpcast(SipStack *objectRef) { - return (SafeObject *)objectRef; -} - -#ifdef __cplusplus -} -#endif - + +#include "SipUri.h" +#include "SipEvent.h" +#include "SipSession.h" +#include "RegistrationEvent.h" +#include "RegistrationSession.h" +#include "SubscriptionEvent.h" +#include "SubscriptionSession.h" +#include "SipCallback.h" +#include "SipDebug.h" +#include "SafeObject.h" +#include "SipStack.h" + + + +/* --------------------------------------------------- + * C++ director class methods + * --------------------------------------------------- */ + +#include "csharp/tinyWRAP_wrap.h" + +SwigDirector_SipCallback::SwigDirector_SipCallback() : SipCallback(), Swig::Director() { + swig_init_callbacks(); +} + +SwigDirector_SipCallback::~SwigDirector_SipCallback() { + +} + + +int SwigDirector_SipCallback::OnRegistrationChanged(RegistrationEvent const *e) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + void * je = 0 ; + + if (!swig_callbackOnRegistrationChanged) { + return SipCallback::OnRegistrationChanged(e); + } else { + je = (void *) e; + jresult = (int) swig_callbackOnRegistrationChanged(je); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_SipCallback::OnSubscriptionChanged(SubscriptionEvent const *e) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + void * je = 0 ; + + if (!swig_callbackOnSubscriptionChanged) { + return SipCallback::OnSubscriptionChanged(e); + } else { + je = (void *) e; + jresult = (int) swig_callbackOnSubscriptionChanged(je); + c_result = (int)jresult; + } + return c_result; +} + +void SwigDirector_SipCallback::swig_connect_director(SWIG_Callback0_t callbackOnRegistrationChanged, SWIG_Callback1_t callbackOnSubscriptionChanged) { + swig_callbackOnRegistrationChanged = callbackOnRegistrationChanged; + swig_callbackOnSubscriptionChanged = callbackOnSubscriptionChanged; +} + +void SwigDirector_SipCallback::swig_init_callbacks() { + swig_callbackOnRegistrationChanged = 0; + swig_callbackOnSubscriptionChanged = 0; +} + +SwigDirector_SipDebugCallback::SwigDirector_SipDebugCallback() : SipDebugCallback(), Swig::Director() { + swig_init_callbacks(); +} + +SwigDirector_SipDebugCallback::~SwigDirector_SipDebugCallback() { + +} + + +int SwigDirector_SipDebugCallback::OnDebugInfo(char const *message) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + char * jmessage = 0 ; + + if (!swig_callbackOnDebugInfo) { + return SipDebugCallback::OnDebugInfo(message); + } else { + jmessage = SWIG_csharp_string_callback((const char *)message); + jresult = (int) swig_callbackOnDebugInfo(jmessage); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_SipDebugCallback::OnDebugWarn(char const *message) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + char * jmessage = 0 ; + + if (!swig_callbackOnDebugWarn) { + return SipDebugCallback::OnDebugWarn(message); + } else { + jmessage = SWIG_csharp_string_callback((const char *)message); + jresult = (int) swig_callbackOnDebugWarn(jmessage); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_SipDebugCallback::OnDebugError(char const *message) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + char * jmessage = 0 ; + + if (!swig_callbackOnDebugError) { + return SipDebugCallback::OnDebugError(message); + } else { + jmessage = SWIG_csharp_string_callback((const char *)message); + jresult = (int) swig_callbackOnDebugError(jmessage); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_SipDebugCallback::OnDebugFatal(char const *message) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + char * jmessage = 0 ; + + if (!swig_callbackOnDebugFatal) { + return SipDebugCallback::OnDebugFatal(message); + } else { + jmessage = SWIG_csharp_string_callback((const char *)message); + jresult = (int) swig_callbackOnDebugFatal(jmessage); + c_result = (int)jresult; + } + return c_result; +} + +void SwigDirector_SipDebugCallback::swig_connect_director(SWIG_Callback0_t callbackOnDebugInfo, SWIG_Callback1_t callbackOnDebugWarn, SWIG_Callback2_t callbackOnDebugError, SWIG_Callback3_t callbackOnDebugFatal) { + swig_callbackOnDebugInfo = callbackOnDebugInfo; + swig_callbackOnDebugWarn = callbackOnDebugWarn; + swig_callbackOnDebugError = callbackOnDebugError; + swig_callbackOnDebugFatal = callbackOnDebugFatal; +} + +void SwigDirector_SipDebugCallback::swig_init_callbacks() { + swig_callbackOnDebugInfo = 0; + swig_callbackOnDebugWarn = 0; + swig_callbackOnDebugError = 0; + swig_callbackOnDebugFatal = 0; +} + + +#ifdef __cplusplus +extern "C" { +#endif + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipUri(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + SipUri *result = 0 ; + + arg1 = (char *)jarg1; + result = (SipUri *)new SipUri((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipUri(void * jarg1) { + SipUri *arg1 = (SipUri *) 0 ; + + arg1 = (SipUri *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipUri_isValid__SWIG_0(char * jarg1) { + unsigned int jresult ; + char *arg1 = (char *) 0 ; + bool result; + + arg1 = (char *)jarg1; + result = (bool)SipUri::isValid((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipUri_isValid__SWIG_1(void * jarg1) { + unsigned int jresult ; + SipUri *arg1 = (SipUri *) 0 ; + bool result; + + arg1 = (SipUri *)jarg1; + result = (bool)(arg1)->isValid(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipEvent() { + void * jresult ; + SipEvent *result = 0 ; + + result = (SipEvent *)new SipEvent(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipEvent(void * jarg1) { + SipEvent *arg1 = (SipEvent *) 0 ; + + arg1 = (SipEvent *)jarg1; + delete arg1; +} + + +SWIGEXPORT short SWIGSTDCALL CSharp_SipEvent_getCode(void * jarg1) { + short jresult ; + SipEvent *arg1 = (SipEvent *) 0 ; + short result; + + arg1 = (SipEvent *)jarg1; + result = (short)((SipEvent const *)arg1)->getCode(); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipEvent_getPhrase(void * jarg1) { + char * jresult ; + SipEvent *arg1 = (SipEvent *) 0 ; + char *result = 0 ; + + arg1 = (SipEvent *)jarg1; + result = (char *)((SipEvent const *)arg1)->getPhrase(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_SipEvent_getBaseSession(void * jarg1) { + void * jresult ; + SipEvent *arg1 = (SipEvent *) 0 ; + SipSession *result = 0 ; + + arg1 = (SipEvent *)jarg1; + result = (SipSession *)((SipEvent const *)arg1)->getBaseSession(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipSession(void * jarg1) { + void * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + SipSession *result = 0 ; + + arg1 = (SipStack *)jarg1; + result = (SipSession *)new SipSession(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipSession(void * jarg1) { + SipSession *arg1 = (SipSession *) 0 ; + + arg1 = (SipSession *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_addHeader(void * jarg1, char * jarg2, char * jarg3) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_removeHeader(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->removeHeader((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_addCaps__SWIG_0(void * jarg1, char * jarg2, char * jarg3) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (bool)(arg1)->addCaps((char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_addCaps__SWIG_1(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->addCaps((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_removeCaps(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->removeCaps((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_setExpires(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + unsigned int arg2 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setExpires(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_setFromUri(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setFromUri((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_setToUri(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setToUri((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_setPayload(void * jarg1, char * jarg2, unsigned int jarg3) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->setPayload((char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_RegistrationEvent() { + void * jresult ; + RegistrationEvent *result = 0 ; + + result = (RegistrationEvent *)new RegistrationEvent(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_RegistrationEvent(void * jarg1) { + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + + arg1 = (RegistrationEvent *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_RegistrationEvent_getType(void * jarg1) { + int jresult ; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + tsip_register_event_type_t result; + + arg1 = (RegistrationEvent *)jarg1; + result = (tsip_register_event_type_t)((RegistrationEvent const *)arg1)->getType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_RegistrationEvent_getSession(void * jarg1) { + void * jresult ; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + RegistrationSession *result = 0 ; + + arg1 = (RegistrationEvent *)jarg1; + result = (RegistrationSession *)((RegistrationEvent const *)arg1)->getSession(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_RegistrationSession(void * jarg1) { + void * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + RegistrationSession *result = 0 ; + + arg1 = (SipStack *)jarg1; + result = (RegistrationSession *)new RegistrationSession(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_RegistrationSession(void * jarg1) { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + + arg1 = (RegistrationSession *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_RegistrationSession_Register(void * jarg1) { + unsigned int jresult ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + bool result; + + arg1 = (RegistrationSession *)jarg1; + result = (bool)(arg1)->Register(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_RegistrationSession_UnRegister(void * jarg1) { + unsigned int jresult ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + bool result; + + arg1 = (RegistrationSession *)jarg1; + result = (bool)(arg1)->UnRegister(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SubscriptionEvent() { + void * jresult ; + SubscriptionEvent *result = 0 ; + + result = (SubscriptionEvent *)new SubscriptionEvent(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SubscriptionEvent(void * jarg1) { + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + + arg1 = (SubscriptionEvent *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SubscriptionEvent_getType(void * jarg1) { + int jresult ; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + tsip_subscribe_event_type_t result; + + arg1 = (SubscriptionEvent *)jarg1; + result = (tsip_subscribe_event_type_t)((SubscriptionEvent const *)arg1)->getType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_SubscriptionEvent_getSession(void * jarg1) { + void * jresult ; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + SubscriptionSession *result = 0 ; + + arg1 = (SubscriptionEvent *)jarg1; + result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->getSession(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SubscriptionSession(void * jarg1) { + void * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + SubscriptionSession *result = 0 ; + + arg1 = (SipStack *)jarg1; + result = (SubscriptionSession *)new SubscriptionSession(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SubscriptionSession(void * jarg1) { + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + + arg1 = (SubscriptionSession *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SubscriptionSession_Subscribe(void * jarg1) { + unsigned int jresult ; + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + bool result; + + arg1 = (SubscriptionSession *)jarg1; + result = (bool)(arg1)->Subscribe(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SubscriptionSession_UnSubscribe(void * jarg1) { + unsigned int jresult ; + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + bool result; + + arg1 = (SubscriptionSession *)jarg1; + result = (bool)(arg1)->UnSubscribe(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipCallback() { + void * jresult ; + SipCallback *result = 0 ; + + result = (SipCallback *)new SwigDirector_SipCallback(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipCallback(void * jarg1) { + SipCallback *arg1 = (SipCallback *) 0 ; + + arg1 = (SipCallback *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnRegistrationChanged(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (RegistrationEvent *)jarg2; + result = (int)(arg1)->OnRegistrationChanged((RegistrationEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnRegistrationChangedSwigExplicitSipCallback(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (RegistrationEvent *)jarg2; + result = (int)(arg1)->SipCallback::OnRegistrationChanged((RegistrationEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnSubscriptionChanged(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (SubscriptionEvent *)jarg2; + result = (int)(arg1)->OnSubscriptionChanged((SubscriptionEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (SubscriptionEvent *)jarg2; + result = (int)(arg1)->SipCallback::OnSubscriptionChanged((SubscriptionEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_SipCallback_director_connect(void *objarg, SwigDirector_SipCallback::SWIG_Callback0_t callback0, SwigDirector_SipCallback::SWIG_Callback1_t callback1) { + SipCallback *obj = (SipCallback *)objarg; + SwigDirector_SipCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(callback0, callback1); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipDebugCallback() { + void * jresult ; + SipDebugCallback *result = 0 ; + + result = (SipDebugCallback *)new SwigDirector_SipDebugCallback(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipDebugCallback(void * jarg1) { + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + + arg1 = (SipDebugCallback *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipDebugCallback_OnDebugInfo(void * jarg1, char * jarg2) { + int jresult ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (SipDebugCallback *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->OnDebugInfo((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(void * jarg1, char * jarg2) { + int jresult ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (SipDebugCallback *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->SipDebugCallback::OnDebugInfo((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipDebugCallback_OnDebugWarn(void * jarg1, char * jarg2) { + int jresult ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (SipDebugCallback *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->OnDebugWarn((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(void * jarg1, char * jarg2) { + int jresult ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (SipDebugCallback *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->SipDebugCallback::OnDebugWarn((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipDebugCallback_OnDebugError(void * jarg1, char * jarg2) { + int jresult ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (SipDebugCallback *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->OnDebugError((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(void * jarg1, char * jarg2) { + int jresult ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (SipDebugCallback *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->SipDebugCallback::OnDebugError((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipDebugCallback_OnDebugFatal(void * jarg1, char * jarg2) { + int jresult ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (SipDebugCallback *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->OnDebugFatal((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(void * jarg1, char * jarg2) { + int jresult ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (SipDebugCallback *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->SipDebugCallback::OnDebugFatal((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_SipDebugCallback_director_connect(void *objarg, SwigDirector_SipDebugCallback::SWIG_Callback0_t callback0, SwigDirector_SipDebugCallback::SWIG_Callback1_t callback1, SwigDirector_SipDebugCallback::SWIG_Callback2_t callback2, SwigDirector_SipDebugCallback::SWIG_Callback3_t callback3) { + SipDebugCallback *obj = (SipDebugCallback *)objarg; + SwigDirector_SipDebugCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(callback0, callback1, callback2, callback3); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SafeObject() { + void * jresult ; + SafeObject *result = 0 ; + + result = (SafeObject *)new SafeObject(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SafeObject(void * jarg1) { + SafeObject *arg1 = (SafeObject *) 0 ; + + arg1 = (SafeObject *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SafeObject_Lock(void * jarg1) { + int jresult ; + SafeObject *arg1 = (SafeObject *) 0 ; + int result; + + arg1 = (SafeObject *)jarg1; + result = (int)((SafeObject const *)arg1)->Lock(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SafeObject_UnLock(void * jarg1) { + int jresult ; + SafeObject *arg1 = (SafeObject *) 0 ; + int result; + + arg1 = (SafeObject *)jarg1; + result = (int)((SafeObject const *)arg1)->UnLock(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipStack(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + void * jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + SipStack *result = 0 ; + + arg1 = (SipCallback *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (SipStack *)new SipStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipStack(void * jarg1) { + SipStack *arg1 = (SipStack *) 0 ; + + arg1 = (SipStack *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_start(void * jarg1) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + result = (bool)(arg1)->start(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setDebugCallback(void * jarg1, void * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + SipDebugCallback *arg2 = (SipDebugCallback *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (SipDebugCallback *)jarg2; + result = (bool)(arg1)->setDebugCallback(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setRealm(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setRealm((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setIMPI(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setIMPI((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setIMPU(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setIMPU((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setPassword(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setPassword((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setProxyCSCF(void * jarg1, char * jarg2, unsigned int jarg3, char * jarg4, char * jarg5) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (unsigned int)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + result = (bool)(arg1)->setProxyCSCF((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setLocalIP(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setLocalIP((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setLocalPort(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + unsigned int arg2 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setLocalPort(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setEarlyIMS(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setEarlyIMS(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_addHeader(void * jarg1, char * jarg2, char * jarg3) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_removeHeader(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->removeHeader((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_addDnsServer(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->addDnsServer((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_isValid(void * jarg1) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + result = (bool)(arg1)->isValid(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_stop(void * jarg1) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + result = (bool)(arg1)->stop(); + jresult = result; + return jresult; +} + + +SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_RegistrationEventUpcast(RegistrationEvent *objectRef) { + return (SipEvent *)objectRef; +} + +SWIGEXPORT SipSession * SWIGSTDCALL CSharp_RegistrationSessionUpcast(RegistrationSession *objectRef) { + return (SipSession *)objectRef; +} + +SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_SubscriptionEventUpcast(SubscriptionEvent *objectRef) { + return (SipEvent *)objectRef; +} + +SWIGEXPORT SipSession * SWIGSTDCALL CSharp_SubscriptionSessionUpcast(SubscriptionSession *objectRef) { + return (SipSession *)objectRef; +} + +SWIGEXPORT SafeObject * SWIGSTDCALL CSharp_SipStackUpcast(SipStack *objectRef) { + return (SafeObject *)objectRef; +} + +#ifdef __cplusplus +} +#endif + diff --git a/trunk/bindings/csharp/tinyWRAP_wrap.h b/trunk/bindings/csharp/tinyWRAP_wrap.h index 6f8eaa85..6b09a39c 100644 --- a/trunk/bindings/csharp/tinyWRAP_wrap.h +++ b/trunk/bindings/csharp/tinyWRAP_wrap.h @@ -1,57 +1,57 @@ -/* ---------------------------------------------------------------------------- - * 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_SipCallback : public SipCallback, public Swig::Director { - -public: - SwigDirector_SipCallback(); - virtual ~SwigDirector_SipCallback(); - virtual int OnRegistrationChanged(RegistrationEvent const *e); - virtual int OnSubscriptionChanged(SubscriptionEvent const *e); - - typedef int (SWIGSTDCALL* SWIG_Callback0_t)(void *); - typedef int (SWIGSTDCALL* SWIG_Callback1_t)(void *); - void swig_connect_director(SWIG_Callback0_t callbackOnRegistrationChanged, SWIG_Callback1_t callbackOnSubscriptionChanged); - -private: - SWIG_Callback0_t swig_callbackOnRegistrationChanged; - SWIG_Callback1_t swig_callbackOnSubscriptionChanged; - void swig_init_callbacks(); -}; - -class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director { - -public: - SwigDirector_SipDebugCallback(); - virtual ~SwigDirector_SipDebugCallback(); - virtual int OnDebugInfo(char const *message); - virtual int OnDebugWarn(char const *message); - virtual int OnDebugError(char const *message); - virtual int OnDebugFatal(char const *message); - - typedef int (SWIGSTDCALL* SWIG_Callback0_t)(char *); - typedef int (SWIGSTDCALL* SWIG_Callback1_t)(char *); - typedef int (SWIGSTDCALL* SWIG_Callback2_t)(char *); - typedef int (SWIGSTDCALL* SWIG_Callback3_t)(char *); - void swig_connect_director(SWIG_Callback0_t callbackOnDebugInfo, SWIG_Callback1_t callbackOnDebugWarn, SWIG_Callback2_t callbackOnDebugError, SWIG_Callback3_t callbackOnDebugFatal); - -private: - SWIG_Callback0_t swig_callbackOnDebugInfo; - SWIG_Callback1_t swig_callbackOnDebugWarn; - SWIG_Callback2_t swig_callbackOnDebugError; - SWIG_Callback3_t swig_callbackOnDebugFatal; - void swig_init_callbacks(); -}; - - -#endif +/* ---------------------------------------------------------------------------- + * 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_SipCallback : public SipCallback, public Swig::Director { + +public: + SwigDirector_SipCallback(); + virtual ~SwigDirector_SipCallback(); + virtual int OnRegistrationChanged(RegistrationEvent const *e); + virtual int OnSubscriptionChanged(SubscriptionEvent const *e); + + typedef int (SWIGSTDCALL* SWIG_Callback0_t)(void *); + typedef int (SWIGSTDCALL* SWIG_Callback1_t)(void *); + void swig_connect_director(SWIG_Callback0_t callbackOnRegistrationChanged, SWIG_Callback1_t callbackOnSubscriptionChanged); + +private: + SWIG_Callback0_t swig_callbackOnRegistrationChanged; + SWIG_Callback1_t swig_callbackOnSubscriptionChanged; + void swig_init_callbacks(); +}; + +class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director { + +public: + SwigDirector_SipDebugCallback(); + virtual ~SwigDirector_SipDebugCallback(); + virtual int OnDebugInfo(char const *message); + virtual int OnDebugWarn(char const *message); + virtual int OnDebugError(char const *message); + virtual int OnDebugFatal(char const *message); + + typedef int (SWIGSTDCALL* SWIG_Callback0_t)(char *); + typedef int (SWIGSTDCALL* SWIG_Callback1_t)(char *); + typedef int (SWIGSTDCALL* SWIG_Callback2_t)(char *); + typedef int (SWIGSTDCALL* SWIG_Callback3_t)(char *); + void swig_connect_director(SWIG_Callback0_t callbackOnDebugInfo, SWIG_Callback1_t callbackOnDebugWarn, SWIG_Callback2_t callbackOnDebugError, SWIG_Callback3_t callbackOnDebugFatal); + +private: + SWIG_Callback0_t swig_callbackOnDebugInfo; + SWIG_Callback1_t swig_callbackOnDebugWarn; + SWIG_Callback2_t swig_callbackOnDebugError; + SWIG_Callback3_t swig_callbackOnDebugFatal; + void swig_init_callbacks(); +}; + + +#endif diff --git a/trunk/bindings/csharp/tsip_event_type_t.cs b/trunk/bindings/csharp/tsip_event_type_t.cs index 16321d11..54fc0151 100644 --- a/trunk/bindings/csharp/tsip_event_type_t.cs +++ b/trunk/bindings/csharp/tsip_event_type_t.cs @@ -1,18 +1,18 @@ -/* ---------------------------------------------------------------------------- - * 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. - * ----------------------------------------------------------------------------- */ - - -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 -} +/* ---------------------------------------------------------------------------- + * 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. + * ----------------------------------------------------------------------------- */ + + +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 +} diff --git a/trunk/bindings/csharp/tsip_register_event_type_t.cs b/trunk/bindings/csharp/tsip_register_event_type_t.cs index ab7187a2..0487160e 100644 --- a/trunk/bindings/csharp/tsip_register_event_type_t.cs +++ b/trunk/bindings/csharp/tsip_register_event_type_t.cs @@ -1,19 +1,19 @@ -/* ---------------------------------------------------------------------------- - * 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. - * ----------------------------------------------------------------------------- */ - - -public enum tsip_register_event_type_t { - tsip_i_register, - tsip_ai_register, - tsip_o_register, - tsip_ao_register, - tsip_i_unregister, - tsip_ai_unregister, - tsip_o_unregister, - tsip_ao_unregister -} +/* ---------------------------------------------------------------------------- + * 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. + * ----------------------------------------------------------------------------- */ + + +public enum tsip_register_event_type_t { + tsip_i_register, + tsip_ai_register, + tsip_o_register, + tsip_ao_register, + tsip_i_unregister, + tsip_ai_unregister, + tsip_o_unregister, + tsip_ao_unregister +} diff --git a/trunk/bindings/csharp/tsip_subscribe_event_type_t.cs b/trunk/bindings/csharp/tsip_subscribe_event_type_t.cs index f922d96a..0a76f4b2 100644 --- a/trunk/bindings/csharp/tsip_subscribe_event_type_t.cs +++ b/trunk/bindings/csharp/tsip_subscribe_event_type_t.cs @@ -1,23 +1,23 @@ -/* ---------------------------------------------------------------------------- - * 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. - * ----------------------------------------------------------------------------- */ - - -public enum tsip_subscribe_event_type_t { - tsip_i_subscribe, - tsip_ai_subscribe, - tsip_o_subscribe, - tsip_ao_subscribe, - tsip_i_unsubscribe, - tsip_ai_unsubscribe, - tsip_o_unsubscribe, - tsip_ao_unsubscribe, - tsip_i_notify, - tsip_ai_notify, - tsip_o_notify, - tsip_ao_notify -} +/* ---------------------------------------------------------------------------- + * 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. + * ----------------------------------------------------------------------------- */ + + +public enum tsip_subscribe_event_type_t { + tsip_i_subscribe, + tsip_ai_subscribe, + tsip_o_subscribe, + tsip_ao_subscribe, + tsip_i_unsubscribe, + tsip_ai_unsubscribe, + tsip_o_unsubscribe, + tsip_ao_unsubscribe, + tsip_i_notify, + tsip_ai_notify, + tsip_o_notify, + tsip_ao_notify +} diff --git a/trunk/bindings/java/RegistrationEvent.java b/trunk/bindings/java/RegistrationEvent.java index 5fe923d9..236d7af7 100644 --- a/trunk/bindings/java/RegistrationEvent.java +++ b/trunk/bindings/java/RegistrationEvent.java @@ -1,49 +1,49 @@ -/* ---------------------------------------------------------------------------- - * 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 RegistrationEvent() { - this(tinyWRAPJNI.new_RegistrationEvent(), true); - } - - 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); - } - -} +/* ---------------------------------------------------------------------------- + * 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 RegistrationEvent() { + this(tinyWRAPJNI.new_RegistrationEvent(), true); + } + + 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); + } + +} diff --git a/trunk/bindings/java/RegistrationSession.java b/trunk/bindings/java/RegistrationSession.java index 79a36e5f..a3d59c49 100644 --- a/trunk/bindings/java/RegistrationSession.java +++ b/trunk/bindings/java/RegistrationSession.java @@ -1,48 +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 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); - } - -} +/* ---------------------------------------------------------------------------- + * 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); + } + +} diff --git a/trunk/bindings/java/SafeObject.java b/trunk/bindings/java/SafeObject.java index 4cef0759..ef0d96bb 100644 --- a/trunk/bindings/java/SafeObject.java +++ b/trunk/bindings/java/SafeObject.java @@ -1,48 +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); - } - -} +/* ---------------------------------------------------------------------------- + * 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/trunk/bindings/java/SipCallback.java b/trunk/bindings/java/SipCallback.java index 0c63f358..9ff6a457 100644 --- a/trunk/bindings/java/SipCallback.java +++ b/trunk/bindings/java/SipCallback.java @@ -1,64 +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 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, true); - } - - public int OnRegistrationChanged(RegistrationEvent e) { - return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnRegistrationChanged(swigCPtr, this, RegistrationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnRegistrationChangedSwigExplicitSipCallback(swigCPtr, this, RegistrationEvent.getCPtr(e), e); - } - - public int OnSubscriptionChanged(SubscriptionEvent e) { - return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnSubscriptionChanged(swigCPtr, this, SubscriptionEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, this, SubscriptionEvent.getCPtr(e), e); - } - -} +/* ---------------------------------------------------------------------------- + * 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, true); + } + + public int OnRegistrationChanged(RegistrationEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnRegistrationChanged(swigCPtr, this, RegistrationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnRegistrationChangedSwigExplicitSipCallback(swigCPtr, this, RegistrationEvent.getCPtr(e), e); + } + + public int OnSubscriptionChanged(SubscriptionEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnSubscriptionChanged(swigCPtr, this, SubscriptionEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, this, SubscriptionEvent.getCPtr(e), e); + } + +} diff --git a/trunk/bindings/java/SipDebugCallback.java b/trunk/bindings/java/SipDebugCallback.java index 57c95328..1334ebb1 100644 --- a/trunk/bindings/java/SipDebugCallback.java +++ b/trunk/bindings/java/SipDebugCallback.java @@ -1,72 +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 SipDebugCallback { - private long swigCPtr; - protected boolean swigCMemOwn; - - protected SipDebugCallback(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - protected static long getCPtr(SipDebugCallback obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if(swigCPtr != 0 && swigCMemOwn) { - swigCMemOwn = false; - tinyWRAPJNI.delete_SipDebugCallback(swigCPtr); - } - swigCPtr = 0; - } - - protected void swigDirectorDisconnect() { - swigCMemOwn = false; - delete(); - } - - public void swigReleaseOwnership() { - swigCMemOwn = false; - tinyWRAPJNI.SipDebugCallback_change_ownership(this, swigCPtr, false); - } - - public void swigTakeOwnership() { - swigCMemOwn = true; - tinyWRAPJNI.SipDebugCallback_change_ownership(this, swigCPtr, true); - } - - public SipDebugCallback() { - this(tinyWRAPJNI.new_SipDebugCallback(), true); - tinyWRAPJNI.SipDebugCallback_director_connect(this, swigCPtr, swigCMemOwn, true); - } - - public int OnDebugInfo(String message) { - return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugInfo(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(swigCPtr, this, message); - } - - public int OnDebugWarn(String message) { - return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugWarn(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(swigCPtr, this, message); - } - - public int OnDebugError(String message) { - return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugError(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(swigCPtr, this, message); - } - - public int OnDebugFatal(String message) { - return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugFatal(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(swigCPtr, this, message); - } - -} +/* ---------------------------------------------------------------------------- + * 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 SipDebugCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SipDebugCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SipDebugCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if(swigCPtr != 0 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SipDebugCallback(swigCPtr); + } + swigCPtr = 0; + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.SipDebugCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.SipDebugCallback_change_ownership(this, swigCPtr, true); + } + + public SipDebugCallback() { + this(tinyWRAPJNI.new_SipDebugCallback(), true); + tinyWRAPJNI.SipDebugCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int OnDebugInfo(String message) { + return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugInfo(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(swigCPtr, this, message); + } + + public int OnDebugWarn(String message) { + return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugWarn(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(swigCPtr, this, message); + } + + public int OnDebugError(String message) { + return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugError(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(swigCPtr, this, message); + } + + public int OnDebugFatal(String message) { + return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugFatal(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(swigCPtr, this, message); + } + +} diff --git a/trunk/bindings/java/SipEvent.java b/trunk/bindings/java/SipEvent.java index a3ce243e..cb2862af 100644 --- a/trunk/bindings/java/SipEvent.java +++ b/trunk/bindings/java/SipEvent.java @@ -1,53 +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 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 SipEvent() { - this(tinyWRAPJNI.new_SipEvent(), true); - } - - 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); - } - -} +/* ---------------------------------------------------------------------------- + * 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 SipEvent() { + this(tinyWRAPJNI.new_SipEvent(), true); + } + + 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); + } + +} diff --git a/trunk/bindings/java/SipSession.java b/trunk/bindings/java/SipSession.java index a1b0610d..fc3c5089 100644 --- a/trunk/bindings/java/SipSession.java +++ b/trunk/bindings/java/SipSession.java @@ -1,76 +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 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; - } - - public SipSession(SipStack Stack) { - this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(Stack), Stack), true); - } - - 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 setPayload(String str, long len) { - return tinyWRAPJNI.SipSession_setPayload(swigCPtr, this, str, len); - } - -} +/* ---------------------------------------------------------------------------- + * 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; + } + + public SipSession(SipStack stack) { + this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(stack), stack), true); + } + + 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 setPayload(String str, long len) { + return tinyWRAPJNI.SipSession_setPayload(swigCPtr, this, str, len); + } + +} diff --git a/trunk/bindings/java/SipStack.java b/trunk/bindings/java/SipStack.java index e075ef67..ec1f64c4 100644 --- a/trunk/bindings/java/SipStack.java +++ b/trunk/bindings/java/SipStack.java @@ -1,100 +1,100 @@ -/* ---------------------------------------------------------------------------- - * 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(SipDebugCallback callback) { - return tinyWRAPJNI.SipStack_setDebugCallback(swigCPtr, this, SipDebugCallback.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 setProxyCSCF(String fqdn, long 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(long 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 isValid() { - return tinyWRAPJNI.SipStack_isValid(swigCPtr, this); - } - - public boolean stop() { - return tinyWRAPJNI.SipStack_stop(swigCPtr, this); - } - -} +/* ---------------------------------------------------------------------------- + * 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(SipDebugCallback callback) { + return tinyWRAPJNI.SipStack_setDebugCallback(swigCPtr, this, SipDebugCallback.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 setProxyCSCF(String fqdn, long 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(long 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 isValid() { + return tinyWRAPJNI.SipStack_isValid(swigCPtr, this); + } + + public boolean stop() { + return tinyWRAPJNI.SipStack_stop(swigCPtr, this); + } + +} diff --git a/trunk/bindings/java/SipUri.java b/trunk/bindings/java/SipUri.java index 81dc1aae..24720691 100644 --- a/trunk/bindings/java/SipUri.java +++ b/trunk/bindings/java/SipUri.java @@ -1,48 +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 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); - } - -} +/* ---------------------------------------------------------------------------- + * 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); + } + +} diff --git a/trunk/bindings/java/SubscriptionEvent.java b/trunk/bindings/java/SubscriptionEvent.java index e60c5e67..f78e9ec8 100644 --- a/trunk/bindings/java/SubscriptionEvent.java +++ b/trunk/bindings/java/SubscriptionEvent.java @@ -1,49 +1,49 @@ -/* ---------------------------------------------------------------------------- - * 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 SubscriptionEvent() { - this(tinyWRAPJNI.new_SubscriptionEvent(), true); - } - - 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); - } - -} +/* ---------------------------------------------------------------------------- + * 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 SubscriptionEvent() { + this(tinyWRAPJNI.new_SubscriptionEvent(), true); + } + + 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/trunk/bindings/java/SubscriptionSession.java b/trunk/bindings/java/SubscriptionSession.java index 64111e8e..b78d4a91 100644 --- a/trunk/bindings/java/SubscriptionSession.java +++ b/trunk/bindings/java/SubscriptionSession.java @@ -1,48 +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); - } - -} +/* ---------------------------------------------------------------------------- + * 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/trunk/bindings/java/android/RegistrationEvent.java b/trunk/bindings/java/android/RegistrationEvent.java index 5fe923d9..236d7af7 100644 --- a/trunk/bindings/java/android/RegistrationEvent.java +++ b/trunk/bindings/java/android/RegistrationEvent.java @@ -1,49 +1,49 @@ -/* ---------------------------------------------------------------------------- - * 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 RegistrationEvent() { - this(tinyWRAPJNI.new_RegistrationEvent(), true); - } - - 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); - } - -} +/* ---------------------------------------------------------------------------- + * 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 RegistrationEvent() { + this(tinyWRAPJNI.new_RegistrationEvent(), true); + } + + 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); + } + +} diff --git a/trunk/bindings/java/android/RegistrationSession.java b/trunk/bindings/java/android/RegistrationSession.java index 79a36e5f..a3d59c49 100644 --- a/trunk/bindings/java/android/RegistrationSession.java +++ b/trunk/bindings/java/android/RegistrationSession.java @@ -1,48 +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 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); - } - -} +/* ---------------------------------------------------------------------------- + * 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); + } + +} diff --git a/trunk/bindings/java/android/SafeObject.java b/trunk/bindings/java/android/SafeObject.java index 4cef0759..ef0d96bb 100644 --- a/trunk/bindings/java/android/SafeObject.java +++ b/trunk/bindings/java/android/SafeObject.java @@ -1,48 +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); - } - -} +/* ---------------------------------------------------------------------------- + * 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/trunk/bindings/java/android/SipCallback.java b/trunk/bindings/java/android/SipCallback.java index 06c879ca..9ff6a457 100644 --- a/trunk/bindings/java/android/SipCallback.java +++ b/trunk/bindings/java/android/SipCallback.java @@ -1,64 +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 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 OnRegistrationChanged(RegistrationEvent e) { - return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnRegistrationChanged(swigCPtr, this, RegistrationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnRegistrationChangedSwigExplicitSipCallback(swigCPtr, this, RegistrationEvent.getCPtr(e), e); - } - - public int OnSubscriptionChanged(SubscriptionEvent e) { - return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnSubscriptionChanged(swigCPtr, this, SubscriptionEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, this, SubscriptionEvent.getCPtr(e), e); - } - -} +/* ---------------------------------------------------------------------------- + * 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, true); + } + + public int OnRegistrationChanged(RegistrationEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnRegistrationChanged(swigCPtr, this, RegistrationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnRegistrationChangedSwigExplicitSipCallback(swigCPtr, this, RegistrationEvent.getCPtr(e), e); + } + + public int OnSubscriptionChanged(SubscriptionEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnSubscriptionChanged(swigCPtr, this, SubscriptionEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, this, SubscriptionEvent.getCPtr(e), e); + } + +} diff --git a/trunk/bindings/java/android/SipDebugCallback.java b/trunk/bindings/java/android/SipDebugCallback.java index 05ae1214..1334ebb1 100644 --- a/trunk/bindings/java/android/SipDebugCallback.java +++ b/trunk/bindings/java/android/SipDebugCallback.java @@ -1,72 +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 SipDebugCallback { - private long swigCPtr; - protected boolean swigCMemOwn; - - protected SipDebugCallback(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - protected static long getCPtr(SipDebugCallback obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if(swigCPtr != 0 && swigCMemOwn) { - swigCMemOwn = false; - tinyWRAPJNI.delete_SipDebugCallback(swigCPtr); - } - swigCPtr = 0; - } - - protected void swigDirectorDisconnect() { - swigCMemOwn = false; - delete(); - } - - public void swigReleaseOwnership() { - swigCMemOwn = false; - tinyWRAPJNI.SipDebugCallback_change_ownership(this, swigCPtr, false); - } - - public void swigTakeOwnership() { - swigCMemOwn = true; - tinyWRAPJNI.SipDebugCallback_change_ownership(this, swigCPtr, true); - } - - public SipDebugCallback() { - this(tinyWRAPJNI.new_SipDebugCallback(), true); - tinyWRAPJNI.SipDebugCallback_director_connect(this, swigCPtr, swigCMemOwn, false); - } - - public int OnDebugInfo(String message) { - return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugInfo(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(swigCPtr, this, message); - } - - public int OnDebugWarn(String message) { - return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugWarn(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(swigCPtr, this, message); - } - - public int OnDebugError(String message) { - return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugError(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(swigCPtr, this, message); - } - - public int OnDebugFatal(String message) { - return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugFatal(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(swigCPtr, this, message); - } - -} +/* ---------------------------------------------------------------------------- + * 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 SipDebugCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SipDebugCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SipDebugCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if(swigCPtr != 0 && swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SipDebugCallback(swigCPtr); + } + swigCPtr = 0; + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.SipDebugCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.SipDebugCallback_change_ownership(this, swigCPtr, true); + } + + public SipDebugCallback() { + this(tinyWRAPJNI.new_SipDebugCallback(), true); + tinyWRAPJNI.SipDebugCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int OnDebugInfo(String message) { + return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugInfo(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(swigCPtr, this, message); + } + + public int OnDebugWarn(String message) { + return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugWarn(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(swigCPtr, this, message); + } + + public int OnDebugError(String message) { + return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugError(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(swigCPtr, this, message); + } + + public int OnDebugFatal(String message) { + return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugFatal(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(swigCPtr, this, message); + } + +} diff --git a/trunk/bindings/java/android/SipEvent.java b/trunk/bindings/java/android/SipEvent.java index a3ce243e..cb2862af 100644 --- a/trunk/bindings/java/android/SipEvent.java +++ b/trunk/bindings/java/android/SipEvent.java @@ -1,53 +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 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 SipEvent() { - this(tinyWRAPJNI.new_SipEvent(), true); - } - - 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); - } - -} +/* ---------------------------------------------------------------------------- + * 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 SipEvent() { + this(tinyWRAPJNI.new_SipEvent(), true); + } + + 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); + } + +} diff --git a/trunk/bindings/java/android/SipSession.java b/trunk/bindings/java/android/SipSession.java index a1b0610d..fc3c5089 100644 --- a/trunk/bindings/java/android/SipSession.java +++ b/trunk/bindings/java/android/SipSession.java @@ -1,76 +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 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; - } - - public SipSession(SipStack Stack) { - this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(Stack), Stack), true); - } - - 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 setPayload(String str, long len) { - return tinyWRAPJNI.SipSession_setPayload(swigCPtr, this, str, len); - } - -} +/* ---------------------------------------------------------------------------- + * 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; + } + + public SipSession(SipStack stack) { + this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(stack), stack), true); + } + + 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 setPayload(String str, long len) { + return tinyWRAPJNI.SipSession_setPayload(swigCPtr, this, str, len); + } + +} diff --git a/trunk/bindings/java/android/SipStack.java b/trunk/bindings/java/android/SipStack.java index e075ef67..ec1f64c4 100644 --- a/trunk/bindings/java/android/SipStack.java +++ b/trunk/bindings/java/android/SipStack.java @@ -1,100 +1,100 @@ -/* ---------------------------------------------------------------------------- - * 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(SipDebugCallback callback) { - return tinyWRAPJNI.SipStack_setDebugCallback(swigCPtr, this, SipDebugCallback.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 setProxyCSCF(String fqdn, long 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(long 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 isValid() { - return tinyWRAPJNI.SipStack_isValid(swigCPtr, this); - } - - public boolean stop() { - return tinyWRAPJNI.SipStack_stop(swigCPtr, this); - } - -} +/* ---------------------------------------------------------------------------- + * 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(SipDebugCallback callback) { + return tinyWRAPJNI.SipStack_setDebugCallback(swigCPtr, this, SipDebugCallback.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 setProxyCSCF(String fqdn, long 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(long 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 isValid() { + return tinyWRAPJNI.SipStack_isValid(swigCPtr, this); + } + + public boolean stop() { + return tinyWRAPJNI.SipStack_stop(swigCPtr, this); + } + +} diff --git a/trunk/bindings/java/android/SipUri.java b/trunk/bindings/java/android/SipUri.java index 81dc1aae..24720691 100644 --- a/trunk/bindings/java/android/SipUri.java +++ b/trunk/bindings/java/android/SipUri.java @@ -1,48 +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 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); - } - -} +/* ---------------------------------------------------------------------------- + * 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); + } + +} diff --git a/trunk/bindings/java/android/SubscriptionEvent.java b/trunk/bindings/java/android/SubscriptionEvent.java index e60c5e67..f78e9ec8 100644 --- a/trunk/bindings/java/android/SubscriptionEvent.java +++ b/trunk/bindings/java/android/SubscriptionEvent.java @@ -1,49 +1,49 @@ -/* ---------------------------------------------------------------------------- - * 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 SubscriptionEvent() { - this(tinyWRAPJNI.new_SubscriptionEvent(), true); - } - - 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); - } - -} +/* ---------------------------------------------------------------------------- + * 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 SubscriptionEvent() { + this(tinyWRAPJNI.new_SubscriptionEvent(), true); + } + + 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/trunk/bindings/java/android/SubscriptionSession.java b/trunk/bindings/java/android/SubscriptionSession.java index 64111e8e..b78d4a91 100644 --- a/trunk/bindings/java/android/SubscriptionSession.java +++ b/trunk/bindings/java/android/SubscriptionSession.java @@ -1,48 +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); - } - -} +/* ---------------------------------------------------------------------------- + * 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/trunk/bindings/java/android/tinyWRAP.java b/trunk/bindings/java/android/tinyWRAP.java index b4149d69..747cc22c 100644 --- a/trunk/bindings/java/android/tinyWRAP.java +++ b/trunk/bindings/java/android/tinyWRAP.java @@ -1,12 +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 { -} +/* ---------------------------------------------------------------------------- + * 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 { +} diff --git a/trunk/bindings/java/android/tinyWRAPJNI.java b/trunk/bindings/java/android/tinyWRAPJNI.java index 0cfed368..afb3d043 100644 --- a/trunk/bindings/java/android/tinyWRAPJNI.java +++ b/trunk/bindings/java/android/tinyWRAPJNI.java @@ -1,118 +1,118 @@ -/* ---------------------------------------------------------------------------- - * 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_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 long new_SipEvent(); - 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 new_SipSession(long jarg1, SipStack jarg1_); - public final static native void delete_SipSession(long 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_setPayload(long jarg1, SipSession jarg1_, String jarg2, long jarg3); - public final static native long new_RegistrationEvent(); - 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 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 long new_SubscriptionEvent(); - 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_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 long new_SipCallback(); - public final static native void delete_SipCallback(long jarg1); - public final static native int SipCallback_OnRegistrationChanged(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_); - public final static native int SipCallback_OnRegistrationChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_); - public final static native int SipCallback_OnSubscriptionChanged(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_); - public final static native int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(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_SipDebugCallback(); - public final static native void delete_SipDebugCallback(long jarg1); - public final static native int SipDebugCallback_OnDebugInfo(long jarg1, SipDebugCallback jarg1_, String jarg2); - public final static native int SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2); - public final static native int SipDebugCallback_OnDebugWarn(long jarg1, SipDebugCallback jarg1_, String jarg2); - public final static native int SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2); - public final static native int SipDebugCallback_OnDebugError(long jarg1, SipDebugCallback jarg1_, String jarg2); - public final static native int SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2); - public final static native int SipDebugCallback_OnDebugFatal(long jarg1, SipDebugCallback jarg1_, String jarg2); - public final static native int SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2); - public final static native void SipDebugCallback_director_connect(SipDebugCallback obj, long cptr, boolean mem_own, boolean weak_global); - public final static native void SipDebugCallback_change_ownership(SipDebugCallback 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, SipDebugCallback 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_setProxyCSCF(long jarg1, SipStack jarg1_, String jarg2, long 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_, long 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_isValid(long jarg1, SipStack jarg1_); - public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_); - public final static native long SWIGRegistrationEventUpcast(long jarg1); - public final static native long SWIGRegistrationSessionUpcast(long jarg1); - public final static native long SWIGSubscriptionEventUpcast(long jarg1); - public final static native long SWIGSubscriptionSessionUpcast(long jarg1); - public final static native long SWIGSipStackUpcast(long jarg1); - - public static int SwigDirector_SipCallback_OnRegistrationChanged(SipCallback self, long e) { - return self.OnRegistrationChanged((e == 0) ? null : new RegistrationEvent(e, false)); - } - public static int SwigDirector_SipCallback_OnSubscriptionChanged(SipCallback self, long e) { - return self.OnSubscriptionChanged((e == 0) ? null : new SubscriptionEvent(e, false)); - } - public static int SwigDirector_SipDebugCallback_OnDebugInfo(SipDebugCallback self, String message) { - return self.OnDebugInfo(message); - } - public static int SwigDirector_SipDebugCallback_OnDebugWarn(SipDebugCallback self, String message) { - return self.OnDebugWarn(message); - } - public static int SwigDirector_SipDebugCallback_OnDebugError(SipDebugCallback self, String message) { - return self.OnDebugError(message); - } - public static int SwigDirector_SipDebugCallback_OnDebugFatal(SipDebugCallback self, String message) { - return self.OnDebugFatal(message); - } - - private final static native void swig_module_init(); - static { - swig_module_init(); - } -} +/* ---------------------------------------------------------------------------- + * 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_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 long new_SipEvent(); + 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 new_SipSession(long jarg1, SipStack jarg1_); + public final static native void delete_SipSession(long 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_setPayload(long jarg1, SipSession jarg1_, String jarg2, long jarg3); + public final static native long new_RegistrationEvent(); + 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 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 long new_SubscriptionEvent(); + 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_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 long new_SipCallback(); + public final static native void delete_SipCallback(long jarg1); + public final static native int SipCallback_OnRegistrationChanged(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_); + public final static native int SipCallback_OnRegistrationChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_); + public final static native int SipCallback_OnSubscriptionChanged(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_); + public final static native int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(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_SipDebugCallback(); + public final static native void delete_SipDebugCallback(long jarg1); + public final static native int SipDebugCallback_OnDebugInfo(long jarg1, SipDebugCallback jarg1_, String jarg2); + public final static native int SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2); + public final static native int SipDebugCallback_OnDebugWarn(long jarg1, SipDebugCallback jarg1_, String jarg2); + public final static native int SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2); + public final static native int SipDebugCallback_OnDebugError(long jarg1, SipDebugCallback jarg1_, String jarg2); + public final static native int SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2); + public final static native int SipDebugCallback_OnDebugFatal(long jarg1, SipDebugCallback jarg1_, String jarg2); + public final static native int SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2); + public final static native void SipDebugCallback_director_connect(SipDebugCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void SipDebugCallback_change_ownership(SipDebugCallback 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, SipDebugCallback 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_setProxyCSCF(long jarg1, SipStack jarg1_, String jarg2, long 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_, long 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_isValid(long jarg1, SipStack jarg1_); + public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_); + public final static native long SWIGRegistrationEventUpcast(long jarg1); + public final static native long SWIGRegistrationSessionUpcast(long jarg1); + public final static native long SWIGSubscriptionEventUpcast(long jarg1); + public final static native long SWIGSubscriptionSessionUpcast(long jarg1); + public final static native long SWIGSipStackUpcast(long jarg1); + + public static int SwigDirector_SipCallback_OnRegistrationChanged(SipCallback self, long e) { + return self.OnRegistrationChanged((e == 0) ? null : new RegistrationEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnSubscriptionChanged(SipCallback self, long e) { + return self.OnSubscriptionChanged((e == 0) ? null : new SubscriptionEvent(e, false)); + } + public static int SwigDirector_SipDebugCallback_OnDebugInfo(SipDebugCallback self, String message) { + return self.OnDebugInfo(message); + } + public static int SwigDirector_SipDebugCallback_OnDebugWarn(SipDebugCallback self, String message) { + return self.OnDebugWarn(message); + } + public static int SwigDirector_SipDebugCallback_OnDebugError(SipDebugCallback self, String message) { + return self.OnDebugError(message); + } + public static int SwigDirector_SipDebugCallback_OnDebugFatal(SipDebugCallback self, String message) { + return self.OnDebugFatal(message); + } + + private final static native void swig_module_init(); + static { + swig_module_init(); + } +} diff --git a/trunk/bindings/java/android/tinyWRAP_wrap.cxx b/trunk/bindings/java/android/tinyWRAP_wrap.cxx index fcbf9870..2ef4772f 100644 --- a/trunk/bindings/java/android/tinyWRAP_wrap.cxx +++ b/trunk/bindings/java/android/tinyWRAP_wrap.cxx @@ -1,2098 +1,2098 @@ -/* ---------------------------------------------------------------------------- - * 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 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& rhs); - SwigValueWrapper(const SwigValueWrapper& 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 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 -#include -#include - - -/* 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 -#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[6]; -} - -#include "SipUri.h" -#include "SipEvent.h" -#include "SipSession.h" -#include "RegistrationEvent.h" -#include "RegistrationSession.h" -#include "SubscriptionEvent.h" -#include "SubscriptionSession.h" -#include "SipCallback.h" -#include "SipDebug.h" -#include "SafeObject.h" -#include "SipStack.h" - - - -/* --------------------------------------------------- - * C++ director class methods - * --------------------------------------------------- */ - -#include "tinyWRAP_wrap.h" - -SwigDirector_SipCallback::SwigDirector_SipCallback(JNIEnv *jenv) : SipCallback(), Swig::Director(jenv) { -} - -SwigDirector_SipCallback::~SwigDirector_SipCallback() { - swig_disconnect_director_self("swigDirectorDisconnect"); -} - - -int SwigDirector_SipCallback::OnRegistrationChanged(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[0]) { - return SipCallback::OnRegistrationChanged(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[0], 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::OnSubscriptionChanged(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[1]) { - return SipCallback::OnSubscriptionChanged(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[1], 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[] = { - { - "OnRegistrationChanged", "(Lorg/doubango/tinyWRAP/RegistrationEvent;)I", NULL - }, - { - "OnSubscriptionChanged", "(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 < 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_SipDebugCallback::SwigDirector_SipDebugCallback(JNIEnv *jenv) : SipDebugCallback(), Swig::Director(jenv) { -} - -SwigDirector_SipDebugCallback::~SwigDirector_SipDebugCallback() { - swig_disconnect_director_self("swigDirectorDisconnect"); -} - - -int SwigDirector_SipDebugCallback::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 SipDebugCallback::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[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_SipDebugCallback::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 SipDebugCallback::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[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; -} - -int SwigDirector_SipDebugCallback::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 SipDebugCallback::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[4], 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_SipDebugCallback::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 SipDebugCallback::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[5], 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_SipDebugCallback::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/SipDebugCallback"); - 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(); - } - } - } -} - - - -#ifdef __cplusplus -extern "C" { -#endif - -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 jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipEvent(JNIEnv *jenv, jclass jcls) { - jlong jresult = 0 ; - SipEvent *result = 0 ; - - (void)jenv; - (void)jcls; - result = (SipEvent *)new SipEvent(); - *(SipEvent **)&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_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_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_1setPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) { - jboolean jresult = 0 ; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - unsigned int arg3 ; - 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 = (unsigned int)jarg3; - result = (bool)(arg1)->setPayload((char const *)arg2,arg3); - jresult = (jboolean)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1RegistrationEvent(JNIEnv *jenv, jclass jcls) { - jlong jresult = 0 ; - RegistrationEvent *result = 0 ; - - (void)jenv; - (void)jcls; - result = (RegistrationEvent *)new RegistrationEvent(); - *(RegistrationEvent **)&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_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(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 jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SubscriptionEvent(JNIEnv *jenv, jclass jcls) { - jlong jresult = 0 ; - SubscriptionEvent *result = 0 ; - - (void)jenv; - (void)jcls; - result = (SubscriptionEvent *)new SubscriptionEvent(); - *(SubscriptionEvent **)&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_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 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_1OnRegistrationChanged(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)->OnRegistrationChanged((RegistrationEvent const *)arg2); - jresult = (jint)result; - return jresult; -} - - -SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnRegistrationChangedSwigExplicitSipCallback(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::OnRegistrationChanged((RegistrationEvent const *)arg2); - jresult = (jint)result; - return jresult; -} - - -SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSubscriptionChanged(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)->OnSubscriptionChanged((SubscriptionEvent const *)arg2); - jresult = (jint)result; - return jresult; -} - - -SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSubscriptionChangedSwigExplicitSipCallback(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::OnSubscriptionChanged((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(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(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_1SipDebugCallback(JNIEnv *jenv, jclass jcls) { - jlong jresult = 0 ; - SipDebugCallback *result = 0 ; - - (void)jenv; - (void)jcls; - result = (SipDebugCallback *)new SwigDirector_SipDebugCallback(jenv); - *(SipDebugCallback **)&jresult = result; - return jresult; -} - - -SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - - (void)jenv; - (void)jcls; - arg1 = *(SipDebugCallback **)&jarg1; - delete arg1; -} - - -SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipDebugCallback_1OnDebugInfo(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { - jint jresult = 0 ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipDebugCallback **)&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_SipDebugCallback_1OnDebugInfoSwigExplicitSipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { - jint jresult = 0 ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipDebugCallback **)&jarg1; - arg2 = 0; - if (jarg2) { - arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); - if (!arg2) return 0; - } - result = (int)(arg1)->SipDebugCallback::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_SipDebugCallback_1OnDebugWarn(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { - jint jresult = 0 ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipDebugCallback **)&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_SipDebugCallback_1OnDebugWarnSwigExplicitSipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { - jint jresult = 0 ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipDebugCallback **)&jarg1; - arg2 = 0; - if (jarg2) { - arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); - if (!arg2) return 0; - } - result = (int)(arg1)->SipDebugCallback::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_SipDebugCallback_1OnDebugError(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { - jint jresult = 0 ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipDebugCallback **)&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_SipDebugCallback_1OnDebugErrorSwigExplicitSipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { - jint jresult = 0 ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipDebugCallback **)&jarg1; - arg2 = 0; - if (jarg2) { - arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); - if (!arg2) return 0; - } - result = (int)(arg1)->SipDebugCallback::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_SipDebugCallback_1OnDebugFatal(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { - jint jresult = 0 ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipDebugCallback **)&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_SipDebugCallback_1OnDebugFatalSwigExplicitSipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { - jint jresult = 0 ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipDebugCallback **)&jarg1; - arg2 = 0; - if (jarg2) { - arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); - if (!arg2) return 0; - } - result = (int)(arg1)->SipDebugCallback::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_SipDebugCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { - SipDebugCallback *obj = *((SipDebugCallback **)&objarg); - (void)jcls; - SwigDirector_SipDebugCallback *director = static_cast(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_SipDebugCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { - SipDebugCallback *obj = *((SipDebugCallback **)&objarg); - SwigDirector_SipDebugCallback *director = static_cast(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)(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)(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 ; - SipDebugCallback *arg2 = (SipDebugCallback *) 0 ; - bool result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - (void)jarg2_; - arg1 = *(SipStack **)&jarg1; - arg2 = *(SipDebugCallback **)&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_1setProxyCSCF(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jstring jarg4, jstring jarg5) { - jboolean jresult = 0 ; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - unsigned int 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 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 = (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_, jlong jarg2) { - jboolean jresult = 0 ; - SipStack *arg1 = (SipStack *) 0 ; - unsigned int arg2 ; - bool result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipStack **)&jarg1; - arg2 = (unsigned int)jarg2; - result = (bool)(arg1)->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_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 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_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_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_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_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[6] = { - { - "SwigDirector_SipCallback_OnRegistrationChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" - }, - { - "SwigDirector_SipCallback_OnSubscriptionChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" - }, - { - "SwigDirector_SipDebugCallback_OnDebugInfo", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)I" - }, - { - "SwigDirector_SipDebugCallback_OnDebugWarn", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)I" - }, - { - "SwigDirector_SipDebugCallback_OnDebugError", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)I" - }, - { - "SwigDirector_SipDebugCallback_OnDebugFatal", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)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 - +/* ---------------------------------------------------------------------------- + * 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 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& rhs); + SwigValueWrapper(const SwigValueWrapper& 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 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 +#include +#include + + +/* 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 +#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((void **) &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[6]; +} + +#include "SipUri.h" +#include "SipEvent.h" +#include "SipSession.h" +#include "RegistrationEvent.h" +#include "RegistrationSession.h" +#include "SubscriptionEvent.h" +#include "SubscriptionSession.h" +#include "SipCallback.h" +#include "SipDebug.h" +#include "SafeObject.h" +#include "SipStack.h" + + + +/* --------------------------------------------------- + * C++ director class methods + * --------------------------------------------------- */ + +#include "java/android/tinyWRAP_wrap.h" + +SwigDirector_SipCallback::SwigDirector_SipCallback(JNIEnv *jenv) : SipCallback(), Swig::Director(jenv) { +} + +SwigDirector_SipCallback::~SwigDirector_SipCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_SipCallback::OnRegistrationChanged(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[0]) { + return SipCallback::OnRegistrationChanged(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[0], 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::OnSubscriptionChanged(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[1]) { + return SipCallback::OnSubscriptionChanged(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[1], 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[] = { + { + "OnRegistrationChanged", "(Lorg/doubango/tinyWRAP/RegistrationEvent;)I", NULL + }, + { + "OnSubscriptionChanged", "(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 < 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_SipDebugCallback::SwigDirector_SipDebugCallback(JNIEnv *jenv) : SipDebugCallback(), Swig::Director(jenv) { +} + +SwigDirector_SipDebugCallback::~SwigDirector_SipDebugCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_SipDebugCallback::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 SipDebugCallback::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[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_SipDebugCallback::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 SipDebugCallback::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[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; +} + +int SwigDirector_SipDebugCallback::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 SipDebugCallback::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[4], 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_SipDebugCallback::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 SipDebugCallback::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[5], 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_SipDebugCallback::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/SipDebugCallback"); + 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(); + } + } + } +} + + + +#ifdef __cplusplus +extern "C" { +#endif + +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 jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipEvent(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + SipEvent *result = 0 ; + + (void)jenv; + (void)jcls; + result = (SipEvent *)new SipEvent(); + *(SipEvent **)&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_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_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_1setPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + 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 = (unsigned int)jarg3; + result = (bool)(arg1)->setPayload((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1RegistrationEvent(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + RegistrationEvent *result = 0 ; + + (void)jenv; + (void)jcls; + result = (RegistrationEvent *)new RegistrationEvent(); + *(RegistrationEvent **)&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_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(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 jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SubscriptionEvent(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + SubscriptionEvent *result = 0 ; + + (void)jenv; + (void)jcls; + result = (SubscriptionEvent *)new SubscriptionEvent(); + *(SubscriptionEvent **)&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_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 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_1OnRegistrationChanged(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)->OnRegistrationChanged((RegistrationEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnRegistrationChangedSwigExplicitSipCallback(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::OnRegistrationChanged((RegistrationEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSubscriptionChanged(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)->OnSubscriptionChanged((SubscriptionEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSubscriptionChangedSwigExplicitSipCallback(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::OnSubscriptionChanged((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 = dynamic_cast(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 = dynamic_cast(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_1SipDebugCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + SipDebugCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (SipDebugCallback *)new SwigDirector_SipDebugCallback(jenv); + *(SipDebugCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SipDebugCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipDebugCallback_1OnDebugInfo(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipDebugCallback **)&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_SipDebugCallback_1OnDebugInfoSwigExplicitSipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->SipDebugCallback::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_SipDebugCallback_1OnDebugWarn(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipDebugCallback **)&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_SipDebugCallback_1OnDebugWarnSwigExplicitSipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->SipDebugCallback::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_SipDebugCallback_1OnDebugError(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipDebugCallback **)&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_SipDebugCallback_1OnDebugErrorSwigExplicitSipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->SipDebugCallback::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_SipDebugCallback_1OnDebugFatal(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipDebugCallback **)&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_SipDebugCallback_1OnDebugFatalSwigExplicitSipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->SipDebugCallback::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_SipDebugCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + SipDebugCallback *obj = *((SipDebugCallback **)&objarg); + (void)jcls; + SwigDirector_SipDebugCallback *director = dynamic_cast(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_SipDebugCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + SipDebugCallback *obj = *((SipDebugCallback **)&objarg); + SwigDirector_SipDebugCallback *director = dynamic_cast(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 ; + SipDebugCallback *arg2 = (SipDebugCallback *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipStack **)&jarg1; + arg2 = *(SipDebugCallback **)&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_1setProxyCSCF(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jstring jarg4, jstring jarg5) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int 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 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 = (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_, jlong jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + unsigned int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->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_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 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_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_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_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_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[6] = { + { + "SwigDirector_SipCallback_OnRegistrationChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnSubscriptionChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipDebugCallback_OnDebugInfo", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)I" + }, + { + "SwigDirector_SipDebugCallback_OnDebugWarn", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)I" + }, + { + "SwigDirector_SipDebugCallback_OnDebugError", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)I" + }, + { + "SwigDirector_SipDebugCallback_OnDebugFatal", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)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/trunk/bindings/java/android/tinyWRAP_wrap.h b/trunk/bindings/java/android/tinyWRAP_wrap.h index 058516c0..a64c4d42 100644 --- a/trunk/bindings/java/android/tinyWRAP_wrap.h +++ b/trunk/bindings/java/android/tinyWRAP_wrap.h @@ -1,49 +1,49 @@ -/* ---------------------------------------------------------------------------- - * 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_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 OnRegistrationChanged(RegistrationEvent const *e); - virtual int OnSubscriptionChanged(SubscriptionEvent const *e); -public: - bool swig_overrides(int n) { - return (n < 2 ? swig_override[n] : false); - } -protected: - bool swig_override[2]; -}; - -class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director { - -public: - void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); - SwigDirector_SipDebugCallback(JNIEnv *jenv); - virtual ~SwigDirector_SipDebugCallback(); - 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]; -}; - - -#endif +/* ---------------------------------------------------------------------------- + * 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_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 OnRegistrationChanged(RegistrationEvent const *e); + virtual int OnSubscriptionChanged(SubscriptionEvent const *e); +public: + bool swig_overrides(int n) { + return (n < 2 ? swig_override[n] : false); + } +protected: + bool swig_override[2]; +}; + +class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_SipDebugCallback(JNIEnv *jenv); + virtual ~SwigDirector_SipDebugCallback(); + 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]; +}; + + +#endif diff --git a/trunk/bindings/java/android/tsip_event_type_t.java b/trunk/bindings/java/android/tsip_event_type_t.java index 6527ee1e..bf2e0f20 100644 --- a/trunk/bindings/java/android/tsip_event_type_t.java +++ b/trunk/bindings/java/android/tsip_event_type_t.java @@ -1,57 +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; - } -} - +/* ---------------------------------------------------------------------------- + * 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/trunk/bindings/java/android/tsip_register_event_type_t.java b/trunk/bindings/java/android/tsip_register_event_type_t.java index 8e497d94..f89e29c7 100644 --- a/trunk/bindings/java/android/tsip_register_event_type_t.java +++ b/trunk/bindings/java/android/tsip_register_event_type_t.java @@ -1,58 +1,58 @@ -/* ---------------------------------------------------------------------------- - * 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_register, - tsip_ai_register, - tsip_o_register, - tsip_ao_register, - tsip_i_unregister, - tsip_ai_unregister, - tsip_o_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; - } -} - +/* ---------------------------------------------------------------------------- + * 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_register, + tsip_ai_register, + tsip_o_register, + tsip_ao_register, + tsip_i_unregister, + tsip_ai_unregister, + tsip_o_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/trunk/bindings/java/android/tsip_subscribe_event_type_t.java b/trunk/bindings/java/android/tsip_subscribe_event_type_t.java index ae77c65f..c9f0375a 100644 --- a/trunk/bindings/java/android/tsip_subscribe_event_type_t.java +++ b/trunk/bindings/java/android/tsip_subscribe_event_type_t.java @@ -1,62 +1,62 @@ -/* ---------------------------------------------------------------------------- - * 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_ai_subscribe, - tsip_o_subscribe, - tsip_ao_subscribe, - tsip_i_unsubscribe, - tsip_ai_unsubscribe, - tsip_o_unsubscribe, - tsip_ao_unsubscribe, - tsip_i_notify, - tsip_ai_notify, - tsip_o_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; - } -} - +/* ---------------------------------------------------------------------------- + * 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_ai_subscribe, + tsip_o_subscribe, + tsip_ao_subscribe, + tsip_i_unsubscribe, + tsip_ai_unsubscribe, + tsip_o_unsubscribe, + tsip_ao_unsubscribe, + tsip_i_notify, + tsip_ai_notify, + tsip_o_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/trunk/bindings/java/tinyWRAP.java b/trunk/bindings/java/tinyWRAP.java index b4149d69..747cc22c 100644 --- a/trunk/bindings/java/tinyWRAP.java +++ b/trunk/bindings/java/tinyWRAP.java @@ -1,12 +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 { -} +/* ---------------------------------------------------------------------------- + * 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 { +} diff --git a/trunk/bindings/java/tinyWRAPJNI.java b/trunk/bindings/java/tinyWRAPJNI.java index 0cfed368..afb3d043 100644 --- a/trunk/bindings/java/tinyWRAPJNI.java +++ b/trunk/bindings/java/tinyWRAPJNI.java @@ -1,118 +1,118 @@ -/* ---------------------------------------------------------------------------- - * 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_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 long new_SipEvent(); - 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 new_SipSession(long jarg1, SipStack jarg1_); - public final static native void delete_SipSession(long 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_setPayload(long jarg1, SipSession jarg1_, String jarg2, long jarg3); - public final static native long new_RegistrationEvent(); - 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 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 long new_SubscriptionEvent(); - 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_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 long new_SipCallback(); - public final static native void delete_SipCallback(long jarg1); - public final static native int SipCallback_OnRegistrationChanged(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_); - public final static native int SipCallback_OnRegistrationChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_); - public final static native int SipCallback_OnSubscriptionChanged(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_); - public final static native int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(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_SipDebugCallback(); - public final static native void delete_SipDebugCallback(long jarg1); - public final static native int SipDebugCallback_OnDebugInfo(long jarg1, SipDebugCallback jarg1_, String jarg2); - public final static native int SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2); - public final static native int SipDebugCallback_OnDebugWarn(long jarg1, SipDebugCallback jarg1_, String jarg2); - public final static native int SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2); - public final static native int SipDebugCallback_OnDebugError(long jarg1, SipDebugCallback jarg1_, String jarg2); - public final static native int SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2); - public final static native int SipDebugCallback_OnDebugFatal(long jarg1, SipDebugCallback jarg1_, String jarg2); - public final static native int SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2); - public final static native void SipDebugCallback_director_connect(SipDebugCallback obj, long cptr, boolean mem_own, boolean weak_global); - public final static native void SipDebugCallback_change_ownership(SipDebugCallback 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, SipDebugCallback 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_setProxyCSCF(long jarg1, SipStack jarg1_, String jarg2, long 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_, long 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_isValid(long jarg1, SipStack jarg1_); - public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_); - public final static native long SWIGRegistrationEventUpcast(long jarg1); - public final static native long SWIGRegistrationSessionUpcast(long jarg1); - public final static native long SWIGSubscriptionEventUpcast(long jarg1); - public final static native long SWIGSubscriptionSessionUpcast(long jarg1); - public final static native long SWIGSipStackUpcast(long jarg1); - - public static int SwigDirector_SipCallback_OnRegistrationChanged(SipCallback self, long e) { - return self.OnRegistrationChanged((e == 0) ? null : new RegistrationEvent(e, false)); - } - public static int SwigDirector_SipCallback_OnSubscriptionChanged(SipCallback self, long e) { - return self.OnSubscriptionChanged((e == 0) ? null : new SubscriptionEvent(e, false)); - } - public static int SwigDirector_SipDebugCallback_OnDebugInfo(SipDebugCallback self, String message) { - return self.OnDebugInfo(message); - } - public static int SwigDirector_SipDebugCallback_OnDebugWarn(SipDebugCallback self, String message) { - return self.OnDebugWarn(message); - } - public static int SwigDirector_SipDebugCallback_OnDebugError(SipDebugCallback self, String message) { - return self.OnDebugError(message); - } - public static int SwigDirector_SipDebugCallback_OnDebugFatal(SipDebugCallback self, String message) { - return self.OnDebugFatal(message); - } - - private final static native void swig_module_init(); - static { - swig_module_init(); - } -} +/* ---------------------------------------------------------------------------- + * 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_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 long new_SipEvent(); + 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 new_SipSession(long jarg1, SipStack jarg1_); + public final static native void delete_SipSession(long 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_setPayload(long jarg1, SipSession jarg1_, String jarg2, long jarg3); + public final static native long new_RegistrationEvent(); + 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 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 long new_SubscriptionEvent(); + 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_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 long new_SipCallback(); + public final static native void delete_SipCallback(long jarg1); + public final static native int SipCallback_OnRegistrationChanged(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_); + public final static native int SipCallback_OnRegistrationChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_); + public final static native int SipCallback_OnSubscriptionChanged(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_); + public final static native int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(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_SipDebugCallback(); + public final static native void delete_SipDebugCallback(long jarg1); + public final static native int SipDebugCallback_OnDebugInfo(long jarg1, SipDebugCallback jarg1_, String jarg2); + public final static native int SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2); + public final static native int SipDebugCallback_OnDebugWarn(long jarg1, SipDebugCallback jarg1_, String jarg2); + public final static native int SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2); + public final static native int SipDebugCallback_OnDebugError(long jarg1, SipDebugCallback jarg1_, String jarg2); + public final static native int SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2); + public final static native int SipDebugCallback_OnDebugFatal(long jarg1, SipDebugCallback jarg1_, String jarg2); + public final static native int SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2); + public final static native void SipDebugCallback_director_connect(SipDebugCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void SipDebugCallback_change_ownership(SipDebugCallback 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, SipDebugCallback 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_setProxyCSCF(long jarg1, SipStack jarg1_, String jarg2, long 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_, long 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_isValid(long jarg1, SipStack jarg1_); + public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_); + public final static native long SWIGRegistrationEventUpcast(long jarg1); + public final static native long SWIGRegistrationSessionUpcast(long jarg1); + public final static native long SWIGSubscriptionEventUpcast(long jarg1); + public final static native long SWIGSubscriptionSessionUpcast(long jarg1); + public final static native long SWIGSipStackUpcast(long jarg1); + + public static int SwigDirector_SipCallback_OnRegistrationChanged(SipCallback self, long e) { + return self.OnRegistrationChanged((e == 0) ? null : new RegistrationEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnSubscriptionChanged(SipCallback self, long e) { + return self.OnSubscriptionChanged((e == 0) ? null : new SubscriptionEvent(e, false)); + } + public static int SwigDirector_SipDebugCallback_OnDebugInfo(SipDebugCallback self, String message) { + return self.OnDebugInfo(message); + } + public static int SwigDirector_SipDebugCallback_OnDebugWarn(SipDebugCallback self, String message) { + return self.OnDebugWarn(message); + } + public static int SwigDirector_SipDebugCallback_OnDebugError(SipDebugCallback self, String message) { + return self.OnDebugError(message); + } + public static int SwigDirector_SipDebugCallback_OnDebugFatal(SipDebugCallback self, String message) { + return self.OnDebugFatal(message); + } + + private final static native void swig_module_init(); + static { + swig_module_init(); + } +} diff --git a/trunk/bindings/java/tinyWRAP_wrap.cxx b/trunk/bindings/java/tinyWRAP_wrap.cxx index 189895a3..b3e26925 100644 --- a/trunk/bindings/java/tinyWRAP_wrap.cxx +++ b/trunk/bindings/java/tinyWRAP_wrap.cxx @@ -1,40 +1,40 @@ -/* ---------------------------------------------------------------------------- - * 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 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& rhs); - SwigValueWrapper(const SwigValueWrapper& 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 T SwigValueInit() { - return T(); -} -#endif - +/* ---------------------------------------------------------------------------- + * 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 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& rhs); + SwigValueWrapper(const SwigValueWrapper& 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 T SwigValueInit() { + return T(); +} +#endif + /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. @@ -143,73 +143,73 @@ template T SwigValueInit() { # 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 -#include -#include - - -/* 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 - + + +/* 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 +#include +#include + + +/* 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. @@ -401,1698 +401,1698 @@ namespace Swig { #endif /* __cplusplus */ -namespace Swig { - static jclass jclass_tinyWRAPJNI = NULL; - static jmethodID director_methids[6]; -} - -#include "SipUri.h" -#include "SipEvent.h" -#include "SipSession.h" -#include "RegistrationEvent.h" -#include "RegistrationSession.h" -#include "SubscriptionEvent.h" -#include "SubscriptionSession.h" -#include "SipCallback.h" -#include "SipDebug.h" -#include "SafeObject.h" -#include "SipStack.h" - - - -/* --------------------------------------------------- - * C++ director class methods - * --------------------------------------------------- */ - -#include "tinyWRAP_wrap.h" - -SwigDirector_SipCallback::SwigDirector_SipCallback(JNIEnv *jenv) : SipCallback(), Swig::Director(jenv) { -} - -SwigDirector_SipCallback::~SwigDirector_SipCallback() { - swig_disconnect_director_self("swigDirectorDisconnect"); -} - - -int SwigDirector_SipCallback::OnRegistrationChanged(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[0]) { - return SipCallback::OnRegistrationChanged(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[0], 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::OnSubscriptionChanged(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[1]) { - return SipCallback::OnSubscriptionChanged(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[1], 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[] = { - { - "OnRegistrationChanged", "(Lorg/doubango/tinyWRAP/RegistrationEvent;)I", NULL - }, - { - "OnSubscriptionChanged", "(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 < 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_SipDebugCallback::SwigDirector_SipDebugCallback(JNIEnv *jenv) : SipDebugCallback(), Swig::Director(jenv) { -} - -SwigDirector_SipDebugCallback::~SwigDirector_SipDebugCallback() { - swig_disconnect_director_self("swigDirectorDisconnect"); -} - - -int SwigDirector_SipDebugCallback::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 SipDebugCallback::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[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_SipDebugCallback::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 SipDebugCallback::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[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; -} - -int SwigDirector_SipDebugCallback::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 SipDebugCallback::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[4], 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_SipDebugCallback::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 SipDebugCallback::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[5], 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_SipDebugCallback::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/SipDebugCallback"); - 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(); - } - } - } -} - - - -#ifdef __cplusplus -extern "C" { -#endif - -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 jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipEvent(JNIEnv *jenv, jclass jcls) { - jlong jresult = 0 ; - SipEvent *result = 0 ; - - (void)jenv; - (void)jcls; - result = (SipEvent *)new SipEvent(); - *(SipEvent **)&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_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_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_1setPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) { - jboolean jresult = 0 ; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - unsigned int arg3 ; - 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 = (unsigned int)jarg3; - result = (bool)(arg1)->setPayload((char const *)arg2,arg3); - jresult = (jboolean)result; - if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1RegistrationEvent(JNIEnv *jenv, jclass jcls) { - jlong jresult = 0 ; - RegistrationEvent *result = 0 ; - - (void)jenv; - (void)jcls; - result = (RegistrationEvent *)new RegistrationEvent(); - *(RegistrationEvent **)&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_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(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 jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SubscriptionEvent(JNIEnv *jenv, jclass jcls) { - jlong jresult = 0 ; - SubscriptionEvent *result = 0 ; - - (void)jenv; - (void)jcls; - result = (SubscriptionEvent *)new SubscriptionEvent(); - *(SubscriptionEvent **)&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_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 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_1OnRegistrationChanged(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)->OnRegistrationChanged((RegistrationEvent const *)arg2); - jresult = (jint)result; - return jresult; -} - - -SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnRegistrationChangedSwigExplicitSipCallback(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::OnRegistrationChanged((RegistrationEvent const *)arg2); - jresult = (jint)result; - return jresult; -} - - -SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSubscriptionChanged(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)->OnSubscriptionChanged((SubscriptionEvent const *)arg2); - jresult = (jint)result; - return jresult; -} - - -SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSubscriptionChangedSwigExplicitSipCallback(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::OnSubscriptionChanged((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 = dynamic_cast(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 = dynamic_cast(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_1SipDebugCallback(JNIEnv *jenv, jclass jcls) { - jlong jresult = 0 ; - SipDebugCallback *result = 0 ; - - (void)jenv; - (void)jcls; - result = (SipDebugCallback *)new SwigDirector_SipDebugCallback(jenv); - *(SipDebugCallback **)&jresult = result; - return jresult; -} - - -SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - - (void)jenv; - (void)jcls; - arg1 = *(SipDebugCallback **)&jarg1; - delete arg1; -} - - -SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipDebugCallback_1OnDebugInfo(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { - jint jresult = 0 ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipDebugCallback **)&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_SipDebugCallback_1OnDebugInfoSwigExplicitSipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { - jint jresult = 0 ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipDebugCallback **)&jarg1; - arg2 = 0; - if (jarg2) { - arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); - if (!arg2) return 0; - } - result = (int)(arg1)->SipDebugCallback::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_SipDebugCallback_1OnDebugWarn(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { - jint jresult = 0 ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipDebugCallback **)&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_SipDebugCallback_1OnDebugWarnSwigExplicitSipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { - jint jresult = 0 ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipDebugCallback **)&jarg1; - arg2 = 0; - if (jarg2) { - arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); - if (!arg2) return 0; - } - result = (int)(arg1)->SipDebugCallback::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_SipDebugCallback_1OnDebugError(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { - jint jresult = 0 ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipDebugCallback **)&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_SipDebugCallback_1OnDebugErrorSwigExplicitSipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { - jint jresult = 0 ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipDebugCallback **)&jarg1; - arg2 = 0; - if (jarg2) { - arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); - if (!arg2) return 0; - } - result = (int)(arg1)->SipDebugCallback::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_SipDebugCallback_1OnDebugFatal(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { - jint jresult = 0 ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipDebugCallback **)&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_SipDebugCallback_1OnDebugFatalSwigExplicitSipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { - jint jresult = 0 ; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipDebugCallback **)&jarg1; - arg2 = 0; - if (jarg2) { - arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); - if (!arg2) return 0; - } - result = (int)(arg1)->SipDebugCallback::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_SipDebugCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { - SipDebugCallback *obj = *((SipDebugCallback **)&objarg); - (void)jcls; - SwigDirector_SipDebugCallback *director = dynamic_cast(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_SipDebugCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { - SipDebugCallback *obj = *((SipDebugCallback **)&objarg); - SwigDirector_SipDebugCallback *director = dynamic_cast(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)(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)(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 ; - SipDebugCallback *arg2 = (SipDebugCallback *) 0 ; - bool result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - (void)jarg2_; - arg1 = *(SipStack **)&jarg1; - arg2 = *(SipDebugCallback **)&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_1setProxyCSCF(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jstring jarg4, jstring jarg5) { - jboolean jresult = 0 ; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - unsigned int 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 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 = (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_, jlong jarg2) { - jboolean jresult = 0 ; - SipStack *arg1 = (SipStack *) 0 ; - unsigned int arg2 ; - bool result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(SipStack **)&jarg1; - arg2 = (unsigned int)jarg2; - result = (bool)(arg1)->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_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 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_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_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_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_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[6] = { - { - "SwigDirector_SipCallback_OnRegistrationChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" - }, - { - "SwigDirector_SipCallback_OnSubscriptionChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" - }, - { - "SwigDirector_SipDebugCallback_OnDebugInfo", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)I" - }, - { - "SwigDirector_SipDebugCallback_OnDebugWarn", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)I" - }, - { - "SwigDirector_SipDebugCallback_OnDebugError", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)I" - }, - { - "SwigDirector_SipDebugCallback_OnDebugFatal", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)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 - +namespace Swig { + static jclass jclass_tinyWRAPJNI = NULL; + static jmethodID director_methids[6]; +} + +#include "SipUri.h" +#include "SipEvent.h" +#include "SipSession.h" +#include "RegistrationEvent.h" +#include "RegistrationSession.h" +#include "SubscriptionEvent.h" +#include "SubscriptionSession.h" +#include "SipCallback.h" +#include "SipDebug.h" +#include "SafeObject.h" +#include "SipStack.h" + + + +/* --------------------------------------------------- + * C++ director class methods + * --------------------------------------------------- */ + +#include "java/tinyWRAP_wrap.h" + +SwigDirector_SipCallback::SwigDirector_SipCallback(JNIEnv *jenv) : SipCallback(), Swig::Director(jenv) { +} + +SwigDirector_SipCallback::~SwigDirector_SipCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_SipCallback::OnRegistrationChanged(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[0]) { + return SipCallback::OnRegistrationChanged(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[0], 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::OnSubscriptionChanged(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[1]) { + return SipCallback::OnSubscriptionChanged(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[1], 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[] = { + { + "OnRegistrationChanged", "(Lorg/doubango/tinyWRAP/RegistrationEvent;)I", NULL + }, + { + "OnSubscriptionChanged", "(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 < 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_SipDebugCallback::SwigDirector_SipDebugCallback(JNIEnv *jenv) : SipDebugCallback(), Swig::Director(jenv) { +} + +SwigDirector_SipDebugCallback::~SwigDirector_SipDebugCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_SipDebugCallback::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 SipDebugCallback::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[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_SipDebugCallback::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 SipDebugCallback::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[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; +} + +int SwigDirector_SipDebugCallback::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 SipDebugCallback::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[4], 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_SipDebugCallback::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 SipDebugCallback::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[5], 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_SipDebugCallback::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/SipDebugCallback"); + 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(); + } + } + } +} + + + +#ifdef __cplusplus +extern "C" { +#endif + +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 jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipEvent(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + SipEvent *result = 0 ; + + (void)jenv; + (void)jcls; + result = (SipEvent *)new SipEvent(); + *(SipEvent **)&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_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_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_1setPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + 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 = (unsigned int)jarg3; + result = (bool)(arg1)->setPayload((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1RegistrationEvent(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + RegistrationEvent *result = 0 ; + + (void)jenv; + (void)jcls; + result = (RegistrationEvent *)new RegistrationEvent(); + *(RegistrationEvent **)&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_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(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 jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SubscriptionEvent(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + SubscriptionEvent *result = 0 ; + + (void)jenv; + (void)jcls; + result = (SubscriptionEvent *)new SubscriptionEvent(); + *(SubscriptionEvent **)&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_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 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_1OnRegistrationChanged(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)->OnRegistrationChanged((RegistrationEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnRegistrationChangedSwigExplicitSipCallback(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::OnRegistrationChanged((RegistrationEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSubscriptionChanged(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)->OnSubscriptionChanged((SubscriptionEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSubscriptionChangedSwigExplicitSipCallback(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::OnSubscriptionChanged((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 = dynamic_cast(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 = dynamic_cast(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_1SipDebugCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + SipDebugCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (SipDebugCallback *)new SwigDirector_SipDebugCallback(jenv); + *(SipDebugCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SipDebugCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipDebugCallback_1OnDebugInfo(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipDebugCallback **)&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_SipDebugCallback_1OnDebugInfoSwigExplicitSipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->SipDebugCallback::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_SipDebugCallback_1OnDebugWarn(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipDebugCallback **)&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_SipDebugCallback_1OnDebugWarnSwigExplicitSipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->SipDebugCallback::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_SipDebugCallback_1OnDebugError(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipDebugCallback **)&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_SipDebugCallback_1OnDebugErrorSwigExplicitSipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->SipDebugCallback::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_SipDebugCallback_1OnDebugFatal(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipDebugCallback **)&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_SipDebugCallback_1OnDebugFatalSwigExplicitSipDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->SipDebugCallback::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_SipDebugCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + SipDebugCallback *obj = *((SipDebugCallback **)&objarg); + (void)jcls; + SwigDirector_SipDebugCallback *director = dynamic_cast(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_SipDebugCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + SipDebugCallback *obj = *((SipDebugCallback **)&objarg); + SwigDirector_SipDebugCallback *director = dynamic_cast(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 ; + SipDebugCallback *arg2 = (SipDebugCallback *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipStack **)&jarg1; + arg2 = *(SipDebugCallback **)&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_1setProxyCSCF(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jstring jarg4, jstring jarg5) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int 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 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 = (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_, jlong jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + unsigned int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->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_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 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_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_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_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_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[6] = { + { + "SwigDirector_SipCallback_OnRegistrationChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnSubscriptionChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipDebugCallback_OnDebugInfo", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)I" + }, + { + "SwigDirector_SipDebugCallback_OnDebugWarn", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)I" + }, + { + "SwigDirector_SipDebugCallback_OnDebugError", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)I" + }, + { + "SwigDirector_SipDebugCallback_OnDebugFatal", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)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/trunk/bindings/java/tinyWRAP_wrap.h b/trunk/bindings/java/tinyWRAP_wrap.h index 058516c0..a64c4d42 100644 --- a/trunk/bindings/java/tinyWRAP_wrap.h +++ b/trunk/bindings/java/tinyWRAP_wrap.h @@ -1,49 +1,49 @@ -/* ---------------------------------------------------------------------------- - * 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_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 OnRegistrationChanged(RegistrationEvent const *e); - virtual int OnSubscriptionChanged(SubscriptionEvent const *e); -public: - bool swig_overrides(int n) { - return (n < 2 ? swig_override[n] : false); - } -protected: - bool swig_override[2]; -}; - -class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director { - -public: - void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); - SwigDirector_SipDebugCallback(JNIEnv *jenv); - virtual ~SwigDirector_SipDebugCallback(); - 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]; -}; - - -#endif +/* ---------------------------------------------------------------------------- + * 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_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 OnRegistrationChanged(RegistrationEvent const *e); + virtual int OnSubscriptionChanged(SubscriptionEvent const *e); +public: + bool swig_overrides(int n) { + return (n < 2 ? swig_override[n] : false); + } +protected: + bool swig_override[2]; +}; + +class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_SipDebugCallback(JNIEnv *jenv); + virtual ~SwigDirector_SipDebugCallback(); + 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]; +}; + + +#endif diff --git a/trunk/bindings/java/tsip_event_type_t.java b/trunk/bindings/java/tsip_event_type_t.java index 6527ee1e..bf2e0f20 100644 --- a/trunk/bindings/java/tsip_event_type_t.java +++ b/trunk/bindings/java/tsip_event_type_t.java @@ -1,57 +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; - } -} - +/* ---------------------------------------------------------------------------- + * 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/trunk/bindings/java/tsip_register_event_type_t.java b/trunk/bindings/java/tsip_register_event_type_t.java index 8e497d94..f89e29c7 100644 --- a/trunk/bindings/java/tsip_register_event_type_t.java +++ b/trunk/bindings/java/tsip_register_event_type_t.java @@ -1,58 +1,58 @@ -/* ---------------------------------------------------------------------------- - * 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_register, - tsip_ai_register, - tsip_o_register, - tsip_ao_register, - tsip_i_unregister, - tsip_ai_unregister, - tsip_o_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; - } -} - +/* ---------------------------------------------------------------------------- + * 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_register, + tsip_ai_register, + tsip_o_register, + tsip_ao_register, + tsip_i_unregister, + tsip_ai_unregister, + tsip_o_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/trunk/bindings/java/tsip_subscribe_event_type_t.java b/trunk/bindings/java/tsip_subscribe_event_type_t.java index ae77c65f..c9f0375a 100644 --- a/trunk/bindings/java/tsip_subscribe_event_type_t.java +++ b/trunk/bindings/java/tsip_subscribe_event_type_t.java @@ -1,62 +1,62 @@ -/* ---------------------------------------------------------------------------- - * 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_ai_subscribe, - tsip_o_subscribe, - tsip_ao_subscribe, - tsip_i_unsubscribe, - tsip_ai_unsubscribe, - tsip_o_unsubscribe, - tsip_ao_unsubscribe, - tsip_i_notify, - tsip_ai_notify, - tsip_o_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; - } -} - +/* ---------------------------------------------------------------------------- + * 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_ai_subscribe, + tsip_o_subscribe, + tsip_ao_subscribe, + tsip_i_unsubscribe, + tsip_ai_unsubscribe, + tsip_o_unsubscribe, + tsip_ao_unsubscribe, + tsip_i_notify, + tsip_ai_notify, + tsip_o_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/trunk/bindings/perl/tinyWRAP.pm b/trunk/bindings/perl/tinyWRAP.pm index d1d303e9..9e4e32c3 100644 --- a/trunk/bindings/perl/tinyWRAP.pm +++ b/trunk/bindings/perl/tinyWRAP.pm @@ -1,534 +1,534 @@ -# 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 tinyWRAP; -use base qw(Exporter); -use base qw(DynaLoader); -package tinyWRAPc; -bootstrap tinyWRAP; -package tinyWRAP; -@EXPORT = qw(); - -# ---------- BASE METHODS ------------- - -package tinyWRAP; - -sub TIEHASH { - my ($classname,$obj) = @_; - return bless $obj, $classname; -} - -sub CLEAR { } - -sub FIRSTKEY { } - -sub NEXTKEY { } - -sub FETCH { - my ($self,$field) = @_; - my $member_func = "swig_${field}_get"; - $self->$member_func(); -} - -sub STORE { - my ($self,$field,$newval) = @_; - my $member_func = "swig_${field}_set"; - $self->$member_func($newval); -} - -sub this { - my $ptr = shift; - return tied(%$ptr); -} - - -# ------- FUNCTION WRAPPERS -------- - -package tinyWRAP; - - -############# Class : tinyWRAP::SipUri ############## - -package tinyWRAP::SipUri; -use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); -@ISA = qw( tinyWRAP ); -%OWNER = (); -%ITERATORS = (); -sub new { - my $pkg = shift; - my $self = tinyWRAPc::new_SipUri(@_); - bless $self, $pkg if defined($self); -} - -sub DESTROY { - return unless $_[0]->isa('HASH'); - my $self = tied(%{$_[0]}); - return unless defined $self; - delete $ITERATORS{$self}; - if (exists $OWNER{$self}) { - tinyWRAPc::delete_SipUri($self); - delete $OWNER{$self}; - } -} - -*isValid = *tinyWRAPc::SipUri_isValid; -sub DISOWN { - my $self = shift; - my $ptr = tied(%$self); - delete $OWNER{$ptr}; -} - -sub ACQUIRE { - my $self = shift; - my $ptr = tied(%$self); - $OWNER{$ptr} = 1; -} - - -############# Class : tinyWRAP::SipEvent ############## - -package tinyWRAP::SipEvent; -use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); -@ISA = qw( tinyWRAP ); -%OWNER = (); -%ITERATORS = (); -sub new { - my $pkg = shift; - my $self = tinyWRAPc::new_SipEvent(@_); - bless $self, $pkg if defined($self); -} - -sub DESTROY { - return unless $_[0]->isa('HASH'); - my $self = tied(%{$_[0]}); - return unless defined $self; - delete $ITERATORS{$self}; - if (exists $OWNER{$self}) { - tinyWRAPc::delete_SipEvent($self); - delete $OWNER{$self}; - } -} - -*getCode = *tinyWRAPc::SipEvent_getCode; -*getPhrase = *tinyWRAPc::SipEvent_getPhrase; -*getBaseSession = *tinyWRAPc::SipEvent_getBaseSession; -sub DISOWN { - my $self = shift; - my $ptr = tied(%$self); - delete $OWNER{$ptr}; -} - -sub ACQUIRE { - my $self = shift; - my $ptr = tied(%$self); - $OWNER{$ptr} = 1; -} - - -############# Class : tinyWRAP::SipSession ############## - -package tinyWRAP::SipSession; -use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); -@ISA = qw( tinyWRAP ); -%OWNER = (); -%ITERATORS = (); -sub new { - my $pkg = shift; - my $self = tinyWRAPc::new_SipSession(@_); - bless $self, $pkg if defined($self); -} - -sub DESTROY { - return unless $_[0]->isa('HASH'); - my $self = tied(%{$_[0]}); - return unless defined $self; - delete $ITERATORS{$self}; - if (exists $OWNER{$self}) { - tinyWRAPc::delete_SipSession($self); - delete $OWNER{$self}; - } -} - -*addHeader = *tinyWRAPc::SipSession_addHeader; -*removeHeader = *tinyWRAPc::SipSession_removeHeader; -*addCaps = *tinyWRAPc::SipSession_addCaps; -*removeCaps = *tinyWRAPc::SipSession_removeCaps; -*setExpires = *tinyWRAPc::SipSession_setExpires; -*setFromUri = *tinyWRAPc::SipSession_setFromUri; -*setToUri = *tinyWRAPc::SipSession_setToUri; -*setPayload = *tinyWRAPc::SipSession_setPayload; -sub DISOWN { - my $self = shift; - my $ptr = tied(%$self); - delete $OWNER{$ptr}; -} - -sub ACQUIRE { - my $self = shift; - my $ptr = tied(%$self); - $OWNER{$ptr} = 1; -} - - -############# Class : tinyWRAP::RegistrationEvent ############## - -package tinyWRAP::RegistrationEvent; -use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); -@ISA = qw( tinyWRAP::SipEvent tinyWRAP ); -%OWNER = (); -%ITERATORS = (); -sub new { - my $pkg = shift; - my $self = tinyWRAPc::new_RegistrationEvent(@_); - bless $self, $pkg if defined($self); -} - -sub DESTROY { - return unless $_[0]->isa('HASH'); - my $self = tied(%{$_[0]}); - return unless defined $self; - delete $ITERATORS{$self}; - if (exists $OWNER{$self}) { - tinyWRAPc::delete_RegistrationEvent($self); - delete $OWNER{$self}; - } -} - -*getType = *tinyWRAPc::RegistrationEvent_getType; -*getSession = *tinyWRAPc::RegistrationEvent_getSession; -sub DISOWN { - my $self = shift; - my $ptr = tied(%$self); - delete $OWNER{$ptr}; -} - -sub ACQUIRE { - my $self = shift; - my $ptr = tied(%$self); - $OWNER{$ptr} = 1; -} - - -############# Class : tinyWRAP::RegistrationSession ############## - -package tinyWRAP::RegistrationSession; -use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); -@ISA = qw( tinyWRAP::SipSession tinyWRAP ); -%OWNER = (); -%ITERATORS = (); -sub new { - my $pkg = shift; - my $self = tinyWRAPc::new_RegistrationSession(@_); - bless $self, $pkg if defined($self); -} - -sub DESTROY { - return unless $_[0]->isa('HASH'); - my $self = tied(%{$_[0]}); - return unless defined $self; - delete $ITERATORS{$self}; - if (exists $OWNER{$self}) { - tinyWRAPc::delete_RegistrationSession($self); - delete $OWNER{$self}; - } -} - -*Register = *tinyWRAPc::RegistrationSession_Register; -*UnRegister = *tinyWRAPc::RegistrationSession_UnRegister; -sub DISOWN { - my $self = shift; - my $ptr = tied(%$self); - delete $OWNER{$ptr}; -} - -sub ACQUIRE { - my $self = shift; - my $ptr = tied(%$self); - $OWNER{$ptr} = 1; -} - - -############# Class : tinyWRAP::SubscriptionEvent ############## - -package tinyWRAP::SubscriptionEvent; -use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); -@ISA = qw( tinyWRAP::SipEvent tinyWRAP ); -%OWNER = (); -%ITERATORS = (); -sub new { - my $pkg = shift; - my $self = tinyWRAPc::new_SubscriptionEvent(@_); - bless $self, $pkg if defined($self); -} - -sub DESTROY { - return unless $_[0]->isa('HASH'); - my $self = tied(%{$_[0]}); - return unless defined $self; - delete $ITERATORS{$self}; - if (exists $OWNER{$self}) { - tinyWRAPc::delete_SubscriptionEvent($self); - delete $OWNER{$self}; - } -} - -*getType = *tinyWRAPc::SubscriptionEvent_getType; -*getSession = *tinyWRAPc::SubscriptionEvent_getSession; -sub DISOWN { - my $self = shift; - my $ptr = tied(%$self); - delete $OWNER{$ptr}; -} - -sub ACQUIRE { - my $self = shift; - my $ptr = tied(%$self); - $OWNER{$ptr} = 1; -} - - -############# Class : tinyWRAP::SubscriptionSession ############## - -package tinyWRAP::SubscriptionSession; -use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); -@ISA = qw( tinyWRAP::SipSession tinyWRAP ); -%OWNER = (); -%ITERATORS = (); -sub new { - my $pkg = shift; - my $self = tinyWRAPc::new_SubscriptionSession(@_); - bless $self, $pkg if defined($self); -} - -sub DESTROY { - return unless $_[0]->isa('HASH'); - my $self = tied(%{$_[0]}); - return unless defined $self; - delete $ITERATORS{$self}; - if (exists $OWNER{$self}) { - tinyWRAPc::delete_SubscriptionSession($self); - delete $OWNER{$self}; - } -} - -*Subscribe = *tinyWRAPc::SubscriptionSession_Subscribe; -*UnSubscribe = *tinyWRAPc::SubscriptionSession_UnSubscribe; -sub DISOWN { - my $self = shift; - my $ptr = tied(%$self); - delete $OWNER{$ptr}; -} - -sub ACQUIRE { - my $self = shift; - my $ptr = tied(%$self); - $OWNER{$ptr} = 1; -} - - -############# Class : tinyWRAP::SipCallback ############## - -package tinyWRAP::SipCallback; -use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); -@ISA = qw( tinyWRAP ); -%OWNER = (); -%ITERATORS = (); -sub new { - my $pkg = shift; - my $self = tinyWRAPc::new_SipCallback(@_); - bless $self, $pkg if defined($self); -} - -sub DESTROY { - return unless $_[0]->isa('HASH'); - my $self = tied(%{$_[0]}); - return unless defined $self; - delete $ITERATORS{$self}; - if (exists $OWNER{$self}) { - tinyWRAPc::delete_SipCallback($self); - delete $OWNER{$self}; - } -} - -*OnRegistrationChanged = *tinyWRAPc::SipCallback_OnRegistrationChanged; -*OnSubscriptionChanged = *tinyWRAPc::SipCallback_OnSubscriptionChanged; -sub DISOWN { - my $self = shift; - my $ptr = tied(%$self); - delete $OWNER{$ptr}; -} - -sub ACQUIRE { - my $self = shift; - my $ptr = tied(%$self); - $OWNER{$ptr} = 1; -} - - -############# Class : tinyWRAP::SipDebugCallback ############## - -package tinyWRAP::SipDebugCallback; -use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); -@ISA = qw( tinyWRAP ); -%OWNER = (); -%ITERATORS = (); -sub new { - my $pkg = shift; - my $self = tinyWRAPc::new_SipDebugCallback(@_); - bless $self, $pkg if defined($self); -} - -sub DESTROY { - return unless $_[0]->isa('HASH'); - my $self = tied(%{$_[0]}); - return unless defined $self; - delete $ITERATORS{$self}; - if (exists $OWNER{$self}) { - tinyWRAPc::delete_SipDebugCallback($self); - delete $OWNER{$self}; - } -} - -*OnDebugInfo = *tinyWRAPc::SipDebugCallback_OnDebugInfo; -*OnDebugWarn = *tinyWRAPc::SipDebugCallback_OnDebugWarn; -*OnDebugError = *tinyWRAPc::SipDebugCallback_OnDebugError; -*OnDebugFatal = *tinyWRAPc::SipDebugCallback_OnDebugFatal; -sub DISOWN { - my $self = shift; - my $ptr = tied(%$self); - delete $OWNER{$ptr}; -} - -sub ACQUIRE { - my $self = shift; - my $ptr = tied(%$self); - $OWNER{$ptr} = 1; -} - - -############# Class : tinyWRAP::SafeObject ############## - -package tinyWRAP::SafeObject; -use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); -@ISA = qw( tinyWRAP ); -%OWNER = (); -%ITERATORS = (); -sub new { - my $pkg = shift; - my $self = tinyWRAPc::new_SafeObject(@_); - bless $self, $pkg if defined($self); -} - -sub DESTROY { - return unless $_[0]->isa('HASH'); - my $self = tied(%{$_[0]}); - return unless defined $self; - delete $ITERATORS{$self}; - if (exists $OWNER{$self}) { - tinyWRAPc::delete_SafeObject($self); - delete $OWNER{$self}; - } -} - -*Lock = *tinyWRAPc::SafeObject_Lock; -*UnLock = *tinyWRAPc::SafeObject_UnLock; -sub DISOWN { - my $self = shift; - my $ptr = tied(%$self); - delete $OWNER{$ptr}; -} - -sub ACQUIRE { - my $self = shift; - my $ptr = tied(%$self); - $OWNER{$ptr} = 1; -} - - -############# Class : tinyWRAP::SipStack ############## - -package tinyWRAP::SipStack; -use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); -@ISA = qw( tinyWRAP::SafeObject tinyWRAP ); -%OWNER = (); -%ITERATORS = (); -sub new { - my $pkg = shift; - my $self = tinyWRAPc::new_SipStack(@_); - bless $self, $pkg if defined($self); -} - -sub DESTROY { - return unless $_[0]->isa('HASH'); - my $self = tied(%{$_[0]}); - return unless defined $self; - delete $ITERATORS{$self}; - if (exists $OWNER{$self}) { - tinyWRAPc::delete_SipStack($self); - delete $OWNER{$self}; - } -} - -*start = *tinyWRAPc::SipStack_start; -*setDebugCallback = *tinyWRAPc::SipStack_setDebugCallback; -*setRealm = *tinyWRAPc::SipStack_setRealm; -*setIMPI = *tinyWRAPc::SipStack_setIMPI; -*setIMPU = *tinyWRAPc::SipStack_setIMPU; -*setPassword = *tinyWRAPc::SipStack_setPassword; -*setProxyCSCF = *tinyWRAPc::SipStack_setProxyCSCF; -*setLocalIP = *tinyWRAPc::SipStack_setLocalIP; -*setLocalPort = *tinyWRAPc::SipStack_setLocalPort; -*setEarlyIMS = *tinyWRAPc::SipStack_setEarlyIMS; -*addHeader = *tinyWRAPc::SipStack_addHeader; -*removeHeader = *tinyWRAPc::SipStack_removeHeader; -*addDnsServer = *tinyWRAPc::SipStack_addDnsServer; -*isValid = *tinyWRAPc::SipStack_isValid; -*stop = *tinyWRAPc::SipStack_stop; -sub DISOWN { - my $self = shift; - my $ptr = tied(%$self); - delete $OWNER{$ptr}; -} - -sub ACQUIRE { - my $self = shift; - my $ptr = tied(%$self); - $OWNER{$ptr} = 1; -} - - -# ------- VARIABLE STUBS -------- - -package tinyWRAP; - -*tsip_event_invite = *tinyWRAPc::tsip_event_invite; -*tsip_event_message = *tinyWRAPc::tsip_event_message; -*tsip_event_options = *tinyWRAPc::tsip_event_options; -*tsip_event_publish = *tinyWRAPc::tsip_event_publish; -*tsip_event_register = *tinyWRAPc::tsip_event_register; -*tsip_event_subscribe = *tinyWRAPc::tsip_event_subscribe; -*tsip_event_dialog = *tinyWRAPc::tsip_event_dialog; -*tsip_i_register = *tinyWRAPc::tsip_i_register; -*tsip_ai_register = *tinyWRAPc::tsip_ai_register; -*tsip_o_register = *tinyWRAPc::tsip_o_register; -*tsip_ao_register = *tinyWRAPc::tsip_ao_register; -*tsip_i_unregister = *tinyWRAPc::tsip_i_unregister; -*tsip_ai_unregister = *tinyWRAPc::tsip_ai_unregister; -*tsip_o_unregister = *tinyWRAPc::tsip_o_unregister; -*tsip_ao_unregister = *tinyWRAPc::tsip_ao_unregister; -*tsip_i_subscribe = *tinyWRAPc::tsip_i_subscribe; -*tsip_ai_subscribe = *tinyWRAPc::tsip_ai_subscribe; -*tsip_o_subscribe = *tinyWRAPc::tsip_o_subscribe; -*tsip_ao_subscribe = *tinyWRAPc::tsip_ao_subscribe; -*tsip_i_unsubscribe = *tinyWRAPc::tsip_i_unsubscribe; -*tsip_ai_unsubscribe = *tinyWRAPc::tsip_ai_unsubscribe; -*tsip_o_unsubscribe = *tinyWRAPc::tsip_o_unsubscribe; -*tsip_ao_unsubscribe = *tinyWRAPc::tsip_ao_unsubscribe; -*tsip_i_notify = *tinyWRAPc::tsip_i_notify; -*tsip_ai_notify = *tinyWRAPc::tsip_ai_notify; -*tsip_o_notify = *tinyWRAPc::tsip_o_notify; -*tsip_ao_notify = *tinyWRAPc::tsip_ao_notify; -1; +# 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 tinyWRAP; +use base qw(Exporter); +use base qw(DynaLoader); +package tinyWRAPc; +bootstrap tinyWRAP; +package tinyWRAP; +@EXPORT = qw(); + +# ---------- BASE METHODS ------------- + +package tinyWRAP; + +sub TIEHASH { + my ($classname,$obj) = @_; + return bless $obj, $classname; +} + +sub CLEAR { } + +sub FIRSTKEY { } + +sub NEXTKEY { } + +sub FETCH { + my ($self,$field) = @_; + my $member_func = "swig_${field}_get"; + $self->$member_func(); +} + +sub STORE { + my ($self,$field,$newval) = @_; + my $member_func = "swig_${field}_set"; + $self->$member_func($newval); +} + +sub this { + my $ptr = shift; + return tied(%$ptr); +} + + +# ------- FUNCTION WRAPPERS -------- + +package tinyWRAP; + + +############# Class : tinyWRAP::SipUri ############## + +package tinyWRAP::SipUri; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SipUri(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SipUri($self); + delete $OWNER{$self}; + } +} + +*isValid = *tinyWRAPc::SipUri_isValid; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SipEvent ############## + +package tinyWRAP::SipEvent; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SipEvent(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SipEvent($self); + delete $OWNER{$self}; + } +} + +*getCode = *tinyWRAPc::SipEvent_getCode; +*getPhrase = *tinyWRAPc::SipEvent_getPhrase; +*getBaseSession = *tinyWRAPc::SipEvent_getBaseSession; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SipSession ############## + +package tinyWRAP::SipSession; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SipSession(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SipSession($self); + delete $OWNER{$self}; + } +} + +*addHeader = *tinyWRAPc::SipSession_addHeader; +*removeHeader = *tinyWRAPc::SipSession_removeHeader; +*addCaps = *tinyWRAPc::SipSession_addCaps; +*removeCaps = *tinyWRAPc::SipSession_removeCaps; +*setExpires = *tinyWRAPc::SipSession_setExpires; +*setFromUri = *tinyWRAPc::SipSession_setFromUri; +*setToUri = *tinyWRAPc::SipSession_setToUri; +*setPayload = *tinyWRAPc::SipSession_setPayload; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::RegistrationEvent ############## + +package tinyWRAP::RegistrationEvent; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipEvent tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_RegistrationEvent(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_RegistrationEvent($self); + delete $OWNER{$self}; + } +} + +*getType = *tinyWRAPc::RegistrationEvent_getType; +*getSession = *tinyWRAPc::RegistrationEvent_getSession; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::RegistrationSession ############## + +package tinyWRAP::RegistrationSession; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipSession tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_RegistrationSession(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_RegistrationSession($self); + delete $OWNER{$self}; + } +} + +*Register = *tinyWRAPc::RegistrationSession_Register; +*UnRegister = *tinyWRAPc::RegistrationSession_UnRegister; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SubscriptionEvent ############## + +package tinyWRAP::SubscriptionEvent; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipEvent tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SubscriptionEvent(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SubscriptionEvent($self); + delete $OWNER{$self}; + } +} + +*getType = *tinyWRAPc::SubscriptionEvent_getType; +*getSession = *tinyWRAPc::SubscriptionEvent_getSession; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SubscriptionSession ############## + +package tinyWRAP::SubscriptionSession; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipSession tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SubscriptionSession(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SubscriptionSession($self); + delete $OWNER{$self}; + } +} + +*Subscribe = *tinyWRAPc::SubscriptionSession_Subscribe; +*UnSubscribe = *tinyWRAPc::SubscriptionSession_UnSubscribe; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SipCallback ############## + +package tinyWRAP::SipCallback; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SipCallback(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SipCallback($self); + delete $OWNER{$self}; + } +} + +*OnRegistrationChanged = *tinyWRAPc::SipCallback_OnRegistrationChanged; +*OnSubscriptionChanged = *tinyWRAPc::SipCallback_OnSubscriptionChanged; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SipDebugCallback ############## + +package tinyWRAP::SipDebugCallback; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SipDebugCallback(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SipDebugCallback($self); + delete $OWNER{$self}; + } +} + +*OnDebugInfo = *tinyWRAPc::SipDebugCallback_OnDebugInfo; +*OnDebugWarn = *tinyWRAPc::SipDebugCallback_OnDebugWarn; +*OnDebugError = *tinyWRAPc::SipDebugCallback_OnDebugError; +*OnDebugFatal = *tinyWRAPc::SipDebugCallback_OnDebugFatal; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SafeObject ############## + +package tinyWRAP::SafeObject; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SafeObject(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SafeObject($self); + delete $OWNER{$self}; + } +} + +*Lock = *tinyWRAPc::SafeObject_Lock; +*UnLock = *tinyWRAPc::SafeObject_UnLock; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SipStack ############## + +package tinyWRAP::SipStack; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SafeObject tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SipStack(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SipStack($self); + delete $OWNER{$self}; + } +} + +*start = *tinyWRAPc::SipStack_start; +*setDebugCallback = *tinyWRAPc::SipStack_setDebugCallback; +*setRealm = *tinyWRAPc::SipStack_setRealm; +*setIMPI = *tinyWRAPc::SipStack_setIMPI; +*setIMPU = *tinyWRAPc::SipStack_setIMPU; +*setPassword = *tinyWRAPc::SipStack_setPassword; +*setProxyCSCF = *tinyWRAPc::SipStack_setProxyCSCF; +*setLocalIP = *tinyWRAPc::SipStack_setLocalIP; +*setLocalPort = *tinyWRAPc::SipStack_setLocalPort; +*setEarlyIMS = *tinyWRAPc::SipStack_setEarlyIMS; +*addHeader = *tinyWRAPc::SipStack_addHeader; +*removeHeader = *tinyWRAPc::SipStack_removeHeader; +*addDnsServer = *tinyWRAPc::SipStack_addDnsServer; +*isValid = *tinyWRAPc::SipStack_isValid; +*stop = *tinyWRAPc::SipStack_stop; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +# ------- VARIABLE STUBS -------- + +package tinyWRAP; + +*tsip_event_invite = *tinyWRAPc::tsip_event_invite; +*tsip_event_message = *tinyWRAPc::tsip_event_message; +*tsip_event_options = *tinyWRAPc::tsip_event_options; +*tsip_event_publish = *tinyWRAPc::tsip_event_publish; +*tsip_event_register = *tinyWRAPc::tsip_event_register; +*tsip_event_subscribe = *tinyWRAPc::tsip_event_subscribe; +*tsip_event_dialog = *tinyWRAPc::tsip_event_dialog; +*tsip_i_register = *tinyWRAPc::tsip_i_register; +*tsip_ai_register = *tinyWRAPc::tsip_ai_register; +*tsip_o_register = *tinyWRAPc::tsip_o_register; +*tsip_ao_register = *tinyWRAPc::tsip_ao_register; +*tsip_i_unregister = *tinyWRAPc::tsip_i_unregister; +*tsip_ai_unregister = *tinyWRAPc::tsip_ai_unregister; +*tsip_o_unregister = *tinyWRAPc::tsip_o_unregister; +*tsip_ao_unregister = *tinyWRAPc::tsip_ao_unregister; +*tsip_i_subscribe = *tinyWRAPc::tsip_i_subscribe; +*tsip_ai_subscribe = *tinyWRAPc::tsip_ai_subscribe; +*tsip_o_subscribe = *tinyWRAPc::tsip_o_subscribe; +*tsip_ao_subscribe = *tinyWRAPc::tsip_ao_subscribe; +*tsip_i_unsubscribe = *tinyWRAPc::tsip_i_unsubscribe; +*tsip_ai_unsubscribe = *tinyWRAPc::tsip_ai_unsubscribe; +*tsip_o_unsubscribe = *tinyWRAPc::tsip_o_unsubscribe; +*tsip_ao_unsubscribe = *tinyWRAPc::tsip_ao_unsubscribe; +*tsip_i_notify = *tinyWRAPc::tsip_i_notify; +*tsip_ai_notify = *tinyWRAPc::tsip_ai_notify; +*tsip_o_notify = *tinyWRAPc::tsip_o_notify; +*tsip_ao_notify = *tinyWRAPc::tsip_ao_notify; +1; diff --git a/trunk/bindings/perl/tinyWRAP_wrap.cxx b/trunk/bindings/perl/tinyWRAP_wrap.cxx index ddeb893a..0540c169 100644 --- a/trunk/bindings/perl/tinyWRAP_wrap.cxx +++ b/trunk/bindings/perl/tinyWRAP_wrap.cxx @@ -1,40 +1,40 @@ -/* ---------------------------------------------------------------------------- - * 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 SWIGPERL -#define SWIG_CASTRANK_MODE - - -#ifdef __cplusplus -/* SwigValueWrapper is described in swig.swg */ -template 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& rhs); - SwigValueWrapper(const SwigValueWrapper& 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 T SwigValueInit() { - return T(); -} -#endif - +/* ---------------------------------------------------------------------------- + * 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 SWIGPERL +#define SWIG_CASTRANK_MODE + + +#ifdef __cplusplus +/* SwigValueWrapper is described in swig.swg */ +template 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& rhs); + SwigValueWrapper(const SwigValueWrapper& 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 T SwigValueInit() { + return T(); +} +#endif + /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. @@ -143,7 +143,7 @@ template T SwigValueInit() { # define _SCL_SECURE_NO_DEPRECATE #endif - + /* ----------------------------------------------------------------------------- * swigrun.swg * @@ -727,7 +727,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { #ifdef __cplusplus } #endif - + /* Errors in SWIG */ #define SWIG_UnknownError -1 #define SWIG_IOError -2 @@ -744,7 +744,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { #define SWIG_NullReferenceError -13 - + #ifdef __cplusplus /* Needed on some windows machines---since MS plays funny games with the header files under C++ */ #include @@ -847,7 +847,7 @@ extern "C" { #ifdef __cplusplus } #endif - + /* ----------------------------------------------------------------------------- * error manipulation * ----------------------------------------------------------------------------- */ @@ -897,7 +897,7 @@ SWIG_Perl_ErrorType(int code) { - + /* ----------------------------------------------------------------------------- * perlrun.swg * @@ -1384,7 +1384,7 @@ SWIG_Perl_SetModule(swig_module_info *module) { #ifdef __cplusplus } #endif - + /* Workaround perl5 global namespace pollution. Note that undefining library * functions like fopen will not solve the problem on all platforms as fopen * might be a macro on Windows but not necessarily on other operating systems. */ @@ -1484,2894 +1484,2894 @@ SWIG_Perl_SetModule(swig_module_info *module) { #ifdef bind #undef bind #endif - - - -#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else - - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_RegistrationEvent swig_types[0] -#define SWIGTYPE_p_RegistrationSession swig_types[1] -#define SWIGTYPE_p_SafeObject swig_types[2] -#define SWIGTYPE_p_SipCallback swig_types[3] -#define SWIGTYPE_p_SipDebugCallback swig_types[4] -#define SWIGTYPE_p_SipEvent swig_types[5] -#define SWIGTYPE_p_SipSession swig_types[6] -#define SWIGTYPE_p_SipStack swig_types[7] -#define SWIGTYPE_p_SipUri swig_types[8] -#define SWIGTYPE_p_SubscriptionEvent swig_types[9] -#define SWIGTYPE_p_SubscriptionSession swig_types[10] -#define SWIGTYPE_p_char swig_types[11] -#define SWIGTYPE_p_tsip_event_type_e swig_types[12] -#define SWIGTYPE_p_tsip_register_event_type_e swig_types[13] -#define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[14] -static swig_type_info *swig_types[16]; -static swig_module_info swig_module = {swig_types, 15, 0, 0, 0, 0}; -#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) -#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) - -/* -------- TYPES TABLE (END) -------- */ - -#define SWIG_init boot_tinyWRAP - -#define SWIG_name "tinyWRAPc::boot_tinyWRAP" -#define SWIG_prefix "tinyWRAPc::" - -#define SWIGVERSION 0x010339 -#define SWIG_VERSION SWIGVERSION - - -#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) -#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) - - -#include - - -#ifdef __cplusplus -extern "C" -#endif -#ifndef PERL_OBJECT -#ifndef MULTIPLICITY -SWIGEXPORT void SWIG_init (CV* cv); -#else -SWIGEXPORT void SWIG_init (pTHXo_ CV* cv); -#endif -#else -SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *); -#endif - - -#include "SipUri.h" -#include "SipEvent.h" -#include "SipSession.h" -#include "RegistrationEvent.h" -#include "RegistrationSession.h" -#include "SubscriptionEvent.h" -#include "SubscriptionSession.h" -#include "SipCallback.h" -#include "SipDebug.h" -#include "SafeObject.h" -#include "SipStack.h" - - -SWIGINTERN swig_type_info* -SWIG_pchar_descriptor(void) -{ - static int init = 0; - static swig_type_info* info = 0; - if (!init) { - info = SWIG_TypeQuery("_p_char"); - init = 1; - } - return info; -} - - -SWIGINTERN int -SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc) -{ - if (SvMAGICAL(obj)) { - SV *tmp = sv_newmortal(); - SvSetSV(tmp, obj); - obj = tmp; - } - if (SvPOK(obj)) { - STRLEN len = 0; - char *cstr = SvPV(obj, len); - size_t size = len + 1; - if (cptr) { - if (alloc) { - if (*alloc == SWIG_NEWOBJ) { - *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size))); - } else { - *cptr = cstr; - *alloc = SWIG_OLDOBJ; - } - } - } - if (psize) *psize = size; - return SWIG_OK; - } else { - swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); - if (pchar_descriptor) { - char* vptr = 0; - if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) { - if (cptr) *cptr = vptr; - if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; - if (alloc) *alloc = SWIG_OLDOBJ; - return SWIG_OK; - } - } - } - return SWIG_TypeError; -} - - - - - -SWIGINTERNINLINE SV * -SWIG_From_bool SWIG_PERL_DECL_ARGS_1(bool value) -{ - SV *obj = sv_newmortal(); - if (value) { - sv_setsv(obj, &PL_sv_yes); - } else { - sv_setsv(obj, &PL_sv_no); - } - return obj; -} - - -SWIGINTERNINLINE SV * -SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value) -{ - SV *obj = sv_newmortal(); - sv_setiv(obj, (IV) value); - return obj; -} - - -SWIGINTERNINLINE SV * -SWIG_From_short SWIG_PERL_DECL_ARGS_1(short value) -{ - return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value); -} - - -SWIGINTERNINLINE SV * -SWIG_FromCharPtrAndSize(const char* carray, size_t size) -{ - SV *obj = sv_newmortal(); - if (carray) { - sv_setpvn(obj, carray, size); - } else { - sv_setsv(obj, &PL_sv_undef); - } - return obj; -} - - -SWIGINTERNINLINE SV * -SWIG_FromCharPtr(const char *cptr) -{ - return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); -} - - -#include -#if !defined(SWIG_NO_LLONG_MAX) -# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) -# define LLONG_MAX __LONG_LONG_MAX__ -# define LLONG_MIN (-LLONG_MAX - 1LL) -# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) -# endif -#endif - - -SWIGINTERN int -SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val) -{ - if (SvNIOK(obj)) { - if (val) *val = SvNV(obj); - return SWIG_OK; - } else if (SvIOK(obj)) { - if (val) *val = (double) SvIV(obj); - return SWIG_AddCast(SWIG_OK); - } else { - const char *nptr = SvPV_nolen(obj); - if (nptr) { - char *endptr; - double v = strtod(nptr, &endptr); - if (errno == ERANGE) { - errno = 0; - return SWIG_OverflowError; - } else { - if (*endptr == '\0') { - if (val) *val = v; - return SWIG_Str2NumCast(SWIG_OK); - } - } - } - } - return SWIG_TypeError; -} - - -#include - - -#include - - -SWIGINTERNINLINE int -SWIG_CanCastAsInteger(double *d, double min, double max) { - double x = *d; - if ((min <= x && x <= max)) { - double fx = floor(x); - double cx = ceil(x); - double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ - if ((errno == EDOM) || (errno == ERANGE)) { - errno = 0; - } else { - double summ, reps, diff; - if (rd < x) { - diff = x - rd; - } else if (rd > x) { - diff = rd - x; - } else { - return 1; - } - summ = rd + x; - reps = diff/summ; - if (reps < 8*DBL_EPSILON) { - *d = rd; - return 1; - } - } - } - return 0; -} - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val) -{ - if (SvUOK(obj)) { - if (val) *val = SvUV(obj); - return SWIG_OK; - } else if (SvIOK(obj)) { - long v = SvIV(obj); - if (v >= 0) { - if (val) *val = v; - return SWIG_OK; - } else { - return SWIG_OverflowError; - } - } else { - int dispatch = 0; - const char *nptr = SvPV_nolen(obj); - if (nptr) { - char *endptr; - unsigned long v; - errno = 0; - v = strtoul(nptr, &endptr,0); - if (errno == ERANGE) { - errno = 0; - return SWIG_OverflowError; - } else { - if (*endptr == '\0') { - if (val) *val = v; - return SWIG_Str2NumCast(SWIG_OK); - } - } - } - if (!dispatch) { - double d; - int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { - if (val) *val = (unsigned long)(d); - return res; - } - } - } - return SWIG_TypeError; -} - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_int SWIG_PERL_DECL_ARGS_2(SV * obj, unsigned int *val) -{ - unsigned long v; - int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, &v); - if (SWIG_IsOK(res)) { - if ((v > UINT_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = static_cast< unsigned int >(v); - } - } - return res; -} - - -SWIGINTERNINLINE SV * -SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value) -{ - return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value); -} - - -SWIGINTERN int -SWIG_AsVal_bool SWIG_PERL_DECL_ARGS_2(SV *obj, bool* val) -{ - if (obj == &PL_sv_yes) { - if (val) *val = true; - return SWIG_OK; - } else if (obj == &PL_sv_no) { - if (val) *val = false; - return SWIG_OK; - } else { - if (val) *val = SvTRUE(obj) ? true: false; - return SWIG_AddCast(SWIG_OK); - } - return SWIG_TypeError; -} - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef PERL_OBJECT -#define MAGIC_CLASS _wrap_tinyWRAP_var:: -class _wrap_tinyWRAP_var : public CPerlObj { -public: -#else -#define MAGIC_CLASS -#endif -SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) { - MAGIC_PPERL - croak("Value is read-only."); - return 0; -} - - -#ifdef PERL_OBJECT -}; -#endif - -#ifdef __cplusplus -} -#endif - -#ifdef __cplusplus -extern "C" { -#endif -XS(_wrap_new_SipUri) { - { - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int argvi = 0; - SipUri *result = 0 ; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: new_SipUri(char const *);"); - } - res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipUri" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (SipUri *)new SipUri((char const *)arg1); - ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipUri, SWIG_OWNER | SWIG_SHADOW); argvi++ ; - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - XSRETURN(argvi); - fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - SWIG_croak_null(); - } -} - - -XS(_wrap_delete_SipUri) { - { - SipUri *arg1 = (SipUri *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: delete_SipUri(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipUri, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipUri" "', argument " "1"" of type '" "SipUri *""'"); - } - arg1 = reinterpret_cast< SipUri * >(argp1); - delete arg1; - ST(argvi) = sv_newmortal(); - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SipUri_isValid__SWIG_0) { - { - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: SipUri_isValid(char const *);"); - } - res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_isValid" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (bool)SipUri::isValid((char const *)arg1); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - XSRETURN(argvi); - fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipUri_isValid__SWIG_1) { - { - SipUri *arg1 = (SipUri *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: SipUri_isValid(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_isValid" "', argument " "1"" of type '" "SipUri *""'"); - } - arg1 = reinterpret_cast< SipUri * >(argp1); - result = (bool)(arg1)->isValid(); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SipUri_isValid) { - dXSARGS; - - { - unsigned long _index = 0; - SWIG_TypeRank _rank = 0; - if (items == 1) { - SWIG_TypeRank _ranki = 0; - SWIG_TypeRank _rankm = 0; - SWIG_TypeRank _pi = 1; - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipUri, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - _ranki += _v*_pi; - _rankm += _pi; - _pi *= SWIG_MAXCASTRANK; - if (!_index || (_ranki < _rank)) { - _rank = _ranki; _index = 1; - if (_rank == _rankm) goto dispatch; - } - } - check_1: - - if (items == 1) { - SWIG_TypeRank _ranki = 0; - SWIG_TypeRank _rankm = 0; - SWIG_TypeRank _pi = 1; - int _v = 0; - { - int res = SWIG_AsCharPtrAndSize(ST(0), 0, NULL, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - _ranki += _v*_pi; - _rankm += _pi; - _pi *= SWIG_MAXCASTRANK; - if (!_index || (_ranki < _rank)) { - _rank = _ranki; _index = 2; - if (_rank == _rankm) goto dispatch; - } - } - check_2: - - dispatch: - switch(_index) { - case 1: - ++PL_markstack_ptr; SWIG_CALLXS(_wrap_SipUri_isValid__SWIG_1); return; - case 2: - ++PL_markstack_ptr; SWIG_CALLXS(_wrap_SipUri_isValid__SWIG_0); return; - } - } - - croak("No matching function for overloaded 'SipUri_isValid'"); - XSRETURN(0); -} - - -XS(_wrap_new_SipEvent) { - { - int argvi = 0; - SipEvent *result = 0 ; - dXSARGS; - - if ((items < 0) || (items > 0)) { - SWIG_croak("Usage: new_SipEvent();"); - } - result = (SipEvent *)new SipEvent(); - ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipEvent, SWIG_OWNER | SWIG_SHADOW); argvi++ ; - XSRETURN(argvi); - fail: - SWIG_croak_null(); - } -} - - -XS(_wrap_delete_SipEvent) { - { - SipEvent *arg1 = (SipEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: delete_SipEvent(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipEvent, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipEvent" "', argument " "1"" of type '" "SipEvent *""'"); - } - arg1 = reinterpret_cast< SipEvent * >(argp1); - delete arg1; - ST(argvi) = sv_newmortal(); - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SipEvent_getCode) { - { - SipEvent *arg1 = (SipEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - short result; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: SipEvent_getCode(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getCode" "', argument " "1"" of type '" "SipEvent const *""'"); - } - arg1 = reinterpret_cast< SipEvent * >(argp1); - result = (short)((SipEvent const *)arg1)->getCode(); - ST(argvi) = SWIG_From_short SWIG_PERL_CALL_ARGS_1(static_cast< short >(result)); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SipEvent_getPhrase) { - { - SipEvent *arg1 = (SipEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - char *result = 0 ; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: SipEvent_getPhrase(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getPhrase" "', argument " "1"" of type '" "SipEvent const *""'"); - } - arg1 = reinterpret_cast< SipEvent * >(argp1); - result = (char *)((SipEvent const *)arg1)->getPhrase(); - ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SipEvent_getBaseSession) { - { - SipEvent *arg1 = (SipEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - SipSession *result = 0 ; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: SipEvent_getBaseSession(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getBaseSession" "', argument " "1"" of type '" "SipEvent const *""'"); - } - arg1 = reinterpret_cast< SipEvent * >(argp1); - result = (SipSession *)((SipEvent const *)arg1)->getBaseSession(); - ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipSession, 0 | SWIG_SHADOW); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_new_SipSession) { - { - SipStack *arg1 = (SipStack *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - SipSession *result = 0 ; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: new_SipSession(Stack);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipSession" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - result = (SipSession *)new SipSession(arg1); - ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_delete_SipSession) { - { - SipSession *arg1 = (SipSession *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: delete_SipSession(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipSession" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - delete arg1; - ST(argvi) = sv_newmortal(); - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SipSession_addHeader) { - { - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 3) || (items > 3)) { - SWIG_croak("Usage: SipSession_addHeader(self,name,value);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addHeader" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addHeader" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipSession_addHeader" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipSession_removeHeader) { - { - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipSession_removeHeader(self,name);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_removeHeader" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_removeHeader" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->removeHeader((char const *)arg2); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipSession_addCaps__SWIG_0) { - { - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 3) || (items > 3)) { - SWIG_croak("Usage: SipSession_addCaps(self,name,value);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addCaps" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addCaps" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipSession_addCaps" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (bool)(arg1)->addCaps((char const *)arg2,(char const *)arg3); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipSession_addCaps__SWIG_1) { - { - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipSession_addCaps(self,name);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addCaps" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addCaps" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->addCaps((char const *)arg2); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipSession_addCaps) { - dXSARGS; - - { - unsigned long _index = 0; - SWIG_TypeRank _rank = 0; - if (items == 2) { - SWIG_TypeRank _ranki = 0; - SWIG_TypeRank _rankm = 0; - SWIG_TypeRank _pi = 1; - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipSession, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - _ranki += _v*_pi; - _rankm += _pi; - _pi *= SWIG_MAXCASTRANK; - { - int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - _ranki += _v*_pi; - _rankm += _pi; - _pi *= SWIG_MAXCASTRANK; - if (!_index || (_ranki < _rank)) { - _rank = _ranki; _index = 1; - if (_rank == _rankm) goto dispatch; - } - } - check_1: - - if (items == 3) { - SWIG_TypeRank _ranki = 0; - SWIG_TypeRank _rankm = 0; - SWIG_TypeRank _pi = 1; - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipSession, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - _ranki += _v*_pi; - _rankm += _pi; - _pi *= SWIG_MAXCASTRANK; - { - int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - _ranki += _v*_pi; - _rankm += _pi; - _pi *= SWIG_MAXCASTRANK; - { - int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - _ranki += _v*_pi; - _rankm += _pi; - _pi *= SWIG_MAXCASTRANK; - if (!_index || (_ranki < _rank)) { - _rank = _ranki; _index = 2; - if (_rank == _rankm) goto dispatch; - } - } - check_2: - - dispatch: - switch(_index) { - case 1: - ++PL_markstack_ptr; SWIG_CALLXS(_wrap_SipSession_addCaps__SWIG_1); return; - case 2: - ++PL_markstack_ptr; SWIG_CALLXS(_wrap_SipSession_addCaps__SWIG_0); return; - } - } - - croak("No matching function for overloaded 'SipSession_addCaps'"); - XSRETURN(0); -} - - -XS(_wrap_SipSession_removeCaps) { - { - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipSession_removeCaps(self,name);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_removeCaps" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_removeCaps" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->removeCaps((char const *)arg2); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipSession_setExpires) { - { - SipSession *arg1 = (SipSession *) 0 ; - unsigned int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipSession_setExpires(self,expires);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setExpires" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipSession_setExpires" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - result = (bool)(arg1)->setExpires(arg2); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - - XSRETURN(argvi); - fail: - - - SWIG_croak_null(); - } -} - - -XS(_wrap_SipSession_setFromUri) { - { - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipSession_setFromUri(self,fromUri);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setFromUri" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setFromUri" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->setFromUri((char const *)arg2); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipSession_setToUri) { - { - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipSession_setToUri(self,toUri);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setToUri" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setToUri" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->setToUri((char const *)arg2); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipSession_setPayload) { - { - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - unsigned int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 3) || (items > 3)) { - SWIG_croak("Usage: SipSession_setPayload(self,str,len);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setPayload" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setPayload" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipSession_setPayload" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - result = (bool)(arg1)->setPayload((char const *)arg2,arg3); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - - SWIG_croak_null(); - } -} - - -XS(_wrap_new_RegistrationEvent) { - { - int argvi = 0; - RegistrationEvent *result = 0 ; - dXSARGS; - - if ((items < 0) || (items > 0)) { - SWIG_croak("Usage: new_RegistrationEvent();"); - } - result = (RegistrationEvent *)new RegistrationEvent(); - ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationEvent, SWIG_OWNER | SWIG_SHADOW); argvi++ ; - XSRETURN(argvi); - fail: - SWIG_croak_null(); - } -} - - -XS(_wrap_delete_RegistrationEvent) { - { - RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: delete_RegistrationEvent(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationEvent, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegistrationEvent" "', argument " "1"" of type '" "RegistrationEvent *""'"); - } - arg1 = reinterpret_cast< RegistrationEvent * >(argp1); - delete arg1; - ST(argvi) = sv_newmortal(); - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_RegistrationEvent_getType) { - { - RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - tsip_register_event_type_t result; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: RegistrationEvent_getType(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationEvent_getType" "', argument " "1"" of type '" "RegistrationEvent const *""'"); - } - arg1 = reinterpret_cast< RegistrationEvent * >(argp1); - result = (tsip_register_event_type_t)((RegistrationEvent const *)arg1)->getType(); - ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_RegistrationEvent_getSession) { - { - RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - RegistrationSession *result = 0 ; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: RegistrationEvent_getSession(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationEvent_getSession" "', argument " "1"" of type '" "RegistrationEvent const *""'"); - } - arg1 = reinterpret_cast< RegistrationEvent * >(argp1); - result = (RegistrationSession *)((RegistrationEvent const *)arg1)->getSession(); - ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationSession, 0 | SWIG_SHADOW); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_new_RegistrationSession) { - { - SipStack *arg1 = (SipStack *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - RegistrationSession *result = 0 ; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: new_RegistrationSession(Stack);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegistrationSession" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - result = (RegistrationSession *)new RegistrationSession(arg1); - ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_delete_RegistrationSession) { - { - RegistrationSession *arg1 = (RegistrationSession *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: delete_RegistrationSession(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationSession, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegistrationSession" "', argument " "1"" of type '" "RegistrationSession *""'"); - } - arg1 = reinterpret_cast< RegistrationSession * >(argp1); - delete arg1; - ST(argvi) = sv_newmortal(); - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_RegistrationSession_Register) { - { - RegistrationSession *arg1 = (RegistrationSession *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: RegistrationSession_Register(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_Register" "', argument " "1"" of type '" "RegistrationSession *""'"); - } - arg1 = reinterpret_cast< RegistrationSession * >(argp1); - result = (bool)(arg1)->Register(); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_RegistrationSession_UnRegister) { - { - RegistrationSession *arg1 = (RegistrationSession *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: RegistrationSession_UnRegister(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_UnRegister" "', argument " "1"" of type '" "RegistrationSession *""'"); - } - arg1 = reinterpret_cast< RegistrationSession * >(argp1); - result = (bool)(arg1)->UnRegister(); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_new_SubscriptionEvent) { - { - int argvi = 0; - SubscriptionEvent *result = 0 ; - dXSARGS; - - if ((items < 0) || (items > 0)) { - SWIG_croak("Usage: new_SubscriptionEvent();"); - } - result = (SubscriptionEvent *)new SubscriptionEvent(); - ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionEvent, SWIG_OWNER | SWIG_SHADOW); argvi++ ; - XSRETURN(argvi); - fail: - SWIG_croak_null(); - } -} - - -XS(_wrap_delete_SubscriptionEvent) { - { - SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: delete_SubscriptionEvent(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionEvent, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SubscriptionEvent" "', argument " "1"" of type '" "SubscriptionEvent *""'"); - } - arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); - delete arg1; - ST(argvi) = sv_newmortal(); - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SubscriptionEvent_getType) { - { - SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - tsip_subscribe_event_type_t result; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: SubscriptionEvent_getType(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionEvent_getType" "', argument " "1"" of type '" "SubscriptionEvent const *""'"); - } - arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); - result = (tsip_subscribe_event_type_t)((SubscriptionEvent const *)arg1)->getType(); - ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SubscriptionEvent_getSession) { - { - SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - SubscriptionSession *result = 0 ; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: SubscriptionEvent_getSession(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionEvent_getSession" "', argument " "1"" of type '" "SubscriptionEvent const *""'"); - } - arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); - result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->getSession(); - ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionSession, 0 | SWIG_SHADOW); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_new_SubscriptionSession) { - { - SipStack *arg1 = (SipStack *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - SubscriptionSession *result = 0 ; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: new_SubscriptionSession(Stack);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SubscriptionSession" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - result = (SubscriptionSession *)new SubscriptionSession(arg1); - ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_delete_SubscriptionSession) { - { - SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: delete_SubscriptionSession(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionSession, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SubscriptionSession" "', argument " "1"" of type '" "SubscriptionSession *""'"); - } - arg1 = reinterpret_cast< SubscriptionSession * >(argp1); - delete arg1; - ST(argvi) = sv_newmortal(); - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SubscriptionSession_Subscribe) { - { - SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: SubscriptionSession_Subscribe(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionSession_Subscribe" "', argument " "1"" of type '" "SubscriptionSession *""'"); - } - arg1 = reinterpret_cast< SubscriptionSession * >(argp1); - result = (bool)(arg1)->Subscribe(); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SubscriptionSession_UnSubscribe) { - { - SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: SubscriptionSession_UnSubscribe(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionSession_UnSubscribe" "', argument " "1"" of type '" "SubscriptionSession *""'"); - } - arg1 = reinterpret_cast< SubscriptionSession * >(argp1); - result = (bool)(arg1)->UnSubscribe(); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_new_SipCallback) { - { - int argvi = 0; - SipCallback *result = 0 ; - dXSARGS; - - if ((items < 0) || (items > 0)) { - SWIG_croak("Usage: new_SipCallback();"); - } - result = (SipCallback *)new SipCallback(); - ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipCallback, SWIG_OWNER | SWIG_SHADOW); argvi++ ; - XSRETURN(argvi); - fail: - SWIG_croak_null(); - } -} - - -XS(_wrap_delete_SipCallback) { - { - SipCallback *arg1 = (SipCallback *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: delete_SipCallback(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipCallback" "', argument " "1"" of type '" "SipCallback *""'"); - } - arg1 = reinterpret_cast< SipCallback * >(argp1); - delete arg1; - ST(argvi) = sv_newmortal(); - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SipCallback_OnRegistrationChanged) { - { - SipCallback *arg1 = (SipCallback *) 0 ; - RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int argvi = 0; - int result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipCallback_OnRegistrationChanged(self,e);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnRegistrationChanged" "', argument " "1"" of type '" "SipCallback *""'"); - } - arg1 = reinterpret_cast< SipCallback * >(argp1); - res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnRegistrationChanged" "', argument " "2"" of type '" "RegistrationEvent const *""'"); - } - arg2 = reinterpret_cast< RegistrationEvent * >(argp2); - result = (int)(arg1)->OnRegistrationChanged((RegistrationEvent const *)arg2); - ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; - - - XSRETURN(argvi); - fail: - - - SWIG_croak_null(); - } -} - - -XS(_wrap_SipCallback_OnSubscriptionChanged) { - { - SipCallback *arg1 = (SipCallback *) 0 ; - SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int argvi = 0; - int result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipCallback_OnSubscriptionChanged(self,e);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnSubscriptionChanged" "', argument " "1"" of type '" "SipCallback *""'"); - } - arg1 = reinterpret_cast< SipCallback * >(argp1); - res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnSubscriptionChanged" "', argument " "2"" of type '" "SubscriptionEvent const *""'"); - } - arg2 = reinterpret_cast< SubscriptionEvent * >(argp2); - result = (int)(arg1)->OnSubscriptionChanged((SubscriptionEvent const *)arg2); - ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; - - - XSRETURN(argvi); - fail: - - - SWIG_croak_null(); - } -} - - -XS(_wrap_new_SipDebugCallback) { - { - int argvi = 0; - SipDebugCallback *result = 0 ; - dXSARGS; - - if ((items < 0) || (items > 0)) { - SWIG_croak("Usage: new_SipDebugCallback();"); - } - result = (SipDebugCallback *)new SipDebugCallback(); - ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipDebugCallback, SWIG_OWNER | SWIG_SHADOW); argvi++ ; - XSRETURN(argvi); - fail: - SWIG_croak_null(); - } -} - - -XS(_wrap_delete_SipDebugCallback) { - { - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: delete_SipDebugCallback(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipDebugCallback, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipDebugCallback" "', argument " "1"" of type '" "SipDebugCallback *""'"); - } - arg1 = reinterpret_cast< SipDebugCallback * >(argp1); - delete arg1; - ST(argvi) = sv_newmortal(); - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SipDebugCallback_OnDebugInfo) { - { - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int argvi = 0; - int result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipDebugCallback_OnDebugInfo(self,message);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipDebugCallback_OnDebugInfo" "', argument " "1"" of type '" "SipDebugCallback *""'"); - } - arg1 = reinterpret_cast< SipDebugCallback * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipDebugCallback_OnDebugInfo" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->OnDebugInfo((char const *)arg2); - ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipDebugCallback_OnDebugWarn) { - { - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int argvi = 0; - int result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipDebugCallback_OnDebugWarn(self,message);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipDebugCallback_OnDebugWarn" "', argument " "1"" of type '" "SipDebugCallback *""'"); - } - arg1 = reinterpret_cast< SipDebugCallback * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipDebugCallback_OnDebugWarn" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->OnDebugWarn((char const *)arg2); - ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipDebugCallback_OnDebugError) { - { - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int argvi = 0; - int result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipDebugCallback_OnDebugError(self,message);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipDebugCallback_OnDebugError" "', argument " "1"" of type '" "SipDebugCallback *""'"); - } - arg1 = reinterpret_cast< SipDebugCallback * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipDebugCallback_OnDebugError" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->OnDebugError((char const *)arg2); - ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipDebugCallback_OnDebugFatal) { - { - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int argvi = 0; - int result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipDebugCallback_OnDebugFatal(self,message);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipDebugCallback_OnDebugFatal" "', argument " "1"" of type '" "SipDebugCallback *""'"); - } - arg1 = reinterpret_cast< SipDebugCallback * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipDebugCallback_OnDebugFatal" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->OnDebugFatal((char const *)arg2); - ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - SWIG_croak_null(); - } -} - - -XS(_wrap_new_SafeObject) { - { - int argvi = 0; - SafeObject *result = 0 ; - dXSARGS; - - if ((items < 0) || (items > 0)) { - SWIG_croak("Usage: new_SafeObject();"); - } - result = (SafeObject *)new SafeObject(); - ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeObject, SWIG_OWNER | SWIG_SHADOW); argvi++ ; - XSRETURN(argvi); - fail: - SWIG_croak_null(); - } -} - - -XS(_wrap_delete_SafeObject) { - { - SafeObject *arg1 = (SafeObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: delete_SafeObject(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SafeObject, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SafeObject" "', argument " "1"" of type '" "SafeObject *""'"); - } - arg1 = reinterpret_cast< SafeObject * >(argp1); - delete arg1; - ST(argvi) = sv_newmortal(); - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SafeObject_Lock) { - { - SafeObject *arg1 = (SafeObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - int result; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: SafeObject_Lock(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SafeObject, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeObject_Lock" "', argument " "1"" of type '" "SafeObject *""'"); - } - arg1 = reinterpret_cast< SafeObject * >(argp1); - result = (int)(arg1)->Lock(); - ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SafeObject_UnLock) { - { - SafeObject *arg1 = (SafeObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - int result; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: SafeObject_UnLock(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SafeObject, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeObject_UnLock" "', argument " "1"" of type '" "SafeObject *""'"); - } - arg1 = reinterpret_cast< SafeObject * >(argp1); - result = (int)(arg1)->UnLock(); - ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_new_SipStack) { - { - SipCallback *arg1 = (SipCallback *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int argvi = 0; - SipStack *result = 0 ; - dXSARGS; - - if ((items < 4) || (items > 4)) { - SWIG_croak("Usage: new_SipStack(callback,realm_uri,impi_uri,impu_uri);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipStack" "', argument " "1"" of type '" "SipCallback *""'"); - } - arg1 = reinterpret_cast< SipCallback * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SipStack" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SipStack" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SipStack" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (SipStack *)new SipStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); - ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipStack, SWIG_OWNER | SWIG_SHADOW); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - SWIG_croak_null(); - } -} - - -XS(_wrap_delete_SipStack) { - { - SipStack *arg1 = (SipStack *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: delete_SipStack(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipStack" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - delete arg1; - ST(argvi) = sv_newmortal(); - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SipStack_start) { - { - SipStack *arg1 = (SipStack *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: SipStack_start(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_start" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - result = (bool)(arg1)->start(); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SipStack_setDebugCallback) { - { - SipStack *arg1 = (SipStack *) 0 ; - SipDebugCallback *arg2 = (SipDebugCallback *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipStack_setDebugCallback(self,callback);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setDebugCallback" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setDebugCallback" "', argument " "2"" of type '" "SipDebugCallback *""'"); - } - arg2 = reinterpret_cast< SipDebugCallback * >(argp2); - result = (bool)(arg1)->setDebugCallback(arg2); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - - XSRETURN(argvi); - fail: - - - SWIG_croak_null(); - } -} - - -XS(_wrap_SipStack_setRealm) { - { - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipStack_setRealm(self,realm_uri);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setRealm" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setRealm" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->setRealm((char const *)arg2); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipStack_setIMPI) { - { - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipStack_setIMPI(self,impi);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIMPI" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIMPI" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->setIMPI((char const *)arg2); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipStack_setIMPU) { - { - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipStack_setIMPU(self,impu_uri);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIMPU" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIMPU" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->setIMPU((char const *)arg2); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipStack_setPassword) { - { - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipStack_setPassword(self,password);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setPassword" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setPassword" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->setPassword((char const *)arg2); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipStack_setProxyCSCF) { - { - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - unsigned int arg3 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 5) || (items > 5)) { - SWIG_croak("Usage: SipStack_setProxyCSCF(self,fqdn,port,transport,ipversion);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setProxyCSCF" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setProxyCSCF" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipStack_setProxyCSCF" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_setProxyCSCF" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "SipStack_setProxyCSCF" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (bool)(arg1)->setProxyCSCF((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipStack_setLocalIP) { - { - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipStack_setLocalIP(self,ip);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setLocalIP" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setLocalIP" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->setLocalIP((char const *)arg2); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipStack_setLocalPort) { - { - SipStack *arg1 = (SipStack *) 0 ; - unsigned int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipStack_setLocalPort(self,port);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setLocalPort" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setLocalPort" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - result = (bool)(arg1)->setLocalPort(arg2); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - - XSRETURN(argvi); - fail: - - - SWIG_croak_null(); - } -} - - -XS(_wrap_SipStack_setEarlyIMS) { - { - SipStack *arg1 = (SipStack *) 0 ; - bool arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool val2 ; - int ecode2 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipStack_setEarlyIMS(self,enabled);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setEarlyIMS" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setEarlyIMS" "', argument " "2"" of type '" "bool""'"); - } - arg2 = static_cast< bool >(val2); - result = (bool)(arg1)->setEarlyIMS(arg2); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - - XSRETURN(argvi); - fail: - - - SWIG_croak_null(); - } -} - - -XS(_wrap_SipStack_addHeader) { - { - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 3) || (items > 3)) { - SWIG_croak("Usage: SipStack_addHeader(self,name,value);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_addHeader" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_addHeader" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_addHeader" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipStack_removeHeader) { - { - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipStack_removeHeader(self,name);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_removeHeader" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_removeHeader" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->removeHeader((char const *)arg2); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipStack_addDnsServer) { - { - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 2) || (items > 2)) { - SWIG_croak("Usage: SipStack_addDnsServer(self,ip);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_addDnsServer" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_addDnsServer" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->addDnsServer((char const *)arg2); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - XSRETURN(argvi); - fail: - - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - SWIG_croak_null(); - } -} - - -XS(_wrap_SipStack_isValid) { - { - SipStack *arg1 = (SipStack *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: SipStack_isValid(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_isValid" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - result = (bool)(arg1)->isValid(); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - -XS(_wrap_SipStack_stop) { - { - SipStack *arg1 = (SipStack *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int argvi = 0; - bool result; - dXSARGS; - - if ((items < 1) || (items > 1)) { - SWIG_croak("Usage: SipStack_stop(self);"); - } - res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_stop" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - result = (bool)(arg1)->stop(); - ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; - - XSRETURN(argvi); - fail: - - SWIG_croak_null(); - } -} - - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static void *_p_RegistrationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((SipSession *) ((RegistrationSession *) x)); -} -static void *_p_SubscriptionSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((SipSession *) ((SubscriptionSession *) x)); -} -static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((SafeObject *) ((SipStack *) x)); -} -static void *_p_RegistrationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((SipEvent *) ((RegistrationEvent *) x)); -} -static void *_p_SubscriptionEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((SipEvent *) ((SubscriptionEvent *) x)); -} -static swig_type_info _swigt__p_RegistrationEvent = {"_p_RegistrationEvent", "RegistrationEvent *", 0, 0, (void*)"tinyWRAP::RegistrationEvent", 0}; -static swig_type_info _swigt__p_RegistrationSession = {"_p_RegistrationSession", "RegistrationSession *", 0, 0, (void*)"tinyWRAP::RegistrationSession", 0}; -static swig_type_info _swigt__p_SafeObject = {"_p_SafeObject", "SafeObject *", 0, 0, (void*)"tinyWRAP::SafeObject", 0}; -static swig_type_info _swigt__p_SipCallback = {"_p_SipCallback", "SipCallback *", 0, 0, (void*)"tinyWRAP::SipCallback", 0}; -static swig_type_info _swigt__p_SipDebugCallback = {"_p_SipDebugCallback", "SipDebugCallback *", 0, 0, (void*)"tinyWRAP::SipDebugCallback", 0}; -static swig_type_info _swigt__p_SipEvent = {"_p_SipEvent", "SipEvent *", 0, 0, (void*)"tinyWRAP::SipEvent", 0}; -static swig_type_info _swigt__p_SipSession = {"_p_SipSession", "SipSession *", 0, 0, (void*)"tinyWRAP::SipSession", 0}; -static swig_type_info _swigt__p_SipStack = {"_p_SipStack", "SipStack *", 0, 0, (void*)"tinyWRAP::SipStack", 0}; -static swig_type_info _swigt__p_SipUri = {"_p_SipUri", "SipUri *", 0, 0, (void*)"tinyWRAP::SipUri", 0}; -static swig_type_info _swigt__p_SubscriptionEvent = {"_p_SubscriptionEvent", "SubscriptionEvent *", 0, 0, (void*)"tinyWRAP::SubscriptionEvent", 0}; -static swig_type_info _swigt__p_SubscriptionSession = {"_p_SubscriptionSession", "SubscriptionSession *", 0, 0, (void*)"tinyWRAP::SubscriptionSession", 0}; -static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_tsip_event_type_e = {"_p_tsip_event_type_e", "enum tsip_event_type_e *|tsip_event_type_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_tsip_register_event_type_e = {"_p_tsip_register_event_type_e", "enum tsip_register_event_type_e *|tsip_register_event_type_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_tsip_subscribe_event_type_e = {"_p_tsip_subscribe_event_type_e", "enum tsip_subscribe_event_type_e *|tsip_subscribe_event_type_t *", 0, 0, (void*)0, 0}; - -static swig_type_info *swig_type_initial[] = { - &_swigt__p_RegistrationEvent, - &_swigt__p_RegistrationSession, - &_swigt__p_SafeObject, - &_swigt__p_SipCallback, - &_swigt__p_SipDebugCallback, - &_swigt__p_SipEvent, - &_swigt__p_SipSession, - &_swigt__p_SipStack, - &_swigt__p_SipUri, - &_swigt__p_SubscriptionEvent, - &_swigt__p_SubscriptionSession, - &_swigt__p_char, - &_swigt__p_tsip_event_type_e, - &_swigt__p_tsip_register_event_type_e, - &_swigt__p_tsip_subscribe_event_type_e, -}; - -static swig_cast_info _swigc__p_RegistrationEvent[] = { {&_swigt__p_RegistrationEvent, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_RegistrationSession[] = { {&_swigt__p_RegistrationSession, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SafeObject[] = { {&_swigt__p_SipStack, _p_SipStackTo_p_SafeObject, 0, 0}, {&_swigt__p_SafeObject, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SipCallback[] = { {&_swigt__p_SipCallback, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SipDebugCallback[] = { {&_swigt__p_SipDebugCallback, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_RegistrationEvent, _p_RegistrationEventTo_p_SipEvent, 0, 0}, {&_swigt__p_SubscriptionEvent, _p_SubscriptionEventTo_p_SipEvent, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SipSession[] = { {&_swigt__p_SipSession, 0, 0, 0}, {&_swigt__p_RegistrationSession, _p_RegistrationSessionTo_p_SipSession, 0, 0}, {&_swigt__p_SubscriptionSession, _p_SubscriptionSessionTo_p_SipSession, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SipStack[] = { {&_swigt__p_SipStack, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SipUri[] = { {&_swigt__p_SipUri, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SubscriptionEvent[] = { {&_swigt__p_SubscriptionEvent, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SubscriptionSession[] = { {&_swigt__p_SubscriptionSession, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_tsip_event_type_e[] = { {&_swigt__p_tsip_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_tsip_register_event_type_e[] = { {&_swigt__p_tsip_register_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_tsip_subscribe_event_type_e[] = { {&_swigt__p_tsip_subscribe_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; - -static swig_cast_info *swig_cast_initial[] = { - _swigc__p_RegistrationEvent, - _swigc__p_RegistrationSession, - _swigc__p_SafeObject, - _swigc__p_SipCallback, - _swigc__p_SipDebugCallback, - _swigc__p_SipEvent, - _swigc__p_SipSession, - _swigc__p_SipStack, - _swigc__p_SipUri, - _swigc__p_SubscriptionEvent, - _swigc__p_SubscriptionSession, - _swigc__p_char, - _swigc__p_tsip_event_type_e, - _swigc__p_tsip_register_event_type_e, - _swigc__p_tsip_subscribe_event_type_e, -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_constant_info swig_constants[] = { -{0,0,0,0,0,0} -}; -#ifdef __cplusplus -} -#endif -static swig_variable_info swig_variables[] = { -{0,0,0,0} -}; -static swig_command_info swig_commands[] = { -{"tinyWRAPc::new_SipUri", _wrap_new_SipUri}, -{"tinyWRAPc::delete_SipUri", _wrap_delete_SipUri}, -{"tinyWRAPc::SipUri_isValid", _wrap_SipUri_isValid}, -{"tinyWRAPc::new_SipEvent", _wrap_new_SipEvent}, -{"tinyWRAPc::delete_SipEvent", _wrap_delete_SipEvent}, -{"tinyWRAPc::SipEvent_getCode", _wrap_SipEvent_getCode}, -{"tinyWRAPc::SipEvent_getPhrase", _wrap_SipEvent_getPhrase}, -{"tinyWRAPc::SipEvent_getBaseSession", _wrap_SipEvent_getBaseSession}, -{"tinyWRAPc::new_SipSession", _wrap_new_SipSession}, -{"tinyWRAPc::delete_SipSession", _wrap_delete_SipSession}, -{"tinyWRAPc::SipSession_addHeader", _wrap_SipSession_addHeader}, -{"tinyWRAPc::SipSession_removeHeader", _wrap_SipSession_removeHeader}, -{"tinyWRAPc::SipSession_addCaps", _wrap_SipSession_addCaps}, -{"tinyWRAPc::SipSession_removeCaps", _wrap_SipSession_removeCaps}, -{"tinyWRAPc::SipSession_setExpires", _wrap_SipSession_setExpires}, -{"tinyWRAPc::SipSession_setFromUri", _wrap_SipSession_setFromUri}, -{"tinyWRAPc::SipSession_setToUri", _wrap_SipSession_setToUri}, -{"tinyWRAPc::SipSession_setPayload", _wrap_SipSession_setPayload}, -{"tinyWRAPc::new_RegistrationEvent", _wrap_new_RegistrationEvent}, -{"tinyWRAPc::delete_RegistrationEvent", _wrap_delete_RegistrationEvent}, -{"tinyWRAPc::RegistrationEvent_getType", _wrap_RegistrationEvent_getType}, -{"tinyWRAPc::RegistrationEvent_getSession", _wrap_RegistrationEvent_getSession}, -{"tinyWRAPc::new_RegistrationSession", _wrap_new_RegistrationSession}, -{"tinyWRAPc::delete_RegistrationSession", _wrap_delete_RegistrationSession}, -{"tinyWRAPc::RegistrationSession_Register", _wrap_RegistrationSession_Register}, -{"tinyWRAPc::RegistrationSession_UnRegister", _wrap_RegistrationSession_UnRegister}, -{"tinyWRAPc::new_SubscriptionEvent", _wrap_new_SubscriptionEvent}, -{"tinyWRAPc::delete_SubscriptionEvent", _wrap_delete_SubscriptionEvent}, -{"tinyWRAPc::SubscriptionEvent_getType", _wrap_SubscriptionEvent_getType}, -{"tinyWRAPc::SubscriptionEvent_getSession", _wrap_SubscriptionEvent_getSession}, -{"tinyWRAPc::new_SubscriptionSession", _wrap_new_SubscriptionSession}, -{"tinyWRAPc::delete_SubscriptionSession", _wrap_delete_SubscriptionSession}, -{"tinyWRAPc::SubscriptionSession_Subscribe", _wrap_SubscriptionSession_Subscribe}, -{"tinyWRAPc::SubscriptionSession_UnSubscribe", _wrap_SubscriptionSession_UnSubscribe}, -{"tinyWRAPc::new_SipCallback", _wrap_new_SipCallback}, -{"tinyWRAPc::delete_SipCallback", _wrap_delete_SipCallback}, -{"tinyWRAPc::SipCallback_OnRegistrationChanged", _wrap_SipCallback_OnRegistrationChanged}, -{"tinyWRAPc::SipCallback_OnSubscriptionChanged", _wrap_SipCallback_OnSubscriptionChanged}, -{"tinyWRAPc::new_SipDebugCallback", _wrap_new_SipDebugCallback}, -{"tinyWRAPc::delete_SipDebugCallback", _wrap_delete_SipDebugCallback}, -{"tinyWRAPc::SipDebugCallback_OnDebugInfo", _wrap_SipDebugCallback_OnDebugInfo}, -{"tinyWRAPc::SipDebugCallback_OnDebugWarn", _wrap_SipDebugCallback_OnDebugWarn}, -{"tinyWRAPc::SipDebugCallback_OnDebugError", _wrap_SipDebugCallback_OnDebugError}, -{"tinyWRAPc::SipDebugCallback_OnDebugFatal", _wrap_SipDebugCallback_OnDebugFatal}, -{"tinyWRAPc::new_SafeObject", _wrap_new_SafeObject}, -{"tinyWRAPc::delete_SafeObject", _wrap_delete_SafeObject}, -{"tinyWRAPc::SafeObject_Lock", _wrap_SafeObject_Lock}, -{"tinyWRAPc::SafeObject_UnLock", _wrap_SafeObject_UnLock}, -{"tinyWRAPc::new_SipStack", _wrap_new_SipStack}, -{"tinyWRAPc::delete_SipStack", _wrap_delete_SipStack}, -{"tinyWRAPc::SipStack_start", _wrap_SipStack_start}, -{"tinyWRAPc::SipStack_setDebugCallback", _wrap_SipStack_setDebugCallback}, -{"tinyWRAPc::SipStack_setRealm", _wrap_SipStack_setRealm}, -{"tinyWRAPc::SipStack_setIMPI", _wrap_SipStack_setIMPI}, -{"tinyWRAPc::SipStack_setIMPU", _wrap_SipStack_setIMPU}, -{"tinyWRAPc::SipStack_setPassword", _wrap_SipStack_setPassword}, -{"tinyWRAPc::SipStack_setProxyCSCF", _wrap_SipStack_setProxyCSCF}, -{"tinyWRAPc::SipStack_setLocalIP", _wrap_SipStack_setLocalIP}, -{"tinyWRAPc::SipStack_setLocalPort", _wrap_SipStack_setLocalPort}, -{"tinyWRAPc::SipStack_setEarlyIMS", _wrap_SipStack_setEarlyIMS}, -{"tinyWRAPc::SipStack_addHeader", _wrap_SipStack_addHeader}, -{"tinyWRAPc::SipStack_removeHeader", _wrap_SipStack_removeHeader}, -{"tinyWRAPc::SipStack_addDnsServer", _wrap_SipStack_addDnsServer}, -{"tinyWRAPc::SipStack_isValid", _wrap_SipStack_isValid}, -{"tinyWRAPc::SipStack_stop", _wrap_SipStack_stop}, -{0,0} -}; + + + +#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) + +#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else + + + +/* -------- TYPES TABLE (BEGIN) -------- */ + +#define SWIGTYPE_p_RegistrationEvent swig_types[0] +#define SWIGTYPE_p_RegistrationSession swig_types[1] +#define SWIGTYPE_p_SafeObject swig_types[2] +#define SWIGTYPE_p_SipCallback swig_types[3] +#define SWIGTYPE_p_SipDebugCallback swig_types[4] +#define SWIGTYPE_p_SipEvent swig_types[5] +#define SWIGTYPE_p_SipSession swig_types[6] +#define SWIGTYPE_p_SipStack swig_types[7] +#define SWIGTYPE_p_SipUri swig_types[8] +#define SWIGTYPE_p_SubscriptionEvent swig_types[9] +#define SWIGTYPE_p_SubscriptionSession swig_types[10] +#define SWIGTYPE_p_char swig_types[11] +#define SWIGTYPE_p_tsip_event_type_e swig_types[12] +#define SWIGTYPE_p_tsip_register_event_type_e swig_types[13] +#define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[14] +static swig_type_info *swig_types[16]; +static swig_module_info swig_module = {swig_types, 15, 0, 0, 0, 0}; +#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) +#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) + +/* -------- TYPES TABLE (END) -------- */ + +#define SWIG_init boot_tinyWRAP + +#define SWIG_name "tinyWRAPc::boot_tinyWRAP" +#define SWIG_prefix "tinyWRAPc::" + +#define SWIGVERSION 0x010339 +#define SWIG_VERSION SWIGVERSION + + +#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) +#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) + + +#include + + +#ifdef __cplusplus +extern "C" +#endif +#ifndef PERL_OBJECT +#ifndef MULTIPLICITY +SWIGEXPORT void SWIG_init (CV* cv); +#else +SWIGEXPORT void SWIG_init (pTHXo_ CV* cv); +#endif +#else +SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *); +#endif + + +#include "SipUri.h" +#include "SipEvent.h" +#include "SipSession.h" +#include "RegistrationEvent.h" +#include "RegistrationSession.h" +#include "SubscriptionEvent.h" +#include "SubscriptionSession.h" +#include "SipCallback.h" +#include "SipDebug.h" +#include "SafeObject.h" +#include "SipStack.h" + + +SWIGINTERN swig_type_info* +SWIG_pchar_descriptor(void) +{ + static int init = 0; + static swig_type_info* info = 0; + if (!init) { + info = SWIG_TypeQuery("_p_char"); + init = 1; + } + return info; +} + + +SWIGINTERN int +SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc) +{ + if (SvMAGICAL(obj)) { + SV *tmp = sv_newmortal(); + SvSetSV(tmp, obj); + obj = tmp; + } + if (SvPOK(obj)) { + STRLEN len = 0; + char *cstr = SvPV(obj, len); + size_t size = len + 1; + if (cptr) { + if (alloc) { + if (*alloc == SWIG_NEWOBJ) { + *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size))); + } else { + *cptr = cstr; + *alloc = SWIG_OLDOBJ; + } + } + } + if (psize) *psize = size; + return SWIG_OK; + } else { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + if (pchar_descriptor) { + char* vptr = 0; + if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) { + if (cptr) *cptr = vptr; + if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; + if (alloc) *alloc = SWIG_OLDOBJ; + return SWIG_OK; + } + } + } + return SWIG_TypeError; +} + + + + + +SWIGINTERNINLINE SV * +SWIG_From_bool SWIG_PERL_DECL_ARGS_1(bool value) +{ + SV *obj = sv_newmortal(); + if (value) { + sv_setsv(obj, &PL_sv_yes); + } else { + sv_setsv(obj, &PL_sv_no); + } + return obj; +} + + +SWIGINTERNINLINE SV * +SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value) +{ + SV *obj = sv_newmortal(); + sv_setiv(obj, (IV) value); + return obj; +} + + +SWIGINTERNINLINE SV * +SWIG_From_short SWIG_PERL_DECL_ARGS_1(short value) +{ + return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value); +} + + +SWIGINTERNINLINE SV * +SWIG_FromCharPtrAndSize(const char* carray, size_t size) +{ + SV *obj = sv_newmortal(); + if (carray) { + sv_setpvn(obj, carray, size); + } else { + sv_setsv(obj, &PL_sv_undef); + } + return obj; +} + + +SWIGINTERNINLINE SV * +SWIG_FromCharPtr(const char *cptr) +{ + return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); +} + + +#include +#if !defined(SWIG_NO_LLONG_MAX) +# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) +# define LLONG_MAX __LONG_LONG_MAX__ +# define LLONG_MIN (-LLONG_MAX - 1LL) +# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) +# endif +#endif + + +SWIGINTERN int +SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val) +{ + if (SvNIOK(obj)) { + if (val) *val = SvNV(obj); + return SWIG_OK; + } else if (SvIOK(obj)) { + if (val) *val = (double) SvIV(obj); + return SWIG_AddCast(SWIG_OK); + } else { + const char *nptr = SvPV_nolen(obj); + if (nptr) { + char *endptr; + double v = strtod(nptr, &endptr); + if (errno == ERANGE) { + errno = 0; + return SWIG_OverflowError; + } else { + if (*endptr == '\0') { + if (val) *val = v; + return SWIG_Str2NumCast(SWIG_OK); + } + } + } + } + return SWIG_TypeError; +} + + +#include + + +#include + + +SWIGINTERNINLINE int +SWIG_CanCastAsInteger(double *d, double min, double max) { + double x = *d; + if ((min <= x && x <= max)) { + double fx = floor(x); + double cx = ceil(x); + double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ + if ((errno == EDOM) || (errno == ERANGE)) { + errno = 0; + } else { + double summ, reps, diff; + if (rd < x) { + diff = x - rd; + } else if (rd > x) { + diff = rd - x; + } else { + return 1; + } + summ = rd + x; + reps = diff/summ; + if (reps < 8*DBL_EPSILON) { + *d = rd; + return 1; + } + } + } + return 0; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val) +{ + if (SvUOK(obj)) { + if (val) *val = SvUV(obj); + return SWIG_OK; + } else if (SvIOK(obj)) { + long v = SvIV(obj); + if (v >= 0) { + if (val) *val = v; + return SWIG_OK; + } else { + return SWIG_OverflowError; + } + } else { + int dispatch = 0; + const char *nptr = SvPV_nolen(obj); + if (nptr) { + char *endptr; + unsigned long v; + errno = 0; + v = strtoul(nptr, &endptr,0); + if (errno == ERANGE) { + errno = 0; + return SWIG_OverflowError; + } else { + if (*endptr == '\0') { + if (val) *val = v; + return SWIG_Str2NumCast(SWIG_OK); + } + } + } + if (!dispatch) { + double d; + int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { + if (val) *val = (unsigned long)(d); + return res; + } + } + } + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_int SWIG_PERL_DECL_ARGS_2(SV * obj, unsigned int *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, &v); + if (SWIG_IsOK(res)) { + if ((v > UINT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< unsigned int >(v); + } + } + return res; +} + + +SWIGINTERNINLINE SV * +SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value) +{ + return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value); +} + + +SWIGINTERN int +SWIG_AsVal_bool SWIG_PERL_DECL_ARGS_2(SV *obj, bool* val) +{ + if (obj == &PL_sv_yes) { + if (val) *val = true; + return SWIG_OK; + } else if (obj == &PL_sv_no) { + if (val) *val = false; + return SWIG_OK; + } else { + if (val) *val = SvTRUE(obj) ? true: false; + return SWIG_AddCast(SWIG_OK); + } + return SWIG_TypeError; +} + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef PERL_OBJECT +#define MAGIC_CLASS _wrap_tinyWRAP_var:: +class _wrap_tinyWRAP_var : public CPerlObj { +public: +#else +#define MAGIC_CLASS +#endif +SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) { + MAGIC_PPERL + croak("Value is read-only."); + return 0; +} + + +#ifdef PERL_OBJECT +}; +#endif + +#ifdef __cplusplus +} +#endif + +#ifdef __cplusplus +extern "C" { +#endif +XS(_wrap_new_SipUri) { + { + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + int argvi = 0; + SipUri *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_SipUri(char const *);"); + } + res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipUri" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + result = (SipUri *)new SipUri((char const *)arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipUri, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + XSRETURN(argvi); + fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SipUri) { + { + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SipUri(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipUri, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipUri" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipUri_isValid__SWIG_0) { + { + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipUri_isValid(char const *);"); + } + res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_isValid" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + result = (bool)SipUri::isValid((char const *)arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + XSRETURN(argvi); + fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipUri_isValid__SWIG_1) { + { + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipUri_isValid(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_isValid" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + result = (bool)(arg1)->isValid(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipUri_isValid) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + int res = SWIG_AsCharPtrAndSize(ST(0), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + ++PL_markstack_ptr; SWIG_CALLXS(_wrap_SipUri_isValid__SWIG_1); return; + case 2: + ++PL_markstack_ptr; SWIG_CALLXS(_wrap_SipUri_isValid__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'SipUri_isValid'"); + XSRETURN(0); +} + + +XS(_wrap_new_SipEvent) { + { + int argvi = 0; + SipEvent *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_SipEvent();"); + } + result = (SipEvent *)new SipEvent(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipEvent, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SipEvent) { + { + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SipEvent(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipEvent" "', argument " "1"" of type '" "SipEvent *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipEvent_getCode) { + { + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + short result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipEvent_getCode(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getCode" "', argument " "1"" of type '" "SipEvent const *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (short)((SipEvent const *)arg1)->getCode(); + ST(argvi) = SWIG_From_short SWIG_PERL_CALL_ARGS_1(static_cast< short >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipEvent_getPhrase) { + { + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipEvent_getPhrase(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getPhrase" "', argument " "1"" of type '" "SipEvent const *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (char *)((SipEvent const *)arg1)->getPhrase(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipEvent_getBaseSession) { + { + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + SipSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipEvent_getBaseSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getBaseSession" "', argument " "1"" of type '" "SipEvent const *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (SipSession *)((SipEvent const *)arg1)->getBaseSession(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipSession, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SipSession) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + SipSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_SipSession(stack);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (SipSession *)new SipSession(arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SipSession) { + { + SipSession *arg1 = (SipSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SipSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipSession" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_addHeader) { + { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SipSession_addHeader(self,name,value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addHeader" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipSession_addHeader" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_removeHeader) { + { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipSession_removeHeader(self,name);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_removeHeader" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_removeHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeHeader((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_addCaps__SWIG_0) { + { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SipSession_addCaps(self,name,value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addCaps" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addCaps" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipSession_addCaps" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addCaps((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_addCaps__SWIG_1) { + { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipSession_addCaps(self,name);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addCaps" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addCaps" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->addCaps((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_addCaps) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + ++PL_markstack_ptr; SWIG_CALLXS(_wrap_SipSession_addCaps__SWIG_1); return; + case 2: + ++PL_markstack_ptr; SWIG_CALLXS(_wrap_SipSession_addCaps__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'SipSession_addCaps'"); + XSRETURN(0); +} + + +XS(_wrap_SipSession_removeCaps) { + { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipSession_removeCaps(self,name);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_removeCaps" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_removeCaps" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeCaps((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_setExpires) { + { + SipSession *arg1 = (SipSession *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipSession_setExpires(self,expires);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setExpires" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipSession_setExpires" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setExpires(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_setFromUri) { + { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipSession_setFromUri(self,fromUri);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setFromUri" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setFromUri" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setFromUri((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_setToUri) { + { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipSession_setToUri(self,toUri);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setToUri" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setToUri" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setToUri((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_setPayload) { + { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SipSession_setPayload(self,str,len);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setPayload" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setPayload" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipSession_setPayload" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->setPayload((char const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_RegistrationEvent) { + { + int argvi = 0; + RegistrationEvent *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_RegistrationEvent();"); + } + result = (RegistrationEvent *)new RegistrationEvent(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationEvent, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_RegistrationEvent) { + { + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_RegistrationEvent(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegistrationEvent" "', argument " "1"" of type '" "RegistrationEvent *""'"); + } + arg1 = reinterpret_cast< RegistrationEvent * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_RegistrationEvent_getType) { + { + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + tsip_register_event_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: RegistrationEvent_getType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationEvent_getType" "', argument " "1"" of type '" "RegistrationEvent const *""'"); + } + arg1 = reinterpret_cast< RegistrationEvent * >(argp1); + result = (tsip_register_event_type_t)((RegistrationEvent const *)arg1)->getType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_RegistrationEvent_getSession) { + { + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + RegistrationSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: RegistrationEvent_getSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationEvent_getSession" "', argument " "1"" of type '" "RegistrationEvent const *""'"); + } + arg1 = reinterpret_cast< RegistrationEvent * >(argp1); + result = (RegistrationSession *)((RegistrationEvent const *)arg1)->getSession(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationSession, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_RegistrationSession) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + RegistrationSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_RegistrationSession(Stack);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegistrationSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (RegistrationSession *)new RegistrationSession(arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_RegistrationSession) { + { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_RegistrationSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegistrationSession" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_RegistrationSession_Register) { + { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: RegistrationSession_Register(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_Register" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + result = (bool)(arg1)->Register(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_RegistrationSession_UnRegister) { + { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: RegistrationSession_UnRegister(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_UnRegister" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + result = (bool)(arg1)->UnRegister(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SubscriptionEvent) { + { + int argvi = 0; + SubscriptionEvent *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_SubscriptionEvent();"); + } + result = (SubscriptionEvent *)new SubscriptionEvent(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionEvent, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SubscriptionEvent) { + { + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SubscriptionEvent(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SubscriptionEvent" "', argument " "1"" of type '" "SubscriptionEvent *""'"); + } + arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SubscriptionEvent_getType) { + { + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + tsip_subscribe_event_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SubscriptionEvent_getType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionEvent_getType" "', argument " "1"" of type '" "SubscriptionEvent const *""'"); + } + arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); + result = (tsip_subscribe_event_type_t)((SubscriptionEvent const *)arg1)->getType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SubscriptionEvent_getSession) { + { + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + SubscriptionSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SubscriptionEvent_getSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionEvent_getSession" "', argument " "1"" of type '" "SubscriptionEvent const *""'"); + } + arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); + result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->getSession(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionSession, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SubscriptionSession) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + SubscriptionSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_SubscriptionSession(Stack);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SubscriptionSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (SubscriptionSession *)new SubscriptionSession(arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SubscriptionSession) { + { + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SubscriptionSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SubscriptionSession" "', argument " "1"" of type '" "SubscriptionSession *""'"); + } + arg1 = reinterpret_cast< SubscriptionSession * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SubscriptionSession_Subscribe) { + { + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SubscriptionSession_Subscribe(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionSession_Subscribe" "', argument " "1"" of type '" "SubscriptionSession *""'"); + } + arg1 = reinterpret_cast< SubscriptionSession * >(argp1); + result = (bool)(arg1)->Subscribe(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SubscriptionSession_UnSubscribe) { + { + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SubscriptionSession_UnSubscribe(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionSession_UnSubscribe" "', argument " "1"" of type '" "SubscriptionSession *""'"); + } + arg1 = reinterpret_cast< SubscriptionSession * >(argp1); + result = (bool)(arg1)->UnSubscribe(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SipCallback) { + { + int argvi = 0; + SipCallback *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_SipCallback();"); + } + result = (SipCallback *)new SipCallback(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipCallback, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SipCallback) { + { + SipCallback *arg1 = (SipCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SipCallback(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipCallback" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipCallback_OnRegistrationChanged) { + { + SipCallback *arg1 = (SipCallback *) 0 ; + RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipCallback_OnRegistrationChanged(self,e);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnRegistrationChanged" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnRegistrationChanged" "', argument " "2"" of type '" "RegistrationEvent const *""'"); + } + arg2 = reinterpret_cast< RegistrationEvent * >(argp2); + result = (int)(arg1)->OnRegistrationChanged((RegistrationEvent const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipCallback_OnSubscriptionChanged) { + { + SipCallback *arg1 = (SipCallback *) 0 ; + SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipCallback_OnSubscriptionChanged(self,e);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnSubscriptionChanged" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnSubscriptionChanged" "', argument " "2"" of type '" "SubscriptionEvent const *""'"); + } + arg2 = reinterpret_cast< SubscriptionEvent * >(argp2); + result = (int)(arg1)->OnSubscriptionChanged((SubscriptionEvent const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SipDebugCallback) { + { + int argvi = 0; + SipDebugCallback *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_SipDebugCallback();"); + } + result = (SipDebugCallback *)new SipDebugCallback(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipDebugCallback, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SipDebugCallback) { + { + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SipDebugCallback(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipDebugCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipDebugCallback" "', argument " "1"" of type '" "SipDebugCallback *""'"); + } + arg1 = reinterpret_cast< SipDebugCallback * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipDebugCallback_OnDebugInfo) { + { + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipDebugCallback_OnDebugInfo(self,message);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipDebugCallback_OnDebugInfo" "', argument " "1"" of type '" "SipDebugCallback *""'"); + } + arg1 = reinterpret_cast< SipDebugCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipDebugCallback_OnDebugInfo" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (int)(arg1)->OnDebugInfo((char const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipDebugCallback_OnDebugWarn) { + { + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipDebugCallback_OnDebugWarn(self,message);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipDebugCallback_OnDebugWarn" "', argument " "1"" of type '" "SipDebugCallback *""'"); + } + arg1 = reinterpret_cast< SipDebugCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipDebugCallback_OnDebugWarn" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (int)(arg1)->OnDebugWarn((char const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipDebugCallback_OnDebugError) { + { + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipDebugCallback_OnDebugError(self,message);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipDebugCallback_OnDebugError" "', argument " "1"" of type '" "SipDebugCallback *""'"); + } + arg1 = reinterpret_cast< SipDebugCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipDebugCallback_OnDebugError" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (int)(arg1)->OnDebugError((char const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipDebugCallback_OnDebugFatal) { + { + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipDebugCallback_OnDebugFatal(self,message);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipDebugCallback_OnDebugFatal" "', argument " "1"" of type '" "SipDebugCallback *""'"); + } + arg1 = reinterpret_cast< SipDebugCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipDebugCallback_OnDebugFatal" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (int)(arg1)->OnDebugFatal((char const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SafeObject) { + { + int argvi = 0; + SafeObject *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_SafeObject();"); + } + result = (SafeObject *)new SafeObject(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeObject, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SafeObject) { + { + SafeObject *arg1 = (SafeObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SafeObject(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SafeObject, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SafeObject" "', argument " "1"" of type '" "SafeObject *""'"); + } + arg1 = reinterpret_cast< SafeObject * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SafeObject_Lock) { + { + SafeObject *arg1 = (SafeObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SafeObject_Lock(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SafeObject, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeObject_Lock" "', argument " "1"" of type '" "SafeObject const *""'"); + } + arg1 = reinterpret_cast< SafeObject * >(argp1); + result = (int)((SafeObject const *)arg1)->Lock(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SafeObject_UnLock) { + { + SafeObject *arg1 = (SafeObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SafeObject_UnLock(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SafeObject, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeObject_UnLock" "', argument " "1"" of type '" "SafeObject const *""'"); + } + arg1 = reinterpret_cast< SafeObject * >(argp1); + result = (int)((SafeObject const *)arg1)->UnLock(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SipStack) { + { + SipCallback *arg1 = (SipCallback *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int argvi = 0; + SipStack *result = 0 ; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: new_SipStack(callback,realm_uri,impi_uri,impu_uri);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipStack" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SipStack" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SipStack" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SipStack" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (SipStack *)new SipStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipStack, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SipStack) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SipStack(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipStack" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_start) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipStack_start(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_start" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (bool)(arg1)->start(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setDebugCallback) { + { + SipStack *arg1 = (SipStack *) 0 ; + SipDebugCallback *arg2 = (SipDebugCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setDebugCallback(self,callback);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setDebugCallback" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setDebugCallback" "', argument " "2"" of type '" "SipDebugCallback *""'"); + } + arg2 = reinterpret_cast< SipDebugCallback * >(argp2); + result = (bool)(arg1)->setDebugCallback(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setRealm) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setRealm(self,realm_uri);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setRealm" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setRealm" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setRealm((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setIMPI) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setIMPI(self,impi);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIMPI" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIMPI" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setIMPI((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setIMPU) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setIMPU(self,impu_uri);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIMPU" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIMPU" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setIMPU((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setPassword) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setPassword(self,password);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setPassword" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setPassword" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setPassword((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setProxyCSCF) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int res5 ; + char *buf5 = 0 ; + int alloc5 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 5) || (items > 5)) { + SWIG_croak("Usage: SipStack_setProxyCSCF(self,fqdn,port,transport,ipversion);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setProxyCSCF" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setProxyCSCF" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipStack_setProxyCSCF" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_setProxyCSCF" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "SipStack_setProxyCSCF" "', argument " "5"" of type '" "char const *""'"); + } + arg5 = reinterpret_cast< char * >(buf5); + result = (bool)(arg1)->setProxyCSCF((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setLocalIP) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setLocalIP(self,ip);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setLocalIP" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setLocalIP" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setLocalIP((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setLocalPort) { + { + SipStack *arg1 = (SipStack *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setLocalPort(self,port);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setLocalPort" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setLocalPort" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setLocalPort(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setEarlyIMS) { + { + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setEarlyIMS(self,enabled);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setEarlyIMS" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setEarlyIMS" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setEarlyIMS(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_addHeader) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SipStack_addHeader(self,name,value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_addHeader" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_addHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_addHeader" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_removeHeader) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_removeHeader(self,name);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_removeHeader" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_removeHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeHeader((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_addDnsServer) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_addDnsServer(self,ip);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_addDnsServer" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_addDnsServer" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->addDnsServer((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_isValid) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipStack_isValid(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_isValid" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (bool)(arg1)->isValid(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_stop) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipStack_stop(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_stop" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (bool)(arg1)->stop(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ + +static void *_p_RegistrationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((RegistrationSession *) x)); +} +static void *_p_SubscriptionSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((SubscriptionSession *) x)); +} +static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SafeObject *) ((SipStack *) x)); +} +static void *_p_RegistrationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((RegistrationEvent *) x)); +} +static void *_p_SubscriptionEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((SubscriptionEvent *) x)); +} +static swig_type_info _swigt__p_RegistrationEvent = {"_p_RegistrationEvent", "RegistrationEvent *", 0, 0, (void*)"tinyWRAP::RegistrationEvent", 0}; +static swig_type_info _swigt__p_RegistrationSession = {"_p_RegistrationSession", "RegistrationSession *", 0, 0, (void*)"tinyWRAP::RegistrationSession", 0}; +static swig_type_info _swigt__p_SafeObject = {"_p_SafeObject", "SafeObject *", 0, 0, (void*)"tinyWRAP::SafeObject", 0}; +static swig_type_info _swigt__p_SipCallback = {"_p_SipCallback", "SipCallback *", 0, 0, (void*)"tinyWRAP::SipCallback", 0}; +static swig_type_info _swigt__p_SipDebugCallback = {"_p_SipDebugCallback", "SipDebugCallback *", 0, 0, (void*)"tinyWRAP::SipDebugCallback", 0}; +static swig_type_info _swigt__p_SipEvent = {"_p_SipEvent", "SipEvent *", 0, 0, (void*)"tinyWRAP::SipEvent", 0}; +static swig_type_info _swigt__p_SipSession = {"_p_SipSession", "SipSession *", 0, 0, (void*)"tinyWRAP::SipSession", 0}; +static swig_type_info _swigt__p_SipStack = {"_p_SipStack", "SipStack *", 0, 0, (void*)"tinyWRAP::SipStack", 0}; +static swig_type_info _swigt__p_SipUri = {"_p_SipUri", "SipUri *", 0, 0, (void*)"tinyWRAP::SipUri", 0}; +static swig_type_info _swigt__p_SubscriptionEvent = {"_p_SubscriptionEvent", "SubscriptionEvent *", 0, 0, (void*)"tinyWRAP::SubscriptionEvent", 0}; +static swig_type_info _swigt__p_SubscriptionSession = {"_p_SubscriptionSession", "SubscriptionSession *", 0, 0, (void*)"tinyWRAP::SubscriptionSession", 0}; +static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_event_type_e = {"_p_tsip_event_type_e", "enum tsip_event_type_e *|tsip_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_register_event_type_e = {"_p_tsip_register_event_type_e", "enum tsip_register_event_type_e *|tsip_register_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_subscribe_event_type_e = {"_p_tsip_subscribe_event_type_e", "enum tsip_subscribe_event_type_e *|tsip_subscribe_event_type_t *", 0, 0, (void*)0, 0}; + +static swig_type_info *swig_type_initial[] = { + &_swigt__p_RegistrationEvent, + &_swigt__p_RegistrationSession, + &_swigt__p_SafeObject, + &_swigt__p_SipCallback, + &_swigt__p_SipDebugCallback, + &_swigt__p_SipEvent, + &_swigt__p_SipSession, + &_swigt__p_SipStack, + &_swigt__p_SipUri, + &_swigt__p_SubscriptionEvent, + &_swigt__p_SubscriptionSession, + &_swigt__p_char, + &_swigt__p_tsip_event_type_e, + &_swigt__p_tsip_register_event_type_e, + &_swigt__p_tsip_subscribe_event_type_e, +}; + +static swig_cast_info _swigc__p_RegistrationEvent[] = { {&_swigt__p_RegistrationEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_RegistrationSession[] = { {&_swigt__p_RegistrationSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SafeObject[] = { {&_swigt__p_SipStack, _p_SipStackTo_p_SafeObject, 0, 0}, {&_swigt__p_SafeObject, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipCallback[] = { {&_swigt__p_SipCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipDebugCallback[] = { {&_swigt__p_SipDebugCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_RegistrationEvent, _p_RegistrationEventTo_p_SipEvent, 0, 0}, {&_swigt__p_SubscriptionEvent, _p_SubscriptionEventTo_p_SipEvent, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipSession[] = { {&_swigt__p_SipSession, 0, 0, 0}, {&_swigt__p_RegistrationSession, _p_RegistrationSessionTo_p_SipSession, 0, 0}, {&_swigt__p_SubscriptionSession, _p_SubscriptionSessionTo_p_SipSession, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipStack[] = { {&_swigt__p_SipStack, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipUri[] = { {&_swigt__p_SipUri, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SubscriptionEvent[] = { {&_swigt__p_SubscriptionEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SubscriptionSession[] = { {&_swigt__p_SubscriptionSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_event_type_e[] = { {&_swigt__p_tsip_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_register_event_type_e[] = { {&_swigt__p_tsip_register_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_subscribe_event_type_e[] = { {&_swigt__p_tsip_subscribe_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; + +static swig_cast_info *swig_cast_initial[] = { + _swigc__p_RegistrationEvent, + _swigc__p_RegistrationSession, + _swigc__p_SafeObject, + _swigc__p_SipCallback, + _swigc__p_SipDebugCallback, + _swigc__p_SipEvent, + _swigc__p_SipSession, + _swigc__p_SipStack, + _swigc__p_SipUri, + _swigc__p_SubscriptionEvent, + _swigc__p_SubscriptionSession, + _swigc__p_char, + _swigc__p_tsip_event_type_e, + _swigc__p_tsip_register_event_type_e, + _swigc__p_tsip_subscribe_event_type_e, +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ + +static swig_constant_info swig_constants[] = { +{0,0,0,0,0,0} +}; +#ifdef __cplusplus +} +#endif +static swig_variable_info swig_variables[] = { +{0,0,0,0} +}; +static swig_command_info swig_commands[] = { +{"tinyWRAPc::new_SipUri", _wrap_new_SipUri}, +{"tinyWRAPc::delete_SipUri", _wrap_delete_SipUri}, +{"tinyWRAPc::SipUri_isValid", _wrap_SipUri_isValid}, +{"tinyWRAPc::new_SipEvent", _wrap_new_SipEvent}, +{"tinyWRAPc::delete_SipEvent", _wrap_delete_SipEvent}, +{"tinyWRAPc::SipEvent_getCode", _wrap_SipEvent_getCode}, +{"tinyWRAPc::SipEvent_getPhrase", _wrap_SipEvent_getPhrase}, +{"tinyWRAPc::SipEvent_getBaseSession", _wrap_SipEvent_getBaseSession}, +{"tinyWRAPc::new_SipSession", _wrap_new_SipSession}, +{"tinyWRAPc::delete_SipSession", _wrap_delete_SipSession}, +{"tinyWRAPc::SipSession_addHeader", _wrap_SipSession_addHeader}, +{"tinyWRAPc::SipSession_removeHeader", _wrap_SipSession_removeHeader}, +{"tinyWRAPc::SipSession_addCaps", _wrap_SipSession_addCaps}, +{"tinyWRAPc::SipSession_removeCaps", _wrap_SipSession_removeCaps}, +{"tinyWRAPc::SipSession_setExpires", _wrap_SipSession_setExpires}, +{"tinyWRAPc::SipSession_setFromUri", _wrap_SipSession_setFromUri}, +{"tinyWRAPc::SipSession_setToUri", _wrap_SipSession_setToUri}, +{"tinyWRAPc::SipSession_setPayload", _wrap_SipSession_setPayload}, +{"tinyWRAPc::new_RegistrationEvent", _wrap_new_RegistrationEvent}, +{"tinyWRAPc::delete_RegistrationEvent", _wrap_delete_RegistrationEvent}, +{"tinyWRAPc::RegistrationEvent_getType", _wrap_RegistrationEvent_getType}, +{"tinyWRAPc::RegistrationEvent_getSession", _wrap_RegistrationEvent_getSession}, +{"tinyWRAPc::new_RegistrationSession", _wrap_new_RegistrationSession}, +{"tinyWRAPc::delete_RegistrationSession", _wrap_delete_RegistrationSession}, +{"tinyWRAPc::RegistrationSession_Register", _wrap_RegistrationSession_Register}, +{"tinyWRAPc::RegistrationSession_UnRegister", _wrap_RegistrationSession_UnRegister}, +{"tinyWRAPc::new_SubscriptionEvent", _wrap_new_SubscriptionEvent}, +{"tinyWRAPc::delete_SubscriptionEvent", _wrap_delete_SubscriptionEvent}, +{"tinyWRAPc::SubscriptionEvent_getType", _wrap_SubscriptionEvent_getType}, +{"tinyWRAPc::SubscriptionEvent_getSession", _wrap_SubscriptionEvent_getSession}, +{"tinyWRAPc::new_SubscriptionSession", _wrap_new_SubscriptionSession}, +{"tinyWRAPc::delete_SubscriptionSession", _wrap_delete_SubscriptionSession}, +{"tinyWRAPc::SubscriptionSession_Subscribe", _wrap_SubscriptionSession_Subscribe}, +{"tinyWRAPc::SubscriptionSession_UnSubscribe", _wrap_SubscriptionSession_UnSubscribe}, +{"tinyWRAPc::new_SipCallback", _wrap_new_SipCallback}, +{"tinyWRAPc::delete_SipCallback", _wrap_delete_SipCallback}, +{"tinyWRAPc::SipCallback_OnRegistrationChanged", _wrap_SipCallback_OnRegistrationChanged}, +{"tinyWRAPc::SipCallback_OnSubscriptionChanged", _wrap_SipCallback_OnSubscriptionChanged}, +{"tinyWRAPc::new_SipDebugCallback", _wrap_new_SipDebugCallback}, +{"tinyWRAPc::delete_SipDebugCallback", _wrap_delete_SipDebugCallback}, +{"tinyWRAPc::SipDebugCallback_OnDebugInfo", _wrap_SipDebugCallback_OnDebugInfo}, +{"tinyWRAPc::SipDebugCallback_OnDebugWarn", _wrap_SipDebugCallback_OnDebugWarn}, +{"tinyWRAPc::SipDebugCallback_OnDebugError", _wrap_SipDebugCallback_OnDebugError}, +{"tinyWRAPc::SipDebugCallback_OnDebugFatal", _wrap_SipDebugCallback_OnDebugFatal}, +{"tinyWRAPc::new_SafeObject", _wrap_new_SafeObject}, +{"tinyWRAPc::delete_SafeObject", _wrap_delete_SafeObject}, +{"tinyWRAPc::SafeObject_Lock", _wrap_SafeObject_Lock}, +{"tinyWRAPc::SafeObject_UnLock", _wrap_SafeObject_UnLock}, +{"tinyWRAPc::new_SipStack", _wrap_new_SipStack}, +{"tinyWRAPc::delete_SipStack", _wrap_delete_SipStack}, +{"tinyWRAPc::SipStack_start", _wrap_SipStack_start}, +{"tinyWRAPc::SipStack_setDebugCallback", _wrap_SipStack_setDebugCallback}, +{"tinyWRAPc::SipStack_setRealm", _wrap_SipStack_setRealm}, +{"tinyWRAPc::SipStack_setIMPI", _wrap_SipStack_setIMPI}, +{"tinyWRAPc::SipStack_setIMPU", _wrap_SipStack_setIMPU}, +{"tinyWRAPc::SipStack_setPassword", _wrap_SipStack_setPassword}, +{"tinyWRAPc::SipStack_setProxyCSCF", _wrap_SipStack_setProxyCSCF}, +{"tinyWRAPc::SipStack_setLocalIP", _wrap_SipStack_setLocalIP}, +{"tinyWRAPc::SipStack_setLocalPort", _wrap_SipStack_setLocalPort}, +{"tinyWRAPc::SipStack_setEarlyIMS", _wrap_SipStack_setEarlyIMS}, +{"tinyWRAPc::SipStack_addHeader", _wrap_SipStack_addHeader}, +{"tinyWRAPc::SipStack_removeHeader", _wrap_SipStack_removeHeader}, +{"tinyWRAPc::SipStack_addDnsServer", _wrap_SipStack_addDnsServer}, +{"tinyWRAPc::SipStack_isValid", _wrap_SipStack_isValid}, +{"tinyWRAPc::SipStack_stop", _wrap_SipStack_stop}, +{0,0} +}; /* ----------------------------------------------------------------------------- * Type initialization: * This problem is tough by the requirement that no dynamic @@ -4412,124 +4412,124 @@ static swig_command_info swig_commands[] = { * swig_cast_info to the linked list (because the cast->type) pointer will * be correct. * ----------------------------------------------------------------------------- */ - + #ifdef __cplusplus -extern "C" { +extern "C" { #if 0 } /* c-mode */ #endif #endif - + #if 0 #define SWIGRUNTIME_DEBUG #endif - - + + SWIGRUNTIME void -SWIG_InitializeModule(void *clientdata) { +SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; int found, init; - + clientdata = clientdata; - + /* check to see if the circular list has been setup, if not, set it up */ - if (swig_module.next==0) { + if (swig_module.next==0) { /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; swig_module.next = &swig_module; init = 1; - } else { + } else { init = 0; } - + /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); - if (!module_head) { + if (!module_head) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); module_head = &swig_module; - } else { + } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ found=0; iter=module_head; - do { - if (iter==&swig_module) { + do { + if (iter==&swig_module) { found=1; break; } iter=iter->next; } while (iter!= module_head); - + /* if the is found in the list, then all is done and we may leave */ if (found) return; /* otherwise we must add out module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } - + /* When multiple interpeters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ if (init == 0) return; - + /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); #endif - for (i = 0; i < swig_module.size; ++i) { + for (i = 0; i < swig_module.size; ++i) { swig_type_info *type = 0; swig_type_info *ret; swig_cast_info *cast; - + #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); #endif - + /* if there is another module already loaded */ - if (swig_module.next != &swig_module) { + if (swig_module.next != &swig_module) { type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); } - if (type) { + if (type) { /* Overwrite clientdata field */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found type %s\n", type->name); #endif - if (swig_module.type_initial[i]->clientdata) { + if (swig_module.type_initial[i]->clientdata) { type->clientdata = swig_module.type_initial[i]->clientdata; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); #endif } - } else { + } else { type = swig_module.type_initial[i]; } - + /* Insert casting types */ cast = swig_module.cast_initial[i]; - while (cast->type) { + while (cast->type) { /* Don't need to add information already in the list */ ret = 0; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); #endif - if (swig_module.next != &swig_module) { + if (swig_module.next != &swig_module) { ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); #ifdef SWIGRUNTIME_DEBUG if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); #endif } - if (ret) { - if (type == swig_module.type_initial[i]) { + if (ret) { + if (type == swig_module.type_initial[i]) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: skip old type %s\n", ret->name); #endif cast->type = ret; ret = 0; - } else { + } else { /* Check for casting already in the list */ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); #ifdef SWIGRUNTIME_DEBUG @@ -4538,12 +4538,12 @@ SWIG_InitializeModule(void *clientdata) { if (!ocast) ret = 0; } } - - if (!ret) { + + if (!ret) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); #endif - if (type->cast) { + if (type->cast) { type->cast->prev = cast; cast->next = type->cast; } @@ -4555,14 +4555,14 @@ SWIG_InitializeModule(void *clientdata) { swig_module.types[i] = type; } swig_module.types[i] = 0; - + #ifdef SWIGRUNTIME_DEBUG printf("**** SWIG_InitializeModule: Cast List ******\n"); - for (i = 0; i < swig_module.size; ++i) { + for (i = 0; i < swig_module.size; ++i) { int j = 0; swig_cast_info *cast = swig_module.cast_initial[i]; printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); - while (cast->type) { + while (cast->type) { printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); cast++; ++j; @@ -4572,26 +4572,26 @@ SWIG_InitializeModule(void *clientdata) { printf("**** SWIG_InitializeModule: Cast List ******\n"); #endif } - + /* This function will propagate the clientdata field of type to * any new swig_type_info structures that have been added into the list * of equivalent types. It is like calling * SWIG_TypeClientData(type, clientdata) a second time. */ SWIGRUNTIME void -SWIG_PropagateClientData(void) { +SWIG_PropagateClientData(void) { size_t i; swig_cast_info *equiv; static int init_run = 0; - + if (init_run) return; init_run = 1; - - for (i = 0; i < swig_module.size; i++) { - if (swig_module.types[i]->clientdata) { + + for (i = 0; i < swig_module.size; i++) { + if (swig_module.types[i]->clientdata) { equiv = swig_module.types[i]->cast; - while (equiv) { - if (!equiv->converter) { + while (equiv) { + if (!equiv->converter) { if (equiv->type && !equiv->type->clientdata) SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); } @@ -4600,217 +4600,217 @@ SWIG_PropagateClientData(void) { } } } - + #ifdef __cplusplus #if 0 -{ +{ /* c-mode */ #endif } #endif - - - -#ifdef __cplusplus -extern "C" -#endif - -XS(SWIG_init) { - dXSARGS; - int i; - - SWIG_InitializeModule(0); - - /* Install commands */ - for (i = 0; swig_commands[i].name; i++) { - newXS((char*) swig_commands[i].name,swig_commands[i].wrapper, (char*)__FILE__); - } - - /* Install variables */ - for (i = 0; swig_variables[i].name; i++) { - SV *sv; - sv = get_sv((char*) swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI); - if (swig_variables[i].type) { - SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0); - } else { - sv_setiv(sv,(IV) 0); - } - swig_create_magic(sv, (char *) swig_variables[i].name, swig_variables[i].set, swig_variables[i].get); - } - - /* Install constant */ - for (i = 0; swig_constants[i].type; i++) { - SV *sv; - sv = get_sv((char*)swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI); - switch(swig_constants[i].type) { - case SWIG_INT: - sv_setiv(sv, (IV) swig_constants[i].lvalue); - break; - case SWIG_FLOAT: - sv_setnv(sv, (double) swig_constants[i].dvalue); - break; - case SWIG_STRING: - sv_setpv(sv, (char *) swig_constants[i].pvalue); - break; - case SWIG_POINTER: - SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0); - break; - case SWIG_BINARY: - SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype)); - break; - default: - break; - } - SvREADONLY_on(sv); - } - - SWIG_TypeClientData(SWIGTYPE_p_SipUri, (void*) "tinyWRAP::SipUri"); - SWIG_TypeClientData(SWIGTYPE_p_SipEvent, (void*) "tinyWRAP::SipEvent"); - SWIG_TypeClientData(SWIGTYPE_p_SipSession, (void*) "tinyWRAP::SipSession"); - SWIG_TypeClientData(SWIGTYPE_p_RegistrationEvent, (void*) "tinyWRAP::RegistrationEvent"); - SWIG_TypeClientData(SWIGTYPE_p_RegistrationSession, (void*) "tinyWRAP::RegistrationSession"); - SWIG_TypeClientData(SWIGTYPE_p_SubscriptionEvent, (void*) "tinyWRAP::SubscriptionEvent"); - SWIG_TypeClientData(SWIGTYPE_p_SubscriptionSession, (void*) "tinyWRAP::SubscriptionSession"); - SWIG_TypeClientData(SWIGTYPE_p_SipCallback, (void*) "tinyWRAP::SipCallback"); - SWIG_TypeClientData(SWIGTYPE_p_SipDebugCallback, (void*) "tinyWRAP::SipDebugCallback"); - SWIG_TypeClientData(SWIGTYPE_p_SafeObject, (void*) "tinyWRAP::SafeObject"); - SWIG_TypeClientData(SWIGTYPE_p_SipStack, (void*) "tinyWRAP::SipStack"); - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_event_invite", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_invite))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_event_message", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_message))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_event_options", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_options))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_event_publish", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_publish))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_event_register", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_register))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_event_subscribe", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_subscribe))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_event_dialog", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_dialog))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_i_register", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_register))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_register", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_register))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_o_register", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_register))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_register", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_register))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_i_unregister", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_unregister))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_unregister", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_unregister))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_o_unregister", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_unregister))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_unregister", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_unregister))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_i_subscribe", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_subscribe))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_subscribe", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_subscribe))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_o_subscribe", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_subscribe))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_subscribe", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_subscribe))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_i_unsubscribe", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_unsubscribe))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_unsubscribe", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_unsubscribe))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_o_unsubscribe", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_unsubscribe))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_unsubscribe", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_unsubscribe))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_i_notify", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_notify))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_notify", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_notify))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_o_notify", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_notify))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { - SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_notify", TRUE | 0x2 | GV_ADDMULTI); - sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_notify))); - SvREADONLY_on(sv); - } while(0) /*@SWIG@*/; - ST(0) = &PL_sv_yes; - XSRETURN(1); -} - + + + +#ifdef __cplusplus +extern "C" +#endif + +XS(SWIG_init) { + dXSARGS; + int i; + + SWIG_InitializeModule(0); + + /* Install commands */ + for (i = 0; swig_commands[i].name; i++) { + newXS((char*) swig_commands[i].name,swig_commands[i].wrapper, (char*)__FILE__); + } + + /* Install variables */ + for (i = 0; swig_variables[i].name; i++) { + SV *sv; + sv = get_sv((char*) swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI); + if (swig_variables[i].type) { + SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0); + } else { + sv_setiv(sv,(IV) 0); + } + swig_create_magic(sv, (char *) swig_variables[i].name, swig_variables[i].set, swig_variables[i].get); + } + + /* Install constant */ + for (i = 0; swig_constants[i].type; i++) { + SV *sv; + sv = get_sv((char*)swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI); + switch(swig_constants[i].type) { + case SWIG_INT: + sv_setiv(sv, (IV) swig_constants[i].lvalue); + break; + case SWIG_FLOAT: + sv_setnv(sv, (double) swig_constants[i].dvalue); + break; + case SWIG_STRING: + sv_setpv(sv, (char *) swig_constants[i].pvalue); + break; + case SWIG_POINTER: + SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0); + break; + case SWIG_BINARY: + SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype)); + break; + default: + break; + } + SvREADONLY_on(sv); + } + + SWIG_TypeClientData(SWIGTYPE_p_SipUri, (void*) "tinyWRAP::SipUri"); + SWIG_TypeClientData(SWIGTYPE_p_SipEvent, (void*) "tinyWRAP::SipEvent"); + SWIG_TypeClientData(SWIGTYPE_p_SipSession, (void*) "tinyWRAP::SipSession"); + SWIG_TypeClientData(SWIGTYPE_p_RegistrationEvent, (void*) "tinyWRAP::RegistrationEvent"); + SWIG_TypeClientData(SWIGTYPE_p_RegistrationSession, (void*) "tinyWRAP::RegistrationSession"); + SWIG_TypeClientData(SWIGTYPE_p_SubscriptionEvent, (void*) "tinyWRAP::SubscriptionEvent"); + SWIG_TypeClientData(SWIGTYPE_p_SubscriptionSession, (void*) "tinyWRAP::SubscriptionSession"); + SWIG_TypeClientData(SWIGTYPE_p_SipCallback, (void*) "tinyWRAP::SipCallback"); + SWIG_TypeClientData(SWIGTYPE_p_SipDebugCallback, (void*) "tinyWRAP::SipDebugCallback"); + SWIG_TypeClientData(SWIGTYPE_p_SafeObject, (void*) "tinyWRAP::SafeObject"); + SWIG_TypeClientData(SWIGTYPE_p_SipStack, (void*) "tinyWRAP::SipStack"); + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_invite", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_invite))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_message", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_message))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_options", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_options))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_publish", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_publish))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_register", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_register))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_subscribe", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_subscribe))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_dialog", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_dialog))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_register", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_register))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_register", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_register))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_o_register", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_register))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_register", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_register))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_unregister", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_unregister))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_unregister", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_unregister))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_o_unregister", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_unregister))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_unregister", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_unregister))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_subscribe", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_subscribe))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_subscribe", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_subscribe))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_o_subscribe", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_subscribe))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_subscribe", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_subscribe))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_unsubscribe", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_unsubscribe))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_unsubscribe", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_unsubscribe))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_o_unsubscribe", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_unsubscribe))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_unsubscribe", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_unsubscribe))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_notify", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_notify))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_notify", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_notify))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_o_notify", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_notify))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_notify", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_notify))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + ST(0) = &PL_sv_yes; + XSRETURN(1); +} + diff --git a/trunk/bindings/python/tinyWRAP.py b/trunk/bindings/python/tinyWRAP.py index ef5b8275..6cc9d0bb 100644 --- a/trunk/bindings/python/tinyWRAP.py +++ b/trunk/bindings/python/tinyWRAP.py @@ -1,332 +1,332 @@ -# 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. -# This file is compatible with both classic and new-style classes. - -from sys import version_info -if version_info >= (2,6,0): - def swig_import_helper(): - from os.path import dirname - import imp - try: - fp, pathname, description = imp.find_module('_tinyWRAP', [dirname(__file__)]) - _mod = imp.load_module('_tinyWRAP', fp, pathname, description) - finally: - if fp is not None: fp.close() - return _mod - _tinyWRAP = swig_import_helper() - del swig_import_helper -else: - import _tinyWRAP -del version_info -try: - _swig_property = property -except NameError: - pass # Python < 2.2 doesn't have 'property'. -def _swig_setattr_nondynamic(self,class_type,name,value,static=1): - if (name == "thisown"): return self.this.own(value) - if (name == "this"): - if type(value).__name__ == 'SwigPyObject': - self.__dict__[name] = value - return - method = class_type.__swig_setmethods__.get(name,None) - if method: return method(self,value) - if (not static) or hasattr(self,name): - self.__dict__[name] = value - else: - raise AttributeError("You cannot add attributes to %s" % self) - -def _swig_setattr(self,class_type,name,value): - return _swig_setattr_nondynamic(self,class_type,name,value,0) - -def _swig_getattr(self,class_type,name): - if (name == "thisown"): return self.this.own() - method = class_type.__swig_getmethods__.get(name,None) - if method: return method(self) - raise AttributeError(name) - -def _swig_repr(self): - try: strthis = "proxy of " + self.this.__repr__() - except: strthis = "" - return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) - -try: - _object = object - _newclass = 1 -except AttributeError: - class _object : pass - _newclass = 0 - - -try: - import weakref - weakref_proxy = weakref.proxy -except: - weakref_proxy = lambda x: x - - -class SipUri(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, SipUri, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, SipUri, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _tinyWRAP.new_SipUri(*args) - try: self.this.append(this) - except: self.this = this - __swig_destroy__ = _tinyWRAP.delete_SipUri - __del__ = lambda self : None; - def isValid(self, *args): return _tinyWRAP.SipUri_isValid(self, *args) -SipUri_swigregister = _tinyWRAP.SipUri_swigregister -SipUri_swigregister(SipUri) - -class SipEvent(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, SipEvent, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, SipEvent, name) - __repr__ = _swig_repr - def __init__(self): - this = _tinyWRAP.new_SipEvent() - try: self.this.append(this) - except: self.this = this - __swig_destroy__ = _tinyWRAP.delete_SipEvent - __del__ = lambda self : None; - def getCode(self): return _tinyWRAP.SipEvent_getCode(self) - def getPhrase(self): return _tinyWRAP.SipEvent_getPhrase(self) - def getBaseSession(self): return _tinyWRAP.SipEvent_getBaseSession(self) -SipEvent_swigregister = _tinyWRAP.SipEvent_swigregister -SipEvent_swigregister(SipEvent) - -class SipSession(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, SipSession, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, SipSession, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _tinyWRAP.new_SipSession(*args) - try: self.this.append(this) - except: self.this = this - __swig_destroy__ = _tinyWRAP.delete_SipSession - __del__ = lambda self : None; - def addHeader(self, *args): return _tinyWRAP.SipSession_addHeader(self, *args) - def removeHeader(self, *args): return _tinyWRAP.SipSession_removeHeader(self, *args) - def addCaps(self, *args): return _tinyWRAP.SipSession_addCaps(self, *args) - def removeCaps(self, *args): return _tinyWRAP.SipSession_removeCaps(self, *args) - def setExpires(self, *args): return _tinyWRAP.SipSession_setExpires(self, *args) - def setFromUri(self, *args): return _tinyWRAP.SipSession_setFromUri(self, *args) - def setToUri(self, *args): return _tinyWRAP.SipSession_setToUri(self, *args) - def setPayload(self, *args): return _tinyWRAP.SipSession_setPayload(self, *args) -SipSession_swigregister = _tinyWRAP.SipSession_swigregister -SipSession_swigregister(SipSession) - -class RegistrationEvent(SipEvent): - __swig_setmethods__ = {} - for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) - __setattr__ = lambda self, name, value: _swig_setattr(self, RegistrationEvent, name, value) - __swig_getmethods__ = {} - for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) - __getattr__ = lambda self, name: _swig_getattr(self, RegistrationEvent, name) - __repr__ = _swig_repr - def __init__(self): - this = _tinyWRAP.new_RegistrationEvent() - try: self.this.append(this) - except: self.this = this - __swig_destroy__ = _tinyWRAP.delete_RegistrationEvent - __del__ = lambda self : None; - def getType(self): return _tinyWRAP.RegistrationEvent_getType(self) - def getSession(self): return _tinyWRAP.RegistrationEvent_getSession(self) -RegistrationEvent_swigregister = _tinyWRAP.RegistrationEvent_swigregister -RegistrationEvent_swigregister(RegistrationEvent) - -class RegistrationSession(SipSession): - __swig_setmethods__ = {} - for _s in [SipSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) - __setattr__ = lambda self, name, value: _swig_setattr(self, RegistrationSession, name, value) - __swig_getmethods__ = {} - for _s in [SipSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) - __getattr__ = lambda self, name: _swig_getattr(self, RegistrationSession, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _tinyWRAP.new_RegistrationSession(*args) - try: self.this.append(this) - except: self.this = this - __swig_destroy__ = _tinyWRAP.delete_RegistrationSession - __del__ = lambda self : None; - def Register(self): return _tinyWRAP.RegistrationSession_Register(self) - def UnRegister(self): return _tinyWRAP.RegistrationSession_UnRegister(self) -RegistrationSession_swigregister = _tinyWRAP.RegistrationSession_swigregister -RegistrationSession_swigregister(RegistrationSession) - -class SubscriptionEvent(SipEvent): - __swig_setmethods__ = {} - for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) - __setattr__ = lambda self, name, value: _swig_setattr(self, SubscriptionEvent, name, value) - __swig_getmethods__ = {} - for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) - __getattr__ = lambda self, name: _swig_getattr(self, SubscriptionEvent, name) - __repr__ = _swig_repr - def __init__(self): - this = _tinyWRAP.new_SubscriptionEvent() - try: self.this.append(this) - except: self.this = this - __swig_destroy__ = _tinyWRAP.delete_SubscriptionEvent - __del__ = lambda self : None; - def getType(self): return _tinyWRAP.SubscriptionEvent_getType(self) - def getSession(self): return _tinyWRAP.SubscriptionEvent_getSession(self) -SubscriptionEvent_swigregister = _tinyWRAP.SubscriptionEvent_swigregister -SubscriptionEvent_swigregister(SubscriptionEvent) - -class SubscriptionSession(SipSession): - __swig_setmethods__ = {} - for _s in [SipSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) - __setattr__ = lambda self, name, value: _swig_setattr(self, SubscriptionSession, name, value) - __swig_getmethods__ = {} - for _s in [SipSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) - __getattr__ = lambda self, name: _swig_getattr(self, SubscriptionSession, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _tinyWRAP.new_SubscriptionSession(*args) - try: self.this.append(this) - except: self.this = this - __swig_destroy__ = _tinyWRAP.delete_SubscriptionSession - __del__ = lambda self : None; - def Subscribe(self): return _tinyWRAP.SubscriptionSession_Subscribe(self) - def UnSubscribe(self): return _tinyWRAP.SubscriptionSession_UnSubscribe(self) -SubscriptionSession_swigregister = _tinyWRAP.SubscriptionSession_swigregister -SubscriptionSession_swigregister(SubscriptionSession) - -class SipCallback(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, SipCallback, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, SipCallback, name) - __repr__ = _swig_repr - def __init__(self): - if self.__class__ == SipCallback: - _self = None - else: - _self = self - this = _tinyWRAP.new_SipCallback(_self, ) - try: self.this.append(this) - except: self.this = this - __swig_destroy__ = _tinyWRAP.delete_SipCallback - __del__ = lambda self : None; - def OnRegistrationChanged(self, *args): return _tinyWRAP.SipCallback_OnRegistrationChanged(self, *args) - def OnSubscriptionChanged(self, *args): return _tinyWRAP.SipCallback_OnSubscriptionChanged(self, *args) - def __disown__(self): - self.this.disown() - _tinyWRAP.disown_SipCallback(self) - return weakref_proxy(self) -SipCallback_swigregister = _tinyWRAP.SipCallback_swigregister -SipCallback_swigregister(SipCallback) - -class SipDebugCallback(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, SipDebugCallback, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, SipDebugCallback, name) - __repr__ = _swig_repr - def __init__(self): - if self.__class__ == SipDebugCallback: - _self = None - else: - _self = self - this = _tinyWRAP.new_SipDebugCallback(_self, ) - try: self.this.append(this) - except: self.this = this - __swig_destroy__ = _tinyWRAP.delete_SipDebugCallback - __del__ = lambda self : None; - def OnDebugInfo(self, *args): return _tinyWRAP.SipDebugCallback_OnDebugInfo(self, *args) - def OnDebugWarn(self, *args): return _tinyWRAP.SipDebugCallback_OnDebugWarn(self, *args) - def OnDebugError(self, *args): return _tinyWRAP.SipDebugCallback_OnDebugError(self, *args) - def OnDebugFatal(self, *args): return _tinyWRAP.SipDebugCallback_OnDebugFatal(self, *args) - def __disown__(self): - self.this.disown() - _tinyWRAP.disown_SipDebugCallback(self) - return weakref_proxy(self) -SipDebugCallback_swigregister = _tinyWRAP.SipDebugCallback_swigregister -SipDebugCallback_swigregister(SipDebugCallback) - -class SafeObject(_object): - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, SafeObject, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, SafeObject, name) - __repr__ = _swig_repr - def __init__(self): - this = _tinyWRAP.new_SafeObject() - try: self.this.append(this) - except: self.this = this - __swig_destroy__ = _tinyWRAP.delete_SafeObject - __del__ = lambda self : None; - def Lock(self): return _tinyWRAP.SafeObject_Lock(self) - def UnLock(self): return _tinyWRAP.SafeObject_UnLock(self) -SafeObject_swigregister = _tinyWRAP.SafeObject_swigregister -SafeObject_swigregister(SafeObject) - -class SipStack(SafeObject): - __swig_setmethods__ = {} - for _s in [SafeObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) - __setattr__ = lambda self, name, value: _swig_setattr(self, SipStack, name, value) - __swig_getmethods__ = {} - for _s in [SafeObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) - __getattr__ = lambda self, name: _swig_getattr(self, SipStack, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _tinyWRAP.new_SipStack(*args) - try: self.this.append(this) - except: self.this = this - __swig_destroy__ = _tinyWRAP.delete_SipStack - __del__ = lambda self : None; - def start(self): return _tinyWRAP.SipStack_start(self) - def setDebugCallback(self, *args): return _tinyWRAP.SipStack_setDebugCallback(self, *args) - def setRealm(self, *args): return _tinyWRAP.SipStack_setRealm(self, *args) - def setIMPI(self, *args): return _tinyWRAP.SipStack_setIMPI(self, *args) - def setIMPU(self, *args): return _tinyWRAP.SipStack_setIMPU(self, *args) - def setPassword(self, *args): return _tinyWRAP.SipStack_setPassword(self, *args) - def setProxyCSCF(self, *args): return _tinyWRAP.SipStack_setProxyCSCF(self, *args) - def setLocalIP(self, *args): return _tinyWRAP.SipStack_setLocalIP(self, *args) - def setLocalPort(self, *args): return _tinyWRAP.SipStack_setLocalPort(self, *args) - def setEarlyIMS(self, *args): return _tinyWRAP.SipStack_setEarlyIMS(self, *args) - def addHeader(self, *args): return _tinyWRAP.SipStack_addHeader(self, *args) - def removeHeader(self, *args): return _tinyWRAP.SipStack_removeHeader(self, *args) - def addDnsServer(self, *args): return _tinyWRAP.SipStack_addDnsServer(self, *args) - def isValid(self): return _tinyWRAP.SipStack_isValid(self) - def stop(self): return _tinyWRAP.SipStack_stop(self) -SipStack_swigregister = _tinyWRAP.SipStack_swigregister -SipStack_swigregister(SipStack) - -tsip_event_invite = _tinyWRAP.tsip_event_invite -tsip_event_message = _tinyWRAP.tsip_event_message -tsip_event_options = _tinyWRAP.tsip_event_options -tsip_event_publish = _tinyWRAP.tsip_event_publish -tsip_event_register = _tinyWRAP.tsip_event_register -tsip_event_subscribe = _tinyWRAP.tsip_event_subscribe -tsip_event_dialog = _tinyWRAP.tsip_event_dialog -tsip_i_register = _tinyWRAP.tsip_i_register -tsip_ai_register = _tinyWRAP.tsip_ai_register -tsip_o_register = _tinyWRAP.tsip_o_register -tsip_ao_register = _tinyWRAP.tsip_ao_register -tsip_i_unregister = _tinyWRAP.tsip_i_unregister -tsip_ai_unregister = _tinyWRAP.tsip_ai_unregister -tsip_o_unregister = _tinyWRAP.tsip_o_unregister -tsip_ao_unregister = _tinyWRAP.tsip_ao_unregister -tsip_i_subscribe = _tinyWRAP.tsip_i_subscribe -tsip_ai_subscribe = _tinyWRAP.tsip_ai_subscribe -tsip_o_subscribe = _tinyWRAP.tsip_o_subscribe -tsip_ao_subscribe = _tinyWRAP.tsip_ao_subscribe -tsip_i_unsubscribe = _tinyWRAP.tsip_i_unsubscribe -tsip_ai_unsubscribe = _tinyWRAP.tsip_ai_unsubscribe -tsip_o_unsubscribe = _tinyWRAP.tsip_o_unsubscribe -tsip_ao_unsubscribe = _tinyWRAP.tsip_ao_unsubscribe -tsip_i_notify = _tinyWRAP.tsip_i_notify -tsip_ai_notify = _tinyWRAP.tsip_ai_notify -tsip_o_notify = _tinyWRAP.tsip_o_notify -tsip_ao_notify = _tinyWRAP.tsip_ao_notify - - +# 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. +# This file is compatible with both classic and new-style classes. + +from sys import version_info +if version_info >= (2,6,0): + def swig_import_helper(): + from os.path import dirname + import imp + try: + fp, pathname, description = imp.find_module('_tinyWRAP', [dirname(__file__)]) + _mod = imp.load_module('_tinyWRAP', fp, pathname, description) + finally: + if fp is not None: fp.close() + return _mod + _tinyWRAP = swig_import_helper() + del swig_import_helper +else: + import _tinyWRAP +del version_info +try: + _swig_property = property +except NameError: + pass # Python < 2.2 doesn't have 'property'. +def _swig_setattr_nondynamic(self,class_type,name,value,static=1): + if (name == "thisown"): return self.this.own(value) + if (name == "this"): + if type(value).__name__ == 'SwigPyObject': + self.__dict__[name] = value + return + method = class_type.__swig_setmethods__.get(name,None) + if method: return method(self,value) + if (not static) or hasattr(self,name): + self.__dict__[name] = value + else: + raise AttributeError("You cannot add attributes to %s" % self) + +def _swig_setattr(self,class_type,name,value): + return _swig_setattr_nondynamic(self,class_type,name,value,0) + +def _swig_getattr(self,class_type,name): + if (name == "thisown"): return self.this.own() + method = class_type.__swig_getmethods__.get(name,None) + if method: return method(self) + raise AttributeError(name) + +def _swig_repr(self): + try: strthis = "proxy of " + self.this.__repr__() + except: strthis = "" + return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) + +try: + _object = object + _newclass = 1 +except AttributeError: + class _object : pass + _newclass = 0 + + +try: + import weakref + weakref_proxy = weakref.proxy +except: + weakref_proxy = lambda x: x + + +class SipUri(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, SipUri, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, SipUri, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_SipUri(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SipUri + __del__ = lambda self : None; + def isValid(self, *args): return _tinyWRAP.SipUri_isValid(self, *args) +SipUri_swigregister = _tinyWRAP.SipUri_swigregister +SipUri_swigregister(SipUri) + +class SipEvent(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, SipEvent, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, SipEvent, name) + __repr__ = _swig_repr + def __init__(self): + this = _tinyWRAP.new_SipEvent() + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SipEvent + __del__ = lambda self : None; + def getCode(self): return _tinyWRAP.SipEvent_getCode(self) + def getPhrase(self): return _tinyWRAP.SipEvent_getPhrase(self) + def getBaseSession(self): return _tinyWRAP.SipEvent_getBaseSession(self) +SipEvent_swigregister = _tinyWRAP.SipEvent_swigregister +SipEvent_swigregister(SipEvent) + +class SipSession(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, SipSession, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, SipSession, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_SipSession(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SipSession + __del__ = lambda self : None; + def addHeader(self, *args): return _tinyWRAP.SipSession_addHeader(self, *args) + def removeHeader(self, *args): return _tinyWRAP.SipSession_removeHeader(self, *args) + def addCaps(self, *args): return _tinyWRAP.SipSession_addCaps(self, *args) + def removeCaps(self, *args): return _tinyWRAP.SipSession_removeCaps(self, *args) + def setExpires(self, *args): return _tinyWRAP.SipSession_setExpires(self, *args) + def setFromUri(self, *args): return _tinyWRAP.SipSession_setFromUri(self, *args) + def setToUri(self, *args): return _tinyWRAP.SipSession_setToUri(self, *args) + def setPayload(self, *args): return _tinyWRAP.SipSession_setPayload(self, *args) +SipSession_swigregister = _tinyWRAP.SipSession_swigregister +SipSession_swigregister(SipSession) + +class RegistrationEvent(SipEvent): + __swig_setmethods__ = {} + for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, RegistrationEvent, name, value) + __swig_getmethods__ = {} + for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, RegistrationEvent, name) + __repr__ = _swig_repr + def __init__(self): + this = _tinyWRAP.new_RegistrationEvent() + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_RegistrationEvent + __del__ = lambda self : None; + def getType(self): return _tinyWRAP.RegistrationEvent_getType(self) + def getSession(self): return _tinyWRAP.RegistrationEvent_getSession(self) +RegistrationEvent_swigregister = _tinyWRAP.RegistrationEvent_swigregister +RegistrationEvent_swigregister(RegistrationEvent) + +class RegistrationSession(SipSession): + __swig_setmethods__ = {} + for _s in [SipSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, RegistrationSession, name, value) + __swig_getmethods__ = {} + for _s in [SipSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, RegistrationSession, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_RegistrationSession(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_RegistrationSession + __del__ = lambda self : None; + def Register(self): return _tinyWRAP.RegistrationSession_Register(self) + def UnRegister(self): return _tinyWRAP.RegistrationSession_UnRegister(self) +RegistrationSession_swigregister = _tinyWRAP.RegistrationSession_swigregister +RegistrationSession_swigregister(RegistrationSession) + +class SubscriptionEvent(SipEvent): + __swig_setmethods__ = {} + for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, SubscriptionEvent, name, value) + __swig_getmethods__ = {} + for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, SubscriptionEvent, name) + __repr__ = _swig_repr + def __init__(self): + this = _tinyWRAP.new_SubscriptionEvent() + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SubscriptionEvent + __del__ = lambda self : None; + def getType(self): return _tinyWRAP.SubscriptionEvent_getType(self) + def getSession(self): return _tinyWRAP.SubscriptionEvent_getSession(self) +SubscriptionEvent_swigregister = _tinyWRAP.SubscriptionEvent_swigregister +SubscriptionEvent_swigregister(SubscriptionEvent) + +class SubscriptionSession(SipSession): + __swig_setmethods__ = {} + for _s in [SipSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, SubscriptionSession, name, value) + __swig_getmethods__ = {} + for _s in [SipSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, SubscriptionSession, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_SubscriptionSession(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SubscriptionSession + __del__ = lambda self : None; + def Subscribe(self): return _tinyWRAP.SubscriptionSession_Subscribe(self) + def UnSubscribe(self): return _tinyWRAP.SubscriptionSession_UnSubscribe(self) +SubscriptionSession_swigregister = _tinyWRAP.SubscriptionSession_swigregister +SubscriptionSession_swigregister(SubscriptionSession) + +class SipCallback(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, SipCallback, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, SipCallback, name) + __repr__ = _swig_repr + def __init__(self): + if self.__class__ == SipCallback: + _self = None + else: + _self = self + this = _tinyWRAP.new_SipCallback(_self, ) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SipCallback + __del__ = lambda self : None; + def OnRegistrationChanged(self, *args): return _tinyWRAP.SipCallback_OnRegistrationChanged(self, *args) + def OnSubscriptionChanged(self, *args): return _tinyWRAP.SipCallback_OnSubscriptionChanged(self, *args) + def __disown__(self): + self.this.disown() + _tinyWRAP.disown_SipCallback(self) + return weakref_proxy(self) +SipCallback_swigregister = _tinyWRAP.SipCallback_swigregister +SipCallback_swigregister(SipCallback) + +class SipDebugCallback(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, SipDebugCallback, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, SipDebugCallback, name) + __repr__ = _swig_repr + def __init__(self): + if self.__class__ == SipDebugCallback: + _self = None + else: + _self = self + this = _tinyWRAP.new_SipDebugCallback(_self, ) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SipDebugCallback + __del__ = lambda self : None; + def OnDebugInfo(self, *args): return _tinyWRAP.SipDebugCallback_OnDebugInfo(self, *args) + def OnDebugWarn(self, *args): return _tinyWRAP.SipDebugCallback_OnDebugWarn(self, *args) + def OnDebugError(self, *args): return _tinyWRAP.SipDebugCallback_OnDebugError(self, *args) + def OnDebugFatal(self, *args): return _tinyWRAP.SipDebugCallback_OnDebugFatal(self, *args) + def __disown__(self): + self.this.disown() + _tinyWRAP.disown_SipDebugCallback(self) + return weakref_proxy(self) +SipDebugCallback_swigregister = _tinyWRAP.SipDebugCallback_swigregister +SipDebugCallback_swigregister(SipDebugCallback) + +class SafeObject(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, SafeObject, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, SafeObject, name) + __repr__ = _swig_repr + def __init__(self): + this = _tinyWRAP.new_SafeObject() + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SafeObject + __del__ = lambda self : None; + def Lock(self): return _tinyWRAP.SafeObject_Lock(self) + def UnLock(self): return _tinyWRAP.SafeObject_UnLock(self) +SafeObject_swigregister = _tinyWRAP.SafeObject_swigregister +SafeObject_swigregister(SafeObject) + +class SipStack(SafeObject): + __swig_setmethods__ = {} + for _s in [SafeObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, SipStack, name, value) + __swig_getmethods__ = {} + for _s in [SafeObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, SipStack, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_SipStack(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SipStack + __del__ = lambda self : None; + def start(self): return _tinyWRAP.SipStack_start(self) + def setDebugCallback(self, *args): return _tinyWRAP.SipStack_setDebugCallback(self, *args) + def setRealm(self, *args): return _tinyWRAP.SipStack_setRealm(self, *args) + def setIMPI(self, *args): return _tinyWRAP.SipStack_setIMPI(self, *args) + def setIMPU(self, *args): return _tinyWRAP.SipStack_setIMPU(self, *args) + def setPassword(self, *args): return _tinyWRAP.SipStack_setPassword(self, *args) + def setProxyCSCF(self, *args): return _tinyWRAP.SipStack_setProxyCSCF(self, *args) + def setLocalIP(self, *args): return _tinyWRAP.SipStack_setLocalIP(self, *args) + def setLocalPort(self, *args): return _tinyWRAP.SipStack_setLocalPort(self, *args) + def setEarlyIMS(self, *args): return _tinyWRAP.SipStack_setEarlyIMS(self, *args) + def addHeader(self, *args): return _tinyWRAP.SipStack_addHeader(self, *args) + def removeHeader(self, *args): return _tinyWRAP.SipStack_removeHeader(self, *args) + def addDnsServer(self, *args): return _tinyWRAP.SipStack_addDnsServer(self, *args) + def isValid(self): return _tinyWRAP.SipStack_isValid(self) + def stop(self): return _tinyWRAP.SipStack_stop(self) +SipStack_swigregister = _tinyWRAP.SipStack_swigregister +SipStack_swigregister(SipStack) + +tsip_event_invite = _tinyWRAP.tsip_event_invite +tsip_event_message = _tinyWRAP.tsip_event_message +tsip_event_options = _tinyWRAP.tsip_event_options +tsip_event_publish = _tinyWRAP.tsip_event_publish +tsip_event_register = _tinyWRAP.tsip_event_register +tsip_event_subscribe = _tinyWRAP.tsip_event_subscribe +tsip_event_dialog = _tinyWRAP.tsip_event_dialog +tsip_i_register = _tinyWRAP.tsip_i_register +tsip_ai_register = _tinyWRAP.tsip_ai_register +tsip_o_register = _tinyWRAP.tsip_o_register +tsip_ao_register = _tinyWRAP.tsip_ao_register +tsip_i_unregister = _tinyWRAP.tsip_i_unregister +tsip_ai_unregister = _tinyWRAP.tsip_ai_unregister +tsip_o_unregister = _tinyWRAP.tsip_o_unregister +tsip_ao_unregister = _tinyWRAP.tsip_ao_unregister +tsip_i_subscribe = _tinyWRAP.tsip_i_subscribe +tsip_ai_subscribe = _tinyWRAP.tsip_ai_subscribe +tsip_o_subscribe = _tinyWRAP.tsip_o_subscribe +tsip_ao_subscribe = _tinyWRAP.tsip_ao_subscribe +tsip_i_unsubscribe = _tinyWRAP.tsip_i_unsubscribe +tsip_ai_unsubscribe = _tinyWRAP.tsip_ai_unsubscribe +tsip_o_unsubscribe = _tinyWRAP.tsip_o_unsubscribe +tsip_ao_unsubscribe = _tinyWRAP.tsip_ao_unsubscribe +tsip_i_notify = _tinyWRAP.tsip_i_notify +tsip_ai_notify = _tinyWRAP.tsip_ai_notify +tsip_o_notify = _tinyWRAP.tsip_o_notify +tsip_ao_notify = _tinyWRAP.tsip_ao_notify + + diff --git a/trunk/bindings/python/tinyWRAP_wrap.cxx b/trunk/bindings/python/tinyWRAP_wrap.cxx index bfb90cc4..49987818 100644 --- a/trunk/bindings/python/tinyWRAP_wrap.cxx +++ b/trunk/bindings/python/tinyWRAP_wrap.cxx @@ -1,41 +1,41 @@ -/* ---------------------------------------------------------------------------- - * 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 SWIGPYTHON -#define SWIG_DIRECTORS -#define SWIG_PYTHON_DIRECTOR_NO_VTABLE - - -#ifdef __cplusplus -/* SwigValueWrapper is described in swig.swg */ -template 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& rhs); - SwigValueWrapper(const SwigValueWrapper& 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 T SwigValueInit() { - return T(); -} -#endif - +/* ---------------------------------------------------------------------------- + * 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 SWIGPYTHON +#define SWIG_DIRECTORS +#define SWIG_PYTHON_DIRECTOR_NO_VTABLE + + +#ifdef __cplusplus +/* SwigValueWrapper is described in swig.swg */ +template 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& rhs); + SwigValueWrapper(const SwigValueWrapper& 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 T SwigValueInit() { + return T(); +} +#endif + /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. @@ -144,11 +144,11 @@ template T SwigValueInit() { # define _SCL_SECURE_NO_DEPRECATE #endif - - -/* Python.h has to appear first */ -#include - + + +/* Python.h has to appear first */ +#include + /* ----------------------------------------------------------------------------- * swigrun.swg * @@ -732,7 +732,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { #ifdef __cplusplus } #endif - + /* Errors in SWIG */ #define SWIG_UnknownError -1 #define SWIG_IOError -2 @@ -749,7 +749,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { #define SWIG_NullReferenceError -13 - + /* Compatibility marcos for Python 3 */ #if PY_VERSION_HEX >= 0x03000000 @@ -880,7 +880,7 @@ typedef int Py_ssize_t; # define PY_SSIZE_T_MAX INT_MAX # define PY_SSIZE_T_MIN INT_MIN #endif - + /* ----------------------------------------------------------------------------- * error manipulation * ----------------------------------------------------------------------------- */ @@ -949,7 +949,7 @@ SWIG_Python_AddErrorMsg(const char* mesg) PyErr_SetString(PyExc_RuntimeError, mesg); } } - + #if defined(SWIG_PYTHON_NO_THREADS) # if defined(SWIG_PYTHON_THREADS) # undef SWIG_PYTHON_THREADS @@ -1016,7 +1016,7 @@ SWIG_Python_AddErrorMsg(const char* mesg) # define SWIG_PYTHON_THREAD_BEGIN_ALLOW # define SWIG_PYTHON_THREAD_END_ALLOW #endif - + /* ----------------------------------------------------------------------------- * Python API portion that goes into the runtime * ----------------------------------------------------------------------------- */ @@ -1067,7 +1067,7 @@ SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *self, PyObject *func) } #endif - + /* ----------------------------------------------------------------------------- * 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. @@ -2635,14 +2635,14 @@ SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) #endif } #endif - - - -#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else - - + + + +#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) + +#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } 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. @@ -3118,3014 +3118,3014 @@ namespace Swig { #endif - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_RegistrationEvent swig_types[0] -#define SWIGTYPE_p_RegistrationSession swig_types[1] -#define SWIGTYPE_p_SafeObject swig_types[2] -#define SWIGTYPE_p_SipCallback swig_types[3] -#define SWIGTYPE_p_SipDebugCallback swig_types[4] -#define SWIGTYPE_p_SipEvent swig_types[5] -#define SWIGTYPE_p_SipSession swig_types[6] -#define SWIGTYPE_p_SipStack swig_types[7] -#define SWIGTYPE_p_SipUri swig_types[8] -#define SWIGTYPE_p_SubscriptionEvent swig_types[9] -#define SWIGTYPE_p_SubscriptionSession swig_types[10] -#define SWIGTYPE_p_char swig_types[11] -#define SWIGTYPE_p_tsip_event_type_e swig_types[12] -#define SWIGTYPE_p_tsip_register_event_type_e swig_types[13] -#define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[14] -static swig_type_info *swig_types[16]; -static swig_module_info swig_module = {swig_types, 15, 0, 0, 0, 0}; -#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) -#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) - -/* -------- TYPES TABLE (END) -------- */ - -#if (PY_VERSION_HEX <= 0x02000000) -# if !defined(SWIG_PYTHON_CLASSIC) -# error "This python version requires swig to be run with the '-classic' option" -# endif -#endif - -/*----------------------------------------------- - @(target):= _tinyWRAP.so - ------------------------------------------------*/ -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_init PyInit__tinyWRAP - -#else -# define SWIG_init init_tinyWRAP - -#endif -#define SWIG_name "_tinyWRAP" - -#define SWIGVERSION 0x010339 -#define SWIG_VERSION SWIGVERSION - - -#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) -#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) - - -#include - - -namespace swig { - class SwigPtr_PyObject { - protected: - PyObject *_obj; - - public: - SwigPtr_PyObject() :_obj(0) - { - } - - SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) - { - Py_XINCREF(_obj); - } - - SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) - { - if (initial_ref) { - Py_XINCREF(_obj); - } - } - - SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) - { - Py_XINCREF(item._obj); - Py_XDECREF(_obj); - _obj = item._obj; - return *this; - } - - ~SwigPtr_PyObject() - { - Py_XDECREF(_obj); - } - - operator PyObject *() const - { - return _obj; - } - - PyObject *operator->() const - { - return _obj; - } - }; -} - - -namespace swig { - struct SwigVar_PyObject : SwigPtr_PyObject { - SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } - - SwigVar_PyObject & operator = (PyObject* obj) - { - Py_XDECREF(_obj); - _obj = obj; - return *this; - } - }; -} - - -#include "SipUri.h" -#include "SipEvent.h" -#include "SipSession.h" -#include "RegistrationEvent.h" -#include "RegistrationSession.h" -#include "SubscriptionEvent.h" -#include "SubscriptionSession.h" -#include "SipCallback.h" -#include "SipDebug.h" -#include "SafeObject.h" -#include "SipStack.h" - - -SWIGINTERN swig_type_info* -SWIG_pchar_descriptor(void) -{ - static int init = 0; - static swig_type_info* info = 0; - if (!init) { - info = SWIG_TypeQuery("_p_char"); - init = 1; - } - return info; -} - - -SWIGINTERN int -SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) -{ -#if PY_VERSION_HEX>=0x03000000 - if (PyUnicode_Check(obj)) -#else - if (PyString_Check(obj)) -#endif - { - char *cstr; Py_ssize_t len; -#if PY_VERSION_HEX>=0x03000000 - obj = PyUnicode_AsUTF8String(obj); - PyBytes_AsStringAndSize(obj, &cstr, &len); -#else - PyString_AsStringAndSize(obj, &cstr, &len); -#endif - if (cptr) { - if (alloc) { - /* - In python the user should not be able to modify the inner - string representation. To warranty that, if you define - SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string - buffer is always returned. - - The default behavior is just to return the pointer value, - so, be careful. - */ -#if defined(SWIG_PYTHON_SAFE_CSTRINGS) - if (*alloc != SWIG_OLDOBJ) -#else - if (*alloc == SWIG_NEWOBJ) -#endif - { - *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); - *alloc = SWIG_NEWOBJ; - } - else { - *cptr = cstr; - *alloc = SWIG_OLDOBJ; - } - } else { - *cptr = SWIG_Python_str_AsChar(obj); - } - } - if (psize) *psize = len + 1; - return SWIG_OK; - } else { - swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); - if (pchar_descriptor) { - void* vptr = 0; - if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { - if (cptr) *cptr = (char *) vptr; - if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; - if (alloc) *alloc = SWIG_OLDOBJ; - return SWIG_OK; - } - } - } - return SWIG_TypeError; -} - - - - - -SWIGINTERNINLINE PyObject* - SWIG_From_bool (bool value) -{ - return PyBool_FromLong(value ? 1 : 0); -} - - - #define SWIG_From_long PyInt_FromLong - - -SWIGINTERNINLINE PyObject * -SWIG_From_short (short value) -{ - return SWIG_From_long (value); -} - - -SWIGINTERNINLINE PyObject * -SWIG_FromCharPtrAndSize(const char* carray, size_t size) -{ - if (carray) { - if (size > INT_MAX) { - swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); - return pchar_descriptor ? - SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void(); - } else { -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_FromStringAndSize(carray, static_cast< int >(size)); -#else - return PyString_FromStringAndSize(carray, static_cast< int >(size)); -#endif - } - } else { - return SWIG_Py_Void(); - } -} - - -SWIGINTERNINLINE PyObject * -SWIG_FromCharPtr(const char *cptr) -{ - return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); -} - - -#include -#if !defined(SWIG_NO_LLONG_MAX) -# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) -# define LLONG_MAX __LONG_LONG_MAX__ -# define LLONG_MIN (-LLONG_MAX - 1LL) -# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) -# endif -#endif - - -SWIGINTERN int -SWIG_AsVal_double (PyObject *obj, double *val) -{ - int res = SWIG_TypeError; - if (PyFloat_Check(obj)) { - if (val) *val = PyFloat_AsDouble(obj); - return SWIG_OK; - } else if (PyInt_Check(obj)) { - if (val) *val = PyInt_AsLong(obj); - return SWIG_OK; - } else if (PyLong_Check(obj)) { - double v = PyLong_AsDouble(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - double d = PyFloat_AsDouble(obj); - if (!PyErr_Occurred()) { - if (val) *val = d; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_AddCast(SWIG_OK)); - } else { - PyErr_Clear(); - } - } - } -#endif - return res; -} - - -#include - - -#include - - -SWIGINTERNINLINE int -SWIG_CanCastAsInteger(double *d, double min, double max) { - double x = *d; - if ((min <= x && x <= max)) { - double fx = floor(x); - double cx = ceil(x); - double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ - if ((errno == EDOM) || (errno == ERANGE)) { - errno = 0; - } else { - double summ, reps, diff; - if (rd < x) { - diff = x - rd; - } else if (rd > x) { - diff = rd - x; - } else { - return 1; - } - summ = rd + x; - reps = diff/summ; - if (reps < 8*DBL_EPSILON) { - *d = rd; - return 1; - } - } - } - return 0; -} - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) -{ - if (PyInt_Check(obj)) { - long v = PyInt_AsLong(obj); - if (v >= 0) { - if (val) *val = v; - return SWIG_OK; - } else { - return SWIG_OverflowError; - } - } else if (PyLong_Check(obj)) { - unsigned long v = PyLong_AsUnsignedLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - unsigned long v = PyLong_AsUnsignedLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - double d; - int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { - if (val) *val = (unsigned long)(d); - return res; - } - } - } -#endif - return SWIG_TypeError; -} - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) -{ - unsigned long v; - int res = SWIG_AsVal_unsigned_SS_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v > UINT_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = static_cast< unsigned int >(v); - } - } - return res; -} - - -SWIGINTERNINLINE PyObject * -SWIG_From_int (int value) -{ - return SWIG_From_long (value); -} - - -SWIGINTERN int -SWIG_AsVal_long (PyObject *obj, long* val) -{ - if (PyInt_Check(obj)) { - if (val) *val = PyInt_AsLong(obj); - return SWIG_OK; - } else if (PyLong_Check(obj)) { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - long v = PyInt_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - double d; - int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { - if (val) *val = (long)(d); - return res; - } - } - } -#endif - return SWIG_TypeError; -} - - -SWIGINTERN int -SWIG_AsVal_int (PyObject * obj, int *val) -{ - long v; - int res = SWIG_AsVal_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v < INT_MIN || v > INT_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = static_cast< int >(v); - } - } - return res; -} - - -SWIGINTERN int -SWIG_AsVal_bool (PyObject *obj, bool *val) -{ - int r = PyObject_IsTrue(obj); - if (r == -1) - return SWIG_ERROR; - if (val) *val = r ? true : false; - return SWIG_OK; -} - - - -/* --------------------------------------------------- - * C++ director class methods - * --------------------------------------------------- */ - -#include "tinyWRAP_wrap.h" - -SwigDirector_SipCallback::SwigDirector_SipCallback(PyObject *self): SipCallback(), Swig::Director(self) { - SWIG_DIRECTOR_RGTR((SipCallback *)this, this); -} - - - - -SwigDirector_SipCallback::~SwigDirector_SipCallback() { -} - -int SwigDirector_SipCallback::OnRegistrationChanged(RegistrationEvent const *e) { - int c_result; - swig::SwigVar_PyObject obj0; - obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_RegistrationEvent, 0 ); - if (!swig_get_self()) { - Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__."); - } -#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) - const size_t swig_method_index = 0; - const char * const swig_method_name = "OnRegistrationChanged"; - PyObject* method = swig_get_method(swig_method_index, swig_method_name); - swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); -#else - swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnRegistrationChanged", (char *)"(O)" ,(PyObject *)obj0); -#endif - if (result == NULL) { - PyObject *error = PyErr_Occurred(); - if (error != NULL) { - Swig::DirectorMethodException::raise("Error detected when calling 'SipCallback.OnRegistrationChanged'"); - } - } - int swig_val; - int swig_res = SWIG_AsVal_int(result, &swig_val); - if (!SWIG_IsOK(swig_res)) { - Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); - } - c_result = static_cast< int >(swig_val); - return (int) c_result; -} - - -int SwigDirector_SipCallback::OnSubscriptionChanged(SubscriptionEvent const *e) { - int c_result; - swig::SwigVar_PyObject obj0; - obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_SubscriptionEvent, 0 ); - if (!swig_get_self()) { - Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__."); - } -#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) - const size_t swig_method_index = 1; - const char * const swig_method_name = "OnSubscriptionChanged"; - PyObject* method = swig_get_method(swig_method_index, swig_method_name); - swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); -#else - swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnSubscriptionChanged", (char *)"(O)" ,(PyObject *)obj0); -#endif - if (result == NULL) { - PyObject *error = PyErr_Occurred(); - if (error != NULL) { - Swig::DirectorMethodException::raise("Error detected when calling 'SipCallback.OnSubscriptionChanged'"); - } - } - int swig_val; - int swig_res = SWIG_AsVal_int(result, &swig_val); - if (!SWIG_IsOK(swig_res)) { - Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); - } - c_result = static_cast< int >(swig_val); - return (int) c_result; -} - - -SwigDirector_SipDebugCallback::SwigDirector_SipDebugCallback(PyObject *self): SipDebugCallback(), Swig::Director(self) { - SWIG_DIRECTOR_RGTR((SipDebugCallback *)this, this); -} - - - - -SwigDirector_SipDebugCallback::~SwigDirector_SipDebugCallback() { -} - -int SwigDirector_SipDebugCallback::OnDebugInfo(char const *message) { - int c_result; - swig::SwigVar_PyObject obj0; - obj0 = SWIG_FromCharPtr((const char *)message); - if (!swig_get_self()) { - Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipDebugCallback.__init__."); - } -#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) - const size_t swig_method_index = 0; - const char * const swig_method_name = "OnDebugInfo"; - PyObject* method = swig_get_method(swig_method_index, swig_method_name); - swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); -#else - swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnDebugInfo", (char *)"(O)" ,(PyObject *)obj0); -#endif - if (result == NULL) { - PyObject *error = PyErr_Occurred(); - if (error != NULL) { - Swig::DirectorMethodException::raise("Error detected when calling 'SipDebugCallback.OnDebugInfo'"); - } - } - int swig_val; - int swig_res = SWIG_AsVal_int(result, &swig_val); - if (!SWIG_IsOK(swig_res)) { - Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); - } - c_result = static_cast< int >(swig_val); - return (int) c_result; -} - - -int SwigDirector_SipDebugCallback::OnDebugWarn(char const *message) { - int c_result; - swig::SwigVar_PyObject obj0; - obj0 = SWIG_FromCharPtr((const char *)message); - if (!swig_get_self()) { - Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipDebugCallback.__init__."); - } -#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) - const size_t swig_method_index = 1; - const char * const swig_method_name = "OnDebugWarn"; - PyObject* method = swig_get_method(swig_method_index, swig_method_name); - swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); -#else - swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnDebugWarn", (char *)"(O)" ,(PyObject *)obj0); -#endif - if (result == NULL) { - PyObject *error = PyErr_Occurred(); - if (error != NULL) { - Swig::DirectorMethodException::raise("Error detected when calling 'SipDebugCallback.OnDebugWarn'"); - } - } - int swig_val; - int swig_res = SWIG_AsVal_int(result, &swig_val); - if (!SWIG_IsOK(swig_res)) { - Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); - } - c_result = static_cast< int >(swig_val); - return (int) c_result; -} - - -int SwigDirector_SipDebugCallback::OnDebugError(char const *message) { - int c_result; - swig::SwigVar_PyObject obj0; - obj0 = SWIG_FromCharPtr((const char *)message); - if (!swig_get_self()) { - Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipDebugCallback.__init__."); - } -#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) - const size_t swig_method_index = 2; - const char * const swig_method_name = "OnDebugError"; - PyObject* method = swig_get_method(swig_method_index, swig_method_name); - swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); -#else - swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnDebugError", (char *)"(O)" ,(PyObject *)obj0); -#endif - if (result == NULL) { - PyObject *error = PyErr_Occurred(); - if (error != NULL) { - Swig::DirectorMethodException::raise("Error detected when calling 'SipDebugCallback.OnDebugError'"); - } - } - int swig_val; - int swig_res = SWIG_AsVal_int(result, &swig_val); - if (!SWIG_IsOK(swig_res)) { - Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); - } - c_result = static_cast< int >(swig_val); - return (int) c_result; -} - - -int SwigDirector_SipDebugCallback::OnDebugFatal(char const *message) { - int c_result; - swig::SwigVar_PyObject obj0; - obj0 = SWIG_FromCharPtr((const char *)message); - if (!swig_get_self()) { - Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipDebugCallback.__init__."); - } -#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) - const size_t swig_method_index = 3; - const char * const swig_method_name = "OnDebugFatal"; - PyObject* method = swig_get_method(swig_method_index, swig_method_name); - swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); -#else - swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnDebugFatal", (char *)"(O)" ,(PyObject *)obj0); -#endif - if (result == NULL) { - PyObject *error = PyErr_Occurred(); - if (error != NULL) { - Swig::DirectorMethodException::raise("Error detected when calling 'SipDebugCallback.OnDebugFatal'"); - } - } - int swig_val; - int swig_res = SWIG_AsVal_int(result, &swig_val); - if (!SWIG_IsOK(swig_res)) { - Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); - } - c_result = static_cast< int >(swig_val); - return (int) c_result; -} - - -#ifdef __cplusplus -extern "C" { -#endif -SWIGINTERN PyObject *_wrap_new_SipUri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - SipUri *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_SipUri",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipUri" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (SipUri *)new SipUri((char const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipUri, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_SipUri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipUri *arg1 = (SipUri *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_SipUri",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipUri, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipUri" "', argument " "1"" of type '" "SipUri *""'"); - } - arg1 = reinterpret_cast< SipUri * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipUri_isValid__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:SipUri_isValid",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_isValid" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (bool)SipUri::isValid((char const *)arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipUri_isValid__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipUri *arg1 = (SipUri *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:SipUri_isValid",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_isValid" "', argument " "1"" of type '" "SipUri *""'"); - } - arg1 = reinterpret_cast< SipUri * >(argp1); - result = (bool)(arg1)->isValid(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipUri_isValid(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 1); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipUri, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SipUri_isValid__SWIG_1(self, args); - } - } - if (argc == 1) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SipUri_isValid__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'SipUri_isValid'.\n" - " Possible C/C++ prototypes are:\n" - " isValid(char const *)\n" - " isValid(SipUri *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *SipUri_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_SipUri, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_SipEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipEvent *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_SipEvent")) SWIG_fail; - result = (SipEvent *)new SipEvent(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipEvent, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_SipEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipEvent *arg1 = (SipEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_SipEvent",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipEvent, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipEvent" "', argument " "1"" of type '" "SipEvent *""'"); - } - arg1 = reinterpret_cast< SipEvent * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipEvent_getCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipEvent *arg1 = (SipEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - short result; - - if (!PyArg_ParseTuple(args,(char *)"O:SipEvent_getCode",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getCode" "', argument " "1"" of type '" "SipEvent const *""'"); - } - arg1 = reinterpret_cast< SipEvent * >(argp1); - result = (short)((SipEvent const *)arg1)->getCode(); - resultobj = SWIG_From_short(static_cast< short >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipEvent_getPhrase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipEvent *arg1 = (SipEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:SipEvent_getPhrase",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getPhrase" "', argument " "1"" of type '" "SipEvent const *""'"); - } - arg1 = reinterpret_cast< SipEvent * >(argp1); - result = (char *)((SipEvent const *)arg1)->getPhrase(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipEvent_getBaseSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipEvent *arg1 = (SipEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SipSession *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:SipEvent_getBaseSession",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getBaseSession" "', argument " "1"" of type '" "SipEvent const *""'"); - } - arg1 = reinterpret_cast< SipEvent * >(argp1); - result = (SipSession *)((SipEvent const *)arg1)->getBaseSession(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipSession, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *SipEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_SipEvent, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_SipSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SipSession *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_SipSession",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipSession" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - result = (SipSession *)new SipSession(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipSession, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_SipSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipSession *arg1 = (SipSession *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_SipSession",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipSession" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipSession_addHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SipSession_addHeader",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addHeader" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addHeader" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipSession_addHeader" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipSession_removeHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_removeHeader",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_removeHeader" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_removeHeader" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->removeHeader((char const *)arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipSession_addCaps__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SipSession_addCaps",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addCaps" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addCaps" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipSession_addCaps" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (bool)(arg1)->addCaps((char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipSession_addCaps__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_addCaps",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addCaps" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addCaps" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->addCaps((char const *)arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipSession_addCaps(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipSession, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SipSession_addCaps__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipSession, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SipSession_addCaps__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'SipSession_addCaps'.\n" - " Possible C/C++ prototypes are:\n" - " addCaps(SipSession *,char const *,char const *)\n" - " addCaps(SipSession *,char const *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipSession_removeCaps(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_removeCaps",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_removeCaps" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_removeCaps" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->removeCaps((char const *)arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipSession_setExpires(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipSession *arg1 = (SipSession *) 0 ; - unsigned int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_setExpires",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setExpires" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipSession_setExpires" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - result = (bool)(arg1)->setExpires(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipSession_setFromUri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_setFromUri",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setFromUri" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setFromUri" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->setFromUri((char const *)arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipSession_setToUri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_setToUri",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setToUri" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setToUri" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->setToUri((char const *)arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipSession_setPayload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipSession *arg1 = (SipSession *) 0 ; - char *arg2 = (char *) 0 ; - unsigned int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SipSession_setPayload",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setPayload" "', argument " "1"" of type '" "SipSession *""'"); - } - arg1 = reinterpret_cast< SipSession * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setPayload" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipSession_setPayload" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - result = (bool)(arg1)->setPayload((char const *)arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *SipSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_SipSession, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_RegistrationEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - RegistrationEvent *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_RegistrationEvent")) SWIG_fail; - result = (RegistrationEvent *)new RegistrationEvent(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationEvent, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_RegistrationEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_RegistrationEvent",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationEvent, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegistrationEvent" "', argument " "1"" of type '" "RegistrationEvent *""'"); - } - arg1 = reinterpret_cast< RegistrationEvent * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_RegistrationEvent_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - tsip_register_event_type_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:RegistrationEvent_getType",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationEvent_getType" "', argument " "1"" of type '" "RegistrationEvent const *""'"); - } - arg1 = reinterpret_cast< RegistrationEvent * >(argp1); - result = (tsip_register_event_type_t)((RegistrationEvent const *)arg1)->getType(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_RegistrationEvent_getSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - RegistrationSession *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:RegistrationEvent_getSession",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationEvent_getSession" "', argument " "1"" of type '" "RegistrationEvent const *""'"); - } - arg1 = reinterpret_cast< RegistrationEvent * >(argp1); - result = (RegistrationSession *)((RegistrationEvent const *)arg1)->getSession(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationSession, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *RegistrationEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_RegistrationEvent, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_RegistrationSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - RegistrationSession *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_RegistrationSession",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegistrationSession" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - result = (RegistrationSession *)new RegistrationSession(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationSession, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_RegistrationSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - RegistrationSession *arg1 = (RegistrationSession *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_RegistrationSession",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationSession, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegistrationSession" "', argument " "1"" of type '" "RegistrationSession *""'"); - } - arg1 = reinterpret_cast< RegistrationSession * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_RegistrationSession_Register(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - RegistrationSession *arg1 = (RegistrationSession *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:RegistrationSession_Register",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_Register" "', argument " "1"" of type '" "RegistrationSession *""'"); - } - arg1 = reinterpret_cast< RegistrationSession * >(argp1); - result = (bool)(arg1)->Register(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_RegistrationSession_UnRegister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - RegistrationSession *arg1 = (RegistrationSession *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:RegistrationSession_UnRegister",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_UnRegister" "', argument " "1"" of type '" "RegistrationSession *""'"); - } - arg1 = reinterpret_cast< RegistrationSession * >(argp1); - result = (bool)(arg1)->UnRegister(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *RegistrationSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_RegistrationSession, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_SubscriptionEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SubscriptionEvent *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_SubscriptionEvent")) SWIG_fail; - result = (SubscriptionEvent *)new SubscriptionEvent(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionEvent, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_SubscriptionEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_SubscriptionEvent",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionEvent, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SubscriptionEvent" "', argument " "1"" of type '" "SubscriptionEvent *""'"); - } - arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SubscriptionEvent_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - tsip_subscribe_event_type_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:SubscriptionEvent_getType",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionEvent_getType" "', argument " "1"" of type '" "SubscriptionEvent const *""'"); - } - arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); - result = (tsip_subscribe_event_type_t)((SubscriptionEvent const *)arg1)->getType(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SubscriptionEvent_getSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SubscriptionSession *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:SubscriptionEvent_getSession",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionEvent_getSession" "', argument " "1"" of type '" "SubscriptionEvent const *""'"); - } - arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); - result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->getSession(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionSession, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *SubscriptionEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_SubscriptionEvent, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_SubscriptionSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SubscriptionSession *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_SubscriptionSession",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SubscriptionSession" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - result = (SubscriptionSession *)new SubscriptionSession(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionSession, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_SubscriptionSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_SubscriptionSession",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionSession, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SubscriptionSession" "', argument " "1"" of type '" "SubscriptionSession *""'"); - } - arg1 = reinterpret_cast< SubscriptionSession * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SubscriptionSession_Subscribe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:SubscriptionSession_Subscribe",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionSession_Subscribe" "', argument " "1"" of type '" "SubscriptionSession *""'"); - } - arg1 = reinterpret_cast< SubscriptionSession * >(argp1); - result = (bool)(arg1)->Subscribe(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SubscriptionSession_UnSubscribe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:SubscriptionSession_UnSubscribe",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionSession, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionSession_UnSubscribe" "', argument " "1"" of type '" "SubscriptionSession *""'"); - } - arg1 = reinterpret_cast< SubscriptionSession * >(argp1); - result = (bool)(arg1)->UnSubscribe(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *SubscriptionSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_SubscriptionSession, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_SipCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PyObject *arg1 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - SipCallback *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_SipCallback",&obj0)) SWIG_fail; - arg1 = obj0; - if ( arg1 != Py_None ) { - /* subclassed */ - result = (SipCallback *)new SwigDirector_SipCallback(arg1); - } else { - result = (SipCallback *)new SipCallback(); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipCallback, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_SipCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipCallback *arg1 = (SipCallback *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_SipCallback",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipCallback" "', argument " "1"" of type '" "SipCallback *""'"); - } - arg1 = reinterpret_cast< SipCallback * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipCallback_OnRegistrationChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipCallback *arg1 = (SipCallback *) 0 ; - RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - Swig::Director *director = 0; - bool upcall = false; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipCallback_OnRegistrationChanged",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnRegistrationChanged" "', argument " "1"" of type '" "SipCallback *""'"); - } - arg1 = reinterpret_cast< SipCallback * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnRegistrationChanged" "', argument " "2"" of type '" "RegistrationEvent const *""'"); - } - arg2 = reinterpret_cast< RegistrationEvent * >(argp2); - director = SWIG_DIRECTOR_CAST(arg1); - upcall = (director && (director->swig_get_self()==obj0)); - try { - if (upcall) { - result = (int)(arg1)->SipCallback::OnRegistrationChanged((RegistrationEvent const *)arg2); - } else { - result = (int)(arg1)->OnRegistrationChanged((RegistrationEvent const *)arg2); - } - } catch (Swig::DirectorException&) { - SWIG_fail; - } - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipCallback_OnSubscriptionChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipCallback *arg1 = (SipCallback *) 0 ; - SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - Swig::Director *director = 0; - bool upcall = false; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipCallback_OnSubscriptionChanged",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnSubscriptionChanged" "', argument " "1"" of type '" "SipCallback *""'"); - } - arg1 = reinterpret_cast< SipCallback * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnSubscriptionChanged" "', argument " "2"" of type '" "SubscriptionEvent const *""'"); - } - arg2 = reinterpret_cast< SubscriptionEvent * >(argp2); - director = SWIG_DIRECTOR_CAST(arg1); - upcall = (director && (director->swig_get_self()==obj0)); - try { - if (upcall) { - result = (int)(arg1)->SipCallback::OnSubscriptionChanged((SubscriptionEvent const *)arg2); - } else { - result = (int)(arg1)->OnSubscriptionChanged((SubscriptionEvent const *)arg2); - } - } catch (Swig::DirectorException&) { - SWIG_fail; - } - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_disown_SipCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipCallback *arg1 = (SipCallback *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:disown_SipCallback",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_SipCallback" "', argument " "1"" of type '" "SipCallback *""'"); - } - arg1 = reinterpret_cast< SipCallback * >(argp1); - { - Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); - if (director) director->swig_disown(); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *SipCallback_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_SipCallback, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_SipDebugCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PyObject *arg1 = (PyObject *) 0 ; - PyObject * obj0 = 0 ; - SipDebugCallback *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_SipDebugCallback",&obj0)) SWIG_fail; - arg1 = obj0; - if ( arg1 != Py_None ) { - /* subclassed */ - result = (SipDebugCallback *)new SwigDirector_SipDebugCallback(arg1); - } else { - result = (SipDebugCallback *)new SipDebugCallback(); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipDebugCallback, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_SipDebugCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_SipDebugCallback",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipDebugCallback, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipDebugCallback" "', argument " "1"" of type '" "SipDebugCallback *""'"); - } - arg1 = reinterpret_cast< SipDebugCallback * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipDebugCallback_OnDebugInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - Swig::Director *director = 0; - bool upcall = false; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipDebugCallback_OnDebugInfo",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipDebugCallback_OnDebugInfo" "', argument " "1"" of type '" "SipDebugCallback *""'"); - } - arg1 = reinterpret_cast< SipDebugCallback * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipDebugCallback_OnDebugInfo" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - director = SWIG_DIRECTOR_CAST(arg1); - upcall = (director && (director->swig_get_self()==obj0)); - try { - if (upcall) { - result = (int)(arg1)->SipDebugCallback::OnDebugInfo((char const *)arg2); - } else { - result = (int)(arg1)->OnDebugInfo((char const *)arg2); - } - } catch (Swig::DirectorException&) { - SWIG_fail; - } - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipDebugCallback_OnDebugWarn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - Swig::Director *director = 0; - bool upcall = false; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipDebugCallback_OnDebugWarn",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipDebugCallback_OnDebugWarn" "', argument " "1"" of type '" "SipDebugCallback *""'"); - } - arg1 = reinterpret_cast< SipDebugCallback * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipDebugCallback_OnDebugWarn" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - director = SWIG_DIRECTOR_CAST(arg1); - upcall = (director && (director->swig_get_self()==obj0)); - try { - if (upcall) { - result = (int)(arg1)->SipDebugCallback::OnDebugWarn((char const *)arg2); - } else { - result = (int)(arg1)->OnDebugWarn((char const *)arg2); - } - } catch (Swig::DirectorException&) { - SWIG_fail; - } - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipDebugCallback_OnDebugError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - Swig::Director *director = 0; - bool upcall = false; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipDebugCallback_OnDebugError",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipDebugCallback_OnDebugError" "', argument " "1"" of type '" "SipDebugCallback *""'"); - } - arg1 = reinterpret_cast< SipDebugCallback * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipDebugCallback_OnDebugError" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - director = SWIG_DIRECTOR_CAST(arg1); - upcall = (director && (director->swig_get_self()==obj0)); - try { - if (upcall) { - result = (int)(arg1)->SipDebugCallback::OnDebugError((char const *)arg2); - } else { - result = (int)(arg1)->OnDebugError((char const *)arg2); - } - } catch (Swig::DirectorException&) { - SWIG_fail; - } - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipDebugCallback_OnDebugFatal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - Swig::Director *director = 0; - bool upcall = false; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipDebugCallback_OnDebugFatal",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipDebugCallback_OnDebugFatal" "', argument " "1"" of type '" "SipDebugCallback *""'"); - } - arg1 = reinterpret_cast< SipDebugCallback * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipDebugCallback_OnDebugFatal" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - director = SWIG_DIRECTOR_CAST(arg1); - upcall = (director && (director->swig_get_self()==obj0)); - try { - if (upcall) { - result = (int)(arg1)->SipDebugCallback::OnDebugFatal((char const *)arg2); - } else { - result = (int)(arg1)->OnDebugFatal((char const *)arg2); - } - } catch (Swig::DirectorException&) { - SWIG_fail; - } - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_disown_SipDebugCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:disown_SipDebugCallback",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_SipDebugCallback" "', argument " "1"" of type '" "SipDebugCallback *""'"); - } - arg1 = reinterpret_cast< SipDebugCallback * >(argp1); - { - Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); - if (director) director->swig_disown(); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *SipDebugCallback_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_SipDebugCallback, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_SafeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SafeObject *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_SafeObject")) SWIG_fail; - result = (SafeObject *)new SafeObject(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeObject, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_SafeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SafeObject *arg1 = (SafeObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_SafeObject",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeObject, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SafeObject" "', argument " "1"" of type '" "SafeObject *""'"); - } - arg1 = reinterpret_cast< SafeObject * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SafeObject_Lock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SafeObject *arg1 = (SafeObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:SafeObject_Lock",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeObject, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeObject_Lock" "', argument " "1"" of type '" "SafeObject *""'"); - } - arg1 = reinterpret_cast< SafeObject * >(argp1); - result = (int)(arg1)->Lock(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SafeObject_UnLock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SafeObject *arg1 = (SafeObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:SafeObject_UnLock",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeObject, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeObject_UnLock" "', argument " "1"" of type '" "SafeObject *""'"); - } - arg1 = reinterpret_cast< SafeObject * >(argp1); - result = (int)(arg1)->UnLock(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *SafeObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_SafeObject, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_SipStack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipCallback *arg1 = (SipCallback *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - SipStack *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:new_SipStack",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipStack" "', argument " "1"" of type '" "SipCallback *""'"); - } - arg1 = reinterpret_cast< SipCallback * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SipStack" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SipStack" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SipStack" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (SipStack *)new SipStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipStack, SWIG_POINTER_NEW | 0 ); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_SipStack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_SipStack",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipStack" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipStack_start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:SipStack_start",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_start" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - result = (bool)(arg1)->start(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipStack_setDebugCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - SipDebugCallback *arg2 = (SipDebugCallback *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setDebugCallback",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setDebugCallback" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setDebugCallback" "', argument " "2"" of type '" "SipDebugCallback *""'"); - } - arg2 = reinterpret_cast< SipDebugCallback * >(argp2); - result = (bool)(arg1)->setDebugCallback(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipStack_setRealm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setRealm",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setRealm" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setRealm" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->setRealm((char const *)arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipStack_setIMPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setIMPI",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIMPI" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIMPI" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->setIMPI((char const *)arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipStack_setIMPU(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setIMPU",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIMPU" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIMPU" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->setIMPU((char const *)arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipStack_setPassword(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setPassword",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setPassword" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setPassword" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->setPassword((char const *)arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipStack_setProxyCSCF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - unsigned int arg3 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:SipStack_setProxyCSCF",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setProxyCSCF" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setProxyCSCF" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipStack_setProxyCSCF" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_setProxyCSCF" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "SipStack_setProxyCSCF" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (bool)(arg1)->setProxyCSCF((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipStack_setLocalIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setLocalIP",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setLocalIP" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setLocalIP" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->setLocalIP((char const *)arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipStack_setLocalPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - unsigned int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setLocalPort",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setLocalPort" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setLocalPort" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - result = (bool)(arg1)->setLocalPort(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipStack_setEarlyIMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - bool arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setEarlyIMS",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setEarlyIMS" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - ecode2 = SWIG_AsVal_bool(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setEarlyIMS" "', argument " "2"" of type '" "bool""'"); - } - arg2 = static_cast< bool >(val2); - result = (bool)(arg1)->setEarlyIMS(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipStack_addHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SipStack_addHeader",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_addHeader" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_addHeader" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_addHeader" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipStack_removeHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_removeHeader",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_removeHeader" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_removeHeader" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->removeHeader((char const *)arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipStack_addDnsServer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_addDnsServer",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_addDnsServer" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_addDnsServer" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (bool)(arg1)->addDnsServer((char const *)arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipStack_isValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:SipStack_isValid",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_isValid" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - result = (bool)(arg1)->isValid(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SipStack_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SipStack *arg1 = (SipStack *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:SipStack_stop",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_stop" "', argument " "1"" of type '" "SipStack *""'"); - } - arg1 = reinterpret_cast< SipStack * >(argp1); - result = (bool)(arg1)->stop(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *SipStack_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_SipStack, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -static PyMethodDef SwigMethods[] = { - { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL}, - { (char *)"new_SipUri", _wrap_new_SipUri, METH_VARARGS, NULL}, - { (char *)"delete_SipUri", _wrap_delete_SipUri, METH_VARARGS, NULL}, - { (char *)"SipUri_isValid", _wrap_SipUri_isValid, METH_VARARGS, NULL}, - { (char *)"SipUri_swigregister", SipUri_swigregister, METH_VARARGS, NULL}, - { (char *)"new_SipEvent", _wrap_new_SipEvent, METH_VARARGS, NULL}, - { (char *)"delete_SipEvent", _wrap_delete_SipEvent, METH_VARARGS, NULL}, - { (char *)"SipEvent_getCode", _wrap_SipEvent_getCode, METH_VARARGS, NULL}, - { (char *)"SipEvent_getPhrase", _wrap_SipEvent_getPhrase, METH_VARARGS, NULL}, - { (char *)"SipEvent_getBaseSession", _wrap_SipEvent_getBaseSession, METH_VARARGS, NULL}, - { (char *)"SipEvent_swigregister", SipEvent_swigregister, METH_VARARGS, NULL}, - { (char *)"new_SipSession", _wrap_new_SipSession, METH_VARARGS, NULL}, - { (char *)"delete_SipSession", _wrap_delete_SipSession, METH_VARARGS, NULL}, - { (char *)"SipSession_addHeader", _wrap_SipSession_addHeader, METH_VARARGS, NULL}, - { (char *)"SipSession_removeHeader", _wrap_SipSession_removeHeader, METH_VARARGS, NULL}, - { (char *)"SipSession_addCaps", _wrap_SipSession_addCaps, METH_VARARGS, NULL}, - { (char *)"SipSession_removeCaps", _wrap_SipSession_removeCaps, METH_VARARGS, NULL}, - { (char *)"SipSession_setExpires", _wrap_SipSession_setExpires, METH_VARARGS, NULL}, - { (char *)"SipSession_setFromUri", _wrap_SipSession_setFromUri, METH_VARARGS, NULL}, - { (char *)"SipSession_setToUri", _wrap_SipSession_setToUri, METH_VARARGS, NULL}, - { (char *)"SipSession_setPayload", _wrap_SipSession_setPayload, METH_VARARGS, NULL}, - { (char *)"SipSession_swigregister", SipSession_swigregister, METH_VARARGS, NULL}, - { (char *)"new_RegistrationEvent", _wrap_new_RegistrationEvent, METH_VARARGS, NULL}, - { (char *)"delete_RegistrationEvent", _wrap_delete_RegistrationEvent, METH_VARARGS, NULL}, - { (char *)"RegistrationEvent_getType", _wrap_RegistrationEvent_getType, METH_VARARGS, NULL}, - { (char *)"RegistrationEvent_getSession", _wrap_RegistrationEvent_getSession, METH_VARARGS, NULL}, - { (char *)"RegistrationEvent_swigregister", RegistrationEvent_swigregister, METH_VARARGS, NULL}, - { (char *)"new_RegistrationSession", _wrap_new_RegistrationSession, METH_VARARGS, NULL}, - { (char *)"delete_RegistrationSession", _wrap_delete_RegistrationSession, METH_VARARGS, NULL}, - { (char *)"RegistrationSession_Register", _wrap_RegistrationSession_Register, METH_VARARGS, NULL}, - { (char *)"RegistrationSession_UnRegister", _wrap_RegistrationSession_UnRegister, METH_VARARGS, NULL}, - { (char *)"RegistrationSession_swigregister", RegistrationSession_swigregister, METH_VARARGS, NULL}, - { (char *)"new_SubscriptionEvent", _wrap_new_SubscriptionEvent, METH_VARARGS, NULL}, - { (char *)"delete_SubscriptionEvent", _wrap_delete_SubscriptionEvent, METH_VARARGS, NULL}, - { (char *)"SubscriptionEvent_getType", _wrap_SubscriptionEvent_getType, METH_VARARGS, NULL}, - { (char *)"SubscriptionEvent_getSession", _wrap_SubscriptionEvent_getSession, METH_VARARGS, NULL}, - { (char *)"SubscriptionEvent_swigregister", SubscriptionEvent_swigregister, METH_VARARGS, NULL}, - { (char *)"new_SubscriptionSession", _wrap_new_SubscriptionSession, METH_VARARGS, NULL}, - { (char *)"delete_SubscriptionSession", _wrap_delete_SubscriptionSession, METH_VARARGS, NULL}, - { (char *)"SubscriptionSession_Subscribe", _wrap_SubscriptionSession_Subscribe, METH_VARARGS, NULL}, - { (char *)"SubscriptionSession_UnSubscribe", _wrap_SubscriptionSession_UnSubscribe, METH_VARARGS, NULL}, - { (char *)"SubscriptionSession_swigregister", SubscriptionSession_swigregister, METH_VARARGS, NULL}, - { (char *)"new_SipCallback", _wrap_new_SipCallback, METH_VARARGS, NULL}, - { (char *)"delete_SipCallback", _wrap_delete_SipCallback, METH_VARARGS, NULL}, - { (char *)"SipCallback_OnRegistrationChanged", _wrap_SipCallback_OnRegistrationChanged, METH_VARARGS, NULL}, - { (char *)"SipCallback_OnSubscriptionChanged", _wrap_SipCallback_OnSubscriptionChanged, METH_VARARGS, NULL}, - { (char *)"disown_SipCallback", _wrap_disown_SipCallback, METH_VARARGS, NULL}, - { (char *)"SipCallback_swigregister", SipCallback_swigregister, METH_VARARGS, NULL}, - { (char *)"new_SipDebugCallback", _wrap_new_SipDebugCallback, METH_VARARGS, NULL}, - { (char *)"delete_SipDebugCallback", _wrap_delete_SipDebugCallback, METH_VARARGS, NULL}, - { (char *)"SipDebugCallback_OnDebugInfo", _wrap_SipDebugCallback_OnDebugInfo, METH_VARARGS, NULL}, - { (char *)"SipDebugCallback_OnDebugWarn", _wrap_SipDebugCallback_OnDebugWarn, METH_VARARGS, NULL}, - { (char *)"SipDebugCallback_OnDebugError", _wrap_SipDebugCallback_OnDebugError, METH_VARARGS, NULL}, - { (char *)"SipDebugCallback_OnDebugFatal", _wrap_SipDebugCallback_OnDebugFatal, METH_VARARGS, NULL}, - { (char *)"disown_SipDebugCallback", _wrap_disown_SipDebugCallback, METH_VARARGS, NULL}, - { (char *)"SipDebugCallback_swigregister", SipDebugCallback_swigregister, METH_VARARGS, NULL}, - { (char *)"new_SafeObject", _wrap_new_SafeObject, METH_VARARGS, NULL}, - { (char *)"delete_SafeObject", _wrap_delete_SafeObject, METH_VARARGS, NULL}, - { (char *)"SafeObject_Lock", _wrap_SafeObject_Lock, METH_VARARGS, NULL}, - { (char *)"SafeObject_UnLock", _wrap_SafeObject_UnLock, METH_VARARGS, NULL}, - { (char *)"SafeObject_swigregister", SafeObject_swigregister, METH_VARARGS, NULL}, - { (char *)"new_SipStack", _wrap_new_SipStack, METH_VARARGS, NULL}, - { (char *)"delete_SipStack", _wrap_delete_SipStack, METH_VARARGS, NULL}, - { (char *)"SipStack_start", _wrap_SipStack_start, METH_VARARGS, NULL}, - { (char *)"SipStack_setDebugCallback", _wrap_SipStack_setDebugCallback, METH_VARARGS, NULL}, - { (char *)"SipStack_setRealm", _wrap_SipStack_setRealm, METH_VARARGS, NULL}, - { (char *)"SipStack_setIMPI", _wrap_SipStack_setIMPI, METH_VARARGS, NULL}, - { (char *)"SipStack_setIMPU", _wrap_SipStack_setIMPU, METH_VARARGS, NULL}, - { (char *)"SipStack_setPassword", _wrap_SipStack_setPassword, METH_VARARGS, NULL}, - { (char *)"SipStack_setProxyCSCF", _wrap_SipStack_setProxyCSCF, METH_VARARGS, NULL}, - { (char *)"SipStack_setLocalIP", _wrap_SipStack_setLocalIP, METH_VARARGS, NULL}, - { (char *)"SipStack_setLocalPort", _wrap_SipStack_setLocalPort, METH_VARARGS, NULL}, - { (char *)"SipStack_setEarlyIMS", _wrap_SipStack_setEarlyIMS, METH_VARARGS, NULL}, - { (char *)"SipStack_addHeader", _wrap_SipStack_addHeader, METH_VARARGS, NULL}, - { (char *)"SipStack_removeHeader", _wrap_SipStack_removeHeader, METH_VARARGS, NULL}, - { (char *)"SipStack_addDnsServer", _wrap_SipStack_addDnsServer, METH_VARARGS, NULL}, - { (char *)"SipStack_isValid", _wrap_SipStack_isValid, METH_VARARGS, NULL}, - { (char *)"SipStack_stop", _wrap_SipStack_stop, METH_VARARGS, NULL}, - { (char *)"SipStack_swigregister", SipStack_swigregister, METH_VARARGS, NULL}, - { NULL, NULL, 0, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static void *_p_RegistrationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((SipSession *) ((RegistrationSession *) x)); -} -static void *_p_SubscriptionSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((SipSession *) ((SubscriptionSession *) x)); -} -static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((SafeObject *) ((SipStack *) x)); -} -static void *_p_RegistrationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((SipEvent *) ((RegistrationEvent *) x)); -} -static void *_p_SubscriptionEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((SipEvent *) ((SubscriptionEvent *) x)); -} -static swig_type_info _swigt__p_RegistrationEvent = {"_p_RegistrationEvent", "RegistrationEvent *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_RegistrationSession = {"_p_RegistrationSession", "RegistrationSession *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_SafeObject = {"_p_SafeObject", "SafeObject *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_SipCallback = {"_p_SipCallback", "SipCallback *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_SipDebugCallback = {"_p_SipDebugCallback", "SipDebugCallback *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_SipEvent = {"_p_SipEvent", "SipEvent *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_SipSession = {"_p_SipSession", "SipSession *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_SipStack = {"_p_SipStack", "SipStack *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_SipUri = {"_p_SipUri", "SipUri *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_SubscriptionEvent = {"_p_SubscriptionEvent", "SubscriptionEvent *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_SubscriptionSession = {"_p_SubscriptionSession", "SubscriptionSession *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_tsip_event_type_e = {"_p_tsip_event_type_e", "enum tsip_event_type_e *|tsip_event_type_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_tsip_register_event_type_e = {"_p_tsip_register_event_type_e", "enum tsip_register_event_type_e *|tsip_register_event_type_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_tsip_subscribe_event_type_e = {"_p_tsip_subscribe_event_type_e", "enum tsip_subscribe_event_type_e *|tsip_subscribe_event_type_t *", 0, 0, (void*)0, 0}; - -static swig_type_info *swig_type_initial[] = { - &_swigt__p_RegistrationEvent, - &_swigt__p_RegistrationSession, - &_swigt__p_SafeObject, - &_swigt__p_SipCallback, - &_swigt__p_SipDebugCallback, - &_swigt__p_SipEvent, - &_swigt__p_SipSession, - &_swigt__p_SipStack, - &_swigt__p_SipUri, - &_swigt__p_SubscriptionEvent, - &_swigt__p_SubscriptionSession, - &_swigt__p_char, - &_swigt__p_tsip_event_type_e, - &_swigt__p_tsip_register_event_type_e, - &_swigt__p_tsip_subscribe_event_type_e, -}; - -static swig_cast_info _swigc__p_RegistrationEvent[] = { {&_swigt__p_RegistrationEvent, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_RegistrationSession[] = { {&_swigt__p_RegistrationSession, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SafeObject[] = { {&_swigt__p_SipStack, _p_SipStackTo_p_SafeObject, 0, 0}, {&_swigt__p_SafeObject, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SipCallback[] = { {&_swigt__p_SipCallback, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SipDebugCallback[] = { {&_swigt__p_SipDebugCallback, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_RegistrationEvent, _p_RegistrationEventTo_p_SipEvent, 0, 0}, {&_swigt__p_SubscriptionEvent, _p_SubscriptionEventTo_p_SipEvent, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SipSession[] = { {&_swigt__p_SipSession, 0, 0, 0}, {&_swigt__p_RegistrationSession, _p_RegistrationSessionTo_p_SipSession, 0, 0}, {&_swigt__p_SubscriptionSession, _p_SubscriptionSessionTo_p_SipSession, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SipStack[] = { {&_swigt__p_SipStack, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SipUri[] = { {&_swigt__p_SipUri, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SubscriptionEvent[] = { {&_swigt__p_SubscriptionEvent, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SubscriptionSession[] = { {&_swigt__p_SubscriptionSession, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_tsip_event_type_e[] = { {&_swigt__p_tsip_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_tsip_register_event_type_e[] = { {&_swigt__p_tsip_register_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_tsip_subscribe_event_type_e[] = { {&_swigt__p_tsip_subscribe_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; - -static swig_cast_info *swig_cast_initial[] = { - _swigc__p_RegistrationEvent, - _swigc__p_RegistrationSession, - _swigc__p_SafeObject, - _swigc__p_SipCallback, - _swigc__p_SipDebugCallback, - _swigc__p_SipEvent, - _swigc__p_SipSession, - _swigc__p_SipStack, - _swigc__p_SipUri, - _swigc__p_SubscriptionEvent, - _swigc__p_SubscriptionSession, - _swigc__p_char, - _swigc__p_tsip_event_type_e, - _swigc__p_tsip_register_event_type_e, - _swigc__p_tsip_subscribe_event_type_e, -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{0, 0, 0, 0.0, 0, 0}}; - -#ifdef __cplusplus -} -#endif + +/* -------- TYPES TABLE (BEGIN) -------- */ + +#define SWIGTYPE_p_RegistrationEvent swig_types[0] +#define SWIGTYPE_p_RegistrationSession swig_types[1] +#define SWIGTYPE_p_SafeObject swig_types[2] +#define SWIGTYPE_p_SipCallback swig_types[3] +#define SWIGTYPE_p_SipDebugCallback swig_types[4] +#define SWIGTYPE_p_SipEvent swig_types[5] +#define SWIGTYPE_p_SipSession swig_types[6] +#define SWIGTYPE_p_SipStack swig_types[7] +#define SWIGTYPE_p_SipUri swig_types[8] +#define SWIGTYPE_p_SubscriptionEvent swig_types[9] +#define SWIGTYPE_p_SubscriptionSession swig_types[10] +#define SWIGTYPE_p_char swig_types[11] +#define SWIGTYPE_p_tsip_event_type_e swig_types[12] +#define SWIGTYPE_p_tsip_register_event_type_e swig_types[13] +#define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[14] +static swig_type_info *swig_types[16]; +static swig_module_info swig_module = {swig_types, 15, 0, 0, 0, 0}; +#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) +#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) + +/* -------- TYPES TABLE (END) -------- */ + +#if (PY_VERSION_HEX <= 0x02000000) +# if !defined(SWIG_PYTHON_CLASSIC) +# error "This python version requires swig to be run with the '-classic' option" +# endif +#endif + +/*----------------------------------------------- + @(target):= _tinyWRAP.so + ------------------------------------------------*/ +#if PY_VERSION_HEX >= 0x03000000 +# define SWIG_init PyInit__tinyWRAP + +#else +# define SWIG_init init_tinyWRAP + +#endif +#define SWIG_name "_tinyWRAP" + +#define SWIGVERSION 0x010339 +#define SWIG_VERSION SWIGVERSION + + +#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) +#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) + + +#include + + +namespace swig { + class SwigPtr_PyObject { + protected: + PyObject *_obj; + + public: + SwigPtr_PyObject() :_obj(0) + { + } + + SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) + { + Py_XINCREF(_obj); + } + + SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) + { + if (initial_ref) { + Py_XINCREF(_obj); + } + } + + SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) + { + Py_XINCREF(item._obj); + Py_XDECREF(_obj); + _obj = item._obj; + return *this; + } + + ~SwigPtr_PyObject() + { + Py_XDECREF(_obj); + } + + operator PyObject *() const + { + return _obj; + } + + PyObject *operator->() const + { + return _obj; + } + }; +} + + +namespace swig { + struct SwigVar_PyObject : SwigPtr_PyObject { + SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } + + SwigVar_PyObject & operator = (PyObject* obj) + { + Py_XDECREF(_obj); + _obj = obj; + return *this; + } + }; +} + + +#include "SipUri.h" +#include "SipEvent.h" +#include "SipSession.h" +#include "RegistrationEvent.h" +#include "RegistrationSession.h" +#include "SubscriptionEvent.h" +#include "SubscriptionSession.h" +#include "SipCallback.h" +#include "SipDebug.h" +#include "SafeObject.h" +#include "SipStack.h" + + +SWIGINTERN swig_type_info* +SWIG_pchar_descriptor(void) +{ + static int init = 0; + static swig_type_info* info = 0; + if (!init) { + info = SWIG_TypeQuery("_p_char"); + init = 1; + } + return info; +} + + +SWIGINTERN int +SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) +{ +#if PY_VERSION_HEX>=0x03000000 + if (PyUnicode_Check(obj)) +#else + if (PyString_Check(obj)) +#endif + { + char *cstr; Py_ssize_t len; +#if PY_VERSION_HEX>=0x03000000 + obj = PyUnicode_AsUTF8String(obj); + PyBytes_AsStringAndSize(obj, &cstr, &len); +#else + PyString_AsStringAndSize(obj, &cstr, &len); +#endif + if (cptr) { + if (alloc) { + /* + In python the user should not be able to modify the inner + string representation. To warranty that, if you define + SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string + buffer is always returned. + + The default behavior is just to return the pointer value, + so, be careful. + */ +#if defined(SWIG_PYTHON_SAFE_CSTRINGS) + if (*alloc != SWIG_OLDOBJ) +#else + if (*alloc == SWIG_NEWOBJ) +#endif + { + *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); + *alloc = SWIG_NEWOBJ; + } + else { + *cptr = cstr; + *alloc = SWIG_OLDOBJ; + } + } else { + *cptr = SWIG_Python_str_AsChar(obj); + } + } + if (psize) *psize = len + 1; + return SWIG_OK; + } else { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + if (pchar_descriptor) { + void* vptr = 0; + if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { + if (cptr) *cptr = (char *) vptr; + if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; + if (alloc) *alloc = SWIG_OLDOBJ; + return SWIG_OK; + } + } + } + return SWIG_TypeError; +} + + + + + +SWIGINTERNINLINE PyObject* + SWIG_From_bool (bool value) +{ + return PyBool_FromLong(value ? 1 : 0); +} + + + #define SWIG_From_long PyInt_FromLong + + +SWIGINTERNINLINE PyObject * +SWIG_From_short (short value) +{ + return SWIG_From_long (value); +} + + +SWIGINTERNINLINE PyObject * +SWIG_FromCharPtrAndSize(const char* carray, size_t size) +{ + if (carray) { + if (size > INT_MAX) { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + return pchar_descriptor ? + SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void(); + } else { +#if PY_VERSION_HEX >= 0x03000000 + return PyUnicode_FromStringAndSize(carray, static_cast< int >(size)); +#else + return PyString_FromStringAndSize(carray, static_cast< int >(size)); +#endif + } + } else { + return SWIG_Py_Void(); + } +} + + +SWIGINTERNINLINE PyObject * +SWIG_FromCharPtr(const char *cptr) +{ + return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); +} + + +#include +#if !defined(SWIG_NO_LLONG_MAX) +# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) +# define LLONG_MAX __LONG_LONG_MAX__ +# define LLONG_MIN (-LLONG_MAX - 1LL) +# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) +# endif +#endif + + +SWIGINTERN int +SWIG_AsVal_double (PyObject *obj, double *val) +{ + int res = SWIG_TypeError; + if (PyFloat_Check(obj)) { + if (val) *val = PyFloat_AsDouble(obj); + return SWIG_OK; + } else if (PyInt_Check(obj)) { + if (val) *val = PyInt_AsLong(obj); + return SWIG_OK; + } else if (PyLong_Check(obj)) { + double v = PyLong_AsDouble(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + double d = PyFloat_AsDouble(obj); + if (!PyErr_Occurred()) { + if (val) *val = d; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + long v = PyLong_AsLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_AddCast(SWIG_OK)); + } else { + PyErr_Clear(); + } + } + } +#endif + return res; +} + + +#include + + +#include + + +SWIGINTERNINLINE int +SWIG_CanCastAsInteger(double *d, double min, double max) { + double x = *d; + if ((min <= x && x <= max)) { + double fx = floor(x); + double cx = ceil(x); + double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ + if ((errno == EDOM) || (errno == ERANGE)) { + errno = 0; + } else { + double summ, reps, diff; + if (rd < x) { + diff = x - rd; + } else if (rd > x) { + diff = rd - x; + } else { + return 1; + } + summ = rd + x; + reps = diff/summ; + if (reps < 8*DBL_EPSILON) { + *d = rd; + return 1; + } + } + } + return 0; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) +{ + if (PyInt_Check(obj)) { + long v = PyInt_AsLong(obj); + if (v >= 0) { + if (val) *val = v; + return SWIG_OK; + } else { + return SWIG_OverflowError; + } + } else if (PyLong_Check(obj)) { + unsigned long v = PyLong_AsUnsignedLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + unsigned long v = PyLong_AsUnsignedLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + double d; + int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { + if (val) *val = (unsigned long)(d); + return res; + } + } + } +#endif + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v > UINT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< unsigned int >(v); + } + } + return res; +} + + +SWIGINTERNINLINE PyObject * +SWIG_From_int (int value) +{ + return SWIG_From_long (value); +} + + +SWIGINTERN int +SWIG_AsVal_long (PyObject *obj, long* val) +{ + if (PyInt_Check(obj)) { + if (val) *val = PyInt_AsLong(obj); + return SWIG_OK; + } else if (PyLong_Check(obj)) { + long v = PyLong_AsLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + long v = PyInt_AsLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + double d; + int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { + if (val) *val = (long)(d); + return res; + } + } + } +#endif + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_int (PyObject * obj, int *val) +{ + long v; + int res = SWIG_AsVal_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v < INT_MIN || v > INT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< int >(v); + } + } + return res; +} + + +SWIGINTERN int +SWIG_AsVal_bool (PyObject *obj, bool *val) +{ + int r = PyObject_IsTrue(obj); + if (r == -1) + return SWIG_ERROR; + if (val) *val = r ? true : false; + return SWIG_OK; +} + + + +/* --------------------------------------------------- + * C++ director class methods + * --------------------------------------------------- */ + +#include "python/tinyWRAP_wrap.h" + +SwigDirector_SipCallback::SwigDirector_SipCallback(PyObject *self): SipCallback(), Swig::Director(self) { + SWIG_DIRECTOR_RGTR((SipCallback *)this, this); +} + + + + +SwigDirector_SipCallback::~SwigDirector_SipCallback() { +} + +int SwigDirector_SipCallback::OnRegistrationChanged(RegistrationEvent const *e) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_RegistrationEvent, 0 ); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 0; + const char * const swig_method_name = "OnRegistrationChanged"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnRegistrationChanged", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (result == NULL) { + PyObject *error = PyErr_Occurred(); + if (error != NULL) { + Swig::DirectorMethodException::raise("Error detected when calling 'SipCallback.OnRegistrationChanged'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_SipCallback::OnSubscriptionChanged(SubscriptionEvent const *e) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_SubscriptionEvent, 0 ); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 1; + const char * const swig_method_name = "OnSubscriptionChanged"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnSubscriptionChanged", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (result == NULL) { + PyObject *error = PyErr_Occurred(); + if (error != NULL) { + Swig::DirectorMethodException::raise("Error detected when calling 'SipCallback.OnSubscriptionChanged'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +SwigDirector_SipDebugCallback::SwigDirector_SipDebugCallback(PyObject *self): SipDebugCallback(), Swig::Director(self) { + SWIG_DIRECTOR_RGTR((SipDebugCallback *)this, this); +} + + + + +SwigDirector_SipDebugCallback::~SwigDirector_SipDebugCallback() { +} + +int SwigDirector_SipDebugCallback::OnDebugInfo(char const *message) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_FromCharPtr((const char *)message); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipDebugCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 0; + const char * const swig_method_name = "OnDebugInfo"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnDebugInfo", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (result == NULL) { + PyObject *error = PyErr_Occurred(); + if (error != NULL) { + Swig::DirectorMethodException::raise("Error detected when calling 'SipDebugCallback.OnDebugInfo'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_SipDebugCallback::OnDebugWarn(char const *message) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_FromCharPtr((const char *)message); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipDebugCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 1; + const char * const swig_method_name = "OnDebugWarn"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnDebugWarn", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (result == NULL) { + PyObject *error = PyErr_Occurred(); + if (error != NULL) { + Swig::DirectorMethodException::raise("Error detected when calling 'SipDebugCallback.OnDebugWarn'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_SipDebugCallback::OnDebugError(char const *message) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_FromCharPtr((const char *)message); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipDebugCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 2; + const char * const swig_method_name = "OnDebugError"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnDebugError", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (result == NULL) { + PyObject *error = PyErr_Occurred(); + if (error != NULL) { + Swig::DirectorMethodException::raise("Error detected when calling 'SipDebugCallback.OnDebugError'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_SipDebugCallback::OnDebugFatal(char const *message) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_FromCharPtr((const char *)message); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipDebugCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 3; + const char * const swig_method_name = "OnDebugFatal"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnDebugFatal", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (result == NULL) { + PyObject *error = PyErr_Occurred(); + if (error != NULL) { + Swig::DirectorMethodException::raise("Error detected when calling 'SipDebugCallback.OnDebugFatal'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +#ifdef __cplusplus +extern "C" { +#endif +SWIGINTERN PyObject *_wrap_new_SipUri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + PyObject * obj0 = 0 ; + SipUri *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_SipUri",&obj0)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipUri" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + result = (SipUri *)new SipUri((char const *)arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipUri, SWIG_POINTER_NEW | 0 ); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SipUri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SipUri",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipUri, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipUri" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipUri_isValid__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipUri_isValid",&obj0)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_isValid" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + result = (bool)SipUri::isValid((char const *)arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipUri_isValid__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipUri_isValid",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_isValid" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + result = (bool)(arg1)->isValid(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipUri_isValid(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[2]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 1); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipUri_isValid__SWIG_1(self, args); + } + } + if (argc == 1) { + int _v; + int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipUri_isValid__SWIG_0(self, args); + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'SipUri_isValid'.\n" + " Possible C/C++ prototypes are:\n" + " isValid(char const *)\n" + " isValid(SipUri *)\n"); + return NULL; +} + + +SWIGINTERN PyObject *SipUri_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SipUri, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SipEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipEvent *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_SipEvent")) SWIG_fail; + result = (SipEvent *)new SipEvent(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipEvent, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SipEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SipEvent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipEvent" "', argument " "1"" of type '" "SipEvent *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipEvent_getCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + short result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipEvent_getCode",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getCode" "', argument " "1"" of type '" "SipEvent const *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (short)((SipEvent const *)arg1)->getCode(); + resultobj = SWIG_From_short(static_cast< short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipEvent_getPhrase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SipEvent_getPhrase",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getPhrase" "', argument " "1"" of type '" "SipEvent const *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (char *)((SipEvent const *)arg1)->getPhrase(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipEvent_getBaseSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + SipSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SipEvent_getBaseSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getBaseSession" "', argument " "1"" of type '" "SipEvent const *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (SipSession *)((SipEvent const *)arg1)->getBaseSession(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipSession, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SipEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SipEvent, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SipSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + SipSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_SipSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (SipSession *)new SipSession(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipSession, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SipSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SipSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipSession" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_addHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SipSession_addHeader",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addHeader" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipSession_addHeader" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_removeHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_removeHeader",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_removeHeader" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_removeHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeHeader((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_addCaps__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SipSession_addCaps",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addCaps" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addCaps" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipSession_addCaps" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addCaps((char const *)arg2,(char const *)arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_addCaps__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_addCaps",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addCaps" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addCaps" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->addCaps((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_addCaps(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 3); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipSession_addCaps__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipSession_addCaps__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'SipSession_addCaps'.\n" + " Possible C/C++ prototypes are:\n" + " addCaps(SipSession *,char const *,char const *)\n" + " addCaps(SipSession *,char const *)\n"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_removeCaps(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_removeCaps",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_removeCaps" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_removeCaps" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeCaps((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_setExpires(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_setExpires",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setExpires" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipSession_setExpires" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setExpires(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_setFromUri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_setFromUri",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setFromUri" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setFromUri" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setFromUri((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_setToUri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_setToUri",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setToUri" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setToUri" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setToUri((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_setPayload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SipSession_setPayload",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setPayload" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setPayload" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipSession_setPayload" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->setPayload((char const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *SipSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SipSession, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_RegistrationEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationEvent *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_RegistrationEvent")) SWIG_fail; + result = (RegistrationEvent *)new RegistrationEvent(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationEvent, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_RegistrationEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_RegistrationEvent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegistrationEvent" "', argument " "1"" of type '" "RegistrationEvent *""'"); + } + arg1 = reinterpret_cast< RegistrationEvent * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RegistrationEvent_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + tsip_register_event_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:RegistrationEvent_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationEvent_getType" "', argument " "1"" of type '" "RegistrationEvent const *""'"); + } + arg1 = reinterpret_cast< RegistrationEvent * >(argp1); + result = (tsip_register_event_type_t)((RegistrationEvent const *)arg1)->getType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RegistrationEvent_getSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + RegistrationSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:RegistrationEvent_getSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationEvent_getSession" "', argument " "1"" of type '" "RegistrationEvent const *""'"); + } + arg1 = reinterpret_cast< RegistrationEvent * >(argp1); + result = (RegistrationSession *)((RegistrationEvent const *)arg1)->getSession(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationSession, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *RegistrationEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_RegistrationEvent, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_RegistrationSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + RegistrationSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_RegistrationSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegistrationSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (RegistrationSession *)new RegistrationSession(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationSession, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_RegistrationSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_RegistrationSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegistrationSession" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RegistrationSession_Register(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:RegistrationSession_Register",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_Register" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + result = (bool)(arg1)->Register(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RegistrationSession_UnRegister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:RegistrationSession_UnRegister",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_UnRegister" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + result = (bool)(arg1)->UnRegister(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *RegistrationSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_RegistrationSession, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SubscriptionEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SubscriptionEvent *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_SubscriptionEvent")) SWIG_fail; + result = (SubscriptionEvent *)new SubscriptionEvent(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionEvent, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SubscriptionEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SubscriptionEvent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SubscriptionEvent" "', argument " "1"" of type '" "SubscriptionEvent *""'"); + } + arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SubscriptionEvent_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + tsip_subscribe_event_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:SubscriptionEvent_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionEvent_getType" "', argument " "1"" of type '" "SubscriptionEvent const *""'"); + } + arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); + result = (tsip_subscribe_event_type_t)((SubscriptionEvent const *)arg1)->getType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SubscriptionEvent_getSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + SubscriptionSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SubscriptionEvent_getSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionEvent_getSession" "', argument " "1"" of type '" "SubscriptionEvent const *""'"); + } + arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); + result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->getSession(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionSession, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SubscriptionEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SubscriptionEvent, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SubscriptionSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + SubscriptionSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_SubscriptionSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SubscriptionSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (SubscriptionSession *)new SubscriptionSession(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionSession, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SubscriptionSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SubscriptionSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SubscriptionSession" "', argument " "1"" of type '" "SubscriptionSession *""'"); + } + arg1 = reinterpret_cast< SubscriptionSession * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SubscriptionSession_Subscribe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SubscriptionSession_Subscribe",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionSession_Subscribe" "', argument " "1"" of type '" "SubscriptionSession *""'"); + } + arg1 = reinterpret_cast< SubscriptionSession * >(argp1); + result = (bool)(arg1)->Subscribe(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SubscriptionSession_UnSubscribe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SubscriptionSession_UnSubscribe",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionSession_UnSubscribe" "', argument " "1"" of type '" "SubscriptionSession *""'"); + } + arg1 = reinterpret_cast< SubscriptionSession * >(argp1); + result = (bool)(arg1)->UnSubscribe(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SubscriptionSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SubscriptionSession, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SipCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PyObject *arg1 = (PyObject *) 0 ; + PyObject * obj0 = 0 ; + SipCallback *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_SipCallback",&obj0)) SWIG_fail; + arg1 = obj0; + if ( arg1 != Py_None ) { + /* subclassed */ + result = (SipCallback *)new SwigDirector_SipCallback(arg1); + } else { + result = (SipCallback *)new SipCallback(); + } + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipCallback, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SipCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SipCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipCallback" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipCallback_OnRegistrationChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipCallback_OnRegistrationChanged",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnRegistrationChanged" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnRegistrationChanged" "', argument " "2"" of type '" "RegistrationEvent const *""'"); + } + arg2 = reinterpret_cast< RegistrationEvent * >(argp2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->SipCallback::OnRegistrationChanged((RegistrationEvent const *)arg2); + } else { + result = (int)(arg1)->OnRegistrationChanged((RegistrationEvent const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipCallback_OnSubscriptionChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipCallback_OnSubscriptionChanged",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnSubscriptionChanged" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnSubscriptionChanged" "', argument " "2"" of type '" "SubscriptionEvent const *""'"); + } + arg2 = reinterpret_cast< SubscriptionEvent * >(argp2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->SipCallback::OnSubscriptionChanged((SubscriptionEvent const *)arg2); + } else { + result = (int)(arg1)->OnSubscriptionChanged((SubscriptionEvent const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_disown_SipCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:disown_SipCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_SipCallback" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + { + Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); + if (director) director->swig_disown(); + } + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SipCallback_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SipCallback, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SipDebugCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PyObject *arg1 = (PyObject *) 0 ; + PyObject * obj0 = 0 ; + SipDebugCallback *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_SipDebugCallback",&obj0)) SWIG_fail; + arg1 = obj0; + if ( arg1 != Py_None ) { + /* subclassed */ + result = (SipDebugCallback *)new SwigDirector_SipDebugCallback(arg1); + } else { + result = (SipDebugCallback *)new SipDebugCallback(); + } + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipDebugCallback, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SipDebugCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SipDebugCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipDebugCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipDebugCallback" "', argument " "1"" of type '" "SipDebugCallback *""'"); + } + arg1 = reinterpret_cast< SipDebugCallback * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipDebugCallback_OnDebugInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipDebugCallback_OnDebugInfo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipDebugCallback_OnDebugInfo" "', argument " "1"" of type '" "SipDebugCallback *""'"); + } + arg1 = reinterpret_cast< SipDebugCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipDebugCallback_OnDebugInfo" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->SipDebugCallback::OnDebugInfo((char const *)arg2); + } else { + result = (int)(arg1)->OnDebugInfo((char const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipDebugCallback_OnDebugWarn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipDebugCallback_OnDebugWarn",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipDebugCallback_OnDebugWarn" "', argument " "1"" of type '" "SipDebugCallback *""'"); + } + arg1 = reinterpret_cast< SipDebugCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipDebugCallback_OnDebugWarn" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->SipDebugCallback::OnDebugWarn((char const *)arg2); + } else { + result = (int)(arg1)->OnDebugWarn((char const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipDebugCallback_OnDebugError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipDebugCallback_OnDebugError",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipDebugCallback_OnDebugError" "', argument " "1"" of type '" "SipDebugCallback *""'"); + } + arg1 = reinterpret_cast< SipDebugCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipDebugCallback_OnDebugError" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->SipDebugCallback::OnDebugError((char const *)arg2); + } else { + result = (int)(arg1)->OnDebugError((char const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipDebugCallback_OnDebugFatal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipDebugCallback_OnDebugFatal",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipDebugCallback_OnDebugFatal" "', argument " "1"" of type '" "SipDebugCallback *""'"); + } + arg1 = reinterpret_cast< SipDebugCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipDebugCallback_OnDebugFatal" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->SipDebugCallback::OnDebugFatal((char const *)arg2); + } else { + result = (int)(arg1)->OnDebugFatal((char const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_disown_SipDebugCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipDebugCallback *arg1 = (SipDebugCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:disown_SipDebugCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_SipDebugCallback" "', argument " "1"" of type '" "SipDebugCallback *""'"); + } + arg1 = reinterpret_cast< SipDebugCallback * >(argp1); + { + Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); + if (director) director->swig_disown(); + } + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SipDebugCallback_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SipDebugCallback, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SafeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SafeObject *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_SafeObject")) SWIG_fail; + result = (SafeObject *)new SafeObject(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeObject, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SafeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SafeObject *arg1 = (SafeObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SafeObject",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeObject, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SafeObject" "', argument " "1"" of type '" "SafeObject *""'"); + } + arg1 = reinterpret_cast< SafeObject * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SafeObject_Lock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SafeObject *arg1 = (SafeObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:SafeObject_Lock",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeObject, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeObject_Lock" "', argument " "1"" of type '" "SafeObject const *""'"); + } + arg1 = reinterpret_cast< SafeObject * >(argp1); + result = (int)((SafeObject const *)arg1)->Lock(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SafeObject_UnLock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SafeObject *arg1 = (SafeObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:SafeObject_UnLock",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeObject, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeObject_UnLock" "', argument " "1"" of type '" "SafeObject const *""'"); + } + arg1 = reinterpret_cast< SafeObject * >(argp1); + result = (int)((SafeObject const *)arg1)->UnLock(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SafeObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SafeObject, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SipStack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + SipStack *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_SipStack",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipStack" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SipStack" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SipStack" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SipStack" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (SipStack *)new SipStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipStack, SWIG_POINTER_NEW | 0 ); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SipStack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SipStack",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipStack" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipStack_start",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_start" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (bool)(arg1)->start(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setDebugCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + SipDebugCallback *arg2 = (SipDebugCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setDebugCallback",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setDebugCallback" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SipDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setDebugCallback" "', argument " "2"" of type '" "SipDebugCallback *""'"); + } + arg2 = reinterpret_cast< SipDebugCallback * >(argp2); + result = (bool)(arg1)->setDebugCallback(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setRealm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setRealm",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setRealm" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setRealm" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setRealm((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setIMPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setIMPI",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIMPI" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIMPI" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setIMPI((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setIMPU(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setIMPU",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIMPU" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIMPU" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setIMPU((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setPassword(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setPassword",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setPassword" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setPassword" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setPassword((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setProxyCSCF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int res5 ; + char *buf5 = 0 ; + int alloc5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:SipStack_setProxyCSCF",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setProxyCSCF" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setProxyCSCF" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipStack_setProxyCSCF" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_setProxyCSCF" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "SipStack_setProxyCSCF" "', argument " "5"" of type '" "char const *""'"); + } + arg5 = reinterpret_cast< char * >(buf5); + result = (bool)(arg1)->setProxyCSCF((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setLocalIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setLocalIP",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setLocalIP" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setLocalIP" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setLocalIP((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setLocalPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setLocalPort",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setLocalPort" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setLocalPort" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setLocalPort(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setEarlyIMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setEarlyIMS",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setEarlyIMS" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setEarlyIMS" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setEarlyIMS(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_addHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SipStack_addHeader",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_addHeader" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_addHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_addHeader" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_removeHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_removeHeader",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_removeHeader" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_removeHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeHeader((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_addDnsServer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_addDnsServer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_addDnsServer" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_addDnsServer" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->addDnsServer((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_isValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipStack_isValid",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_isValid" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (bool)(arg1)->isValid(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipStack_stop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_stop" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (bool)(arg1)->stop(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SipStack_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SipStack, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +static PyMethodDef SwigMethods[] = { + { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL}, + { (char *)"new_SipUri", _wrap_new_SipUri, METH_VARARGS, NULL}, + { (char *)"delete_SipUri", _wrap_delete_SipUri, METH_VARARGS, NULL}, + { (char *)"SipUri_isValid", _wrap_SipUri_isValid, METH_VARARGS, NULL}, + { (char *)"SipUri_swigregister", SipUri_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SipEvent", _wrap_new_SipEvent, METH_VARARGS, NULL}, + { (char *)"delete_SipEvent", _wrap_delete_SipEvent, METH_VARARGS, NULL}, + { (char *)"SipEvent_getCode", _wrap_SipEvent_getCode, METH_VARARGS, NULL}, + { (char *)"SipEvent_getPhrase", _wrap_SipEvent_getPhrase, METH_VARARGS, NULL}, + { (char *)"SipEvent_getBaseSession", _wrap_SipEvent_getBaseSession, METH_VARARGS, NULL}, + { (char *)"SipEvent_swigregister", SipEvent_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SipSession", _wrap_new_SipSession, METH_VARARGS, NULL}, + { (char *)"delete_SipSession", _wrap_delete_SipSession, METH_VARARGS, NULL}, + { (char *)"SipSession_addHeader", _wrap_SipSession_addHeader, METH_VARARGS, NULL}, + { (char *)"SipSession_removeHeader", _wrap_SipSession_removeHeader, METH_VARARGS, NULL}, + { (char *)"SipSession_addCaps", _wrap_SipSession_addCaps, METH_VARARGS, NULL}, + { (char *)"SipSession_removeCaps", _wrap_SipSession_removeCaps, METH_VARARGS, NULL}, + { (char *)"SipSession_setExpires", _wrap_SipSession_setExpires, METH_VARARGS, NULL}, + { (char *)"SipSession_setFromUri", _wrap_SipSession_setFromUri, METH_VARARGS, NULL}, + { (char *)"SipSession_setToUri", _wrap_SipSession_setToUri, METH_VARARGS, NULL}, + { (char *)"SipSession_setPayload", _wrap_SipSession_setPayload, METH_VARARGS, NULL}, + { (char *)"SipSession_swigregister", SipSession_swigregister, METH_VARARGS, NULL}, + { (char *)"new_RegistrationEvent", _wrap_new_RegistrationEvent, METH_VARARGS, NULL}, + { (char *)"delete_RegistrationEvent", _wrap_delete_RegistrationEvent, METH_VARARGS, NULL}, + { (char *)"RegistrationEvent_getType", _wrap_RegistrationEvent_getType, METH_VARARGS, NULL}, + { (char *)"RegistrationEvent_getSession", _wrap_RegistrationEvent_getSession, METH_VARARGS, NULL}, + { (char *)"RegistrationEvent_swigregister", RegistrationEvent_swigregister, METH_VARARGS, NULL}, + { (char *)"new_RegistrationSession", _wrap_new_RegistrationSession, METH_VARARGS, NULL}, + { (char *)"delete_RegistrationSession", _wrap_delete_RegistrationSession, METH_VARARGS, NULL}, + { (char *)"RegistrationSession_Register", _wrap_RegistrationSession_Register, METH_VARARGS, NULL}, + { (char *)"RegistrationSession_UnRegister", _wrap_RegistrationSession_UnRegister, METH_VARARGS, NULL}, + { (char *)"RegistrationSession_swigregister", RegistrationSession_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SubscriptionEvent", _wrap_new_SubscriptionEvent, METH_VARARGS, NULL}, + { (char *)"delete_SubscriptionEvent", _wrap_delete_SubscriptionEvent, METH_VARARGS, NULL}, + { (char *)"SubscriptionEvent_getType", _wrap_SubscriptionEvent_getType, METH_VARARGS, NULL}, + { (char *)"SubscriptionEvent_getSession", _wrap_SubscriptionEvent_getSession, METH_VARARGS, NULL}, + { (char *)"SubscriptionEvent_swigregister", SubscriptionEvent_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SubscriptionSession", _wrap_new_SubscriptionSession, METH_VARARGS, NULL}, + { (char *)"delete_SubscriptionSession", _wrap_delete_SubscriptionSession, METH_VARARGS, NULL}, + { (char *)"SubscriptionSession_Subscribe", _wrap_SubscriptionSession_Subscribe, METH_VARARGS, NULL}, + { (char *)"SubscriptionSession_UnSubscribe", _wrap_SubscriptionSession_UnSubscribe, METH_VARARGS, NULL}, + { (char *)"SubscriptionSession_swigregister", SubscriptionSession_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SipCallback", _wrap_new_SipCallback, METH_VARARGS, NULL}, + { (char *)"delete_SipCallback", _wrap_delete_SipCallback, METH_VARARGS, NULL}, + { (char *)"SipCallback_OnRegistrationChanged", _wrap_SipCallback_OnRegistrationChanged, METH_VARARGS, NULL}, + { (char *)"SipCallback_OnSubscriptionChanged", _wrap_SipCallback_OnSubscriptionChanged, METH_VARARGS, NULL}, + { (char *)"disown_SipCallback", _wrap_disown_SipCallback, METH_VARARGS, NULL}, + { (char *)"SipCallback_swigregister", SipCallback_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SipDebugCallback", _wrap_new_SipDebugCallback, METH_VARARGS, NULL}, + { (char *)"delete_SipDebugCallback", _wrap_delete_SipDebugCallback, METH_VARARGS, NULL}, + { (char *)"SipDebugCallback_OnDebugInfo", _wrap_SipDebugCallback_OnDebugInfo, METH_VARARGS, NULL}, + { (char *)"SipDebugCallback_OnDebugWarn", _wrap_SipDebugCallback_OnDebugWarn, METH_VARARGS, NULL}, + { (char *)"SipDebugCallback_OnDebugError", _wrap_SipDebugCallback_OnDebugError, METH_VARARGS, NULL}, + { (char *)"SipDebugCallback_OnDebugFatal", _wrap_SipDebugCallback_OnDebugFatal, METH_VARARGS, NULL}, + { (char *)"disown_SipDebugCallback", _wrap_disown_SipDebugCallback, METH_VARARGS, NULL}, + { (char *)"SipDebugCallback_swigregister", SipDebugCallback_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SafeObject", _wrap_new_SafeObject, METH_VARARGS, NULL}, + { (char *)"delete_SafeObject", _wrap_delete_SafeObject, METH_VARARGS, NULL}, + { (char *)"SafeObject_Lock", _wrap_SafeObject_Lock, METH_VARARGS, NULL}, + { (char *)"SafeObject_UnLock", _wrap_SafeObject_UnLock, METH_VARARGS, NULL}, + { (char *)"SafeObject_swigregister", SafeObject_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SipStack", _wrap_new_SipStack, METH_VARARGS, NULL}, + { (char *)"delete_SipStack", _wrap_delete_SipStack, METH_VARARGS, NULL}, + { (char *)"SipStack_start", _wrap_SipStack_start, METH_VARARGS, NULL}, + { (char *)"SipStack_setDebugCallback", _wrap_SipStack_setDebugCallback, METH_VARARGS, NULL}, + { (char *)"SipStack_setRealm", _wrap_SipStack_setRealm, METH_VARARGS, NULL}, + { (char *)"SipStack_setIMPI", _wrap_SipStack_setIMPI, METH_VARARGS, NULL}, + { (char *)"SipStack_setIMPU", _wrap_SipStack_setIMPU, METH_VARARGS, NULL}, + { (char *)"SipStack_setPassword", _wrap_SipStack_setPassword, METH_VARARGS, NULL}, + { (char *)"SipStack_setProxyCSCF", _wrap_SipStack_setProxyCSCF, METH_VARARGS, NULL}, + { (char *)"SipStack_setLocalIP", _wrap_SipStack_setLocalIP, METH_VARARGS, NULL}, + { (char *)"SipStack_setLocalPort", _wrap_SipStack_setLocalPort, METH_VARARGS, NULL}, + { (char *)"SipStack_setEarlyIMS", _wrap_SipStack_setEarlyIMS, METH_VARARGS, NULL}, + { (char *)"SipStack_addHeader", _wrap_SipStack_addHeader, METH_VARARGS, NULL}, + { (char *)"SipStack_removeHeader", _wrap_SipStack_removeHeader, METH_VARARGS, NULL}, + { (char *)"SipStack_addDnsServer", _wrap_SipStack_addDnsServer, METH_VARARGS, NULL}, + { (char *)"SipStack_isValid", _wrap_SipStack_isValid, METH_VARARGS, NULL}, + { (char *)"SipStack_stop", _wrap_SipStack_stop, METH_VARARGS, NULL}, + { (char *)"SipStack_swigregister", SipStack_swigregister, METH_VARARGS, NULL}, + { NULL, NULL, 0, NULL } +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ + +static void *_p_RegistrationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((RegistrationSession *) x)); +} +static void *_p_SubscriptionSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((SubscriptionSession *) x)); +} +static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SafeObject *) ((SipStack *) x)); +} +static void *_p_RegistrationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((RegistrationEvent *) x)); +} +static void *_p_SubscriptionEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((SubscriptionEvent *) x)); +} +static swig_type_info _swigt__p_RegistrationEvent = {"_p_RegistrationEvent", "RegistrationEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_RegistrationSession = {"_p_RegistrationSession", "RegistrationSession *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SafeObject = {"_p_SafeObject", "SafeObject *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SipCallback = {"_p_SipCallback", "SipCallback *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SipDebugCallback = {"_p_SipDebugCallback", "SipDebugCallback *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SipEvent = {"_p_SipEvent", "SipEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SipSession = {"_p_SipSession", "SipSession *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SipStack = {"_p_SipStack", "SipStack *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SipUri = {"_p_SipUri", "SipUri *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SubscriptionEvent = {"_p_SubscriptionEvent", "SubscriptionEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SubscriptionSession = {"_p_SubscriptionSession", "SubscriptionSession *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_event_type_e = {"_p_tsip_event_type_e", "enum tsip_event_type_e *|tsip_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_register_event_type_e = {"_p_tsip_register_event_type_e", "enum tsip_register_event_type_e *|tsip_register_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_subscribe_event_type_e = {"_p_tsip_subscribe_event_type_e", "enum tsip_subscribe_event_type_e *|tsip_subscribe_event_type_t *", 0, 0, (void*)0, 0}; + +static swig_type_info *swig_type_initial[] = { + &_swigt__p_RegistrationEvent, + &_swigt__p_RegistrationSession, + &_swigt__p_SafeObject, + &_swigt__p_SipCallback, + &_swigt__p_SipDebugCallback, + &_swigt__p_SipEvent, + &_swigt__p_SipSession, + &_swigt__p_SipStack, + &_swigt__p_SipUri, + &_swigt__p_SubscriptionEvent, + &_swigt__p_SubscriptionSession, + &_swigt__p_char, + &_swigt__p_tsip_event_type_e, + &_swigt__p_tsip_register_event_type_e, + &_swigt__p_tsip_subscribe_event_type_e, +}; + +static swig_cast_info _swigc__p_RegistrationEvent[] = { {&_swigt__p_RegistrationEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_RegistrationSession[] = { {&_swigt__p_RegistrationSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SafeObject[] = { {&_swigt__p_SipStack, _p_SipStackTo_p_SafeObject, 0, 0}, {&_swigt__p_SafeObject, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipCallback[] = { {&_swigt__p_SipCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipDebugCallback[] = { {&_swigt__p_SipDebugCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_RegistrationEvent, _p_RegistrationEventTo_p_SipEvent, 0, 0}, {&_swigt__p_SubscriptionEvent, _p_SubscriptionEventTo_p_SipEvent, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipSession[] = { {&_swigt__p_SipSession, 0, 0, 0}, {&_swigt__p_RegistrationSession, _p_RegistrationSessionTo_p_SipSession, 0, 0}, {&_swigt__p_SubscriptionSession, _p_SubscriptionSessionTo_p_SipSession, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipStack[] = { {&_swigt__p_SipStack, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipUri[] = { {&_swigt__p_SipUri, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SubscriptionEvent[] = { {&_swigt__p_SubscriptionEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SubscriptionSession[] = { {&_swigt__p_SubscriptionSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_event_type_e[] = { {&_swigt__p_tsip_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_register_event_type_e[] = { {&_swigt__p_tsip_register_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_subscribe_event_type_e[] = { {&_swigt__p_tsip_subscribe_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; + +static swig_cast_info *swig_cast_initial[] = { + _swigc__p_RegistrationEvent, + _swigc__p_RegistrationSession, + _swigc__p_SafeObject, + _swigc__p_SipCallback, + _swigc__p_SipDebugCallback, + _swigc__p_SipEvent, + _swigc__p_SipSession, + _swigc__p_SipStack, + _swigc__p_SipUri, + _swigc__p_SubscriptionEvent, + _swigc__p_SubscriptionSession, + _swigc__p_char, + _swigc__p_tsip_event_type_e, + _swigc__p_tsip_register_event_type_e, + _swigc__p_tsip_subscribe_event_type_e, +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ + +static swig_const_info swig_const_table[] = { +{0, 0, 0, 0.0, 0, 0}}; + +#ifdef __cplusplus +} +#endif /* ----------------------------------------------------------------------------- * Type initialization: * This problem is tough by the requirement that no dynamic @@ -6166,124 +6166,124 @@ static swig_const_info swig_const_table[] = { * swig_cast_info to the linked list (because the cast->type) pointer will * be correct. * ----------------------------------------------------------------------------- */ - + #ifdef __cplusplus -extern "C" { +extern "C" { #if 0 } /* c-mode */ #endif #endif - + #if 0 #define SWIGRUNTIME_DEBUG #endif - - + + SWIGRUNTIME void -SWIG_InitializeModule(void *clientdata) { +SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; int found, init; - + clientdata = clientdata; - + /* check to see if the circular list has been setup, if not, set it up */ - if (swig_module.next==0) { + if (swig_module.next==0) { /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; swig_module.next = &swig_module; init = 1; - } else { + } else { init = 0; } - + /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); - if (!module_head) { + if (!module_head) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); module_head = &swig_module; - } else { + } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ found=0; iter=module_head; - do { - if (iter==&swig_module) { + do { + if (iter==&swig_module) { found=1; break; } iter=iter->next; } while (iter!= module_head); - + /* if the is found in the list, then all is done and we may leave */ if (found) return; /* otherwise we must add out module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } - + /* When multiple interpeters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ if (init == 0) return; - + /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); #endif - for (i = 0; i < swig_module.size; ++i) { + for (i = 0; i < swig_module.size; ++i) { swig_type_info *type = 0; swig_type_info *ret; swig_cast_info *cast; - + #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); #endif - + /* if there is another module already loaded */ - if (swig_module.next != &swig_module) { + if (swig_module.next != &swig_module) { type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); } - if (type) { + if (type) { /* Overwrite clientdata field */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found type %s\n", type->name); #endif - if (swig_module.type_initial[i]->clientdata) { + if (swig_module.type_initial[i]->clientdata) { type->clientdata = swig_module.type_initial[i]->clientdata; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); #endif } - } else { + } else { type = swig_module.type_initial[i]; } - + /* Insert casting types */ cast = swig_module.cast_initial[i]; - while (cast->type) { + while (cast->type) { /* Don't need to add information already in the list */ ret = 0; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); #endif - if (swig_module.next != &swig_module) { + if (swig_module.next != &swig_module) { ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); #ifdef SWIGRUNTIME_DEBUG if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); #endif } - if (ret) { - if (type == swig_module.type_initial[i]) { + if (ret) { + if (type == swig_module.type_initial[i]) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: skip old type %s\n", ret->name); #endif cast->type = ret; ret = 0; - } else { + } else { /* Check for casting already in the list */ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); #ifdef SWIGRUNTIME_DEBUG @@ -6292,12 +6292,12 @@ SWIG_InitializeModule(void *clientdata) { if (!ocast) ret = 0; } } - - if (!ret) { + + if (!ret) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); #endif - if (type->cast) { + if (type->cast) { type->cast->prev = cast; cast->next = type->cast; } @@ -6309,14 +6309,14 @@ SWIG_InitializeModule(void *clientdata) { swig_module.types[i] = type; } swig_module.types[i] = 0; - + #ifdef SWIGRUNTIME_DEBUG printf("**** SWIG_InitializeModule: Cast List ******\n"); - for (i = 0; i < swig_module.size; ++i) { + for (i = 0; i < swig_module.size; ++i) { int j = 0; swig_cast_info *cast = swig_module.cast_initial[i]; printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); - while (cast->type) { + while (cast->type) { printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); cast++; ++j; @@ -6326,26 +6326,26 @@ SWIG_InitializeModule(void *clientdata) { printf("**** SWIG_InitializeModule: Cast List ******\n"); #endif } - + /* This function will propagate the clientdata field of type to * any new swig_type_info structures that have been added into the list * of equivalent types. It is like calling * SWIG_TypeClientData(type, clientdata) a second time. */ SWIGRUNTIME void -SWIG_PropagateClientData(void) { +SWIG_PropagateClientData(void) { size_t i; swig_cast_info *equiv; static int init_run = 0; - + if (init_run) return; init_run = 1; - - for (i = 0; i < swig_module.size; i++) { - if (swig_module.types[i]->clientdata) { + + for (i = 0; i < swig_module.size; i++) { + if (swig_module.types[i]->clientdata) { equiv = swig_module.types[i]->cast; - while (equiv) { - if (!equiv->converter) { + while (equiv) { + if (!equiv->converter) { if (equiv->type && !equiv->type->clientdata) SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); } @@ -6354,387 +6354,387 @@ SWIG_PropagateClientData(void) { } } } - + #ifdef __cplusplus #if 0 -{ +{ /* c-mode */ #endif } #endif - - - -#ifdef __cplusplus -extern "C" { -#endif - - /* Python-specific SWIG API */ -#define SWIG_newvarlink() SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) - - /* ----------------------------------------------------------------------------- - * global variable support code. - * ----------------------------------------------------------------------------- */ - - typedef struct swig_globalvar { - char *name; /* Name of global variable */ - PyObject *(*get_attr)(void); /* Return the current value */ - int (*set_attr)(PyObject *); /* Set the value */ - struct swig_globalvar *next; - } swig_globalvar; - - typedef struct swig_varlinkobject { - PyObject_HEAD - swig_globalvar *vars; - } swig_varlinkobject; - - SWIGINTERN PyObject * - swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_InternFromString(""); -#else - return PyString_FromString(""); -#endif - } - - SWIGINTERN PyObject * - swig_varlink_str(swig_varlinkobject *v) { -#if PY_VERSION_HEX >= 0x03000000 - PyObject *str = PyUnicode_InternFromString("("); - PyObject *tail; - PyObject *joined; - swig_globalvar *var; - for (var = v->vars; var; var=var->next) { - tail = PyUnicode_FromString(var->name); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; - if (var->next) { - tail = PyUnicode_InternFromString(", "); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; - } - } - tail = PyUnicode_InternFromString(")"); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; -#else - PyObject *str = PyString_FromString("("); - swig_globalvar *var; - for (var = v->vars; var; var=var->next) { - PyString_ConcatAndDel(&str,PyString_FromString(var->name)); - if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); - } - PyString_ConcatAndDel(&str,PyString_FromString(")")); -#endif - return str; - } - - SWIGINTERN int - swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { - PyObject *str = swig_varlink_str(v); - fprintf(fp,"Swig global variables "); - fprintf(fp,"%s\n", SWIG_Python_str_AsChar(str)); - Py_DECREF(str); - return 0; - } - - SWIGINTERN void - swig_varlink_dealloc(swig_varlinkobject *v) { - swig_globalvar *var = v->vars; - while (var) { - swig_globalvar *n = var->next; - free(var->name); - free(var); - var = n; - } - } - - SWIGINTERN PyObject * - swig_varlink_getattr(swig_varlinkobject *v, char *n) { - PyObject *res = NULL; - swig_globalvar *var = v->vars; - while (var) { - if (strcmp(var->name,n) == 0) { - res = (*var->get_attr)(); - break; - } - var = var->next; - } - if (res == NULL && !PyErr_Occurred()) { - PyErr_SetString(PyExc_NameError,"Unknown C global variable"); - } - return res; - } - - SWIGINTERN int - swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { - int res = 1; - swig_globalvar *var = v->vars; - while (var) { - if (strcmp(var->name,n) == 0) { - res = (*var->set_attr)(p); - break; - } - var = var->next; - } - if (res == 1 && !PyErr_Occurred()) { - PyErr_SetString(PyExc_NameError,"Unknown C global variable"); - } - return res; - } - - SWIGINTERN PyTypeObject* - swig_varlink_type(void) { - static char varlink__doc__[] = "Swig var link object"; - static PyTypeObject varlink_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp - = { - /* PyObject header changed in Python 3 */ -#if PY_VERSION_HEX >= 0x03000000 - PyVarObject_HEAD_INIT(&PyType_Type, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* Number of items in variable part (ob_size) */ -#endif - (char *)"swigvarlink", /* Type name (tp_name) */ - sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ - 0, /* Itemsize (tp_itemsize) */ - (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ - (printfunc) swig_varlink_print, /* Print (tp_print) */ - (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ - (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ - 0, /* tp_compare */ - (reprfunc) swig_varlink_repr, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - 0, /* tp_hash */ - 0, /* tp_call */ - (reprfunc)swig_varlink_str, /* tp_str */ - 0, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - 0, /* tp_flags */ - varlink__doc__, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ -#endif - }; - varlink_type = tmp; - /* for Python 3 we already assigned the ob_type in PyVarObject_HEAD_INIT() */ -#if PY_VERSION_HEX < 0x03000000 - varlink_type.ob_type = &PyType_Type; -#endif - type_init = 1; - } - return &varlink_type; - } - - /* Create a variable linking object for use later */ - SWIGINTERN PyObject * - SWIG_Python_newvarlink(void) { - swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); - if (result) { - result->vars = 0; - } - return ((PyObject*) result); - } - - SWIGINTERN void - SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { - swig_varlinkobject *v = (swig_varlinkobject *) p; - swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); - if (gv) { - size_t size = strlen(name)+1; - gv->name = (char *)malloc(size); - if (gv->name) { - strncpy(gv->name,name,size); - gv->get_attr = get_attr; - gv->set_attr = set_attr; - gv->next = v->vars; - } - } - v->vars = gv; - } - - SWIGINTERN PyObject * - SWIG_globals(void) { - static PyObject *_SWIG_globals = 0; - if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); - return _SWIG_globals; - } - - /* ----------------------------------------------------------------------------- - * constants/methods manipulation - * ----------------------------------------------------------------------------- */ - - /* Install Constants */ - SWIGINTERN void - SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { - PyObject *obj = 0; - size_t i; - for (i = 0; constants[i].type; ++i) { - switch(constants[i].type) { - case SWIG_PY_POINTER: - obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); - break; - case SWIG_PY_BINARY: - obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); - break; - default: - obj = 0; - break; - } - if (obj) { - PyDict_SetItemString(d, constants[i].name, obj); - Py_DECREF(obj); - } - } - } - - /* -----------------------------------------------------------------------------*/ - /* Fix SwigMethods to carry the callback ptrs when needed */ - /* -----------------------------------------------------------------------------*/ - - SWIGINTERN void - SWIG_Python_FixMethods(PyMethodDef *methods, - swig_const_info *const_table, - swig_type_info **types, - swig_type_info **types_initial) { - size_t i; - for (i = 0; methods[i].ml_name; ++i) { - const char *c = methods[i].ml_doc; - if (c && (c = strstr(c, "swig_ptr: "))) { - int j; - swig_const_info *ci = 0; - const char *name = c + 10; - for (j = 0; const_table[j].type; ++j) { - if (strncmp(const_table[j].name, name, - strlen(const_table[j].name)) == 0) { - ci = &(const_table[j]); - break; - } - } - if (ci) { - size_t shift = (ci->ptype) - types; - swig_type_info *ty = types_initial[shift]; - size_t ldoc = (c - methods[i].ml_doc); - size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; - char *ndoc = (char*)malloc(ldoc + lptr + 10); - if (ndoc) { - char *buff = ndoc; - void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; - if (ptr) { - strncpy(buff, methods[i].ml_doc, ldoc); - buff += ldoc; - strncpy(buff, "swig_ptr: ", 10); - buff += 10; - SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); - methods[i].ml_doc = ndoc; - } - } - } - } - } - } - -#ifdef __cplusplus -} -#endif - -/* -----------------------------------------------------------------------------* - * Partial Init method - * -----------------------------------------------------------------------------*/ - -#ifdef __cplusplus -extern "C" -#endif - -SWIGEXPORT -#if PY_VERSION_HEX >= 0x03000000 -PyObject* -#else -void -#endif -SWIG_init(void) { - PyObject *m, *d; - - /* Fix SwigMethods to carry the callback ptrs when needed */ - SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); -#if PY_VERSION_HEX >= 0x03000000 - static struct PyModuleDef SWIG_module = { - PyModuleDef_HEAD_INIT, - (char *) SWIG_name, - NULL, - -1, - SwigMethods, - NULL, - NULL, - NULL, - NULL - }; - - m = PyModule_Create(&SWIG_module); -#else - m = Py_InitModule((char *) SWIG_name, SwigMethods); -#endif - d = PyModule_GetDict(m); - - SWIG_InitializeModule(0); - SWIG_InstallConstants(d,swig_const_table); - - - SWIG_Python_SetConstant(d, "tsip_event_invite",SWIG_From_int(static_cast< int >(tsip_event_invite))); - SWIG_Python_SetConstant(d, "tsip_event_message",SWIG_From_int(static_cast< int >(tsip_event_message))); - SWIG_Python_SetConstant(d, "tsip_event_options",SWIG_From_int(static_cast< int >(tsip_event_options))); - SWIG_Python_SetConstant(d, "tsip_event_publish",SWIG_From_int(static_cast< int >(tsip_event_publish))); - SWIG_Python_SetConstant(d, "tsip_event_register",SWIG_From_int(static_cast< int >(tsip_event_register))); - SWIG_Python_SetConstant(d, "tsip_event_subscribe",SWIG_From_int(static_cast< int >(tsip_event_subscribe))); - SWIG_Python_SetConstant(d, "tsip_event_dialog",SWIG_From_int(static_cast< int >(tsip_event_dialog))); - SWIG_Python_SetConstant(d, "tsip_i_register",SWIG_From_int(static_cast< int >(tsip_i_register))); - SWIG_Python_SetConstant(d, "tsip_ai_register",SWIG_From_int(static_cast< int >(tsip_ai_register))); - SWIG_Python_SetConstant(d, "tsip_o_register",SWIG_From_int(static_cast< int >(tsip_o_register))); - SWIG_Python_SetConstant(d, "tsip_ao_register",SWIG_From_int(static_cast< int >(tsip_ao_register))); - SWIG_Python_SetConstant(d, "tsip_i_unregister",SWIG_From_int(static_cast< int >(tsip_i_unregister))); - SWIG_Python_SetConstant(d, "tsip_ai_unregister",SWIG_From_int(static_cast< int >(tsip_ai_unregister))); - SWIG_Python_SetConstant(d, "tsip_o_unregister",SWIG_From_int(static_cast< int >(tsip_o_unregister))); - SWIG_Python_SetConstant(d, "tsip_ao_unregister",SWIG_From_int(static_cast< int >(tsip_ao_unregister))); - SWIG_Python_SetConstant(d, "tsip_i_subscribe",SWIG_From_int(static_cast< int >(tsip_i_subscribe))); - SWIG_Python_SetConstant(d, "tsip_ai_subscribe",SWIG_From_int(static_cast< int >(tsip_ai_subscribe))); - SWIG_Python_SetConstant(d, "tsip_o_subscribe",SWIG_From_int(static_cast< int >(tsip_o_subscribe))); - SWIG_Python_SetConstant(d, "tsip_ao_subscribe",SWIG_From_int(static_cast< int >(tsip_ao_subscribe))); - SWIG_Python_SetConstant(d, "tsip_i_unsubscribe",SWIG_From_int(static_cast< int >(tsip_i_unsubscribe))); - SWIG_Python_SetConstant(d, "tsip_ai_unsubscribe",SWIG_From_int(static_cast< int >(tsip_ai_unsubscribe))); - SWIG_Python_SetConstant(d, "tsip_o_unsubscribe",SWIG_From_int(static_cast< int >(tsip_o_unsubscribe))); - SWIG_Python_SetConstant(d, "tsip_ao_unsubscribe",SWIG_From_int(static_cast< int >(tsip_ao_unsubscribe))); - SWIG_Python_SetConstant(d, "tsip_i_notify",SWIG_From_int(static_cast< int >(tsip_i_notify))); - SWIG_Python_SetConstant(d, "tsip_ai_notify",SWIG_From_int(static_cast< int >(tsip_ai_notify))); - SWIG_Python_SetConstant(d, "tsip_o_notify",SWIG_From_int(static_cast< int >(tsip_o_notify))); - SWIG_Python_SetConstant(d, "tsip_ao_notify",SWIG_From_int(static_cast< int >(tsip_ao_notify))); -#if PY_VERSION_HEX >= 0x03000000 - return m; -#else - return; -#endif -} - + + + +#ifdef __cplusplus +extern "C" { +#endif + + /* Python-specific SWIG API */ +#define SWIG_newvarlink() SWIG_Python_newvarlink() +#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) +#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) + + /* ----------------------------------------------------------------------------- + * global variable support code. + * ----------------------------------------------------------------------------- */ + + typedef struct swig_globalvar { + char *name; /* Name of global variable */ + PyObject *(*get_attr)(void); /* Return the current value */ + int (*set_attr)(PyObject *); /* Set the value */ + struct swig_globalvar *next; + } swig_globalvar; + + typedef struct swig_varlinkobject { + PyObject_HEAD + swig_globalvar *vars; + } swig_varlinkobject; + + SWIGINTERN PyObject * + swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { +#if PY_VERSION_HEX >= 0x03000000 + return PyUnicode_InternFromString(""); +#else + return PyString_FromString(""); +#endif + } + + SWIGINTERN PyObject * + swig_varlink_str(swig_varlinkobject *v) { +#if PY_VERSION_HEX >= 0x03000000 + PyObject *str = PyUnicode_InternFromString("("); + PyObject *tail; + PyObject *joined; + swig_globalvar *var; + for (var = v->vars; var; var=var->next) { + tail = PyUnicode_FromString(var->name); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; + if (var->next) { + tail = PyUnicode_InternFromString(", "); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; + } + } + tail = PyUnicode_InternFromString(")"); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; +#else + PyObject *str = PyString_FromString("("); + swig_globalvar *var; + for (var = v->vars; var; var=var->next) { + PyString_ConcatAndDel(&str,PyString_FromString(var->name)); + if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); + } + PyString_ConcatAndDel(&str,PyString_FromString(")")); +#endif + return str; + } + + SWIGINTERN int + swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { + PyObject *str = swig_varlink_str(v); + fprintf(fp,"Swig global variables "); + fprintf(fp,"%s\n", SWIG_Python_str_AsChar(str)); + Py_DECREF(str); + return 0; + } + + SWIGINTERN void + swig_varlink_dealloc(swig_varlinkobject *v) { + swig_globalvar *var = v->vars; + while (var) { + swig_globalvar *n = var->next; + free(var->name); + free(var); + var = n; + } + } + + SWIGINTERN PyObject * + swig_varlink_getattr(swig_varlinkobject *v, char *n) { + PyObject *res = NULL; + swig_globalvar *var = v->vars; + while (var) { + if (strcmp(var->name,n) == 0) { + res = (*var->get_attr)(); + break; + } + var = var->next; + } + if (res == NULL && !PyErr_Occurred()) { + PyErr_SetString(PyExc_NameError,"Unknown C global variable"); + } + return res; + } + + SWIGINTERN int + swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { + int res = 1; + swig_globalvar *var = v->vars; + while (var) { + if (strcmp(var->name,n) == 0) { + res = (*var->set_attr)(p); + break; + } + var = var->next; + } + if (res == 1 && !PyErr_Occurred()) { + PyErr_SetString(PyExc_NameError,"Unknown C global variable"); + } + return res; + } + + SWIGINTERN PyTypeObject* + swig_varlink_type(void) { + static char varlink__doc__[] = "Swig var link object"; + static PyTypeObject varlink_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp + = { + /* PyObject header changed in Python 3 */ +#if PY_VERSION_HEX >= 0x03000000 + PyVarObject_HEAD_INIT(&PyType_Type, 0) +#else + PyObject_HEAD_INIT(NULL) + 0, /* Number of items in variable part (ob_size) */ +#endif + (char *)"swigvarlink", /* Type name (tp_name) */ + sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ + 0, /* Itemsize (tp_itemsize) */ + (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ + (printfunc) swig_varlink_print, /* Print (tp_print) */ + (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ + (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ + 0, /* tp_compare */ + (reprfunc) swig_varlink_repr, /* tp_repr */ + 0, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + 0, /* tp_hash */ + 0, /* tp_call */ + (reprfunc)swig_varlink_str, /* tp_str */ + 0, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + 0, /* tp_flags */ + varlink__doc__, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + 0, /* tp_richcompare */ + 0, /* tp_weaklistoffset */ +#if PY_VERSION_HEX >= 0x02020000 + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ +#endif +#if PY_VERSION_HEX >= 0x02030000 + 0, /* tp_del */ +#endif +#ifdef COUNT_ALLOCS + 0,0,0,0 /* tp_alloc -> tp_next */ +#endif + }; + varlink_type = tmp; + /* for Python 3 we already assigned the ob_type in PyVarObject_HEAD_INIT() */ +#if PY_VERSION_HEX < 0x03000000 + varlink_type.ob_type = &PyType_Type; +#endif + type_init = 1; + } + return &varlink_type; + } + + /* Create a variable linking object for use later */ + SWIGINTERN PyObject * + SWIG_Python_newvarlink(void) { + swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); + if (result) { + result->vars = 0; + } + return ((PyObject*) result); + } + + SWIGINTERN void + SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { + swig_varlinkobject *v = (swig_varlinkobject *) p; + swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); + if (gv) { + size_t size = strlen(name)+1; + gv->name = (char *)malloc(size); + if (gv->name) { + strncpy(gv->name,name,size); + gv->get_attr = get_attr; + gv->set_attr = set_attr; + gv->next = v->vars; + } + } + v->vars = gv; + } + + SWIGINTERN PyObject * + SWIG_globals(void) { + static PyObject *_SWIG_globals = 0; + if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); + return _SWIG_globals; + } + + /* ----------------------------------------------------------------------------- + * constants/methods manipulation + * ----------------------------------------------------------------------------- */ + + /* Install Constants */ + SWIGINTERN void + SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { + PyObject *obj = 0; + size_t i; + for (i = 0; constants[i].type; ++i) { + switch(constants[i].type) { + case SWIG_PY_POINTER: + obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); + break; + case SWIG_PY_BINARY: + obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); + break; + default: + obj = 0; + break; + } + if (obj) { + PyDict_SetItemString(d, constants[i].name, obj); + Py_DECREF(obj); + } + } + } + + /* -----------------------------------------------------------------------------*/ + /* Fix SwigMethods to carry the callback ptrs when needed */ + /* -----------------------------------------------------------------------------*/ + + SWIGINTERN void + SWIG_Python_FixMethods(PyMethodDef *methods, + swig_const_info *const_table, + swig_type_info **types, + swig_type_info **types_initial) { + size_t i; + for (i = 0; methods[i].ml_name; ++i) { + const char *c = methods[i].ml_doc; + if (c && (c = strstr(c, "swig_ptr: "))) { + int j; + swig_const_info *ci = 0; + const char *name = c + 10; + for (j = 0; const_table[j].type; ++j) { + if (strncmp(const_table[j].name, name, + strlen(const_table[j].name)) == 0) { + ci = &(const_table[j]); + break; + } + } + if (ci) { + size_t shift = (ci->ptype) - types; + swig_type_info *ty = types_initial[shift]; + size_t ldoc = (c - methods[i].ml_doc); + size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; + char *ndoc = (char*)malloc(ldoc + lptr + 10); + if (ndoc) { + char *buff = ndoc; + void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; + if (ptr) { + strncpy(buff, methods[i].ml_doc, ldoc); + buff += ldoc; + strncpy(buff, "swig_ptr: ", 10); + buff += 10; + SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); + methods[i].ml_doc = ndoc; + } + } + } + } + } + } + +#ifdef __cplusplus +} +#endif + +/* -----------------------------------------------------------------------------* + * Partial Init method + * -----------------------------------------------------------------------------*/ + +#ifdef __cplusplus +extern "C" +#endif + +SWIGEXPORT +#if PY_VERSION_HEX >= 0x03000000 +PyObject* +#else +void +#endif +SWIG_init(void) { + PyObject *m, *d; + + /* Fix SwigMethods to carry the callback ptrs when needed */ + SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); +#if PY_VERSION_HEX >= 0x03000000 + static struct PyModuleDef SWIG_module = { + PyModuleDef_HEAD_INIT, + (char *) SWIG_name, + NULL, + -1, + SwigMethods, + NULL, + NULL, + NULL, + NULL + }; + + m = PyModule_Create(&SWIG_module); +#else + m = Py_InitModule((char *) SWIG_name, SwigMethods); +#endif + d = PyModule_GetDict(m); + + SWIG_InitializeModule(0); + SWIG_InstallConstants(d,swig_const_table); + + + SWIG_Python_SetConstant(d, "tsip_event_invite",SWIG_From_int(static_cast< int >(tsip_event_invite))); + SWIG_Python_SetConstant(d, "tsip_event_message",SWIG_From_int(static_cast< int >(tsip_event_message))); + SWIG_Python_SetConstant(d, "tsip_event_options",SWIG_From_int(static_cast< int >(tsip_event_options))); + SWIG_Python_SetConstant(d, "tsip_event_publish",SWIG_From_int(static_cast< int >(tsip_event_publish))); + SWIG_Python_SetConstant(d, "tsip_event_register",SWIG_From_int(static_cast< int >(tsip_event_register))); + SWIG_Python_SetConstant(d, "tsip_event_subscribe",SWIG_From_int(static_cast< int >(tsip_event_subscribe))); + SWIG_Python_SetConstant(d, "tsip_event_dialog",SWIG_From_int(static_cast< int >(tsip_event_dialog))); + SWIG_Python_SetConstant(d, "tsip_i_register",SWIG_From_int(static_cast< int >(tsip_i_register))); + SWIG_Python_SetConstant(d, "tsip_ai_register",SWIG_From_int(static_cast< int >(tsip_ai_register))); + SWIG_Python_SetConstant(d, "tsip_o_register",SWIG_From_int(static_cast< int >(tsip_o_register))); + SWIG_Python_SetConstant(d, "tsip_ao_register",SWIG_From_int(static_cast< int >(tsip_ao_register))); + SWIG_Python_SetConstant(d, "tsip_i_unregister",SWIG_From_int(static_cast< int >(tsip_i_unregister))); + SWIG_Python_SetConstant(d, "tsip_ai_unregister",SWIG_From_int(static_cast< int >(tsip_ai_unregister))); + SWIG_Python_SetConstant(d, "tsip_o_unregister",SWIG_From_int(static_cast< int >(tsip_o_unregister))); + SWIG_Python_SetConstant(d, "tsip_ao_unregister",SWIG_From_int(static_cast< int >(tsip_ao_unregister))); + SWIG_Python_SetConstant(d, "tsip_i_subscribe",SWIG_From_int(static_cast< int >(tsip_i_subscribe))); + SWIG_Python_SetConstant(d, "tsip_ai_subscribe",SWIG_From_int(static_cast< int >(tsip_ai_subscribe))); + SWIG_Python_SetConstant(d, "tsip_o_subscribe",SWIG_From_int(static_cast< int >(tsip_o_subscribe))); + SWIG_Python_SetConstant(d, "tsip_ao_subscribe",SWIG_From_int(static_cast< int >(tsip_ao_subscribe))); + SWIG_Python_SetConstant(d, "tsip_i_unsubscribe",SWIG_From_int(static_cast< int >(tsip_i_unsubscribe))); + SWIG_Python_SetConstant(d, "tsip_ai_unsubscribe",SWIG_From_int(static_cast< int >(tsip_ai_unsubscribe))); + SWIG_Python_SetConstant(d, "tsip_o_unsubscribe",SWIG_From_int(static_cast< int >(tsip_o_unsubscribe))); + SWIG_Python_SetConstant(d, "tsip_ao_unsubscribe",SWIG_From_int(static_cast< int >(tsip_ao_unsubscribe))); + SWIG_Python_SetConstant(d, "tsip_i_notify",SWIG_From_int(static_cast< int >(tsip_i_notify))); + SWIG_Python_SetConstant(d, "tsip_ai_notify",SWIG_From_int(static_cast< int >(tsip_ai_notify))); + SWIG_Python_SetConstant(d, "tsip_o_notify",SWIG_From_int(static_cast< int >(tsip_o_notify))); + SWIG_Python_SetConstant(d, "tsip_ao_notify",SWIG_From_int(static_cast< int >(tsip_ao_notify))); +#if PY_VERSION_HEX >= 0x03000000 + return m; +#else + return; +#endif +} + diff --git a/trunk/bindings/python/tinyWRAP_wrap.h b/trunk/bindings/python/tinyWRAP_wrap.h index 6fba6073..73b26575 100644 --- a/trunk/bindings/python/tinyWRAP_wrap.h +++ b/trunk/bindings/python/tinyWRAP_wrap.h @@ -1,112 +1,112 @@ -/* ---------------------------------------------------------------------------- - * 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_ - -#include -#include - - -class SwigDirector_SipCallback : public SipCallback, public Swig::Director { - -public: - SwigDirector_SipCallback(PyObject *self); - virtual ~SwigDirector_SipCallback(); - virtual int OnRegistrationChanged(RegistrationEvent const *e); - virtual int OnSubscriptionChanged(SubscriptionEvent const *e); - - -/* Internal Director utilities */ -public: - bool swig_get_inner(const char* name) const { - std::map::const_iterator iv = inner.find(name); - return (iv != inner.end() ? iv->second : false); - } - - void swig_set_inner(const char* name, bool val) const - { inner[name] = val;} - -private: - mutable std::map inner; - - -#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) -/* VTable implementation */ - PyObject *swig_get_method(size_t method_index, const char *method_name) const { - PyObject *method = vtable[method_index]; - if (!method) { - swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name); - method = PyObject_GetAttr(swig_get_self(), name); - if (method == NULL) { - std::string msg = "Method in class SipCallback doesn't exist, undefined "; - msg += method_name; - Swig::DirectorMethodException::raise(msg.c_str()); - } - vtable[method_index] = method; - }; - return method; - } -private: - mutable swig::SwigVar_PyObject vtable[2]; -#endif - -}; - - -class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director { - -public: - SwigDirector_SipDebugCallback(PyObject *self); - virtual ~SwigDirector_SipDebugCallback(); - virtual int OnDebugInfo(char const *message); - virtual int OnDebugWarn(char const *message); - virtual int OnDebugError(char const *message); - virtual int OnDebugFatal(char const *message); - - -/* Internal Director utilities */ -public: - bool swig_get_inner(const char* name) const { - std::map::const_iterator iv = inner.find(name); - return (iv != inner.end() ? iv->second : false); - } - - void swig_set_inner(const char* name, bool val) const - { inner[name] = val;} - -private: - mutable std::map inner; - - -#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) -/* VTable implementation */ - PyObject *swig_get_method(size_t method_index, const char *method_name) const { - PyObject *method = vtable[method_index]; - if (!method) { - swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name); - method = PyObject_GetAttr(swig_get_self(), name); - if (method == NULL) { - std::string msg = "Method in class SipDebugCallback doesn't exist, undefined "; - msg += method_name; - Swig::DirectorMethodException::raise(msg.c_str()); - } - vtable[method_index] = method; - }; - return method; - } -private: - mutable swig::SwigVar_PyObject vtable[4]; -#endif - -}; - - -#endif +/* ---------------------------------------------------------------------------- + * 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_ + +#include +#include + + +class SwigDirector_SipCallback : public SipCallback, public Swig::Director { + +public: + SwigDirector_SipCallback(PyObject *self); + virtual ~SwigDirector_SipCallback(); + virtual int OnRegistrationChanged(RegistrationEvent const *e); + virtual int OnSubscriptionChanged(SubscriptionEvent const *e); + + +/* Internal Director utilities */ +public: + bool swig_get_inner(const char* name) const { + std::map::const_iterator iv = inner.find(name); + return (iv != inner.end() ? iv->second : false); + } + + void swig_set_inner(const char* name, bool val) const + { inner[name] = val;} + +private: + mutable std::map inner; + + +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) +/* VTable implementation */ + PyObject *swig_get_method(size_t method_index, const char *method_name) const { + PyObject *method = vtable[method_index]; + if (!method) { + swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name); + method = PyObject_GetAttr(swig_get_self(), name); + if (method == NULL) { + std::string msg = "Method in class SipCallback doesn't exist, undefined "; + msg += method_name; + Swig::DirectorMethodException::raise(msg.c_str()); + } + vtable[method_index] = method; + }; + return method; + } +private: + mutable swig::SwigVar_PyObject vtable[2]; +#endif + +}; + + +class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director { + +public: + SwigDirector_SipDebugCallback(PyObject *self); + virtual ~SwigDirector_SipDebugCallback(); + virtual int OnDebugInfo(char const *message); + virtual int OnDebugWarn(char const *message); + virtual int OnDebugError(char const *message); + virtual int OnDebugFatal(char const *message); + + +/* Internal Director utilities */ +public: + bool swig_get_inner(const char* name) const { + std::map::const_iterator iv = inner.find(name); + return (iv != inner.end() ? iv->second : false); + } + + void swig_set_inner(const char* name, bool val) const + { inner[name] = val;} + +private: + mutable std::map inner; + + +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) +/* VTable implementation */ + PyObject *swig_get_method(size_t method_index, const char *method_name) const { + PyObject *method = vtable[method_index]; + if (!method) { + swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name); + method = PyObject_GetAttr(swig_get_self(), name); + if (method == NULL) { + std::string msg = "Method in class SipDebugCallback doesn't exist, undefined "; + msg += method_name; + Swig::DirectorMethodException::raise(msg.c_str()); + } + vtable[method_index] = method; + }; + return method; + } +private: + mutable swig::SwigVar_PyObject vtable[4]; +#endif + +}; + + +#endif diff --git a/trunk/bindings/vs_2005/csharp/test/test.csproj b/trunk/bindings/vs_2005/csharp/test/test.csproj index cb6ca563..273ec8b2 100644 --- a/trunk/bindings/vs_2005/csharp/test/test.csproj +++ b/trunk/bindings/vs_2005/csharp/test/test.csproj @@ -48,6 +48,9 @@ SipCallback.cs + + SipDebugCallback.cs + SipEvent.cs diff --git a/trunk/bindings/vs_2005/csharp/tinyWRAP.vcproj b/trunk/bindings/vs_2005/csharp/tinyWRAP.vcproj index 681a27dc..cfe13370 100644 --- a/trunk/bindings/vs_2005/csharp/tinyWRAP.vcproj +++ b/trunk/bindings/vs_2005/csharp/tinyWRAP.vcproj @@ -198,6 +198,10 @@ RelativePath="..\..\_common\SipCallback.cxx" > + + @@ -226,6 +230,10 @@ RelativePath="..\..\csharp\tinyWRAP_wrap.cxx" > + + + + @@ -284,6 +296,10 @@ RelativePath="..\..\csharp\tinyWRAP_wrap.h" > + +