提交 54762dd1 authored 作者: Brian West's avatar Brian West

update esl swig to swig 2.0 and reswig

上级 6a903e23
...@@ -5,7 +5,7 @@ CLASSES=org/freeswitch/esl/* ...@@ -5,7 +5,7 @@ CLASSES=org/freeswitch/esl/*
all: esl.jar all: esl.jar
esl_wrap.cpp: esl_wrap.cpp:
swig -module esl -java -c++ $(LOCAL_CFLAGS) -package org.freeswitch.esl -outdir org/freeswitch/esl -o esl_wrap.cpp ../ESL.i swig2.0 -module esl -java -c++ $(LOCAL_CFLAGS) -package org.freeswitch.esl -outdir org/freeswitch/esl -o esl_wrap.cpp ../ESL.i
esl_wrap.o: esl_wrap.cpp esl_wrap.o: esl_wrap.cpp
$(CXX) $(CXX_CFLAGS) $(LOCAL_CFLAGS) $(CXXFLAGS) $(GCC_WARNING_JUNK) $(PERL_INC) -c esl_wrap.cpp -o esl_wrap.o $(CXX) $(CXX_CFLAGS) $(LOCAL_CFLAGS) $(CXXFLAGS) $(GCC_WARNING_JUNK) $(PERL_INC) -c esl_wrap.cpp -o esl_wrap.o
......
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.35 * Version 2.0.12
* *
* This file is not intended to be easily readable and contains a number of * 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 * 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 * changes to this file unless you know what you are doing--modify the SWIG
* interface file instead. * interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
#define SWIGJAVA
#ifdef __cplusplus #ifdef __cplusplus
/* SwigValueWrapper is described in swig.swg */
template<typename T> class SwigValueWrapper { template<typename T> class SwigValueWrapper {
T *tt; struct SwigMovePointer {
T *ptr;
SwigMovePointer(T *p) : ptr(p) { }
~SwigMovePointer() { delete ptr; }
SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
} pointer;
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
SwigValueWrapper(const SwigValueWrapper<T>& rhs);
public: public:
SwigValueWrapper() : tt(0) { } SwigValueWrapper() : pointer(0) { }
SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
SwigValueWrapper(const T& t) : tt(new T(t)) { } operator T&() const { return *pointer.ptr; }
~SwigValueWrapper() { delete tt; } T *operator&() { return pointer.ptr; }
SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
operator T&() const { return *tt; }
T *operator&() { return tt; }
private:
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
}; };
template <typename T> T SwigValueInit() { template <typename T> T SwigValueInit() {
...@@ -60,14 +65,20 @@ template <typename T> T SwigValueInit() { ...@@ -60,14 +65,20 @@ template <typename T> T SwigValueInit() {
#ifndef SWIGUNUSED #ifndef SWIGUNUSED
# if defined(__GNUC__) # if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
# define SWIGUNUSED __attribute__ ((__unused__)) # define SWIGUNUSED __attribute__ ((__unused__))
# else # else
# define SWIGUNUSED # define SWIGUNUSED
# endif # endif
# elif defined(__ICC) # elif defined(__ICC)
# define SWIGUNUSED __attribute__ ((__unused__)) # define SWIGUNUSED __attribute__ ((__unused__))
# else # else
# define SWIGUNUSED # 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
#endif #endif
...@@ -75,7 +86,7 @@ template <typename T> T SwigValueInit() { ...@@ -75,7 +86,7 @@ template <typename T> T SwigValueInit() {
# ifdef __cplusplus # ifdef __cplusplus
# define SWIGUNUSEDPARM(p) # define SWIGUNUSEDPARM(p)
# else # else
# define SWIGUNUSEDPARM(p) p SWIGUNUSED # define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif # endif
#endif #endif
...@@ -118,7 +129,7 @@ template <typename T> T SwigValueInit() { ...@@ -118,7 +129,7 @@ template <typename T> T SwigValueInit() {
# define SWIGSTDCALL __stdcall # define SWIGSTDCALL __stdcall
# else # else
# define SWIGSTDCALL # define SWIGSTDCALL
# endif # endif
#endif #endif
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
...@@ -134,7 +145,7 @@ template <typename T> T SwigValueInit() { ...@@ -134,7 +145,7 @@ template <typename T> T SwigValueInit() {
/* Fix for jlong on some versions of gcc on Windows */ /* Fix for jlong on some versions of gcc on Windows */
#if defined(__GNUC__) && !defined(__INTELC__) #if defined(__GNUC__) && !defined(__INTEL_COMPILER)
typedef long long __int64; typedef long long __int64;
#endif #endif
...@@ -181,7 +192,8 @@ static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionC ...@@ -181,7 +192,8 @@ static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionC
{ SWIG_JavaNullPointerException, "java/lang/NullPointerException" }, { SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
{ SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" }, { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
{ SWIG_JavaUnknownError, "java/lang/UnknownError" }, { SWIG_JavaUnknownError, "java/lang/UnknownError" },
{ (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" } }; { (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" }
};
const SWIG_JavaExceptions_t *except_ptr = java_exceptions; const SWIG_JavaExceptions_t *except_ptr = java_exceptions;
while (except_ptr->code != code && except_ptr->code) while (except_ptr->code != code && except_ptr->code)
...@@ -217,7 +229,6 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1event_1set(JNIE ...@@ -217,7 +229,6 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1event_1set(JNIE
arg1 = *(ESLevent **)&jarg1; arg1 = *(ESLevent **)&jarg1;
arg2 = *(esl_event_t **)&jarg2; arg2 = *(esl_event_t **)&jarg2;
if (arg1) (arg1)->event = arg2; if (arg1) (arg1)->event = arg2;
} }
...@@ -250,7 +261,7 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1serialized_1str ...@@ -250,7 +261,7 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1serialized_1str
if (!arg2) return ; if (!arg2) return ;
} }
{ {
if (arg1->serialized_string) delete [] arg1->serialized_string; delete [] arg1->serialized_string;
if (arg2) { if (arg2) {
arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]); arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->serialized_string, (const char *)arg2); strcpy((char *)arg1->serialized_string, (const char *)arg2);
...@@ -272,7 +283,7 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1serialized_1 ...@@ -272,7 +283,7 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1serialized_1
(void)jarg1_; (void)jarg1_;
arg1 = *(ESLevent **)&jarg1; arg1 = *(ESLevent **)&jarg1;
result = (char *) ((arg1)->serialized_string); result = (char *) ((arg1)->serialized_string);
if(result) jresult = jenv->NewStringUTF((const char *)result); if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult; return jresult;
} }
...@@ -287,7 +298,6 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1mine_1set(JNIEn ...@@ -287,7 +298,6 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1mine_1set(JNIEn
arg1 = *(ESLevent **)&jarg1; arg1 = *(ESLevent **)&jarg1;
arg2 = (int)jarg2; arg2 = (int)jarg2;
if (arg1) (arg1)->mine = arg2; if (arg1) (arg1)->mine = arg2;
} }
...@@ -370,7 +380,6 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_esl_eslJNI_delete_1ESLevent(JNIEnv * ...@@ -370,7 +380,6 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_esl_eslJNI_delete_1ESLevent(JNIEnv *
(void)jcls; (void)jcls;
arg1 = *(ESLevent **)&jarg1; arg1 = *(ESLevent **)&jarg1;
delete arg1; delete arg1;
} }
...@@ -390,7 +399,7 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1serialize(JN ...@@ -390,7 +399,7 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1serialize(JN
if (!arg2) return 0; if (!arg2) return 0;
} }
result = (char *)(arg1)->serialize((char const *)arg2); result = (char *)(arg1)->serialize((char const *)arg2);
if(result) jresult = jenv->NewStringUTF((const char *)result); if (result) jresult = jenv->NewStringUTF((const char *)result);
if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
return jresult; return jresult;
} }
...@@ -400,8 +409,8 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1setPriority ...@@ -400,8 +409,8 @@ SWIGEXPORT jboolean JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1setPriority
jboolean jresult = 0 ; jboolean jresult = 0 ;
ESLevent *arg1 = (ESLevent *) 0 ; ESLevent *arg1 = (ESLevent *) 0 ;
esl_priority_t arg2 = (esl_priority_t) ESL_PRIORITY_NORMAL ; esl_priority_t arg2 = (esl_priority_t) ESL_PRIORITY_NORMAL ;
bool result;
esl_priority_t *argp2 ; esl_priority_t *argp2 ;
bool result;
(void)jenv; (void)jenv;
(void)jcls; (void)jcls;
...@@ -437,7 +446,7 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1getHeader(JN ...@@ -437,7 +446,7 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1getHeader(JN
} }
arg3 = (int)jarg3; arg3 = (int)jarg3;
result = (char *)(arg1)->getHeader((char const *)arg2,arg3); result = (char *)(arg1)->getHeader((char const *)arg2,arg3);
if(result) jresult = jenv->NewStringUTF((const char *)result); if (result) jresult = jenv->NewStringUTF((const char *)result);
if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
return jresult; return jresult;
} }
...@@ -453,7 +462,7 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1getBody(JNIE ...@@ -453,7 +462,7 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1getBody(JNIE
(void)jarg1_; (void)jarg1_;
arg1 = *(ESLevent **)&jarg1; arg1 = *(ESLevent **)&jarg1;
result = (char *)(arg1)->getBody(); result = (char *)(arg1)->getBody();
if(result) jresult = jenv->NewStringUTF((const char *)result); if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult; return jresult;
} }
...@@ -468,7 +477,7 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1getType(JNIE ...@@ -468,7 +477,7 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1getType(JNIE
(void)jarg1_; (void)jarg1_;
arg1 = *(ESLevent **)&jarg1; arg1 = *(ESLevent **)&jarg1;
result = (char *)(arg1)->getType(); result = (char *)(arg1)->getType();
if(result) jresult = jenv->NewStringUTF((const char *)result); if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult; return jresult;
} }
...@@ -614,7 +623,7 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1firstHeader( ...@@ -614,7 +623,7 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1firstHeader(
(void)jarg1_; (void)jarg1_;
arg1 = *(ESLevent **)&jarg1; arg1 = *(ESLevent **)&jarg1;
result = (char *)(arg1)->firstHeader(); result = (char *)(arg1)->firstHeader();
if(result) jresult = jenv->NewStringUTF((const char *)result); if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult; return jresult;
} }
...@@ -629,7 +638,7 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1nextHeader(J ...@@ -629,7 +638,7 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_esl_eslJNI_ESLevent_1nextHeader(J
(void)jarg1_; (void)jarg1_;
arg1 = *(ESLevent **)&jarg1; arg1 = *(ESLevent **)&jarg1;
result = (char *)(arg1)->nextHeader(); result = (char *)(arg1)->nextHeader();
if(result) jresult = jenv->NewStringUTF((const char *)result); if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult; return jresult;
} }
...@@ -791,7 +800,6 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_esl_eslJNI_delete_1ESLconnection(JNI ...@@ -791,7 +800,6 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_esl_eslJNI_delete_1ESLconnection(JNI
(void)jcls; (void)jcls;
arg1 = *(ESLconnection **)&jarg1; arg1 = *(ESLconnection **)&jarg1;
delete arg1; delete arg1;
} }
......
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.35 * Version 2.0.12
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
...@@ -26,11 +26,13 @@ public class ESLconnection { ...@@ -26,11 +26,13 @@ public class ESLconnection {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
swigCMemOwn = false; if (swigCMemOwn) {
eslJNI.delete_ESLconnection(swigCPtr); swigCMemOwn = false;
eslJNI.delete_ESLconnection(swigCPtr);
}
swigCPtr = 0;
} }
swigCPtr = 0;
} }
public ESLconnection(String host, int port, String user, String password) { public ESLconnection(String host, int port, String user, String password) {
......
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.35 * Version 2.0.12
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
...@@ -26,11 +26,13 @@ public class ESLevent { ...@@ -26,11 +26,13 @@ public class ESLevent {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
swigCMemOwn = false; if (swigCMemOwn) {
eslJNI.delete_ESLevent(swigCPtr); swigCMemOwn = false;
eslJNI.delete_ESLevent(swigCPtr);
}
swigCPtr = 0;
} }
swigCPtr = 0;
} }
public void setEvent(SWIGTYPE_p_esl_event_t value) { public void setEvent(SWIGTYPE_p_esl_event_t value) {
......
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.35 * Version 2.0.12
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
......
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.35 * Version 2.0.12
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
......
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.35 * Version 2.0.12
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
......
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.35 * Version 2.0.12
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
package org.freeswitch.esl; package org.freeswitch.esl;
class eslJNI { public class eslJNI {
public final static native void ESLevent_event_set(long jarg1, ESLevent jarg1_, long jarg2); public final static native void ESLevent_event_set(long jarg1, ESLevent jarg1_, long jarg2);
public final static native long ESLevent_event_get(long jarg1, ESLevent jarg1_); public final static native long ESLevent_event_get(long jarg1, ESLevent jarg1_);
public final static native void ESLevent_serialized_string_set(long jarg1, ESLevent jarg1_, String jarg2); public final static native void ESLevent_serialized_string_set(long jarg1, ESLevent jarg1_, String jarg2);
......
差异被折叠。
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.35 * Version 2.0.12
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
......
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.35 * Version 2.0.12
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
...@@ -184,6 +184,10 @@ class ESLPINVOKE { ...@@ -184,6 +184,10 @@ class ESLPINVOKE {
static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper(); static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper();
static ESLPINVOKE() {
}
[DllImport("ESL", EntryPoint="CSharp_ESLevent_Event_set")] [DllImport("ESL", EntryPoint="CSharp_ESLevent_Event_set")]
public static extern void ESLevent_Event_set(HandleRef jarg1, HandleRef jarg2); public static extern void ESLevent_Event_set(HandleRef jarg1, HandleRef jarg2);
......
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.35 * Version 2.0.12
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
...@@ -29,11 +29,13 @@ public class ESLconnection : IDisposable { ...@@ -29,11 +29,13 @@ public class ESLconnection : IDisposable {
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { if (swigCPtr.Handle != IntPtr.Zero) {
swigCMemOwn = false; if (swigCMemOwn) {
ESLPINVOKE.delete_ESLconnection(swigCPtr); swigCMemOwn = false;
ESLPINVOKE.delete_ESLconnection(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero);
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
......
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.35 * Version 2.0.12
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
...@@ -29,11 +29,13 @@ public class ESLevent : IDisposable { ...@@ -29,11 +29,13 @@ public class ESLevent : IDisposable {
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { if (swigCPtr.Handle != IntPtr.Zero) {
swigCMemOwn = false; if (swigCMemOwn) {
ESLPINVOKE.delete_ESLevent(swigCPtr); swigCMemOwn = false;
ESLPINVOKE.delete_ESLevent(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero);
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
......
...@@ -5,7 +5,7 @@ WRAP_GCC_WARNING_SILENCE=-Wno-unused-function ...@@ -5,7 +5,7 @@ WRAP_GCC_WARNING_SILENCE=-Wno-unused-function
all: ESL.so all: ESL.so
esl_wrap.cpp: esl_wrap.cpp:
swig -module ESL -csharp -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i swig2.0 -module ESL -csharp -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
esl_wrap.o: esl_wrap.cpp esl_wrap.o: esl_wrap.cpp
$(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) $(WRAP_GCC_WARNING_SILENCE) -c esl_wrap.cpp -o esl_wrap.o $(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) $(WRAP_GCC_WARNING_SILENCE) -c esl_wrap.cpp -o esl_wrap.o
......
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.35 * Version 2.0.12
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
......
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.35 * Version 2.0.12
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
......
差异被折叠。
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.35 * Version 2.0.12
* *
* This file is not intended to be easily readable and contains a number of * 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 * 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 * changes to this file unless you know what you are doing--modify the SWIG
* interface file instead. * interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
#define SWIGCSHARP
#ifdef __cplusplus #ifdef __cplusplus
/* SwigValueWrapper is described in swig.swg */
template<typename T> class SwigValueWrapper { template<typename T> class SwigValueWrapper {
T *tt; struct SwigMovePointer {
T *ptr;
SwigMovePointer(T *p) : ptr(p) { }
~SwigMovePointer() { delete ptr; }
SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
} pointer;
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
SwigValueWrapper(const SwigValueWrapper<T>& rhs);
public: public:
SwigValueWrapper() : tt(0) { } SwigValueWrapper() : pointer(0) { }
SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
SwigValueWrapper(const T& t) : tt(new T(t)) { } operator T&() const { return *pointer.ptr; }
~SwigValueWrapper() { delete tt; } T *operator&() { return pointer.ptr; }
SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
operator T&() const { return *tt; }
T *operator&() { return tt; }
private:
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
}; };
template <typename T> T SwigValueInit() { template <typename T> T SwigValueInit() {
...@@ -60,14 +65,20 @@ template <typename T> T SwigValueInit() { ...@@ -60,14 +65,20 @@ template <typename T> T SwigValueInit() {
#ifndef SWIGUNUSED #ifndef SWIGUNUSED
# if defined(__GNUC__) # if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
# define SWIGUNUSED __attribute__ ((__unused__)) # define SWIGUNUSED __attribute__ ((__unused__))
# else # else
# define SWIGUNUSED # define SWIGUNUSED
# endif # endif
# elif defined(__ICC) # elif defined(__ICC)
# define SWIGUNUSED __attribute__ ((__unused__)) # define SWIGUNUSED __attribute__ ((__unused__))
# else # else
# define SWIGUNUSED # 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
#endif #endif
...@@ -75,7 +86,7 @@ template <typename T> T SwigValueInit() { ...@@ -75,7 +86,7 @@ template <typename T> T SwigValueInit() {
# ifdef __cplusplus # ifdef __cplusplus
# define SWIGUNUSEDPARM(p) # define SWIGUNUSEDPARM(p)
# else # else
# define SWIGUNUSEDPARM(p) p SWIGUNUSED # define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif # endif
#endif #endif
...@@ -118,7 +129,7 @@ template <typename T> T SwigValueInit() { ...@@ -118,7 +129,7 @@ template <typename T> T SwigValueInit() {
# define SWIGSTDCALL __stdcall # define SWIGSTDCALL __stdcall
# else # else
# define SWIGSTDCALL # define SWIGSTDCALL
# endif # endif
#endif #endif
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
...@@ -190,12 +201,12 @@ static SWIG_CSharpException_t SWIG_csharp_exceptions[] = { ...@@ -190,12 +201,12 @@ static SWIG_CSharpException_t SWIG_csharp_exceptions[] = {
static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = { static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = {
{ SWIG_CSharpArgumentException, NULL }, { SWIG_CSharpArgumentException, NULL },
{ SWIG_CSharpArgumentNullException, NULL }, { SWIG_CSharpArgumentNullException, NULL },
{ SWIG_CSharpArgumentOutOfRangeException, NULL }, { SWIG_CSharpArgumentOutOfRangeException, NULL }
}; };
static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) { static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) {
SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback; SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback;
if (code >=0 && (size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t)) { if ((size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t)) {
callback = SWIG_csharp_exceptions[code].callback; callback = SWIG_csharp_exceptions[code].callback;
} }
callback(msg); callback(msg);
...@@ -203,7 +214,7 @@ static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes ...@@ -203,7 +214,7 @@ static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes
static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name) { 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; SWIG_CSharpExceptionArgumentCallback_t callback = SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback;
if (code >=0 && (size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) { if ((size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) {
callback = SWIG_csharp_exceptions_argument[code].callback; callback = SWIG_csharp_exceptions_argument[code].callback;
} }
callback(msg, param_name); callback(msg, param_name);
...@@ -284,7 +295,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_ESLevent_Event_set(void * jarg1, void * jarg2 ...@@ -284,7 +295,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_ESLevent_Event_set(void * jarg1, void * jarg2
arg1 = (ESLevent *)jarg1; arg1 = (ESLevent *)jarg1;
arg2 = (esl_event_t *)jarg2; arg2 = (esl_event_t *)jarg2;
if (arg1) (arg1)->event = arg2; if (arg1) (arg1)->event = arg2;
} }
...@@ -307,7 +317,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_ESLevent_SerializedString_set(void * jarg1, c ...@@ -307,7 +317,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_ESLevent_SerializedString_set(void * jarg1, c
arg1 = (ESLevent *)jarg1; arg1 = (ESLevent *)jarg1;
arg2 = (char *)jarg2; arg2 = (char *)jarg2;
{ {
if (arg1->serialized_string) delete [] arg1->serialized_string; delete [] arg1->serialized_string;
if (arg2) { if (arg2) {
arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]); arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->serialized_string, (const char *)arg2); strcpy((char *)arg1->serialized_string, (const char *)arg2);
...@@ -337,7 +347,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_ESLevent_Mine_set(void * jarg1, int jarg2) { ...@@ -337,7 +347,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_ESLevent_Mine_set(void * jarg1, int jarg2) {
arg1 = (ESLevent *)jarg1; arg1 = (ESLevent *)jarg1;
arg2 = (int)jarg2; arg2 = (int)jarg2;
if (arg1) (arg1)->mine = arg2; if (arg1) (arg1)->mine = arg2;
} }
...@@ -398,7 +407,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_ESLevent(void * jarg1) { ...@@ -398,7 +407,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_ESLevent(void * jarg1) {
arg1 = (ESLevent *)jarg1; arg1 = (ESLevent *)jarg1;
delete arg1; delete arg1;
} }
...@@ -420,8 +428,8 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ESLevent_SetPriority(void * jarg1, vo ...@@ -420,8 +428,8 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ESLevent_SetPriority(void * jarg1, vo
unsigned int jresult ; unsigned int jresult ;
ESLevent *arg1 = (ESLevent *) 0 ; ESLevent *arg1 = (ESLevent *) 0 ;
esl_priority_t arg2 = (esl_priority_t) ESL_PRIORITY_NORMAL ; esl_priority_t arg2 = (esl_priority_t) ESL_PRIORITY_NORMAL ;
bool result;
esl_priority_t *argp2 ; esl_priority_t *argp2 ;
bool result;
arg1 = (ESLevent *)jarg1; arg1 = (ESLevent *)jarg1;
argp2 = (esl_priority_t *)jarg2; argp2 = (esl_priority_t *)jarg2;
...@@ -661,7 +669,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_ESLconnection(void * jarg1) { ...@@ -661,7 +669,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_ESLconnection(void * jarg1) {
arg1 = (ESLconnection *)jarg1; arg1 = (ESLconnection *)jarg1;
delete arg1; delete arg1;
} }
......
# This file was automatically generated by SWIG (http://www.swig.org). # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.35 # Version 2.0.12
# #
# Don't modify this file, modify the SWIG interface instead. # Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
package ESL; package ESL;
require Exporter; use base qw(Exporter);
require DynaLoader; use base qw(DynaLoader);
@ISA = qw(Exporter DynaLoader);
package ESLc; package ESLc;
bootstrap ESL; bootstrap ESL;
package ESL; package ESL;
@EXPORT = qw( ); @EXPORT = qw();
# ---------- BASE METHODS ------------- # ---------- BASE METHODS -------------
......
...@@ -18,7 +18,7 @@ perlmod-install: install-perlLTLIBRARIES ...@@ -18,7 +18,7 @@ perlmod-install: install-perlLTLIBRARIES
endif endif
esl_wrap.cpp: esl_wrap.cpp:
swig -module ESL -shadow -perl5 -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i swig2.0 -module ESL -shadow -perl5 -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
perlxsi.c: perlxsi.c:
$(PERL) -MExtUtils::Embed -e xsinit -- -o perlxsi.c $(PERL) -MExtUtils::Embed -e xsinit -- -o perlxsi.c
......
差异被折叠。
#include <EXTERN.h> #include "EXTERN.h"
#include <perl.h> #include "perl.h"
#include "XSUB.h"
EXTERN_C void xs_init (pTHX); EXTERN_C void xs_init (pTHX);
...@@ -8,9 +9,10 @@ EXTERN_C void boot_DynaLoader (pTHX_ CV* cv); ...@@ -8,9 +9,10 @@ EXTERN_C void boot_DynaLoader (pTHX_ CV* cv);
EXTERN_C void EXTERN_C void
xs_init(pTHX) xs_init(pTHX)
{ {
char *file = __FILE__; static const char file[] = __FILE__;
dXSUB_SYS; dXSUB_SYS;
PERL_UNUSED_CONTEXT;
/* DynaLoader is a special case */ /* DynaLoader is a special case */
newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file); newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file);
} }
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.7 * Version 2.0.12
* *
* This file is not intended to be easily readable and contains a number of * 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 * 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 * changes to this file unless you know what you are doing--modify the SWIG
* interface file instead. * interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
// Try to load our extension if it's not already loaded. // Try to load our extension if it's not already loaded.
......
差异被折叠。
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.7 * Version 2.0.12
* *
* This file is not intended to be easily readable and contains a number of * 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 * 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 * changes to this file unless you know what you are doing--modify the SWIG
* interface file instead. * interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
#ifndef PHP_ESL_H #ifndef PHP_ESL_H
......
# This file was automatically generated by SWIG (http://www.swig.org). # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.35 # Version 2.0.12
# #
# Don't modify this file, modify the SWIG interface instead. # Do not make changes to this file unless you know what you are doing--modify
# This file is compatible with both classic and new-style classes. # the SWIG interface file instead.
import _ESL
import new from sys import version_info
new_instancemethod = new.instancemethod if version_info >= (2,6,0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_ESL', [dirname(__file__)])
except ImportError:
import _ESL
return _ESL
if fp is not None:
try:
_mod = imp.load_module('_ESL', fp, pathname, description)
finally:
fp.close()
return _mod
_ESL = swig_import_helper()
del swig_import_helper
else:
import _ESL
del version_info
def _swig_setattr_nondynamic(self,class_type,name,value,static=1): def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "thisown"): return self.this.own(value) if (name == "thisown"): return self.this.own(value)
if (name == "this"): if (name == "this"):
if type(value).__name__ == 'PySwigObject': if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value self.__dict__[name] = value
return return
method = class_type.__swig_setmethods__.get(name,None) method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value) if method: return method(self,value)
if (not static) or hasattr(self,name): if (not static):
self.__dict__[name] = value self.__dict__[name] = value
else: else:
raise AttributeError("You cannot add attributes to %s" % self) raise AttributeError("You cannot add attributes to %s" % self)
...@@ -27,7 +50,7 @@ def _swig_getattr(self,class_type,name): ...@@ -27,7 +50,7 @@ def _swig_getattr(self,class_type,name):
if (name == "thisown"): return self.this.own() if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None) method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self) if method: return method(self)
raise AttributeError,name raise AttributeError(name)
def _swig_repr(self): def _swig_repr(self):
try: strthis = "proxy of " + self.this.__repr__() try: strthis = "proxy of " + self.this.__repr__()
...@@ -47,23 +70,23 @@ class ESLevent: ...@@ -47,23 +70,23 @@ class ESLevent:
__swig_setmethods__["mine"] = _ESL.ESLevent_mine_set __swig_setmethods__["mine"] = _ESL.ESLevent_mine_set
__swig_getmethods__["mine"] = _ESL.ESLevent_mine_get __swig_getmethods__["mine"] = _ESL.ESLevent_mine_get
def __init__(self, *args): def __init__(self, *args):
this = apply(_ESL.new_ESLevent, args) this = _ESL.new_ESLevent(*args)
try: self.this.append(this) try: self.this.append(this)
except: self.this = this except: self.this = this
__swig_destroy__ = _ESL.delete_ESLevent __swig_destroy__ = _ESL.delete_ESLevent
__del__ = lambda self : None; __del__ = lambda self : None;
def serialize(*args): return apply(_ESL.ESLevent_serialize, args) def serialize(self, format=None): return _ESL.ESLevent_serialize(self, format)
def setPriority(*args): return apply(_ESL.ESLevent_setPriority, args) def setPriority(self, *args): return _ESL.ESLevent_setPriority(self, *args)
def getHeader(*args): return apply(_ESL.ESLevent_getHeader, args) def getHeader(self, *args): return _ESL.ESLevent_getHeader(self, *args)
def getBody(*args): return apply(_ESL.ESLevent_getBody, args) def getBody(self): return _ESL.ESLevent_getBody(self)
def getType(*args): return apply(_ESL.ESLevent_getType, args) def getType(self): return _ESL.ESLevent_getType(self)
def addBody(*args): return apply(_ESL.ESLevent_addBody, args) def addBody(self, *args): return _ESL.ESLevent_addBody(self, *args)
def addHeader(*args): return apply(_ESL.ESLevent_addHeader, args) def addHeader(self, *args): return _ESL.ESLevent_addHeader(self, *args)
def pushHeader(*args): return apply(_ESL.ESLevent_pushHeader, args) def pushHeader(self, *args): return _ESL.ESLevent_pushHeader(self, *args)
def unshiftHeader(*args): return apply(_ESL.ESLevent_unshiftHeader, args) def unshiftHeader(self, *args): return _ESL.ESLevent_unshiftHeader(self, *args)
def delHeader(*args): return apply(_ESL.ESLevent_delHeader, args) def delHeader(self, *args): return _ESL.ESLevent_delHeader(self, *args)
def firstHeader(*args): return apply(_ESL.ESLevent_firstHeader, args) def firstHeader(self): return _ESL.ESLevent_firstHeader(self)
def nextHeader(*args): return apply(_ESL.ESLevent_nextHeader, args) def nextHeader(self): return _ESL.ESLevent_nextHeader(self)
ESLevent_swigregister = _ESL.ESLevent_swigregister ESLevent_swigregister = _ESL.ESLevent_swigregister
ESLevent_swigregister(ESLevent) ESLevent_swigregister(ESLevent)
...@@ -74,32 +97,36 @@ class ESLconnection: ...@@ -74,32 +97,36 @@ class ESLconnection:
__getattr__ = lambda self, name: _swig_getattr(self, ESLconnection, name) __getattr__ = lambda self, name: _swig_getattr(self, ESLconnection, name)
__repr__ = _swig_repr __repr__ = _swig_repr
def __init__(self, *args): def __init__(self, *args):
this = apply(_ESL.new_ESLconnection, args) this = _ESL.new_ESLconnection(*args)
try: self.this.append(this) try: self.this.append(this)
except: self.this = this except: self.this = this
__swig_destroy__ = _ESL.delete_ESLconnection __swig_destroy__ = _ESL.delete_ESLconnection
__del__ = lambda self : None; __del__ = lambda self : None;
def socketDescriptor(*args): return apply(_ESL.ESLconnection_socketDescriptor, args) def socketDescriptor(self): return _ESL.ESLconnection_socketDescriptor(self)
def connected(*args): return apply(_ESL.ESLconnection_connected, args) def connected(self): return _ESL.ESLconnection_connected(self)
def getInfo(*args): return apply(_ESL.ESLconnection_getInfo, args) def getInfo(self): return _ESL.ESLconnection_getInfo(self)
def send(*args): return apply(_ESL.ESLconnection_send, args) def send(self, *args): return _ESL.ESLconnection_send(self, *args)
def sendRecv(*args): return apply(_ESL.ESLconnection_sendRecv, args) def sendRecv(self, *args): return _ESL.ESLconnection_sendRecv(self, *args)
def api(*args): return apply(_ESL.ESLconnection_api, args) def api(self, *args): return _ESL.ESLconnection_api(self, *args)
def bgapi(*args): return apply(_ESL.ESLconnection_bgapi, args) def bgapi(self, *args): return _ESL.ESLconnection_bgapi(self, *args)
def sendEvent(*args): return apply(_ESL.ESLconnection_sendEvent, args) def sendEvent(self, *args): return _ESL.ESLconnection_sendEvent(self, *args)
def sendMSG(*args): return apply(_ESL.ESLconnection_sendMSG, args) def sendMSG(self, *args): return _ESL.ESLconnection_sendMSG(self, *args)
def recvEvent(*args): return apply(_ESL.ESLconnection_recvEvent, args) def recvEvent(self): return _ESL.ESLconnection_recvEvent(self)
def recvEventTimed(*args): return apply(_ESL.ESLconnection_recvEventTimed, args) def recvEventTimed(self, *args): return _ESL.ESLconnection_recvEventTimed(self, *args)
def filter(*args): return apply(_ESL.ESLconnection_filter, args) def filter(self, *args): return _ESL.ESLconnection_filter(self, *args)
def events(*args): return apply(_ESL.ESLconnection_events, args) def events(self, *args): return _ESL.ESLconnection_events(self, *args)
def execute(*args): return apply(_ESL.ESLconnection_execute, args) def execute(self, *args): return _ESL.ESLconnection_execute(self, *args)
def executeAsync(*args): return apply(_ESL.ESLconnection_executeAsync, args) def executeAsync(self, *args): return _ESL.ESLconnection_executeAsync(self, *args)
def setAsyncExecute(*args): return apply(_ESL.ESLconnection_setAsyncExecute, args) def setAsyncExecute(self, *args): return _ESL.ESLconnection_setAsyncExecute(self, *args)
def setEventLock(*args): return apply(_ESL.ESLconnection_setEventLock, args) def setEventLock(self, *args): return _ESL.ESLconnection_setEventLock(self, *args)
def disconnect(*args): return apply(_ESL.ESLconnection_disconnect, args) def disconnect(self): return _ESL.ESLconnection_disconnect(self)
ESLconnection_swigregister = _ESL.ESLconnection_swigregister ESLconnection_swigregister = _ESL.ESLconnection_swigregister
ESLconnection_swigregister(ESLconnection) ESLconnection_swigregister(ESLconnection)
def eslSetLogLevel(*args):
return _ESL.eslSetLogLevel(*args)
eslSetLogLevel = _ESL.eslSetLogLevel eslSetLogLevel = _ESL.eslSetLogLevel
# This file is compatible with both classic and new-style classes.
...@@ -5,7 +5,7 @@ SITE_DIR=$(DESTDIR)/`python -c "from distutils.sysconfig import get_python_lib; ...@@ -5,7 +5,7 @@ SITE_DIR=$(DESTDIR)/`python -c "from distutils.sysconfig import get_python_lib;
all: _ESL.so all: _ESL.so
esl_wrap.cpp: esl_wrap.cpp:
swig -module ESL -classic -python -c++ -DMULTIPLICITY -threads -I../src/include -o esl_wrap.cpp ../ESL.i swig2.0 -module ESL -classic -python -c++ -DMULTIPLICITY -threads -I../src/include -o esl_wrap.cpp ../ESL.i
esl_wrap.o: esl_wrap.cpp esl_wrap.o: esl_wrap.cpp
$(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) -c esl_wrap.cpp -o esl_wrap.o $(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) -c esl_wrap.cpp -o esl_wrap.o
......
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论