Update bindins.
This commit is contained in:
parent
16749d42b5
commit
beff8a35e1
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -31,8 +31,8 @@ public:
|
|||
virtual ~SafeObject();
|
||||
|
||||
/* protected: */
|
||||
int Lock();
|
||||
int UnLock();
|
||||
int Lock()const;
|
||||
int UnLock()const;
|
||||
|
||||
private:
|
||||
tsk_mutex_handle_t *mutex;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ class SipStack;
|
|||
class SipSession
|
||||
{
|
||||
public:
|
||||
SipSession(SipStack* Stack);
|
||||
SipSession(SipStack* stack);
|
||||
virtual ~SipSession();
|
||||
|
||||
public:
|
||||
|
@ -51,8 +51,13 @@ public:
|
|||
#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 */
|
||||
|
|
|
@ -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*> ((SipStack*)tsip_stack_get_userdata(sipevent->stack));
|
||||
const SipSession* session = dyn_cast<const SipSession*>((const SipSession*)tsip_ssession_get_userdata(sipevent->ss));
|
||||
if(session){
|
||||
Stack = session->getStack();
|
||||
}
|
||||
}
|
||||
|
||||
if(!Stack){
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ public class SipSession : IDisposable {
|
|||
}
|
||||
}
|
||||
|
||||
public SipSession(SipStack Stack) : this(tinyWRAPPINVOKE.new_SipSession(SipStack.getCPtr(Stack)), true) {
|
||||
public SipSession(SipStack stack) : this(tinyWRAPPINVOKE.new_SipSession(SipStack.getCPtr(stack)), true) {
|
||||
}
|
||||
|
||||
public bool addHeader(string name, string value) {
|
||||
|
|
|
@ -349,7 +349,7 @@ namespace Swig {
|
|||
* C++ director class methods
|
||||
* --------------------------------------------------- */
|
||||
|
||||
#include "tinyWRAP_wrap.h"
|
||||
#include "csharp/tinyWRAP_wrap.h"
|
||||
|
||||
SwigDirector_SipCallback::SwigDirector_SipCallback() : SipCallback(), Swig::Director() {
|
||||
swig_init_callbacks();
|
||||
|
@ -1156,7 +1156,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_SafeObject_Lock(void * jarg1) {
|
|||
int result;
|
||||
|
||||
arg1 = (SafeObject *)jarg1;
|
||||
result = (int)(arg1)->Lock();
|
||||
result = (int)((SafeObject const *)arg1)->Lock();
|
||||
jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
|
@ -1168,7 +1168,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_SafeObject_UnLock(void * jarg1) {
|
|||
int result;
|
||||
|
||||
arg1 = (SafeObject *)jarg1;
|
||||
result = (int)(arg1)->UnLock();
|
||||
result = (int)((SafeObject const *)arg1)->UnLock();
|
||||
jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
|
|
|
@ -33,8 +33,8 @@ public class SipSession {
|
|||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipSession(SipStack Stack) {
|
||||
this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(Stack), Stack), true);
|
||||
public SipSession(SipStack stack) {
|
||||
this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(stack), stack), true);
|
||||
}
|
||||
|
||||
public boolean addHeader(String name, String value) {
|
||||
|
|
|
@ -50,7 +50,7 @@ public class SipCallback {
|
|||
|
||||
public SipCallback() {
|
||||
this(tinyWRAPJNI.new_SipCallback(), true);
|
||||
tinyWRAPJNI.SipCallback_director_connect(this, swigCPtr, swigCMemOwn, false);
|
||||
tinyWRAPJNI.SipCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
|
||||
}
|
||||
|
||||
public int OnRegistrationChanged(RegistrationEvent e) {
|
||||
|
|
|
@ -50,7 +50,7 @@ public class SipDebugCallback {
|
|||
|
||||
public SipDebugCallback() {
|
||||
this(tinyWRAPJNI.new_SipDebugCallback(), true);
|
||||
tinyWRAPJNI.SipDebugCallback_director_connect(this, swigCPtr, swigCMemOwn, false);
|
||||
tinyWRAPJNI.SipDebugCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
|
||||
}
|
||||
|
||||
public int OnDebugInfo(String message) {
|
||||
|
|
|
@ -33,8 +33,8 @@ public class SipSession {
|
|||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipSession(SipStack Stack) {
|
||||
this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(Stack), Stack), true);
|
||||
public SipSession(SipStack stack) {
|
||||
this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(stack), stack), true);
|
||||
}
|
||||
|
||||
public boolean addHeader(String name, String value) {
|
||||
|
|
|
@ -334,7 +334,7 @@ namespace Swig {
|
|||
// 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);
|
||||
director_->swig_jvm_->AttachCurrentThread((void **) &jenv_, NULL);
|
||||
#endif
|
||||
}
|
||||
~JNIEnvWrapper() {
|
||||
|
@ -424,7 +424,7 @@ namespace Swig {
|
|||
* C++ director class methods
|
||||
* --------------------------------------------------- */
|
||||
|
||||
#include "tinyWRAP_wrap.h"
|
||||
#include "java/android/tinyWRAP_wrap.h"
|
||||
|
||||
SwigDirector_SipCallback::SwigDirector_SipCallback(JNIEnv *jenv) : SipCallback(), Swig::Director(jenv) {
|
||||
}
|
||||
|
@ -1366,7 +1366,7 @@ SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSu
|
|||
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
|
||||
SipCallback *obj = *((SipCallback **)&objarg);
|
||||
(void)jcls;
|
||||
SwigDirector_SipCallback *director = static_cast<SwigDirector_SipCallback *>(obj);
|
||||
SwigDirector_SipCallback *director = dynamic_cast<SwigDirector_SipCallback *>(obj);
|
||||
if (director) {
|
||||
director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
|
||||
}
|
||||
|
@ -1375,7 +1375,7 @@ SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1dire
|
|||
|
||||
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
|
||||
SipCallback *obj = *((SipCallback **)&objarg);
|
||||
SwigDirector_SipCallback *director = static_cast<SwigDirector_SipCallback *>(obj);
|
||||
SwigDirector_SipCallback *director = dynamic_cast<SwigDirector_SipCallback *>(obj);
|
||||
(void)jcls;
|
||||
if (director) {
|
||||
director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
|
||||
|
@ -1584,7 +1584,7 @@ SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipDebugCallback_
|
|||
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<SwigDirector_SipDebugCallback *>(obj);
|
||||
SwigDirector_SipDebugCallback *director = dynamic_cast<SwigDirector_SipDebugCallback *>(obj);
|
||||
if (director) {
|
||||
director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
|
||||
}
|
||||
|
@ -1593,7 +1593,7 @@ SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipDebugCallback_
|
|||
|
||||
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<SwigDirector_SipDebugCallback *>(obj);
|
||||
SwigDirector_SipDebugCallback *director = dynamic_cast<SwigDirector_SipDebugCallback *>(obj);
|
||||
(void)jcls;
|
||||
if (director) {
|
||||
director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
|
||||
|
@ -1632,7 +1632,7 @@ SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SafeObject_1Lock(
|
|||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(SafeObject **)&jarg1;
|
||||
result = (int)(arg1)->Lock();
|
||||
result = (int)((SafeObject const *)arg1)->Lock();
|
||||
jresult = (jint)result;
|
||||
return jresult;
|
||||
}
|
||||
|
@ -1647,7 +1647,7 @@ SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SafeObject_1UnLoc
|
|||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(SafeObject **)&jarg1;
|
||||
result = (int)(arg1)->UnLock();
|
||||
result = (int)((SafeObject const *)arg1)->UnLock();
|
||||
jresult = (jint)result;
|
||||
return jresult;
|
||||
}
|
||||
|
|
|
@ -424,7 +424,7 @@ namespace Swig {
|
|||
* C++ director class methods
|
||||
* --------------------------------------------------- */
|
||||
|
||||
#include "tinyWRAP_wrap.h"
|
||||
#include "java/tinyWRAP_wrap.h"
|
||||
|
||||
SwigDirector_SipCallback::SwigDirector_SipCallback(JNIEnv *jenv) : SipCallback(), Swig::Director(jenv) {
|
||||
}
|
||||
|
@ -1632,7 +1632,7 @@ SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SafeObject_1Lock(
|
|||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(SafeObject **)&jarg1;
|
||||
result = (int)(arg1)->Lock();
|
||||
result = (int)((SafeObject const *)arg1)->Lock();
|
||||
jresult = (jint)result;
|
||||
return jresult;
|
||||
}
|
||||
|
@ -1647,7 +1647,7 @@ SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SafeObject_1UnLoc
|
|||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(SafeObject **)&jarg1;
|
||||
result = (int)(arg1)->UnLock();
|
||||
result = (int)((SafeObject const *)arg1)->UnLock();
|
||||
jresult = (jint)result;
|
||||
return jresult;
|
||||
}
|
||||
|
|
|
@ -2166,7 +2166,7 @@ XS(_wrap_new_SipSession) {
|
|||
dXSARGS;
|
||||
|
||||
if ((items < 1) || (items > 1)) {
|
||||
SWIG_croak("Usage: new_SipSession(Stack);");
|
||||
SWIG_croak("Usage: new_SipSession(stack);");
|
||||
}
|
||||
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
|
@ -3484,10 +3484,10 @@ XS(_wrap_SafeObject_Lock) {
|
|||
}
|
||||
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 *""'");
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeObject_Lock" "', argument " "1"" of type '" "SafeObject const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< SafeObject * >(argp1);
|
||||
result = (int)(arg1)->Lock();
|
||||
result = (int)((SafeObject const *)arg1)->Lock();
|
||||
ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
|
||||
|
||||
XSRETURN(argvi);
|
||||
|
@ -3512,10 +3512,10 @@ XS(_wrap_SafeObject_UnLock) {
|
|||
}
|
||||
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 *""'");
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeObject_UnLock" "', argument " "1"" of type '" "SafeObject const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< SafeObject * >(argp1);
|
||||
result = (int)(arg1)->UnLock();
|
||||
result = (int)((SafeObject const *)arg1)->UnLock();
|
||||
ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
|
||||
|
||||
XSRETURN(argvi);
|
||||
|
@ -4675,137 +4675,137 @@ XS(SWIG_init) {
|
|||
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 {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@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);
|
||||
|
|
|
@ -3598,7 +3598,7 @@ SWIG_AsVal_bool (PyObject *obj, bool *val)
|
|||
* C++ director class methods
|
||||
* --------------------------------------------------- */
|
||||
|
||||
#include "tinyWRAP_wrap.h"
|
||||
#include "python/tinyWRAP_wrap.h"
|
||||
|
||||
SwigDirector_SipCallback::SwigDirector_SipCallback(PyObject *self): SipCallback(), Swig::Director(self) {
|
||||
SWIG_DIRECTOR_RGTR((SipCallback *)this, this);
|
||||
|
@ -5312,10 +5312,10 @@ SWIGINTERN PyObject *_wrap_SafeObject_Lock(PyObject *SWIGUNUSEDPARM(self), PyObj
|
|||
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 *""'");
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeObject_Lock" "', argument " "1"" of type '" "SafeObject const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< SafeObject * >(argp1);
|
||||
result = (int)(arg1)->Lock();
|
||||
result = (int)((SafeObject const *)arg1)->Lock();
|
||||
resultobj = SWIG_From_int(static_cast< int >(result));
|
||||
return resultobj;
|
||||
fail:
|
||||
|
@ -5334,10 +5334,10 @@ SWIGINTERN PyObject *_wrap_SafeObject_UnLock(PyObject *SWIGUNUSEDPARM(self), PyO
|
|||
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 *""'");
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeObject_UnLock" "', argument " "1"" of type '" "SafeObject const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< SafeObject * >(argp1);
|
||||
result = (int)(arg1)->UnLock();
|
||||
result = (int)((SafeObject const *)arg1)->UnLock();
|
||||
resultobj = SWIG_From_int(static_cast< int >(result));
|
||||
return resultobj;
|
||||
fail:
|
||||
|
|
|
@ -48,6 +48,9 @@
|
|||
<Compile Include="..\..\..\csharp\SipCallback.cs">
|
||||
<Link>SipCallback.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\..\csharp\SipDebugCallback.cs">
|
||||
<Link>SipDebugCallback.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\..\csharp\SipEvent.cs">
|
||||
<Link>SipEvent.cs</Link>
|
||||
</Compile>
|
||||
|
|
|
@ -198,6 +198,10 @@
|
|||
RelativePath="..\..\_common\SipCallback.cxx"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\_common\SipDebug.cxx"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\_common\SipEvent.cxx"
|
||||
>
|
||||
|
@ -226,6 +230,10 @@
|
|||
RelativePath="..\..\csharp\tinyWRAP_wrap.cxx"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\_common\XcapStack.cxx"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="headers"
|
||||
|
@ -256,6 +264,10 @@
|
|||
RelativePath="..\..\_common\SipCallback.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\_common\SipDebug.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\_common\SipEvent.h"
|
||||
>
|
||||
|
@ -284,6 +296,10 @@
|
|||
RelativePath="..\..\csharp\tinyWRAP_wrap.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\_common\XcapStack.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="interfaces"
|
||||
|
|
Loading…
Reference in New Issue