/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
}
public synchronized void delete() {
- if(swigCPtr != 0 && swigCMemOwn) {
- swigCMemOwn = false;
- freeswitchJNI.delete_API(swigCPtr);
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ freeswitchJNI.delete_API(swigCPtr);
+ }
+ swigCPtr = 0;
}
- swigCPtr = 0;
}
public API(CoreSession s) {
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
}
public synchronized void delete() {
- if(swigCPtr != 0 && swigCMemOwn) {
- swigCMemOwn = false;
- freeswitchJNI.delete_CoreSession(swigCPtr);
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ freeswitchJNI.delete_CoreSession(swigCPtr);
+ }
+ swigCPtr = 0;
}
- swigCPtr = 0;
}
public void setSession(SWIGTYPE_p_switch_core_session_t value) {
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
}
public synchronized void delete() {
- if(swigCPtr != 0 && swigCMemOwn) {
- swigCMemOwn = false;
- freeswitchJNI.delete_DTMF(swigCPtr);
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ freeswitchJNI.delete_DTMF(swigCPtr);
+ }
+ swigCPtr = 0;
}
- swigCPtr = 0;
}
public void setDigit(char value) {
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
}
public synchronized void delete() {
- if(swigCPtr != 0 && swigCMemOwn) {
- swigCMemOwn = false;
- freeswitchJNI.delete_Event(swigCPtr);
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ freeswitchJNI.delete_Event(swigCPtr);
+ }
+ swigCPtr = 0;
}
- swigCPtr = 0;
}
public void setEvent(SWIGTYPE_p_switch_event_t value) {
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
}
public synchronized void delete() {
- if(swigCPtr != 0 && swigCMemOwn) {
- swigCMemOwn = false;
- freeswitchJNI.delete_EventConsumer(swigCPtr);
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ freeswitchJNI.delete_EventConsumer(swigCPtr);
+ }
+ swigCPtr = 0;
}
- swigCPtr = 0;
}
public void setEvents(SWIGTYPE_p_switch_queue_t value) {
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
}
public synchronized void delete() {
- if(swigCPtr != 0 && swigCMemOwn) {
- swigCMemOwn = false;
- freeswitchJNI.delete_IVRMenu(swigCPtr);
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ freeswitchJNI.delete_IVRMenu(swigCPtr);
+ }
+ swigCPtr = 0;
}
- swigCPtr = 0;
}
public IVRMenu(IVRMenu main, String name, String greeting_sound, String short_greeting_sound, String invalid_sound, String exit_sound, String transfer_sound, String confirm_macro, String confirm_key, String tts_engine, String tts_voice, int confirm_attempts, int inter_timeout, int digit_len, int timeout, int max_failures, int max_timeouts) {
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
private long swigCPtr;
protected JavaSession(long cPtr, boolean cMemoryOwn) {
- super(freeswitchJNI.SWIGJavaSessionUpcast(cPtr), cMemoryOwn);
+ super(freeswitchJNI.JavaSession_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
}
public synchronized void delete() {
- if(swigCPtr != 0 && swigCMemOwn) {
- swigCMemOwn = false;
- freeswitchJNI.delete_JavaSession(swigCPtr);
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ freeswitchJNI.delete_JavaSession(swigCPtr);
+ }
+ swigCPtr = 0;
}
- swigCPtr = 0;
super.delete();
}
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
}
public synchronized void delete() {
- if(swigCPtr != 0 && swigCMemOwn) {
- swigCMemOwn = false;
- freeswitchJNI.delete_Stream(swigCPtr);
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ freeswitchJNI.delete_Stream(swigCPtr);
+ }
+ swigCPtr = 0;
}
- swigCPtr = 0;
}
public Stream() {
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
package org.freeswitch.swig;
-class freeswitchJNI {
+public class freeswitchJNI {
public final static native void setGlobalVariable(String jarg1, String jarg2);
public final static native String getGlobalVariable(String jarg1);
public final static native void consoleLog(String jarg1, String jarg2);
public final static native void JavaSession_check_hangup_hook(long jarg1, JavaSession jarg1_);
public final static native long JavaSession_run_dtmf_callback(long jarg1, JavaSession jarg1_, long jarg2, long jarg3);
public final static native int JavaSession_originate(long jarg1, JavaSession jarg1_, long jarg2, JavaSession jarg2_, String jarg3, int jarg4);
- public final static native long SWIGJavaSessionUpcast(long jarg1);
+ public final static native long JavaSession_SWIGUpcast(long jarg1);
}
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
}
public synchronized void delete() {
- if(swigCPtr != 0 && swigCMemOwn) {
- swigCMemOwn = false;
- freeswitchJNI.delete_input_callback_state_t(swigCPtr);
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ freeswitchJNI.delete_input_callback_state_t(swigCPtr);
+ }
+ swigCPtr = 0;
}
- swigCPtr = 0;
}
public void setFunction(SWIGTYPE_p_void value) {
/* ----------------------------------------------------------------------------
* 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
* the SWIG interface file instead.
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.35
- *
- * This file is not intended to be easily readable and contains a number of
+ * Version 2.0.12
+ *
+ * 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.
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
* ----------------------------------------------------------------------------- */
+#define SWIGJAVA
+
#ifdef __cplusplus
+/* SwigValueWrapper is described in swig.swg */
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:
- SwigValueWrapper() : tt(0) { }
- SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
- SwigValueWrapper(const T& t) : tt(new T(t)) { }
- ~SwigValueWrapper() { delete tt; }
- 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);
+ SwigValueWrapper() : pointer(0) { }
+ SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
+ operator T&() const { return *pointer.ptr; }
+ T *operator&() { return pointer.ptr; }
};
template <typename T> T SwigValueInit() {
#ifndef SWIGUNUSED
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
# define SWIGUNUSED
# endif
# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# 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
# ifdef __cplusplus
# define SWIGUNUSEDPARM(p)
# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif
# define SWIGSTDCALL __stdcall
# else
# define SWIGSTDCALL
-# endif
+# endif
#endif
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
/* 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;
#endif
{ SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
{ SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
{ 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;
while (except_ptr->code != code && except_ptr->code)
if (!arg1) return 0;
}
result = (char *)getGlobalVariable(arg1);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
free(result);
return jresult;
(void)jcls;
arg1 = *(IVRMenu **)&jarg1;
delete arg1;
-
}
(void)jcls;
arg1 = *(API **)&jarg1;
delete arg1;
-
}
if (!arg3) return 0;
}
result = (char *)(arg1)->execute((char const *)arg2,(char const *)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 (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
return jresult;
if (!arg2) return 0;
}
result = (char *)(arg1)->executeString((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);
return jresult;
}
(void)jarg1_;
arg1 = *(API **)&jarg1;
result = (char *)(arg1)->getTime();
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1function_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *arg2 = (void *) 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
- arg1 = *(input_callback_state_t **)&jarg1;
+ arg1 = *(input_callback_state **)&jarg1;
arg2 = *(void **)&jarg2;
if (arg1) (arg1)->function = arg2;
-
}
SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1function_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *result = 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
- arg1 = *(input_callback_state_t **)&jarg1;
+ arg1 = *(input_callback_state **)&jarg1;
result = (void *) ((arg1)->function);
*(void **)&jresult = result;
return jresult;
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1threadState_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *arg2 = (void *) 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
- arg1 = *(input_callback_state_t **)&jarg1;
+ arg1 = *(input_callback_state **)&jarg1;
arg2 = *(void **)&jarg2;
if (arg1) (arg1)->threadState = arg2;
-
}
SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1threadState_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *result = 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
- arg1 = *(input_callback_state_t **)&jarg1;
+ arg1 = *(input_callback_state **)&jarg1;
result = (void *) ((arg1)->threadState);
*(void **)&jresult = result;
return jresult;
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1extra_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *arg2 = (void *) 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
- arg1 = *(input_callback_state_t **)&jarg1;
+ arg1 = *(input_callback_state **)&jarg1;
arg2 = *(void **)&jarg2;
if (arg1) (arg1)->extra = arg2;
-
}
SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1extra_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *result = 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
- arg1 = *(input_callback_state_t **)&jarg1;
+ arg1 = *(input_callback_state **)&jarg1;
result = (void *) ((arg1)->extra);
*(void **)&jresult = result;
return jresult;
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1funcargs_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
char *arg2 = (char *) 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
- arg1 = *(input_callback_state_t **)&jarg1;
+ arg1 = *(input_callback_state **)&jarg1;
arg2 = 0;
if (jarg2) {
arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
if (!arg2) return ;
}
{
- if (arg1->funcargs) delete [] arg1->funcargs;
+ delete [] arg1->funcargs;
if (arg2) {
arg1->funcargs = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->funcargs, (const char *)arg2);
SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1funcargs_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jstring jresult = 0 ;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
char *result = 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
- arg1 = *(input_callback_state_t **)&jarg1;
+ arg1 = *(input_callback_state **)&jarg1;
result = (char *) ((arg1)->funcargs);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1input_1callback_1state_1t(JNIEnv *jenv, jclass jcls) {
jlong jresult = 0 ;
- input_callback_state_t *result = 0 ;
+ input_callback_state *result = 0 ;
(void)jenv;
(void)jcls;
- result = (input_callback_state_t *)new input_callback_state_t();
- *(input_callback_state_t **)&jresult = result;
+ result = (input_callback_state *)new input_callback_state();
+ *(input_callback_state **)&jresult = result;
return jresult;
}
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_delete_1input_1callback_1state_1t(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
(void)jenv;
(void)jcls;
- arg1 = *(input_callback_state_t **)&jarg1;
+ arg1 = *(input_callback_state **)&jarg1;
delete arg1;
-
}
arg1 = *(DTMF **)&jarg1;
arg2 = (char)jarg2;
if (arg1) (arg1)->digit = arg2;
-
}
}
arg2 = *argp2;
if (arg1) (arg1)->duration = arg2;
-
}
(void)jarg1_;
arg1 = *(DTMF **)&jarg1;
result = ((arg1)->duration);
- *(uint32_t **)&jresult = new uint32_t((uint32_t &)result);
+ *(uint32_t **)&jresult = new uint32_t((const uint32_t &)result);
return jresult;
}
jlong jresult = 0 ;
char arg1 ;
uint32_t arg2 = (uint32_t) SWITCH_DEFAULT_DTMF_DURATION ;
- DTMF *result = 0 ;
uint32_t *argp2 ;
+ DTMF *result = 0 ;
(void)jenv;
(void)jcls;
(void)jcls;
arg1 = *(DTMF **)&jarg1;
delete arg1;
-
}
(void)jcls;
arg1 = *(Stream **)&jarg1;
delete arg1;
-
}
arg1 = *(Stream **)&jarg1;
arg2 = *(int **)&jarg2;
result = (char *)(arg1)->read(arg2);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
(void)jarg1_;
arg1 = *(Stream **)&jarg1;
result = (char *)(arg1)->get_data();
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
arg1 = *(Event **)&jarg1;
arg2 = *(switch_event_t **)&jarg2;
if (arg1) (arg1)->event = arg2;
-
}
if (!arg2) return ;
}
{
- if (arg1->serialized_string) delete [] arg1->serialized_string;
+ delete [] arg1->serialized_string;
if (arg2) {
arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->serialized_string, (const char *)arg2);
(void)jarg1_;
arg1 = *(Event **)&jarg1;
result = (char *) ((arg1)->serialized_string);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
arg1 = *(Event **)&jarg1;
arg2 = (int)jarg2;
if (arg1) (arg1)->mine = arg2;
-
}
(void)jcls;
arg1 = *(Event **)&jarg1;
delete arg1;
-
}
if (!arg2) return 0;
}
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);
return jresult;
}
jboolean jresult = 0 ;
Event *arg1 = (Event *) 0 ;
switch_priority_t arg2 = (switch_priority_t) SWITCH_PRIORITY_NORMAL ;
- bool result;
switch_priority_t *argp2 ;
+ bool result;
(void)jenv;
(void)jcls;
if (!arg2) return 0;
}
result = (char *)(arg1)->getHeader((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);
return jresult;
}
(void)jarg1_;
arg1 = *(Event **)&jarg1;
result = (char *)(arg1)->getBody();
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
(void)jarg1_;
arg1 = *(Event **)&jarg1;
result = (char *)(arg1)->getType();
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
arg1 = *(EventConsumer **)&jarg1;
arg2 = *(switch_queue_t **)&jarg2;
if (arg1) (arg1)->events = arg2;
-
}
}
arg2 = *argp2;
if (arg1) (arg1)->e_event_id = arg2;
-
}
(void)jarg1_;
arg1 = *(EventConsumer **)&jarg1;
result = ((arg1)->e_event_id);
- *(switch_event_types_t **)&jresult = new switch_event_types_t((switch_event_types_t &)result);
+ *(switch_event_types_t **)&jresult = new switch_event_types_t((const switch_event_types_t &)result);
return jresult;
}
if (!arg2) return ;
}
{
- if (arg1->e_callback) delete [] arg1->e_callback;
+ delete [] arg1->e_callback;
if (arg2) {
arg1->e_callback = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->e_callback, (const char *)arg2);
(void)jarg1_;
arg1 = *(EventConsumer **)&jarg1;
result = (char *) ((arg1)->e_callback);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
if (!arg2) return ;
}
{
- if (arg1->e_subclass_name) delete [] arg1->e_subclass_name;
+ delete [] arg1->e_subclass_name;
if (arg2) {
arg1->e_subclass_name = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->e_subclass_name, (const char *)arg2);
(void)jarg1_;
arg1 = *(EventConsumer **)&jarg1;
result = (char *) ((arg1)->e_subclass_name);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
if (!arg2) return ;
}
{
- if (arg1->e_cb_arg) delete [] arg1->e_cb_arg;
+ delete [] arg1->e_cb_arg;
if (arg2) {
arg1->e_cb_arg = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->e_cb_arg, (const char *)arg2);
(void)jarg1_;
arg1 = *(EventConsumer **)&jarg1;
result = (char *) ((arg1)->e_cb_arg);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
}
arg2 = *argp2;
if (arg1) (arg1)->node_index = arg2;
-
}
(void)jarg1_;
arg1 = *(EventConsumer **)&jarg1;
result = ((arg1)->node_index);
- *(uint32_t **)&jresult = new uint32_t((uint32_t &)result);
+ *(uint32_t **)&jresult = new uint32_t((const uint32_t &)result);
return jresult;
}
(void)jcls;
arg1 = *(EventConsumer **)&jarg1;
delete arg1;
-
}
(void)jcls;
arg1 = *(CoreSession **)&jarg1;
delete arg1;
-
}
arg1 = *(CoreSession **)&jarg1;
arg2 = *(switch_core_session_t **)&jarg2;
if (arg1) (arg1)->session = arg2;
-
}
arg1 = *(CoreSession **)&jarg1;
arg2 = *(switch_channel_t **)&jarg2;
if (arg1) (arg1)->channel = arg2;
-
}
arg1 = *(CoreSession **)&jarg1;
arg2 = (unsigned int)jarg2;
if (arg1) (arg1)->flags = arg2;
-
}
arg1 = *(CoreSession **)&jarg1;
arg2 = (int)jarg2;
if (arg1) (arg1)->allocated = arg2;
-
}
arg1 = *(CoreSession **)&jarg1;
arg2 = *(input_callback_state **)&jarg2;
if (arg1) (arg1)->cb_state = *arg2;
-
}
}
arg2 = *argp2;
if (arg1) (arg1)->hook_state = arg2;
-
}
(void)jarg1_;
arg1 = *(CoreSession **)&jarg1;
result = ((arg1)->hook_state);
- *(switch_channel_state_t **)&jresult = new switch_channel_state_t((switch_channel_state_t &)result);
+ *(switch_channel_state_t **)&jresult = new switch_channel_state_t((const switch_channel_state_t &)result);
return jresult;
}
}
arg2 = *argp2;
if (arg1) (arg1)->cause = arg2;
-
}
(void)jarg1_;
arg1 = *(CoreSession **)&jarg1;
result = ((arg1)->cause);
- *(switch_call_cause_t **)&jresult = new switch_call_cause_t((switch_call_cause_t &)result);
+ *(switch_call_cause_t **)&jresult = new switch_call_cause_t((const switch_call_cause_t &)result);
return jresult;
}
if (!arg2) return ;
}
{
- if (arg1->uuid) delete [] arg1->uuid;
+ delete [] arg1->uuid;
if (arg2) {
arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->uuid, (const char *)arg2);
(void)jarg1_;
arg1 = *(CoreSession **)&jarg1;
result = (char *) ((arg1)->uuid);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
if (!arg2) return ;
}
{
- if (arg1->tts_name) delete [] arg1->tts_name;
+ delete [] arg1->tts_name;
if (arg2) {
arg1->tts_name = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->tts_name, (const char *)arg2);
(void)jarg1_;
arg1 = *(CoreSession **)&jarg1;
result = (char *) ((arg1)->tts_name);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
if (!arg2) return ;
}
{
- if (arg1->voice_name) delete [] arg1->voice_name;
+ delete [] arg1->voice_name;
if (arg2) {
arg1->voice_name = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->voice_name, (const char *)arg2);
(void)jarg1_;
arg1 = *(CoreSession **)&jarg1;
result = (char *) ((arg1)->voice_name);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
if (!arg2) return 0;
}
result = (char *)(arg1)->getVariable(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);
return jresult;
}
if (!arg2) return 0;
}
result = (arg1)->process_callback_result(arg2);
- *(switch_status_t **)&jresult = new switch_status_t((switch_status_t &)result);
+ *(switch_status_t **)&jresult = new switch_status_t((const switch_status_t &)result);
if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
return jresult;
}
(void)jarg1_;
arg1 = *(CoreSession **)&jarg1;
result = (char *)(arg1)->hangupCause();
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
(void)jarg1_;
arg1 = *(CoreSession **)&jarg1;
result = (char *)(arg1)->getState();
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
}
arg4 = (int)jarg4;
result = (char *)(arg1)->getDigits(arg2,arg3,arg4);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
return jresult;
}
arg4 = (int)jarg4;
arg5 = (int)jarg5;
result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
return jresult;
}
}
arg7 = (int)jarg7;
result = (char *)(arg1)->read(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
if (arg6) jenv->ReleaseStringUTFChars(jarg6, (const char *)arg6);
return jresult;
if (!arg12) return 0;
}
result = (char *)(arg1)->playAndGetDigits(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,(char const *)arg12);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
if (arg6) jenv->ReleaseStringUTFChars(jarg6, (const char *)arg6);
if (arg7) jenv->ReleaseStringUTFChars(jarg7, (const char *)arg7);
if (arg8) jenv->ReleaseStringUTFChars(jarg8, (const char *)arg8);
(void)jarg1_;
arg1 = *(CoreSession **)&jarg1;
result = (char *)(arg1)->getXMLCDR();
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
(void)jarg1_;
arg1 = *(CoreSession **)&jarg1;
result = (char *)((CoreSession const *)arg1)->get_uuid();
- if(result) jresult = jenv->NewStringUTF((const char *)result);
+ if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
(void)jcls;
(void)jarg1_;
arg1 = *(CoreSession **)&jarg1;
- {
- switch_input_args_t const &_result_ref = ((CoreSession const *)arg1)->get_cb_args();
- result = (switch_input_args_t *) &_result_ref;
- }
+ result = (switch_input_args_t *) &((CoreSession const *)arg1)->get_cb_args();
*(switch_input_args_t **)&jresult = result;
return jresult;
}
CoreSession *arg1 = (CoreSession *) 0 ;
void *arg2 = (void *) 0 ;
switch_input_type_t arg3 ;
- switch_status_t result;
switch_input_type_t *argp3 ;
+ switch_status_t result;
(void)jenv;
(void)jcls;
}
arg3 = *argp3;
result = (arg1)->run_dtmf_callback(arg2,arg3);
- *(switch_status_t **)&jresult = new switch_status_t((switch_status_t &)result);
+ *(switch_status_t **)&jresult = new switch_status_t((const switch_status_t &)result);
return jresult;
}
(void)jarg1_;
(void)jarg2_;
arg1 = *(CoreSession **)&jarg1;
- if(!arg1) {
+ if (!arg1) {
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "CoreSession & reference is null");
return ;
}
arg2 = *(CoreSession **)&jarg2;
- if(!arg2) {
+ if (!arg2) {
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "CoreSession & reference is null");
return ;
}
(void)jcls;
arg1 = *(switch_core_session_t **)&jarg1;
result = hanguphook(arg1);
- *(switch_status_t **)&jresult = new switch_status_t((switch_status_t &)result);
+ *(switch_status_t **)&jresult = new switch_status_t((const switch_status_t &)result);
return jresult;
}
switch_input_type_t arg3 ;
void *arg4 = (void *) 0 ;
unsigned int arg5 ;
- switch_status_t result;
switch_input_type_t *argp3 ;
+ switch_status_t result;
(void)jenv;
(void)jcls;
arg4 = *(void **)&jarg4;
arg5 = (unsigned int)jarg5;
result = dtmf_callback(arg1,arg2,arg3,arg4,arg5);
- *(switch_status_t **)&jresult = new switch_status_t((switch_status_t &)result);
+ *(switch_status_t **)&jresult = new switch_status_t((const switch_status_t &)result);
return jresult;
}
(void)jcls;
arg1 = *(JavaVM **)&jarg1;
javaVM = arg1;
-
}
(void)jcls;
arg1 = *(JavaSession **)&jarg1;
delete arg1;
-
}
JavaSession *arg1 = (JavaSession *) 0 ;
void *arg2 = (void *) 0 ;
switch_input_type_t arg3 ;
- switch_status_t result;
switch_input_type_t *argp3 ;
+ switch_status_t result;
(void)jenv;
(void)jcls;
}
arg3 = *argp3;
result = (arg1)->run_dtmf_callback(arg2,arg3);
- *(switch_status_t **)&jresult = new switch_status_t((switch_status_t &)result);
+ *(switch_status_t **)&jresult = new switch_status_t((const switch_status_t &)result);
return jresult;
}
}
-SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_SWIGJavaSessionUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
+SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_JavaSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
jlong baseptr = 0;
(void)jenv;
(void)jcls;
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.35
- *
- * This file is not intended to be easily readable and contains a number of
+ * Version 2.0.12
+ *
+ * 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.
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
* ----------------------------------------------------------------------------- */
+#define SWIGLUA
+#define SWIG_LUA_TARGET SWIG_LUA_FLAVOR_LUA
+#define SWIG_LUA_MODULE_GLOBAL
+
#ifdef __cplusplus
+/* SwigValueWrapper is described in swig.swg */
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:
- SwigValueWrapper() : tt(0) { }
- SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
- SwigValueWrapper(const T& t) : tt(new T(t)) { }
- ~SwigValueWrapper() { delete tt; }
- 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);
+ SwigValueWrapper() : pointer(0) { }
+ SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
+ operator T&() const { return *pointer.ptr; }
+ T *operator&() { return pointer.ptr; }
};
template <typename T> T SwigValueInit() {
#ifndef SWIGUNUSED
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
# define SWIGUNUSED
# endif
# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# 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
# ifdef __cplusplus
# define SWIGUNUSEDPARM(p)
# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif
# define SWIGSTDCALL __stdcall
# else
# define SWIGSTDCALL
-# endif
+# endif
#endif
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
/* -----------------------------------------------------------------------------
* swigrun.swg
*
- * This file contains generic CAPI SWIG runtime support for pointer
+ * This file contains generic C API SWIG runtime support for pointer
* type checking.
* ----------------------------------------------------------------------------- */
/*
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
- creating a static or dynamic library from the swig runtime code.
- In 99.9% of the cases, swig just needs to declare them as 'static'.
-
- But only do this if is strictly necessary, ie, if you have problems
- with your compiler or so.
+ creating a static or dynamic library from the SWIG runtime code.
+ In 99.9% of the cases, SWIG just needs to declare them as 'static'.
+
+ But only do this if strictly necessary, ie, if you have problems
+ with your compiler or suchlike.
*/
#ifndef SWIGRUNTIME
#define SWIG_POINTER_OWN 0x1
-/*
+/*
Flags/methods for returning states.
-
- The swig conversion methods, as ConvertPtr, return and integer
+
+ The SWIG conversion methods, as ConvertPtr, return an integer
that tells if the conversion was successful or not. And if not,
an error code can be returned (see swigerrors.swg for the codes).
-
+
Use the following macros/flags to set or process the returning
states.
-
- In old swig versions, you usually write code as:
+
+ In old versions of SWIG, code such as the following was usually written:
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
// success code
//fail code
}
- Now you can be more explicit as:
+ Now you can be more explicit:
int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
if (SWIG_IsOK(res)) {
// fail code
}
- that seems to be the same, but now you can also do
+ which is the same really, but now you can also do
Type *ptr;
int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
} else {
// fail code
}
-
+
I.e., now SWIG_ConvertPtr can return new objects and you can
identify the case and take care of the deallocation. Of course that
- requires also to SWIG_ConvertPtr to return new result values, as
-
- int SWIG_ConvertPtr(obj, ptr,...) {
- if (<obj is ok>) {
- if (<need new object>) {
- *ptr = <ptr to new allocated object>;
- return SWIG_NEWOBJ;
- } else {
- *ptr = <ptr to old object>;
- return SWIG_OLDOBJ;
- }
- } else {
- return SWIG_BADOBJ;
- }
+ also requires SWIG_ConvertPtr to return new result values, such as
+
+ int SWIG_ConvertPtr(obj, ptr,...) {
+ if (<obj is ok>) {
+ if (<need new object>) {
+ *ptr = <ptr to new allocated object>;
+ return SWIG_NEWOBJ;
+ } else {
+ *ptr = <ptr to old object>;
+ return SWIG_OLDOBJ;
+ }
+ } else {
+ return SWIG_BADOBJ;
+ }
}
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
- swig errors code.
+ SWIG errors code.
Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
allows to return the 'cast rank', for example, if you have this
int fooi(int);
and you call
-
+
food(1) // cast rank '1' (1 -> 1.0)
fooi(1) // cast rank '0'
just use the SWIG_AddCast()/SWIG_CheckState()
+*/
-
- */
-#define SWIG_OK (0)
+#define SWIG_OK (0)
#define SWIG_ERROR (-1)
#define SWIG_IsOK(r) (r >= 0)
-#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
+#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
/* The CastRankLimit says how many bits are used for the cast rank */
#define SWIG_CASTRANKLIMIT (1 << 8)
#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
-
/* Cast-Rank Mode */
#if defined(SWIG_CASTRANK_MODE)
# ifndef SWIG_TypeRank
# endif
# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
-SWIGINTERNINLINE int SWIG_AddCast(int r) {
+SWIGINTERNINLINE int SWIG_AddCast(int r) {
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
}
-SWIGINTERNINLINE int SWIG_CheckState(int r) {
- return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
+SWIGINTERNINLINE int SWIG_CheckState(int r) {
+ return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
}
#else /* no cast-rank mode */
-# define SWIG_AddCast
+# define SWIG_AddCast(r) (r)
# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
#endif
-
-
#include <string.h>
#ifdef __cplusplus
void *clientdata; /* Language specific module data */
} swig_module_info;
-/*
+/*
Compare two type names skipping the space characters, therefore
"char*" == "char *" and "Class<int>" == "Class<int >", etc.
/*
Check type equivalence in a name list like <name1>|<name2>|...
- Return 0 if not equal, 1 if equal
+ Return 0 if equal, -1 if nb < tb, 1 if nb > tb
*/
SWIGRUNTIME int
-SWIG_TypeEquiv(const char *nb, const char *tb) {
- int equiv = 0;
+SWIG_TypeCmp(const char *nb, const char *tb) {
+ int equiv = 1;
const char* te = tb + strlen(tb);
const char* ne = nb;
- while (!equiv && *ne) {
+ while (equiv != 0 && *ne) {
for (nb = ne; *ne; ++ne) {
if (*ne == '|') break;
}
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
+ equiv = SWIG_TypeNameComp(nb, ne, tb, te);
if (*ne) ++ne;
}
return equiv;
/*
Check type equivalence in a name list like <name1>|<name2>|...
- Return 0 if equal, -1 if nb < tb, 1 if nb > tb
+ Return 0 if not equal, 1 if equal
*/
SWIGRUNTIME int
-SWIG_TypeCompare(const char *nb, const char *tb) {
- int equiv = 0;
- const char* te = tb + strlen(tb);
- const char* ne = nb;
- while (!equiv && *ne) {
- for (nb = ne; *ne; ++ne) {
- if (*ne == '|') break;
- }
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
- if (*ne) ++ne;
- }
- return equiv;
+SWIG_TypeEquiv(const char *nb, const char *tb) {
+ return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
}
-
-/* think of this as a c++ template<> or a scheme macro */
-#define SWIG_TypeCheck_Template(comparison, ty) \
- if (ty) { \
- swig_cast_info *iter = ty->cast; \
- while (iter) { \
- if (comparison) { \
- if (iter == ty->cast) return iter; \
- /* Move iter to the top of the linked list */ \
- iter->prev->next = iter->next; \
- if (iter->next) \
- iter->next->prev = iter->prev; \
- iter->next = ty->cast; \
- iter->prev = 0; \
- if (ty->cast) ty->cast->prev = iter; \
- ty->cast = iter; \
- return iter; \
- } \
- iter = iter->next; \
- } \
- } \
- return 0
-
/*
Check the typename
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
- SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
+ if (ty) {
+ swig_cast_info *iter = ty->cast;
+ while (iter) {
+ if (strcmp(iter->type->name, c) == 0) {
+ if (iter == ty->cast)
+ return iter;
+ /* Move iter to the top of the linked list */
+ iter->prev->next = iter->next;
+ if (iter->next)
+ iter->next->prev = iter->prev;
+ iter->next = ty->cast;
+ iter->prev = 0;
+ if (ty->cast) ty->cast->prev = iter;
+ ty->cast = iter;
+ return iter;
+ }
+ iter = iter->next;
+ }
+ }
+ return 0;
}
-/* Same as previous function, except strcmp is replaced with a pointer comparison */
+/*
+ Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
+*/
SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
- SWIG_TypeCheck_Template(iter->type == from, into);
+SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
+ if (ty) {
+ swig_cast_info *iter = ty->cast;
+ while (iter) {
+ if (iter->type == from) {
+ if (iter == ty->cast)
+ return iter;
+ /* Move iter to the top of the linked list */
+ iter->prev->next = iter->next;
+ if (iter->next)
+ iter->next->prev = iter->prev;
+ iter->next = ty->cast;
+ iter->prev = 0;
+ if (ty->cast) ty->cast->prev = iter;
+ ty->cast = iter;
+ return iter;
+ }
+ iter = iter->next;
+ }
+ }
+ return 0;
}
/*
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
}
-/*
+/*
Dynamic pointer casting. Down an inheritance hierarchy
*/
SWIGRUNTIME swig_type_info *
return type->name;
}
-/*
+/*
Set the clientdata field for a type
*/
SWIGRUNTIME void
swig_cast_info *cast = ti->cast;
/* if (ti->clientdata == clientdata) return; */
ti->clientdata = clientdata;
-
+
while (cast) {
if (!cast->converter) {
swig_type_info *tc = cast->type;
if (!tc->clientdata) {
SWIG_TypeClientData(tc, clientdata);
}
- }
+ }
cast = cast->next;
}
}
SWIG_TypeClientData(ti, clientdata);
ti->owndata = 1;
}
-
+
/*
Search for a swig_type_info structure only by mangled name
Search is a O(log #types)
-
- We start searching at module start, and finish searching when start == end.
+
+ We start searching at module start, and finish searching when start == end.
Note: if start == end at the beginning of the function, we go all the way around
the circular list.
*/
SWIGRUNTIME swig_type_info *
-SWIG_MangledTypeQueryModule(swig_module_info *start,
- swig_module_info *end,
+SWIG_MangledTypeQueryModule(swig_module_info *start,
+ swig_module_info *end,
const char *name) {
swig_module_info *iter = start;
do {
register size_t r = iter->size - 1;
do {
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
- register size_t i = (l + r) >> 1;
+ register size_t i = (l + r) >> 1;
const char *iname = iter->types[i]->name;
if (iname) {
register int compare = strcmp(name, iname);
- if (compare == 0) {
+ if (compare == 0) {
return iter->types[i];
} else if (compare < 0) {
if (i) {
Search for a swig_type_info structure for either a mangled name or a human readable name.
It first searches the mangled names of the types, which is a O(log #types)
If a type is not found it then searches the human readable names, which is O(#types).
-
- We start searching at module start, and finish searching when start == end.
+
+ We start searching at module start, and finish searching when start == end.
Note: if start == end at the beginning of the function, we go all the way around
the circular list.
*/
SWIGRUNTIME swig_type_info *
-SWIG_TypeQueryModule(swig_module_info *start,
- swig_module_info *end,
+SWIG_TypeQueryModule(swig_module_info *start,
+ swig_module_info *end,
const char *name) {
/* STEP 1: Search the name field using binary search */
swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
iter = iter->next;
} while (iter != end);
}
-
+
/* neither found a match */
return 0;
}
-/*
+/*
Pack binary data into a string
*/
SWIGRUNTIME char *
return c;
}
-/*
+/*
Unpack binary data from a string
*/
SWIGRUNTIME const char *
uu = ((d - '0') << 4);
else if ((d >= 'a') && (d <= 'f'))
uu = ((d - ('a'-10)) << 4);
- else
+ else
return (char *) 0;
d = *(c++);
if ((d >= '0') && (d <= '9'))
uu |= (d - '0');
else if ((d >= 'a') && (d <= 'f'))
uu |= (d - ('a'-10));
- else
+ else
return (char *) 0;
*u = uu;
}
return c;
}
-/*
+/*
Pack 'void *' into a string buffer.
*/
SWIGRUNTIME char *
#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.
- *
* luarun.swg
*
* This file contains the runtime support for Lua modules
#include <stdlib.h> /* for malloc */
#include <assert.h> /* for a few sanity tests */
+/* -----------------------------------------------------------------------------
+ * Lua flavors
+ * ----------------------------------------------------------------------------- */
+
+#define SWIG_LUA_FLAVOR_LUA 1
+#define SWIG_LUA_FLAVOR_ELUA 2
+#define SWIG_LUA_FLAVOR_ELUAC 3
+
+#if !defined(SWIG_LUA_TARGET)
+# error SWIG_LUA_TARGET not defined
+#endif
+
+#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
+# define SWIG_LUA_CONSTTAB_INT(B, C) LSTRKEY(B), LNUMVAL(C)
+# define SWIG_LUA_CONSTTAB_FLOAT(B, C) LSTRKEY(B), LNUMVAL(C)
+# define SWIG_LUA_CONSTTAB_STRING(B, C) LSTRKEY(B), LSTRVAL(C)
+# define SWIG_LUA_CONSTTAB_CHAR(B, C) LSTRKEY(B), LNUMVAL(C)
+#else /* SWIG_LUA_FLAVOR_LUA */
+# define SWIG_LUA_CONSTTAB_INT(B, C) SWIG_LUA_INT, (char *)B, (long)C, 0, 0, 0
+# define SWIG_LUA_CONSTTAB_FLOAT(B, C) SWIG_LUA_FLOAT, (char *)B, 0, (double)C, 0, 0
+# define SWIG_LUA_CONSTTAB_STRING(B, C) SWIG_LUA_STRING, (char *)B, 0, 0, (void *)C, 0
+# define SWIG_LUA_CONSTTAB_CHAR(B, C) SWIG_LUA_CHAR, (char *)B, (long)C, 0, 0, 0
+#endif
+
+#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
+# define LRO_STRVAL(v) {{.p = (char *) v}, LUA_TSTRING}
+# define LSTRVAL LRO_STRVAL
+#endif
+
+/* -----------------------------------------------------------------------------
+ * compatibility defines
+ * ----------------------------------------------------------------------------- */
+
+/* History of Lua C API length functions: In Lua 5.0 (and before?)
+ there was "lua_strlen". In Lua 5.1, this was renamed "lua_objlen",
+ but a compatibility define of "lua_strlen" was added. In Lua 5.2,
+ this function was again renamed, to "lua_rawlen" (to emphasize that
+ it doesn't call the "__len" metamethod), and the compatibility
+ define of lua_strlen was removed. All SWIG uses have been updated
+ to "lua_rawlen", and we add our own defines of that here for older
+ versions of Lua. */
+#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501
+# define lua_rawlen lua_strlen
+#elif LUA_VERSION_NUM == 501
+# define lua_rawlen lua_objlen
+#endif
+
+
+/* lua_pushglobaltable is the recommended "future-proof" way to get
+ the global table for Lua 5.2 and later. Here we define
+ lua_pushglobaltable ourselves for Lua versions before 5.2. */
+#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502
+# define lua_pushglobaltable(L) lua_pushvalue(L, LUA_GLOBALSINDEX)
+#endif
+
+
+/* --------------------------------------------------------------------------
+ * Helper functions for error handling
+ * -------------------------------------------------------------------------- */
+
+/* Push the string STR on the Lua stack, like lua_pushstring, but
+ prefixed with the the location of the innermost Lua call-point
+ (as formated by luaL_where). */
+SWIGRUNTIME void
+SWIG_Lua_pusherrstring (lua_State *L, const char *str)
+{
+ luaL_where (L, 1);
+ lua_pushstring (L, str);
+ lua_concat (L, 2);
+}
+
+/* Push a formatted string generated from FMT and following args on
+ the Lua stack, like lua_pushfstring, but prefixed with the the
+ location of the innermost Lua call-point (as formated by luaL_where). */
+SWIGRUNTIME void
+SWIG_Lua_pushferrstring (lua_State *L, const char *fmt, ...)
+{
+ va_list argp;
+ va_start(argp, fmt);
+ luaL_where(L, 1);
+ lua_pushvfstring(L, fmt, argp);
+ va_end(argp);
+ lua_concat(L, 2);
+}
+
+
/* -----------------------------------------------------------------------------
* global swig types
* ----------------------------------------------------------------------------- */
lua_CFunction setmethod;
} swig_lua_attribute;
+// Can be used to create namespaces. Currently used to
+// wrap class static methods/variables/constants
+typedef struct {
+ const char *name;
+ swig_lua_method *ns_methods;
+ swig_lua_attribute *ns_attributes;
+ swig_lua_const_info *ns_constants;
+} swig_lua_namespace;
+
typedef struct swig_lua_class {
const char *name;
swig_type_info **type;
void (*destructor)(void *);
swig_lua_method *methods;
swig_lua_attribute *attributes;
+ swig_lua_namespace cls_static;
struct swig_lua_class **bases;
const char **base_names;
} swig_lua_class;
-/* this is the struct for wrappering all pointers in SwigLua
+/* this is the struct for wrapping all pointers in SwigLua
*/
typedef struct {
swig_type_info *type;
void *ptr;
} swig_lua_userdata;
-/* this is the struct for wrapping arbitary packed binary data
+/* this is the struct for wrapping arbitrary packed binary data
(currently it is only used for member function pointers)
the data ordering is similar to swig_lua_userdata, but it is currently not possible
-to tell the two structures apart within Swig, other than by looking at the type
+to tell the two structures apart within SWIG, other than by looking at the type
*/
typedef struct {
swig_type_info *type;
/* Contract support */
#define SWIG_contract_assert(expr, msg) \
- if (!(expr)) { lua_pushstring(L, (char *) msg); goto fail; } else
+ if (!(expr)) { SWIG_Lua_pusherrstring(L, (char *) msg); goto fail; } else
+
/* helper #defines */
#define SWIG_fail {goto fail;}
#define SWIG_fail_arg(func_name,argnum,type) \
- {lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\
+ {SWIG_Lua_pushferrstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\
func_name,argnum,type,SWIG_Lua_typename(L,argnum));\
goto fail;}
#define SWIG_fail_ptr(func_name,argnum,type) \
SWIG_fail_arg(func_name,argnum,(type && type->str)?type->str:"void*")
#define SWIG_check_num_args(func_name,a,b) \
if (lua_gettop(L)<a || lua_gettop(L)>b) \
- {lua_pushfstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\
+ {SWIG_Lua_pushferrstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\
goto fail;}
* ----------------------------------------------------------------------------- */
/* this function is called when trying to set an immutable.
-default value is to print an error.
+default action is to print an error.
This can removed with a compile flag SWIGLUA_IGNORE_SET_IMMUTABLE */
SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L)
{
/* there should be 1 param passed in: the new value */
#ifndef SWIGLUA_IGNORE_SET_IMMUTABLE
lua_pop(L,1); /* remove it */
- lua_pushstring(L,"This variable is immutable");
- lua_error(L);
+ luaL_error(L,"This variable is immutable");
#endif
return 0; /* should not return anything */
}
lua_tostring(L,2));
*/
/* get the metatable */
- assert(lua_istable(L,1)); /* just in case */
+#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
+ assert(lua_isrotable(L,1)); /* just in case */
+#else
+ assert(lua_istable(L,1)); /* default Lua action */
+#endif
lua_getmetatable(L,1); /* get the metatable */
- assert(lua_istable(L,-1)); /* just in case */
+#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
+ assert(lua_isrotable(L,-1)); /* just in case */
+#else
+ assert(lua_istable(L,-1));
+#endif
SWIG_Lua_get_table(L,".get"); /* get the .get table */
lua_remove(L,3); /* remove metatable */
+#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
+ if (lua_isrotable(L,-1))
+#else
if (lua_istable(L,-1))
+#endif
{
/* look for the key in the .get table */
lua_pushvalue(L,2); /* key */
}
lua_pop(L,1); /* remove the .get */
lua_pushnil(L); /* return a nil */
- return 1;
+ return 1;
}
/* the module.set method used for setting linked data */
(3) any for the new value
*/
/* get the metatable */
- assert(lua_istable(L,1)); /* just in case */
+#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
+ assert(lua_isrotable(L,1)); /* just in case */
+#else
+ assert(lua_istable(L,1)); /* default Lua action */
+#endif
lua_getmetatable(L,1); /* get the metatable */
- assert(lua_istable(L,-1)); /* just in case */
+#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
+ assert(lua_isrotable(L,-1)); /* just in case */
+#else
+ assert(lua_istable(L,-1));
+#endif
SWIG_Lua_get_table(L,".set"); /* get the .set table */
lua_remove(L,4); /* remove metatable */
+#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
+ if (lua_isrotable(L,-1))
+#else
if (lua_istable(L,-1))
+#endif
{
/* look for the key in the .set table */
lua_pushvalue(L,2); /* key */
lua_call(L,1,0);
return 0;
}
+#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA)
+ else {
+ return 0; // Exits stoically if an invalid key is initialized.
+ }
+#endif
}
lua_settop(L,3); /* reset back to start */
/* we now have the table, key & new value, so just set directly */
return 0;
}
-/* registering a module in lua */
+#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC))
+/* registering a module in lua. Pushes the module table on the stack. */
SWIGINTERN void SWIG_Lua_module_begin(lua_State* L,const char* name)
{
assert(lua_istable(L,-1)); /* just in case */
lua_newtable(L); /* the .set table */
lua_rawset(L,-3); /* add .set into metatable */
lua_setmetatable(L,-2); /* sets meta table in module */
+#ifdef SWIG_LUA_MODULE_GLOBAL
+ /* If requested, install the module directly into the global namespace. */
lua_rawset(L,-3); /* add module into parent */
SWIG_Lua_get_table(L,name); /* get the table back out */
+#else
+ /* Do not install the module table as global name. The stack top has
+ the module table with the name below. We pop the top and replace
+ the name with it. */
+ lua_replace(L,-2);
+#endif
}
/* ending the register */
}
lua_pop(L,1); /* tidy stack (remove meta) */
}
+#endif
/* adding a function module */
SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_CFunction fn)
SWIG_Lua_add_function(L,name,fn);
}
+/* -----------------------------------------------------------------------------
+ * global variable support code: namespaces
+ * ----------------------------------------------------------------------------- */
+
+SWIGINTERN int SWIG_Lua_namespace_get(lua_State* L)
+{
+/* there should be 2 params passed in
+ (1) table (not the meta table)
+ (2) string name of the attribute
+*/
+ assert(lua_istable(L,-2)); /* just in case */
+ lua_getmetatable(L,-2);
+ assert(lua_istable(L,-1));
+ SWIG_Lua_get_table(L,".get"); /* find the .get table */
+ assert(lua_istable(L,-1));
+ /* look for the key in the .get table */
+ lua_pushvalue(L,2); /* key */
+ lua_rawget(L,-2);
+ lua_remove(L,-2); /* stack tidy, remove .get table */
+ if (lua_iscfunction(L,-1))
+ { /* found it so call the fn & return its value */
+ lua_call(L,0,1); /* 1 value in (userdata),1 out (result) */
+ lua_remove(L,-2); /* stack tidy, remove metatable */
+ return 1;
+ }
+ lua_pop(L,1); /* remove whatever was there */
+ /* ok, so try the .fn table */
+ SWIG_Lua_get_table(L,".fn"); /* find the .get table */
+ assert(lua_istable(L,-1)); /* just in case */
+ lua_pushvalue(L,2); /* key */
+ lua_rawget(L,-2); /* look for the fn */
+ lua_remove(L,-2); /* stack tidy, remove .fn table */
+ if (lua_isfunction(L,-1)) /* note: whether it's a C function or lua function */
+ { /* found it so return the fn & let lua call it */
+ lua_remove(L,-2); /* stack tidy, remove metatable */
+ return 1;
+ }
+ lua_pop(L,1); /* remove whatever was there */
+ return 0;
+}
+
+SWIGINTERN int SWIG_Lua_namespace_set(lua_State* L)
+{
+/* there should be 3 params passed in
+ (1) table (not the meta table)
+ (2) string name of the attribute
+ (3) any for the new value
+*/
+
+ assert(lua_istable(L,1));
+ lua_getmetatable(L,1); /* get the meta table */
+ assert(lua_istable(L,-1));
+
+ SWIG_Lua_get_table(L,".set"); /* find the .set table */
+ if (lua_istable(L,-1))
+ {
+ /* look for the key in the .set table */
+ lua_pushvalue(L,2); /* key */
+ lua_rawget(L,-2);
+ if (lua_iscfunction(L,-1))
+ { /* found it so call the fn & return its value */
+ lua_pushvalue(L,3); /* value */
+ lua_call(L,1,0);
+ return 0;
+ }
+ lua_pop(L,1); /* remove the value */
+ }
+ lua_pop(L,1); /* remove the value .set table */
+ return 0;
+}
+
+SWIGINTERN void SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]); // forward declaration
+SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn); // forward declaration
+
+/* helper function - register namespace methods and attributes into namespace */
+SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State* L, swig_lua_namespace* ns)
+{
+ int i = 0;
+ assert(lua_istable(L,-1));
+ /* There must be table at the top of the stack */
+ SWIG_Lua_InstallConstants(L, ns->ns_constants);
+
+ lua_getmetatable(L,-1);
+
+ /* add fns */
+ for(i=0;ns->ns_attributes[i].name;i++){
+ SWIG_Lua_add_class_variable(L,ns->ns_attributes[i].name,ns->ns_attributes[i].getmethod,ns->ns_attributes[i].setmethod);
+ }
+
+ /* add methods to the metatable */
+ SWIG_Lua_get_table(L,".fn"); /* find the .fn table */
+ assert(lua_istable(L,-1)); /* just in case */
+ for(i=0;ns->ns_methods[i].name;i++){
+ SWIG_Lua_add_function(L,ns->ns_methods[i].name,ns->ns_methods[i].method);
+ }
+ lua_pop(L,1);
+
+ /* clear stack - remove metatble */
+ lua_pop(L,1);
+ return 0;
+}
+
+/* helper function. creates namespace table and add it to module table */
+SWIGINTERN int SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns)
+{
+ assert(lua_istable(L,-1)); /* just in case. This is supposed to be module table */
+ lua_checkstack(L,5);
+ lua_pushstring(L, ns->name);
+ lua_newtable(L); /* namespace itself */
+ lua_newtable(L); /* metatable for namespace */
+
+ /* add a table called ".get" */
+ lua_pushstring(L,".get");
+ lua_newtable(L);
+ lua_rawset(L,-3);
+ /* add a table called ".set" */
+ lua_pushstring(L,".set");
+ lua_newtable(L);
+ lua_rawset(L,-3);
+ /* add a table called ".fn" */
+ lua_pushstring(L,".fn");
+ lua_newtable(L);
+ lua_rawset(L,-3);
+
+ /* add accessor fns for using the .get,.set&.fn */
+ SWIG_Lua_add_function(L,"__index",SWIG_Lua_namespace_get);
+ SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_namespace_set);
+
+ lua_setmetatable(L,-2); /* set metatable */
+ lua_rawset(L,-3); /* add namespace to module table */
+ return 0;
+}
/* -----------------------------------------------------------------------------
* global variable support code: classes
* ----------------------------------------------------------------------------- */
return 0;
}
+/* the class.__tostring method called by the interpreter and print */
+SWIGINTERN int SWIG_Lua_class_tostring(lua_State* L)
+{
+/* there should be 1 param passed in
+ (1) userdata (not the metatable) */
+ assert(lua_isuserdata(L,1)); /* just in case */
+ unsigned long userData = (unsigned long)lua_touserdata(L,1); /* get the userdata address for later */
+ lua_getmetatable(L,1); /* get the meta table */
+ assert(lua_istable(L,-1)); /* just in case */
+
+ lua_getfield(L, -1, ".type");
+ const char* className = lua_tostring(L, -1);
+
+ char output[256];
+ sprintf(output, "<%s userdata: %lX>", className, userData);
+
+ lua_pushstring(L, (const char*)output);
+ return 1;
+}
+
+/* to manually disown some userdata */
+SWIGINTERN int SWIG_Lua_class_disown(lua_State* L)
+{
+/* there should be 1 params passed in
+ (1) userdata (not the meta table) */
+ swig_lua_userdata* usr;
+ assert(lua_isuserdata(L,-1)); /* just in case */
+ usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */
+
+ usr->own = 0; /* clear our ownership */
+ return 0;
+}
+
+/* Constructor proxy. Used when class name entry in module is not class constructor,
+but special table instead. */
+SWIGINTERN int SWIG_Lua_constructor_proxy(lua_State* L)
+{
+ /* unlimited number of parameters
+ First one is our proxy table and we should remove it
+ Other we should pass to real constructor
+ */
+ assert(lua_istable(L,1));
+ lua_pushstring(L,".constructor");
+ lua_rawget(L,1);
+ assert(!lua_isnil(L,-1));
+ lua_replace(L,1); /* replace our table with real constructor */
+ lua_call(L,lua_gettop(L)-1,1);
+ return 1;
+}
+
/* gets the swig class registry (or creates it) */
SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L)
{
}
}
+/* helper to recursively add class static details (static attributes, operations and constants) */
+SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State* L, swig_lua_class* clss)
+{
+ int i = 0;
+ /* The class namespace table must be on the top of the stack */
+ assert(lua_istable(L,-1));
+ /* call all the base classes first: we can then override these later: */
+ for(i=0;clss->bases[i];i++)
+ {
+ SWIG_Lua_add_class_static_details(L,clss->bases[i]);
+ }
+
+ SWIG_Lua_add_namespace_details(L, &clss->cls_static);
+}
+
/* helper to recursively add class details (attributes & operations) */
SWIGINTERN void SWIG_Lua_add_class_details(lua_State* L,swig_lua_class* clss)
{
swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]);
if (info) clss->bases[i] = (swig_lua_class *) info->clientdata;
}
- }
+ }
}
-/* performs the entire class registration process */
-SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss)
+/* Register class static methods,attributes etc as well as constructor proxy */
+SWIGINTERN void SWIG_Lua_class_register_static(lua_State* L, swig_lua_class* clss)
{
+ lua_checkstack(L,5); /* just in case */
+ assert(lua_istable(L,-1)); /* just in case */
+ assert(strcmp(clss->name, clss->cls_static.name) == 0); /* in class those 2 must be equal */
+
+ SWIG_Lua_namespace_register(L,&clss->cls_static);
+
+ SWIG_Lua_get_table(L,clss->name); // Get namespace table back
+ assert(lua_istable(L,-1)); /* just in case */
+
/* add its constructor to module with the name of the class
so you can do MyClass(...) as well as new_MyClass(...)
BUT only if a constructor is defined
(this overcomes the problem of pure virtual classes without constructors)*/
if (clss->constructor)
- SWIG_Lua_add_function(L,clss->name,clss->constructor);
+ {
+ SWIG_Lua_add_function(L,".constructor", clss->constructor);
+ lua_getmetatable(L,-1);
+ assert(lua_istable(L,-1)); /* just in case */
+ SWIG_Lua_add_function(L,"__call", SWIG_Lua_constructor_proxy);
+ lua_pop(L,1);
+ }
+
+ assert(lua_istable(L,-1)); /* just in case */
+ SWIG_Lua_add_class_static_details(L, clss);
+
+ /* clear stack */
+ lua_pop(L,1);
+}
+
+/* performs the entire class registration process */
+SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss)
+{
+ SWIG_Lua_class_register_static(L,clss);
SWIG_Lua_get_class_registry(L); /* get the registry */
lua_pushstring(L,clss->name); /* get the name */
/* add a table called ".fn" */
lua_pushstring(L,".fn");
lua_newtable(L);
+ /* add manual disown method */
+ SWIG_Lua_add_function(L,"__disown",SWIG_Lua_class_disown);
lua_rawset(L,-3);
/* add accessor fns for using the .get,.set&.fn */
SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get);
SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set);
SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct);
+ /* add tostring method for better output */
+ SWIG_Lua_add_function(L,"__tostring",SWIG_Lua_class_tostring);
/* add it */
lua_rawset(L,-3); /* metatable into registry */
lua_pop(L,1); /* tidy stack (remove registry) */
usr->ptr=ptr; /* set the ptr */
usr->type=type;
usr->own=own;
+#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
_SWIG_Lua_AddMetatable(L,type); /* add metatable */
+#endif
}
/* takes a object from the lua stack & converts it into an object of the correct type
int argnum,const char* func_name){
void* result;
if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))){
- lua_pushfstring(L,"Error in %s, expected a %s at argument number %d\n",
- func_name,(type && type->str)?type->str:"void*",argnum);
- lua_error(L);
+ luaL_error (L,"Error in %s, expected a %s at argument number %d\n",
+ func_name,(type && type->str)?type->str:"void*",argnum);
}
return result;
}
swig_lua_userdata* usr;
if (lua_isuserdata(L,tp))
{
- usr=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */
+ usr=(swig_lua_userdata*)lua_touserdata(L,tp); /* get data */
if (usr && usr->type && usr->type->str)
return usr->type->str;
return "userdata (unknown type)";
* global variable support code: class/struct typemap functions
* ----------------------------------------------------------------------------- */
+#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC))
/* Install Constants */
SWIGINTERN void
SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) {
}
}
}
+#endif
/* -----------------------------------------------------------------------------
* executing lua code from within the wrapper
#ifndef SWIG_DOSTRING_FAIL /* Allows redefining of error function */
#define SWIG_DOSTRING_FAIL(S) fprintf(stderr,"%s\n",S)
#endif
-/* Executes a C string in Lua a really simple way of calling lua from C
-Unfortunately lua keeps changing its API's, so we need a conditional compile
+/* Executes a C string in Lua which is a really simple way of calling lua from C
+Unfortunately lua keeps changing its APIs, so we need a conditional compile
In lua 5.0.X its lua_dostring()
In lua 5.1.X its luaL_dostring()
*/
#define SWIG_LUACODE luaopen_freeswitch_luacode
-
namespace swig {
typedef struct{} LANGUAGE_OBJ;
}
#ifdef __cplusplus /* generic alloc/dealloc fns*/
#define SWIG_ALLOC_ARRAY(TYPE,LEN) new TYPE[LEN]
-#define SWIG_FREE_ARRAY(PTR) delete[] PTR;
+#define SWIG_FREE_ARRAY(PTR) delete[] PTR
#else
#define SWIG_ALLOC_ARRAY(TYPE,LEN) (TYPE *)malloc(LEN*sizeof(TYPE))
-#define SWIG_FREE_ARRAY(PTR) free(PTR);
+#define SWIG_FREE_ARRAY(PTR) free(PTR)
#endif
/* counting the size of arrays:*/
-int SWIG_itable_size(lua_State* L, int index)
+SWIGINTERN int SWIG_itable_size(lua_State* L, int index)
{
int n=0;
while(1){
return n;
}
-int SWIG_table_size(lua_State* L, int index)
+SWIGINTERN int SWIG_table_size(lua_State* L, int index)
{
int n=0;
lua_pushnil(L); /* first key*/
/* super macro to declare array typemap helper fns */
#define SWIG_DECLARE_TYPEMAP_ARR_FN(NAME,TYPE)\
- int SWIG_read_##NAME##_num_array(lua_State* L,int index,TYPE *array,int size){\
+ SWIGINTERN int SWIG_read_##NAME##_num_array(lua_State* L,int index,TYPE *array,int size){\
int i;\
for (i = 0; i < size; i++) {\
lua_rawgeti(L,index,i+1);\
}\
return 1;\
}\
- static TYPE* SWIG_get_##NAME##_num_array_fixed(lua_State* L, int index, int size){\
+ SWIGINTERN TYPE* SWIG_get_##NAME##_num_array_fixed(lua_State* L, int index, int size){\
TYPE *array;\
if (!lua_istable(L,index) || SWIG_itable_size(L,index) != size) {\
- lua_pushfstring(L,"expected a table of size %d",size);\
+ SWIG_Lua_pushferrstring(L,"expected a table of size %d",size);\
return 0;\
}\
array=SWIG_ALLOC_ARRAY(TYPE,size);\
if (!SWIG_read_##NAME##_num_array(L,index,array,size)){\
- lua_pushstring(L,"table must contain numbers");\
+ SWIG_Lua_pusherrstring(L,"table must contain numbers");\
SWIG_FREE_ARRAY(array);\
return 0;\
}\
return array;\
}\
- static TYPE* SWIG_get_##NAME##_num_array_var(lua_State* L, int index, int* size)\
+ SWIGINTERN TYPE* SWIG_get_##NAME##_num_array_var(lua_State* L, int index, int* size)\
{\
TYPE *array;\
if (!lua_istable(L,index)) {\
- lua_pushstring(L,"expected a table");\
+ SWIG_Lua_pusherrstring(L,"expected a table");\
return 0;\
}\
*size=SWIG_itable_size(L,index);\
if (*size<1){\
- lua_pushstring(L,"table appears to be empty");\
+ SWIG_Lua_pusherrstring(L,"table appears to be empty");\
return 0;\
}\
array=SWIG_ALLOC_ARRAY(TYPE,*size);\
if (!SWIG_read_##NAME##_num_array(L,index,array,*size)){\
- lua_pushstring(L,"table must contain numbers");\
+ SWIG_Lua_pusherrstring(L,"table must contain numbers");\
SWIG_FREE_ARRAY(array);\
return 0;\
}\
return array;\
}\
- void SWIG_write_##NAME##_num_array(lua_State* L,TYPE *array,int size){\
+ SWIGINTERN void SWIG_write_##NAME##_num_array(lua_State* L,TYPE *array,int size){\
int i;\
lua_newtable(L);\
for (i = 0; i < size; i++){\
}\
}
+SWIG_DECLARE_TYPEMAP_ARR_FN(schar,signed char);
+SWIG_DECLARE_TYPEMAP_ARR_FN(uchar,unsigned char);
SWIG_DECLARE_TYPEMAP_ARR_FN(int,int);
SWIG_DECLARE_TYPEMAP_ARR_FN(uint,unsigned int);
SWIG_DECLARE_TYPEMAP_ARR_FN(short,short);
SWIG_DECLARE_TYPEMAP_ARR_FN(float,float);
SWIG_DECLARE_TYPEMAP_ARR_FN(double,double);
-int SWIG_read_ptr_array(lua_State* L,int index,void **array,int size,swig_type_info *type){
+SWIGINTERN int SWIG_read_ptr_array(lua_State* L,int index,void **array,int size,swig_type_info *type){
int i;
for (i = 0; i < size; i++) {
lua_rawgeti(L,index,i+1);
}
return 1;
}
-static void** SWIG_get_ptr_array_fixed(lua_State* L, int index, int size,swig_type_info *type){
+SWIGINTERN void** SWIG_get_ptr_array_fixed(lua_State* L, int index, int size,swig_type_info *type){
void **array;
if (!lua_istable(L,index) || SWIG_itable_size(L,index) != size) {
- lua_pushfstring(L,"expected a table of size %d",size);
+ SWIG_Lua_pushferrstring(L,"expected a table of size %d",size);
return 0;
}
array=SWIG_ALLOC_ARRAY(void*,size);
if (!SWIG_read_ptr_array(L,index,array,size,type)){
- lua_pushfstring(L,"table must contain pointers of type %s",type->name);
+ SWIG_Lua_pushferrstring(L,"table must contain pointers of type %s",type->name);
SWIG_FREE_ARRAY(array);
return 0;
}
return array;
}
-static void** SWIG_get_ptr_array_var(lua_State* L, int index, int* size,swig_type_info *type){
+SWIGINTERN void** SWIG_get_ptr_array_var(lua_State* L, int index, int* size,swig_type_info *type){
void **array;
if (!lua_istable(L,index)) {
- lua_pushstring(L,"expected a table");
+ SWIG_Lua_pusherrstring(L,"expected a table");
return 0;
}
*size=SWIG_itable_size(L,index);
if (*size<1){
- lua_pushstring(L,"table appears to be empty");
+ SWIG_Lua_pusherrstring(L,"table appears to be empty");
return 0;
}
array=SWIG_ALLOC_ARRAY(void*,*size);
if (!SWIG_read_ptr_array(L,index,array,*size,type)){
- lua_pushfstring(L,"table must contain pointers of type %s",type->name);
+ SWIG_Lua_pushferrstring(L,"table must contain pointers of type %s",type->name);
SWIG_FREE_ARRAY(array);
return 0;
}
return array;
}
-void SWIG_write_ptr_array(lua_State* L,void **array,int size,swig_type_info *type,int own){
+SWIGINTERN void SWIG_write_ptr_array(lua_State* L,void **array,int size,swig_type_info *type,int own){
int i;
lua_newtable(L);
for (i = 0; i < size; i++){
}
}
+
+SWIGINTERN int SWIG_lua_isnilstring(lua_State *L, int idx) {
+ int ret = lua_isstring(L, idx);
+ if (!ret)
+ ret = lua_isnil(L, idx);
+ return ret;
+}
+
#ifdef __cplusplus
extern "C" {
#endif
static int _wrap_setGlobalVariable(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
SWIG_check_num_args("setGlobalVariable",2,2)
- if(!lua_isstring(L,1)) SWIG_fail_arg("setGlobalVariable",1,"char *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("setGlobalVariable",2,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("setGlobalVariable",1,"char *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("setGlobalVariable",2,"char *");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
setGlobalVariable(arg1,arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_getGlobalVariable(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *result = 0 ;
SWIG_check_num_args("getGlobalVariable",1,1)
- if(!lua_isstring(L,1)) SWIG_fail_arg("getGlobalVariable",1,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("getGlobalVariable",1,"char *");
arg1 = (char *)lua_tostring(L, 1);
result = (char *)getGlobalVariable(arg1);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
free(result);
return SWIG_arg;
static int _wrap_consoleLog(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
SWIG_check_num_args("consoleLog",2,2)
- if(!lua_isstring(L,1)) SWIG_fail_arg("consoleLog",1,"char *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog",2,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("consoleLog",1,"char *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("consoleLog",2,"char *");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
consoleLog(arg1,arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_consoleLog2(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
char *arg5 = (char *) 0 ;
SWIG_check_num_args("consoleLog2",5,5)
- if(!lua_isstring(L,1)) SWIG_fail_arg("consoleLog2",1,"char *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog2",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog2",3,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("consoleLog2",1,"char *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("consoleLog2",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("consoleLog2",3,"char *");
if(!lua_isnumber(L,4)) SWIG_fail_arg("consoleLog2",4,"int");
- if(!lua_isstring(L,5)) SWIG_fail_arg("consoleLog2",5,"char *");
+ if(!SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("consoleLog2",5,"char *");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
arg4 = (int)lua_tonumber(L, 4);
arg5 = (char *)lua_tostring(L, 5);
consoleLog2(arg1,arg2,arg3,arg4,arg5);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_consoleCleanLog(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
SWIG_check_num_args("consoleCleanLog",1,1)
- if(!lua_isstring(L,1)) SWIG_fail_arg("consoleCleanLog",1,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("consoleCleanLog",1,"char *");
arg1 = (char *)lua_tostring(L, 1);
consoleCleanLog(arg1);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_running(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
bool result;
SWIG_check_num_args("running",0,0)
result = (bool)running();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_email(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) NULL ;
bool result;
SWIG_check_num_args("email",2,7)
- if(!lua_isstring(L,1)) SWIG_fail_arg("email",1,"char *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("email",2,"char *");
- if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("email",3,"char *");
- if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("email",4,"char *");
- if(lua_gettop(L)>=5 && !lua_isstring(L,5)) SWIG_fail_arg("email",5,"char *");
- if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg("email",6,"char *");
- if(lua_gettop(L)>=7 && !lua_isstring(L,7)) SWIG_fail_arg("email",7,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("email",1,"char *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("email",2,"char *");
+ if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("email",3,"char *");
+ if(lua_gettop(L)>=4 && !SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("email",4,"char *");
+ if(lua_gettop(L)>=5 && !SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("email",5,"char *");
+ if(lua_gettop(L)>=6 && !SWIG_lua_isnilstring(L,6)) SWIG_fail_arg("email",6,"char *");
+ if(lua_gettop(L)>=7 && !SWIG_lua_isnilstring(L,7)) SWIG_fail_arg("email",7,"char *");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
if(lua_gettop(L)>=3){
arg7 = (char *)lua_tostring(L, 7);
}
result = (bool)email(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_new_IVRMenu(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
IVRMenu *arg1 = (IVRMenu *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
int arg17 ;
IVRMenu *result = 0 ;
- SWIG_check_num_args("IVRMenu",17,17)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu",1,"IVRMenu *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("IVRMenu",2,"char const *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("IVRMenu",3,"char const *");
- if(!lua_isstring(L,4)) SWIG_fail_arg("IVRMenu",4,"char const *");
- if(!lua_isstring(L,5)) SWIG_fail_arg("IVRMenu",5,"char const *");
- if(!lua_isstring(L,6)) SWIG_fail_arg("IVRMenu",6,"char const *");
- if(!lua_isstring(L,7)) SWIG_fail_arg("IVRMenu",7,"char const *");
- if(!lua_isstring(L,8)) SWIG_fail_arg("IVRMenu",8,"char const *");
- if(!lua_isstring(L,9)) SWIG_fail_arg("IVRMenu",9,"char const *");
- if(!lua_isstring(L,10)) SWIG_fail_arg("IVRMenu",10,"char const *");
- if(!lua_isstring(L,11)) SWIG_fail_arg("IVRMenu",11,"char const *");
- if(!lua_isnumber(L,12)) SWIG_fail_arg("IVRMenu",12,"int");
- if(!lua_isnumber(L,13)) SWIG_fail_arg("IVRMenu",13,"int");
- if(!lua_isnumber(L,14)) SWIG_fail_arg("IVRMenu",14,"int");
- if(!lua_isnumber(L,15)) SWIG_fail_arg("IVRMenu",15,"int");
- if(!lua_isnumber(L,16)) SWIG_fail_arg("IVRMenu",16,"int");
- if(!lua_isnumber(L,17)) SWIG_fail_arg("IVRMenu",17,"int");
+ SWIG_check_num_args("IVRMenu::IVRMenu",17,17)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu::IVRMenu",1,"IVRMenu *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("IVRMenu::IVRMenu",2,"char const *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("IVRMenu::IVRMenu",3,"char const *");
+ if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("IVRMenu::IVRMenu",4,"char const *");
+ if(!SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("IVRMenu::IVRMenu",5,"char const *");
+ if(!SWIG_lua_isnilstring(L,6)) SWIG_fail_arg("IVRMenu::IVRMenu",6,"char const *");
+ if(!SWIG_lua_isnilstring(L,7)) SWIG_fail_arg("IVRMenu::IVRMenu",7,"char const *");
+ if(!SWIG_lua_isnilstring(L,8)) SWIG_fail_arg("IVRMenu::IVRMenu",8,"char const *");
+ if(!SWIG_lua_isnilstring(L,9)) SWIG_fail_arg("IVRMenu::IVRMenu",9,"char const *");
+ if(!SWIG_lua_isnilstring(L,10)) SWIG_fail_arg("IVRMenu::IVRMenu",10,"char const *");
+ if(!SWIG_lua_isnilstring(L,11)) SWIG_fail_arg("IVRMenu::IVRMenu",11,"char const *");
+ if(!lua_isnumber(L,12)) SWIG_fail_arg("IVRMenu::IVRMenu",12,"int");
+ if(!lua_isnumber(L,13)) SWIG_fail_arg("IVRMenu::IVRMenu",13,"int");
+ if(!lua_isnumber(L,14)) SWIG_fail_arg("IVRMenu::IVRMenu",14,"int");
+ if(!lua_isnumber(L,15)) SWIG_fail_arg("IVRMenu::IVRMenu",15,"int");
+ if(!lua_isnumber(L,16)) SWIG_fail_arg("IVRMenu::IVRMenu",16,"int");
+ if(!lua_isnumber(L,17)) SWIG_fail_arg("IVRMenu::IVRMenu",17,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){
SWIG_fail_ptr("new_IVRMenu",1,SWIGTYPE_p_IVRMenu);
arg16 = (int)lua_tonumber(L, 16);
arg17 = (int)lua_tonumber(L, 17);
result = (IVRMenu *)new IVRMenu(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9,(char const *)arg10,(char const *)arg11,arg12,arg13,arg14,arg15,arg16,arg17);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_IVRMenu,1); SWIG_arg++;
return SWIG_arg;
}
-static int _wrap_delete_IVRMenu(lua_State* L) {
- int SWIG_arg = -1;
- IVRMenu *arg1 = (IVRMenu *) 0 ;
-
- SWIG_check_num_args("IVRMenu",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu",1,"IVRMenu *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_IVRMenu",1,SWIGTYPE_p_IVRMenu);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static int _wrap_IVRMenu_bindAction(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
IVRMenu *arg1 = (IVRMenu *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
char *arg4 = (char *) 0 ;
- SWIG_check_num_args("bindAction",4,4)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bindAction",1,"IVRMenu *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("bindAction",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("bindAction",3,"char const *");
- if(!lua_isstring(L,4)) SWIG_fail_arg("bindAction",4,"char const *");
+ SWIG_check_num_args("IVRMenu::bindAction",4,4)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu::bindAction",1,"IVRMenu *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("IVRMenu::bindAction",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("IVRMenu::bindAction",3,"char const *");
+ if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("IVRMenu::bindAction",4,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){
SWIG_fail_ptr("IVRMenu_bindAction",1,SWIGTYPE_p_IVRMenu);
arg3 = (char *)lua_tostring(L, 3);
arg4 = (char *)lua_tostring(L, 4);
(arg1)->bindAction(arg2,(char const *)arg3,(char const *)arg4);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_IVRMenu_execute(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
IVRMenu *arg1 = (IVRMenu *) 0 ;
CoreSession *arg2 = (CoreSession *) 0 ;
char *arg3 = (char *) 0 ;
- SWIG_check_num_args("execute",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"IVRMenu *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("execute",2,"CoreSession *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *");
+ SWIG_check_num_args("IVRMenu::execute",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu::execute",1,"IVRMenu *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("IVRMenu::execute",2,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("IVRMenu::execute",3,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){
SWIG_fail_ptr("IVRMenu_execute",1,SWIGTYPE_p_IVRMenu);
arg3 = (char *)lua_tostring(L, 3);
(arg1)->execute(arg2,(char const *)arg3);
- SWIG_arg=0;
return SWIG_arg;
static swig_lua_attribute swig_IVRMenu_attributes[] = {
{0,0,0}
};
+static swig_lua_attribute swig_IVRMenu_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_IVRMenu_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_IVRMenu_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_IVRMenu_bases[] = {0};
static const char *swig_IVRMenu_base_names[] = {0};
-static swig_lua_class _wrap_class_IVRMenu = { "IVRMenu", &SWIGTYPE_p_IVRMenu,_wrap_new_IVRMenu, swig_delete_IVRMenu, swig_IVRMenu_methods, swig_IVRMenu_attributes, swig_IVRMenu_bases, swig_IVRMenu_base_names };
+static swig_lua_class _wrap_class_IVRMenu = { "IVRMenu", &SWIGTYPE_p_IVRMenu,_wrap_new_IVRMenu, swig_delete_IVRMenu, swig_IVRMenu_methods, swig_IVRMenu_attributes, { "IVRMenu", swig_IVRMenu_cls_methods, swig_IVRMenu_cls_attributes, swig_IVRMenu_cls_constants }, swig_IVRMenu_bases, swig_IVRMenu_base_names };
static int _wrap_new_API(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) NULL ;
API *result = 0 ;
- SWIG_check_num_args("API",0,1)
- if(lua_gettop(L)>=1 && !SWIG_isptrtype(L,1)) SWIG_fail_arg("API",1,"CoreSession *");
+ SWIG_check_num_args("API::API",0,1)
+ if(lua_gettop(L)>=1 && !SWIG_isptrtype(L,1)) SWIG_fail_arg("API::API",1,"CoreSession *");
if(lua_gettop(L)>=1){
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("new_API",1,SWIGTYPE_p_CoreSession);
}
}
result = (API *)new API(arg1);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_API,1); SWIG_arg++;
return SWIG_arg;
}
-static int _wrap_delete_API(lua_State* L) {
- int SWIG_arg = -1;
- API *arg1 = (API *) 0 ;
-
- SWIG_check_num_args("API",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("API",1,"API *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_API",1,SWIGTYPE_p_API);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static int _wrap_API_execute(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
API *arg1 = (API *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) NULL ;
char *result = 0 ;
- SWIG_check_num_args("execute",2,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"API *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("execute",2,"char const *");
- if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *");
+ SWIG_check_num_args("API::execute",2,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("API::execute",1,"API *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("API::execute",2,"char const *");
+ if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("API::execute",3,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){
SWIG_fail_ptr("API_execute",1,SWIGTYPE_p_API);
arg3 = (char *)lua_tostring(L, 3);
}
result = (char *)(arg1)->execute((char const *)arg2,(char const *)arg3);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
free(result);
return SWIG_arg;
static int _wrap_API_executeString(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
API *arg1 = (API *) 0 ;
char *arg2 = (char *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("executeString",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("executeString",1,"API *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("executeString",2,"char const *");
+ SWIG_check_num_args("API::executeString",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("API::executeString",1,"API *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("API::executeString",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){
SWIG_fail_ptr("API_executeString",1,SWIGTYPE_p_API);
arg2 = (char *)lua_tostring(L, 2);
result = (char *)(arg1)->executeString((char const *)arg2);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
free(result);
return SWIG_arg;
static int _wrap_API_getTime(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
API *arg1 = (API *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("getTime",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getTime",1,"API *");
+ SWIG_check_num_args("API::getTime",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("API::getTime",1,"API *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){
SWIG_fail_ptr("API_getTime",1,SWIGTYPE_p_API);
}
result = (char *)(arg1)->getTime();
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static swig_lua_attribute swig_API_attributes[] = {
{0,0,0}
};
+static swig_lua_attribute swig_API_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_API_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_API_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_API_bases[] = {0};
static const char *swig_API_base_names[] = {0};
-static swig_lua_class _wrap_class_API = { "API", &SWIGTYPE_p_API,_wrap_new_API, swig_delete_API, swig_API_methods, swig_API_attributes, swig_API_bases, swig_API_base_names };
+static swig_lua_class _wrap_class_API = { "API", &SWIGTYPE_p_API,_wrap_new_API, swig_delete_API, swig_API_methods, swig_API_attributes, { "API", swig_API_cls_methods, swig_API_cls_attributes, swig_API_cls_constants }, swig_API_bases, swig_API_base_names };
static int _wrap_input_callback_state_t_function_set(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *arg2 = (void *) 0 ;
- SWIG_check_num_args("function",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("function",1,"input_callback_state_t *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("function",2,"void *");
+ SWIG_check_num_args("input_callback_state::function",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state::function",1,"input_callback_state *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("input_callback_state::function",2,"void *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){
SWIG_fail_ptr("input_callback_state_t_function_set",1,SWIGTYPE_p_input_callback_state);
arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_function_set");
if (arg1) (arg1)->function = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_input_callback_state_t_function_get(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *result = 0 ;
- SWIG_check_num_args("function",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("function",1,"input_callback_state_t *");
+ SWIG_check_num_args("input_callback_state::function",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state::function",1,"input_callback_state *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){
SWIG_fail_ptr("input_callback_state_t_function_get",1,SWIGTYPE_p_input_callback_state);
}
result = (void *) ((arg1)->function);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_input_callback_state_t_threadState_set(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *arg2 = (void *) 0 ;
- SWIG_check_num_args("threadState",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("threadState",1,"input_callback_state_t *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("threadState",2,"void *");
+ SWIG_check_num_args("input_callback_state::threadState",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state::threadState",1,"input_callback_state *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("input_callback_state::threadState",2,"void *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){
SWIG_fail_ptr("input_callback_state_t_threadState_set",1,SWIGTYPE_p_input_callback_state);
arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_threadState_set");
if (arg1) (arg1)->threadState = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_input_callback_state_t_threadState_get(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *result = 0 ;
- SWIG_check_num_args("threadState",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("threadState",1,"input_callback_state_t *");
+ SWIG_check_num_args("input_callback_state::threadState",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state::threadState",1,"input_callback_state *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){
SWIG_fail_ptr("input_callback_state_t_threadState_get",1,SWIGTYPE_p_input_callback_state);
}
result = (void *) ((arg1)->threadState);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_input_callback_state_t_extra_set(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *arg2 = (void *) 0 ;
- SWIG_check_num_args("extra",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("extra",1,"input_callback_state_t *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("extra",2,"void *");
+ SWIG_check_num_args("input_callback_state::extra",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state::extra",1,"input_callback_state *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("input_callback_state::extra",2,"void *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){
SWIG_fail_ptr("input_callback_state_t_extra_set",1,SWIGTYPE_p_input_callback_state);
arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_extra_set");
if (arg1) (arg1)->extra = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_input_callback_state_t_extra_get(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *result = 0 ;
- SWIG_check_num_args("extra",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("extra",1,"input_callback_state_t *");
+ SWIG_check_num_args("input_callback_state::extra",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state::extra",1,"input_callback_state *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){
SWIG_fail_ptr("input_callback_state_t_extra_get",1,SWIGTYPE_p_input_callback_state);
}
result = (void *) ((arg1)->extra);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_input_callback_state_t_funcargs_set(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("funcargs",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("funcargs",1,"input_callback_state_t *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("funcargs",2,"char *");
+ SWIG_check_num_args("input_callback_state::funcargs",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state::funcargs",1,"input_callback_state *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("input_callback_state::funcargs",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){
SWIG_fail_ptr("input_callback_state_t_funcargs_set",1,SWIGTYPE_p_input_callback_state);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->funcargs) delete [] arg1->funcargs;
+ delete [] arg1->funcargs;
if (arg2) {
arg1->funcargs = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->funcargs, (const char *)arg2);
arg1->funcargs = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_input_callback_state_t_funcargs_get(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("funcargs",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("funcargs",1,"input_callback_state_t *");
+ SWIG_check_num_args("input_callback_state::funcargs",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state::funcargs",1,"input_callback_state *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){
SWIG_fail_ptr("input_callback_state_t_funcargs_get",1,SWIGTYPE_p_input_callback_state);
}
result = (char *) ((arg1)->funcargs);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_new_input_callback_state_t(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *result = 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *result = 0 ;
- SWIG_check_num_args("input_callback_state_t::input_callback_state_t",0,0)
- result = (input_callback_state_t *)new input_callback_state_t();
- SWIG_arg=0;
+ SWIG_check_num_args("input_callback_state::input_callback_state",0,0)
+ result = (input_callback_state *)new input_callback_state();
SWIG_NewPointerObj(L,result,SWIGTYPE_p_input_callback_state,1); SWIG_arg++;
return SWIG_arg;
}
-static int _wrap_delete_input_callback_state_t(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
-
- SWIG_check_num_args("input_callback_state_t::~input_callback_state_t",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state_t::~input_callback_state_t",1,"input_callback_state_t *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_input_callback_state_t",1,SWIGTYPE_p_input_callback_state);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static void swig_delete_input_callback_state_t(void *obj) {
-input_callback_state_t *arg1 = (input_callback_state_t *) obj;
+input_callback_state *arg1 = (input_callback_state *) obj;
delete arg1;
}
-static swig_lua_method swig_input_callback_state_t_methods[] = {
+static swig_lua_method swig_input_callback_state_methods[] = {
{0,0}
};
-static swig_lua_attribute swig_input_callback_state_t_attributes[] = {
+static swig_lua_attribute swig_input_callback_state_attributes[] = {
{ "function", _wrap_input_callback_state_t_function_get, _wrap_input_callback_state_t_function_set},
{ "threadState", _wrap_input_callback_state_t_threadState_get, _wrap_input_callback_state_t_threadState_set},
{ "extra", _wrap_input_callback_state_t_extra_get, _wrap_input_callback_state_t_extra_set},
{ "funcargs", _wrap_input_callback_state_t_funcargs_get, _wrap_input_callback_state_t_funcargs_set},
{0,0,0}
};
-static swig_lua_class *swig_input_callback_state_t_bases[] = {0};
-static const char *swig_input_callback_state_t_base_names[] = {0};
-static swig_lua_class _wrap_class_input_callback_state_t = { "input_callback_state_t", &SWIGTYPE_p_input_callback_state,_wrap_new_input_callback_state_t, swig_delete_input_callback_state_t, swig_input_callback_state_t_methods, swig_input_callback_state_t_attributes, swig_input_callback_state_t_bases, swig_input_callback_state_t_base_names };
+static swig_lua_attribute swig_input_callback_state_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_input_callback_state_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_input_callback_state_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
+static swig_lua_class *swig_input_callback_state_bases[] = {0};
+static const char *swig_input_callback_state_base_names[] = {0};
+static swig_lua_class _wrap_class_input_callback_state = { "input_callback_state_t", &SWIGTYPE_p_input_callback_state,_wrap_new_input_callback_state_t, swig_delete_input_callback_state_t, swig_input_callback_state_methods, swig_input_callback_state_attributes, { "input_callback_state_t", swig_input_callback_state_cls_methods, swig_input_callback_state_cls_attributes, swig_input_callback_state_cls_constants }, swig_input_callback_state_bases, swig_input_callback_state_base_names };
static int _wrap_DTMF_digit_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
DTMF *arg1 = (DTMF *) 0 ;
char arg2 ;
- SWIG_check_num_args("digit",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("digit",1,"DTMF *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("digit",2,"char");
+ SWIG_check_num_args("DTMF::digit",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("DTMF::digit",1,"DTMF *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("DTMF::digit",2,"char");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){
SWIG_fail_ptr("DTMF_digit_set",1,SWIGTYPE_p_DTMF);
arg2 = (lua_tostring(L, 2))[0];
if (arg1) (arg1)->digit = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_DTMF_digit_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
DTMF *arg1 = (DTMF *) 0 ;
char result;
- SWIG_check_num_args("digit",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("digit",1,"DTMF *");
+ SWIG_check_num_args("DTMF::digit",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("DTMF::digit",1,"DTMF *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){
SWIG_fail_ptr("DTMF_digit_get",1,SWIGTYPE_p_DTMF);
}
result = (char) ((arg1)->digit);
- SWIG_arg=0;
lua_pushfstring(L,"%c",result); SWIG_arg++;
return SWIG_arg;
static int _wrap_DTMF_duration_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
DTMF *arg1 = (DTMF *) 0 ;
uint32_t arg2 ;
uint32_t *argp2 ;
- SWIG_check_num_args("duration",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("duration",1,"DTMF *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("duration",2,"uint32_t");
+ SWIG_check_num_args("DTMF::duration",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("DTMF::duration",1,"DTMF *");
+ if(!lua_isuserdata(L,2)) SWIG_fail_arg("DTMF::duration",2,"uint32_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){
SWIG_fail_ptr("DTMF_duration_set",1,SWIGTYPE_p_DTMF);
if (arg1) (arg1)->duration = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_DTMF_duration_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
DTMF *arg1 = (DTMF *) 0 ;
uint32_t result;
- SWIG_check_num_args("duration",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("duration",1,"DTMF *");
+ SWIG_check_num_args("DTMF::duration",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("DTMF::duration",1,"DTMF *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){
SWIG_fail_ptr("DTMF_duration_get",1,SWIGTYPE_p_DTMF);
}
result = ((arg1)->duration);
- SWIG_arg=0;
{
- uint32_t * resultptr = new uint32_t((uint32_t &) result);
+ uint32_t * resultptr = new uint32_t((const uint32_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_uint32_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_new_DTMF(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char arg1 ;
uint32_t arg2 = (uint32_t) SWITCH_DEFAULT_DTMF_DURATION ;
- DTMF *result = 0 ;
uint32_t *argp2 ;
+ DTMF *result = 0 ;
- SWIG_check_num_args("DTMF",1,2)
- if(!lua_isstring(L,1)) SWIG_fail_arg("DTMF",1,"char");
- if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("DTMF",2,"uint32_t");
+ SWIG_check_num_args("DTMF::DTMF",1,2)
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("DTMF::DTMF",1,"char");
+ if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("DTMF::DTMF",2,"uint32_t");
arg1 = (lua_tostring(L, 1))[0];
if(lua_gettop(L)>=2){
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))){
arg2 = *argp2;
}
result = (DTMF *)new DTMF(arg1,arg2);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_DTMF,1); SWIG_arg++;
return SWIG_arg;
}
-static int _wrap_delete_DTMF(lua_State* L) {
- int SWIG_arg = -1;
- DTMF *arg1 = (DTMF *) 0 ;
-
- SWIG_check_num_args("DTMF",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("DTMF",1,"DTMF *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_DTMF",1,SWIGTYPE_p_DTMF);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static void swig_delete_DTMF(void *obj) {
DTMF *arg1 = (DTMF *) obj;
delete arg1;
{ "duration", _wrap_DTMF_duration_get, _wrap_DTMF_duration_set},
{0,0,0}
};
+static swig_lua_attribute swig_DTMF_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_DTMF_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_DTMF_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_DTMF_bases[] = {0};
static const char *swig_DTMF_base_names[] = {0};
-static swig_lua_class _wrap_class_DTMF = { "DTMF", &SWIGTYPE_p_DTMF,_wrap_new_DTMF, swig_delete_DTMF, swig_DTMF_methods, swig_DTMF_attributes, swig_DTMF_bases, swig_DTMF_base_names };
+static swig_lua_class _wrap_class_DTMF = { "DTMF", &SWIGTYPE_p_DTMF,_wrap_new_DTMF, swig_delete_DTMF, swig_DTMF_methods, swig_DTMF_attributes, { "DTMF", swig_DTMF_cls_methods, swig_DTMF_cls_attributes, swig_DTMF_cls_constants }, swig_DTMF_bases, swig_DTMF_base_names };
static int _wrap_new_Stream__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Stream *result = 0 ;
- SWIG_check_num_args("Stream",0,0)
+ SWIG_check_num_args("Stream::Stream",0,0)
result = (Stream *)new Stream();
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream,1); SWIG_arg++;
return SWIG_arg;
static int _wrap_new_Stream__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ;
Stream *result = 0 ;
- SWIG_check_num_args("Stream",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream",1,"switch_stream_handle_t *");
+ SWIG_check_num_args("Stream::Stream",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream::Stream",1,"switch_stream_handle_t *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_stream_handle_t,0))){
SWIG_fail_ptr("new_Stream",1,SWIGTYPE_p_switch_stream_handle_t);
}
result = (Stream *)new Stream(arg1);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream,1); SWIG_arg++;
return SWIG_arg;
}
}
- lua_pushstring(L,"No matching function for overloaded 'new_Stream'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_Stream'\n"
+ " Possible C/C++ prototypes are:\n"
+ " Stream::Stream()\n"
+ " Stream::Stream(switch_stream_handle_t *)\n");
lua_error(L);return 0;
}
-static int _wrap_delete_Stream(lua_State* L) {
- int SWIG_arg = -1;
- Stream *arg1 = (Stream *) 0 ;
-
- SWIG_check_num_args("Stream",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream",1,"Stream *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_Stream",1,SWIGTYPE_p_Stream);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static int _wrap_Stream_read(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Stream *arg1 = (Stream *) 0 ;
int *arg2 = (int *) 0 ;
- char *result = 0 ;
int temp2 ;
+ char *result = 0 ;
arg2 = &temp2;
- SWIG_check_num_args("read",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("read",1,"Stream *");
+ SWIG_check_num_args("Stream::read",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream::read",1,"Stream *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){
SWIG_fail_ptr("Stream_read",1,SWIGTYPE_p_Stream);
}
result = (char *)(arg1)->read(arg2);
- SWIG_arg=0;
- lua_pushlstring(L,(const char*)result, (*arg2)); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
return SWIG_arg;
static int _wrap_Stream_write(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Stream *arg1 = (Stream *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("write",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("write",1,"Stream *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("write",2,"char const *");
+ SWIG_check_num_args("Stream::write",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream::write",1,"Stream *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Stream::write",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){
SWIG_fail_ptr("Stream_write",1,SWIGTYPE_p_Stream);
arg2 = (char *)lua_tostring(L, 2);
(arg1)->write((char const *)arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Stream_raw_write(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Stream *arg1 = (Stream *) 0 ;
char *arg2 = (char *) 0 ;
int arg3 ;
- SWIG_check_num_args("raw_write",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raw_write",1,"Stream *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("raw_write",2,"char const *");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("raw_write",3,"int");
+ SWIG_check_num_args("Stream::raw_write",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream::raw_write",1,"Stream *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Stream::raw_write",2,"char const *");
+ if(!lua_isnumber(L,3)) SWIG_fail_arg("Stream::raw_write",3,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){
SWIG_fail_ptr("Stream_raw_write",1,SWIGTYPE_p_Stream);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (int)lua_tonumber(L, 3);
(arg1)->raw_write((char const *)arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Stream_get_data(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Stream *arg1 = (Stream *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("get_data",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_data",1,"Stream *");
+ SWIG_check_num_args("Stream::get_data",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream::get_data",1,"Stream *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){
SWIG_fail_ptr("Stream_get_data",1,SWIGTYPE_p_Stream);
}
result = (char *)(arg1)->get_data();
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static swig_lua_attribute swig_Stream_attributes[] = {
{0,0,0}
};
+static swig_lua_attribute swig_Stream_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_Stream_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_Stream_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_Stream_bases[] = {0};
static const char *swig_Stream_base_names[] = {0};
-static swig_lua_class _wrap_class_Stream = { "Stream", &SWIGTYPE_p_Stream,_wrap_new_Stream, swig_delete_Stream, swig_Stream_methods, swig_Stream_attributes, swig_Stream_bases, swig_Stream_base_names };
+static swig_lua_class _wrap_class_Stream = { "Stream", &SWIGTYPE_p_Stream,_wrap_new_Stream, swig_delete_Stream, swig_Stream_methods, swig_Stream_attributes, { "Stream", swig_Stream_cls_methods, swig_Stream_cls_attributes, swig_Stream_cls_constants }, swig_Stream_bases, swig_Stream_base_names };
static int _wrap_Event_event_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
switch_event_t *arg2 = (switch_event_t *) 0 ;
- SWIG_check_num_args("event",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("event",1,"Event *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("event",2,"switch_event_t *");
+ SWIG_check_num_args("Event::event",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::event",1,"Event *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("Event::event",2,"switch_event_t *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_event_set",1,SWIGTYPE_p_Event);
if (arg1) (arg1)->event = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_event_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
switch_event_t *result = 0 ;
- SWIG_check_num_args("event",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("event",1,"Event *");
+ SWIG_check_num_args("Event::event",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::event",1,"Event *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_event_get",1,SWIGTYPE_p_Event);
}
result = (switch_event_t *) ((arg1)->event);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_event_t,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_Event_serialized_string_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("serialized_string",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialized_string",1,"Event *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("serialized_string",2,"char *");
+ SWIG_check_num_args("Event::serialized_string",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::serialized_string",1,"Event *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::serialized_string",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_serialized_string_set",1,SWIGTYPE_p_Event);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->serialized_string) delete [] arg1->serialized_string;
+ delete [] arg1->serialized_string;
if (arg2) {
arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->serialized_string, (const char *)arg2);
arg1->serialized_string = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Event_serialized_string_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("serialized_string",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialized_string",1,"Event *");
+ SWIG_check_num_args("Event::serialized_string",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::serialized_string",1,"Event *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_serialized_string_get",1,SWIGTYPE_p_Event);
}
result = (char *) ((arg1)->serialized_string);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_mine_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
int arg2 ;
- SWIG_check_num_args("mine",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mine",1,"Event *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("mine",2,"int");
+ SWIG_check_num_args("Event::mine",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::mine",1,"Event *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("Event::mine",2,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_mine_set",1,SWIGTYPE_p_Event);
arg2 = (int)lua_tonumber(L, 2);
if (arg1) (arg1)->mine = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_mine_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
int result;
- SWIG_check_num_args("mine",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mine",1,"Event *");
+ SWIG_check_num_args("Event::mine",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::mine",1,"Event *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_mine_get",1,SWIGTYPE_p_Event);
}
result = (int) ((arg1)->mine);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_new_Event__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) NULL ;
Event *result = 0 ;
- SWIG_check_num_args("Event",1,2)
- if(!lua_isstring(L,1)) SWIG_fail_arg("Event",1,"char const *");
- if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("Event",2,"char const *");
+ SWIG_check_num_args("Event::Event",1,2)
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("Event::Event",1,"char const *");
+ if(lua_gettop(L)>=2 && !SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::Event",2,"char const *");
arg1 = (char *)lua_tostring(L, 1);
if(lua_gettop(L)>=2){
arg2 = (char *)lua_tostring(L, 2);
}
result = (Event *)new Event((char const *)arg1,(char const *)arg2);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++;
return SWIG_arg;
static int _wrap_new_Event__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
switch_event_t *arg1 = (switch_event_t *) 0 ;
int arg2 = (int) 0 ;
Event *result = 0 ;
- SWIG_check_num_args("Event",1,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event",1,"switch_event_t *");
- if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("Event",2,"int");
+ SWIG_check_num_args("Event::Event",1,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::Event",1,"switch_event_t *");
+ if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("Event::Event",2,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_event_t,0))){
SWIG_fail_ptr("new_Event",1,SWIGTYPE_p_switch_event_t);
arg2 = (int)lua_tonumber(L, 2);
}
result = (Event *)new Event(arg1,arg2);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++;
return SWIG_arg;
if ((argc >= 1) && (argc <= 2)) {
int _v;
{
- _v = lua_isstring(L,argv[0]);
+ _v = SWIG_lua_isnilstring(L,argv[0]);
}
if (_v) {
if (argc <= 1) {
return _wrap_new_Event__SWIG_0(L);
}
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
return _wrap_new_Event__SWIG_0(L);
}
}
- lua_pushstring(L,"No matching function for overloaded 'new_Event'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_Event'\n"
+ " Possible C/C++ prototypes are:\n"
+ " Event::Event(char const *,char const *)\n"
+ " Event::Event(switch_event_t *,int)\n");
lua_error(L);return 0;
}
-static int _wrap_delete_Event(lua_State* L) {
- int SWIG_arg = -1;
- Event *arg1 = (Event *) 0 ;
-
- SWIG_check_num_args("Event",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event",1,"Event *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_Event",1,SWIGTYPE_p_Event);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static int _wrap_Event_chat_execute(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) NULL ;
int result;
- SWIG_check_num_args("chat_execute",2,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("chat_execute",1,"Event *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("chat_execute",2,"char const *");
- if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("chat_execute",3,"char const *");
+ SWIG_check_num_args("Event::chat_execute",2,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::chat_execute",1,"Event *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::chat_execute",2,"char const *");
+ if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("Event::chat_execute",3,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_chat_execute",1,SWIGTYPE_p_Event);
arg3 = (char *)lua_tostring(L, 3);
}
result = (int)(arg1)->chat_execute((char const *)arg2,(char const *)arg3);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_Event_chat_send(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) NULL ;
int result;
- SWIG_check_num_args("chat_send",1,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("chat_send",1,"Event *");
- if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("chat_send",2,"char const *");
+ SWIG_check_num_args("Event::chat_send",1,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::chat_send",1,"Event *");
+ if(lua_gettop(L)>=2 && !SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::chat_send",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_chat_send",1,SWIGTYPE_p_Event);
arg2 = (char *)lua_tostring(L, 2);
}
result = (int)(arg1)->chat_send((char const *)arg2);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_Event_serialize(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) NULL ;
char *result = 0 ;
- SWIG_check_num_args("serialize",1,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialize",1,"Event *");
- if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("serialize",2,"char const *");
+ SWIG_check_num_args("Event::serialize",1,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::serialize",1,"Event *");
+ if(lua_gettop(L)>=2 && !SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::serialize",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_serialize",1,SWIGTYPE_p_Event);
arg2 = (char *)lua_tostring(L, 2);
}
result = (char *)(arg1)->serialize((char const *)arg2);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_setPriority(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
switch_priority_t arg2 = (switch_priority_t) SWITCH_PRIORITY_NORMAL ;
- bool result;
switch_priority_t *argp2 ;
+ bool result;
- SWIG_check_num_args("setPriority",1,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setPriority",1,"Event *");
- if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("setPriority",2,"switch_priority_t");
+ SWIG_check_num_args("Event::setPriority",1,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::setPriority",1,"Event *");
+ if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("Event::setPriority",2,"switch_priority_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_setPriority",1,SWIGTYPE_p_Event);
arg2 = *argp2;
}
result = (bool)(arg1)->setPriority(arg2);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_getHeader(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("getHeader",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getHeader",1,"Event *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("getHeader",2,"char const *");
+ SWIG_check_num_args("Event::getHeader",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::getHeader",1,"Event *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::getHeader",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_getHeader",1,SWIGTYPE_p_Event);
arg2 = (char *)lua_tostring(L, 2);
result = (char *)(arg1)->getHeader((char const *)arg2);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_getBody(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("getBody",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getBody",1,"Event *");
+ SWIG_check_num_args("Event::getBody",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::getBody",1,"Event *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_getBody",1,SWIGTYPE_p_Event);
}
result = (char *)(arg1)->getBody();
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_getType(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("getType",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getType",1,"Event *");
+ SWIG_check_num_args("Event::getType",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::getType",1,"Event *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_getType",1,SWIGTYPE_p_Event);
}
result = (char *)(arg1)->getType();
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_addBody(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
bool result;
- SWIG_check_num_args("addBody",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("addBody",1,"Event *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("addBody",2,"char const *");
+ SWIG_check_num_args("Event::addBody",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::addBody",1,"Event *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::addBody",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_addBody",1,SWIGTYPE_p_Event);
arg2 = (char *)lua_tostring(L, 2);
result = (bool)(arg1)->addBody((char const *)arg2);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_addHeader(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
bool result;
- SWIG_check_num_args("addHeader",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("addHeader",1,"Event *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("addHeader",2,"char const *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("addHeader",3,"char const *");
+ SWIG_check_num_args("Event::addHeader",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::addHeader",1,"Event *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::addHeader",2,"char const *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("Event::addHeader",3,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_addHeader",1,SWIGTYPE_p_Event);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_delHeader(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
bool result;
- SWIG_check_num_args("delHeader",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("delHeader",1,"Event *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("delHeader",2,"char const *");
+ SWIG_check_num_args("Event::delHeader",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::delHeader",1,"Event *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::delHeader",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_delHeader",1,SWIGTYPE_p_Event);
arg2 = (char *)lua_tostring(L, 2);
result = (bool)(arg1)->delHeader((char const *)arg2);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_fire(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
bool result;
- SWIG_check_num_args("fire",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("fire",1,"Event *");
+ SWIG_check_num_args("Event::fire",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::fire",1,"Event *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_fire",1,SWIGTYPE_p_Event);
}
result = (bool)(arg1)->fire();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
{ "mine", _wrap_Event_mine_get, _wrap_Event_mine_set},
{0,0,0}
};
+static swig_lua_attribute swig_Event_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_Event_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_Event_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_Event_bases[] = {0};
static const char *swig_Event_base_names[] = {0};
-static swig_lua_class _wrap_class_Event = { "Event", &SWIGTYPE_p_Event,_wrap_new_Event, swig_delete_Event, swig_Event_methods, swig_Event_attributes, swig_Event_bases, swig_Event_base_names };
+static swig_lua_class _wrap_class_Event = { "Event", &SWIGTYPE_p_Event,_wrap_new_Event, swig_delete_Event, swig_Event_methods, swig_Event_attributes, { "Event", swig_Event_cls_methods, swig_Event_cls_attributes, swig_Event_cls_constants }, swig_Event_bases, swig_Event_base_names };
static int _wrap_EventConsumer_events_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
switch_queue_t *arg2 = (switch_queue_t *) 0 ;
- SWIG_check_num_args("events",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("events",1,"EventConsumer *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("events",2,"switch_queue_t *");
+ SWIG_check_num_args("EventConsumer::events",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::events",1,"EventConsumer *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("EventConsumer::events",2,"switch_queue_t *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_events_set",1,SWIGTYPE_p_EventConsumer);
if (arg1) (arg1)->events = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_EventConsumer_events_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
switch_queue_t *result = 0 ;
- SWIG_check_num_args("events",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("events",1,"EventConsumer *");
+ SWIG_check_num_args("EventConsumer::events",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::events",1,"EventConsumer *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_events_get",1,SWIGTYPE_p_EventConsumer);
}
result = (switch_queue_t *) ((arg1)->events);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_queue_t,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_EventConsumer_e_event_id_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
switch_event_types_t arg2 ;
switch_event_types_t *argp2 ;
- SWIG_check_num_args("e_event_id",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_event_id",1,"EventConsumer *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("e_event_id",2,"switch_event_types_t");
+ SWIG_check_num_args("EventConsumer::e_event_id",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::e_event_id",1,"EventConsumer *");
+ if(!lua_isuserdata(L,2)) SWIG_fail_arg("EventConsumer::e_event_id",2,"switch_event_types_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_e_event_id_set",1,SWIGTYPE_p_EventConsumer);
if (arg1) (arg1)->e_event_id = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_EventConsumer_e_event_id_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
switch_event_types_t result;
- SWIG_check_num_args("e_event_id",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_event_id",1,"EventConsumer *");
+ SWIG_check_num_args("EventConsumer::e_event_id",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::e_event_id",1,"EventConsumer *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_e_event_id_get",1,SWIGTYPE_p_EventConsumer);
}
result = ((arg1)->e_event_id);
- SWIG_arg=0;
{
- switch_event_types_t * resultptr = new switch_event_types_t((switch_event_types_t &) result);
+ switch_event_types_t * resultptr = new switch_event_types_t((const switch_event_types_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_event_types_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_EventConsumer_e_callback_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("e_callback",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_callback",1,"EventConsumer *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("e_callback",2,"char *");
+ SWIG_check_num_args("EventConsumer::e_callback",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::e_callback",1,"EventConsumer *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("EventConsumer::e_callback",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_e_callback_set",1,SWIGTYPE_p_EventConsumer);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->e_callback) delete [] arg1->e_callback;
+ delete [] arg1->e_callback;
if (arg2) {
arg1->e_callback = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->e_callback, (const char *)arg2);
arg1->e_callback = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_EventConsumer_e_callback_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("e_callback",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_callback",1,"EventConsumer *");
+ SWIG_check_num_args("EventConsumer::e_callback",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::e_callback",1,"EventConsumer *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_e_callback_get",1,SWIGTYPE_p_EventConsumer);
}
result = (char *) ((arg1)->e_callback);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_EventConsumer_e_subclass_name_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("e_subclass_name",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_subclass_name",1,"EventConsumer *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("e_subclass_name",2,"char *");
+ SWIG_check_num_args("EventConsumer::e_subclass_name",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::e_subclass_name",1,"EventConsumer *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("EventConsumer::e_subclass_name",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_e_subclass_name_set",1,SWIGTYPE_p_EventConsumer);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->e_subclass_name) delete [] arg1->e_subclass_name;
+ delete [] arg1->e_subclass_name;
if (arg2) {
arg1->e_subclass_name = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->e_subclass_name, (const char *)arg2);
arg1->e_subclass_name = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_EventConsumer_e_subclass_name_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("e_subclass_name",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_subclass_name",1,"EventConsumer *");
+ SWIG_check_num_args("EventConsumer::e_subclass_name",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::e_subclass_name",1,"EventConsumer *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_e_subclass_name_get",1,SWIGTYPE_p_EventConsumer);
}
result = (char *) ((arg1)->e_subclass_name);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_EventConsumer_e_cb_arg_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("e_cb_arg",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_cb_arg",1,"EventConsumer *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("e_cb_arg",2,"char *");
+ SWIG_check_num_args("EventConsumer::e_cb_arg",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::e_cb_arg",1,"EventConsumer *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("EventConsumer::e_cb_arg",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_e_cb_arg_set",1,SWIGTYPE_p_EventConsumer);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->e_cb_arg) delete [] arg1->e_cb_arg;
+ delete [] arg1->e_cb_arg;
if (arg2) {
arg1->e_cb_arg = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->e_cb_arg, (const char *)arg2);
arg1->e_cb_arg = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_EventConsumer_e_cb_arg_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("e_cb_arg",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_cb_arg",1,"EventConsumer *");
+ SWIG_check_num_args("EventConsumer::e_cb_arg",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::e_cb_arg",1,"EventConsumer *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_e_cb_arg_get",1,SWIGTYPE_p_EventConsumer);
}
result = (char *) ((arg1)->e_cb_arg);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_EventConsumer_enodes_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
switch_event_node_t **arg2 ;
- SWIG_check_num_args("enodes",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("enodes",1,"EventConsumer *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("enodes",2,"switch_event_node_t *[SWITCH_EVENT_ALL+1]");
+ SWIG_check_num_args("EventConsumer::enodes",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::enodes",1,"EventConsumer *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("EventConsumer::enodes",2,"switch_event_node_t *[SWITCH_EVENT_ALL+1]");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_enodes_set",1,SWIGTYPE_p_EventConsumer);
switch_event_node_t * *b = (switch_event_node_t * *) arg1->enodes;
for (ii = 0; ii < (size_t)SWITCH_EVENT_ALL+1; ii++) b[ii] = *((switch_event_node_t * *) arg2 + ii);
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_EventConsumer_enodes_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
switch_event_node_t **result = 0 ;
- SWIG_check_num_args("enodes",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("enodes",1,"EventConsumer *");
+ SWIG_check_num_args("EventConsumer::enodes",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::enodes",1,"EventConsumer *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_enodes_get",1,SWIGTYPE_p_EventConsumer);
}
result = (switch_event_node_t **)(switch_event_node_t **) ((arg1)->enodes);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_p_switch_event_node_t,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_EventConsumer_node_index_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
uint32_t arg2 ;
uint32_t *argp2 ;
- SWIG_check_num_args("node_index",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_index",1,"EventConsumer *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("node_index",2,"uint32_t");
+ SWIG_check_num_args("EventConsumer::node_index",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::node_index",1,"EventConsumer *");
+ if(!lua_isuserdata(L,2)) SWIG_fail_arg("EventConsumer::node_index",2,"uint32_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_node_index_set",1,SWIGTYPE_p_EventConsumer);
if (arg1) (arg1)->node_index = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_EventConsumer_node_index_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
uint32_t result;
- SWIG_check_num_args("node_index",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_index",1,"EventConsumer *");
+ SWIG_check_num_args("EventConsumer::node_index",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::node_index",1,"EventConsumer *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_node_index_get",1,SWIGTYPE_p_EventConsumer);
}
result = ((arg1)->node_index);
- SWIG_arg=0;
{
- uint32_t * resultptr = new uint32_t((uint32_t &) result);
+ uint32_t * resultptr = new uint32_t((const uint32_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_uint32_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_new_EventConsumer(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) NULL ;
char *arg2 = (char *) "" ;
int arg3 = (int) 5000 ;
EventConsumer *result = 0 ;
- SWIG_check_num_args("EventConsumer",0,3)
- if(lua_gettop(L)>=1 && !lua_isstring(L,1)) SWIG_fail_arg("EventConsumer",1,"char const *");
- if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("EventConsumer",2,"char const *");
- if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("EventConsumer",3,"int");
+ SWIG_check_num_args("EventConsumer::EventConsumer",0,3)
+ if(lua_gettop(L)>=1 && !SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("EventConsumer::EventConsumer",1,"char const *");
+ if(lua_gettop(L)>=2 && !SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("EventConsumer::EventConsumer",2,"char const *");
+ if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("EventConsumer::EventConsumer",3,"int");
if(lua_gettop(L)>=1){
arg1 = (char *)lua_tostring(L, 1);
}
arg3 = (int)lua_tonumber(L, 3);
}
result = (EventConsumer *)new EventConsumer((char const *)arg1,(char const *)arg2,arg3);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_EventConsumer,1); SWIG_arg++;
return SWIG_arg;
}
-static int _wrap_delete_EventConsumer(lua_State* L) {
- int SWIG_arg = -1;
- EventConsumer *arg1 = (EventConsumer *) 0 ;
-
- SWIG_check_num_args("EventConsumer",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer",1,"EventConsumer *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_EventConsumer",1,SWIGTYPE_p_EventConsumer);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static int _wrap_EventConsumer_bind(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) "" ;
int result;
- SWIG_check_num_args("bind",2,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bind",1,"EventConsumer *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("bind",2,"char const *");
- if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("bind",3,"char const *");
+ SWIG_check_num_args("EventConsumer::bind",2,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::bind",1,"EventConsumer *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("EventConsumer::bind",2,"char const *");
+ if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("EventConsumer::bind",3,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_bind",1,SWIGTYPE_p_EventConsumer);
arg3 = (char *)lua_tostring(L, 3);
}
result = (int)(arg1)->bind((char const *)arg2,(char const *)arg3);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_EventConsumer_pop(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
int arg2 = (int) 0 ;
int arg3 = (int) 0 ;
Event *result = 0 ;
- SWIG_check_num_args("pop",1,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("pop",1,"EventConsumer *");
- if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("pop",2,"int");
- if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("pop",3,"int");
+ SWIG_check_num_args("EventConsumer::pop",1,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::pop",1,"EventConsumer *");
+ if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("EventConsumer::pop",2,"int");
+ if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("EventConsumer::pop",3,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_pop",1,SWIGTYPE_p_EventConsumer);
arg3 = (int)lua_tonumber(L, 3);
}
result = (Event *)(arg1)->pop(arg2,arg3);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++;
return SWIG_arg;
static int _wrap_EventConsumer_cleanup(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
- SWIG_check_num_args("cleanup",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cleanup",1,"EventConsumer *");
+ SWIG_check_num_args("EventConsumer::cleanup",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::cleanup",1,"EventConsumer *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_cleanup",1,SWIGTYPE_p_EventConsumer);
}
(arg1)->cleanup();
- SWIG_arg=0;
return SWIG_arg;
{ "node_index", _wrap_EventConsumer_node_index_get, _wrap_EventConsumer_node_index_set},
{0,0,0}
};
+static swig_lua_attribute swig_EventConsumer_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_EventConsumer_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_EventConsumer_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_EventConsumer_bases[] = {0};
static const char *swig_EventConsumer_base_names[] = {0};
-static swig_lua_class _wrap_class_EventConsumer = { "EventConsumer", &SWIGTYPE_p_EventConsumer,_wrap_new_EventConsumer, swig_delete_EventConsumer, swig_EventConsumer_methods, swig_EventConsumer_attributes, swig_EventConsumer_bases, swig_EventConsumer_base_names };
-
-static int _wrap_delete_CoreSession(lua_State* L) {
- int SWIG_arg = -1;
- CoreSession *arg1 = (CoreSession *) 0 ;
-
- SWIG_check_num_args("CoreSession",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession",1,"CoreSession *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_CoreSession",1,SWIGTYPE_p_CoreSession);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
+static swig_lua_class _wrap_class_EventConsumer = { "EventConsumer", &SWIGTYPE_p_EventConsumer,_wrap_new_EventConsumer, swig_delete_EventConsumer, swig_EventConsumer_methods, swig_EventConsumer_attributes, { "EventConsumer", swig_EventConsumer_cls_methods, swig_EventConsumer_cls_attributes, swig_EventConsumer_cls_constants }, swig_EventConsumer_bases, swig_EventConsumer_base_names };
static int _wrap_CoreSession_session_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_core_session_t *arg2 = (switch_core_session_t *) 0 ;
- SWIG_check_num_args("session",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("session",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("session",2,"switch_core_session_t *");
+ SWIG_check_num_args("CoreSession::session",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::session",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::session",2,"switch_core_session_t *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_session_set",1,SWIGTYPE_p_CoreSession);
if (arg1) (arg1)->session = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_session_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_core_session_t *result = 0 ;
- SWIG_check_num_args("session",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("session",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::session",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::session",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_session_get",1,SWIGTYPE_p_CoreSession);
}
result = (switch_core_session_t *) ((arg1)->session);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_core_session_t,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_channel_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_channel_t *arg2 = (switch_channel_t *) 0 ;
- SWIG_check_num_args("channel",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("channel",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("channel",2,"switch_channel_t *");
+ SWIG_check_num_args("CoreSession::channel",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::channel",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::channel",2,"switch_channel_t *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_channel_set",1,SWIGTYPE_p_CoreSession);
if (arg1) (arg1)->channel = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_channel_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_channel_t *result = 0 ;
- SWIG_check_num_args("channel",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("channel",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::channel",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::channel",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_channel_get",1,SWIGTYPE_p_CoreSession);
}
result = (switch_channel_t *) ((arg1)->channel);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_channel_t,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_flags_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
unsigned int arg2 ;
- SWIG_check_num_args("flags",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flags",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("flags",2,"unsigned int");
+ SWIG_check_num_args("CoreSession::flags",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::flags",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::flags",2,"unsigned int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_flags_set",1,SWIGTYPE_p_CoreSession);
}
+ SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative")
arg2 = (unsigned int)lua_tonumber(L, 2);
if (arg1) (arg1)->flags = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_flags_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
unsigned int result;
- SWIG_check_num_args("flags",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flags",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::flags",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::flags",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_flags_get",1,SWIGTYPE_p_CoreSession);
}
result = (unsigned int) ((arg1)->flags);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_allocated_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
- SWIG_check_num_args("allocated",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("allocated",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("allocated",2,"int");
+ SWIG_check_num_args("CoreSession::allocated",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::allocated",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::allocated",2,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_allocated_set",1,SWIGTYPE_p_CoreSession);
arg2 = (int)lua_tonumber(L, 2);
if (arg1) (arg1)->allocated = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_allocated_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int result;
- SWIG_check_num_args("allocated",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("allocated",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::allocated",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::allocated",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_allocated_get",1,SWIGTYPE_p_CoreSession);
}
result = (int) ((arg1)->allocated);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_cb_state_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
input_callback_state *arg2 = (input_callback_state *) 0 ;
- SWIG_check_num_args("cb_state",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_state",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("cb_state",2,"input_callback_state *");
+ SWIG_check_num_args("CoreSession::cb_state",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::cb_state",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::cb_state",2,"input_callback_state *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_cb_state_set",1,SWIGTYPE_p_CoreSession);
if (arg1) (arg1)->cb_state = *arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_cb_state_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
input_callback_state *result = 0 ;
- SWIG_check_num_args("cb_state",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_state",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::cb_state",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::cb_state",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_cb_state_get",1,SWIGTYPE_p_CoreSession);
}
result = (input_callback_state *)& ((arg1)->cb_state);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_input_callback_state,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_hook_state_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_channel_state_t arg2 ;
switch_channel_state_t *argp2 ;
- SWIG_check_num_args("hook_state",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hook_state",1,"CoreSession *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("hook_state",2,"switch_channel_state_t");
+ SWIG_check_num_args("CoreSession::hook_state",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::hook_state",1,"CoreSession *");
+ if(!lua_isuserdata(L,2)) SWIG_fail_arg("CoreSession::hook_state",2,"switch_channel_state_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_hook_state_set",1,SWIGTYPE_p_CoreSession);
if (arg1) (arg1)->hook_state = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_hook_state_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_channel_state_t result;
- SWIG_check_num_args("hook_state",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hook_state",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::hook_state",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::hook_state",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_hook_state_get",1,SWIGTYPE_p_CoreSession);
}
result = ((arg1)->hook_state);
- SWIG_arg=0;
{
- switch_channel_state_t * resultptr = new switch_channel_state_t((switch_channel_state_t &) result);
+ switch_channel_state_t * resultptr = new switch_channel_state_t((const switch_channel_state_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_channel_state_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_CoreSession_cause_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_call_cause_t arg2 ;
switch_call_cause_t *argp2 ;
- SWIG_check_num_args("cause",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cause",1,"CoreSession *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("cause",2,"switch_call_cause_t");
+ SWIG_check_num_args("CoreSession::cause",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::cause",1,"CoreSession *");
+ if(!lua_isuserdata(L,2)) SWIG_fail_arg("CoreSession::cause",2,"switch_call_cause_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_cause_set",1,SWIGTYPE_p_CoreSession);
if (arg1) (arg1)->cause = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_cause_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_call_cause_t result;
- SWIG_check_num_args("cause",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cause",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::cause",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::cause",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_cause_get",1,SWIGTYPE_p_CoreSession);
}
result = ((arg1)->cause);
- SWIG_arg=0;
{
- switch_call_cause_t * resultptr = new switch_call_cause_t((switch_call_cause_t &) result);
+ switch_call_cause_t * resultptr = new switch_call_cause_t((const switch_call_cause_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_call_cause_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_CoreSession_uuid_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("uuid",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("uuid",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("uuid",2,"char *");
+ SWIG_check_num_args("CoreSession::uuid",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::uuid",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::uuid",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_uuid_set",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->uuid) delete [] arg1->uuid;
+ delete [] arg1->uuid;
if (arg2) {
arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->uuid, (const char *)arg2);
arg1->uuid = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_uuid_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("uuid",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("uuid",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::uuid",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::uuid",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_uuid_get",1,SWIGTYPE_p_CoreSession);
}
result = (char *) ((arg1)->uuid);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_tts_name_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("tts_name",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("tts_name",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("tts_name",2,"char *");
+ SWIG_check_num_args("CoreSession::tts_name",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::tts_name",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::tts_name",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_tts_name_set",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->tts_name) delete [] arg1->tts_name;
+ delete [] arg1->tts_name;
if (arg2) {
arg1->tts_name = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->tts_name, (const char *)arg2);
arg1->tts_name = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_tts_name_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("tts_name",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("tts_name",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::tts_name",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::tts_name",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_tts_name_get",1,SWIGTYPE_p_CoreSession);
}
result = (char *) ((arg1)->tts_name);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_voice_name_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("voice_name",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("voice_name",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("voice_name",2,"char *");
+ SWIG_check_num_args("CoreSession::voice_name",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::voice_name",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::voice_name",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_voice_name_set",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->voice_name) delete [] arg1->voice_name;
+ delete [] arg1->voice_name;
if (arg2) {
arg1->voice_name = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->voice_name, (const char *)arg2);
arg1->voice_name = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_voice_name_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("voice_name",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("voice_name",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::voice_name",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::voice_name",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_voice_name_get",1,SWIGTYPE_p_CoreSession);
}
result = (char *) ((arg1)->voice_name);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_insertFile(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
int arg4 ;
int result;
- SWIG_check_num_args("insertFile",4,4)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("insertFile",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("insertFile",2,"char const *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("insertFile",3,"char const *");
- if(!lua_isnumber(L,4)) SWIG_fail_arg("insertFile",4,"int");
+ SWIG_check_num_args("CoreSession::insertFile",4,4)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::insertFile",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::insertFile",2,"char const *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::insertFile",3,"char const *");
+ if(!lua_isnumber(L,4)) SWIG_fail_arg("CoreSession::insertFile",4,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_insertFile",1,SWIGTYPE_p_CoreSession);
arg3 = (char *)lua_tostring(L, 3);
arg4 = (int)lua_tonumber(L, 4);
result = (int)(arg1)->insertFile((char const *)arg2,(char const *)arg3,arg4);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_answer(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int result;
- SWIG_check_num_args("answer",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("answer",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::answer",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::answer",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_answer",1,SWIGTYPE_p_CoreSession);
}
result = (int)(arg1)->answer();
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_preAnswer(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int result;
- SWIG_check_num_args("preAnswer",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("preAnswer",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::preAnswer",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::preAnswer",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_preAnswer",1,SWIGTYPE_p_CoreSession);
}
result = (int)(arg1)->preAnswer();
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_hangup(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) "normal_clearing" ;
- SWIG_check_num_args("hangup",1,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup",1,"CoreSession *");
- if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("hangup",2,"char const *");
+ SWIG_check_num_args("CoreSession::hangup",1,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::hangup",1,"CoreSession *");
+ if(lua_gettop(L)>=2 && !SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::hangup",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_hangup",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
}
(arg1)->hangup((char const *)arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_hangupState(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- SWIG_check_num_args("hangupState",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangupState",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::hangupState",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::hangupState",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_hangupState",1,SWIGTYPE_p_CoreSession);
}
(arg1)->hangupState();
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_setVariable(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
- SWIG_check_num_args("setVariable",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setVariable",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("setVariable",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("setVariable",3,"char *");
+ SWIG_check_num_args("CoreSession::setVariable",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::setVariable",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::setVariable",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::setVariable",3,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_setVariable",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
(arg1)->setVariable(arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_setPrivate(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
void *arg3 = (void *) 0 ;
- SWIG_check_num_args("setPrivate",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setPrivate",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("setPrivate",2,"char *");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("setPrivate",3,"void *");
+ SWIG_check_num_args("CoreSession::setPrivate",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::setPrivate",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::setPrivate",2,"char *");
+ if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("CoreSession::setPrivate",3,"void *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_setPrivate",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
arg3=(void *)SWIG_MustGetPtr(L,3,0,0,3,"CoreSession_setPrivate");
(arg1)->setPrivate(arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_getPrivate(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
void *result = 0 ;
- SWIG_check_num_args("getPrivate",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getPrivate",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("getPrivate",2,"char *");
+ SWIG_check_num_args("CoreSession::getPrivate",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::getPrivate",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::getPrivate",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_getPrivate",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
result = (void *)(arg1)->getPrivate(arg2);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_getVariable(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("getVariable",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getVariable",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("getVariable",2,"char *");
+ SWIG_check_num_args("CoreSession::getVariable",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::getVariable",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::getVariable",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_getVariable",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
result = (char *)(arg1)->getVariable(arg2);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_process_callback_result(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
switch_status_t result;
- SWIG_check_num_args("process_callback_result",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("process_callback_result",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("process_callback_result",2,"char *");
+ SWIG_check_num_args("CoreSession::process_callback_result",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::process_callback_result",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::process_callback_result",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_process_callback_result",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
result = (arg1)->process_callback_result(arg2);
- SWIG_arg=0;
{
- switch_status_t * resultptr = new switch_status_t((switch_status_t &) result);
+ switch_status_t * resultptr = new switch_status_t((const switch_status_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_CoreSession_say(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
char *arg5 = (char *) 0 ;
char *arg6 = (char *) NULL ;
- SWIG_check_num_args("say",5,6)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("say",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("say",2,"char const *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("say",3,"char const *");
- if(!lua_isstring(L,4)) SWIG_fail_arg("say",4,"char const *");
- if(!lua_isstring(L,5)) SWIG_fail_arg("say",5,"char const *");
- if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg("say",6,"char const *");
+ SWIG_check_num_args("CoreSession::say",5,6)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::say",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::say",2,"char const *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::say",3,"char const *");
+ if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("CoreSession::say",4,"char const *");
+ if(!SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("CoreSession::say",5,"char const *");
+ if(lua_gettop(L)>=6 && !SWIG_lua_isnilstring(L,6)) SWIG_fail_arg("CoreSession::say",6,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_say",1,SWIGTYPE_p_CoreSession);
arg6 = (char *)lua_tostring(L, 6);
}
(arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_sayPhrase(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) "" ;
char *arg4 = (char *) NULL ;
- SWIG_check_num_args("sayPhrase",2,4)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sayPhrase",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("sayPhrase",2,"char const *");
- if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("sayPhrase",3,"char const *");
- if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("sayPhrase",4,"char const *");
+ SWIG_check_num_args("CoreSession::sayPhrase",2,4)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::sayPhrase",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::sayPhrase",2,"char const *");
+ if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::sayPhrase",3,"char const *");
+ if(lua_gettop(L)>=4 && !SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("CoreSession::sayPhrase",4,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_sayPhrase",1,SWIGTYPE_p_CoreSession);
arg4 = (char *)lua_tostring(L, 4);
}
(arg1)->sayPhrase((char const *)arg2,(char const *)arg3,(char const *)arg4);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_hangupCause(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("hangupCause",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangupCause",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::hangupCause",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::hangupCause",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_hangupCause",1,SWIGTYPE_p_CoreSession);
}
result = (char *)(arg1)->hangupCause();
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_getState(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("getState",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getState",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::getState",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::getState",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_getState",1,SWIGTYPE_p_CoreSession);
}
result = (char *)(arg1)->getState();
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_recordFile(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
int arg3 = (int) 0 ;
int arg5 = (int) 0 ;
int result;
- SWIG_check_num_args("recordFile",2,5)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("recordFile",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("recordFile",2,"char *");
- if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("recordFile",3,"int");
- if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("recordFile",4,"int");
- if(lua_gettop(L)>=5 && !lua_isnumber(L,5)) SWIG_fail_arg("recordFile",5,"int");
+ SWIG_check_num_args("CoreSession::recordFile",2,5)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::recordFile",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::recordFile",2,"char *");
+ if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("CoreSession::recordFile",3,"int");
+ if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("CoreSession::recordFile",4,"int");
+ if(lua_gettop(L)>=5 && !lua_isnumber(L,5)) SWIG_fail_arg("CoreSession::recordFile",5,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_recordFile",1,SWIGTYPE_p_CoreSession);
arg5 = (int)lua_tonumber(L, 5);
}
result = (int)(arg1)->recordFile(arg2,arg3,arg4,arg5);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_originate(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
CoreSession *arg2 = (CoreSession *) 0 ;
char *arg3 = (char *) 0 ;
switch_state_handler_table_t *arg5 = (switch_state_handler_table_t *) NULL ;
int result;
- SWIG_check_num_args("originate",3,5)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("originate",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("originate",2,"CoreSession *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("originate",3,"char *");
- if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("originate",4,"int");
- if(lua_gettop(L)>=5 && !SWIG_isptrtype(L,5)) SWIG_fail_arg("originate",5,"switch_state_handler_table_t *");
+ SWIG_check_num_args("CoreSession::originate",3,5)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::originate",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::originate",2,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::originate",3,"char *");
+ if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("CoreSession::originate",4,"int");
+ if(lua_gettop(L)>=5 && !SWIG_isptrtype(L,5)) SWIG_fail_arg("CoreSession::originate",5,"switch_state_handler_table_t *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_originate",1,SWIGTYPE_p_CoreSession);
}
}
result = (int)(arg1)->originate(arg2,arg3,arg4,arg5);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_destroy(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- SWIG_check_num_args("destroy",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::destroy",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::destroy",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_destroy",1,SWIGTYPE_p_CoreSession);
}
(arg1)->destroy();
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_setDTMFCallback(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
void *arg2 = (void *) 0 ;
char *arg3 = (char *) 0 ;
- SWIG_check_num_args("setDTMFCallback",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setDTMFCallback",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setDTMFCallback",2,"void *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("setDTMFCallback",3,"char *");
+ SWIG_check_num_args("CoreSession::setDTMFCallback",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::setDTMFCallback",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::setDTMFCallback",2,"void *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::setDTMFCallback",3,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_setDTMFCallback",1,SWIGTYPE_p_CoreSession);
arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_setDTMFCallback");
arg3 = (char *)lua_tostring(L, 3);
(arg1)->setDTMFCallback(arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_speak(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
int result;
- SWIG_check_num_args("speak",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("speak",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("speak",2,"char *");
+ SWIG_check_num_args("CoreSession::speak",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::speak",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::speak",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_speak",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
result = (int)(arg1)->speak(arg2);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_set_tts_parms(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
- SWIG_check_num_args("set_tts_parms",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("set_tts_parms",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("set_tts_parms",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("set_tts_parms",3,"char *");
+ SWIG_check_num_args("CoreSession::set_tts_parms",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::set_tts_parms",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::set_tts_parms",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::set_tts_parms",3,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_set_tts_parms",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
(arg1)->set_tts_parms(arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_set_tts_params(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
- SWIG_check_num_args("set_tts_params",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("set_tts_params",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("set_tts_params",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("set_tts_params",3,"char *");
+ SWIG_check_num_args("CoreSession::set_tts_params",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::set_tts_params",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::set_tts_params",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::set_tts_params",3,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_set_tts_params",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
(arg1)->set_tts_params(arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_collectDigits__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
int result;
- SWIG_check_num_args("collectDigits",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("collectDigits",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("collectDigits",2,"int");
+ SWIG_check_num_args("CoreSession::collectDigits",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::collectDigits",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::collectDigits",2,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_collectDigits",1,SWIGTYPE_p_CoreSession);
arg2 = (int)lua_tonumber(L, 2);
result = (int)(arg1)->collectDigits(arg2);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_collectDigits__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
int arg3 ;
int result;
- SWIG_check_num_args("collectDigits",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("collectDigits",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("collectDigits",2,"int");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("collectDigits",3,"int");
+ SWIG_check_num_args("CoreSession::collectDigits",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::collectDigits",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::collectDigits",2,"int");
+ if(!lua_isnumber(L,3)) SWIG_fail_arg("CoreSession::collectDigits",3,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_collectDigits",1,SWIGTYPE_p_CoreSession);
arg2 = (int)lua_tonumber(L, 2);
arg3 = (int)lua_tonumber(L, 3);
result = (int)(arg1)->collectDigits(arg2,arg3);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
}
}
- lua_pushstring(L,"No matching function for overloaded 'CoreSession_collectDigits'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'CoreSession_collectDigits'\n"
+ " Possible C/C++ prototypes are:\n"
+ " CoreSession::collectDigits(int)\n"
+ " CoreSession::collectDigits(int,int)\n");
lua_error(L);return 0;
}
static int _wrap_CoreSession_getDigits__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
char *arg3 = (char *) 0 ;
int arg4 ;
char *result = 0 ;
- SWIG_check_num_args("getDigits",4,4)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getDigits",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("getDigits",2,"int");
- if(!lua_isstring(L,3)) SWIG_fail_arg("getDigits",3,"char *");
- if(!lua_isnumber(L,4)) SWIG_fail_arg("getDigits",4,"int");
+ SWIG_check_num_args("CoreSession::getDigits",4,4)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::getDigits",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::getDigits",2,"int");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::getDigits",3,"char *");
+ if(!lua_isnumber(L,4)) SWIG_fail_arg("CoreSession::getDigits",4,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_getDigits",1,SWIGTYPE_p_CoreSession);
arg3 = (char *)lua_tostring(L, 3);
arg4 = (int)lua_tonumber(L, 4);
result = (char *)(arg1)->getDigits(arg2,arg3,arg4);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_getDigits__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
char *arg3 = (char *) 0 ;
int arg5 ;
char *result = 0 ;
- SWIG_check_num_args("getDigits",5,5)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getDigits",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("getDigits",2,"int");
- if(!lua_isstring(L,3)) SWIG_fail_arg("getDigits",3,"char *");
- if(!lua_isnumber(L,4)) SWIG_fail_arg("getDigits",4,"int");
- if(!lua_isnumber(L,5)) SWIG_fail_arg("getDigits",5,"int");
+ SWIG_check_num_args("CoreSession::getDigits",5,5)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::getDigits",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::getDigits",2,"int");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::getDigits",3,"char *");
+ if(!lua_isnumber(L,4)) SWIG_fail_arg("CoreSession::getDigits",4,"int");
+ if(!lua_isnumber(L,5)) SWIG_fail_arg("CoreSession::getDigits",5,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_getDigits",1,SWIGTYPE_p_CoreSession);
arg4 = (int)lua_tonumber(L, 4);
arg5 = (int)lua_tonumber(L, 5);
result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
}
if (_v) {
{
- _v = lua_isstring(L,argv[2]);
+ _v = SWIG_lua_isnilstring(L,argv[2]);
}
if (_v) {
{
}
if (_v) {
{
- _v = lua_isstring(L,argv[2]);
+ _v = SWIG_lua_isnilstring(L,argv[2]);
}
if (_v) {
{
}
}
- lua_pushstring(L,"No matching function for overloaded 'CoreSession_getDigits'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'CoreSession_getDigits'\n"
+ " Possible C/C++ prototypes are:\n"
+ " CoreSession::getDigits(int,char *,int)\n"
+ " CoreSession::getDigits(int,char *,int,int)\n");
lua_error(L);return 0;
}
static int _wrap_CoreSession_transfer(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) NULL ;
char *arg4 = (char *) NULL ;
int result;
- SWIG_check_num_args("transfer",2,4)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("transfer",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("transfer",2,"char *");
- if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("transfer",3,"char *");
- if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("transfer",4,"char *");
+ SWIG_check_num_args("CoreSession::transfer",2,4)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::transfer",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::transfer",2,"char *");
+ if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::transfer",3,"char *");
+ if(lua_gettop(L)>=4 && !SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("CoreSession::transfer",4,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_transfer",1,SWIGTYPE_p_CoreSession);
arg4 = (char *)lua_tostring(L, 4);
}
result = (int)(arg1)->transfer(arg2,arg3,arg4);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_read(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
int arg3 ;
int arg7 = (int) 0 ;
char *result = 0 ;
- SWIG_check_num_args("read",6,7)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("read",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("read",2,"int");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("read",3,"int");
- if(!lua_isstring(L,4)) SWIG_fail_arg("read",4,"char const *");
- if(!lua_isnumber(L,5)) SWIG_fail_arg("read",5,"int");
- if(!lua_isstring(L,6)) SWIG_fail_arg("read",6,"char const *");
- if(lua_gettop(L)>=7 && !lua_isnumber(L,7)) SWIG_fail_arg("read",7,"int");
+ SWIG_check_num_args("CoreSession::read",6,7)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::read",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::read",2,"int");
+ if(!lua_isnumber(L,3)) SWIG_fail_arg("CoreSession::read",3,"int");
+ if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("CoreSession::read",4,"char const *");
+ if(!lua_isnumber(L,5)) SWIG_fail_arg("CoreSession::read",5,"int");
+ if(!SWIG_lua_isnilstring(L,6)) SWIG_fail_arg("CoreSession::read",6,"char const *");
+ if(lua_gettop(L)>=7 && !lua_isnumber(L,7)) SWIG_fail_arg("CoreSession::read",7,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_read",1,SWIGTYPE_p_CoreSession);
arg7 = (int)lua_tonumber(L, 7);
}
result = (char *)(arg1)->read(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_playAndGetDigits(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
int arg3 ;
char *arg12 = (char *) NULL ;
char *result = 0 ;
- SWIG_check_num_args("playAndGetDigits",9,12)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("playAndGetDigits",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("playAndGetDigits",2,"int");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("playAndGetDigits",3,"int");
- if(!lua_isnumber(L,4)) SWIG_fail_arg("playAndGetDigits",4,"int");
- if(!lua_isnumber(L,5)) SWIG_fail_arg("playAndGetDigits",5,"int");
- if(!lua_isstring(L,6)) SWIG_fail_arg("playAndGetDigits",6,"char *");
- if(!lua_isstring(L,7)) SWIG_fail_arg("playAndGetDigits",7,"char *");
- if(!lua_isstring(L,8)) SWIG_fail_arg("playAndGetDigits",8,"char *");
- if(!lua_isstring(L,9)) SWIG_fail_arg("playAndGetDigits",9,"char *");
- if(lua_gettop(L)>=10 && !lua_isstring(L,10)) SWIG_fail_arg("playAndGetDigits",10,"char const *");
- if(lua_gettop(L)>=11 && !lua_isnumber(L,11)) SWIG_fail_arg("playAndGetDigits",11,"int");
- if(lua_gettop(L)>=12 && !lua_isstring(L,12)) SWIG_fail_arg("playAndGetDigits",12,"char const *");
+ SWIG_check_num_args("CoreSession::playAndGetDigits",9,12)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::playAndGetDigits",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::playAndGetDigits",2,"int");
+ if(!lua_isnumber(L,3)) SWIG_fail_arg("CoreSession::playAndGetDigits",3,"int");
+ if(!lua_isnumber(L,4)) SWIG_fail_arg("CoreSession::playAndGetDigits",4,"int");
+ if(!lua_isnumber(L,5)) SWIG_fail_arg("CoreSession::playAndGetDigits",5,"int");
+ if(!SWIG_lua_isnilstring(L,6)) SWIG_fail_arg("CoreSession::playAndGetDigits",6,"char *");
+ if(!SWIG_lua_isnilstring(L,7)) SWIG_fail_arg("CoreSession::playAndGetDigits",7,"char *");
+ if(!SWIG_lua_isnilstring(L,8)) SWIG_fail_arg("CoreSession::playAndGetDigits",8,"char *");
+ if(!SWIG_lua_isnilstring(L,9)) SWIG_fail_arg("CoreSession::playAndGetDigits",9,"char *");
+ if(lua_gettop(L)>=10 && !SWIG_lua_isnilstring(L,10)) SWIG_fail_arg("CoreSession::playAndGetDigits",10,"char const *");
+ if(lua_gettop(L)>=11 && !lua_isnumber(L,11)) SWIG_fail_arg("CoreSession::playAndGetDigits",11,"int");
+ if(lua_gettop(L)>=12 && !SWIG_lua_isnilstring(L,12)) SWIG_fail_arg("CoreSession::playAndGetDigits",12,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_playAndGetDigits",1,SWIGTYPE_p_CoreSession);
arg12 = (char *)lua_tostring(L, 12);
}
result = (char *)(arg1)->playAndGetDigits(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,(char const *)arg12);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_streamFile(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
int arg3 = (int) 0 ;
int result;
- SWIG_check_num_args("streamFile",2,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("streamFile",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("streamFile",2,"char *");
- if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("streamFile",3,"int");
+ SWIG_check_num_args("CoreSession::streamFile",2,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::streamFile",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::streamFile",2,"char *");
+ if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("CoreSession::streamFile",3,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_streamFile",1,SWIGTYPE_p_CoreSession);
arg3 = (int)lua_tonumber(L, 3);
}
result = (int)(arg1)->streamFile(arg2,arg3);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_sleep(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
int arg3 = (int) 0 ;
int result;
- SWIG_check_num_args("sleep",2,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sleep",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("sleep",2,"int");
- if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("sleep",3,"int");
+ SWIG_check_num_args("CoreSession::sleep",2,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::sleep",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::sleep",2,"int");
+ if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("CoreSession::sleep",3,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_sleep",1,SWIGTYPE_p_CoreSession);
arg3 = (int)lua_tonumber(L, 3);
}
result = (int)(arg1)->sleep(arg2,arg3);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_flushEvents(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int result;
- SWIG_check_num_args("flushEvents",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flushEvents",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::flushEvents",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::flushEvents",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_flushEvents",1,SWIGTYPE_p_CoreSession);
}
result = (int)(arg1)->flushEvents();
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_flushDigits(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int result;
- SWIG_check_num_args("flushDigits",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flushDigits",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::flushDigits",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::flushDigits",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_flushDigits",1,SWIGTYPE_p_CoreSession);
}
result = (int)(arg1)->flushDigits();
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_setAutoHangup(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
bool arg2 ;
int result;
- SWIG_check_num_args("setAutoHangup",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setAutoHangup",1,"CoreSession *");
- if(!lua_isboolean(L,2)) SWIG_fail_arg("setAutoHangup",2,"bool");
+ SWIG_check_num_args("CoreSession::setAutoHangup",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::setAutoHangup",1,"CoreSession *");
+ if(!lua_isboolean(L,2)) SWIG_fail_arg("CoreSession::setAutoHangup",2,"bool");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_setAutoHangup",1,SWIGTYPE_p_CoreSession);
arg2 = (lua_toboolean(L, 2)!=0);
result = (int)(arg1)->setAutoHangup(arg2);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_setHangupHook(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
void *arg2 = (void *) 0 ;
- SWIG_check_num_args("setHangupHook",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setHangupHook",2,"void *");
+ SWIG_check_num_args("CoreSession::setHangupHook",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::setHangupHook",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::setHangupHook",2,"void *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_setHangupHook",1,SWIGTYPE_p_CoreSession);
arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_setHangupHook");
(arg1)->setHangupHook(arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_ready(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
bool result;
- SWIG_check_num_args("ready",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ready",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::ready",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::ready",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_ready",1,SWIGTYPE_p_CoreSession);
}
result = (bool)(arg1)->ready();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_bridged(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
bool result;
- SWIG_check_num_args("bridged",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bridged",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::bridged",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::bridged",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_bridged",1,SWIGTYPE_p_CoreSession);
}
result = (bool)(arg1)->bridged();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_answered(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
bool result;
- SWIG_check_num_args("answered",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("answered",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::answered",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::answered",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_answered",1,SWIGTYPE_p_CoreSession);
}
result = (bool)(arg1)->answered();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_mediaReady(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
bool result;
- SWIG_check_num_args("mediaReady",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mediaReady",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::mediaReady",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::mediaReady",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_mediaReady",1,SWIGTYPE_p_CoreSession);
}
result = (bool)(arg1)->mediaReady();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_waitForAnswer(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
CoreSession *arg2 = (CoreSession *) 0 ;
- SWIG_check_num_args("waitForAnswer",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("waitForAnswer",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("waitForAnswer",2,"CoreSession *");
+ SWIG_check_num_args("CoreSession::waitForAnswer",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::waitForAnswer",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::waitForAnswer",2,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_waitForAnswer",1,SWIGTYPE_p_CoreSession);
}
(arg1)->waitForAnswer(arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_execute(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) NULL ;
- SWIG_check_num_args("execute",2,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("execute",2,"char const *");
- if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *");
+ SWIG_check_num_args("CoreSession::execute",2,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::execute",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::execute",2,"char const *");
+ if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::execute",3,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_execute",1,SWIGTYPE_p_CoreSession);
arg3 = (char *)lua_tostring(L, 3);
}
(arg1)->execute((char const *)arg2,(char const *)arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_sendEvent(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
Event *arg2 = (Event *) 0 ;
- SWIG_check_num_args("sendEvent",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sendEvent",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("sendEvent",2,"Event *");
+ SWIG_check_num_args("CoreSession::sendEvent",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::sendEvent",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::sendEvent",2,"Event *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_sendEvent",1,SWIGTYPE_p_CoreSession);
}
(arg1)->sendEvent(arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_setEventData(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
Event *arg2 = (Event *) 0 ;
- SWIG_check_num_args("setEventData",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setEventData",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setEventData",2,"Event *");
+ SWIG_check_num_args("CoreSession::setEventData",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::setEventData",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::setEventData",2,"Event *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_setEventData",1,SWIGTYPE_p_CoreSession);
}
(arg1)->setEventData(arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_getXMLCDR(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("getXMLCDR",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getXMLCDR",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::getXMLCDR",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::getXMLCDR",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_getXMLCDR",1,SWIGTYPE_p_CoreSession);
}
result = (char *)(arg1)->getXMLCDR();
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_begin_allow_threads(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
bool result;
- SWIG_check_num_args("begin_allow_threads",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("begin_allow_threads",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::begin_allow_threads",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::begin_allow_threads",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_begin_allow_threads",1,SWIGTYPE_p_CoreSession);
}
result = (bool)(arg1)->begin_allow_threads();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_end_allow_threads(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
bool result;
- SWIG_check_num_args("end_allow_threads",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("end_allow_threads",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::end_allow_threads",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::end_allow_threads",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_end_allow_threads",1,SWIGTYPE_p_CoreSession);
}
result = (bool)(arg1)->end_allow_threads();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_get_uuid(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("get_uuid",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_uuid",1,"CoreSession const *");
+ SWIG_check_num_args("CoreSession::get_uuid",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::get_uuid",1,"CoreSession const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_get_uuid",1,SWIGTYPE_p_CoreSession);
}
result = (char *)((CoreSession const *)arg1)->get_uuid();
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_get_cb_args(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_input_args_t *result = 0 ;
- SWIG_check_num_args("get_cb_args",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_cb_args",1,"CoreSession const *");
+ SWIG_check_num_args("CoreSession::get_cb_args",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::get_cb_args",1,"CoreSession const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_get_cb_args",1,SWIGTYPE_p_CoreSession);
}
- {
- switch_input_args_t const &_result_ref = ((CoreSession const *)arg1)->get_cb_args();
- result = (switch_input_args_t *) &_result_ref;
- }
- SWIG_arg=0;
+ result = (switch_input_args_t *) &((CoreSession const *)arg1)->get_cb_args();
SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_input_args_t,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_check_hangup_hook(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- SWIG_check_num_args("check_hangup_hook",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("check_hangup_hook",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::check_hangup_hook",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::check_hangup_hook",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_check_hangup_hook",1,SWIGTYPE_p_CoreSession);
}
(arg1)->check_hangup_hook();
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_run_dtmf_callback(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
void *arg2 = (void *) 0 ;
switch_input_type_t arg3 ;
- switch_status_t result;
switch_input_type_t *argp3 ;
+ switch_status_t result;
- SWIG_check_num_args("run_dtmf_callback",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("run_dtmf_callback",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("run_dtmf_callback",2,"void *");
- if(!lua_isuserdata(L,3)) SWIG_fail_arg("run_dtmf_callback",3,"switch_input_type_t");
+ SWIG_check_num_args("CoreSession::run_dtmf_callback",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::run_dtmf_callback",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::run_dtmf_callback",2,"void *");
+ if(!lua_isuserdata(L,3)) SWIG_fail_arg("CoreSession::run_dtmf_callback",3,"switch_input_type_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_run_dtmf_callback",1,SWIGTYPE_p_CoreSession);
arg3 = *argp3;
result = (arg1)->run_dtmf_callback(arg2,arg3);
- SWIG_arg=0;
{
- switch_status_t * resultptr = new switch_status_t((switch_status_t &) result);
+ switch_status_t * resultptr = new switch_status_t((const switch_status_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_CoreSession_consoleLog(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
- SWIG_check_num_args("consoleLog",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("consoleLog",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog",3,"char *");
+ SWIG_check_num_args("CoreSession::consoleLog",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::consoleLog",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::consoleLog",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::consoleLog",3,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_consoleLog",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
(arg1)->consoleLog(arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_consoleLog2(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
int arg5 ;
char *arg6 = (char *) 0 ;
- SWIG_check_num_args("consoleLog2",6,6)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("consoleLog2",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog2",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog2",3,"char *");
- if(!lua_isstring(L,4)) SWIG_fail_arg("consoleLog2",4,"char *");
- if(!lua_isnumber(L,5)) SWIG_fail_arg("consoleLog2",5,"int");
- if(!lua_isstring(L,6)) SWIG_fail_arg("consoleLog2",6,"char *");
+ SWIG_check_num_args("CoreSession::consoleLog2",6,6)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::consoleLog2",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::consoleLog2",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::consoleLog2",3,"char *");
+ if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("CoreSession::consoleLog2",4,"char *");
+ if(!lua_isnumber(L,5)) SWIG_fail_arg("CoreSession::consoleLog2",5,"int");
+ if(!SWIG_lua_isnilstring(L,6)) SWIG_fail_arg("CoreSession::consoleLog2",6,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_consoleLog2",1,SWIGTYPE_p_CoreSession);
arg5 = (int)lua_tonumber(L, 5);
arg6 = (char *)lua_tostring(L, 6);
(arg1)->consoleLog2(arg2,arg3,arg4,arg5,arg6);
- SWIG_arg=0;
return SWIG_arg;
{ "voice_name", _wrap_CoreSession_voice_name_get, _wrap_CoreSession_voice_name_set},
{0,0,0}
};
+static swig_lua_attribute swig_CoreSession_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_CoreSession_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_CoreSession_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_CoreSession_bases[] = {0};
static const char *swig_CoreSession_base_names[] = {0};
-static swig_lua_class _wrap_class_CoreSession = { "CoreSession", &SWIGTYPE_p_CoreSession,0, swig_delete_CoreSession, swig_CoreSession_methods, swig_CoreSession_attributes, swig_CoreSession_bases, swig_CoreSession_base_names };
+static swig_lua_class _wrap_class_CoreSession = { "CoreSession", &SWIGTYPE_p_CoreSession,0, swig_delete_CoreSession, swig_CoreSession_methods, swig_CoreSession_attributes, { "CoreSession", swig_CoreSession_cls_methods, swig_CoreSession_cls_attributes, swig_CoreSession_cls_constants }, swig_CoreSession_bases, swig_CoreSession_base_names };
static int _wrap_console_log(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
SWIG_check_num_args("console_log",2,2)
- if(!lua_isstring(L,1)) SWIG_fail_arg("console_log",1,"char *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("console_log",2,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("console_log",1,"char *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("console_log",2,"char *");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
console_log(arg1,arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_console_log2(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
char *arg5 = (char *) 0 ;
SWIG_check_num_args("console_log2",5,5)
- if(!lua_isstring(L,1)) SWIG_fail_arg("console_log2",1,"char *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("console_log2",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("console_log2",3,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("console_log2",1,"char *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("console_log2",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("console_log2",3,"char *");
if(!lua_isnumber(L,4)) SWIG_fail_arg("console_log2",4,"int");
- if(!lua_isstring(L,5)) SWIG_fail_arg("console_log2",5,"char *");
+ if(!SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("console_log2",5,"char *");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
arg4 = (int)lua_tonumber(L, 4);
arg5 = (char *)lua_tostring(L, 5);
console_log2(arg1,arg2,arg3,arg4,arg5);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_console_clean_log(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
SWIG_check_num_args("console_clean_log",1,1)
- if(!lua_isstring(L,1)) SWIG_fail_arg("console_clean_log",1,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("console_clean_log",1,"char *");
arg1 = (char *)lua_tostring(L, 1);
console_clean_log(arg1);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_msleep(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
unsigned int arg1 ;
SWIG_check_num_args("switch_msleep",1,1)
if(!lua_isnumber(L,1)) SWIG_fail_arg("switch_msleep",1,"unsigned int");
+ SWIG_contract_assert((lua_tonumber(L,1)>=0),"number must not be negative")
arg1 = (unsigned int)lua_tonumber(L, 1);
switch_msleep(arg1);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_bridge(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = 0 ;
CoreSession *arg2 = 0 ;
}
bridge(*arg1,*arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_hanguphook(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
switch_status_t result;
}
result = hanguphook(arg1);
- SWIG_arg=0;
{
- switch_status_t * resultptr = new switch_status_t((switch_status_t &) result);
+ switch_status_t * resultptr = new switch_status_t((const switch_status_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_dtmf_callback(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
void *arg2 = (void *) 0 ;
switch_input_type_t arg3 ;
void *arg4 = (void *) 0 ;
unsigned int arg5 ;
- switch_status_t result;
switch_input_type_t *argp3 ;
+ switch_status_t result;
SWIG_check_num_args("dtmf_callback",5,5)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("dtmf_callback",1,"switch_core_session_t *");
arg3 = *argp3;
arg4=(void *)SWIG_MustGetPtr(L,4,0,0,4,"dtmf_callback");
+ SWIG_contract_assert((lua_tonumber(L,5)>=0),"number must not be negative")
arg5 = (unsigned int)lua_tonumber(L, 5);
result = dtmf_callback(arg1,arg2,arg3,arg4,arg5);
- SWIG_arg=0;
{
- switch_status_t * resultptr = new switch_status_t((switch_status_t &) result);
+ switch_status_t * resultptr = new switch_status_t((const switch_status_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_new_Session__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *result = 0 ;
- SWIG_check_num_args("LUA::Session",0,0)
+ SWIG_check_num_args("LUA::Session::Session",0,0)
result = (LUA::Session *)new LUA::Session();
- SWIG_arg=0;
- SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L);
+ SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_new_Session__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
CoreSession *arg2 = (CoreSession *) 0 ;
LUA::Session *result = 0 ;
- SWIG_check_num_args("LUA::Session",2,2)
- if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Session",1,"char *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("LUA::Session",2,"CoreSession *");
+ SWIG_check_num_args("LUA::Session::Session",2,2)
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("LUA::Session::Session",1,"char *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("LUA::Session::Session",2,"CoreSession *");
arg1 = (char *)lua_tostring(L, 1);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){
}
result = (LUA::Session *)new LUA::Session(arg1,arg2);
- SWIG_arg=0;
- SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L);
+ SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_new_Session__SWIG_2(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
LUA::Session *result = 0 ;
- SWIG_check_num_args("LUA::Session",1,1)
- if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Session",1,"char *");
+ SWIG_check_num_args("LUA::Session::Session",1,1)
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("LUA::Session::Session",1,"char *");
arg1 = (char *)lua_tostring(L, 1);
result = (LUA::Session *)new LUA::Session(arg1);
- SWIG_arg=0;
- SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L);
+ SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_new_Session__SWIG_3(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
LUA::Session *result = 0 ;
- SWIG_check_num_args("LUA::Session",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session",1,"switch_core_session_t *");
+ SWIG_check_num_args("LUA::Session::Session",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::Session",1,"switch_core_session_t *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))){
SWIG_fail_ptr("new_Session",1,SWIGTYPE_p_switch_core_session_t);
}
result = (LUA::Session *)new LUA::Session(arg1);
- SWIG_arg=0;
- SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L);
+ SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
if (argc == 1) {
int _v;
{
- _v = lua_isstring(L,argv[0]);
+ _v = SWIG_lua_isnilstring(L,argv[0]);
}
if (_v) {
return _wrap_new_Session__SWIG_2(L);
if (argc == 2) {
int _v;
{
- _v = lua_isstring(L,argv[0]);
+ _v = SWIG_lua_isnilstring(L,argv[0]);
}
if (_v) {
{
}
}
- lua_pushstring(L,"No matching function for overloaded 'new_Session'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_Session'\n"
+ " Possible C/C++ prototypes are:\n"
+ " LUA::Session::Session()\n"
+ " LUA::Session::Session(char *,CoreSession *)\n"
+ " LUA::Session::Session(char *)\n"
+ " LUA::Session::Session(switch_core_session_t *)\n");
lua_error(L);return 0;
}
-static int _wrap_delete_Session(lua_State* L) {
- int SWIG_arg = -1;
- LUA::Session *arg1 = (LUA::Session *) 0 ;
-
- SWIG_check_num_args("LUA::~Session",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::~Session",1,"LUA::Session *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_Session",1,SWIGTYPE_p_LUA__Session);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static int _wrap_Session_destroy__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("destroy",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("destroy",2,"char const *");
+ SWIG_check_num_args("LUA::Session::destroy",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::destroy",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::destroy",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_destroy",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
(arg1)->destroy((char const *)arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_destroy__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
- SWIG_check_num_args("destroy",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::destroy",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::destroy",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_destroy",1,SWIGTYPE_p_LUA__Session);
}
(arg1)->destroy();
- SWIG_arg=0;
return SWIG_arg;
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
return _wrap_Session_destroy__SWIG_0(L);
}
}
- lua_pushstring(L,"No matching function for overloaded 'Session_destroy'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'Session_destroy'\n"
+ " Possible C/C++ prototypes are:\n"
+ " LUA::Session::destroy(char const *)\n"
+ " LUA::Session::destroy()\n");
lua_error(L);return 0;
}
static int _wrap_Session_begin_allow_threads(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
bool result;
- SWIG_check_num_args("begin_allow_threads",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("begin_allow_threads",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::begin_allow_threads",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::begin_allow_threads",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_begin_allow_threads",1,SWIGTYPE_p_LUA__Session);
}
result = (bool)(arg1)->begin_allow_threads();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Session_end_allow_threads(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
bool result;
- SWIG_check_num_args("end_allow_threads",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("end_allow_threads",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::end_allow_threads",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::end_allow_threads",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_end_allow_threads",1,SWIGTYPE_p_LUA__Session);
}
result = (bool)(arg1)->end_allow_threads();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Session_check_hangup_hook(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
- SWIG_check_num_args("check_hangup_hook",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("check_hangup_hook",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::check_hangup_hook",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::check_hangup_hook",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_check_hangup_hook",1,SWIGTYPE_p_LUA__Session);
}
(arg1)->check_hangup_hook();
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_run_dtmf_callback(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
void *arg2 = (void *) 0 ;
switch_input_type_t arg3 ;
- switch_status_t result;
switch_input_type_t *argp3 ;
+ switch_status_t result;
- SWIG_check_num_args("run_dtmf_callback",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("run_dtmf_callback",1,"LUA::Session *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("run_dtmf_callback",2,"void *");
- if(!lua_isuserdata(L,3)) SWIG_fail_arg("run_dtmf_callback",3,"switch_input_type_t");
+ SWIG_check_num_args("LUA::Session::run_dtmf_callback",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::run_dtmf_callback",1,"LUA::Session *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("LUA::Session::run_dtmf_callback",2,"void *");
+ if(!lua_isuserdata(L,3)) SWIG_fail_arg("LUA::Session::run_dtmf_callback",3,"switch_input_type_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_run_dtmf_callback",1,SWIGTYPE_p_LUA__Session);
arg3 = *argp3;
result = (arg1)->run_dtmf_callback(arg2,arg3);
- SWIG_arg=0;
{
- switch_status_t * resultptr = new switch_status_t((switch_status_t &) result);
+ switch_status_t * resultptr = new switch_status_t((const switch_status_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_Session_unsetInputCallback(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
- SWIG_check_num_args("unsetInputCallback",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("unsetInputCallback",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::unsetInputCallback",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::unsetInputCallback",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_unsetInputCallback",1,SWIGTYPE_p_LUA__Session);
}
(arg1)->unsetInputCallback();
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_setInputCallback__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
- SWIG_check_num_args("setInputCallback",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setInputCallback",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("setInputCallback",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("setInputCallback",3,"char *");
+ SWIG_check_num_args("LUA::Session::setInputCallback",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::setInputCallback",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::setInputCallback",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("LUA::Session::setInputCallback",3,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_setInputCallback",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
(arg1)->setInputCallback(arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_setInputCallback__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("setInputCallback",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setInputCallback",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("setInputCallback",2,"char *");
+ SWIG_check_num_args("LUA::Session::setInputCallback",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::setInputCallback",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::setInputCallback",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_setInputCallback",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
(arg1)->setInputCallback(arg2);
- SWIG_arg=0;
return SWIG_arg;
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
return _wrap_Session_setInputCallback__SWIG_1(L);
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
{
- _v = lua_isstring(L,argv[2]);
+ _v = SWIG_lua_isnilstring(L,argv[2]);
}
if (_v) {
return _wrap_Session_setInputCallback__SWIG_0(L);
}
}
- lua_pushstring(L,"No matching function for overloaded 'Session_setInputCallback'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'Session_setInputCallback'\n"
+ " Possible C/C++ prototypes are:\n"
+ " LUA::Session::setInputCallback(char *,char *)\n"
+ " LUA::Session::setInputCallback(char *)\n");
lua_error(L);return 0;
}
static int _wrap_Session_setHangupHook__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
- SWIG_check_num_args("setHangupHook",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("setHangupHook",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("setHangupHook",3,"char *");
+ SWIG_check_num_args("LUA::Session::setHangupHook",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::setHangupHook",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::setHangupHook",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("LUA::Session::setHangupHook",3,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_setHangupHook",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
(arg1)->setHangupHook(arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_setHangupHook__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("setHangupHook",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("setHangupHook",2,"char *");
+ SWIG_check_num_args("LUA::Session::setHangupHook",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::setHangupHook",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::setHangupHook",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_setHangupHook",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
(arg1)->setHangupHook(arg2);
- SWIG_arg=0;
return SWIG_arg;
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
return _wrap_Session_setHangupHook__SWIG_1(L);
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
{
- _v = lua_isstring(L,argv[2]);
+ _v = SWIG_lua_isnilstring(L,argv[2]);
}
if (_v) {
return _wrap_Session_setHangupHook__SWIG_0(L);
}
}
- lua_pushstring(L,"No matching function for overloaded 'Session_setHangupHook'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'Session_setHangupHook'\n"
+ " Possible C/C++ prototypes are:\n"
+ " LUA::Session::setHangupHook(char *,char *)\n"
+ " LUA::Session::setHangupHook(char *)\n");
lua_error(L);return 0;
}
static int _wrap_Session_ready(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
bool result;
- SWIG_check_num_args("ready",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ready",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::ready",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::ready",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_ready",1,SWIGTYPE_p_LUA__Session);
}
result = (bool)(arg1)->ready();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Session_originate(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
CoreSession *arg2 = (CoreSession *) 0 ;
char *arg3 = (char *) 0 ;
int arg4 ;
int result;
- SWIG_check_num_args("originate",4,4)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("originate",1,"LUA::Session *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("originate",2,"CoreSession *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("originate",3,"char *");
- if(!lua_isnumber(L,4)) SWIG_fail_arg("originate",4,"int");
+ SWIG_check_num_args("LUA::Session::originate",4,4)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::originate",1,"LUA::Session *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("LUA::Session::originate",2,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("LUA::Session::originate",3,"char *");
+ if(!lua_isnumber(L,4)) SWIG_fail_arg("LUA::Session::originate",4,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_originate",1,SWIGTYPE_p_LUA__Session);
arg3 = (char *)lua_tostring(L, 3);
arg4 = (int)lua_tonumber(L, 4);
result = (int)(arg1)->originate(arg2,arg3,arg4);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_Session_cb_function_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("cb_function",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_function",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("cb_function",2,"char *");
+ SWIG_check_num_args("LUA::Session::cb_function",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::cb_function",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::cb_function",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_cb_function_set",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->cb_function) delete [] arg1->cb_function;
+ delete [] arg1->cb_function;
if (arg2) {
arg1->cb_function = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->cb_function, (const char *)arg2);
arg1->cb_function = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_cb_function_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("cb_function",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_function",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::cb_function",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::cb_function",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_cb_function_get",1,SWIGTYPE_p_LUA__Session);
}
result = (char *) ((arg1)->cb_function);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Session_cb_arg_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("cb_arg",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_arg",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("cb_arg",2,"char *");
+ SWIG_check_num_args("LUA::Session::cb_arg",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::cb_arg",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::cb_arg",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_cb_arg_set",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->cb_arg) delete [] arg1->cb_arg;
+ delete [] arg1->cb_arg;
if (arg2) {
arg1->cb_arg = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->cb_arg, (const char *)arg2);
arg1->cb_arg = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_cb_arg_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("cb_arg",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_arg",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::cb_arg",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::cb_arg",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_cb_arg_get",1,SWIGTYPE_p_LUA__Session);
}
result = (char *) ((arg1)->cb_arg);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Session_hangup_func_str_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("hangup_func_str",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_str",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("hangup_func_str",2,"char *");
+ SWIG_check_num_args("LUA::Session::hangup_func_str",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::hangup_func_str",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::hangup_func_str",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_hangup_func_str_set",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->hangup_func_str) delete [] arg1->hangup_func_str;
+ delete [] arg1->hangup_func_str;
if (arg2) {
arg1->hangup_func_str = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->hangup_func_str, (const char *)arg2);
arg1->hangup_func_str = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_hangup_func_str_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("hangup_func_str",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_str",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::hangup_func_str",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::hangup_func_str",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_hangup_func_str_get",1,SWIGTYPE_p_LUA__Session);
}
result = (char *) ((arg1)->hangup_func_str);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Session_hangup_func_arg_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("hangup_func_arg",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_arg",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("hangup_func_arg",2,"char *");
+ SWIG_check_num_args("LUA::Session::hangup_func_arg",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::hangup_func_arg",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::hangup_func_arg",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_hangup_func_arg_set",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->hangup_func_arg) delete [] arg1->hangup_func_arg;
+ delete [] arg1->hangup_func_arg;
if (arg2) {
arg1->hangup_func_arg = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->hangup_func_arg, (const char *)arg2);
arg1->hangup_func_arg = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_hangup_func_arg_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("hangup_func_arg",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_arg",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::hangup_func_arg",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::hangup_func_arg",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_hangup_func_arg_get",1,SWIGTYPE_p_LUA__Session);
}
result = (char *) ((arg1)->hangup_func_arg);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Session_setLUA(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
lua_State *arg2 = (lua_State *) 0 ;
arg2 = L;
- SWIG_check_num_args("setLUA",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setLUA",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::setLUA",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::setLUA",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_setLUA",1,SWIGTYPE_p_LUA__Session);
}
(arg1)->setLUA(arg2);
- SWIG_arg=0;
return SWIG_arg;
{ "hangup_func_arg", _wrap_Session_hangup_func_arg_get, _wrap_Session_hangup_func_arg_set},
{0,0,0}
};
+static swig_lua_attribute swig_LUA_Session_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_LUA_Session_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_LUA_Session_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_LUA_Session_bases[] = {0,0};
static const char *swig_LUA_Session_base_names[] = {"CoreSession *",0};
-static swig_lua_class _wrap_class_LUA_Session = { "Session", &SWIGTYPE_p_LUA__Session,_wrap_new_Session, swig_delete_Session, swig_LUA_Session_methods, swig_LUA_Session_attributes, swig_LUA_Session_bases, swig_LUA_Session_base_names };
+static swig_lua_class _wrap_class_LUA_Session = { "Session", &SWIGTYPE_p_LUA__Session,_wrap_new_Session, swig_delete_Session, swig_LUA_Session_methods, swig_LUA_Session_attributes, { "Session", swig_LUA_Session_cls_methods, swig_LUA_Session_cls_attributes, swig_LUA_Session_cls_constants }, swig_LUA_Session_bases, swig_LUA_Session_base_names };
static int _wrap_new_Dbh__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
LUA::Dbh *result = 0 ;
- SWIG_check_num_args("LUA::Dbh",3,3)
- if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("LUA::Dbh",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("LUA::Dbh",3,"char *");
+ SWIG_check_num_args("LUA::Dbh::Dbh",3,3)
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("LUA::Dbh::Dbh",1,"char *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Dbh::Dbh",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("LUA::Dbh::Dbh",3,"char *");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
result = (LUA::Dbh *)new LUA::Dbh(arg1,arg2,arg3);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++;
return SWIG_arg;
static int _wrap_new_Dbh__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
LUA::Dbh *result = 0 ;
- SWIG_check_num_args("LUA::Dbh",2,2)
- if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("LUA::Dbh",2,"char *");
+ SWIG_check_num_args("LUA::Dbh::Dbh",2,2)
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("LUA::Dbh::Dbh",1,"char *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Dbh::Dbh",2,"char *");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
result = (LUA::Dbh *)new LUA::Dbh(arg1,arg2);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++;
return SWIG_arg;
static int _wrap_new_Dbh__SWIG_2(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
LUA::Dbh *result = 0 ;
- SWIG_check_num_args("LUA::Dbh",1,1)
- if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *");
+ SWIG_check_num_args("LUA::Dbh::Dbh",1,1)
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("LUA::Dbh::Dbh",1,"char *");
arg1 = (char *)lua_tostring(L, 1);
result = (LUA::Dbh *)new LUA::Dbh(arg1);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++;
return SWIG_arg;
if (argc == 1) {
int _v;
{
- _v = lua_isstring(L,argv[0]);
+ _v = SWIG_lua_isnilstring(L,argv[0]);
}
if (_v) {
return _wrap_new_Dbh__SWIG_2(L);
if (argc == 2) {
int _v;
{
- _v = lua_isstring(L,argv[0]);
+ _v = SWIG_lua_isnilstring(L,argv[0]);
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
return _wrap_new_Dbh__SWIG_1(L);
if (argc == 3) {
int _v;
{
- _v = lua_isstring(L,argv[0]);
+ _v = SWIG_lua_isnilstring(L,argv[0]);
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
{
- _v = lua_isstring(L,argv[2]);
+ _v = SWIG_lua_isnilstring(L,argv[2]);
}
if (_v) {
return _wrap_new_Dbh__SWIG_0(L);
}
}
- lua_pushstring(L,"No matching function for overloaded 'new_Dbh'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_Dbh'\n"
+ " Possible C/C++ prototypes are:\n"
+ " LUA::Dbh::Dbh(char *,char *,char *)\n"
+ " LUA::Dbh::Dbh(char *,char *)\n"
+ " LUA::Dbh::Dbh(char *)\n");
lua_error(L);return 0;
}
-static int _wrap_delete_Dbh(lua_State* L) {
- int SWIG_arg = -1;
- LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
-
- SWIG_check_num_args("LUA::~Dbh",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::~Dbh",1,"LUA::Dbh *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_Dbh",1,SWIGTYPE_p_LUA__Dbh);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static int _wrap_Dbh_release(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
bool result;
- SWIG_check_num_args("release",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("release",1,"LUA::Dbh *");
+ SWIG_check_num_args("LUA::Dbh::release",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Dbh::release",1,"LUA::Dbh *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
SWIG_fail_ptr("Dbh_release",1,SWIGTYPE_p_LUA__Dbh);
}
result = (bool)(arg1)->release();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Dbh_connected(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
bool result;
- SWIG_check_num_args("connected",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("connected",1,"LUA::Dbh *");
+ SWIG_check_num_args("LUA::Dbh::connected",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Dbh::connected",1,"LUA::Dbh *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
SWIG_fail_ptr("Dbh_connected",1,SWIGTYPE_p_LUA__Dbh);
}
result = (bool)(arg1)->connected();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Dbh_test_reactive__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
char *arg4 = (char *) 0 ;
bool result;
- SWIG_check_num_args("test_reactive",4,4)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("test_reactive",3,"char *");
- if(!lua_isstring(L,4)) SWIG_fail_arg("test_reactive",4,"char *");
+ SWIG_check_num_args("LUA::Dbh::test_reactive",4,4)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Dbh::test_reactive",1,"LUA::Dbh *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Dbh::test_reactive",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("LUA::Dbh::test_reactive",3,"char *");
+ if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("LUA::Dbh::test_reactive",4,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh);
arg3 = (char *)lua_tostring(L, 3);
arg4 = (char *)lua_tostring(L, 4);
result = (bool)(arg1)->test_reactive(arg2,arg3,arg4);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Dbh_test_reactive__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
bool result;
- SWIG_check_num_args("test_reactive",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("test_reactive",3,"char *");
+ SWIG_check_num_args("LUA::Dbh::test_reactive",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Dbh::test_reactive",1,"LUA::Dbh *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Dbh::test_reactive",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("LUA::Dbh::test_reactive",3,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
result = (bool)(arg1)->test_reactive(arg2,arg3);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Dbh_test_reactive__SWIG_2(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
char *arg2 = (char *) 0 ;
bool result;
- SWIG_check_num_args("test_reactive",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *");
+ SWIG_check_num_args("LUA::Dbh::test_reactive",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Dbh::test_reactive",1,"LUA::Dbh *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Dbh::test_reactive",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh);
arg2 = (char *)lua_tostring(L, 2);
result = (bool)(arg1)->test_reactive(arg2);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
return _wrap_Dbh_test_reactive__SWIG_2(L);
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
{
- _v = lua_isstring(L,argv[2]);
+ _v = SWIG_lua_isnilstring(L,argv[2]);
}
if (_v) {
return _wrap_Dbh_test_reactive__SWIG_1(L);
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
{
- _v = lua_isstring(L,argv[2]);
+ _v = SWIG_lua_isnilstring(L,argv[2]);
}
if (_v) {
{
- _v = lua_isstring(L,argv[3]);
+ _v = SWIG_lua_isnilstring(L,argv[3]);
}
if (_v) {
return _wrap_Dbh_test_reactive__SWIG_0(L);
}
}
- lua_pushstring(L,"No matching function for overloaded 'Dbh_test_reactive'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'Dbh_test_reactive'\n"
+ " Possible C/C++ prototypes are:\n"
+ " LUA::Dbh::test_reactive(char *,char *,char *)\n"
+ " LUA::Dbh::test_reactive(char *,char *)\n"
+ " LUA::Dbh::test_reactive(char *)\n");
lua_error(L);return 0;
}
static int _wrap_Dbh_query(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
char *arg2 = (char *) 0 ;
SWIGLUA_FN arg3 ;
};
arg3 = default_swiglua_fn;
}
- SWIG_check_num_args("query",2,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("query",1,"LUA::Dbh *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("query",2,"char *");
- if(lua_gettop(L)>=3 && !lua_isfunction(L,3)) SWIG_fail_arg("query",3,"SWIGLUA_FN");
+ SWIG_check_num_args("LUA::Dbh::query",2,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Dbh::query",1,"LUA::Dbh *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Dbh::query",2,"char *");
+ if(lua_gettop(L)>=3 && !lua_isfunction(L,3)) SWIG_fail_arg("LUA::Dbh::query",3,"SWIGLUA_FN");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
SWIG_fail_ptr("Dbh_query",1,SWIGTYPE_p_LUA__Dbh);
}
}
result = (bool)(arg1)->query(arg2,arg3);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Dbh_affected_rows(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
int result;
- SWIG_check_num_args("affected_rows",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("affected_rows",1,"LUA::Dbh *");
+ SWIG_check_num_args("LUA::Dbh::affected_rows",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Dbh::affected_rows",1,"LUA::Dbh *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
SWIG_fail_ptr("Dbh_affected_rows",1,SWIGTYPE_p_LUA__Dbh);
}
result = (int)(arg1)->affected_rows();
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_Dbh_load_extension(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
char *arg2 = (char *) 0 ;
int result;
- SWIG_check_num_args("load_extension",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("load_extension",1,"LUA::Dbh *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("load_extension",2,"char const *");
+ SWIG_check_num_args("LUA::Dbh::load_extension",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Dbh::load_extension",1,"LUA::Dbh *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Dbh::load_extension",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
SWIG_fail_ptr("Dbh_load_extension",1,SWIGTYPE_p_LUA__Dbh);
arg2 = (char *)lua_tostring(L, 2);
result = (int)(arg1)->load_extension((char const *)arg2);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static swig_lua_attribute swig_LUA_Dbh_attributes[] = {
{0,0,0}
};
+static swig_lua_attribute swig_LUA_Dbh_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_LUA_Dbh_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_LUA_Dbh_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_LUA_Dbh_bases[] = {0};
static const char *swig_LUA_Dbh_base_names[] = {0};
-static swig_lua_class _wrap_class_LUA_Dbh = { "Dbh", &SWIGTYPE_p_LUA__Dbh,_wrap_new_Dbh, swig_delete_Dbh, swig_LUA_Dbh_methods, swig_LUA_Dbh_attributes, swig_LUA_Dbh_bases, swig_LUA_Dbh_base_names };
+static swig_lua_class _wrap_class_LUA_Dbh = { "Dbh", &SWIGTYPE_p_LUA__Dbh,_wrap_new_Dbh, swig_delete_Dbh, swig_LUA_Dbh_methods, swig_LUA_Dbh_attributes, { "Dbh", swig_LUA_Dbh_cls_methods, swig_LUA_Dbh_cls_attributes, swig_LUA_Dbh_cls_constants }, swig_LUA_Dbh_bases, swig_LUA_Dbh_base_names };
#ifdef __cplusplus
}
};
static swig_lua_const_info swig_constants[] = {
-{ SWIG_LUA_INT, (char *)"S_HUP", (long) S_HUP, 0, 0, 0},
-{ SWIG_LUA_INT, (char *)"S_FREE", (long) S_FREE, 0, 0, 0},
-{ SWIG_LUA_INT, (char *)"S_RDLOCK", (long) S_RDLOCK, 0, 0, 0},
+ {SWIG_LUA_CONSTTAB_INT("S_HUP", S_HUP)},
+ {SWIG_LUA_CONSTTAB_INT("S_FREE", S_FREE)},
+ {SWIG_LUA_CONSTTAB_INT("S_RDLOCK", S_RDLOCK)},
{0,0,0,0,0,0}
};
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
-static void *_p_LUA__SessionTo_p_CoreSession(void *x, int *newmemory) {
+static void *_p_LUA__SessionTo_p_CoreSession(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((CoreSession *) ((LUA::Session *) x));
}
static swig_type_info _swigt__p_API = {"_p_API", "API *", 0, 0, (void*)&_wrap_class_API, 0};
static swig_type_info _swigt__p_LUA__Session = {"_p_LUA__Session", "LUA::Session *", 0, 0, (void*)&_wrap_class_LUA_Session, 0};
static swig_type_info _swigt__p_SWIGLUA_FN = {"_p_SWIGLUA_FN", "SWIGLUA_FN *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Stream = {"_p_Stream", "Stream *", 0, 0, (void*)&_wrap_class_Stream, 0};
-static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state_t *|input_callback_state *", 0, 0, (void*)&_wrap_class_input_callback_state_t, 0};
+static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state_t *|input_callback_state *", 0, 0, (void*)&_wrap_class_input_callback_state, 0};
static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_lua_State = {"_p_lua_State", "lua_State *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_switch_event_node_t = {"_p_p_switch_event_node_t", "switch_event_node_t **", 0, 0, (void*)0, 0};
/* -----------------------------------------------------------------------------
* Type initialization:
- * This problem is tough by the requirement that no dynamic
- * memory is used. Also, since swig_type_info structures store pointers to
+ * This problem is tough by the requirement that no dynamic
+ * memory is used. Also, since swig_type_info structures store pointers to
* swig_cast_info structures and swig_cast_info structures store pointers back
- * to swig_type_info structures, we need some lookup code at initialization.
- * The idea is that swig generates all the structures that are needed.
- * The runtime then collects these partially filled structures.
- * The SWIG_InitializeModule function takes these initial arrays out of
+ * to swig_type_info structures, we need some lookup code at initialization.
+ * The idea is that swig generates all the structures that are needed.
+ * The runtime then collects these partially filled structures.
+ * The SWIG_InitializeModule function takes these initial arrays out of
* swig_module, and does all the lookup, filling in the swig_module.types
* array with the correct data and linking the correct swig_cast_info
* structures together.
*
- * The generated swig_type_info structures are assigned staticly to an initial
+ * The generated swig_type_info structures are assigned staticly to an initial
* array. We just loop through that array, and handle each type individually.
* First we lookup if this type has been already loaded, and if so, use the
* loaded structure instead of the generated one. Then we have to fill in the
* a column is one of the swig_cast_info structures for that type.
* The cast_initial array is actually an array of arrays, because each row has
* a variable number of columns. So to actually build the cast linked list,
- * we find the array of casts associated with the type, and loop through it
+ * we find the array of casts associated with the type, and loop through it
* adding the casts to the list. The one last trick we need to do is making
* sure the type pointer in the swig_cast_info struct is correct.
*
- * First off, we lookup the cast->type name to see if it is already loaded.
+ * First off, we lookup the cast->type name to see if it is already loaded.
* There are three cases to handle:
* 1) If the cast->type has already been loaded AND the type we are adding
* casting info to has not been loaded (it is in this module), THEN we
* replace the cast->type pointer with the type pointer that has already
* been loaded.
- * 2) If BOTH types (the one we are adding casting info to, and the
+ * 2) If BOTH types (the one we are adding casting info to, and the
* cast->type) are loaded, THEN the cast info has already been loaded by
* the previous module so we just ignore it.
* 3) Finally, if cast->type has not already been loaded, then we add that
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) {
/* Initialize the swig_module */
module_head->next = &swig_module;
}
- /* When multiple interpeters are used, a module could have already been initialized in
+ /* When multiple interpreters 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 */
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
/* Insert casting types */
cast = swig_module.cast_initial[i];
while (cast->type) {
-
+
/* Don't need to add information already in the list */
ret = 0;
#ifdef SWIGRUNTIME_DEBUG
#endif
/* this is the initialization function
added at the very end of the code
- the function is always called SWIG_init, but an eariler #define will rename it
+ the function is always called SWIG_init, but an earlier #define will rename it
*/
-SWIGEXPORT int SWIG_init(lua_State* L)
+#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
+LUALIB_API int SWIG_init(lua_State* L)
+#else
+SWIGEXPORT int SWIG_init(lua_State* L) /* default Lua action */
+#endif
{
+#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) /* valid for both Lua and eLua */
int i;
/* start with global table */
- lua_pushglobaltable(L);
+ lua_pushglobaltable (L);
/* SWIG's internal initalisation */
SWIG_InitializeModule((void*)L);
SWIG_PropagateClientData();
+#endif
+
+#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC))
/* add a global fn */
SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type);
SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal);
for (i = 0; swig_variables[i].name; i++){
SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set);
}
- /* set up base class pointers (the hierachy) */
+#endif
+
+#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
+ /* set up base class pointers (the hierarchy) */
for (i = 0; swig_types[i]; i++){
if (swig_types[i]->clientdata){
SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata));
SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata));
}
}
+#endif
+
+#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC))
/* constants */
SWIG_Lua_InstallConstants(L,swig_constants);
+#endif
+
+#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
/* invoke user-specific initialization */
SWIG_init_user(L);
/* end module */
- lua_pop(L,1); /* tidy stack (remove module table)*/
- lua_pop(L,1); /* tidy stack (remove global table)*/
+ /* Note: We do not clean up the stack here (Lua will do this for us). At this
+ point, we have the globals table and out module table on the stack. Returning
+ one value makes the module table the result of the require command. */
return 1;
+#else
+ return 0;
+#endif
}
#ifdef __cplusplus
}
+SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_mime_type2ext(char * jarg1) {
+ char * jresult ;
+ char *arg1 = (char *) 0 ;
+ char *result = 0 ;
+
+ arg1 = (char *)jarg1;
+ result = (char *)switch_core_mime_type2ext((char const *)arg1);
+ jresult = SWIG_csharp_string_callback((const char *)result);
+ return jresult;
+}
+
+
SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_mime_add_type(char * jarg1, char * jarg2) {
int jresult ;
char *arg1 = (char *) 0 ;
}
+SWIGEXPORT char * SWIGSTDCALL CSharp_switch_url_encode_opt(char * jarg1, char * jarg2, unsigned long jarg3, int jarg4) {
+ char * jresult ;
+ char *arg1 = (char *) 0 ;
+ char *arg2 = (char *) 0 ;
+ size_t arg3 ;
+ switch_bool_t arg4 ;
+ char *result = 0 ;
+
+ arg1 = (char *)jarg1;
+ arg2 = (char *)jarg2;
+ arg3 = (size_t)jarg3;
+ arg4 = (switch_bool_t)jarg4;
+ result = (char *)switch_url_encode_opt((char const *)arg1,arg2,arg3,arg4);
+ jresult = SWIG_csharp_string_callback((const char *)result);
+ return jresult;
+}
+
+
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_url_encode(char * jarg1, char * jarg2, unsigned long jarg3) {
char * jresult ;
char *arg1 = (char *) 0 ;
}
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_merge_sln(void * jarg1, unsigned long jarg2, void * jarg3, unsigned long jarg4) {
+SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_merge_sln(void * jarg1, unsigned long jarg2, void * jarg3, unsigned long jarg4, int jarg5) {
unsigned long jresult ;
int16_t *arg1 = (int16_t *) 0 ;
uint32_t arg2 ;
int16_t *arg3 = (int16_t *) 0 ;
uint32_t arg4 ;
+ int arg5 ;
uint32_t result;
arg1 = (int16_t *)jarg1;
arg2 = (uint32_t)jarg2;
arg3 = (int16_t *)jarg3;
arg4 = (uint32_t)jarg4;
- result = (uint32_t)switch_merge_sln(arg1,arg2,arg3,arg4);
+ arg5 = (int)jarg5;
+ result = (uint32_t)switch_merge_sln(arg1,arg2,arg3,arg4,arg5);
jresult = (unsigned long)result;
return jresult;
}
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_unmerge_sln(void * jarg1, unsigned long jarg2, void * jarg3, unsigned long jarg4) {
+SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_unmerge_sln(void * jarg1, unsigned long jarg2, void * jarg3, unsigned long jarg4, int jarg5) {
unsigned long jresult ;
int16_t *arg1 = (int16_t *) 0 ;
uint32_t arg2 ;
int16_t *arg3 = (int16_t *) 0 ;
uint32_t arg4 ;
+ int arg5 ;
uint32_t result;
arg1 = (int16_t *)jarg1;
arg2 = (uint32_t)jarg2;
arg3 = (int16_t *)jarg3;
arg4 = (uint32_t)jarg4;
- result = (uint32_t)switch_unmerge_sln(arg1,arg2,arg3,arg4);
+ arg5 = (int)jarg5;
+ result = (uint32_t)switch_unmerge_sln(arg1,arg2,arg3,arg4,arg5);
jresult = (unsigned long)result;
return jresult;
}
}
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_unicast_conninfo_thread_set(void * jarg1, void * jarg2) {
+ switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ;
+ switch_thread_t *arg2 = (switch_thread_t *) 0 ;
+
+ arg1 = (switch_unicast_conninfo *)jarg1;
+ arg2 = (switch_thread_t *)jarg2;
+ if (arg1) (arg1)->thread = arg2;
+}
+
+
+SWIGEXPORT void * SWIGSTDCALL CSharp_switch_unicast_conninfo_thread_get(void * jarg1) {
+ void * jresult ;
+ switch_unicast_conninfo *arg1 = (switch_unicast_conninfo *) 0 ;
+ switch_thread_t *result = 0 ;
+
+ arg1 = (switch_unicast_conninfo *)jarg1;
+ result = (switch_thread_t *) ((arg1)->thread);
+ jresult = (void *)result;
+ return jresult;
+}
+
+
SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_unicast_conninfo() {
void * jresult ;
switch_unicast_conninfo *result = 0 ;
return ret;
}
+ public static string switch_core_mime_type2ext(string type) {
+ string ret = freeswitchPINVOKE.switch_core_mime_type2ext(type);
+ return ret;
+ }
+
public static switch_status_t switch_core_mime_add_type(string type, string ext) {
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_mime_add_type(type, ext);
return ret;
return ret;
}
+ public static string switch_url_encode_opt(string url, string buf, uint len, switch_bool_t double_encode) {
+ string ret = freeswitchPINVOKE.switch_url_encode_opt(url, buf, len, (int)double_encode);
+ return ret;
+ }
+
public static string switch_url_encode(string url, string buf, uint len) {
string ret = freeswitchPINVOKE.switch_url_encode(url, buf, len);
return ret;
freeswitchPINVOKE.switch_change_sln_volume_granular(SWIGTYPE_p_short.getCPtr(data), samples, vol);
}
- public static uint switch_merge_sln(SWIGTYPE_p_short data, uint samples, SWIGTYPE_p_short other_data, uint other_samples) {
- uint ret = freeswitchPINVOKE.switch_merge_sln(SWIGTYPE_p_short.getCPtr(data), samples, SWIGTYPE_p_short.getCPtr(other_data), other_samples);
+ public static uint switch_merge_sln(SWIGTYPE_p_short data, uint samples, SWIGTYPE_p_short other_data, uint other_samples, int channels) {
+ uint ret = freeswitchPINVOKE.switch_merge_sln(SWIGTYPE_p_short.getCPtr(data), samples, SWIGTYPE_p_short.getCPtr(other_data), other_samples, channels);
return ret;
}
- public static uint switch_unmerge_sln(SWIGTYPE_p_short data, uint samples, SWIGTYPE_p_short other_data, uint other_samples) {
- uint ret = freeswitchPINVOKE.switch_unmerge_sln(SWIGTYPE_p_short.getCPtr(data), samples, SWIGTYPE_p_short.getCPtr(other_data), other_samples);
+ public static uint switch_unmerge_sln(SWIGTYPE_p_short data, uint samples, SWIGTYPE_p_short other_data, uint other_samples, int channels) {
+ uint ret = freeswitchPINVOKE.switch_unmerge_sln(SWIGTYPE_p_short.getCPtr(data), samples, SWIGTYPE_p_short.getCPtr(other_data), other_samples, channels);
return ret;
}
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_mime_ext2type")]
public static extern string switch_core_mime_ext2type(string jarg1);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_core_mime_type2ext")]
+ public static extern string switch_core_mime_type2ext(string jarg1);
+
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_mime_add_type")]
public static extern int switch_core_mime_add_type(string jarg1, string jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_needs_url_encode")]
public static extern int switch_needs_url_encode(string jarg1);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_url_encode_opt")]
+ public static extern string switch_url_encode_opt(string jarg1, string jarg2, uint jarg3, int jarg4);
+
[DllImport("mod_managed", EntryPoint="CSharp_switch_url_encode")]
public static extern string switch_url_encode(string jarg1, string jarg2, uint jarg3);
public static extern void switch_change_sln_volume_granular(HandleRef jarg1, uint jarg2, int jarg3);
[DllImport("mod_managed", EntryPoint="CSharp_switch_merge_sln")]
- public static extern uint switch_merge_sln(HandleRef jarg1, uint jarg2, HandleRef jarg3, uint jarg4);
+ public static extern uint switch_merge_sln(HandleRef jarg1, uint jarg2, HandleRef jarg3, uint jarg4, int jarg5);
[DllImport("mod_managed", EntryPoint="CSharp_switch_unmerge_sln")]
- public static extern uint switch_unmerge_sln(HandleRef jarg1, uint jarg2, HandleRef jarg3, uint jarg4);
+ public static extern uint switch_unmerge_sln(HandleRef jarg1, uint jarg2, HandleRef jarg3, uint jarg4, int jarg5);
[DllImport("mod_managed", EntryPoint="CSharp_switch_mux_channels")]
public static extern void switch_mux_channels(HandleRef jarg1, HandleRef jarg2, uint jarg3, uint jarg4);
[DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_stream_id_get")]
public static extern int switch_unicast_conninfo_stream_id_get(HandleRef jarg1);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_thread_set")]
+ public static extern void switch_unicast_conninfo_thread_set(HandleRef jarg1, HandleRef jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_unicast_conninfo_thread_get")]
+ public static extern IntPtr switch_unicast_conninfo_thread_get(HandleRef jarg1);
+
[DllImport("mod_managed", EntryPoint="CSharp_new_switch_unicast_conninfo")]
public static extern IntPtr new_switch_unicast_conninfo();
using System;
using System.Runtime.InteropServices;
+public class SWIGTYPE_p_switch_thread_t {
+ private HandleRef swigCPtr;
+
+ internal SWIGTYPE_p_switch_thread_t(IntPtr cPtr, bool futureUse) {
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ protected SWIGTYPE_p_switch_thread_t() {
+ swigCPtr = new HandleRef(null, IntPtr.Zero);
+ }
+
+ internal static HandleRef getCPtr(SWIGTYPE_p_switch_thread_t obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+}
+
+}
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.12
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+namespace FreeSWITCH.Native {
+
+using System;
+using System.Runtime.InteropServices;
+
public class SWIGTYPE_p_switch_time_exp_t {
private HandleRef swigCPtr;
}
}
+ public SWIGTYPE_p_switch_thread_t thread {
+ set {
+ freeswitchPINVOKE.switch_unicast_conninfo_thread_set(swigCPtr, SWIGTYPE_p_switch_thread_t.getCPtr(value));
+ }
+ get {
+ IntPtr cPtr = freeswitchPINVOKE.switch_unicast_conninfo_thread_get(swigCPtr);
+ SWIGTYPE_p_switch_thread_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_thread_t(cPtr, false);
+ return ret;
+ }
+ }
+
public switch_unicast_conninfo() : this(freeswitchPINVOKE.new_switch_unicast_conninfo(), true) {
}
# 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 freeswitch;
-require Exporter;
-@ISA = qw(Exporter);
+use base qw(Exporter);
+package freeswitchc;
package freeswitchc;
boot_freeswitch();
package freeswitch;
-@EXPORT = qw( );
+@EXPORT = qw();
# ---------- BASE METHODS -------------
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.35
- *
- * This file is not intended to be easily readable and contains a number of
+ * Version 2.0.12
+ *
+ * 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.
+ * 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<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:
- SwigValueWrapper() : tt(0) { }
- SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
- SwigValueWrapper(const T& t) : tt(new T(t)) { }
- ~SwigValueWrapper() { delete tt; }
- 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);
+ SwigValueWrapper() : pointer(0) { }
+ SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
+ operator T&() const { return *pointer.ptr; }
+ T *operator&() { return pointer.ptr; }
};
template <typename T> T SwigValueInit() {
#ifndef SWIGUNUSED
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
# define SWIGUNUSED
# endif
# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# 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
# ifdef __cplusplus
# define SWIGUNUSEDPARM(p)
# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif
# define SWIGSTDCALL __stdcall
# else
# define SWIGSTDCALL
-# endif
+# endif
#endif
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
/* -----------------------------------------------------------------------------
* swigrun.swg
*
- * This file contains generic CAPI SWIG runtime support for pointer
+ * This file contains generic C API SWIG runtime support for pointer
* type checking.
* ----------------------------------------------------------------------------- */
/*
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
- creating a static or dynamic library from the swig runtime code.
- In 99.9% of the cases, swig just needs to declare them as 'static'.
-
- But only do this if is strictly necessary, ie, if you have problems
- with your compiler or so.
+ creating a static or dynamic library from the SWIG runtime code.
+ In 99.9% of the cases, SWIG just needs to declare them as 'static'.
+
+ But only do this if strictly necessary, ie, if you have problems
+ with your compiler or suchlike.
*/
#ifndef SWIGRUNTIME
#define SWIG_POINTER_OWN 0x1
-/*
+/*
Flags/methods for returning states.
-
- The swig conversion methods, as ConvertPtr, return and integer
+
+ The SWIG conversion methods, as ConvertPtr, return an integer
that tells if the conversion was successful or not. And if not,
an error code can be returned (see swigerrors.swg for the codes).
-
+
Use the following macros/flags to set or process the returning
states.
-
- In old swig versions, you usually write code as:
+
+ In old versions of SWIG, code such as the following was usually written:
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
// success code
//fail code
}
- Now you can be more explicit as:
+ Now you can be more explicit:
int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
if (SWIG_IsOK(res)) {
// fail code
}
- that seems to be the same, but now you can also do
+ which is the same really, but now you can also do
Type *ptr;
int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
} else {
// fail code
}
-
+
I.e., now SWIG_ConvertPtr can return new objects and you can
identify the case and take care of the deallocation. Of course that
- requires also to SWIG_ConvertPtr to return new result values, as
-
- int SWIG_ConvertPtr(obj, ptr,...) {
- if (<obj is ok>) {
- if (<need new object>) {
- *ptr = <ptr to new allocated object>;
- return SWIG_NEWOBJ;
- } else {
- *ptr = <ptr to old object>;
- return SWIG_OLDOBJ;
- }
- } else {
- return SWIG_BADOBJ;
- }
+ also requires SWIG_ConvertPtr to return new result values, such as
+
+ int SWIG_ConvertPtr(obj, ptr,...) {
+ if (<obj is ok>) {
+ if (<need new object>) {
+ *ptr = <ptr to new allocated object>;
+ return SWIG_NEWOBJ;
+ } else {
+ *ptr = <ptr to old object>;
+ return SWIG_OLDOBJ;
+ }
+ } else {
+ return SWIG_BADOBJ;
+ }
}
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
- swig errors code.
+ SWIG errors code.
Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
allows to return the 'cast rank', for example, if you have this
int fooi(int);
and you call
-
+
food(1) // cast rank '1' (1 -> 1.0)
fooi(1) // cast rank '0'
just use the SWIG_AddCast()/SWIG_CheckState()
+*/
-
- */
-#define SWIG_OK (0)
+#define SWIG_OK (0)
#define SWIG_ERROR (-1)
#define SWIG_IsOK(r) (r >= 0)
-#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
+#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
/* The CastRankLimit says how many bits are used for the cast rank */
#define SWIG_CASTRANKLIMIT (1 << 8)
#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
-
/* Cast-Rank Mode */
#if defined(SWIG_CASTRANK_MODE)
# ifndef SWIG_TypeRank
# endif
# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
-SWIGINTERNINLINE int SWIG_AddCast(int r) {
+SWIGINTERNINLINE int SWIG_AddCast(int r) {
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
}
-SWIGINTERNINLINE int SWIG_CheckState(int r) {
- return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
+SWIGINTERNINLINE int SWIG_CheckState(int r) {
+ return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
}
#else /* no cast-rank mode */
-# define SWIG_AddCast
+# define SWIG_AddCast(r) (r)
# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
#endif
-
-
#include <string.h>
#ifdef __cplusplus
void *clientdata; /* Language specific module data */
} swig_module_info;
-/*
+/*
Compare two type names skipping the space characters, therefore
"char*" == "char *" and "Class<int>" == "Class<int >", etc.
/*
Check type equivalence in a name list like <name1>|<name2>|...
- Return 0 if not equal, 1 if equal
+ Return 0 if equal, -1 if nb < tb, 1 if nb > tb
*/
SWIGRUNTIME int
-SWIG_TypeEquiv(const char *nb, const char *tb) {
- int equiv = 0;
+SWIG_TypeCmp(const char *nb, const char *tb) {
+ int equiv = 1;
const char* te = tb + strlen(tb);
const char* ne = nb;
- while (!equiv && *ne) {
+ while (equiv != 0 && *ne) {
for (nb = ne; *ne; ++ne) {
if (*ne == '|') break;
}
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
+ equiv = SWIG_TypeNameComp(nb, ne, tb, te);
if (*ne) ++ne;
}
return equiv;
/*
Check type equivalence in a name list like <name1>|<name2>|...
- Return 0 if equal, -1 if nb < tb, 1 if nb > tb
+ Return 0 if not equal, 1 if equal
*/
SWIGRUNTIME int
-SWIG_TypeCompare(const char *nb, const char *tb) {
- int equiv = 0;
- const char* te = tb + strlen(tb);
- const char* ne = nb;
- while (!equiv && *ne) {
- for (nb = ne; *ne; ++ne) {
- if (*ne == '|') break;
- }
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
- if (*ne) ++ne;
- }
- return equiv;
+SWIG_TypeEquiv(const char *nb, const char *tb) {
+ return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
}
-
-/* think of this as a c++ template<> or a scheme macro */
-#define SWIG_TypeCheck_Template(comparison, ty) \
- if (ty) { \
- swig_cast_info *iter = ty->cast; \
- while (iter) { \
- if (comparison) { \
- if (iter == ty->cast) return iter; \
- /* Move iter to the top of the linked list */ \
- iter->prev->next = iter->next; \
- if (iter->next) \
- iter->next->prev = iter->prev; \
- iter->next = ty->cast; \
- iter->prev = 0; \
- if (ty->cast) ty->cast->prev = iter; \
- ty->cast = iter; \
- return iter; \
- } \
- iter = iter->next; \
- } \
- } \
- return 0
-
/*
Check the typename
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
- SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
+ if (ty) {
+ swig_cast_info *iter = ty->cast;
+ while (iter) {
+ if (strcmp(iter->type->name, c) == 0) {
+ if (iter == ty->cast)
+ return iter;
+ /* Move iter to the top of the linked list */
+ iter->prev->next = iter->next;
+ if (iter->next)
+ iter->next->prev = iter->prev;
+ iter->next = ty->cast;
+ iter->prev = 0;
+ if (ty->cast) ty->cast->prev = iter;
+ ty->cast = iter;
+ return iter;
+ }
+ iter = iter->next;
+ }
+ }
+ return 0;
}
-/* Same as previous function, except strcmp is replaced with a pointer comparison */
+/*
+ Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
+*/
SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
- SWIG_TypeCheck_Template(iter->type == from, into);
+SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
+ if (ty) {
+ swig_cast_info *iter = ty->cast;
+ while (iter) {
+ if (iter->type == from) {
+ if (iter == ty->cast)
+ return iter;
+ /* Move iter to the top of the linked list */
+ iter->prev->next = iter->next;
+ if (iter->next)
+ iter->next->prev = iter->prev;
+ iter->next = ty->cast;
+ iter->prev = 0;
+ if (ty->cast) ty->cast->prev = iter;
+ ty->cast = iter;
+ return iter;
+ }
+ iter = iter->next;
+ }
+ }
+ return 0;
}
/*
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
}
-/*
+/*
Dynamic pointer casting. Down an inheritance hierarchy
*/
SWIGRUNTIME swig_type_info *
return type->name;
}
-/*
+/*
Set the clientdata field for a type
*/
SWIGRUNTIME void
swig_cast_info *cast = ti->cast;
/* if (ti->clientdata == clientdata) return; */
ti->clientdata = clientdata;
-
+
while (cast) {
if (!cast->converter) {
swig_type_info *tc = cast->type;
if (!tc->clientdata) {
SWIG_TypeClientData(tc, clientdata);
}
- }
+ }
cast = cast->next;
}
}
SWIG_TypeClientData(ti, clientdata);
ti->owndata = 1;
}
-
+
/*
Search for a swig_type_info structure only by mangled name
Search is a O(log #types)
-
- We start searching at module start, and finish searching when start == end.
+
+ We start searching at module start, and finish searching when start == end.
Note: if start == end at the beginning of the function, we go all the way around
the circular list.
*/
SWIGRUNTIME swig_type_info *
-SWIG_MangledTypeQueryModule(swig_module_info *start,
- swig_module_info *end,
+SWIG_MangledTypeQueryModule(swig_module_info *start,
+ swig_module_info *end,
const char *name) {
swig_module_info *iter = start;
do {
register size_t r = iter->size - 1;
do {
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
- register size_t i = (l + r) >> 1;
+ register size_t i = (l + r) >> 1;
const char *iname = iter->types[i]->name;
if (iname) {
register int compare = strcmp(name, iname);
- if (compare == 0) {
+ if (compare == 0) {
return iter->types[i];
} else if (compare < 0) {
if (i) {
Search for a swig_type_info structure for either a mangled name or a human readable name.
It first searches the mangled names of the types, which is a O(log #types)
If a type is not found it then searches the human readable names, which is O(#types).
-
- We start searching at module start, and finish searching when start == end.
+
+ We start searching at module start, and finish searching when start == end.
Note: if start == end at the beginning of the function, we go all the way around
the circular list.
*/
SWIGRUNTIME swig_type_info *
-SWIG_TypeQueryModule(swig_module_info *start,
- swig_module_info *end,
+SWIG_TypeQueryModule(swig_module_info *start,
+ swig_module_info *end,
const char *name) {
/* STEP 1: Search the name field using binary search */
swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
iter = iter->next;
} while (iter != end);
}
-
+
/* neither found a match */
return 0;
}
-/*
+/*
Pack binary data into a string
*/
SWIGRUNTIME char *
return c;
}
-/*
+/*
Unpack binary data from a string
*/
SWIGRUNTIME const char *
uu = ((d - '0') << 4);
else if ((d >= 'a') && (d <= 'f'))
uu = ((d - ('a'-10)) << 4);
- else
+ else
return (char *) 0;
d = *(c++);
if ((d >= '0') && (d <= '9'))
uu |= (d - '0');
else if ((d >= 'a') && (d <= 'f'))
uu |= (d - ('a'-10));
- else
+ else
return (char *) 0;
*u = uu;
}
return c;
}
-/*
+/*
Pack 'void *' into a string buffer.
*/
SWIGRUNTIME char *
#endif
/* Errors in SWIG */
-#define SWIG_UnknownError -1
-#define SWIG_IOError -2
-#define SWIG_RuntimeError -3
-#define SWIG_IndexError -4
-#define SWIG_TypeError -5
-#define SWIG_DivisionByZero -6
-#define SWIG_OverflowError -7
-#define SWIG_SyntaxError -8
-#define SWIG_ValueError -9
+#define SWIG_UnknownError -1
+#define SWIG_IOError -2
+#define SWIG_RuntimeError -3
+#define SWIG_IndexError -4
+#define SWIG_TypeError -5
+#define SWIG_DivisionByZero -6
+#define SWIG_OverflowError -7
+#define SWIG_SyntaxError -8
+#define SWIG_ValueError -9
#define SWIG_SystemError -10
#define SWIG_AttributeError -11
-#define SWIG_MemoryError -12
+#define SWIG_MemoryError -12
#define SWIG_NullReferenceError -13
SWIGINTERN const char*
SWIG_Perl_ErrorType(int code) {
- const char* type = 0;
switch(code) {
case SWIG_MemoryError:
- type = "MemoryError";
- break;
+ return "MemoryError";
case SWIG_IOError:
- type = "IOError";
- break;
+ return "IOError";
case SWIG_RuntimeError:
- type = "RuntimeError";
- break;
+ return "RuntimeError";
case SWIG_IndexError:
- type = "IndexError";
- break;
+ return "IndexError";
case SWIG_TypeError:
- type = "TypeError";
- break;
+ return "TypeError";
case SWIG_DivisionByZero:
- type = "ZeroDivisionError";
- break;
+ return "ZeroDivisionError";
case SWIG_OverflowError:
- type = "OverflowError";
- break;
+ return "OverflowError";
case SWIG_SyntaxError:
- type = "SyntaxError";
- break;
+ return "SyntaxError";
case SWIG_ValueError:
- type = "ValueError";
- break;
+ return "ValueError";
case SWIG_SystemError:
- type = "SystemError";
- break;
+ return "SystemError";
case SWIG_AttributeError:
- type = "AttributeError";
- break;
+ return "AttributeError";
default:
- type = "RuntimeError";
+ return "RuntimeError";
}
- return type;
}
-
-
/* -----------------------------------------------------------------------------
* perlrun.swg
*
/* for raw pointers */
#define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags)
+#define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own)
#define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags)
/* for raw packed data */
/* Runtime API */
-#define SWIG_GetModule(clientdata) SWIG_Perl_GetModule()
+#define SWIG_GetModule(clientdata) SWIG_Perl_GetModule(clientdata)
#define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer)
/* Error manipulation */
#define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code)
-#define SWIG_Error(code, msg) sv_setpvf(GvSV(PL_errgv),"%s %s\n", SWIG_ErrorType(code), msg)
+#define SWIG_Error(code, msg) sv_setpvf(get_sv("@", GV_ADD), "%s %s", SWIG_ErrorType(code), msg)
#define SWIG_fail goto fail
/* Perl-specific SWIG API */
#endif /* MULTIPLICITY */
#endif /* PERL_OBJECT */
-/* Workaround for bug in perl 5.6.x croak and earlier */
-#if (PERL_VERSION < 8)
# ifdef PERL_OBJECT
# define SWIG_croak_null() SWIG_Perl_croak_null(pPerl)
static void SWIG_Perl_croak_null(CPerlObj *pPerl)
static void SWIG_croak_null()
# endif
{
- SV *err=ERRSV;
+ SV *err = get_sv("@", GV_ADD);
# if (PERL_VERSION < 6)
croak("%_", err);
# else
- if (SvOK(err) && !SvROK(err)) croak("%_", err);
- croak(Nullch);
+ if (sv_isobject(err))
+ croak(0);
+ else
+ croak("%s", SvPV_nolen(err));
# endif
}
-#else
-# define SWIG_croak_null() croak(Nullch)
-#endif
/*
}
}
+/* Identical to SWIG_TypeCheck, except for strcmp comparison */
SWIGRUNTIME swig_cast_info *
SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) {
- SWIG_TypeCheck_Template(( (!iter->type->clientdata && (strcmp(iter->type->name, c) == 0))
- || (iter->type->clientdata && (strcmp((char*)iter->type->clientdata, c) == 0))), ty);
+ if (ty) {
+ swig_cast_info *iter = ty->cast;
+ while (iter) {
+ if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) {
+ if (iter == ty->cast)
+ return iter;
+ /* Move iter to the top of the linked list */
+ iter->prev->next = iter->next;
+ if (iter->next)
+ iter->next->prev = iter->prev;
+ iter->next = ty->cast;
+ iter->prev = 0;
+ if (ty->cast) ty->cast->prev = iter;
+ ty->cast = iter;
+ return iter;
+ }
+ iter = iter->next;
+ }
+ }
+ return 0;
}
-
/* Function for getting a pointer value */
SWIGRUNTIME int
-SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) {
+SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags, int *own) {
swig_cast_info *tc;
void *voidptr = (void *)0;
SV *tsv = 0;
+
+ if (own)
+ *own = 0;
+
/* If magical, apply more magic */
if (SvGMAGICAL(sv))
mg_get(sv);
return SWIG_OK;
} else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */
if (!SvROK(sv)) {
- *(ptr) = (void *) 0;
- return SWIG_OK;
+ /* In Perl 5.12 and later, SVt_RV == SVt_IV, so sv could be a valid integer value. */
+ if (SvIOK(sv)) {
+ return SWIG_ERROR;
+ } else {
+ /* NULL pointer (reference to undef). */
+ *(ptr) = (void *) 0;
+ return SWIG_OK;
+ }
} else {
return SWIG_ERROR;
}
{
int newmemory = 0;
*ptr = SWIG_TypeCast(tc,voidptr,&newmemory);
- assert(!newmemory); /* newmemory handling not yet implemented */
+ if (newmemory == SWIG_CAST_NEW_MEMORY) {
+ assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
+ if (own)
+ *own = *own | SWIG_CAST_NEW_MEMORY;
+ }
}
} else {
*ptr = voidptr;
*/
SV *obj = sv;
HV *stash = SvSTASH(SvRV(obj));
- GV *gv = *(GV**) hv_fetch(stash, "OWNER", 5, TRUE);
+ GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
if (isGV(gv)) {
HV *hv = GvHVn(gv);
/*
return SWIG_OK;
}
+SWIGRUNTIME int
+SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) {
+ return SWIG_Perl_ConvertPtrAndOwn(sv, ptr, _t, flags, 0);
+}
+
SWIGRUNTIME void
SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) {
- if (ptr && (flags & SWIG_SHADOW)) {
+ if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) {
SV *self;
SV *obj=newSV(0);
HV *hash=newHV();
HV *stash;
- sv_setref_pv(obj, (char *) SWIG_Perl_TypeProxyName(t), ptr);
+ sv_setref_pv(obj, SWIG_Perl_TypeProxyName(t), ptr);
stash=SvSTASH(SvRV(obj));
if (flags & SWIG_POINTER_OWN) {
HV *hv;
- GV *gv=*(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
+ GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
if (!isGV(gv))
gv_init(gv, stash, "OWNER", 5, FALSE);
hv=GvHVn(gv);
sv_bless(sv, stash);
}
else {
- sv_setref_pv(sv, (char *) SWIG_Perl_TypeProxyName(t), ptr);
+ sv_setref_pv(sv, SWIG_Perl_TypeProxyName(t), ptr);
}
}
/* Magic variable code */
#ifndef PERL_OBJECT
-#define swig_create_magic(s,a,b,c) _swig_create_magic(s,a,b,c)
- #ifndef MULTIPLICITY
- SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *))
- #else
- SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *))
- #endif
+# ifdef __cplusplus
+# define swig_create_magic(s,a,b,c) _swig_create_magic(s,const_cast<char*>(a),b,c)
+# else
+# define swig_create_magic(s,a,b,c) _swig_create_magic(s,(char*)(a),b,c)
+# endif
+# ifndef MULTIPLICITY
+SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *))
+# else
+SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *))
+# endif
#else
# define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c)
SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *))
#endif
{
MAGIC *mg;
- sv_magic(sv,sv,'U',(char *) name,strlen(name));
+ sv_magic(sv,sv,'U',name,strlen(name));
mg = mg_find(sv,'U');
mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL));
mg->mg_virtual->svt_get = (SwigMagicFunc) get;
SWIGRUNTIME swig_module_info *
-SWIG_Perl_GetModule(void) {
+SWIG_Perl_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
static void *type_pointer = (void *)0;
SV *pointer;
#ifdef do_close
#undef do_close
#endif
+#ifdef do_exec
+ #undef do_exec
+#endif
#ifdef scalar
#undef scalar
#endif
#ifdef eof
#undef eof
#endif
-#ifdef bool
- #undef bool
-#endif
#ifdef close
#undef close
#endif
#ifdef open
#undef open
#endif
+#ifdef readdir
+ #undef readdir
+#endif
+#ifdef bind
+ #undef bind
+#endif
+#ifdef access
+ #undef access
+#endif
+#ifdef stat
+ #undef stat
+#endif
+
+#ifdef bool
+ /* Leave if macro is from C99 stdbool.h */
+ #ifndef __bool_true_false_are_defined
+ #undef bool
+ #endif
+#endif
+
#define SWIG_name "freeswitchc::boot_freeswitch"
#define SWIG_prefix "freeswitchc::"
-#define SWIGVERSION 0x010335
+#define SWIGVERSION 0x020012
#define SWIG_VERSION SWIGVERSION
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);
const char *nptr = SvPV_nolen(obj);
if (nptr) {
char *endptr;
- double v = strtod(nptr, &endptr);
+ double v;
+ errno = 0;
+ v = strtod(nptr, &endptr);
if (errno == ERANGE) {
errno = 0;
return SWIG_OverflowError;
SWIGINTERN int
SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val)
{
- if (SvIOK(obj)) {
- if (val) *val = SvIV(obj);
- return SWIG_OK;
+ if (SvUOK(obj)) {
+ UV v = SvUV(obj);
+ if (v <= LONG_MAX) {
+ if (val) *val = v;
+ return SWIG_OK;
+ }
+ return SWIG_OverflowError;
+ } else if (SvIOK(obj)) {
+ IV v = SvIV(obj);
+ if (v >= LONG_MIN && v <= LONG_MAX) {
+ if(val) *val = v;
+ return SWIG_OK;
+ }
+ return SWIG_OverflowError;
} else {
int dispatch = 0;
const char *nptr = SvPV_nolen(obj);
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;
+{
+ return boolSV(value);
}
SWIGINTERNINLINE SV *
SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value)
-{
- SV *obj = sv_newmortal();
- sv_setiv(obj, (IV) value);
- return obj;
+{
+ SV *sv;
+ if (value >= IV_MIN && value <= IV_MAX)
+ sv = newSViv(value);
+ else
+ sv = newSVpvf("%ld", value);
+ return sv_2mortal(sv);
}
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) {
+ UV v = SvUV(obj);
+ if (v <= ULONG_MAX) {
+ if (val) *val = v;
+ return SWIG_OK;
+ }
+ return SWIG_OverflowError;
+ } else if (SvIOK(obj)) {
+ IV v = SvIV(obj);
+ if (v >= 0 && v <= ULONG_MAX) {
if (val) *val = v;
return SWIG_OK;
- } else {
- return SWIG_OverflowError;
}
+ return SWIG_OverflowError;
} else {
int dispatch = 0;
const char *nptr = SvPV_nolen(obj);
SWIGINTERNINLINE SV *
SWIG_From_unsigned_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long value)
-{
- SV *obj = sv_newmortal();
- sv_setuv(obj, (UV) value);
- return obj;
+{
+ SV *sv;
+ if (value <= UV_MAX)
+ sv = newSVuv(value);
+ else
+ sv = newSVpvf("%lu", value);
+ return sv_2mortal(sv);
}
if (val) *val = false;
return SWIG_OK;
} else {
- if (val) *val = SvTRUE(obj) ? true: false;
+ if (val) *val = SvTRUE(obj) ? true : false;
return SWIG_AddCast(SWIG_OK);
}
- return SWIG_TypeError;
}
#ifdef __cplusplus
}
arg2 = reinterpret_cast< char * >(buf2);
setGlobalVariable(arg1,arg2);
-
+ ST(argvi) = sv_newmortal();
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
XS(_wrap_getGlobalVariable) {
{
char *arg1 = (char *) 0 ;
- char *result = 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
arg2 = reinterpret_cast< char * >(buf2);
consoleLog(arg1,arg2);
-
+ ST(argvi) = sv_newmortal();
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
}
arg5 = reinterpret_cast< char * >(buf5);
consoleLog2(arg1,arg2,arg3,arg4,arg5);
-
+ ST(argvi) = sv_newmortal();
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
}
arg1 = reinterpret_cast< char * >(buf1);
consoleCleanLog(arg1);
-
+ ST(argvi) = sv_newmortal();
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
XSRETURN(argvi);
fail:
XS(_wrap_running) {
{
- bool result;
int argvi = 0;
+ bool result;
dXSARGS;
if ((items < 0) || (items > 0)) {
char *arg5 = (char *) NULL ;
char *arg6 = (char *) NULL ;
char *arg7 = (char *) NULL ;
- bool result;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
char *buf7 = 0 ;
int alloc7 = 0 ;
int argvi = 0;
+ bool result;
dXSARGS;
if ((items < 2) || (items > 7)) {
int arg15 ;
int arg16 ;
int arg17 ;
- IVRMenu *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
int val17 ;
int ecode17 = 0 ;
int argvi = 0;
+ IVRMenu *result = 0 ;
dXSARGS;
if ((items < 17) || (items > 17)) {
}
arg1 = reinterpret_cast< IVRMenu * >(argp1);
delete arg1;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
}
arg4 = reinterpret_cast< char * >(buf4);
(arg1)->bindAction(arg2,(char const *)arg3,(char const *)arg4);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
}
arg3 = reinterpret_cast< char * >(buf3);
(arg1)->execute(arg2,(char const *)arg3);
-
+ ST(argvi) = sv_newmortal();
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
XS(_wrap_new_API) {
{
CoreSession *arg1 = (CoreSession *) NULL ;
- API *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ API *result = 0 ;
dXSARGS;
if ((items < 0) || (items > 1)) {
}
arg1 = reinterpret_cast< API * >(argp1);
delete arg1;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
API *arg1 = (API *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) NULL ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf3 = 0 ;
int alloc3 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 2) || (items > 3)) {
{
API *arg1 = (API *) 0 ;
char *arg2 = (char *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 2) || (items > 2)) {
XS(_wrap_API_getTime) {
{
API *arg1 = (API *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
XS(_wrap_input_callback_state_t_function_set) {
{
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_input_callback_state, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_function_set" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_function_set" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "input_callback_state_t_function_set" "', argument " "2"" of type '" "void *""'");
}
if (arg1) (arg1)->function = arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
XS(_wrap_input_callback_state_t_function_get) {
{
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
- void *result = 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ void *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_input_callback_state, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_function_get" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_function_get" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
result = (void *) ((arg1)->function);
ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ;
XS(_wrap_input_callback_state_t_threadState_set) {
{
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_input_callback_state, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_threadState_set" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_threadState_set" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "input_callback_state_t_threadState_set" "', argument " "2"" of type '" "void *""'");
}
if (arg1) (arg1)->threadState = arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
XS(_wrap_input_callback_state_t_threadState_get) {
{
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
- void *result = 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ void *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_input_callback_state, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_threadState_get" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_threadState_get" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
result = (void *) ((arg1)->threadState);
ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ;
XS(_wrap_input_callback_state_t_extra_set) {
{
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_input_callback_state, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_extra_set" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_extra_set" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "input_callback_state_t_extra_set" "', argument " "2"" of type '" "void *""'");
}
if (arg1) (arg1)->extra = arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
XS(_wrap_input_callback_state_t_extra_get) {
{
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
- void *result = 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ void *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_input_callback_state, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_extra_get" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_extra_get" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
result = (void *) ((arg1)->extra);
ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ;
XS(_wrap_input_callback_state_t_funcargs_set) {
{
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_input_callback_state, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_funcargs_set" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_funcargs_set" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "input_callback_state_t_funcargs_set" "', argument " "2"" of type '" "char *""'");
} else {
arg1->funcargs = 0;
}
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
XS(_wrap_input_callback_state_t_funcargs_get) {
{
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
- char *result = 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_input_callback_state, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_funcargs_get" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_funcargs_get" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
result = (char *) ((arg1)->funcargs);
ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
XS(_wrap_new_input_callback_state_t) {
{
- input_callback_state_t *result = 0 ;
int argvi = 0;
+ input_callback_state *result = 0 ;
dXSARGS;
if ((items < 0) || (items > 0)) {
SWIG_croak("Usage: new_input_callback_state_t();");
}
- result = (input_callback_state_t *)new input_callback_state_t();
+ result = (input_callback_state *)new input_callback_state();
ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_input_callback_state, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
XSRETURN(argvi);
fail:
XS(_wrap_delete_input_callback_state_t) {
{
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_input_callback_state, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_input_callback_state_t" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_input_callback_state_t" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
delete arg1;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
}
arg2 = static_cast< char >(val2);
if (arg1) (arg1)->digit = arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
XS(_wrap_DTMF_digit_get) {
{
DTMF *arg1 = (DTMF *) 0 ;
- char result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char result;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
}
if (arg1) (arg1)->duration = arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
XS(_wrap_DTMF_duration_get) {
{
DTMF *arg1 = (DTMF *) 0 ;
- uint32_t result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ uint32_t result;
dXSARGS;
if ((items < 1) || (items > 1)) {
{
char arg1 ;
uint32_t arg2 = (uint32_t) SWITCH_DEFAULT_DTMF_DURATION ;
- DTMF *result = 0 ;
char val1 ;
int ecode1 = 0 ;
void *argp2 ;
int res2 = 0 ;
int argvi = 0;
+ DTMF *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 2)) {
}
arg1 = reinterpret_cast< DTMF * >(argp1);
delete arg1;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
XS(_wrap_new_Stream__SWIG_0) {
{
- Stream *result = 0 ;
int argvi = 0;
+ Stream *result = 0 ;
dXSARGS;
if ((items < 0) || (items > 0)) {
XS(_wrap_new_Stream__SWIG_1) {
{
switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ;
- Stream *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ Stream *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
dispatch:
switch(_index) {
case 1:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_new_Stream__SWIG_0); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_Stream__SWIG_0); return;
case 2:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_new_Stream__SWIG_1); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_Stream__SWIG_1); return;
}
}
}
arg1 = reinterpret_cast< Stream * >(argp1);
delete arg1;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
{
Stream *arg1 = (Stream *) 0 ;
int *arg2 = (int *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 2) || (items > 2)) {
}
arg2 = reinterpret_cast< char * >(buf2);
(arg1)->write((char const *)arg2);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
}
arg3 = static_cast< int >(val3);
(arg1)->raw_write((char const *)arg2,arg3);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XS(_wrap_Stream_get_data) {
{
Stream *arg1 = (Stream *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
arg2 = reinterpret_cast< switch_event_t * >(argp2);
if (arg1) (arg1)->event = arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
XS(_wrap_Event_event_get) {
{
Event *arg1 = (Event *) 0 ;
- switch_event_t *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ switch_event_t *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
} else {
arg1->serialized_string = 0;
}
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
XS(_wrap_Event_serialized_string_get) {
{
Event *arg1 = (Event *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
arg2 = static_cast< int >(val2);
if (arg1) (arg1)->mine = arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
XS(_wrap_Event_mine_get) {
{
Event *arg1 = (Event *) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 1) || (items > 1)) {
{
char *arg1 = (char *) 0 ;
char *arg2 = (char *) NULL ;
- Event *result = 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int argvi = 0;
+ Event *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 2)) {
{
switch_event_t *arg1 = (switch_event_t *) 0 ;
int arg2 = (int) 0 ;
- Event *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int argvi = 0;
+ Event *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 2)) {
dispatch:
switch(_index) {
case 1:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_new_Event__SWIG_1); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_Event__SWIG_1); return;
case 2:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_new_Event__SWIG_0); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_Event__SWIG_0); return;
}
}
}
arg1 = reinterpret_cast< Event * >(argp1);
delete arg1;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) NULL ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf3 = 0 ;
int alloc3 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 2) || (items > 3)) {
{
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) NULL ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 1) || (items > 2)) {
{
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) NULL ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 2)) {
{
Event *arg1 = (Event *) 0 ;
switch_priority_t arg2 = (switch_priority_t) SWITCH_PRIORITY_NORMAL ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
int argvi = 0;
+ bool result;
dXSARGS;
if ((items < 1) || (items > 2)) {
{
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 2) || (items > 2)) {
XS(_wrap_Event_getBody) {
{
Event *arg1 = (Event *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
XS(_wrap_Event_getType) {
{
Event *arg1 = (Event *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
{
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
- bool result;
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)) {
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf3 = 0 ;
int alloc3 = 0 ;
int argvi = 0;
+ bool result;
dXSARGS;
if ((items < 3) || (items > 3)) {
{
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
- bool result;
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)) {
XS(_wrap_Event_fire) {
{
Event *arg1 = (Event *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ bool result;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
arg2 = reinterpret_cast< switch_queue_t * >(argp2);
if (arg1) (arg1)->events = arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
XS(_wrap_EventConsumer_events_get) {
{
EventConsumer *arg1 = (EventConsumer *) 0 ;
- switch_queue_t *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ switch_queue_t *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
}
if (arg1) (arg1)->e_event_id = arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
XS(_wrap_EventConsumer_e_event_id_get) {
{
EventConsumer *arg1 = (EventConsumer *) 0 ;
- switch_event_types_t result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ switch_event_types_t result;
dXSARGS;
if ((items < 1) || (items > 1)) {
} else {
arg1->e_callback = 0;
}
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
XS(_wrap_EventConsumer_e_callback_get) {
{
EventConsumer *arg1 = (EventConsumer *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
} else {
arg1->e_subclass_name = 0;
}
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
XS(_wrap_EventConsumer_e_subclass_name_get) {
{
EventConsumer *arg1 = (EventConsumer *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
} else {
arg1->e_cb_arg = 0;
}
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
XS(_wrap_EventConsumer_e_cb_arg_get) {
{
EventConsumer *arg1 = (EventConsumer *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""enodes""' of type '""switch_event_node_t *[SWITCH_EVENT_ALL+1]""'");
}
}
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
XS(_wrap_EventConsumer_enodes_get) {
{
EventConsumer *arg1 = (EventConsumer *) 0 ;
- switch_event_node_t **result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ switch_event_node_t **result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
}
if (arg1) (arg1)->node_index = arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
XS(_wrap_EventConsumer_node_index_get) {
{
EventConsumer *arg1 = (EventConsumer *) 0 ;
- uint32_t result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ uint32_t result;
dXSARGS;
if ((items < 1) || (items > 1)) {
char *arg1 = (char *) NULL ;
char *arg2 = (char *) "" ;
int arg3 = (int) 5000 ;
- EventConsumer *result = 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
int val3 ;
int ecode3 = 0 ;
int argvi = 0;
+ EventConsumer *result = 0 ;
dXSARGS;
if ((items < 0) || (items > 3)) {
}
arg1 = reinterpret_cast< EventConsumer * >(argp1);
delete arg1;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
EventConsumer *arg1 = (EventConsumer *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) "" ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf3 = 0 ;
int alloc3 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 2) || (items > 3)) {
EventConsumer *arg1 = (EventConsumer *) 0 ;
int arg2 = (int) 0 ;
int arg3 = (int) 0 ;
- Event *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int val3 ;
int ecode3 = 0 ;
int argvi = 0;
+ Event *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 3)) {
}
arg1 = reinterpret_cast< EventConsumer * >(argp1);
(arg1)->cleanup();
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
}
arg1 = reinterpret_cast< CoreSession * >(argp1);
delete arg1;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
}
arg2 = reinterpret_cast< switch_core_session_t * >(argp2);
if (arg1) (arg1)->session = arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
XS(_wrap_CoreSession_session_get) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- switch_core_session_t *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ switch_core_session_t *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
arg2 = reinterpret_cast< switch_channel_t * >(argp2);
if (arg1) (arg1)->channel = arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
XS(_wrap_CoreSession_channel_get) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- switch_channel_t *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ switch_channel_t *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
arg2 = static_cast< unsigned int >(val2);
if (arg1) (arg1)->flags = arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
XS(_wrap_CoreSession_flags_get) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- unsigned int result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ unsigned int result;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
arg2 = static_cast< int >(val2);
if (arg1) (arg1)->allocated = arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
XS(_wrap_CoreSession_allocated_get) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
arg2 = reinterpret_cast< input_callback_state * >(argp2);
if (arg1) (arg1)->cb_state = *arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
XS(_wrap_CoreSession_cb_state_get) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- input_callback_state *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ input_callback_state *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
}
if (arg1) (arg1)->hook_state = arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
XS(_wrap_CoreSession_hook_state_get) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- switch_channel_state_t result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ switch_channel_state_t result;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
}
if (arg1) (arg1)->cause = arg2;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
XS(_wrap_CoreSession_cause_get) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- switch_call_cause_t result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ switch_call_cause_t result;
dXSARGS;
if ((items < 1) || (items > 1)) {
} else {
arg1->uuid = 0;
}
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
XS(_wrap_CoreSession_uuid_get) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
} else {
arg1->tts_name = 0;
}
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
XS(_wrap_CoreSession_tts_name_get) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
} else {
arg1->voice_name = 0;
}
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
XS(_wrap_CoreSession_voice_name_get) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
int arg4 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
int val4 ;
int ecode4 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 4) || (items > 4)) {
XS(_wrap_CoreSession_answer) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 1) || (items > 1)) {
XS(_wrap_CoreSession_preAnswer) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 1) || (items > 1)) {
arg2 = reinterpret_cast< char * >(buf2);
}
(arg1)->hangup((char const *)arg2);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
}
arg1 = reinterpret_cast< CoreSession * >(argp1);
(arg1)->hangupState();
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
}
arg3 = reinterpret_cast< char * >(buf3);
(arg1)->setVariable(arg2,arg3);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CoreSession_setPrivate" "', argument " "3"" of type '" "void *""'");
}
(arg1)->setPrivate(arg2,arg3);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
{
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
- void *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int argvi = 0;
+ void *result = 0 ;
dXSARGS;
if ((items < 2) || (items > 2)) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 2) || (items > 2)) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
- switch_status_t result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int argvi = 0;
+ switch_status_t result;
dXSARGS;
if ((items < 2) || (items > 2)) {
arg6 = reinterpret_cast< char * >(buf6);
}
(arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
arg4 = reinterpret_cast< char * >(buf4);
}
(arg1)->sayPhrase((char const *)arg2,(char const *)arg3,(char const *)arg4);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
XS(_wrap_CoreSession_hangupCause) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
XS(_wrap_CoreSession_getState) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
int arg3 = (int) 0 ;
int arg4 = (int) 0 ;
int arg5 = (int) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
int val5 ;
int ecode5 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 2) || (items > 5)) {
char *arg3 = (char *) 0 ;
int arg4 = (int) 60 ;
switch_state_handler_table_t *arg5 = (switch_state_handler_table_t *) NULL ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 3) || (items > 5)) {
}
arg1 = reinterpret_cast< CoreSession * >(argp1);
(arg1)->destroy();
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
}
arg3 = reinterpret_cast< char * >(buf3);
(arg1)->setDTMFCallback(arg2,arg3);
-
+ ST(argvi) = sv_newmortal();
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
{
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
- int result;
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)) {
}
arg3 = reinterpret_cast< char * >(buf3);
(arg1)->set_tts_parms(arg2,arg3);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
}
arg3 = reinterpret_cast< char * >(buf3);
(arg1)->set_tts_params(arg2,arg3);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
{
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 2) || (items > 2)) {
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
int arg3 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int val3 ;
int ecode3 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 3) || (items > 3)) {
dispatch:
switch(_index) {
case 1:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_CoreSession_collectDigits__SWIG_0); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_CoreSession_collectDigits__SWIG_0); return;
case 2:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_CoreSession_collectDigits__SWIG_1); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_CoreSession_collectDigits__SWIG_1); return;
}
}
int arg2 ;
char *arg3 = (char *) 0 ;
int arg4 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int val4 ;
int ecode4 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 4) || (items > 4)) {
char *arg3 = (char *) 0 ;
int arg4 ;
int arg5 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int val5 ;
int ecode5 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 5) || (items > 5)) {
dispatch:
switch(_index) {
case 1:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_CoreSession_getDigits__SWIG_0); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_CoreSession_getDigits__SWIG_0); return;
case 2:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_CoreSession_getDigits__SWIG_1); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_CoreSession_getDigits__SWIG_1); return;
}
}
char *arg2 = (char *) 0 ;
char *arg3 = (char *) NULL ;
char *arg4 = (char *) NULL ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf4 = 0 ;
int alloc4 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 2) || (items > 4)) {
int arg5 ;
char *arg6 = (char *) 0 ;
int arg7 = (int) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int val7 ;
int ecode7 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 6) || (items > 7)) {
char *arg10 = (char *) NULL ;
int arg11 = (int) 0 ;
char *arg12 = (char *) NULL ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
char *buf12 = 0 ;
int alloc12 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 9) || (items > 12)) {
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
int arg3 = (int) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
int val3 ;
int ecode3 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 2) || (items > 3)) {
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
int arg3 = (int) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int val3 ;
int ecode3 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 2) || (items > 3)) {
XS(_wrap_CoreSession_flushEvents) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 1) || (items > 1)) {
XS(_wrap_CoreSession_flushDigits) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 1) || (items > 1)) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
bool arg2 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
int argvi = 0;
+ int result;
dXSARGS;
if ((items < 2) || (items > 2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_setHangupHook" "', argument " "2"" of type '" "void *""'");
}
(arg1)->setHangupHook(arg2);
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
XS(_wrap_CoreSession_ready) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ bool result;
dXSARGS;
if ((items < 1) || (items > 1)) {
XS(_wrap_CoreSession_bridged) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ bool result;
dXSARGS;
if ((items < 1) || (items > 1)) {
XS(_wrap_CoreSession_answered) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ bool result;
dXSARGS;
if ((items < 1) || (items > 1)) {
XS(_wrap_CoreSession_mediaReady) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ bool result;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
arg2 = reinterpret_cast< CoreSession * >(argp2);
(arg1)->waitForAnswer(arg2);
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
arg3 = reinterpret_cast< char * >(buf3);
}
(arg1)->execute((char const *)arg2,(char const *)arg3);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
}
arg2 = reinterpret_cast< Event * >(argp2);
(arg1)->sendEvent(arg2);
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
}
arg2 = reinterpret_cast< Event * >(argp2);
(arg1)->setEventData(arg2);
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
XS(_wrap_CoreSession_getXMLCDR) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
XS(_wrap_CoreSession_begin_allow_threads) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ bool result;
dXSARGS;
if ((items < 1) || (items > 1)) {
XS(_wrap_CoreSession_end_allow_threads) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ bool result;
dXSARGS;
if ((items < 1) || (items > 1)) {
XS(_wrap_CoreSession_get_uuid) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
XS(_wrap_CoreSession_get_cb_args) {
{
CoreSession *arg1 = (CoreSession *) 0 ;
- switch_input_args_t *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ switch_input_args_t *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoreSession_get_cb_args" "', argument " "1"" of type '" "CoreSession const *""'");
}
arg1 = reinterpret_cast< CoreSession * >(argp1);
- {
- switch_input_args_t const &_result_ref = ((CoreSession const *)arg1)->get_cb_args();
- result = (switch_input_args_t *) &_result_ref;
- }
+ result = (switch_input_args_t *) &((CoreSession const *)arg1)->get_cb_args();
ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_switch_input_args_t, 0 | 0); argvi++ ;
XSRETURN(argvi);
}
arg1 = reinterpret_cast< CoreSession * >(argp1);
(arg1)->check_hangup_hook();
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
CoreSession *arg1 = (CoreSession *) 0 ;
void *arg2 = (void *) 0 ;
switch_input_type_t arg3 ;
- switch_status_t result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
void *argp3 ;
int res3 = 0 ;
int argvi = 0;
+ switch_status_t result;
dXSARGS;
if ((items < 3) || (items > 3)) {
}
arg3 = reinterpret_cast< char * >(buf3);
(arg1)->consoleLog(arg2,arg3);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
}
arg6 = reinterpret_cast< char * >(buf6);
(arg1)->consoleLog2(arg2,arg3,arg4,arg5,arg6);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
}
arg2 = reinterpret_cast< char * >(buf2);
console_log(arg1,arg2);
-
+ ST(argvi) = sv_newmortal();
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
}
arg5 = reinterpret_cast< char * >(buf5);
console_log2(arg1,arg2,arg3,arg4,arg5);
-
+ ST(argvi) = sv_newmortal();
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
}
arg1 = reinterpret_cast< char * >(buf1);
console_clean_log(arg1);
-
+ ST(argvi) = sv_newmortal();
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
XSRETURN(argvi);
fail:
}
arg1 = static_cast< unsigned int >(val1);
switch_msleep(arg1);
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
void *argp2 = 0 ;
int res2 = 0 ;
int argvi = 0;
+ SV *foo;
dXSARGS;
if ((items < 2) || (items > 2)) {
}
arg2 = reinterpret_cast< CoreSession * >(argp2);
bridge(*arg1,*arg2);
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
XS(_wrap_hanguphook) {
{
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
- switch_status_t result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ switch_status_t result;
dXSARGS;
if ((items < 1) || (items > 1)) {
switch_input_type_t arg3 ;
void *arg4 = (void *) 0 ;
unsigned int arg5 ;
- switch_status_t result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
unsigned int val5 ;
int ecode5 = 0 ;
int argvi = 0;
+ switch_status_t result;
dXSARGS;
if ((items < 5) || (items > 5)) {
XS(_wrap_new_Session__SWIG_0) {
{
- PERL::Session *result = 0 ;
int argvi = 0;
- SV *foo;
+ PERL::Session *result = 0 ;
dXSARGS;
-
+
if ((items < 0) || (items > 0)) {
SWIG_croak("Usage: new_Session();");
}
- result = (PERL::Session *)new PERL::Session();
- result->setPERL(my_perl);
- foo = sv_newmortal();
- SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW);
- result->setME(foo);
- ST(argvi) = foo; argvi++ ;
+ result = (PERL::Session *)new PERL::Session();
+ ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
{
char *arg1 = (char *) 0 ;
CoreSession *arg2 = (CoreSession *) 0 ;
- PERL::Session *result = 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int argvi = 0;
- SV *foo;
+ PERL::Session *result = 0 ;
dXSARGS;
if ((items < 2) || (items > 2)) {
XS(_wrap_new_Session__SWIG_2) {
{
char *arg1 = (char *) 0 ;
- PERL::Session *result = 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
int argvi = 0;
- SV *foo;
+ PERL::Session *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Session" "', argument " "1"" of type '" "char *""'");
}
arg1 = reinterpret_cast< char * >(buf1);
- result = (PERL::Session *)new PERL::Session(arg1);
- if (result->allocated) {
- result->setPERL(my_perl);
- foo = get_sv(result->suuid, TRUE);
- SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW);
- result->setME(foo);
- } else {
- foo = sv_newmortal();
- SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW);
- }
- ST(argvi) = foo; argvi++ ;
+ result = (PERL::Session *)new PERL::Session(arg1);
+ ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
-
XSRETURN(argvi);
fail:
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
XS(_wrap_new_Session__SWIG_3) {
{
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
- PERL::Session *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
- SV *foo;
+ PERL::Session *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
arg1 = reinterpret_cast< switch_core_session_t * >(argp1);
result = (PERL::Session *)new PERL::Session(arg1);
- if (result->allocated) {
- result->setPERL(my_perl);
- foo = get_sv(result->suuid, TRUE);
- SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW);
- result->setME(foo);
- } else {
- foo = sv_newmortal();
- SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW);
- }
-
- ST(argvi) = foo; argvi++ ;
-
+ ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
+
XSRETURN(argvi);
fail:
dispatch:
switch(_index) {
case 1:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_new_Session__SWIG_0); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_Session__SWIG_0); return;
case 2:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_new_Session__SWIG_3); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_Session__SWIG_3); return;
case 3:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_new_Session__SWIG_2); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_Session__SWIG_2); return;
case 4:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_new_Session__SWIG_1); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_Session__SWIG_1); return;
}
}
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ SV *foo;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
arg1 = reinterpret_cast< PERL::Session * >(argp1);
delete arg1;
-
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ SV *foo;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
arg1 = reinterpret_cast< PERL::Session * >(argp1);
(arg1)->destroy();
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
XS(_wrap_Session_begin_allow_threads) {
{
PERL::Session *arg1 = (PERL::Session *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ bool result;
dXSARGS;
if ((items < 1) || (items > 1)) {
XS(_wrap_Session_end_allow_threads) {
{
PERL::Session *arg1 = (PERL::Session *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ bool result;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
arg1 = reinterpret_cast< PERL::Session * >(argp1);
(arg1)->check_hangup_hook();
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
PERL::Session *arg1 = (PERL::Session *) 0 ;
void *arg2 = (void *) 0 ;
switch_input_type_t arg3 ;
- switch_status_t result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
void *argp3 ;
int res3 = 0 ;
int argvi = 0;
+ switch_status_t result;
dXSARGS;
if ((items < 3) || (items > 3)) {
arg1 = reinterpret_cast< PERL::Session * >(argp1);
arg2 = ST(1);
(arg1)->setME(arg2);
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
}
arg3 = reinterpret_cast< char * >(buf3);
(arg1)->setInputCallback(arg2,arg3);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
}
arg2 = reinterpret_cast< char * >(buf2);
(arg1)->setInputCallback(arg2);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
}
arg1 = reinterpret_cast< PERL::Session * >(argp1);
(arg1)->setInputCallback();
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
dispatch:
switch(_index) {
case 1:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_Session_setInputCallback__SWIG_2); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_Session_setInputCallback__SWIG_2); return;
case 2:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_Session_setInputCallback__SWIG_1); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_Session_setInputCallback__SWIG_1); return;
case 3:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_Session_setInputCallback__SWIG_0); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_Session_setInputCallback__SWIG_0); return;
}
}
}
arg1 = reinterpret_cast< PERL::Session * >(argp1);
(arg1)->unsetInputCallback();
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
}
arg3 = reinterpret_cast< char * >(buf3);
(arg1)->setHangupHook(arg2,arg3);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
}
arg2 = reinterpret_cast< char * >(buf2);
(arg1)->setHangupHook(arg2);
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
dispatch:
switch(_index) {
case 1:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_Session_setHangupHook__SWIG_1); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_Session_setHangupHook__SWIG_1); return;
case 2:
- ++PL_markstack_ptr; SWIG_CALLXS(_wrap_Session_setHangupHook__SWIG_0); return;
+ PUSHMARK(MARK); SWIG_CALLXS(_wrap_Session_setHangupHook__SWIG_0); return;
}
}
XS(_wrap_Session_ready) {
{
PERL::Session *arg1 = (PERL::Session *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ bool result;
dXSARGS;
if ((items < 1) || (items > 1)) {
} else {
arg1->suuid = 0;
}
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
XS(_wrap_Session_suuid_get) {
{
PERL::Session *arg1 = (PERL::Session *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
} else {
arg1->cb_function = 0;
}
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
XS(_wrap_Session_cb_function_get) {
{
PERL::Session *arg1 = (PERL::Session *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
} else {
arg1->cb_arg = 0;
}
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
XS(_wrap_Session_cb_arg_get) {
{
PERL::Session *arg1 = (PERL::Session *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
} else {
arg1->hangup_func_str = 0;
}
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
XS(_wrap_Session_hangup_func_str_get) {
{
PERL::Session *arg1 = (PERL::Session *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
} else {
arg1->hangup_func_arg = 0;
}
-
+ ST(argvi) = sv_newmortal();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
XSRETURN(argvi);
XS(_wrap_Session_hangup_func_arg_get) {
{
PERL::Session *arg1 = (PERL::Session *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
+ char *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
}
arg2 = reinterpret_cast< PerlInterpreter * >(argp2);
(arg1)->setPERL(arg2);
-
+ ST(argvi) = sv_newmortal();
XSRETURN(argvi);
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
-static void *_p_PERL__SessionTo_p_CoreSession(void *x, int *newmemory) {
+static void *_p_PERL__SessionTo_p_CoreSession(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((CoreSession *) ((PERL::Session *) x));
}
static swig_type_info _swigt__p_API = {"_p_API", "API *", 0, 0, (void*)"freeswitch::API", 0};
};
/* -----------------------------------------------------------------------------
* Type initialization:
- * This problem is tough by the requirement that no dynamic
- * memory is used. Also, since swig_type_info structures store pointers to
+ * This problem is tough by the requirement that no dynamic
+ * memory is used. Also, since swig_type_info structures store pointers to
* swig_cast_info structures and swig_cast_info structures store pointers back
- * to swig_type_info structures, we need some lookup code at initialization.
- * The idea is that swig generates all the structures that are needed.
- * The runtime then collects these partially filled structures.
- * The SWIG_InitializeModule function takes these initial arrays out of
+ * to swig_type_info structures, we need some lookup code at initialization.
+ * The idea is that swig generates all the structures that are needed.
+ * The runtime then collects these partially filled structures.
+ * The SWIG_InitializeModule function takes these initial arrays out of
* swig_module, and does all the lookup, filling in the swig_module.types
* array with the correct data and linking the correct swig_cast_info
* structures together.
*
- * The generated swig_type_info structures are assigned staticly to an initial
+ * The generated swig_type_info structures are assigned staticly to an initial
* array. We just loop through that array, and handle each type individually.
* First we lookup if this type has been already loaded, and if so, use the
* loaded structure instead of the generated one. Then we have to fill in the
* a column is one of the swig_cast_info structures for that type.
* The cast_initial array is actually an array of arrays, because each row has
* a variable number of columns. So to actually build the cast linked list,
- * we find the array of casts associated with the type, and loop through it
+ * we find the array of casts associated with the type, and loop through it
* adding the casts to the list. The one last trick we need to do is making
* sure the type pointer in the swig_cast_info struct is correct.
*
- * First off, we lookup the cast->type name to see if it is already loaded.
+ * First off, we lookup the cast->type name to see if it is already loaded.
* There are three cases to handle:
* 1) If the cast->type has already been loaded AND the type we are adding
* casting info to has not been loaded (it is in this module), THEN we
* replace the cast->type pointer with the type pointer that has already
* been loaded.
- * 2) If BOTH types (the one we are adding casting info to, and the
+ * 2) If BOTH types (the one we are adding casting info to, and the
* cast->type) are loaded, THEN the cast info has already been loaded by
* the previous module so we just ignore it.
* 3) Finally, if cast->type has not already been loaded, then we add that
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) {
/* Initialize the swig_module */
module_head->next = &swig_module;
}
- /* When multiple interpeters are used, a module could have already been initialized in
+ /* When multiple interpreters 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 */
/* Install commands */
for (i = 0; swig_commands[i].name; i++) {
- newXS((char*) swig_commands[i].name,swig_commands[i].wrapper, (char*)__FILE__);
+ /* Casts only needed for Perl < 5.10. */
+#ifdef __cplusplus
+ newXS(const_cast<char*>(swig_commands[i].name), swig_commands[i].wrapper, const_cast<char*>(__FILE__));
+#else
+ newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__);
+#endif
}
/* Install variables */
for (i = 0; swig_variables[i].name; i++) {
SV *sv;
- sv = get_sv((char*) swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI);
+ sv = get_sv(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);
+ swig_create_magic(sv, 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);
+ sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI);
switch(swig_constants[i].type) {
case SWIG_INT:
sv_setiv(sv, (IV) swig_constants[i].lvalue);
sv_setnv(sv, (double) swig_constants[i].dvalue);
break;
case SWIG_STRING:
- sv_setpv(sv, (char *) swig_constants[i].pvalue);
+ sv_setpv(sv, (const char *) swig_constants[i].pvalue);
break;
case SWIG_POINTER:
SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0);
SWIG_TypeClientData(SWIGTYPE_p_IVRMenu, (void*) "freeswitch::IVRMenu");
SWIG_TypeClientData(SWIGTYPE_p_API, (void*) "freeswitch::API");
SWIG_TypeClientData(SWIGTYPE_p_input_callback_state, (void*) "freeswitch::input_callback_state_t");
- /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
+ /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "S_HUP", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(S_HUP)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
- /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
+ /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "S_FREE", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(S_FREE)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
- /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do {
+ /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "S_RDLOCK", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(S_RDLOCK)));
SvREADONLY_on(sv);
# 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.
-# This file is compatible with both classic and new-style classes.
+# Do not make changes to this file unless you know what you are doing--modify
+# the SWIG interface file instead.
+
+
-import _freeswitch
-import new
-new_instancemethod = new.instancemethod
+
+
+from sys import version_info
+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('_freeswitch', [dirname(__file__)])
+ except ImportError:
+ import _freeswitch
+ return _freeswitch
+ if fp is not None:
+ try:
+ _mod = imp.load_module('_freeswitch', fp, pathname, description)
+ finally:
+ fp.close()
+ return _mod
+ _freeswitch = swig_import_helper()
+ del swig_import_helper
+else:
+ import _freeswitch
+del version_info
try:
_swig_property = property
except NameError:
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__ == 'PySwigObject':
+ 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):
+ if (not static):
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
- raise AttributeError,name
+ 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,)
-import types
try:
- _object = types.ObjectType
+ _object = object
_newclass = 1
except AttributeError:
class _object : pass
_newclass = 0
-del types
+
+def setGlobalVariable(*args):
+ return _freeswitch.setGlobalVariable(*args)
setGlobalVariable = _freeswitch.setGlobalVariable
+
+def getGlobalVariable(*args):
+ return _freeswitch.getGlobalVariable(*args)
getGlobalVariable = _freeswitch.getGlobalVariable
+
+def consoleLog(*args):
+ return _freeswitch.consoleLog(*args)
consoleLog = _freeswitch.consoleLog
+
+def consoleLog2(*args):
+ return _freeswitch.consoleLog2(*args)
consoleLog2 = _freeswitch.consoleLog2
+
+def consoleCleanLog(*args):
+ return _freeswitch.consoleCleanLog(*args)
consoleCleanLog = _freeswitch.consoleCleanLog
+
+def running():
+ return _freeswitch.running()
running = _freeswitch.running
+
+def email(*args):
+ return _freeswitch.email(*args)
email = _freeswitch.email
class IVRMenu(_object):
__swig_setmethods__ = {}
except: self.this = this
__swig_destroy__ = _freeswitch.delete_IVRMenu
__del__ = lambda self : None;
- def bindAction(*args): return _freeswitch.IVRMenu_bindAction(*args)
- def execute(*args): return _freeswitch.IVRMenu_execute(*args)
+ def bindAction(self, *args): return _freeswitch.IVRMenu_bindAction(self, *args)
+ def execute(self, *args): return _freeswitch.IVRMenu_execute(self, *args)
IVRMenu_swigregister = _freeswitch.IVRMenu_swigregister
IVRMenu_swigregister(IVRMenu)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, API, name)
__repr__ = _swig_repr
- def __init__(self, *args):
- this = _freeswitch.new_API(*args)
+ def __init__(self, s=None):
+ this = _freeswitch.new_API(s)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _freeswitch.delete_API
__del__ = lambda self : None;
- def execute(*args): return _freeswitch.API_execute(*args)
- def executeString(*args): return _freeswitch.API_executeString(*args)
- def getTime(*args): return _freeswitch.API_getTime(*args)
+ def execute(self, *args): return _freeswitch.API_execute(self, *args)
+ def executeString(self, *args): return _freeswitch.API_executeString(self, *args)
+ def getTime(self): return _freeswitch.API_getTime(self)
API_swigregister = _freeswitch.API_swigregister
API_swigregister(API)
__swig_setmethods__["funcargs"] = _freeswitch.input_callback_state_t_funcargs_set
__swig_getmethods__["funcargs"] = _freeswitch.input_callback_state_t_funcargs_get
if _newclass:funcargs = _swig_property(_freeswitch.input_callback_state_t_funcargs_get, _freeswitch.input_callback_state_t_funcargs_set)
- def __init__(self, *args):
- this = _freeswitch.new_input_callback_state_t(*args)
+ def __init__(self):
+ this = _freeswitch.new_input_callback_state_t()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _freeswitch.delete_input_callback_state_t
except: self.this = this
__swig_destroy__ = _freeswitch.delete_Stream
__del__ = lambda self : None;
- def read(*args): return _freeswitch.Stream_read(*args)
- def write(*args): return _freeswitch.Stream_write(*args)
- def raw_write(*args): return _freeswitch.Stream_raw_write(*args)
- def get_data(*args): return _freeswitch.Stream_get_data(*args)
+ def read(self, *args): return _freeswitch.Stream_read(self, *args)
+ def write(self, *args): return _freeswitch.Stream_write(self, *args)
+ def raw_write(self, *args): return _freeswitch.Stream_raw_write(self, *args)
+ def get_data(self): return _freeswitch.Stream_get_data(self)
Stream_swigregister = _freeswitch.Stream_swigregister
Stream_swigregister(Stream)
except: self.this = this
__swig_destroy__ = _freeswitch.delete_Event
__del__ = lambda self : None;
- def chat_execute(*args): return _freeswitch.Event_chat_execute(*args)
- def chat_send(*args): return _freeswitch.Event_chat_send(*args)
- def serialize(*args): return _freeswitch.Event_serialize(*args)
- def setPriority(*args): return _freeswitch.Event_setPriority(*args)
- def getHeader(*args): return _freeswitch.Event_getHeader(*args)
- def getBody(*args): return _freeswitch.Event_getBody(*args)
- def getType(*args): return _freeswitch.Event_getType(*args)
- def addBody(*args): return _freeswitch.Event_addBody(*args)
- def addHeader(*args): return _freeswitch.Event_addHeader(*args)
- def delHeader(*args): return _freeswitch.Event_delHeader(*args)
- def fire(*args): return _freeswitch.Event_fire(*args)
+ def chat_execute(self, *args): return _freeswitch.Event_chat_execute(self, *args)
+ def chat_send(self, dest_proto=None): return _freeswitch.Event_chat_send(self, dest_proto)
+ def serialize(self, format=None): return _freeswitch.Event_serialize(self, format)
+ def setPriority(self, *args): return _freeswitch.Event_setPriority(self, *args)
+ def getHeader(self, *args): return _freeswitch.Event_getHeader(self, *args)
+ def getBody(self): return _freeswitch.Event_getBody(self)
+ def getType(self): return _freeswitch.Event_getType(self)
+ def addBody(self, *args): return _freeswitch.Event_addBody(self, *args)
+ def addHeader(self, *args): return _freeswitch.Event_addHeader(self, *args)
+ def delHeader(self, *args): return _freeswitch.Event_delHeader(self, *args)
+ def fire(self): return _freeswitch.Event_fire(self)
Event_swigregister = _freeswitch.Event_swigregister
Event_swigregister(Event)
__swig_setmethods__["node_index"] = _freeswitch.EventConsumer_node_index_set
__swig_getmethods__["node_index"] = _freeswitch.EventConsumer_node_index_get
if _newclass:node_index = _swig_property(_freeswitch.EventConsumer_node_index_get, _freeswitch.EventConsumer_node_index_set)
- def __init__(self, *args):
- this = _freeswitch.new_EventConsumer(*args)
+ def __init__(self, event_name=None, subclass_name="", len=5000):
+ this = _freeswitch.new_EventConsumer(event_name, subclass_name, len)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _freeswitch.delete_EventConsumer
__del__ = lambda self : None;
- def bind(*args): return _freeswitch.EventConsumer_bind(*args)
- def pop(*args): return _freeswitch.EventConsumer_pop(*args)
- def cleanup(*args): return _freeswitch.EventConsumer_cleanup(*args)
+ def bind(self, *args): return _freeswitch.EventConsumer_bind(self, *args)
+ def pop(self, block=0, timeout=0): return _freeswitch.EventConsumer_pop(self, block, timeout)
+ def cleanup(self): return _freeswitch.EventConsumer_cleanup(self)
EventConsumer_swigregister = _freeswitch.EventConsumer_swigregister
EventConsumer_swigregister(EventConsumer)
__setattr__ = lambda self, name, value: _swig_setattr(self, CoreSession, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, CoreSession, name)
- def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined"
+ def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _freeswitch.delete_CoreSession
__del__ = lambda self : None;
__swig_setmethods__["voice_name"] = _freeswitch.CoreSession_voice_name_set
__swig_getmethods__["voice_name"] = _freeswitch.CoreSession_voice_name_get
if _newclass:voice_name = _swig_property(_freeswitch.CoreSession_voice_name_get, _freeswitch.CoreSession_voice_name_set)
- def insertFile(*args): return _freeswitch.CoreSession_insertFile(*args)
- def answer(*args): return _freeswitch.CoreSession_answer(*args)
- def preAnswer(*args): return _freeswitch.CoreSession_preAnswer(*args)
- def hangup(*args): return _freeswitch.CoreSession_hangup(*args)
- def hangupState(*args): return _freeswitch.CoreSession_hangupState(*args)
- def setVariable(*args): return _freeswitch.CoreSession_setVariable(*args)
- def setPrivate(*args): return _freeswitch.CoreSession_setPrivate(*args)
- def getPrivate(*args): return _freeswitch.CoreSession_getPrivate(*args)
- def getVariable(*args): return _freeswitch.CoreSession_getVariable(*args)
- def process_callback_result(*args): return _freeswitch.CoreSession_process_callback_result(*args)
- def say(*args): return _freeswitch.CoreSession_say(*args)
- def sayPhrase(*args): return _freeswitch.CoreSession_sayPhrase(*args)
- def hangupCause(*args): return _freeswitch.CoreSession_hangupCause(*args)
- def getState(*args): return _freeswitch.CoreSession_getState(*args)
- def recordFile(*args): return _freeswitch.CoreSession_recordFile(*args)
- def originate(*args): return _freeswitch.CoreSession_originate(*args)
- def destroy(*args): return _freeswitch.CoreSession_destroy(*args)
- def setDTMFCallback(*args): return _freeswitch.CoreSession_setDTMFCallback(*args)
- def speak(*args): return _freeswitch.CoreSession_speak(*args)
- def set_tts_parms(*args): return _freeswitch.CoreSession_set_tts_parms(*args)
- def set_tts_params(*args): return _freeswitch.CoreSession_set_tts_params(*args)
- def collectDigits(*args): return _freeswitch.CoreSession_collectDigits(*args)
- def getDigits(*args): return _freeswitch.CoreSession_getDigits(*args)
- def transfer(*args): return _freeswitch.CoreSession_transfer(*args)
- def read(*args): return _freeswitch.CoreSession_read(*args)
- def playAndGetDigits(*args): return _freeswitch.CoreSession_playAndGetDigits(*args)
- def streamFile(*args): return _freeswitch.CoreSession_streamFile(*args)
- def sleep(*args): return _freeswitch.CoreSession_sleep(*args)
- def flushEvents(*args): return _freeswitch.CoreSession_flushEvents(*args)
- def flushDigits(*args): return _freeswitch.CoreSession_flushDigits(*args)
- def setAutoHangup(*args): return _freeswitch.CoreSession_setAutoHangup(*args)
- def setHangupHook(*args): return _freeswitch.CoreSession_setHangupHook(*args)
- def ready(*args): return _freeswitch.CoreSession_ready(*args)
- def bridged(*args): return _freeswitch.CoreSession_bridged(*args)
- def answered(*args): return _freeswitch.CoreSession_answered(*args)
- def mediaReady(*args): return _freeswitch.CoreSession_mediaReady(*args)
- def waitForAnswer(*args): return _freeswitch.CoreSession_waitForAnswer(*args)
- def execute(*args): return _freeswitch.CoreSession_execute(*args)
- def sendEvent(*args): return _freeswitch.CoreSession_sendEvent(*args)
- def setEventData(*args): return _freeswitch.CoreSession_setEventData(*args)
- def getXMLCDR(*args): return _freeswitch.CoreSession_getXMLCDR(*args)
- def begin_allow_threads(*args): return _freeswitch.CoreSession_begin_allow_threads(*args)
- def end_allow_threads(*args): return _freeswitch.CoreSession_end_allow_threads(*args)
- def get_uuid(*args): return _freeswitch.CoreSession_get_uuid(*args)
- def get_cb_args(*args): return _freeswitch.CoreSession_get_cb_args(*args)
- def check_hangup_hook(*args): return _freeswitch.CoreSession_check_hangup_hook(*args)
- def run_dtmf_callback(*args): return _freeswitch.CoreSession_run_dtmf_callback(*args)
- def consoleLog(*args): return _freeswitch.CoreSession_consoleLog(*args)
- def consoleLog2(*args): return _freeswitch.CoreSession_consoleLog2(*args)
+ def insertFile(self, *args): return _freeswitch.CoreSession_insertFile(self, *args)
+ def answer(self): return _freeswitch.CoreSession_answer(self)
+ def preAnswer(self): return _freeswitch.CoreSession_preAnswer(self)
+ def hangup(self, cause="normal_clearing"): return _freeswitch.CoreSession_hangup(self, cause)
+ def hangupState(self): return _freeswitch.CoreSession_hangupState(self)
+ def setVariable(self, *args): return _freeswitch.CoreSession_setVariable(self, *args)
+ def setPrivate(self, *args): return _freeswitch.CoreSession_setPrivate(self, *args)
+ def getPrivate(self, *args): return _freeswitch.CoreSession_getPrivate(self, *args)
+ def getVariable(self, *args): return _freeswitch.CoreSession_getVariable(self, *args)
+ def process_callback_result(self, *args): return _freeswitch.CoreSession_process_callback_result(self, *args)
+ def say(self, *args): return _freeswitch.CoreSession_say(self, *args)
+ def sayPhrase(self, *args): return _freeswitch.CoreSession_sayPhrase(self, *args)
+ def hangupCause(self): return _freeswitch.CoreSession_hangupCause(self)
+ def getState(self): return _freeswitch.CoreSession_getState(self)
+ def recordFile(self, *args): return _freeswitch.CoreSession_recordFile(self, *args)
+ def originate(self, *args): return _freeswitch.CoreSession_originate(self, *args)
+ def destroy(self): return _freeswitch.CoreSession_destroy(self)
+ def setDTMFCallback(self, *args): return _freeswitch.CoreSession_setDTMFCallback(self, *args)
+ def speak(self, *args): return _freeswitch.CoreSession_speak(self, *args)
+ def set_tts_parms(self, *args): return _freeswitch.CoreSession_set_tts_parms(self, *args)
+ def set_tts_params(self, *args): return _freeswitch.CoreSession_set_tts_params(self, *args)
+ def collectDigits(self, *args): return _freeswitch.CoreSession_collectDigits(self, *args)
+ def getDigits(self, *args): return _freeswitch.CoreSession_getDigits(self, *args)
+ def transfer(self, *args): return _freeswitch.CoreSession_transfer(self, *args)
+ def read(self, *args): return _freeswitch.CoreSession_read(self, *args)
+ def playAndGetDigits(self, *args): return _freeswitch.CoreSession_playAndGetDigits(self, *args)
+ def streamFile(self, *args): return _freeswitch.CoreSession_streamFile(self, *args)
+ def sleep(self, *args): return _freeswitch.CoreSession_sleep(self, *args)
+ def flushEvents(self): return _freeswitch.CoreSession_flushEvents(self)
+ def flushDigits(self): return _freeswitch.CoreSession_flushDigits(self)
+ def setAutoHangup(self, *args): return _freeswitch.CoreSession_setAutoHangup(self, *args)
+ def setHangupHook(self, *args): return _freeswitch.CoreSession_setHangupHook(self, *args)
+ def ready(self): return _freeswitch.CoreSession_ready(self)
+ def bridged(self): return _freeswitch.CoreSession_bridged(self)
+ def answered(self): return _freeswitch.CoreSession_answered(self)
+ def mediaReady(self): return _freeswitch.CoreSession_mediaReady(self)
+ def waitForAnswer(self, *args): return _freeswitch.CoreSession_waitForAnswer(self, *args)
+ def execute(self, *args): return _freeswitch.CoreSession_execute(self, *args)
+ def sendEvent(self, *args): return _freeswitch.CoreSession_sendEvent(self, *args)
+ def setEventData(self, *args): return _freeswitch.CoreSession_setEventData(self, *args)
+ def getXMLCDR(self): return _freeswitch.CoreSession_getXMLCDR(self)
+ def begin_allow_threads(self): return _freeswitch.CoreSession_begin_allow_threads(self)
+ def end_allow_threads(self): return _freeswitch.CoreSession_end_allow_threads(self)
+ def get_uuid(self): return _freeswitch.CoreSession_get_uuid(self)
+ def get_cb_args(self): return _freeswitch.CoreSession_get_cb_args(self)
+ def check_hangup_hook(self): return _freeswitch.CoreSession_check_hangup_hook(self)
+ def run_dtmf_callback(self, *args): return _freeswitch.CoreSession_run_dtmf_callback(self, *args)
+ def consoleLog(self, *args): return _freeswitch.CoreSession_consoleLog(self, *args)
+ def consoleLog2(self, *args): return _freeswitch.CoreSession_consoleLog2(self, *args)
CoreSession_swigregister = _freeswitch.CoreSession_swigregister
CoreSession_swigregister(CoreSession)
+
+def console_log(*args):
+ return _freeswitch.console_log(*args)
console_log = _freeswitch.console_log
+
+def console_log2(*args):
+ return _freeswitch.console_log2(*args)
console_log2 = _freeswitch.console_log2
+
+def console_clean_log(*args):
+ return _freeswitch.console_clean_log(*args)
console_clean_log = _freeswitch.console_clean_log
+
+def msleep(*args):
+ return _freeswitch.msleep(*args)
msleep = _freeswitch.msleep
+
+def bridge(*args):
+ return _freeswitch.bridge(*args)
bridge = _freeswitch.bridge
+
+def hanguphook(*args):
+ return _freeswitch.hanguphook(*args)
hanguphook = _freeswitch.hanguphook
+
+def dtmf_callback(*args):
+ return _freeswitch.dtmf_callback(*args)
dtmf_callback = _freeswitch.dtmf_callback
class Session(CoreSession):
__swig_setmethods__ = {}
except: self.this = this
__swig_destroy__ = _freeswitch.delete_Session
__del__ = lambda self : None;
- def begin_allow_threads(*args): return _freeswitch.Session_begin_allow_threads(*args)
- def end_allow_threads(*args): return _freeswitch.Session_end_allow_threads(*args)
- def check_hangup_hook(*args): return _freeswitch.Session_check_hangup_hook(*args)
- def destroy(*args): return _freeswitch.Session_destroy(*args)
- def run_dtmf_callback(*args): return _freeswitch.Session_run_dtmf_callback(*args)
- def setInputCallback(*args): return _freeswitch.Session_setInputCallback(*args)
- def unsetInputCallback(*args): return _freeswitch.Session_unsetInputCallback(*args)
- def setHangupHook(*args): return _freeswitch.Session_setHangupHook(*args)
- def ready(*args): return _freeswitch.Session_ready(*args)
+ def begin_allow_threads(self): return _freeswitch.Session_begin_allow_threads(self)
+ def end_allow_threads(self): return _freeswitch.Session_end_allow_threads(self)
+ def check_hangup_hook(self): return _freeswitch.Session_check_hangup_hook(self)
+ def destroy(self): return _freeswitch.Session_destroy(self)
+ def run_dtmf_callback(self, *args): return _freeswitch.Session_run_dtmf_callback(self, *args)
+ def setInputCallback(self, *args): return _freeswitch.Session_setInputCallback(self, *args)
+ def unsetInputCallback(self): return _freeswitch.Session_unsetInputCallback(self)
+ def setHangupHook(self, *args): return _freeswitch.Session_setHangupHook(self, *args)
+ def ready(self): return _freeswitch.Session_ready(self)
__swig_setmethods__["cb_function"] = _freeswitch.Session_cb_function_set
__swig_getmethods__["cb_function"] = _freeswitch.Session_cb_function_get
if _newclass:cb_function = _swig_property(_freeswitch.Session_cb_function_get, _freeswitch.Session_cb_function_set)
__swig_setmethods__["hangup_func_arg"] = _freeswitch.Session_hangup_func_arg_set
__swig_getmethods__["hangup_func_arg"] = _freeswitch.Session_hangup_func_arg_get
if _newclass:hangup_func_arg = _swig_property(_freeswitch.Session_hangup_func_arg_get, _freeswitch.Session_hangup_func_arg_set)
- def setPython(*args): return _freeswitch.Session_setPython(*args)
- def setSelf(*args): return _freeswitch.Session_setSelf(*args)
+ def setPython(self, *args): return _freeswitch.Session_setPython(self, *args)
+ def setSelf(self, *args): return _freeswitch.Session_setSelf(self, *args)
Session_swigregister = _freeswitch.Session_swigregister
Session_swigregister(Session)
+# This file is compatible with both classic and new-style classes.
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.35
- *
- * This file is not intended to be easily readable and contains a number of
+ * Version 2.0.12
+ *
+ * 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.
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
* ----------------------------------------------------------------------------- */
#define SWIGPYTHON
#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
+
#ifdef __cplusplus
+/* SwigValueWrapper is described in swig.swg */
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:
- SwigValueWrapper() : tt(0) { }
- SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
- SwigValueWrapper(const T& t) : tt(new T(t)) { }
- ~SwigValueWrapper() { delete tt; }
- 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);
+ SwigValueWrapper() : pointer(0) { }
+ SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
+ operator T&() const { return *pointer.ptr; }
+ T *operator&() { return pointer.ptr; }
};
template <typename T> T SwigValueInit() {
#ifndef SWIGUNUSED
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
# define SWIGUNUSED
# endif
# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# 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
# ifdef __cplusplus
# define SWIGUNUSEDPARM(p)
# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif
# define SWIGSTDCALL __stdcall
# else
# define SWIGSTDCALL
-# endif
+# endif
#endif
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-/* Python.h has to appear first */
-#include <Python.h>
+#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
+/* Use debug wrappers with the Python release dll */
+# undef _DEBUG
+# include <Python.h>
+# define _DEBUG
+#else
+# include <Python.h>
+#endif
/* -----------------------------------------------------------------------------
* swigrun.swg
*
- * This file contains generic CAPI SWIG runtime support for pointer
+ * This file contains generic C API SWIG runtime support for pointer
* type checking.
* ----------------------------------------------------------------------------- */
/*
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
- creating a static or dynamic library from the swig runtime code.
- In 99.9% of the cases, swig just needs to declare them as 'static'.
-
- But only do this if is strictly necessary, ie, if you have problems
- with your compiler or so.
+ creating a static or dynamic library from the SWIG runtime code.
+ In 99.9% of the cases, SWIG just needs to declare them as 'static'.
+
+ But only do this if strictly necessary, ie, if you have problems
+ with your compiler or suchlike.
*/
#ifndef SWIGRUNTIME
#define SWIG_POINTER_OWN 0x1
-/*
+/*
Flags/methods for returning states.
-
- The swig conversion methods, as ConvertPtr, return and integer
+
+ The SWIG conversion methods, as ConvertPtr, return an integer
that tells if the conversion was successful or not. And if not,
an error code can be returned (see swigerrors.swg for the codes).
-
+
Use the following macros/flags to set or process the returning
states.
-
- In old swig versions, you usually write code as:
+
+ In old versions of SWIG, code such as the following was usually written:
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
// success code
//fail code
}
- Now you can be more explicit as:
+ Now you can be more explicit:
int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
if (SWIG_IsOK(res)) {
// fail code
}
- that seems to be the same, but now you can also do
+ which is the same really, but now you can also do
Type *ptr;
int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
} else {
// fail code
}
-
+
I.e., now SWIG_ConvertPtr can return new objects and you can
identify the case and take care of the deallocation. Of course that
- requires also to SWIG_ConvertPtr to return new result values, as
-
- int SWIG_ConvertPtr(obj, ptr,...) {
- if (<obj is ok>) {
- if (<need new object>) {
- *ptr = <ptr to new allocated object>;
- return SWIG_NEWOBJ;
- } else {
- *ptr = <ptr to old object>;
- return SWIG_OLDOBJ;
- }
- } else {
- return SWIG_BADOBJ;
- }
+ also requires SWIG_ConvertPtr to return new result values, such as
+
+ int SWIG_ConvertPtr(obj, ptr,...) {
+ if (<obj is ok>) {
+ if (<need new object>) {
+ *ptr = <ptr to new allocated object>;
+ return SWIG_NEWOBJ;
+ } else {
+ *ptr = <ptr to old object>;
+ return SWIG_OLDOBJ;
+ }
+ } else {
+ return SWIG_BADOBJ;
+ }
}
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
- swig errors code.
+ SWIG errors code.
Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
allows to return the 'cast rank', for example, if you have this
int fooi(int);
and you call
-
+
food(1) // cast rank '1' (1 -> 1.0)
fooi(1) // cast rank '0'
just use the SWIG_AddCast()/SWIG_CheckState()
+*/
-
- */
-#define SWIG_OK (0)
+#define SWIG_OK (0)
#define SWIG_ERROR (-1)
#define SWIG_IsOK(r) (r >= 0)
-#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
+#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
/* The CastRankLimit says how many bits are used for the cast rank */
#define SWIG_CASTRANKLIMIT (1 << 8)
#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
-
/* Cast-Rank Mode */
#if defined(SWIG_CASTRANK_MODE)
# ifndef SWIG_TypeRank
# endif
# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
-SWIGINTERNINLINE int SWIG_AddCast(int r) {
+SWIGINTERNINLINE int SWIG_AddCast(int r) {
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
}
-SWIGINTERNINLINE int SWIG_CheckState(int r) {
- return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
+SWIGINTERNINLINE int SWIG_CheckState(int r) {
+ return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
}
#else /* no cast-rank mode */
-# define SWIG_AddCast
+# define SWIG_AddCast(r) (r)
# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
#endif
-
-
#include <string.h>
#ifdef __cplusplus
void *clientdata; /* Language specific module data */
} swig_module_info;
-/*
+/*
Compare two type names skipping the space characters, therefore
"char*" == "char *" and "Class<int>" == "Class<int >", etc.
/*
Check type equivalence in a name list like <name1>|<name2>|...
- Return 0 if not equal, 1 if equal
+ Return 0 if equal, -1 if nb < tb, 1 if nb > tb
*/
SWIGRUNTIME int
-SWIG_TypeEquiv(const char *nb, const char *tb) {
- int equiv = 0;
+SWIG_TypeCmp(const char *nb, const char *tb) {
+ int equiv = 1;
const char* te = tb + strlen(tb);
const char* ne = nb;
- while (!equiv && *ne) {
+ while (equiv != 0 && *ne) {
for (nb = ne; *ne; ++ne) {
if (*ne == '|') break;
}
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
+ equiv = SWIG_TypeNameComp(nb, ne, tb, te);
if (*ne) ++ne;
}
return equiv;
/*
Check type equivalence in a name list like <name1>|<name2>|...
- Return 0 if equal, -1 if nb < tb, 1 if nb > tb
+ Return 0 if not equal, 1 if equal
*/
SWIGRUNTIME int
-SWIG_TypeCompare(const char *nb, const char *tb) {
- int equiv = 0;
- const char* te = tb + strlen(tb);
- const char* ne = nb;
- while (!equiv && *ne) {
- for (nb = ne; *ne; ++ne) {
- if (*ne == '|') break;
- }
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
- if (*ne) ++ne;
- }
- return equiv;
+SWIG_TypeEquiv(const char *nb, const char *tb) {
+ return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
}
-
-/* think of this as a c++ template<> or a scheme macro */
-#define SWIG_TypeCheck_Template(comparison, ty) \
- if (ty) { \
- swig_cast_info *iter = ty->cast; \
- while (iter) { \
- if (comparison) { \
- if (iter == ty->cast) return iter; \
- /* Move iter to the top of the linked list */ \
- iter->prev->next = iter->next; \
- if (iter->next) \
- iter->next->prev = iter->prev; \
- iter->next = ty->cast; \
- iter->prev = 0; \
- if (ty->cast) ty->cast->prev = iter; \
- ty->cast = iter; \
- return iter; \
- } \
- iter = iter->next; \
- } \
- } \
- return 0
-
/*
Check the typename
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
- SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
+ if (ty) {
+ swig_cast_info *iter = ty->cast;
+ while (iter) {
+ if (strcmp(iter->type->name, c) == 0) {
+ if (iter == ty->cast)
+ return iter;
+ /* Move iter to the top of the linked list */
+ iter->prev->next = iter->next;
+ if (iter->next)
+ iter->next->prev = iter->prev;
+ iter->next = ty->cast;
+ iter->prev = 0;
+ if (ty->cast) ty->cast->prev = iter;
+ ty->cast = iter;
+ return iter;
+ }
+ iter = iter->next;
+ }
+ }
+ return 0;
}
-/* Same as previous function, except strcmp is replaced with a pointer comparison */
+/*
+ Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
+*/
SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
- SWIG_TypeCheck_Template(iter->type == from, into);
+SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
+ if (ty) {
+ swig_cast_info *iter = ty->cast;
+ while (iter) {
+ if (iter->type == from) {
+ if (iter == ty->cast)
+ return iter;
+ /* Move iter to the top of the linked list */
+ iter->prev->next = iter->next;
+ if (iter->next)
+ iter->next->prev = iter->prev;
+ iter->next = ty->cast;
+ iter->prev = 0;
+ if (ty->cast) ty->cast->prev = iter;
+ ty->cast = iter;
+ return iter;
+ }
+ iter = iter->next;
+ }
+ }
+ return 0;
}
/*
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
}
-/*
+/*
Dynamic pointer casting. Down an inheritance hierarchy
*/
SWIGRUNTIME swig_type_info *
return type->name;
}
-/*
+/*
Set the clientdata field for a type
*/
SWIGRUNTIME void
swig_cast_info *cast = ti->cast;
/* if (ti->clientdata == clientdata) return; */
ti->clientdata = clientdata;
-
+
while (cast) {
if (!cast->converter) {
swig_type_info *tc = cast->type;
if (!tc->clientdata) {
SWIG_TypeClientData(tc, clientdata);
}
- }
+ }
cast = cast->next;
}
}
SWIG_TypeClientData(ti, clientdata);
ti->owndata = 1;
}
-
+
/*
Search for a swig_type_info structure only by mangled name
Search is a O(log #types)
-
- We start searching at module start, and finish searching when start == end.
+
+ We start searching at module start, and finish searching when start == end.
Note: if start == end at the beginning of the function, we go all the way around
the circular list.
*/
SWIGRUNTIME swig_type_info *
-SWIG_MangledTypeQueryModule(swig_module_info *start,
- swig_module_info *end,
+SWIG_MangledTypeQueryModule(swig_module_info *start,
+ swig_module_info *end,
const char *name) {
swig_module_info *iter = start;
do {
register size_t r = iter->size - 1;
do {
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
- register size_t i = (l + r) >> 1;
+ register size_t i = (l + r) >> 1;
const char *iname = iter->types[i]->name;
if (iname) {
register int compare = strcmp(name, iname);
- if (compare == 0) {
+ if (compare == 0) {
return iter->types[i];
} else if (compare < 0) {
if (i) {
Search for a swig_type_info structure for either a mangled name or a human readable name.
It first searches the mangled names of the types, which is a O(log #types)
If a type is not found it then searches the human readable names, which is O(#types).
-
- We start searching at module start, and finish searching when start == end.
+
+ We start searching at module start, and finish searching when start == end.
Note: if start == end at the beginning of the function, we go all the way around
the circular list.
*/
SWIGRUNTIME swig_type_info *
-SWIG_TypeQueryModule(swig_module_info *start,
- swig_module_info *end,
+SWIG_TypeQueryModule(swig_module_info *start,
+ swig_module_info *end,
const char *name) {
/* STEP 1: Search the name field using binary search */
swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
iter = iter->next;
} while (iter != end);
}
-
+
/* neither found a match */
return 0;
}
-/*
+/*
Pack binary data into a string
*/
SWIGRUNTIME char *
return c;
}
-/*
+/*
Unpack binary data from a string
*/
SWIGRUNTIME const char *
uu = ((d - '0') << 4);
else if ((d >= 'a') && (d <= 'f'))
uu = ((d - ('a'-10)) << 4);
- else
+ else
return (char *) 0;
d = *(c++);
if ((d >= '0') && (d <= '9'))
uu |= (d - '0');
else if ((d >= 'a') && (d <= 'f'))
uu |= (d - ('a'-10));
- else
+ else
return (char *) 0;
*u = uu;
}
return c;
}
-/*
+/*
Pack 'void *' into a string buffer.
*/
SWIGRUNTIME char *
#endif
/* Errors in SWIG */
-#define SWIG_UnknownError -1
-#define SWIG_IOError -2
-#define SWIG_RuntimeError -3
-#define SWIG_IndexError -4
-#define SWIG_TypeError -5
-#define SWIG_DivisionByZero -6
-#define SWIG_OverflowError -7
-#define SWIG_SyntaxError -8
-#define SWIG_ValueError -9
+#define SWIG_UnknownError -1
+#define SWIG_IOError -2
+#define SWIG_RuntimeError -3
+#define SWIG_IndexError -4
+#define SWIG_TypeError -5
+#define SWIG_DivisionByZero -6
+#define SWIG_OverflowError -7
+#define SWIG_SyntaxError -8
+#define SWIG_ValueError -9
#define SWIG_SystemError -10
#define SWIG_AttributeError -11
-#define SWIG_MemoryError -12
+#define SWIG_MemoryError -12
#define SWIG_NullReferenceError -13
+/* Compatibility macros for Python 3 */
+#if PY_VERSION_HEX >= 0x03000000
+
+#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
+#define PyInt_Check(x) PyLong_Check(x)
+#define PyInt_AsLong(x) PyLong_AsLong(x)
+#define PyInt_FromLong(x) PyLong_FromLong(x)
+#define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
+#define PyString_Check(name) PyBytes_Check(name)
+#define PyString_FromString(x) PyUnicode_FromString(x)
+#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args)
+#define PyString_AsString(str) PyBytes_AsString(str)
+#define PyString_Size(str) PyBytes_Size(str)
+#define PyString_InternFromString(key) PyUnicode_InternFromString(key)
+#define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
+#define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
+#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
+
+#endif
+
+#ifndef Py_TYPE
+# define Py_TYPE(op) ((op)->ob_type)
+#endif
+
+/* SWIG APIs for compatibility of both Python 2 & 3 */
+
+#if PY_VERSION_HEX >= 0x03000000
+# define SWIG_Python_str_FromFormat PyUnicode_FromFormat
+#else
+# define SWIG_Python_str_FromFormat PyString_FromFormat
+#endif
+
+
+/* Warning: This function will allocate a new string in Python 3,
+ * so please call SWIG_Python_str_DelForPy3(x) to free the space.
+ */
+SWIGINTERN char*
+SWIG_Python_str_AsChar(PyObject *str)
+{
+#if PY_VERSION_HEX >= 0x03000000
+ char *cstr;
+ char *newstr;
+ Py_ssize_t len;
+ str = PyUnicode_AsUTF8String(str);
+ PyBytes_AsStringAndSize(str, &cstr, &len);
+ newstr = (char *) malloc(len+1);
+ memcpy(newstr, cstr, len+1);
+ Py_XDECREF(str);
+ return newstr;
+#else
+ return PyString_AsString(str);
+#endif
+}
+
+#if PY_VERSION_HEX >= 0x03000000
+# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
+#else
+# define SWIG_Python_str_DelForPy3(x)
+#endif
+
+
+SWIGINTERN PyObject*
+SWIG_Python_str_FromChar(const char *c)
+{
+#if PY_VERSION_HEX >= 0x03000000
+ return PyUnicode_FromString(c);
+#else
+ return PyString_FromString(c);
+#endif
+}
/* Add PyOS_snprintf for old Pythons */
#if PY_VERSION_HEX < 0x02020000
# define PyObject_GenericGetAttr 0
# endif
#endif
+
/* Py_NotImplemented is defined in 2.1 and up. */
#if PY_VERSION_HEX < 0x02010000
# ifndef Py_NotImplemented
# endif
#endif
-
/* A crude PyString_AsStringAndSize implementation for old Pythons */
#if PY_VERSION_HEX < 0x02010000
# ifndef PyString_AsStringAndSize
# endif
#endif
-
/* PyBool_FromLong for old Pythons */
#if PY_VERSION_HEX < 0x02030000
static
typedef int Py_ssize_t;
# define PY_SSIZE_T_MAX INT_MAX
# define PY_SSIZE_T_MIN INT_MIN
+typedef inquiry lenfunc;
+typedef intargfunc ssizeargfunc;
+typedef intintargfunc ssizessizeargfunc;
+typedef intobjargproc ssizeobjargproc;
+typedef intintobjargproc ssizessizeobjargproc;
+typedef getreadbufferproc readbufferproc;
+typedef getwritebufferproc writebufferproc;
+typedef getsegcountproc segcountproc;
+typedef getcharbufferproc charbufferproc;
+static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
+{
+ long result = 0;
+ PyObject *i = PyNumber_Int(x);
+ if (i) {
+ result = PyInt_AsLong(i);
+ Py_DECREF(i);
+ }
+ return result;
+}
+#endif
+
+#if PY_VERSION_HEX < 0x02050000
+#define PyInt_FromSize_t(x) PyInt_FromLong((long)x)
+#endif
+
+#if PY_VERSION_HEX < 0x02040000
+#define Py_VISIT(op) \
+ do { \
+ if (op) { \
+ int vret = visit((op), arg); \
+ if (vret) \
+ return vret; \
+ } \
+ } while (0)
+#endif
+
+#if PY_VERSION_HEX < 0x02030000
+typedef struct {
+ PyTypeObject type;
+ PyNumberMethods as_number;
+ PyMappingMethods as_mapping;
+ PySequenceMethods as_sequence;
+ PyBufferProcs as_buffer;
+ PyObject *name, *slots;
+} PyHeapTypeObject;
+#endif
+
+#if PY_VERSION_HEX < 0x02030000
+typedef destructor freefunc;
+#endif
+
+#if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \
+ (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \
+ (PY_MAJOR_VERSION > 3))
+# define SWIGPY_USE_CAPSULE
+# define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
+#endif
+
+#if PY_VERSION_HEX < 0x03020000
+#define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
+#define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
#endif
/* -----------------------------------------------------------------------------
if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
if (value) {
+ char *tmp;
PyObject *old_str = PyObject_Str(value);
PyErr_Clear();
Py_XINCREF(type);
- PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
+
+ PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
+ SWIG_Python_str_DelForPy3(tmp);
Py_DECREF(old_str);
Py_DECREF(value);
} else {
}
}
-
-
#if defined(SWIG_PYTHON_NO_THREADS)
# if defined(SWIG_PYTHON_THREADS)
# undef SWIG_PYTHON_THREADS
#ifdef __cplusplus
extern "C" {
-#if 0
-} /* cc-mode */
-#endif
#endif
/* -----------------------------------------------------------------------------
swig_type_info **ptype;
} swig_const_info;
-#ifdef __cplusplus
-#if 0
-{ /* cc-mode */
+
+/* -----------------------------------------------------------------------------
+ * Wrapper of PyInstanceMethod_New() used in Python 3
+ * It is exported to the generated module, used for -fastproxy
+ * ----------------------------------------------------------------------------- */
+#if PY_VERSION_HEX >= 0x03000000
+SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
+{
+ return PyInstanceMethod_New(func);
+}
+#else
+SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
+{
+ return NULL;
+}
#endif
+
+#ifdef __cplusplus
}
#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.
- *
* pyrun.swg
*
* This file contains the runtime support for Python modules
#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
-#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
+
+#ifdef SWIGPYTHON_BUILTIN
+#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
+#else
+#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
+#endif
+
+#define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
+
#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
#define swig_owntype int
/* for C or C++ function pointers */
#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
-#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
+#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
/* for C++ member pointers, ie, member methods */
#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
/* Runtime API */
-#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
+#define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata)
#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
-#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
+#define SWIG_NewClientData(obj) SwigPyClientData_New(obj)
#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
SWIGINTERN void
SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
- PyErr_SetString(errtype, (char *) msg);
+ PyErr_SetString(errtype, msg);
SWIG_PYTHON_THREAD_END_BLOCK;
}
/* Set a constant value */
+#if defined(SWIGPYTHON_BUILTIN)
+
+SWIGINTERN void
+SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
+ PyObject *s = PyString_InternFromString(key);
+ PyList_Append(seq, s);
+ Py_DECREF(s);
+}
+
+SWIGINTERN void
+SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
+#if PY_VERSION_HEX < 0x02030000
+ PyDict_SetItemString(d, (char *)name, obj);
+#else
+ PyDict_SetItemString(d, name, obj);
+#endif
+ Py_DECREF(obj);
+ if (public_interface)
+ SwigPyBuiltin_AddPublicSymbol(public_interface, name);
+}
+
+#else
+
SWIGINTERN void
SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
- PyDict_SetItemString(d, (char*) name, obj);
+#if PY_VERSION_HEX < 0x02030000
+ PyDict_SetItemString(d, (char *)name, obj);
+#else
+ PyDict_SetItemString(d, name, obj);
+#endif
Py_DECREF(obj);
}
+#endif
+
/* Append a value to the result obj */
SWIGINTERN PyObject*
}
}
if (!PyTuple_Check(args)) {
+ if (min <= 1 && max >= 1) {
+ register int i;
+ objs[0] = args;
+ for (i = 1; i < max; ++i) {
+ objs[i] = 0;
+ }
+ return 2;
+ }
PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
return 0;
} else {
#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
+#define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2)
+#define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
+
#ifdef __cplusplus
extern "C" {
-#if 0
-} /* cc-mode */
-#endif
#endif
/* How to access Py_None */
return none;
}
-/* PySwigClientData */
+/* SwigPyClientData */
typedef struct {
PyObject *klass;
PyObject *destroy;
int delargs;
int implicitconv;
-} PySwigClientData;
+ PyTypeObject *pytype;
+} SwigPyClientData;
SWIGRUNTIMEINLINE int
SWIG_Python_CheckImplicit(swig_type_info *ty)
{
- PySwigClientData *data = (PySwigClientData *)ty->clientdata;
+ SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
return data ? data->implicitconv : 0;
}
SWIGRUNTIMEINLINE PyObject *
SWIG_Python_ExceptionType(swig_type_info *desc) {
- PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
+ SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
PyObject *klass = data ? data->klass : 0;
return (klass ? klass : PyExc_RuntimeError);
}
-SWIGRUNTIME PySwigClientData *
-PySwigClientData_New(PyObject* obj)
+SWIGRUNTIME SwigPyClientData *
+SwigPyClientData_New(PyObject* obj)
{
if (!obj) {
return 0;
} else {
- PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
+ SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
/* the klass element */
data->klass = obj;
Py_INCREF(data->klass);
data->delargs = 0;
}
data->implicitconv = 0;
+ data->pytype = 0;
return data;
}
}
SWIGRUNTIME void
-PySwigClientData_Del(PySwigClientData* data)
-{
+SwigPyClientData_Del(SwigPyClientData *data) {
Py_XDECREF(data->newraw);
Py_XDECREF(data->newargs);
Py_XDECREF(data->destroy);
}
-/* =============== PySwigObject =====================*/
+/* =============== SwigPyObject =====================*/
typedef struct {
PyObject_HEAD
swig_type_info *ty;
int own;
PyObject *next;
-} PySwigObject;
+#ifdef SWIGPYTHON_BUILTIN
+ PyObject *dict;
+#endif
+} SwigPyObject;
SWIGRUNTIME PyObject *
-PySwigObject_long(PySwigObject *v)
+SwigPyObject_long(SwigPyObject *v)
{
return PyLong_FromVoidPtr(v->ptr);
}
SWIGRUNTIME PyObject *
-PySwigObject_format(const char* fmt, PySwigObject *v)
+SwigPyObject_format(const char* fmt, SwigPyObject *v)
{
PyObject *res = NULL;
PyObject *args = PyTuple_New(1);
if (args) {
- if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
- PyObject *ofmt = PyString_FromString(fmt);
+ if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
+ PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
if (ofmt) {
+#if PY_VERSION_HEX >= 0x03000000
+ res = PyUnicode_Format(ofmt,args);
+#else
res = PyString_Format(ofmt,args);
+#endif
Py_DECREF(ofmt);
}
Py_DECREF(args);
}
SWIGRUNTIME PyObject *
-PySwigObject_oct(PySwigObject *v)
+SwigPyObject_oct(SwigPyObject *v)
{
- return PySwigObject_format("%o",v);
+ return SwigPyObject_format("%o",v);
}
SWIGRUNTIME PyObject *
-PySwigObject_hex(PySwigObject *v)
+SwigPyObject_hex(SwigPyObject *v)
{
- return PySwigObject_format("%x",v);
+ return SwigPyObject_format("%x",v);
}
SWIGRUNTIME PyObject *
#ifdef METH_NOARGS
-PySwigObject_repr(PySwigObject *v)
+SwigPyObject_repr(SwigPyObject *v)
#else
-PySwigObject_repr(PySwigObject *v, PyObject *args)
+SwigPyObject_repr(SwigPyObject *v, PyObject *args)
#endif
{
const char *name = SWIG_TypePrettyName(v->ty);
- PyObject *hex = PySwigObject_hex(v);
- PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
- Py_DECREF(hex);
+ PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
if (v->next) {
-#ifdef METH_NOARGS
- PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
-#else
- PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
-#endif
+# ifdef METH_NOARGS
+ PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
+# else
+ PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
+# endif
+# if PY_VERSION_HEX >= 0x03000000
+ PyObject *joined = PyUnicode_Concat(repr, nrep);
+ Py_DecRef(repr);
+ Py_DecRef(nrep);
+ repr = joined;
+# else
PyString_ConcatAndDel(&repr,nrep);
+# endif
}
return repr;
}
SWIGRUNTIME int
-PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
+SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
{
-#ifdef METH_NOARGS
- PyObject *repr = PySwigObject_repr(v);
-#else
- PyObject *repr = PySwigObject_repr(v, NULL);
-#endif
- if (repr) {
- fputs(PyString_AsString(repr), fp);
- Py_DECREF(repr);
- return 0;
- } else {
- return 1;
- }
+ void *i = v->ptr;
+ void *j = w->ptr;
+ return (i < j) ? -1 : ((i > j) ? 1 : 0);
}
-SWIGRUNTIME PyObject *
-PySwigObject_str(PySwigObject *v)
+/* Added for Python 3.x, would it also be useful for Python 2.x? */
+SWIGRUNTIME PyObject*
+SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
{
- char result[SWIG_BUFFER_SIZE];
- return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
- PyString_FromString(result) : 0;
+ PyObject* res;
+ if( op != Py_EQ && op != Py_NE ) {
+ Py_INCREF(Py_NotImplemented);
+ return Py_NotImplemented;
+ }
+ res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
+ return res;
}
-SWIGRUNTIME int
-PySwigObject_compare(PySwigObject *v, PySwigObject *w)
-{
- void *i = v->ptr;
- void *j = w->ptr;
- return (i < j) ? -1 : ((i > j) ? 1 : 0);
-}
-SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
+SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);
+#ifdef SWIGPYTHON_BUILTIN
+static swig_type_info *SwigPyObject_stype = 0;
+SWIGRUNTIME PyTypeObject*
+SwigPyObject_type(void) {
+ SwigPyClientData *cd;
+ assert(SwigPyObject_stype);
+ cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
+ assert(cd);
+ assert(cd->pytype);
+ return cd->pytype;
+}
+#else
SWIGRUNTIME PyTypeObject*
-PySwigObject_type(void) {
- static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
+SwigPyObject_type(void) {
+ static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
return type;
}
+#endif
SWIGRUNTIMEINLINE int
-PySwigObject_Check(PyObject *op) {
- return ((op)->ob_type == PySwigObject_type())
- || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
+SwigPyObject_Check(PyObject *op) {
+#ifdef SWIGPYTHON_BUILTIN
+ PyTypeObject *target_tp = SwigPyObject_type();
+ if (PyType_IsSubtype(op->ob_type, target_tp))
+ return 1;
+ return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
+#else
+ return (Py_TYPE(op) == SwigPyObject_type())
+ || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
+#endif
}
SWIGRUNTIME PyObject *
-PySwigObject_New(void *ptr, swig_type_info *ty, int own);
+SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
SWIGRUNTIME void
-PySwigObject_dealloc(PyObject *v)
+SwigPyObject_dealloc(PyObject *v)
{
- PySwigObject *sobj = (PySwigObject *) v;
+ SwigPyObject *sobj = (SwigPyObject *) v;
PyObject *next = sobj->next;
if (sobj->own == SWIG_POINTER_OWN) {
swig_type_info *ty = sobj->ty;
- PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
+ SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
PyObject *destroy = data ? data->destroy : 0;
if (destroy) {
/* destroy is always a VARARGS method */
PyObject *res;
if (data->delargs) {
- /* we need to create a temporal object to carry the destroy operation */
- PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
+ /* we need to create a temporary object to carry the destroy operation */
+ PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
res = SWIG_Python_CallFunctor(destroy, tmp);
Py_DECREF(tmp);
} else {
}
SWIGRUNTIME PyObject*
-PySwigObject_append(PyObject* v, PyObject* next)
+SwigPyObject_append(PyObject* v, PyObject* next)
{
- PySwigObject *sobj = (PySwigObject *) v;
+ SwigPyObject *sobj = (SwigPyObject *) v;
#ifndef METH_O
PyObject *tmp = 0;
if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
next = tmp;
#endif
- if (!PySwigObject_Check(next)) {
+ if (!SwigPyObject_Check(next)) {
return NULL;
}
sobj->next = next;
SWIGRUNTIME PyObject*
#ifdef METH_NOARGS
-PySwigObject_next(PyObject* v)
+SwigPyObject_next(PyObject* v)
#else
-PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
+SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
#endif
{
- PySwigObject *sobj = (PySwigObject *) v;
+ SwigPyObject *sobj = (SwigPyObject *) v;
if (sobj->next) {
Py_INCREF(sobj->next);
return sobj->next;
SWIGINTERN PyObject*
#ifdef METH_NOARGS
-PySwigObject_disown(PyObject *v)
+SwigPyObject_disown(PyObject *v)
#else
-PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
+SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
#endif
{
- PySwigObject *sobj = (PySwigObject *)v;
+ SwigPyObject *sobj = (SwigPyObject *)v;
sobj->own = 0;
return SWIG_Py_Void();
}
SWIGINTERN PyObject*
#ifdef METH_NOARGS
-PySwigObject_acquire(PyObject *v)
+SwigPyObject_acquire(PyObject *v)
#else
-PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
+SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
#endif
{
- PySwigObject *sobj = (PySwigObject *)v;
+ SwigPyObject *sobj = (SwigPyObject *)v;
sobj->own = SWIG_POINTER_OWN;
return SWIG_Py_Void();
}
SWIGINTERN PyObject*
-PySwigObject_own(PyObject *v, PyObject *args)
+SwigPyObject_own(PyObject *v, PyObject *args)
{
PyObject *val = 0;
#if (PY_VERSION_HEX < 0x02020000)
if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
-#else
+#elif (PY_VERSION_HEX < 0x02050000)
if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
+#else
+ if (!PyArg_UnpackTuple(args, "own", 0, 1, &val))
#endif
{
return NULL;
}
else
{
- PySwigObject *sobj = (PySwigObject *)v;
+ SwigPyObject *sobj = (SwigPyObject *)v;
PyObject *obj = PyBool_FromLong(sobj->own);
if (val) {
#ifdef METH_NOARGS
if (PyObject_IsTrue(val)) {
- PySwigObject_acquire(v);
+ SwigPyObject_acquire(v);
} else {
- PySwigObject_disown(v);
+ SwigPyObject_disown(v);
}
#else
if (PyObject_IsTrue(val)) {
- PySwigObject_acquire(v,args);
+ SwigPyObject_acquire(v,args);
} else {
- PySwigObject_disown(v,args);
+ SwigPyObject_disown(v,args);
}
#endif
}
#ifdef METH_O
static PyMethodDef
swigobject_methods[] = {
- {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
- {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
- {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
- {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
- {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
- {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
+ {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
+ {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"},
+ {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
+ {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"},
+ {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
+ {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"},
{0, 0, 0, 0}
};
#else
static PyMethodDef
swigobject_methods[] = {
- {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
- {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
- {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
- {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
- {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
- {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
+ {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
+ {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
+ {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
+ {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
+ {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
+ {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"},
{0, 0, 0, 0}
};
#endif
#if PY_VERSION_HEX < 0x02020000
SWIGINTERN PyObject *
-PySwigObject_getattr(PySwigObject *sobj,char *name)
+SwigPyObject_getattr(SwigPyObject *sobj,char *name)
{
return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
}
#endif
SWIGRUNTIME PyTypeObject*
-_PySwigObject_type(void) {
+SwigPyObject_TypeOnce(void) {
static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
-
- static PyNumberMethods PySwigObject_as_number = {
+
+ static PyNumberMethods SwigPyObject_as_number = {
(binaryfunc)0, /*nb_add*/
(binaryfunc)0, /*nb_subtract*/
(binaryfunc)0, /*nb_multiply*/
+ /* nb_divide removed in Python 3 */
+#if PY_VERSION_HEX < 0x03000000
(binaryfunc)0, /*nb_divide*/
+#endif
(binaryfunc)0, /*nb_remainder*/
(binaryfunc)0, /*nb_divmod*/
(ternaryfunc)0,/*nb_power*/
0, /*nb_and*/
0, /*nb_xor*/
0, /*nb_or*/
- (coercion)0, /*nb_coerce*/
- (unaryfunc)PySwigObject_long, /*nb_int*/
- (unaryfunc)PySwigObject_long, /*nb_long*/
+#if PY_VERSION_HEX < 0x03000000
+ 0, /*nb_coerce*/
+#endif
+ (unaryfunc)SwigPyObject_long, /*nb_int*/
+#if PY_VERSION_HEX < 0x03000000
+ (unaryfunc)SwigPyObject_long, /*nb_long*/
+#else
+ 0, /*nb_reserved*/
+#endif
(unaryfunc)0, /*nb_float*/
- (unaryfunc)PySwigObject_oct, /*nb_oct*/
- (unaryfunc)PySwigObject_hex, /*nb_hex*/
-#if PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
+#if PY_VERSION_HEX < 0x03000000
+ (unaryfunc)SwigPyObject_oct, /*nb_oct*/
+ (unaryfunc)SwigPyObject_hex, /*nb_hex*/
+#endif
+#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
+#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
#endif
};
- static PyTypeObject pyswigobject_type;
+ static PyTypeObject swigpyobject_type;
static int type_init = 0;
if (!type_init) {
- const PyTypeObject tmp
- = {
- PyObject_HEAD_INIT(NULL)
- 0, /* ob_size */
- (char *)"PySwigObject", /* tp_name */
- sizeof(PySwigObject), /* tp_basicsize */
- 0, /* tp_itemsize */
- (destructor)PySwigObject_dealloc, /* tp_dealloc */
- (printfunc)PySwigObject_print, /* tp_print */
+ const PyTypeObject tmp = {
+ /* PyObject header changed in Python 3 */
+#if PY_VERSION_HEX >= 0x03000000
+ PyVarObject_HEAD_INIT(NULL, 0)
+#else
+ PyObject_HEAD_INIT(NULL)
+ 0, /* ob_size */
+#endif
+ (char *)"SwigPyObject", /* tp_name */
+ sizeof(SwigPyObject), /* tp_basicsize */
+ 0, /* tp_itemsize */
+ (destructor)SwigPyObject_dealloc, /* tp_dealloc */
+ 0, /* tp_print */
#if PY_VERSION_HEX < 0x02020000
- (getattrfunc)PySwigObject_getattr, /* tp_getattr */
+ (getattrfunc)SwigPyObject_getattr, /* tp_getattr */
+#else
+ (getattrfunc)0, /* tp_getattr */
+#endif
+ (setattrfunc)0, /* tp_setattr */
+#if PY_VERSION_HEX >= 0x03000000
+ 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
#else
- (getattrfunc)0, /* tp_getattr */
-#endif
- (setattrfunc)0, /* tp_setattr */
- (cmpfunc)PySwigObject_compare, /* tp_compare */
- (reprfunc)PySwigObject_repr, /* tp_repr */
- &PySwigObject_as_number, /* tp_as_number */
- 0, /* tp_as_sequence */
- 0, /* tp_as_mapping */
- (hashfunc)0, /* tp_hash */
- (ternaryfunc)0, /* tp_call */
- (reprfunc)PySwigObject_str, /* tp_str */
- PyObject_GenericGetAttr, /* tp_getattro */
- 0, /* tp_setattro */
- 0, /* tp_as_buffer */
- Py_TPFLAGS_DEFAULT, /* tp_flags */
- swigobject_doc, /* tp_doc */
- 0, /* tp_traverse */
- 0, /* tp_clear */
- 0, /* tp_richcompare */
- 0, /* tp_weaklistoffset */
+ (cmpfunc)SwigPyObject_compare, /* tp_compare */
+#endif
+ (reprfunc)SwigPyObject_repr, /* tp_repr */
+ &SwigPyObject_as_number, /* tp_as_number */
+ 0, /* tp_as_sequence */
+ 0, /* tp_as_mapping */
+ (hashfunc)0, /* tp_hash */
+ (ternaryfunc)0, /* tp_call */
+ 0, /* tp_str */
+ PyObject_GenericGetAttr, /* tp_getattro */
+ 0, /* tp_setattro */
+ 0, /* tp_as_buffer */
+ Py_TPFLAGS_DEFAULT, /* tp_flags */
+ swigobject_doc, /* tp_doc */
+ 0, /* tp_traverse */
+ 0, /* tp_clear */
+ (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
+ 0, /* tp_weaklistoffset */
#if PY_VERSION_HEX >= 0x02020000
- 0, /* tp_iter */
- 0, /* tp_iternext */
- swigobject_methods, /* tp_methods */
- 0, /* tp_members */
- 0, /* tp_getset */
- 0, /* tp_base */
- 0, /* tp_dict */
- 0, /* tp_descr_get */
- 0, /* tp_descr_set */
- 0, /* tp_dictoffset */
- 0, /* tp_init */
- 0, /* tp_alloc */
- 0, /* tp_new */
- 0, /* tp_free */
- 0, /* tp_is_gc */
- 0, /* tp_bases */
- 0, /* tp_mro */
- 0, /* tp_cache */
- 0, /* tp_subclasses */
- 0, /* tp_weaklist */
+ 0, /* tp_iter */
+ 0, /* tp_iternext */
+ swigobject_methods, /* tp_methods */
+ 0, /* tp_members */
+ 0, /* tp_getset */
+ 0, /* tp_base */
+ 0, /* tp_dict */
+ 0, /* tp_descr_get */
+ 0, /* tp_descr_set */
+ 0, /* tp_dictoffset */
+ 0, /* tp_init */
+ 0, /* tp_alloc */
+ 0, /* tp_new */
+ 0, /* tp_free */
+ 0, /* tp_is_gc */
+ 0, /* tp_bases */
+ 0, /* tp_mro */
+ 0, /* tp_cache */
+ 0, /* tp_subclasses */
+ 0, /* tp_weaklist */
#endif
#if PY_VERSION_HEX >= 0x02030000
- 0, /* tp_del */
+ 0, /* tp_del */
+#endif
+#if PY_VERSION_HEX >= 0x02060000
+ 0, /* tp_version */
#endif
#ifdef COUNT_ALLOCS
- 0,0,0,0 /* tp_alloc -> tp_next */
+ 0,0,0,0 /* tp_alloc -> tp_next */
#endif
- };
- pyswigobject_type = tmp;
- pyswigobject_type.ob_type = &PyType_Type;
+ };
+ swigpyobject_type = tmp;
type_init = 1;
+#if PY_VERSION_HEX < 0x02020000
+ swigpyobject_type.ob_type = &PyType_Type;
+#else
+ if (PyType_Ready(&swigpyobject_type) < 0)
+ return NULL;
+#endif
}
- return &pyswigobject_type;
+ return &swigpyobject_type;
}
SWIGRUNTIME PyObject *
-PySwigObject_New(void *ptr, swig_type_info *ty, int own)
+SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
{
- PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
+ SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
if (sobj) {
sobj->ptr = ptr;
sobj->ty = ty;
void *pack;
swig_type_info *ty;
size_t size;
-} PySwigPacked;
+} SwigPyPacked;
SWIGRUNTIME int
-PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
+SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
{
char result[SWIG_BUFFER_SIZE];
fputs("<Swig Packed ", fp);
}
SWIGRUNTIME PyObject *
-PySwigPacked_repr(PySwigPacked *v)
+SwigPyPacked_repr(SwigPyPacked *v)
{
char result[SWIG_BUFFER_SIZE];
if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
- return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
+ return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
} else {
- return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
+ return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
}
}
SWIGRUNTIME PyObject *
-PySwigPacked_str(PySwigPacked *v)
+SwigPyPacked_str(SwigPyPacked *v)
{
char result[SWIG_BUFFER_SIZE];
if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
- return PyString_FromFormat("%s%s", result, v->ty->name);
+ return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
} else {
- return PyString_FromString(v->ty->name);
+ return SWIG_Python_str_FromChar(v->ty->name);
}
}
SWIGRUNTIME int
-PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
+SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
{
size_t i = v->size;
size_t j = w->size;
return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
}
-SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
+SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
SWIGRUNTIME PyTypeObject*
-PySwigPacked_type(void) {
- static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
+SwigPyPacked_type(void) {
+ static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
return type;
}
SWIGRUNTIMEINLINE int
-PySwigPacked_Check(PyObject *op) {
- return ((op)->ob_type == _PySwigPacked_type())
- || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
+SwigPyPacked_Check(PyObject *op) {
+ return ((op)->ob_type == SwigPyPacked_TypeOnce())
+ || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
}
SWIGRUNTIME void
-PySwigPacked_dealloc(PyObject *v)
+SwigPyPacked_dealloc(PyObject *v)
{
- if (PySwigPacked_Check(v)) {
- PySwigPacked *sobj = (PySwigPacked *) v;
+ if (SwigPyPacked_Check(v)) {
+ SwigPyPacked *sobj = (SwigPyPacked *) v;
free(sobj->pack);
}
PyObject_DEL(v);
}
SWIGRUNTIME PyTypeObject*
-_PySwigPacked_type(void) {
+SwigPyPacked_TypeOnce(void) {
static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
- static PyTypeObject pyswigpacked_type;
- static int type_init = 0;
+ static PyTypeObject swigpypacked_type;
+ static int type_init = 0;
if (!type_init) {
- const PyTypeObject tmp
- = {
- PyObject_HEAD_INIT(NULL)
- 0, /* ob_size */
- (char *)"PySwigPacked", /* tp_name */
- sizeof(PySwigPacked), /* tp_basicsize */
- 0, /* tp_itemsize */
- (destructor)PySwigPacked_dealloc, /* tp_dealloc */
- (printfunc)PySwigPacked_print, /* tp_print */
- (getattrfunc)0, /* tp_getattr */
- (setattrfunc)0, /* tp_setattr */
- (cmpfunc)PySwigPacked_compare, /* tp_compare */
- (reprfunc)PySwigPacked_repr, /* tp_repr */
- 0, /* tp_as_number */
- 0, /* tp_as_sequence */
- 0, /* tp_as_mapping */
- (hashfunc)0, /* tp_hash */
- (ternaryfunc)0, /* tp_call */
- (reprfunc)PySwigPacked_str, /* tp_str */
- PyObject_GenericGetAttr, /* tp_getattro */
- 0, /* tp_setattro */
- 0, /* tp_as_buffer */
- Py_TPFLAGS_DEFAULT, /* tp_flags */
- swigpacked_doc, /* tp_doc */
- 0, /* tp_traverse */
- 0, /* tp_clear */
- 0, /* tp_richcompare */
- 0, /* tp_weaklistoffset */
+ const PyTypeObject tmp = {
+ /* PyObject header changed in Python 3 */
+#if PY_VERSION_HEX>=0x03000000
+ PyVarObject_HEAD_INIT(NULL, 0)
+#else
+ PyObject_HEAD_INIT(NULL)
+ 0, /* ob_size */
+#endif
+ (char *)"SwigPyPacked", /* tp_name */
+ sizeof(SwigPyPacked), /* tp_basicsize */
+ 0, /* tp_itemsize */
+ (destructor)SwigPyPacked_dealloc, /* tp_dealloc */
+ (printfunc)SwigPyPacked_print, /* tp_print */
+ (getattrfunc)0, /* tp_getattr */
+ (setattrfunc)0, /* tp_setattr */
+#if PY_VERSION_HEX>=0x03000000
+ 0, /* tp_reserved in 3.0.1 */
+#else
+ (cmpfunc)SwigPyPacked_compare, /* tp_compare */
+#endif
+ (reprfunc)SwigPyPacked_repr, /* tp_repr */
+ 0, /* tp_as_number */
+ 0, /* tp_as_sequence */
+ 0, /* tp_as_mapping */
+ (hashfunc)0, /* tp_hash */
+ (ternaryfunc)0, /* tp_call */
+ (reprfunc)SwigPyPacked_str, /* tp_str */
+ PyObject_GenericGetAttr, /* tp_getattro */
+ 0, /* tp_setattro */
+ 0, /* tp_as_buffer */
+ Py_TPFLAGS_DEFAULT, /* tp_flags */
+ swigpacked_doc, /* tp_doc */
+ 0, /* tp_traverse */
+ 0, /* tp_clear */
+ 0, /* tp_richcompare */
+ 0, /* tp_weaklistoffset */
#if PY_VERSION_HEX >= 0x02020000
- 0, /* tp_iter */
- 0, /* tp_iternext */
- 0, /* tp_methods */
- 0, /* tp_members */
- 0, /* tp_getset */
- 0, /* tp_base */
- 0, /* tp_dict */
- 0, /* tp_descr_get */
- 0, /* tp_descr_set */
- 0, /* tp_dictoffset */
- 0, /* tp_init */
- 0, /* tp_alloc */
- 0, /* tp_new */
- 0, /* tp_free */
- 0, /* tp_is_gc */
- 0, /* tp_bases */
- 0, /* tp_mro */
- 0, /* tp_cache */
- 0, /* tp_subclasses */
- 0, /* tp_weaklist */
+ 0, /* tp_iter */
+ 0, /* tp_iternext */
+ 0, /* tp_methods */
+ 0, /* tp_members */
+ 0, /* tp_getset */
+ 0, /* tp_base */
+ 0, /* tp_dict */
+ 0, /* tp_descr_get */
+ 0, /* tp_descr_set */
+ 0, /* tp_dictoffset */
+ 0, /* tp_init */
+ 0, /* tp_alloc */
+ 0, /* tp_new */
+ 0, /* tp_free */
+ 0, /* tp_is_gc */
+ 0, /* tp_bases */
+ 0, /* tp_mro */
+ 0, /* tp_cache */
+ 0, /* tp_subclasses */
+ 0, /* tp_weaklist */
#endif
#if PY_VERSION_HEX >= 0x02030000
- 0, /* tp_del */
+ 0, /* tp_del */
+#endif
+#if PY_VERSION_HEX >= 0x02060000
+ 0, /* tp_version */
#endif
#ifdef COUNT_ALLOCS
- 0,0,0,0 /* tp_alloc -> tp_next */
+ 0,0,0,0 /* tp_alloc -> tp_next */
#endif
- };
- pyswigpacked_type = tmp;
- pyswigpacked_type.ob_type = &PyType_Type;
+ };
+ swigpypacked_type = tmp;
type_init = 1;
+#if PY_VERSION_HEX < 0x02020000
+ swigpypacked_type.ob_type = &PyType_Type;
+#else
+ if (PyType_Ready(&swigpypacked_type) < 0)
+ return NULL;
+#endif
}
- return &pyswigpacked_type;
+ return &swigpypacked_type;
}
SWIGRUNTIME PyObject *
-PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
+SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
{
- PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
+ SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
if (sobj) {
void *pack = malloc(size);
if (pack) {
}
SWIGRUNTIME swig_type_info *
-PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
+SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
{
- if (PySwigPacked_Check(obj)) {
- PySwigPacked *sobj = (PySwigPacked *)obj;
+ if (SwigPyPacked_Check(obj)) {
+ SwigPyPacked *sobj = (SwigPyPacked *)obj;
if (sobj->size != size) return 0;
memcpy(ptr, sobj->pack, size);
return sobj->ty;
SWIGRUNTIMEINLINE PyObject *
_SWIG_This(void)
{
- return PyString_FromString("this");
+ return SWIG_Python_str_FromChar("this");
}
+static PyObject *swig_this = NULL;
+
SWIGRUNTIME PyObject *
SWIG_This(void)
{
- static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
+ if (swig_this == NULL)
+ swig_this = _SWIG_This();
return swig_this;
}
/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
-SWIGRUNTIME PySwigObject *
+/* TODO: I don't know how to implement the fast getset in Python 3 right now */
+#if PY_VERSION_HEX>=0x03000000
+#define SWIG_PYTHON_SLOW_GETSET_THIS
+#endif
+
+SWIGRUNTIME SwigPyObject *
SWIG_Python_GetSwigThis(PyObject *pyobj)
{
- if (PySwigObject_Check(pyobj)) {
- return (PySwigObject *) pyobj;
- } else {
- PyObject *obj = 0;
+ PyObject *obj;
+
+ if (SwigPyObject_Check(pyobj))
+ return (SwigPyObject *) pyobj;
+
+#ifdef SWIGPYTHON_BUILTIN
+ (void)obj;
+# ifdef PyWeakref_CheckProxy
+ if (PyWeakref_CheckProxy(pyobj)) {
+ pyobj = PyWeakref_GET_OBJECT(pyobj);
+ if (pyobj && SwigPyObject_Check(pyobj))
+ return (SwigPyObject*) pyobj;
+ }
+# endif
+ return NULL;
+#else
+
+ obj = 0;
+
#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
- if (PyInstance_Check(pyobj)) {
- obj = _PyInstance_Lookup(pyobj, SWIG_This());
+ if (PyInstance_Check(pyobj)) {
+ obj = _PyInstance_Lookup(pyobj, SWIG_This());
+ } else {
+ PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
+ if (dictptr != NULL) {
+ PyObject *dict = *dictptr;
+ obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
} else {
- PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
- if (dictptr != NULL) {
- PyObject *dict = *dictptr;
- obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
- } else {
#ifdef PyWeakref_CheckProxy
- if (PyWeakref_CheckProxy(pyobj)) {
- PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
- return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
- }
+ if (PyWeakref_CheckProxy(pyobj)) {
+ PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
+ return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
+ }
#endif
- obj = PyObject_GetAttr(pyobj,SWIG_This());
- if (obj) {
- Py_DECREF(obj);
- } else {
- if (PyErr_Occurred()) PyErr_Clear();
- return 0;
- }
+ obj = PyObject_GetAttr(pyobj,SWIG_This());
+ if (obj) {
+ Py_DECREF(obj);
+ } else {
+ if (PyErr_Occurred()) PyErr_Clear();
+ return 0;
}
}
+ }
#else
- obj = PyObject_GetAttr(pyobj,SWIG_This());
- if (obj) {
- Py_DECREF(obj);
- } else {
- if (PyErr_Occurred()) PyErr_Clear();
- return 0;
- }
+ obj = PyObject_GetAttr(pyobj,SWIG_This());
+ if (obj) {
+ Py_DECREF(obj);
+ } else {
+ if (PyErr_Occurred()) PyErr_Clear();
+ return 0;
+ }
#endif
- if (obj && !PySwigObject_Check(obj)) {
- /* a PyObject is called 'this', try to get the 'real this'
- PySwigObject from it */
- return SWIG_Python_GetSwigThis(obj);
- }
- return (PySwigObject *)obj;
+ if (obj && !SwigPyObject_Check(obj)) {
+ /* a PyObject is called 'this', try to get the 'real this'
+ SwigPyObject from it */
+ return SWIG_Python_GetSwigThis(obj);
}
+ return (SwigPyObject *)obj;
+#endif
}
/* Acquire a pointer value */
SWIGRUNTIME int
SWIG_Python_AcquirePtr(PyObject *obj, int own) {
if (own == SWIG_POINTER_OWN) {
- PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
+ SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
if (sobj) {
int oldown = sobj->own;
sobj->own = own;
SWIGRUNTIME int
SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
- if (!obj) return SWIG_ERROR;
- if (obj == Py_None) {
- if (ptr) *ptr = 0;
+ int res;
+ SwigPyObject *sobj;
+ int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;
+
+ if (!obj)
+ return SWIG_ERROR;
+ if (obj == Py_None && !implicit_conv) {
+ if (ptr)
+ *ptr = 0;
return SWIG_OK;
- } else {
- PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
+ }
+
+ res = SWIG_ERROR;
+
+ sobj = SWIG_Python_GetSwigThis(obj);
+ if (own)
+ *own = 0;
+ while (sobj) {
+ void *vptr = sobj->ptr;
+ if (ty) {
+ swig_type_info *to = sobj->ty;
+ if (to == ty) {
+ /* no type cast needed */
+ if (ptr) *ptr = vptr;
+ break;
+ } else {
+ swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
+ if (!tc) {
+ sobj = (SwigPyObject *)sobj->next;
+ } else {
+ if (ptr) {
+ int newmemory = 0;
+ *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
+ if (newmemory == SWIG_CAST_NEW_MEMORY) {
+ assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
+ if (own)
+ *own = *own | SWIG_CAST_NEW_MEMORY;
+ }
+ }
+ break;
+ }
+ }
+ } else {
+ if (ptr) *ptr = vptr;
+ break;
+ }
+ }
+ if (sobj) {
if (own)
- *own = 0;
- while (sobj) {
- void *vptr = sobj->ptr;
- if (ty) {
- swig_type_info *to = sobj->ty;
- if (to == ty) {
- /* no type cast needed */
- if (ptr) *ptr = vptr;
- break;
- } else {
- swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
- if (!tc) {
- sobj = (PySwigObject *)sobj->next;
- } else {
- if (ptr) {
- int newmemory = 0;
- *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
- if (newmemory == SWIG_CAST_NEW_MEMORY) {
- assert(own);
- if (own)
- *own = *own | SWIG_CAST_NEW_MEMORY;
+ *own = *own | sobj->own;
+ if (flags & SWIG_POINTER_DISOWN) {
+ sobj->own = 0;
+ }
+ res = SWIG_OK;
+ } else {
+ if (implicit_conv) {
+ SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
+ if (data && !data->implicitconv) {
+ PyObject *klass = data->klass;
+ if (klass) {
+ PyObject *impconv;
+ data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
+ impconv = SWIG_Python_CallFunctor(klass, obj);
+ data->implicitconv = 0;
+ if (PyErr_Occurred()) {
+ PyErr_Clear();
+ impconv = 0;
+ }
+ if (impconv) {
+ SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
+ if (iobj) {
+ void *vptr;
+ res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
+ if (SWIG_IsOK(res)) {
+ if (ptr) {
+ *ptr = vptr;
+ /* transfer the ownership to 'ptr' */
+ iobj->own = 0;
+ res = SWIG_AddCast(res);
+ res = SWIG_AddNewMask(res);
+ } else {
+ res = SWIG_AddCast(res);
+ }
}
}
- break;
- }
- }
- } else {
- if (ptr) *ptr = vptr;
- break;
+ Py_DECREF(impconv);
+ }
+ }
}
}
- if (sobj) {
- if (own)
- *own = *own | sobj->own;
- if (flags & SWIG_POINTER_DISOWN) {
- sobj->own = 0;
- }
- return SWIG_OK;
- } else {
- int res = SWIG_ERROR;
- if (flags & SWIG_POINTER_IMPLICIT_CONV) {
- PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
- if (data && !data->implicitconv) {
- PyObject *klass = data->klass;
- if (klass) {
- PyObject *impconv;
- data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
- impconv = SWIG_Python_CallFunctor(klass, obj);
- data->implicitconv = 0;
- if (PyErr_Occurred()) {
- PyErr_Clear();
- impconv = 0;
- }
- if (impconv) {
- PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
- if (iobj) {
- void *vptr;
- res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
- if (SWIG_IsOK(res)) {
- if (ptr) {
- *ptr = vptr;
- /* transfer the ownership to 'ptr' */
- iobj->own = 0;
- res = SWIG_AddCast(res);
- res = SWIG_AddNewMask(res);
- } else {
- res = SWIG_AddCast(res);
- }
- }
- }
- Py_DECREF(impconv);
- }
- }
- }
- }
- return res;
+ if (!SWIG_IsOK(res) && obj == Py_None) {
+ if (ptr)
+ *ptr = 0;
+ if (PyErr_Occurred())
+ PyErr_Clear();
+ res = SWIG_OK;
}
}
+ return res;
}
/* Convert a function ptr value */
/* here we get the method pointer for callbacks */
const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
- if (desc) {
+ if (desc)
desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
- if (!desc) return SWIG_ERROR;
- }
+ if (!desc)
+ return SWIG_ERROR;
if (ty) {
swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
if (tc) {
SWIGRUNTIME int
SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
- swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
+ swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
if (!to) return SWIG_ERROR;
if (ty) {
if (to != ty) {
* ----------------------------------------------------------------------------- */
/*
- Create a new instance object, whitout calling __init__, and set the
+ Create a new instance object, without calling __init__, and set the
'this' attribute.
*/
SWIGRUNTIME PyObject*
-SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
+SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
{
#if (PY_VERSION_HEX >= 0x02020000)
PyObject *inst = 0;
#endif
}
} else {
+#if PY_VERSION_HEX >= 0x03000000
+ inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
+ if (inst) {
+ PyObject_SetAttr(inst, SWIG_This(), swig_this);
+ Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
+ }
+#else
PyObject *dict = PyDict_New();
- PyDict_SetItem(dict, SWIG_This(), swig_this);
- inst = PyInstance_NewRaw(data->newargs, dict);
- Py_DECREF(dict);
+ if (dict) {
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ inst = PyInstance_NewRaw(data->newargs, dict);
+ Py_DECREF(dict);
+ }
+#endif
}
return inst;
#else
#if (PY_VERSION_HEX >= 0x02010000)
- PyObject *inst;
+ PyObject *inst = 0;
PyObject *dict = PyDict_New();
- PyDict_SetItem(dict, SWIG_This(), swig_this);
- inst = PyInstance_NewRaw(data->newargs, dict);
- Py_DECREF(dict);
+ if (dict) {
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ inst = PyInstance_NewRaw(data->newargs, dict);
+ Py_DECREF(dict);
+ }
return (PyObject *) inst;
#else
PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
SWIGINTERN PyObject *
SWIG_Python_InitShadowInstance(PyObject *args) {
PyObject *obj[2];
- if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
+ if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
return NULL;
} else {
- PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
+ SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
if (sthis) {
- PySwigObject_append((PyObject*) sthis, obj[1]);
+ SwigPyObject_append((PyObject*) sthis, obj[1]);
} else {
SWIG_Python_SetSwigThis(obj[0], obj[1]);
}
/* Create a new pointer object */
SWIGRUNTIME PyObject *
-SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
- if (!ptr) {
+SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
+ SwigPyClientData *clientdata;
+ PyObject * robj;
+ int own;
+
+ if (!ptr)
return SWIG_Py_Void();
- } else {
- int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
- PyObject *robj = PySwigObject_New(ptr, type, own);
- PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
- if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
- PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
- if (inst) {
- Py_DECREF(robj);
- robj = inst;
+
+ clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
+ own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
+ if (clientdata && clientdata->pytype) {
+ SwigPyObject *newobj;
+ if (flags & SWIG_BUILTIN_TP_INIT) {
+ newobj = (SwigPyObject*) self;
+ if (newobj->ptr) {
+ PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
+ while (newobj->next)
+ newobj = (SwigPyObject *) newobj->next;
+ newobj->next = next_self;
+ newobj = (SwigPyObject *)next_self;
}
+ } else {
+ newobj = PyObject_New(SwigPyObject, clientdata->pytype);
+ }
+ if (newobj) {
+ newobj->ptr = ptr;
+ newobj->ty = type;
+ newobj->own = own;
+ newobj->next = 0;
+#ifdef SWIGPYTHON_BUILTIN
+ newobj->dict = 0;
+#endif
+ return (PyObject*) newobj;
}
- return robj;
+ return SWIG_Py_Void();
+ }
+
+ assert(!(flags & SWIG_BUILTIN_TP_INIT));
+
+ robj = SwigPyObject_New(ptr, type, own);
+ if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
+ PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
+ Py_DECREF(robj);
+ robj = inst;
}
+ return robj;
}
/* Create a new packed object */
SWIGRUNTIMEINLINE PyObject *
SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
- return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
+ return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
}
/* -----------------------------------------------------------------------------*
#endif
SWIGRUNTIME swig_module_info *
-SWIG_Python_GetModule(void) {
+SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
static void *type_pointer = (void *)0;
/* first check if module already created */
if (!type_pointer) {
#ifdef SWIG_LINK_RUNTIME
type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
#else
+# ifdef SWIGPY_USE_CAPSULE
+ type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
+# else
type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
(char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
+# endif
if (PyErr_Occurred()) {
PyErr_Clear();
type_pointer = (void *)0;
#endif
SWIGRUNTIME void
+#ifdef SWIGPY_USE_CAPSULE
+SWIG_Python_DestroyModule(PyObject *obj)
+#else
SWIG_Python_DestroyModule(void *vptr)
+#endif
{
+#ifdef SWIGPY_USE_CAPSULE
+ swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
+#else
swig_module_info *swig_module = (swig_module_info *) vptr;
+#endif
swig_type_info **types = swig_module->types;
size_t i;
for (i =0; i < swig_module->size; ++i) {
swig_type_info *ty = types[i];
if (ty->owndata) {
- PySwigClientData *data = (PySwigClientData *) ty->clientdata;
- if (data) PySwigClientData_Del(data);
+ SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
+ if (data) SwigPyClientData_Del(data);
}
}
Py_DECREF(SWIG_This());
+ swig_this = NULL;
}
SWIGRUNTIME void
SWIG_Python_SetModule(swig_module_info *swig_module) {
- static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
-
- PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
- swig_empty_runtime_method_table);
+#if PY_VERSION_HEX >= 0x03000000
+ /* Add a dummy module object into sys.modules */
+ PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION);
+#else
+ static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
+ PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
+#endif
+#ifdef SWIGPY_USE_CAPSULE
+ PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
+ if (pointer && module) {
+ PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
+ } else {
+ Py_XDECREF(pointer);
+ }
+#else
PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
if (pointer && module) {
PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
} else {
Py_XDECREF(pointer);
}
+#endif
}
/* The python cached type query */
SWIG_Python_TypeQuery(const char *type)
{
PyObject *cache = SWIG_Python_TypeCache();
- PyObject *key = PyString_FromString(type);
+ PyObject *key = SWIG_Python_str_FromChar(type);
PyObject *obj = PyDict_GetItem(cache, key);
swig_type_info *descriptor;
if (obj) {
+#ifdef SWIGPY_USE_CAPSULE
+ descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
+#else
descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
+#endif
} else {
- swig_module_info *swig_module = SWIG_Python_GetModule();
+ swig_module_info *swig_module = SWIG_GetModule(0);
descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
if (descriptor) {
+#ifdef SWIGPY_USE_CAPSULE
+ obj = PyCapsule_New((void*) descriptor, NULL, NULL);
+#else
obj = PyCObject_FromVoidPtr(descriptor, NULL);
+#endif
PyDict_SetItem(cache, key, obj);
Py_DECREF(obj);
}
SWIGRUNTIME int
SWIG_Python_AddErrMesg(const char* mesg, int infront)
-{
+{
if (PyErr_Occurred()) {
PyObject *type = 0;
PyObject *value = 0;
PyObject *traceback = 0;
PyErr_Fetch(&type, &value, &traceback);
if (value) {
+ char *tmp;
PyObject *old_str = PyObject_Str(value);
Py_XINCREF(type);
PyErr_Clear();
if (infront) {
- PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
+ PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
} else {
- PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
+ PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
}
+ SWIG_Python_str_DelForPy3(tmp);
Py_DECREF(old_str);
}
return 1;
}
SWIGRUNTIMEINLINE const char *
-PySwigObject_GetDesc(PyObject *self)
+SwigPyObject_GetDesc(PyObject *self)
{
- PySwigObject *v = (PySwigObject *)self;
+ SwigPyObject *v = (SwigPyObject *)self;
swig_type_info *ty = v ? v->ty : 0;
- return ty ? ty->str : (char*)"";
+ return ty ? ty->str : "";
}
SWIGRUNTIME void
{
if (type) {
#if defined(SWIG_COBJECT_TYPES)
- if (obj && PySwigObject_Check(obj)) {
- const char *otype = (const char *) PySwigObject_GetDesc(obj);
+ if (obj && SwigPyObject_Check(obj)) {
+ const char *otype = (const char *) SwigPyObject_GetDesc(obj);
if (otype) {
- PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
type, otype);
return;
}
const char *otype = (obj ? obj->ob_type->tp_name : 0);
if (otype) {
PyObject *str = PyObject_Str(obj);
- const char *cstr = str ? PyString_AsString(str) : 0;
+ const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
if (cstr) {
PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
type, otype, cstr);
+ SWIG_Python_str_DelForPy3(cstr);
} else {
PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
type, otype);
/* Convert a pointer value, signal an exception on a type mismatch */
SWIGRUNTIME void *
-SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
+SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
void *result;
if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
PyErr_Clear();
- if (flags & SWIG_POINTER_EXCEPTION) {
+#if SWIG_POINTER_EXCEPTION
+ if (flags) {
SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
SWIG_Python_ArgFail(argnum);
}
+#endif
}
return result;
}
+#ifdef SWIGPYTHON_BUILTIN
+SWIGRUNTIME int
+SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
+ PyTypeObject *tp = obj->ob_type;
+ PyObject *descr;
+ PyObject *encoded_name;
+ descrsetfunc f;
+ int res = -1;
+
+# ifdef Py_USING_UNICODE
+ if (PyString_Check(name)) {
+ name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
+ if (!name)
+ return -1;
+ } else if (!PyUnicode_Check(name))
+# else
+ if (!PyString_Check(name))
+# endif
+ {
+ PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
+ return -1;
+ } else {
+ Py_INCREF(name);
+ }
-#ifdef __cplusplus
-#if 0
-{ /* cc-mode */
+ if (!tp->tp_dict) {
+ if (PyType_Ready(tp) < 0)
+ goto done;
+ }
+
+ descr = _PyType_Lookup(tp, name);
+ f = NULL;
+ if (descr != NULL)
+ f = descr->ob_type->tp_descr_set;
+ if (!f) {
+ if (PyString_Check(name)) {
+ encoded_name = name;
+ Py_INCREF(name);
+ } else {
+ encoded_name = PyUnicode_AsUTF8String(name);
+ }
+ PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
+ Py_DECREF(encoded_name);
+ } else {
+ res = f(descr, obj, value);
+ }
+
+ done:
+ Py_DECREF(name);
+ return res;
+}
#endif
+
+
+#ifdef __cplusplus
}
#endif
/*-----------------------------------------------
@(target):= _freeswitch.so
------------------------------------------------*/
-#define SWIG_init init_freeswitch
+#if PY_VERSION_HEX >= 0x03000000
+# define SWIG_init PyInit__freeswitch
+#else
+# define SWIG_init init_freeswitch
+
+#endif
#define SWIG_name "_freeswitch"
-#define SWIGVERSION 0x010335
+#define SWIGVERSION 0x020012
#define SWIG_VERSION SWIGVERSION
namespace swig {
- class PyObject_ptr {
+ class SwigPtr_PyObject {
protected:
PyObject *_obj;
public:
- PyObject_ptr() :_obj(0)
+ SwigPtr_PyObject() :_obj(0)
{
}
- PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
+ SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
{
Py_XINCREF(_obj);
}
- PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
+ SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
{
if (initial_ref) {
Py_XINCREF(_obj);
}
}
- PyObject_ptr & operator=(const PyObject_ptr& item)
+ SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
{
Py_XINCREF(item._obj);
Py_XDECREF(_obj);
return *this;
}
- ~PyObject_ptr()
+ ~SwigPtr_PyObject()
{
Py_XDECREF(_obj);
}
namespace swig {
- struct PyObject_var : PyObject_ptr {
- PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
+ struct SwigVar_PyObject : SwigPtr_PyObject {
+ SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
- PyObject_var & operator = (PyObject* obj)
+ SwigVar_PyObject & operator = (PyObject* obj)
{
Py_XDECREF(_obj);
_obj = obj;
SWIGINTERN int
SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
{
- if (PyString_Check(obj)) {
+#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
+ if (!alloc && cptr) {
+ /* We can't allow converting without allocation, since the internal
+ representation of string in Python 3 is UCS-2/UCS-4 but we require
+ a UTF-8 representation.
+ TODO(bhy) More detailed explanation */
+ return SWIG_RuntimeError;
+ }
+ obj = PyUnicode_AsUTF8String(obj);
+ PyBytes_AsStringAndSize(obj, &cstr, &len);
+ if(alloc) *alloc = SWIG_NEWOBJ;
+#else
PyString_AsStringAndSize(obj, &cstr, &len);
- if (cptr) {
+#endif
+ if (cptr) {
if (alloc) {
/*
In python the user should not be able to modify the inner
*alloc = SWIG_OLDOBJ;
}
} else {
- *cptr = PyString_AsString(obj);
+ #if PY_VERSION_HEX>=0x03000000
+ assert(0); /* Should never reach here in Python 3 */
+ #endif
+ *cptr = SWIG_Python_str_AsChar(obj);
}
}
if (psize) *psize = len + 1;
+#if PY_VERSION_HEX>=0x03000000
+ Py_XDECREF(obj);
+#endif
return SWIG_OK;
} else {
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
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();
+ SWIG_InternalNewPointerObj(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();
}
- #define SWIG_From_long PyInt_FromLong
-
-
-SWIGINTERNINLINE PyObject *
-SWIG_From_int (int value)
-{
- return SWIG_From_long (value);
+SWIGINTERNINLINE PyObject*
+ SWIG_From_int (int value)
+{
+ return PyInt_FromLong((long) value);
}
SWIGINTERN int
SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
{
+#if PY_VERSION_HEX < 0x03000000
if (PyInt_Check(obj)) {
long v = PyInt_AsLong(obj);
if (v >= 0) {
} else {
return SWIG_OverflowError;
}
- } else if (PyLong_Check(obj)) {
+ } else
+#endif
+ if (PyLong_Check(obj)) {
unsigned long v = PyLong_AsUnsignedLong(obj);
if (!PyErr_Occurred()) {
if (val) *val = v;
return SWIG_OK;
} else {
PyErr_Clear();
+#if PY_VERSION_HEX >= 0x03000000
+ {
+ long v = PyLong_AsLong(obj);
+ if (!PyErr_Occurred()) {
+ if (v < 0) {
+ return SWIG_OverflowError;
+ }
+ } else {
+ PyErr_Clear();
+ }
+ }
+#endif
}
}
#ifdef SWIG_PYTHON_CAST_MODE
}
-SWIGINTERNINLINE PyObject*
-SWIG_From_unsigned_SS_long (unsigned long value)
+SWIGINTERNINLINE PyObject*
+ SWIG_From_unsigned_SS_int (unsigned int value)
{
- return (value > LONG_MAX) ?
- PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
-}
-
-
-SWIGINTERNINLINE PyObject *
-SWIG_From_unsigned_SS_int (unsigned int value)
-{
- return SWIG_From_unsigned_SS_long (value);
+ return PyInt_FromSize_t((size_t) value);
}
SWIGINTERN PyObject *_wrap_getGlobalVariable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
char *arg1 = (char *) 0 ;
- char *result = 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:getGlobalVariable",&obj0)) SWIG_fail;
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
char *arg5 = (char *) NULL ;
char *arg6 = (char *) NULL ;
char *arg7 = (char *) NULL ;
- bool result;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
PyObject * obj4 = 0 ;
PyObject * obj5 = 0 ;
PyObject * obj6 = 0 ;
+ bool result;
if (!PyArg_ParseTuple(args,(char *)"OO|OOOOO:email",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
int arg15 ;
int arg16 ;
int arg17 ;
- IVRMenu *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
PyObject * obj14 = 0 ;
PyObject * obj15 = 0 ;
PyObject * obj16 = 0 ;
+ IVRMenu *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOOOOOOO:new_IVRMenu",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15,&obj16)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IVRMenu, 0 | 0 );
}
arg1 = reinterpret_cast< IVRMenu * >(argp1);
delete arg1;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_new_API(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) NULL ;
- API *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ API *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"|O:new_API",&obj0)) SWIG_fail;
if (obj0) {
}
arg1 = reinterpret_cast< API * >(argp1);
delete arg1;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
API *arg1 = (API *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) NULL ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO|O:API_execute",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_API, 0 | 0 );
PyObject *resultobj = 0;
API *arg1 = (API *) 0 ;
char *arg2 = (char *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:API_executeString",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_API, 0 | 0 );
SWIGINTERN PyObject *_wrap_API_getTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
API *arg1 = (API *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:API_getTime",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_API, 0 | 0 );
SWIGINTERN PyObject *_wrap_input_callback_state_t_function_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:input_callback_state_t_function_set",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_input_callback_state, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_function_set" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_function_set" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "input_callback_state_t_function_set" "', argument " "2"" of type '" "void *""'");
}
if (arg1) (arg1)->function = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_input_callback_state_t_function_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
- void *result = 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ void *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:input_callback_state_t_function_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_input_callback_state, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_function_get" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_function_get" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
result = (void *) ((arg1)->function);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
return resultobj;
SWIGINTERN PyObject *_wrap_input_callback_state_t_threadState_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:input_callback_state_t_threadState_set",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_input_callback_state, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_threadState_set" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_threadState_set" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "input_callback_state_t_threadState_set" "', argument " "2"" of type '" "void *""'");
}
if (arg1) (arg1)->threadState = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_input_callback_state_t_threadState_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
- void *result = 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ void *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:input_callback_state_t_threadState_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_input_callback_state, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_threadState_get" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_threadState_get" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
result = (void *) ((arg1)->threadState);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
return resultobj;
SWIGINTERN PyObject *_wrap_input_callback_state_t_extra_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:input_callback_state_t_extra_set",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_input_callback_state, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_extra_set" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_extra_set" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "input_callback_state_t_extra_set" "', argument " "2"" of type '" "void *""'");
}
if (arg1) (arg1)->extra = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_input_callback_state_t_extra_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
- void *result = 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ void *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:input_callback_state_t_extra_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_input_callback_state, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_extra_get" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_extra_get" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
result = (void *) ((arg1)->extra);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
return resultobj;
SWIGINTERN PyObject *_wrap_input_callback_state_t_funcargs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:input_callback_state_t_funcargs_set",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_input_callback_state, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_funcargs_set" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_funcargs_set" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "input_callback_state_t_funcargs_set" "', argument " "2"" of type '" "char *""'");
SWIGINTERN PyObject *_wrap_input_callback_state_t_funcargs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
- char *result = 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:input_callback_state_t_funcargs_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_input_callback_state, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_funcargs_get" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "input_callback_state_t_funcargs_get" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
result = (char *) ((arg1)->funcargs);
resultobj = SWIG_FromCharPtr((const char *)result);
return resultobj;
SWIGINTERN PyObject *_wrap_new_input_callback_state_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
- input_callback_state_t *result = 0 ;
+ input_callback_state *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)":new_input_callback_state_t")) SWIG_fail;
- result = (input_callback_state_t *)new input_callback_state_t();
+ result = (input_callback_state *)new input_callback_state();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_input_callback_state, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_delete_input_callback_state_t(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:delete_input_callback_state_t",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_input_callback_state, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_input_callback_state_t" "', argument " "1"" of type '" "input_callback_state_t *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_input_callback_state_t" "', argument " "1"" of type '" "input_callback_state *""'");
}
- arg1 = reinterpret_cast< input_callback_state_t * >(argp1);
+ arg1 = reinterpret_cast< input_callback_state * >(argp1);
delete arg1;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
}
arg2 = static_cast< char >(val2);
if (arg1) (arg1)->digit = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_DTMF_digit_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
DTMF *arg1 = (DTMF *) 0 ;
- char result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char result;
if (!PyArg_ParseTuple(args,(char *)"O:DTMF_digit_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DTMF, 0 | 0 );
}
}
if (arg1) (arg1)->duration = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_DTMF_duration_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
DTMF *arg1 = (DTMF *) 0 ;
- uint32_t result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ uint32_t result;
if (!PyArg_ParseTuple(args,(char *)"O:DTMF_duration_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DTMF, 0 | 0 );
PyObject *resultobj = 0;
char arg1 ;
uint32_t arg2 = (uint32_t) SWITCH_DEFAULT_DTMF_DURATION ;
- DTMF *result = 0 ;
char val1 ;
int ecode1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ DTMF *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O|O:new_DTMF",&obj0,&obj1)) SWIG_fail;
ecode1 = SWIG_AsVal_char(obj0, &val1);
}
arg1 = reinterpret_cast< DTMF * >(argp1);
delete arg1;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_new_Stream__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ;
- Stream *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ Stream *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:new_Stream",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_switch_stream_handle_t, 0 | 0 );
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
- argc = (int)PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 1); ii++) {
+ argc = args ? (int)PyObject_Length(args) : 0;
+ for (ii = 0; (ii < 1) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 0) {
}
fail:
- SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_Stream'.\n"
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Stream'.\n"
" Possible C/C++ prototypes are:\n"
- " Stream()\n"
- " Stream(switch_stream_handle_t *)\n");
- return NULL;
+ " Stream::Stream()\n"
+ " Stream::Stream(switch_stream_handle_t *)\n");
+ return 0;
}
}
arg1 = reinterpret_cast< Stream * >(argp1);
delete arg1;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
PyObject *resultobj = 0;
Stream *arg1 = (Stream *) 0 ;
int *arg2 = (int *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:Stream_read",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Stream, 0 | 0 );
SWIGINTERN PyObject *_wrap_Stream_get_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Stream *arg1 = (Stream *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:Stream_get_data",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Stream, 0 | 0 );
}
arg2 = reinterpret_cast< switch_event_t * >(argp2);
if (arg1) (arg1)->event = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_Event_event_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Event *arg1 = (Event *) 0 ;
- switch_event_t *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ switch_event_t *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:Event_event_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Event, 0 | 0 );
SWIGINTERN PyObject *_wrap_Event_serialized_string_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Event *arg1 = (Event *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:Event_serialized_string_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Event, 0 | 0 );
}
arg2 = static_cast< int >(val2);
if (arg1) (arg1)->mine = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_Event_mine_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Event *arg1 = (Event *) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"O:Event_mine_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Event, 0 | 0 );
PyObject *resultobj = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) NULL ;
- Event *result = 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ Event *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O|O:new_Event",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
PyObject *resultobj = 0;
switch_event_t *arg1 = (switch_event_t *) 0 ;
int arg2 = (int) 0 ;
- Event *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ Event *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O|O:new_Event",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_switch_event_t, 0 | 0 );
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
- argc = (int)PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 2); ii++) {
+ argc = args ? (int)PyObject_Length(args) : 0;
+ for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if ((argc >= 1) && (argc <= 2)) {
}
fail:
- SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_Event'.\n"
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Event'.\n"
" Possible C/C++ prototypes are:\n"
- " Event(char const *,char const *)\n"
- " Event(switch_event_t *,int)\n");
- return NULL;
+ " Event::Event(char const *,char const *)\n"
+ " Event::Event(switch_event_t *,int)\n");
+ return 0;
}
}
arg1 = reinterpret_cast< Event * >(argp1);
delete arg1;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) NULL ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"OO|O:Event_chat_execute",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Event, 0 | 0 );
PyObject *resultobj = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) NULL ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"O|O:Event_chat_send",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Event, 0 | 0 );
PyObject *resultobj = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) NULL ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O|O:Event_serialize",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Event, 0 | 0 );
PyObject *resultobj = 0;
Event *arg1 = (Event *) 0 ;
switch_priority_t arg2 = (switch_priority_t) SWITCH_PRIORITY_NORMAL ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ bool result;
if (!PyArg_ParseTuple(args,(char *)"O|O:Event_setPriority",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Event, 0 | 0 );
PyObject *resultobj = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:Event_getHeader",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Event, 0 | 0 );
SWIGINTERN PyObject *_wrap_Event_getBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Event *arg1 = (Event *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:Event_getBody",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Event, 0 | 0 );
SWIGINTERN PyObject *_wrap_Event_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Event *arg1 = (Event *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:Event_getType",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Event, 0 | 0 );
PyObject *resultobj = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ bool result;
if (!PyArg_ParseTuple(args,(char *)"OO:Event_addBody",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Event, 0 | 0 );
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
+ bool result;
if (!PyArg_ParseTuple(args,(char *)"OOO:Event_addHeader",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Event, 0 | 0 );
PyObject *resultobj = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ bool result;
if (!PyArg_ParseTuple(args,(char *)"OO:Event_delHeader",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Event, 0 | 0 );
SWIGINTERN PyObject *_wrap_Event_fire(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Event *arg1 = (Event *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ bool result;
if (!PyArg_ParseTuple(args,(char *)"O:Event_fire",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Event, 0 | 0 );
}
arg2 = reinterpret_cast< switch_queue_t * >(argp2);
if (arg1) (arg1)->events = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_EventConsumer_events_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
- switch_queue_t *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ switch_queue_t *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:EventConsumer_events_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EventConsumer, 0 | 0 );
}
}
if (arg1) (arg1)->e_event_id = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_EventConsumer_e_event_id_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
- switch_event_types_t result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ switch_event_types_t result;
if (!PyArg_ParseTuple(args,(char *)"O:EventConsumer_e_event_id_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EventConsumer, 0 | 0 );
SWIGINTERN PyObject *_wrap_EventConsumer_e_callback_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:EventConsumer_e_callback_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EventConsumer, 0 | 0 );
SWIGINTERN PyObject *_wrap_EventConsumer_e_subclass_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:EventConsumer_e_subclass_name_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EventConsumer, 0 | 0 );
SWIGINTERN PyObject *_wrap_EventConsumer_e_cb_arg_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:EventConsumer_e_cb_arg_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EventConsumer, 0 | 0 );
SWIGINTERN PyObject *_wrap_EventConsumer_enodes_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
- switch_event_node_t **result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ switch_event_node_t **result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:EventConsumer_enodes_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EventConsumer, 0 | 0 );
}
}
if (arg1) (arg1)->node_index = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_EventConsumer_node_index_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
- uint32_t result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ uint32_t result;
if (!PyArg_ParseTuple(args,(char *)"O:EventConsumer_node_index_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EventConsumer, 0 | 0 );
char *arg1 = (char *) NULL ;
char *arg2 = (char *) "" ;
int arg3 = (int) 5000 ;
- EventConsumer *result = 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
+ EventConsumer *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"|OOO:new_EventConsumer",&obj0,&obj1,&obj2)) SWIG_fail;
if (obj0) {
}
arg1 = reinterpret_cast< EventConsumer * >(argp1);
delete arg1;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
EventConsumer *arg1 = (EventConsumer *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) "" ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"OO|O:EventConsumer_bind",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EventConsumer, 0 | 0 );
EventConsumer *arg1 = (EventConsumer *) 0 ;
int arg2 = (int) 0 ;
int arg3 = (int) 0 ;
- Event *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
+ Event *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O|OO:EventConsumer_pop",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EventConsumer, 0 | 0 );
}
arg1 = reinterpret_cast< CoreSession * >(argp1);
delete arg1;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
}
arg2 = reinterpret_cast< switch_core_session_t * >(argp2);
if (arg1) (arg1)->session = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_CoreSession_session_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- switch_core_session_t *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ switch_core_session_t *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_session_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
}
arg2 = reinterpret_cast< switch_channel_t * >(argp2);
if (arg1) (arg1)->channel = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_CoreSession_channel_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- switch_channel_t *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ switch_channel_t *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_channel_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
}
arg2 = static_cast< unsigned int >(val2);
if (arg1) (arg1)->flags = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_CoreSession_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- unsigned int result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ unsigned int result;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_flags_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
}
arg2 = static_cast< int >(val2);
if (arg1) (arg1)->allocated = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_CoreSession_allocated_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_allocated_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
}
arg2 = reinterpret_cast< input_callback_state * >(argp2);
if (arg1) (arg1)->cb_state = *arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_CoreSession_cb_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- input_callback_state *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ input_callback_state *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_cb_state_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
}
}
if (arg1) (arg1)->hook_state = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_CoreSession_hook_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- switch_channel_state_t result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ switch_channel_state_t result;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_hook_state_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
}
}
if (arg1) (arg1)->cause = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_CoreSession_cause_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- switch_call_cause_t result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ switch_call_cause_t result;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_cause_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_uuid_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_uuid_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_tts_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_tts_name_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_voice_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_voice_name_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
int arg4 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
PyObject * obj3 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"OOOO:CoreSession_insertFile",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_answer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_answer",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_preAnswer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_preAnswer",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
- void *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ void *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:CoreSession_getPrivate",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:CoreSession_getVariable",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
- switch_status_t result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ switch_status_t result;
if (!PyArg_ParseTuple(args,(char *)"OO:CoreSession_process_callback_result",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_hangupCause(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_hangupCause",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_getState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_getState",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
int arg3 = (int) 0 ;
int arg4 = (int) 0 ;
int arg5 = (int) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
PyObject * obj2 = 0 ;
PyObject * obj3 = 0 ;
PyObject * obj4 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"OO|OOO:CoreSession_recordFile",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
char *arg3 = (char *) 0 ;
int arg4 = (int) 60 ;
switch_state_handler_table_t *arg5 = (switch_state_handler_table_t *) NULL ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
PyObject * obj2 = 0 ;
PyObject * obj3 = 0 ;
PyObject * obj4 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"OOO|OO:CoreSession_originate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"OO:CoreSession_speak",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"OO:CoreSession_collectDigits",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
int arg3 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"OOO:CoreSession_collectDigits",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
- argc = (int)PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 3); ii++) {
+ argc = args ? (int)PyObject_Length(args) : 0;
+ for (ii = 0; (ii < 3) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 2) {
}
fail:
- SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CoreSession_collectDigits'.\n"
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CoreSession_collectDigits'.\n"
" Possible C/C++ prototypes are:\n"
- " collectDigits(CoreSession *,int)\n"
- " collectDigits(CoreSession *,int,int)\n");
- return NULL;
+ " CoreSession::collectDigits(int)\n"
+ " CoreSession::collectDigits(int,int)\n");
+ return 0;
}
int arg2 ;
char *arg3 = (char *) 0 ;
int arg4 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
PyObject * obj3 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OOOO:CoreSession_getDigits",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
char *arg3 = (char *) 0 ;
int arg4 ;
int arg5 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
PyObject * obj2 = 0 ;
PyObject * obj3 = 0 ;
PyObject * obj4 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OOOOO:CoreSession_getDigits",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
- argc = (int)PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 5); ii++) {
+ argc = args ? (int)PyObject_Length(args) : 0;
+ for (ii = 0; (ii < 5) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 4) {
}
fail:
- SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CoreSession_getDigits'.\n"
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CoreSession_getDigits'.\n"
" Possible C/C++ prototypes are:\n"
- " getDigits(CoreSession *,int,char *,int)\n"
- " getDigits(CoreSession *,int,char *,int,int)\n");
- return NULL;
+ " CoreSession::getDigits(int,char *,int)\n"
+ " CoreSession::getDigits(int,char *,int,int)\n");
+ return 0;
}
char *arg2 = (char *) 0 ;
char *arg3 = (char *) NULL ;
char *arg4 = (char *) NULL ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
PyObject * obj3 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"OO|OO:CoreSession_transfer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
int arg5 ;
char *arg6 = (char *) 0 ;
int arg7 = (int) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
PyObject * obj4 = 0 ;
PyObject * obj5 = 0 ;
PyObject * obj6 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OOOOOO|O:CoreSession_read",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
char *arg10 = (char *) NULL ;
int arg11 = (int) 0 ;
char *arg12 = (char *) NULL ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
PyObject * obj9 = 0 ;
PyObject * obj10 = 0 ;
PyObject * obj11 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO|OOO:CoreSession_playAndGetDigits",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
int arg3 = (int) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"OO|O:CoreSession_streamFile",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
int arg3 = (int) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"OO|O:CoreSession_sleep",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_flushEvents(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_flushEvents",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_flushDigits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_flushDigits",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
bool arg2 ;
- int result;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ int result;
if (!PyArg_ParseTuple(args,(char *)"OO:CoreSession_setAutoHangup",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_ready(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ bool result;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_ready",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_bridged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ bool result;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_bridged",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_answered(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ bool result;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_answered",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_mediaReady(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ bool result;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_mediaReady",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_getXMLCDR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_getXMLCDR",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_begin_allow_threads(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ bool result;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_begin_allow_threads",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_end_allow_threads(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ bool result;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_end_allow_threads",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_get_uuid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- char *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ char *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_get_uuid",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_CoreSession_get_cb_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- switch_input_args_t *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ switch_input_args_t *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:CoreSession_get_cb_args",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoreSession_get_cb_args" "', argument " "1"" of type '" "CoreSession const *""'");
}
arg1 = reinterpret_cast< CoreSession * >(argp1);
- {
- switch_input_args_t const &_result_ref = ((CoreSession const *)arg1)->get_cb_args();
- result = (switch_input_args_t *) &_result_ref;
- }
+ result = (switch_input_args_t *) &((CoreSession const *)arg1)->get_cb_args();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_switch_input_args_t, 0 | 0 );
return resultobj;
fail:
CoreSession *arg1 = (CoreSession *) 0 ;
void *arg2 = (void *) 0 ;
switch_input_type_t arg3 ;
- switch_status_t result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
+ switch_status_t result;
if (!PyArg_ParseTuple(args,(char *)"OOO:CoreSession_run_dtmf_callback",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
SWIGINTERN PyObject *_wrap_hanguphook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
- switch_status_t result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ switch_status_t result;
if (!PyArg_ParseTuple(args,(char *)"O:hanguphook",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_switch_core_session_t, 0 | 0 );
switch_input_type_t arg3 ;
void *arg4 = (void *) 0 ;
unsigned int arg5 ;
- switch_status_t result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
PyObject * obj2 = 0 ;
PyObject * obj3 = 0 ;
PyObject * obj4 = 0 ;
+ switch_status_t result;
if (!PyArg_ParseTuple(args,(char *)"OOOOO:dtmf_callback",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_switch_core_session_t, 0 | 0 );
PyObject *resultobj = 0;
char *arg1 = (char *) 0 ;
CoreSession *arg2 = (CoreSession *) 0 ;
- PYTHON::Session *result = 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ PYTHON::Session *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:new_Session",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
SWIGINTERN PyObject *_wrap_new_Session__SWIG_2(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
char *arg1 = (char *) 0 ;
- PYTHON::Session *result = 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
PyObject * obj0 = 0 ;
+ PYTHON::Session *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:new_Session",&obj0)) SWIG_fail;
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
SWIGINTERN PyObject *_wrap_new_Session__SWIG_3(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
- PYTHON::Session *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ PYTHON::Session *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:new_Session",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_switch_core_session_t, 0 | 0 );
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
- argc = (int)PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 2); ii++) {
+ argc = args ? (int)PyObject_Length(args) : 0;
+ for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 0) {
}
fail:
- SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_Session'.\n"
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Session'.\n"
" Possible C/C++ prototypes are:\n"
- " PYTHON::Session()\n"
- " PYTHON::Session(char *,CoreSession *)\n"
- " PYTHON::Session(char *)\n"
- " PYTHON::Session(switch_core_session_t *)\n");
- return NULL;
+ " PYTHON::Session::Session()\n"
+ " PYTHON::Session::Session(char *,CoreSession *)\n"
+ " PYTHON::Session::Session(char *)\n"
+ " PYTHON::Session::Session(switch_core_session_t *)\n");
+ return 0;
}
}
arg1 = reinterpret_cast< PYTHON::Session * >(argp1);
delete arg1;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_Session_begin_allow_threads(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
PYTHON::Session *arg1 = (PYTHON::Session *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ bool result;
if (!PyArg_ParseTuple(args,(char *)"O:Session_begin_allow_threads",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PYTHON__Session, 0 | 0 );
SWIGINTERN PyObject *_wrap_Session_end_allow_threads(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
PYTHON::Session *arg1 = (PYTHON::Session *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ bool result;
if (!PyArg_ParseTuple(args,(char *)"O:Session_end_allow_threads",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PYTHON__Session, 0 | 0 );
PYTHON::Session *arg1 = (PYTHON::Session *) 0 ;
void *arg2 = (void *) 0 ;
switch_input_type_t arg3 ;
- switch_status_t result;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
+ switch_status_t result;
if (!PyArg_ParseTuple(args,(char *)"OOO:Session_run_dtmf_callback",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PYTHON__Session, 0 | 0 );
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
- argc = (int)PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 3); ii++) {
+ argc = args ? (int)PyObject_Length(args) : 0;
+ for (ii = 0; (ii < 3) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 2) {
}
fail:
- SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Session_setInputCallback'.\n"
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Session_setInputCallback'.\n"
" Possible C/C++ prototypes are:\n"
- " setInputCallback(PYTHON::Session *,PyObject *,PyObject *)\n"
- " setInputCallback(PYTHON::Session *,PyObject *)\n");
- return NULL;
+ " PYTHON::Session::setInputCallback(PyObject *,PyObject *)\n"
+ " PYTHON::Session::setInputCallback(PyObject *)\n");
+ return 0;
}
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
- argc = (int)PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 3); ii++) {
+ argc = args ? (int)PyObject_Length(args) : 0;
+ for (ii = 0; (ii < 3) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 2) {
}
fail:
- SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Session_setHangupHook'.\n"
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Session_setHangupHook'.\n"
" Possible C/C++ prototypes are:\n"
- " setHangupHook(PYTHON::Session *,PyObject *,PyObject *)\n"
- " setHangupHook(PYTHON::Session *,PyObject *)\n");
- return NULL;
+ " PYTHON::Session::setHangupHook(PyObject *,PyObject *)\n"
+ " PYTHON::Session::setHangupHook(PyObject *)\n");
+ return 0;
}
SWIGINTERN PyObject *_wrap_Session_ready(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
PYTHON::Session *arg1 = (PYTHON::Session *) 0 ;
- bool result;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ bool result;
if (!PyArg_ParseTuple(args,(char *)"O:Session_ready",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PYTHON__Session, 0 | 0 );
arg1 = reinterpret_cast< PYTHON::Session * >(argp1);
arg2 = obj1;
if (arg1) (arg1)->cb_function = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_Session_cb_function_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
PYTHON::Session *arg1 = (PYTHON::Session *) 0 ;
- PyObject *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ PyObject *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:Session_cb_function_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PYTHON__Session, 0 | 0 );
arg1 = reinterpret_cast< PYTHON::Session * >(argp1);
arg2 = obj1;
if (arg1) (arg1)->cb_arg = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_Session_cb_arg_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
PYTHON::Session *arg1 = (PYTHON::Session *) 0 ;
- PyObject *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ PyObject *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:Session_cb_arg_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PYTHON__Session, 0 | 0 );
arg1 = reinterpret_cast< PYTHON::Session * >(argp1);
arg2 = obj1;
if (arg1) (arg1)->hangup_func = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_Session_hangup_func_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
PYTHON::Session *arg1 = (PYTHON::Session *) 0 ;
- PyObject *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ PyObject *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:Session_hangup_func_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PYTHON__Session, 0 | 0 );
arg1 = reinterpret_cast< PYTHON::Session * >(argp1);
arg2 = obj1;
if (arg1) (arg1)->hangup_func_arg = arg2;
-
resultobj = SWIG_Py_Void();
return resultobj;
fail:
SWIGINTERN PyObject *_wrap_Session_hangup_func_arg_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
PYTHON::Session *arg1 = (PYTHON::Session *) 0 ;
- PyObject *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ PyObject *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:Session_hangup_func_arg_get",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PYTHON__Session, 0 | 0 );
}
static PyMethodDef SwigMethods[] = {
+ { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
{ (char *)"setGlobalVariable", _wrap_setGlobalVariable, METH_VARARGS, NULL},
{ (char *)"getGlobalVariable", _wrap_getGlobalVariable, METH_VARARGS, NULL},
{ (char *)"consoleLog", _wrap_consoleLog, METH_VARARGS, NULL},
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
-static void *_p_PYTHON__SessionTo_p_CoreSession(void *x, int *newmemory) {
+static void *_p_PYTHON__SessionTo_p_CoreSession(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((CoreSession *) ((PYTHON::Session *) x));
}
static swig_type_info _swigt__p_API = {"_p_API", "API *", 0, 0, (void*)0, 0};
#endif
/* -----------------------------------------------------------------------------
* Type initialization:
- * This problem is tough by the requirement that no dynamic
- * memory is used. Also, since swig_type_info structures store pointers to
+ * This problem is tough by the requirement that no dynamic
+ * memory is used. Also, since swig_type_info structures store pointers to
* swig_cast_info structures and swig_cast_info structures store pointers back
- * to swig_type_info structures, we need some lookup code at initialization.
- * The idea is that swig generates all the structures that are needed.
- * The runtime then collects these partially filled structures.
- * The SWIG_InitializeModule function takes these initial arrays out of
+ * to swig_type_info structures, we need some lookup code at initialization.
+ * The idea is that swig generates all the structures that are needed.
+ * The runtime then collects these partially filled structures.
+ * The SWIG_InitializeModule function takes these initial arrays out of
* swig_module, and does all the lookup, filling in the swig_module.types
* array with the correct data and linking the correct swig_cast_info
* structures together.
*
- * The generated swig_type_info structures are assigned staticly to an initial
+ * The generated swig_type_info structures are assigned staticly to an initial
* array. We just loop through that array, and handle each type individually.
* First we lookup if this type has been already loaded, and if so, use the
* loaded structure instead of the generated one. Then we have to fill in the
* a column is one of the swig_cast_info structures for that type.
* The cast_initial array is actually an array of arrays, because each row has
* a variable number of columns. So to actually build the cast linked list,
- * we find the array of casts associated with the type, and loop through it
+ * we find the array of casts associated with the type, and loop through it
* adding the casts to the list. The one last trick we need to do is making
* sure the type pointer in the swig_cast_info struct is correct.
*
- * First off, we lookup the cast->type name to see if it is already loaded.
+ * First off, we lookup the cast->type name to see if it is already loaded.
* There are three cases to handle:
* 1) If the cast->type has already been loaded AND the type we are adding
* casting info to has not been loaded (it is in this module), THEN we
* replace the cast->type pointer with the type pointer that has already
* been loaded.
- * 2) If BOTH types (the one we are adding casting info to, and the
+ * 2) If BOTH types (the one we are adding casting info to, and the
* cast->type) are loaded, THEN the cast info has already been loaded by
* the previous module so we just ignore it.
* 3) Finally, if cast->type has not already been loaded, then we add that
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) {
/* Initialize the swig_module */
module_head->next = &swig_module;
}
- /* When multiple interpeters are used, a module could have already been initialized in
+ /* When multiple interpreters 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 */
SWIGINTERN PyObject *
swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
+#if PY_VERSION_HEX >= 0x03000000
+ return PyUnicode_InternFromString("<Swig global variables>");
+#else
return PyString_FromString("<Swig global variables>");
+#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;
+ 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)) {
+ char *tmp;
PyObject *str = swig_varlink_str(v);
fprintf(fp,"Swig global variables ");
- fprintf(fp,"%s\n", PyString_AsString(str));
+ fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
+ SWIG_Python_str_DelForPy3(tmp);
Py_DECREF(str);
return 0;
}
swig_varlink_type(void) {
static char varlink__doc__[] = "Swig var link object";
static PyTypeObject varlink_type;
- static int type_init = 0;
+ static int type_init = 0;
if (!type_init) {
- const PyTypeObject tmp
- = {
+ const PyTypeObject tmp = {
+ /* PyObject header changed in Python 3 */
+#if PY_VERSION_HEX >= 0x03000000
+ PyVarObject_HEAD_INIT(NULL, 0)
+#else
PyObject_HEAD_INIT(NULL)
- 0, /* Number of items in variable part (ob_size) */
- (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, /* ob_size */
+#endif
+ (char *)"swigvarlink", /* tp_name */
+ sizeof(swig_varlinkobject), /* tp_basicsize */
+ 0, /* tp_itemsize */
+ (destructor) swig_varlink_dealloc, /* tp_dealloc */
+ (printfunc) swig_varlink_print, /* tp_print */
+ (getattrfunc) swig_varlink_getattr, /* tp_getattr */
+ (setattrfunc) swig_varlink_setattr, /* tp_setattr */
0, /* tp_compare */
(reprfunc) swig_varlink_repr, /* tp_repr */
0, /* tp_as_number */
0, /* tp_as_mapping */
0, /* tp_hash */
0, /* tp_call */
- (reprfunc)swig_varlink_str, /* tp_str */
+ (reprfunc) swig_varlink_str, /* tp_str */
0, /* tp_getattro */
0, /* tp_setattro */
0, /* tp_as_buffer */
#if PY_VERSION_HEX >= 0x02030000
0, /* tp_del */
#endif
+#if PY_VERSION_HEX >= 0x02060000
+ 0, /* tp_version */
+#endif
#ifdef COUNT_ALLOCS
0,0,0,0 /* tp_alloc -> tp_next */
#endif
};
varlink_type = tmp;
- varlink_type.ob_type = &PyType_Type;
type_init = 1;
+#if PY_VERSION_HEX < 0x02020000
+ varlink_type.ob_type = &PyType_Type;
+#else
+ if (PyType_Ready(&varlink_type) < 0)
+ return NULL;
+#endif
}
return &varlink_type;
}
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);
+ obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
break;
case SWIG_PY_BINARY:
obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
}
}
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) {
+ void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
+ if (ptr) {
+ 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;
strncpy(buff, methods[i].ml_doc, ldoc);
buff += ldoc;
strncpy(buff, "swig_ptr: ", 10);
#ifdef __cplusplus
extern "C"
#endif
-SWIGEXPORT void SWIG_init(void) {
- PyObject *m, *d;
+
+SWIGEXPORT
+#if PY_VERSION_HEX >= 0x03000000
+PyObject*
+#else
+void
+#endif
+SWIG_init(void) {
+ PyObject *m, *d, *md;
+#if PY_VERSION_HEX >= 0x03000000
+ static struct PyModuleDef SWIG_module = {
+# if PY_VERSION_HEX >= 0x03020000
+ PyModuleDef_HEAD_INIT,
+# else
+ {
+ PyObject_HEAD_INIT(NULL)
+ NULL, /* m_init */
+ 0, /* m_index */
+ NULL, /* m_copy */
+ },
+# endif
+ (char *) SWIG_name,
+ NULL,
+ -1,
+ SwigMethods,
+ NULL,
+ NULL,
+ NULL,
+ NULL
+ };
+#endif
+
+#if defined(SWIGPYTHON_BUILTIN)
+ static SwigPyClientData SwigPyObject_clientdata = {
+ 0, 0, 0, 0, 0, 0, 0
+ };
+ static PyGetSetDef this_getset_def = {
+ (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
+ };
+ static SwigPyGetSet thisown_getset_closure = {
+ (PyCFunction) SwigPyObject_own,
+ (PyCFunction) SwigPyObject_own
+ };
+ static PyGetSetDef thisown_getset_def = {
+ (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
+ };
+ PyObject *metatype_args;
+ PyTypeObject *builtin_pytype;
+ int builtin_base_count;
+ swig_type_info *builtin_basetype;
+ PyObject *tuple;
+ PyGetSetDescrObject *static_getset;
+ PyTypeObject *metatype;
+ SwigPyClientData *cd;
+ PyObject *public_interface, *public_symbol;
+ PyObject *this_descr;
+ PyObject *thisown_descr;
+ int i;
+
+ (void)builtin_pytype;
+ (void)builtin_base_count;
+ (void)builtin_basetype;
+ (void)tuple;
+ (void)static_getset;
+
+ /* metatype is used to implement static member variables. */
+ metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
+ assert(metatype_args);
+ metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL);
+ assert(metatype);
+ Py_DECREF(metatype_args);
+ metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
+ assert(PyType_Ready(metatype) >= 0);
+#endif
/* 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
+ m = PyModule_Create(&SWIG_module);
+#else
m = Py_InitModule((char *) SWIG_name, SwigMethods);
- d = PyModule_GetDict(m);
+#endif
+ md = d = PyModule_GetDict(m);
+ (void)md;
SWIG_InitializeModule(0);
- SWIG_InstallConstants(d,swig_const_table);
+#ifdef SWIGPYTHON_BUILTIN
+ SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
+ assert(SwigPyObject_stype);
+ cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
+ if (!cd) {
+ SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
+ SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
+ } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
+ PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
+# if PY_VERSION_HEX >= 0x03000000
+ return NULL;
+# else
+ return;
+# endif
+ }
+
+ /* All objects have a 'this' attribute */
+ this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
+ (void)this_descr;
+
+ /* All objects have a 'thisown' attribute */
+ thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
+ (void)thisown_descr;
+
+ public_interface = PyList_New(0);
+ public_symbol = 0;
+ (void)public_symbol;
+
+ PyDict_SetItemString(md, "__all__", public_interface);
+ Py_DECREF(public_interface);
+ for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
+ SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
+ for (i = 0; swig_const_table[i].name != 0; ++i)
+ SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
+#endif
+
+ SWIG_InstallConstants(d,swig_const_table);
SWIG_Python_SetConstant(d, "S_HUP",SWIG_From_int(static_cast< int >(S_HUP)));
SWIG_Python_SetConstant(d, "S_FREE",SWIG_From_int(static_cast< int >(S_FREE)));
SWIG_Python_SetConstant(d, "S_RDLOCK",SWIG_From_int(static_cast< int >(S_RDLOCK)));
+#if PY_VERSION_HEX >= 0x03000000
+ return m;
+#else
+ return;
+#endif
}
#include "mod_python_extra.c"
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.35
- *
- * This file is not intended to be easily readable and contains a number of
+ * Version 2.0.12
+ *
+ * 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.
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
* ----------------------------------------------------------------------------- */
+#define SWIGLUA
+#define SWIG_LUA_TARGET SWIG_LUA_FLAVOR_LUA
+#define SWIG_LUA_MODULE_GLOBAL
+
#ifdef __cplusplus
+/* SwigValueWrapper is described in swig.swg */
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:
- SwigValueWrapper() : tt(0) { }
- SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
- SwigValueWrapper(const T& t) : tt(new T(t)) { }
- ~SwigValueWrapper() { delete tt; }
- 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);
+ SwigValueWrapper() : pointer(0) { }
+ SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
+ operator T&() const { return *pointer.ptr; }
+ T *operator&() { return pointer.ptr; }
};
template <typename T> T SwigValueInit() {
#ifndef SWIGUNUSED
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
# define SWIGUNUSED
# endif
# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# 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
# ifdef __cplusplus
# define SWIGUNUSEDPARM(p)
# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif
# define SWIGSTDCALL __stdcall
# else
# define SWIGSTDCALL
-# endif
+# endif
#endif
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
/* -----------------------------------------------------------------------------
* swigrun.swg
*
- * This file contains generic CAPI SWIG runtime support for pointer
+ * This file contains generic C API SWIG runtime support for pointer
* type checking.
* ----------------------------------------------------------------------------- */
/*
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
- creating a static or dynamic library from the swig runtime code.
- In 99.9% of the cases, swig just needs to declare them as 'static'.
-
- But only do this if is strictly necessary, ie, if you have problems
- with your compiler or so.
+ creating a static or dynamic library from the SWIG runtime code.
+ In 99.9% of the cases, SWIG just needs to declare them as 'static'.
+
+ But only do this if strictly necessary, ie, if you have problems
+ with your compiler or suchlike.
*/
#ifndef SWIGRUNTIME
#define SWIG_POINTER_OWN 0x1
-/*
+/*
Flags/methods for returning states.
-
- The swig conversion methods, as ConvertPtr, return and integer
+
+ The SWIG conversion methods, as ConvertPtr, return an integer
that tells if the conversion was successful or not. And if not,
an error code can be returned (see swigerrors.swg for the codes).
-
+
Use the following macros/flags to set or process the returning
states.
-
- In old swig versions, you usually write code as:
+
+ In old versions of SWIG, code such as the following was usually written:
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
// success code
//fail code
}
- Now you can be more explicit as:
+ Now you can be more explicit:
int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
if (SWIG_IsOK(res)) {
// fail code
}
- that seems to be the same, but now you can also do
+ which is the same really, but now you can also do
Type *ptr;
int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
} else {
// fail code
}
-
+
I.e., now SWIG_ConvertPtr can return new objects and you can
identify the case and take care of the deallocation. Of course that
- requires also to SWIG_ConvertPtr to return new result values, as
-
- int SWIG_ConvertPtr(obj, ptr,...) {
- if (<obj is ok>) {
- if (<need new object>) {
- *ptr = <ptr to new allocated object>;
- return SWIG_NEWOBJ;
- } else {
- *ptr = <ptr to old object>;
- return SWIG_OLDOBJ;
- }
- } else {
- return SWIG_BADOBJ;
- }
+ also requires SWIG_ConvertPtr to return new result values, such as
+
+ int SWIG_ConvertPtr(obj, ptr,...) {
+ if (<obj is ok>) {
+ if (<need new object>) {
+ *ptr = <ptr to new allocated object>;
+ return SWIG_NEWOBJ;
+ } else {
+ *ptr = <ptr to old object>;
+ return SWIG_OLDOBJ;
+ }
+ } else {
+ return SWIG_BADOBJ;
+ }
}
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
- swig errors code.
+ SWIG errors code.
Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
allows to return the 'cast rank', for example, if you have this
int fooi(int);
and you call
-
+
food(1) // cast rank '1' (1 -> 1.0)
fooi(1) // cast rank '0'
just use the SWIG_AddCast()/SWIG_CheckState()
+*/
-
- */
-#define SWIG_OK (0)
+#define SWIG_OK (0)
#define SWIG_ERROR (-1)
#define SWIG_IsOK(r) (r >= 0)
-#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
+#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
/* The CastRankLimit says how many bits are used for the cast rank */
#define SWIG_CASTRANKLIMIT (1 << 8)
#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
-
/* Cast-Rank Mode */
#if defined(SWIG_CASTRANK_MODE)
# ifndef SWIG_TypeRank
# endif
# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
-SWIGINTERNINLINE int SWIG_AddCast(int r) {
+SWIGINTERNINLINE int SWIG_AddCast(int r) {
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
}
-SWIGINTERNINLINE int SWIG_CheckState(int r) {
- return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
+SWIGINTERNINLINE int SWIG_CheckState(int r) {
+ return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
}
#else /* no cast-rank mode */
-# define SWIG_AddCast
+# define SWIG_AddCast(r) (r)
# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
#endif
-
-
#include <string.h>
#ifdef __cplusplus
void *clientdata; /* Language specific module data */
} swig_module_info;
-/*
+/*
Compare two type names skipping the space characters, therefore
"char*" == "char *" and "Class<int>" == "Class<int >", etc.
/*
Check type equivalence in a name list like <name1>|<name2>|...
- Return 0 if not equal, 1 if equal
+ Return 0 if equal, -1 if nb < tb, 1 if nb > tb
*/
SWIGRUNTIME int
-SWIG_TypeEquiv(const char *nb, const char *tb) {
- int equiv = 0;
+SWIG_TypeCmp(const char *nb, const char *tb) {
+ int equiv = 1;
const char* te = tb + strlen(tb);
const char* ne = nb;
- while (!equiv && *ne) {
+ while (equiv != 0 && *ne) {
for (nb = ne; *ne; ++ne) {
if (*ne == '|') break;
}
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
+ equiv = SWIG_TypeNameComp(nb, ne, tb, te);
if (*ne) ++ne;
}
return equiv;
/*
Check type equivalence in a name list like <name1>|<name2>|...
- Return 0 if equal, -1 if nb < tb, 1 if nb > tb
+ Return 0 if not equal, 1 if equal
*/
SWIGRUNTIME int
-SWIG_TypeCompare(const char *nb, const char *tb) {
- int equiv = 0;
- const char* te = tb + strlen(tb);
- const char* ne = nb;
- while (!equiv && *ne) {
- for (nb = ne; *ne; ++ne) {
- if (*ne == '|') break;
- }
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
- if (*ne) ++ne;
- }
- return equiv;
+SWIG_TypeEquiv(const char *nb, const char *tb) {
+ return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
}
-
-/* think of this as a c++ template<> or a scheme macro */
-#define SWIG_TypeCheck_Template(comparison, ty) \
- if (ty) { \
- swig_cast_info *iter = ty->cast; \
- while (iter) { \
- if (comparison) { \
- if (iter == ty->cast) return iter; \
- /* Move iter to the top of the linked list */ \
- iter->prev->next = iter->next; \
- if (iter->next) \
- iter->next->prev = iter->prev; \
- iter->next = ty->cast; \
- iter->prev = 0; \
- if (ty->cast) ty->cast->prev = iter; \
- ty->cast = iter; \
- return iter; \
- } \
- iter = iter->next; \
- } \
- } \
- return 0
-
/*
Check the typename
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
- SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
+ if (ty) {
+ swig_cast_info *iter = ty->cast;
+ while (iter) {
+ if (strcmp(iter->type->name, c) == 0) {
+ if (iter == ty->cast)
+ return iter;
+ /* Move iter to the top of the linked list */
+ iter->prev->next = iter->next;
+ if (iter->next)
+ iter->next->prev = iter->prev;
+ iter->next = ty->cast;
+ iter->prev = 0;
+ if (ty->cast) ty->cast->prev = iter;
+ ty->cast = iter;
+ return iter;
+ }
+ iter = iter->next;
+ }
+ }
+ return 0;
}
-/* Same as previous function, except strcmp is replaced with a pointer comparison */
+/*
+ Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
+*/
SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
- SWIG_TypeCheck_Template(iter->type == from, into);
+SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
+ if (ty) {
+ swig_cast_info *iter = ty->cast;
+ while (iter) {
+ if (iter->type == from) {
+ if (iter == ty->cast)
+ return iter;
+ /* Move iter to the top of the linked list */
+ iter->prev->next = iter->next;
+ if (iter->next)
+ iter->next->prev = iter->prev;
+ iter->next = ty->cast;
+ iter->prev = 0;
+ if (ty->cast) ty->cast->prev = iter;
+ ty->cast = iter;
+ return iter;
+ }
+ iter = iter->next;
+ }
+ }
+ return 0;
}
/*
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
}
-/*
+/*
Dynamic pointer casting. Down an inheritance hierarchy
*/
SWIGRUNTIME swig_type_info *
return type->name;
}
-/*
+/*
Set the clientdata field for a type
*/
SWIGRUNTIME void
swig_cast_info *cast = ti->cast;
/* if (ti->clientdata == clientdata) return; */
ti->clientdata = clientdata;
-
+
while (cast) {
if (!cast->converter) {
swig_type_info *tc = cast->type;
if (!tc->clientdata) {
SWIG_TypeClientData(tc, clientdata);
}
- }
+ }
cast = cast->next;
}
}
SWIG_TypeClientData(ti, clientdata);
ti->owndata = 1;
}
-
+
/*
Search for a swig_type_info structure only by mangled name
Search is a O(log #types)
-
- We start searching at module start, and finish searching when start == end.
+
+ We start searching at module start, and finish searching when start == end.
Note: if start == end at the beginning of the function, we go all the way around
the circular list.
*/
SWIGRUNTIME swig_type_info *
-SWIG_MangledTypeQueryModule(swig_module_info *start,
- swig_module_info *end,
+SWIG_MangledTypeQueryModule(swig_module_info *start,
+ swig_module_info *end,
const char *name) {
swig_module_info *iter = start;
do {
register size_t r = iter->size - 1;
do {
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
- register size_t i = (l + r) >> 1;
+ register size_t i = (l + r) >> 1;
const char *iname = iter->types[i]->name;
if (iname) {
register int compare = strcmp(name, iname);
- if (compare == 0) {
+ if (compare == 0) {
return iter->types[i];
} else if (compare < 0) {
if (i) {
Search for a swig_type_info structure for either a mangled name or a human readable name.
It first searches the mangled names of the types, which is a O(log #types)
If a type is not found it then searches the human readable names, which is O(#types).
-
- We start searching at module start, and finish searching when start == end.
+
+ We start searching at module start, and finish searching when start == end.
Note: if start == end at the beginning of the function, we go all the way around
the circular list.
*/
SWIGRUNTIME swig_type_info *
-SWIG_TypeQueryModule(swig_module_info *start,
- swig_module_info *end,
+SWIG_TypeQueryModule(swig_module_info *start,
+ swig_module_info *end,
const char *name) {
/* STEP 1: Search the name field using binary search */
swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
iter = iter->next;
} while (iter != end);
}
-
+
/* neither found a match */
return 0;
}
-/*
+/*
Pack binary data into a string
*/
SWIGRUNTIME char *
return c;
}
-/*
+/*
Unpack binary data from a string
*/
SWIGRUNTIME const char *
uu = ((d - '0') << 4);
else if ((d >= 'a') && (d <= 'f'))
uu = ((d - ('a'-10)) << 4);
- else
+ else
return (char *) 0;
d = *(c++);
if ((d >= '0') && (d <= '9'))
uu |= (d - '0');
else if ((d >= 'a') && (d <= 'f'))
uu |= (d - ('a'-10));
- else
+ else
return (char *) 0;
*u = uu;
}
return c;
}
-/*
+/*
Pack 'void *' into a string buffer.
*/
SWIGRUNTIME char *
#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.
- *
* luarun.swg
*
* This file contains the runtime support for Lua modules
#include <stdlib.h> /* for malloc */
#include <assert.h> /* for a few sanity tests */
+/* -----------------------------------------------------------------------------
+ * Lua flavors
+ * ----------------------------------------------------------------------------- */
+
+#define SWIG_LUA_FLAVOR_LUA 1
+#define SWIG_LUA_FLAVOR_ELUA 2
+#define SWIG_LUA_FLAVOR_ELUAC 3
+
+#if !defined(SWIG_LUA_TARGET)
+# error SWIG_LUA_TARGET not defined
+#endif
+
+#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
+# define SWIG_LUA_CONSTTAB_INT(B, C) LSTRKEY(B), LNUMVAL(C)
+# define SWIG_LUA_CONSTTAB_FLOAT(B, C) LSTRKEY(B), LNUMVAL(C)
+# define SWIG_LUA_CONSTTAB_STRING(B, C) LSTRKEY(B), LSTRVAL(C)
+# define SWIG_LUA_CONSTTAB_CHAR(B, C) LSTRKEY(B), LNUMVAL(C)
+#else /* SWIG_LUA_FLAVOR_LUA */
+# define SWIG_LUA_CONSTTAB_INT(B, C) SWIG_LUA_INT, (char *)B, (long)C, 0, 0, 0
+# define SWIG_LUA_CONSTTAB_FLOAT(B, C) SWIG_LUA_FLOAT, (char *)B, 0, (double)C, 0, 0
+# define SWIG_LUA_CONSTTAB_STRING(B, C) SWIG_LUA_STRING, (char *)B, 0, 0, (void *)C, 0
+# define SWIG_LUA_CONSTTAB_CHAR(B, C) SWIG_LUA_CHAR, (char *)B, (long)C, 0, 0, 0
+#endif
+
+#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
+# define LRO_STRVAL(v) {{.p = (char *) v}, LUA_TSTRING}
+# define LSTRVAL LRO_STRVAL
+#endif
+
+/* -----------------------------------------------------------------------------
+ * compatibility defines
+ * ----------------------------------------------------------------------------- */
+
+/* History of Lua C API length functions: In Lua 5.0 (and before?)
+ there was "lua_strlen". In Lua 5.1, this was renamed "lua_objlen",
+ but a compatibility define of "lua_strlen" was added. In Lua 5.2,
+ this function was again renamed, to "lua_rawlen" (to emphasize that
+ it doesn't call the "__len" metamethod), and the compatibility
+ define of lua_strlen was removed. All SWIG uses have been updated
+ to "lua_rawlen", and we add our own defines of that here for older
+ versions of Lua. */
+#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501
+# define lua_rawlen lua_strlen
+#elif LUA_VERSION_NUM == 501
+# define lua_rawlen lua_objlen
+#endif
+
+
+/* lua_pushglobaltable is the recommended "future-proof" way to get
+ the global table for Lua 5.2 and later. Here we define
+ lua_pushglobaltable ourselves for Lua versions before 5.2. */
+#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502
+# define lua_pushglobaltable(L) lua_pushvalue(L, LUA_GLOBALSINDEX)
+#endif
+
+
+/* --------------------------------------------------------------------------
+ * Helper functions for error handling
+ * -------------------------------------------------------------------------- */
+
+/* Push the string STR on the Lua stack, like lua_pushstring, but
+ prefixed with the the location of the innermost Lua call-point
+ (as formated by luaL_where). */
+SWIGRUNTIME void
+SWIG_Lua_pusherrstring (lua_State *L, const char *str)
+{
+ luaL_where (L, 1);
+ lua_pushstring (L, str);
+ lua_concat (L, 2);
+}
+
+/* Push a formatted string generated from FMT and following args on
+ the Lua stack, like lua_pushfstring, but prefixed with the the
+ location of the innermost Lua call-point (as formated by luaL_where). */
+SWIGRUNTIME void
+SWIG_Lua_pushferrstring (lua_State *L, const char *fmt, ...)
+{
+ va_list argp;
+ va_start(argp, fmt);
+ luaL_where(L, 1);
+ lua_pushvfstring(L, fmt, argp);
+ va_end(argp);
+ lua_concat(L, 2);
+}
+
+
/* -----------------------------------------------------------------------------
* global swig types
* ----------------------------------------------------------------------------- */
lua_CFunction setmethod;
} swig_lua_attribute;
+// Can be used to create namespaces. Currently used to
+// wrap class static methods/variables/constants
+typedef struct {
+ const char *name;
+ swig_lua_method *ns_methods;
+ swig_lua_attribute *ns_attributes;
+ swig_lua_const_info *ns_constants;
+} swig_lua_namespace;
+
typedef struct swig_lua_class {
const char *name;
swig_type_info **type;
void (*destructor)(void *);
swig_lua_method *methods;
swig_lua_attribute *attributes;
+ swig_lua_namespace cls_static;
struct swig_lua_class **bases;
const char **base_names;
} swig_lua_class;
-/* this is the struct for wrappering all pointers in SwigLua
+/* this is the struct for wrapping all pointers in SwigLua
*/
typedef struct {
swig_type_info *type;
void *ptr;
} swig_lua_userdata;
-/* this is the struct for wrapping arbitary packed binary data
+/* this is the struct for wrapping arbitrary packed binary data
(currently it is only used for member function pointers)
the data ordering is similar to swig_lua_userdata, but it is currently not possible
-to tell the two structures apart within Swig, other than by looking at the type
+to tell the two structures apart within SWIG, other than by looking at the type
*/
typedef struct {
swig_type_info *type;
/* Contract support */
#define SWIG_contract_assert(expr, msg) \
- if (!(expr)) { lua_pushstring(L, (char *) msg); goto fail; } else
+ if (!(expr)) { SWIG_Lua_pusherrstring(L, (char *) msg); goto fail; } else
+
/* helper #defines */
#define SWIG_fail {goto fail;}
#define SWIG_fail_arg(func_name,argnum,type) \
- {lua_pushfstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\
+ {SWIG_Lua_pushferrstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\
func_name,argnum,type,SWIG_Lua_typename(L,argnum));\
goto fail;}
#define SWIG_fail_ptr(func_name,argnum,type) \
SWIG_fail_arg(func_name,argnum,(type && type->str)?type->str:"void*")
#define SWIG_check_num_args(func_name,a,b) \
if (lua_gettop(L)<a || lua_gettop(L)>b) \
- {lua_pushfstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\
+ {SWIG_Lua_pushferrstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\
goto fail;}
* ----------------------------------------------------------------------------- */
/* this function is called when trying to set an immutable.
-default value is to print an error.
+default action is to print an error.
This can removed with a compile flag SWIGLUA_IGNORE_SET_IMMUTABLE */
SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L)
{
/* there should be 1 param passed in: the new value */
#ifndef SWIGLUA_IGNORE_SET_IMMUTABLE
lua_pop(L,1); /* remove it */
- lua_pushstring(L,"This variable is immutable");
- lua_error(L);
+ luaL_error(L,"This variable is immutable");
#endif
return 0; /* should not return anything */
}
lua_tostring(L,2));
*/
/* get the metatable */
- assert(lua_istable(L,1)); /* just in case */
+#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
+ assert(lua_isrotable(L,1)); /* just in case */
+#else
+ assert(lua_istable(L,1)); /* default Lua action */
+#endif
lua_getmetatable(L,1); /* get the metatable */
- assert(lua_istable(L,-1)); /* just in case */
+#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
+ assert(lua_isrotable(L,-1)); /* just in case */
+#else
+ assert(lua_istable(L,-1));
+#endif
SWIG_Lua_get_table(L,".get"); /* get the .get table */
lua_remove(L,3); /* remove metatable */
+#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
+ if (lua_isrotable(L,-1))
+#else
if (lua_istable(L,-1))
+#endif
{
/* look for the key in the .get table */
lua_pushvalue(L,2); /* key */
}
lua_pop(L,1); /* remove the .get */
lua_pushnil(L); /* return a nil */
- return 1;
+ return 1;
}
/* the module.set method used for setting linked data */
(3) any for the new value
*/
/* get the metatable */
- assert(lua_istable(L,1)); /* just in case */
+#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
+ assert(lua_isrotable(L,1)); /* just in case */
+#else
+ assert(lua_istable(L,1)); /* default Lua action */
+#endif
lua_getmetatable(L,1); /* get the metatable */
- assert(lua_istable(L,-1)); /* just in case */
+#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
+ assert(lua_isrotable(L,-1)); /* just in case */
+#else
+ assert(lua_istable(L,-1));
+#endif
SWIG_Lua_get_table(L,".set"); /* get the .set table */
lua_remove(L,4); /* remove metatable */
+#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
+ if (lua_isrotable(L,-1))
+#else
if (lua_istable(L,-1))
+#endif
{
/* look for the key in the .set table */
lua_pushvalue(L,2); /* key */
lua_call(L,1,0);
return 0;
}
+#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA)
+ else {
+ return 0; // Exits stoically if an invalid key is initialized.
+ }
+#endif
}
lua_settop(L,3); /* reset back to start */
/* we now have the table, key & new value, so just set directly */
return 0;
}
-/* registering a module in lua */
+#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC))
+/* registering a module in lua. Pushes the module table on the stack. */
SWIGINTERN void SWIG_Lua_module_begin(lua_State* L,const char* name)
{
assert(lua_istable(L,-1)); /* just in case */
lua_newtable(L); /* the .set table */
lua_rawset(L,-3); /* add .set into metatable */
lua_setmetatable(L,-2); /* sets meta table in module */
+#ifdef SWIG_LUA_MODULE_GLOBAL
+ /* If requested, install the module directly into the global namespace. */
lua_rawset(L,-3); /* add module into parent */
SWIG_Lua_get_table(L,name); /* get the table back out */
+#else
+ /* Do not install the module table as global name. The stack top has
+ the module table with the name below. We pop the top and replace
+ the name with it. */
+ lua_replace(L,-2);
+#endif
}
/* ending the register */
}
lua_pop(L,1); /* tidy stack (remove meta) */
}
+#endif
/* adding a function module */
SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_CFunction fn)
SWIG_Lua_add_function(L,name,fn);
}
+/* -----------------------------------------------------------------------------
+ * global variable support code: namespaces
+ * ----------------------------------------------------------------------------- */
+
+SWIGINTERN int SWIG_Lua_namespace_get(lua_State* L)
+{
+/* there should be 2 params passed in
+ (1) table (not the meta table)
+ (2) string name of the attribute
+*/
+ assert(lua_istable(L,-2)); /* just in case */
+ lua_getmetatable(L,-2);
+ assert(lua_istable(L,-1));
+ SWIG_Lua_get_table(L,".get"); /* find the .get table */
+ assert(lua_istable(L,-1));
+ /* look for the key in the .get table */
+ lua_pushvalue(L,2); /* key */
+ lua_rawget(L,-2);
+ lua_remove(L,-2); /* stack tidy, remove .get table */
+ if (lua_iscfunction(L,-1))
+ { /* found it so call the fn & return its value */
+ lua_call(L,0,1); /* 1 value in (userdata),1 out (result) */
+ lua_remove(L,-2); /* stack tidy, remove metatable */
+ return 1;
+ }
+ lua_pop(L,1); /* remove whatever was there */
+ /* ok, so try the .fn table */
+ SWIG_Lua_get_table(L,".fn"); /* find the .get table */
+ assert(lua_istable(L,-1)); /* just in case */
+ lua_pushvalue(L,2); /* key */
+ lua_rawget(L,-2); /* look for the fn */
+ lua_remove(L,-2); /* stack tidy, remove .fn table */
+ if (lua_isfunction(L,-1)) /* note: whether it's a C function or lua function */
+ { /* found it so return the fn & let lua call it */
+ lua_remove(L,-2); /* stack tidy, remove metatable */
+ return 1;
+ }
+ lua_pop(L,1); /* remove whatever was there */
+ return 0;
+}
+
+SWIGINTERN int SWIG_Lua_namespace_set(lua_State* L)
+{
+/* there should be 3 params passed in
+ (1) table (not the meta table)
+ (2) string name of the attribute
+ (3) any for the new value
+*/
+
+ assert(lua_istable(L,1));
+ lua_getmetatable(L,1); /* get the meta table */
+ assert(lua_istable(L,-1));
+
+ SWIG_Lua_get_table(L,".set"); /* find the .set table */
+ if (lua_istable(L,-1))
+ {
+ /* look for the key in the .set table */
+ lua_pushvalue(L,2); /* key */
+ lua_rawget(L,-2);
+ if (lua_iscfunction(L,-1))
+ { /* found it so call the fn & return its value */
+ lua_pushvalue(L,3); /* value */
+ lua_call(L,1,0);
+ return 0;
+ }
+ lua_pop(L,1); /* remove the value */
+ }
+ lua_pop(L,1); /* remove the value .set table */
+ return 0;
+}
+
+SWIGINTERN void SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]); // forward declaration
+SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn); // forward declaration
+
+/* helper function - register namespace methods and attributes into namespace */
+SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State* L, swig_lua_namespace* ns)
+{
+ int i = 0;
+ assert(lua_istable(L,-1));
+ /* There must be table at the top of the stack */
+ SWIG_Lua_InstallConstants(L, ns->ns_constants);
+
+ lua_getmetatable(L,-1);
+
+ /* add fns */
+ for(i=0;ns->ns_attributes[i].name;i++){
+ SWIG_Lua_add_class_variable(L,ns->ns_attributes[i].name,ns->ns_attributes[i].getmethod,ns->ns_attributes[i].setmethod);
+ }
+
+ /* add methods to the metatable */
+ SWIG_Lua_get_table(L,".fn"); /* find the .fn table */
+ assert(lua_istable(L,-1)); /* just in case */
+ for(i=0;ns->ns_methods[i].name;i++){
+ SWIG_Lua_add_function(L,ns->ns_methods[i].name,ns->ns_methods[i].method);
+ }
+ lua_pop(L,1);
+
+ /* clear stack - remove metatble */
+ lua_pop(L,1);
+ return 0;
+}
+
+/* helper function. creates namespace table and add it to module table */
+SWIGINTERN int SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns)
+{
+ assert(lua_istable(L,-1)); /* just in case. This is supposed to be module table */
+ lua_checkstack(L,5);
+ lua_pushstring(L, ns->name);
+ lua_newtable(L); /* namespace itself */
+ lua_newtable(L); /* metatable for namespace */
+
+ /* add a table called ".get" */
+ lua_pushstring(L,".get");
+ lua_newtable(L);
+ lua_rawset(L,-3);
+ /* add a table called ".set" */
+ lua_pushstring(L,".set");
+ lua_newtable(L);
+ lua_rawset(L,-3);
+ /* add a table called ".fn" */
+ lua_pushstring(L,".fn");
+ lua_newtable(L);
+ lua_rawset(L,-3);
+
+ /* add accessor fns for using the .get,.set&.fn */
+ SWIG_Lua_add_function(L,"__index",SWIG_Lua_namespace_get);
+ SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_namespace_set);
+
+ lua_setmetatable(L,-2); /* set metatable */
+ lua_rawset(L,-3); /* add namespace to module table */
+ return 0;
+}
/* -----------------------------------------------------------------------------
* global variable support code: classes
* ----------------------------------------------------------------------------- */
return 0;
}
+/* the class.__tostring method called by the interpreter and print */
+SWIGINTERN int SWIG_Lua_class_tostring(lua_State* L)
+{
+/* there should be 1 param passed in
+ (1) userdata (not the metatable) */
+ assert(lua_isuserdata(L,1)); /* just in case */
+ unsigned long userData = (unsigned long)lua_touserdata(L,1); /* get the userdata address for later */
+ lua_getmetatable(L,1); /* get the meta table */
+ assert(lua_istable(L,-1)); /* just in case */
+
+ lua_getfield(L, -1, ".type");
+ const char* className = lua_tostring(L, -1);
+
+ char output[256];
+ sprintf(output, "<%s userdata: %lX>", className, userData);
+
+ lua_pushstring(L, (const char*)output);
+ return 1;
+}
+
+/* to manually disown some userdata */
+SWIGINTERN int SWIG_Lua_class_disown(lua_State* L)
+{
+/* there should be 1 params passed in
+ (1) userdata (not the meta table) */
+ swig_lua_userdata* usr;
+ assert(lua_isuserdata(L,-1)); /* just in case */
+ usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */
+
+ usr->own = 0; /* clear our ownership */
+ return 0;
+}
+
+/* Constructor proxy. Used when class name entry in module is not class constructor,
+but special table instead. */
+SWIGINTERN int SWIG_Lua_constructor_proxy(lua_State* L)
+{
+ /* unlimited number of parameters
+ First one is our proxy table and we should remove it
+ Other we should pass to real constructor
+ */
+ assert(lua_istable(L,1));
+ lua_pushstring(L,".constructor");
+ lua_rawget(L,1);
+ assert(!lua_isnil(L,-1));
+ lua_replace(L,1); /* replace our table with real constructor */
+ lua_call(L,lua_gettop(L)-1,1);
+ return 1;
+}
+
/* gets the swig class registry (or creates it) */
SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L)
{
}
}
+/* helper to recursively add class static details (static attributes, operations and constants) */
+SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State* L, swig_lua_class* clss)
+{
+ int i = 0;
+ /* The class namespace table must be on the top of the stack */
+ assert(lua_istable(L,-1));
+ /* call all the base classes first: we can then override these later: */
+ for(i=0;clss->bases[i];i++)
+ {
+ SWIG_Lua_add_class_static_details(L,clss->bases[i]);
+ }
+
+ SWIG_Lua_add_namespace_details(L, &clss->cls_static);
+}
+
/* helper to recursively add class details (attributes & operations) */
SWIGINTERN void SWIG_Lua_add_class_details(lua_State* L,swig_lua_class* clss)
{
swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]);
if (info) clss->bases[i] = (swig_lua_class *) info->clientdata;
}
- }
+ }
}
-/* performs the entire class registration process */
-SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss)
+/* Register class static methods,attributes etc as well as constructor proxy */
+SWIGINTERN void SWIG_Lua_class_register_static(lua_State* L, swig_lua_class* clss)
{
+ lua_checkstack(L,5); /* just in case */
+ assert(lua_istable(L,-1)); /* just in case */
+ assert(strcmp(clss->name, clss->cls_static.name) == 0); /* in class those 2 must be equal */
+
+ SWIG_Lua_namespace_register(L,&clss->cls_static);
+
+ SWIG_Lua_get_table(L,clss->name); // Get namespace table back
+ assert(lua_istable(L,-1)); /* just in case */
+
/* add its constructor to module with the name of the class
so you can do MyClass(...) as well as new_MyClass(...)
BUT only if a constructor is defined
(this overcomes the problem of pure virtual classes without constructors)*/
if (clss->constructor)
- SWIG_Lua_add_function(L,clss->name,clss->constructor);
+ {
+ SWIG_Lua_add_function(L,".constructor", clss->constructor);
+ lua_getmetatable(L,-1);
+ assert(lua_istable(L,-1)); /* just in case */
+ SWIG_Lua_add_function(L,"__call", SWIG_Lua_constructor_proxy);
+ lua_pop(L,1);
+ }
+
+ assert(lua_istable(L,-1)); /* just in case */
+ SWIG_Lua_add_class_static_details(L, clss);
+
+ /* clear stack */
+ lua_pop(L,1);
+}
+
+/* performs the entire class registration process */
+SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss)
+{
+ SWIG_Lua_class_register_static(L,clss);
SWIG_Lua_get_class_registry(L); /* get the registry */
lua_pushstring(L,clss->name); /* get the name */
/* add a table called ".fn" */
lua_pushstring(L,".fn");
lua_newtable(L);
+ /* add manual disown method */
+ SWIG_Lua_add_function(L,"__disown",SWIG_Lua_class_disown);
lua_rawset(L,-3);
/* add accessor fns for using the .get,.set&.fn */
SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get);
SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set);
SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct);
+ /* add tostring method for better output */
+ SWIG_Lua_add_function(L,"__tostring",SWIG_Lua_class_tostring);
/* add it */
lua_rawset(L,-3); /* metatable into registry */
lua_pop(L,1); /* tidy stack (remove registry) */
usr->ptr=ptr; /* set the ptr */
usr->type=type;
usr->own=own;
+#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
_SWIG_Lua_AddMetatable(L,type); /* add metatable */
+#endif
}
/* takes a object from the lua stack & converts it into an object of the correct type
int argnum,const char* func_name){
void* result;
if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))){
- lua_pushfstring(L,"Error in %s, expected a %s at argument number %d\n",
- func_name,(type && type->str)?type->str:"void*",argnum);
- lua_error(L);
+ luaL_error (L,"Error in %s, expected a %s at argument number %d\n",
+ func_name,(type && type->str)?type->str:"void*",argnum);
}
return result;
}
swig_lua_userdata* usr;
if (lua_isuserdata(L,tp))
{
- usr=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */
+ usr=(swig_lua_userdata*)lua_touserdata(L,tp); /* get data */
if (usr && usr->type && usr->type->str)
return usr->type->str;
return "userdata (unknown type)";
* global variable support code: class/struct typemap functions
* ----------------------------------------------------------------------------- */
+#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC))
/* Install Constants */
SWIGINTERN void
SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) {
}
}
}
+#endif
/* -----------------------------------------------------------------------------
* executing lua code from within the wrapper
#ifndef SWIG_DOSTRING_FAIL /* Allows redefining of error function */
#define SWIG_DOSTRING_FAIL(S) fprintf(stderr,"%s\n",S)
#endif
-/* Executes a C string in Lua a really simple way of calling lua from C
-Unfortunately lua keeps changing its API's, so we need a conditional compile
+/* Executes a C string in Lua which is a really simple way of calling lua from C
+Unfortunately lua keeps changing its APIs, so we need a conditional compile
In lua 5.0.X its lua_dostring()
In lua 5.1.X its luaL_dostring()
*/
#define SWIG_LUACODE luaopen_freeswitch_luacode
-
namespace swig {
typedef struct{} LANGUAGE_OBJ;
}
#include "switch_cpp.h"
#include "freeswitch_lua.h"
+
+SWIGINTERN int SWIG_lua_isnilstring(lua_State *L, int idx) {
+ int ret = lua_isstring(L, idx);
+ if (!ret)
+ ret = lua_isnil(L, idx);
+ return ret;
+}
+
#ifdef __cplusplus
extern "C" {
#endif
static int _wrap_setGlobalVariable(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
SWIG_check_num_args("setGlobalVariable",2,2)
- if(!lua_isstring(L,1)) SWIG_fail_arg("setGlobalVariable",1,"char *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("setGlobalVariable",2,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("setGlobalVariable",1,"char *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("setGlobalVariable",2,"char *");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
setGlobalVariable(arg1,arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_getGlobalVariable(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *result = 0 ;
SWIG_check_num_args("getGlobalVariable",1,1)
- if(!lua_isstring(L,1)) SWIG_fail_arg("getGlobalVariable",1,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("getGlobalVariable",1,"char *");
arg1 = (char *)lua_tostring(L, 1);
result = (char *)getGlobalVariable(arg1);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
free(result);
return SWIG_arg;
static int _wrap_consoleLog(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
SWIG_check_num_args("consoleLog",2,2)
- if(!lua_isstring(L,1)) SWIG_fail_arg("consoleLog",1,"char *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog",2,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("consoleLog",1,"char *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("consoleLog",2,"char *");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
consoleLog(arg1,arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_consoleLog2(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
char *arg5 = (char *) 0 ;
SWIG_check_num_args("consoleLog2",5,5)
- if(!lua_isstring(L,1)) SWIG_fail_arg("consoleLog2",1,"char *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog2",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog2",3,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("consoleLog2",1,"char *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("consoleLog2",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("consoleLog2",3,"char *");
if(!lua_isnumber(L,4)) SWIG_fail_arg("consoleLog2",4,"int");
- if(!lua_isstring(L,5)) SWIG_fail_arg("consoleLog2",5,"char *");
+ if(!SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("consoleLog2",5,"char *");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
arg4 = (int)lua_tonumber(L, 4);
arg5 = (char *)lua_tostring(L, 5);
consoleLog2(arg1,arg2,arg3,arg4,arg5);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_consoleCleanLog(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
SWIG_check_num_args("consoleCleanLog",1,1)
- if(!lua_isstring(L,1)) SWIG_fail_arg("consoleCleanLog",1,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("consoleCleanLog",1,"char *");
arg1 = (char *)lua_tostring(L, 1);
consoleCleanLog(arg1);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_running(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
bool result;
SWIG_check_num_args("running",0,0)
result = (bool)running();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_email(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) NULL ;
bool result;
SWIG_check_num_args("email",2,7)
- if(!lua_isstring(L,1)) SWIG_fail_arg("email",1,"char *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("email",2,"char *");
- if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("email",3,"char *");
- if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("email",4,"char *");
- if(lua_gettop(L)>=5 && !lua_isstring(L,5)) SWIG_fail_arg("email",5,"char *");
- if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg("email",6,"char *");
- if(lua_gettop(L)>=7 && !lua_isstring(L,7)) SWIG_fail_arg("email",7,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("email",1,"char *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("email",2,"char *");
+ if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("email",3,"char *");
+ if(lua_gettop(L)>=4 && !SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("email",4,"char *");
+ if(lua_gettop(L)>=5 && !SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("email",5,"char *");
+ if(lua_gettop(L)>=6 && !SWIG_lua_isnilstring(L,6)) SWIG_fail_arg("email",6,"char *");
+ if(lua_gettop(L)>=7 && !SWIG_lua_isnilstring(L,7)) SWIG_fail_arg("email",7,"char *");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
if(lua_gettop(L)>=3){
arg7 = (char *)lua_tostring(L, 7);
}
result = (bool)email(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_new_IVRMenu(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
IVRMenu *arg1 = (IVRMenu *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
int arg17 ;
IVRMenu *result = 0 ;
- SWIG_check_num_args("IVRMenu",17,17)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu",1,"IVRMenu *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("IVRMenu",2,"char const *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("IVRMenu",3,"char const *");
- if(!lua_isstring(L,4)) SWIG_fail_arg("IVRMenu",4,"char const *");
- if(!lua_isstring(L,5)) SWIG_fail_arg("IVRMenu",5,"char const *");
- if(!lua_isstring(L,6)) SWIG_fail_arg("IVRMenu",6,"char const *");
- if(!lua_isstring(L,7)) SWIG_fail_arg("IVRMenu",7,"char const *");
- if(!lua_isstring(L,8)) SWIG_fail_arg("IVRMenu",8,"char const *");
- if(!lua_isstring(L,9)) SWIG_fail_arg("IVRMenu",9,"char const *");
- if(!lua_isstring(L,10)) SWIG_fail_arg("IVRMenu",10,"char const *");
- if(!lua_isstring(L,11)) SWIG_fail_arg("IVRMenu",11,"char const *");
- if(!lua_isnumber(L,12)) SWIG_fail_arg("IVRMenu",12,"int");
- if(!lua_isnumber(L,13)) SWIG_fail_arg("IVRMenu",13,"int");
- if(!lua_isnumber(L,14)) SWIG_fail_arg("IVRMenu",14,"int");
- if(!lua_isnumber(L,15)) SWIG_fail_arg("IVRMenu",15,"int");
- if(!lua_isnumber(L,16)) SWIG_fail_arg("IVRMenu",16,"int");
- if(!lua_isnumber(L,17)) SWIG_fail_arg("IVRMenu",17,"int");
+ SWIG_check_num_args("IVRMenu::IVRMenu",17,17)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu::IVRMenu",1,"IVRMenu *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("IVRMenu::IVRMenu",2,"char const *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("IVRMenu::IVRMenu",3,"char const *");
+ if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("IVRMenu::IVRMenu",4,"char const *");
+ if(!SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("IVRMenu::IVRMenu",5,"char const *");
+ if(!SWIG_lua_isnilstring(L,6)) SWIG_fail_arg("IVRMenu::IVRMenu",6,"char const *");
+ if(!SWIG_lua_isnilstring(L,7)) SWIG_fail_arg("IVRMenu::IVRMenu",7,"char const *");
+ if(!SWIG_lua_isnilstring(L,8)) SWIG_fail_arg("IVRMenu::IVRMenu",8,"char const *");
+ if(!SWIG_lua_isnilstring(L,9)) SWIG_fail_arg("IVRMenu::IVRMenu",9,"char const *");
+ if(!SWIG_lua_isnilstring(L,10)) SWIG_fail_arg("IVRMenu::IVRMenu",10,"char const *");
+ if(!SWIG_lua_isnilstring(L,11)) SWIG_fail_arg("IVRMenu::IVRMenu",11,"char const *");
+ if(!lua_isnumber(L,12)) SWIG_fail_arg("IVRMenu::IVRMenu",12,"int");
+ if(!lua_isnumber(L,13)) SWIG_fail_arg("IVRMenu::IVRMenu",13,"int");
+ if(!lua_isnumber(L,14)) SWIG_fail_arg("IVRMenu::IVRMenu",14,"int");
+ if(!lua_isnumber(L,15)) SWIG_fail_arg("IVRMenu::IVRMenu",15,"int");
+ if(!lua_isnumber(L,16)) SWIG_fail_arg("IVRMenu::IVRMenu",16,"int");
+ if(!lua_isnumber(L,17)) SWIG_fail_arg("IVRMenu::IVRMenu",17,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){
SWIG_fail_ptr("new_IVRMenu",1,SWIGTYPE_p_IVRMenu);
arg16 = (int)lua_tonumber(L, 16);
arg17 = (int)lua_tonumber(L, 17);
result = (IVRMenu *)new IVRMenu(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9,(char const *)arg10,(char const *)arg11,arg12,arg13,arg14,arg15,arg16,arg17);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_IVRMenu,1); SWIG_arg++;
return SWIG_arg;
}
-static int _wrap_delete_IVRMenu(lua_State* L) {
- int SWIG_arg = -1;
- IVRMenu *arg1 = (IVRMenu *) 0 ;
-
- SWIG_check_num_args("IVRMenu",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu",1,"IVRMenu *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_IVRMenu",1,SWIGTYPE_p_IVRMenu);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static int _wrap_IVRMenu_bindAction(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
IVRMenu *arg1 = (IVRMenu *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
char *arg4 = (char *) 0 ;
- SWIG_check_num_args("bindAction",4,4)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bindAction",1,"IVRMenu *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("bindAction",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("bindAction",3,"char const *");
- if(!lua_isstring(L,4)) SWIG_fail_arg("bindAction",4,"char const *");
+ SWIG_check_num_args("IVRMenu::bindAction",4,4)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu::bindAction",1,"IVRMenu *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("IVRMenu::bindAction",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("IVRMenu::bindAction",3,"char const *");
+ if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("IVRMenu::bindAction",4,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){
SWIG_fail_ptr("IVRMenu_bindAction",1,SWIGTYPE_p_IVRMenu);
arg3 = (char *)lua_tostring(L, 3);
arg4 = (char *)lua_tostring(L, 4);
(arg1)->bindAction(arg2,(char const *)arg3,(char const *)arg4);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_IVRMenu_execute(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
IVRMenu *arg1 = (IVRMenu *) 0 ;
CoreSession *arg2 = (CoreSession *) 0 ;
char *arg3 = (char *) 0 ;
- SWIG_check_num_args("execute",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"IVRMenu *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("execute",2,"CoreSession *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *");
+ SWIG_check_num_args("IVRMenu::execute",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("IVRMenu::execute",1,"IVRMenu *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("IVRMenu::execute",2,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("IVRMenu::execute",3,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_IVRMenu,0))){
SWIG_fail_ptr("IVRMenu_execute",1,SWIGTYPE_p_IVRMenu);
arg3 = (char *)lua_tostring(L, 3);
(arg1)->execute(arg2,(char const *)arg3);
- SWIG_arg=0;
return SWIG_arg;
static swig_lua_attribute swig_IVRMenu_attributes[] = {
{0,0,0}
};
+static swig_lua_attribute swig_IVRMenu_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_IVRMenu_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_IVRMenu_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_IVRMenu_bases[] = {0};
static const char *swig_IVRMenu_base_names[] = {0};
-static swig_lua_class _wrap_class_IVRMenu = { "IVRMenu", &SWIGTYPE_p_IVRMenu,_wrap_new_IVRMenu, swig_delete_IVRMenu, swig_IVRMenu_methods, swig_IVRMenu_attributes, swig_IVRMenu_bases, swig_IVRMenu_base_names };
+static swig_lua_class _wrap_class_IVRMenu = { "IVRMenu", &SWIGTYPE_p_IVRMenu,_wrap_new_IVRMenu, swig_delete_IVRMenu, swig_IVRMenu_methods, swig_IVRMenu_attributes, { "IVRMenu", swig_IVRMenu_cls_methods, swig_IVRMenu_cls_attributes, swig_IVRMenu_cls_constants }, swig_IVRMenu_bases, swig_IVRMenu_base_names };
static int _wrap_new_API(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) NULL ;
API *result = 0 ;
- SWIG_check_num_args("API",0,1)
- if(lua_gettop(L)>=1 && !SWIG_isptrtype(L,1)) SWIG_fail_arg("API",1,"CoreSession *");
+ SWIG_check_num_args("API::API",0,1)
+ if(lua_gettop(L)>=1 && !SWIG_isptrtype(L,1)) SWIG_fail_arg("API::API",1,"CoreSession *");
if(lua_gettop(L)>=1){
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("new_API",1,SWIGTYPE_p_CoreSession);
}
}
result = (API *)new API(arg1);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_API,1); SWIG_arg++;
return SWIG_arg;
}
-static int _wrap_delete_API(lua_State* L) {
- int SWIG_arg = -1;
- API *arg1 = (API *) 0 ;
-
- SWIG_check_num_args("API",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("API",1,"API *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_API",1,SWIGTYPE_p_API);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static int _wrap_API_execute(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
API *arg1 = (API *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) NULL ;
char *result = 0 ;
- SWIG_check_num_args("execute",2,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"API *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("execute",2,"char const *");
- if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *");
+ SWIG_check_num_args("API::execute",2,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("API::execute",1,"API *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("API::execute",2,"char const *");
+ if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("API::execute",3,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){
SWIG_fail_ptr("API_execute",1,SWIGTYPE_p_API);
arg3 = (char *)lua_tostring(L, 3);
}
result = (char *)(arg1)->execute((char const *)arg2,(char const *)arg3);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
free(result);
return SWIG_arg;
static int _wrap_API_executeString(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
API *arg1 = (API *) 0 ;
char *arg2 = (char *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("executeString",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("executeString",1,"API *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("executeString",2,"char const *");
+ SWIG_check_num_args("API::executeString",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("API::executeString",1,"API *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("API::executeString",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){
SWIG_fail_ptr("API_executeString",1,SWIGTYPE_p_API);
arg2 = (char *)lua_tostring(L, 2);
result = (char *)(arg1)->executeString((char const *)arg2);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
free(result);
return SWIG_arg;
static int _wrap_API_getTime(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
API *arg1 = (API *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("getTime",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getTime",1,"API *");
+ SWIG_check_num_args("API::getTime",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("API::getTime",1,"API *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_API,0))){
SWIG_fail_ptr("API_getTime",1,SWIGTYPE_p_API);
}
result = (char *)(arg1)->getTime();
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static swig_lua_attribute swig_API_attributes[] = {
{0,0,0}
};
+static swig_lua_attribute swig_API_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_API_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_API_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_API_bases[] = {0};
static const char *swig_API_base_names[] = {0};
-static swig_lua_class _wrap_class_API = { "API", &SWIGTYPE_p_API,_wrap_new_API, swig_delete_API, swig_API_methods, swig_API_attributes, swig_API_bases, swig_API_base_names };
+static swig_lua_class _wrap_class_API = { "API", &SWIGTYPE_p_API,_wrap_new_API, swig_delete_API, swig_API_methods, swig_API_attributes, { "API", swig_API_cls_methods, swig_API_cls_attributes, swig_API_cls_constants }, swig_API_bases, swig_API_base_names };
static int _wrap_input_callback_state_t_function_set(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *arg2 = (void *) 0 ;
- SWIG_check_num_args("function",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("function",1,"input_callback_state_t *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("function",2,"void *");
+ SWIG_check_num_args("input_callback_state::function",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state::function",1,"input_callback_state *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("input_callback_state::function",2,"void *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){
SWIG_fail_ptr("input_callback_state_t_function_set",1,SWIGTYPE_p_input_callback_state);
arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_function_set");
if (arg1) (arg1)->function = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_input_callback_state_t_function_get(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *result = 0 ;
- SWIG_check_num_args("function",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("function",1,"input_callback_state_t *");
+ SWIG_check_num_args("input_callback_state::function",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state::function",1,"input_callback_state *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){
SWIG_fail_ptr("input_callback_state_t_function_get",1,SWIGTYPE_p_input_callback_state);
}
result = (void *) ((arg1)->function);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_input_callback_state_t_threadState_set(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *arg2 = (void *) 0 ;
- SWIG_check_num_args("threadState",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("threadState",1,"input_callback_state_t *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("threadState",2,"void *");
+ SWIG_check_num_args("input_callback_state::threadState",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state::threadState",1,"input_callback_state *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("input_callback_state::threadState",2,"void *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){
SWIG_fail_ptr("input_callback_state_t_threadState_set",1,SWIGTYPE_p_input_callback_state);
arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_threadState_set");
if (arg1) (arg1)->threadState = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_input_callback_state_t_threadState_get(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *result = 0 ;
- SWIG_check_num_args("threadState",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("threadState",1,"input_callback_state_t *");
+ SWIG_check_num_args("input_callback_state::threadState",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state::threadState",1,"input_callback_state *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){
SWIG_fail_ptr("input_callback_state_t_threadState_get",1,SWIGTYPE_p_input_callback_state);
}
result = (void *) ((arg1)->threadState);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_input_callback_state_t_extra_set(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *arg2 = (void *) 0 ;
- SWIG_check_num_args("extra",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("extra",1,"input_callback_state_t *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("extra",2,"void *");
+ SWIG_check_num_args("input_callback_state::extra",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state::extra",1,"input_callback_state *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("input_callback_state::extra",2,"void *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){
SWIG_fail_ptr("input_callback_state_t_extra_set",1,SWIGTYPE_p_input_callback_state);
arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"input_callback_state_t_extra_set");
if (arg1) (arg1)->extra = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_input_callback_state_t_extra_get(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
void *result = 0 ;
- SWIG_check_num_args("extra",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("extra",1,"input_callback_state_t *");
+ SWIG_check_num_args("input_callback_state::extra",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state::extra",1,"input_callback_state *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){
SWIG_fail_ptr("input_callback_state_t_extra_get",1,SWIGTYPE_p_input_callback_state);
}
result = (void *) ((arg1)->extra);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_input_callback_state_t_funcargs_set(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("funcargs",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("funcargs",1,"input_callback_state_t *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("funcargs",2,"char *");
+ SWIG_check_num_args("input_callback_state::funcargs",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state::funcargs",1,"input_callback_state *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("input_callback_state::funcargs",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){
SWIG_fail_ptr("input_callback_state_t_funcargs_set",1,SWIGTYPE_p_input_callback_state);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->funcargs) delete [] arg1->funcargs;
+ delete [] arg1->funcargs;
if (arg2) {
arg1->funcargs = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->funcargs, (const char *)arg2);
arg1->funcargs = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_input_callback_state_t_funcargs_get(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *arg1 = (input_callback_state *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("funcargs",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("funcargs",1,"input_callback_state_t *");
+ SWIG_check_num_args("input_callback_state::funcargs",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state::funcargs",1,"input_callback_state *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,0))){
SWIG_fail_ptr("input_callback_state_t_funcargs_get",1,SWIGTYPE_p_input_callback_state);
}
result = (char *) ((arg1)->funcargs);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_new_input_callback_state_t(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *result = 0 ;
+ int SWIG_arg = 0;
+ input_callback_state *result = 0 ;
- SWIG_check_num_args("input_callback_state_t::input_callback_state_t",0,0)
- result = (input_callback_state_t *)new input_callback_state_t();
- SWIG_arg=0;
+ SWIG_check_num_args("input_callback_state::input_callback_state",0,0)
+ result = (input_callback_state *)new input_callback_state();
SWIG_NewPointerObj(L,result,SWIGTYPE_p_input_callback_state,1); SWIG_arg++;
return SWIG_arg;
}
-static int _wrap_delete_input_callback_state_t(lua_State* L) {
- int SWIG_arg = -1;
- input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
-
- SWIG_check_num_args("input_callback_state_t::~input_callback_state_t",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("input_callback_state_t::~input_callback_state_t",1,"input_callback_state_t *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_input_callback_state,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_input_callback_state_t",1,SWIGTYPE_p_input_callback_state);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static void swig_delete_input_callback_state_t(void *obj) {
-input_callback_state_t *arg1 = (input_callback_state_t *) obj;
+input_callback_state *arg1 = (input_callback_state *) obj;
delete arg1;
}
-static swig_lua_method swig_input_callback_state_t_methods[] = {
+static swig_lua_method swig_input_callback_state_methods[] = {
{0,0}
};
-static swig_lua_attribute swig_input_callback_state_t_attributes[] = {
+static swig_lua_attribute swig_input_callback_state_attributes[] = {
{ "function", _wrap_input_callback_state_t_function_get, _wrap_input_callback_state_t_function_set},
{ "threadState", _wrap_input_callback_state_t_threadState_get, _wrap_input_callback_state_t_threadState_set},
{ "extra", _wrap_input_callback_state_t_extra_get, _wrap_input_callback_state_t_extra_set},
{ "funcargs", _wrap_input_callback_state_t_funcargs_get, _wrap_input_callback_state_t_funcargs_set},
{0,0,0}
};
-static swig_lua_class *swig_input_callback_state_t_bases[] = {0};
-static const char *swig_input_callback_state_t_base_names[] = {0};
-static swig_lua_class _wrap_class_input_callback_state_t = { "input_callback_state_t", &SWIGTYPE_p_input_callback_state,_wrap_new_input_callback_state_t, swig_delete_input_callback_state_t, swig_input_callback_state_t_methods, swig_input_callback_state_t_attributes, swig_input_callback_state_t_bases, swig_input_callback_state_t_base_names };
+static swig_lua_attribute swig_input_callback_state_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_input_callback_state_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_input_callback_state_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
+static swig_lua_class *swig_input_callback_state_bases[] = {0};
+static const char *swig_input_callback_state_base_names[] = {0};
+static swig_lua_class _wrap_class_input_callback_state = { "input_callback_state_t", &SWIGTYPE_p_input_callback_state,_wrap_new_input_callback_state_t, swig_delete_input_callback_state_t, swig_input_callback_state_methods, swig_input_callback_state_attributes, { "input_callback_state_t", swig_input_callback_state_cls_methods, swig_input_callback_state_cls_attributes, swig_input_callback_state_cls_constants }, swig_input_callback_state_bases, swig_input_callback_state_base_names };
static int _wrap_DTMF_digit_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
DTMF *arg1 = (DTMF *) 0 ;
char arg2 ;
- SWIG_check_num_args("digit",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("digit",1,"DTMF *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("digit",2,"char");
+ SWIG_check_num_args("DTMF::digit",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("DTMF::digit",1,"DTMF *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("DTMF::digit",2,"char");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){
SWIG_fail_ptr("DTMF_digit_set",1,SWIGTYPE_p_DTMF);
arg2 = (lua_tostring(L, 2))[0];
if (arg1) (arg1)->digit = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_DTMF_digit_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
DTMF *arg1 = (DTMF *) 0 ;
char result;
- SWIG_check_num_args("digit",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("digit",1,"DTMF *");
+ SWIG_check_num_args("DTMF::digit",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("DTMF::digit",1,"DTMF *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){
SWIG_fail_ptr("DTMF_digit_get",1,SWIGTYPE_p_DTMF);
}
result = (char) ((arg1)->digit);
- SWIG_arg=0;
lua_pushfstring(L,"%c",result); SWIG_arg++;
return SWIG_arg;
static int _wrap_DTMF_duration_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
DTMF *arg1 = (DTMF *) 0 ;
uint32_t arg2 ;
uint32_t *argp2 ;
- SWIG_check_num_args("duration",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("duration",1,"DTMF *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("duration",2,"uint32_t");
+ SWIG_check_num_args("DTMF::duration",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("DTMF::duration",1,"DTMF *");
+ if(!lua_isuserdata(L,2)) SWIG_fail_arg("DTMF::duration",2,"uint32_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){
SWIG_fail_ptr("DTMF_duration_set",1,SWIGTYPE_p_DTMF);
if (arg1) (arg1)->duration = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_DTMF_duration_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
DTMF *arg1 = (DTMF *) 0 ;
uint32_t result;
- SWIG_check_num_args("duration",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("duration",1,"DTMF *");
+ SWIG_check_num_args("DTMF::duration",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("DTMF::duration",1,"DTMF *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,0))){
SWIG_fail_ptr("DTMF_duration_get",1,SWIGTYPE_p_DTMF);
}
result = ((arg1)->duration);
- SWIG_arg=0;
{
- uint32_t * resultptr = new uint32_t((uint32_t &) result);
+ uint32_t * resultptr = new uint32_t((const uint32_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_uint32_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_new_DTMF(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char arg1 ;
uint32_t arg2 = (uint32_t) SWITCH_DEFAULT_DTMF_DURATION ;
- DTMF *result = 0 ;
uint32_t *argp2 ;
+ DTMF *result = 0 ;
- SWIG_check_num_args("DTMF",1,2)
- if(!lua_isstring(L,1)) SWIG_fail_arg("DTMF",1,"char");
- if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("DTMF",2,"uint32_t");
+ SWIG_check_num_args("DTMF::DTMF",1,2)
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("DTMF::DTMF",1,"char");
+ if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("DTMF::DTMF",2,"uint32_t");
arg1 = (lua_tostring(L, 1))[0];
if(lua_gettop(L)>=2){
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))){
arg2 = *argp2;
}
result = (DTMF *)new DTMF(arg1,arg2);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_DTMF,1); SWIG_arg++;
return SWIG_arg;
}
-static int _wrap_delete_DTMF(lua_State* L) {
- int SWIG_arg = -1;
- DTMF *arg1 = (DTMF *) 0 ;
-
- SWIG_check_num_args("DTMF",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("DTMF",1,"DTMF *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_DTMF,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_DTMF",1,SWIGTYPE_p_DTMF);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static void swig_delete_DTMF(void *obj) {
DTMF *arg1 = (DTMF *) obj;
delete arg1;
{ "duration", _wrap_DTMF_duration_get, _wrap_DTMF_duration_set},
{0,0,0}
};
+static swig_lua_attribute swig_DTMF_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_DTMF_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_DTMF_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_DTMF_bases[] = {0};
static const char *swig_DTMF_base_names[] = {0};
-static swig_lua_class _wrap_class_DTMF = { "DTMF", &SWIGTYPE_p_DTMF,_wrap_new_DTMF, swig_delete_DTMF, swig_DTMF_methods, swig_DTMF_attributes, swig_DTMF_bases, swig_DTMF_base_names };
+static swig_lua_class _wrap_class_DTMF = { "DTMF", &SWIGTYPE_p_DTMF,_wrap_new_DTMF, swig_delete_DTMF, swig_DTMF_methods, swig_DTMF_attributes, { "DTMF", swig_DTMF_cls_methods, swig_DTMF_cls_attributes, swig_DTMF_cls_constants }, swig_DTMF_bases, swig_DTMF_base_names };
static int _wrap_new_Stream__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Stream *result = 0 ;
- SWIG_check_num_args("Stream",0,0)
+ SWIG_check_num_args("Stream::Stream",0,0)
result = (Stream *)new Stream();
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream,1); SWIG_arg++;
return SWIG_arg;
static int _wrap_new_Stream__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
switch_stream_handle_t *arg1 = (switch_stream_handle_t *) 0 ;
Stream *result = 0 ;
- SWIG_check_num_args("Stream",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream",1,"switch_stream_handle_t *");
+ SWIG_check_num_args("Stream::Stream",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream::Stream",1,"switch_stream_handle_t *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_stream_handle_t,0))){
SWIG_fail_ptr("new_Stream",1,SWIGTYPE_p_switch_stream_handle_t);
}
result = (Stream *)new Stream(arg1);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Stream,1); SWIG_arg++;
return SWIG_arg;
}
}
- lua_pushstring(L,"No matching function for overloaded 'new_Stream'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_Stream'\n"
+ " Possible C/C++ prototypes are:\n"
+ " Stream::Stream()\n"
+ " Stream::Stream(switch_stream_handle_t *)\n");
lua_error(L);return 0;
}
-static int _wrap_delete_Stream(lua_State* L) {
- int SWIG_arg = -1;
- Stream *arg1 = (Stream *) 0 ;
-
- SWIG_check_num_args("Stream",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream",1,"Stream *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_Stream",1,SWIGTYPE_p_Stream);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static int _wrap_Stream_read(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Stream *arg1 = (Stream *) 0 ;
int *arg2 = (int *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("read",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("read",1,"Stream *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("read",2,"int *");
+ SWIG_check_num_args("Stream::read",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream::read",1,"Stream *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("Stream::read",2,"int *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){
SWIG_fail_ptr("Stream_read",1,SWIGTYPE_p_Stream);
}
result = (char *)(arg1)->read(arg2);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Stream_write(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Stream *arg1 = (Stream *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("write",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("write",1,"Stream *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("write",2,"char const *");
+ SWIG_check_num_args("Stream::write",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream::write",1,"Stream *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Stream::write",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){
SWIG_fail_ptr("Stream_write",1,SWIGTYPE_p_Stream);
arg2 = (char *)lua_tostring(L, 2);
(arg1)->write((char const *)arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Stream_raw_write(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Stream *arg1 = (Stream *) 0 ;
char *arg2 = (char *) 0 ;
int arg3 ;
- SWIG_check_num_args("raw_write",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raw_write",1,"Stream *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("raw_write",2,"char const *");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("raw_write",3,"int");
+ SWIG_check_num_args("Stream::raw_write",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream::raw_write",1,"Stream *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Stream::raw_write",2,"char const *");
+ if(!lua_isnumber(L,3)) SWIG_fail_arg("Stream::raw_write",3,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){
SWIG_fail_ptr("Stream_raw_write",1,SWIGTYPE_p_Stream);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (int)lua_tonumber(L, 3);
(arg1)->raw_write((char const *)arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Stream_get_data(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Stream *arg1 = (Stream *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("get_data",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_data",1,"Stream *");
+ SWIG_check_num_args("Stream::get_data",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Stream::get_data",1,"Stream *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){
SWIG_fail_ptr("Stream_get_data",1,SWIGTYPE_p_Stream);
}
result = (char *)(arg1)->get_data();
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static swig_lua_attribute swig_Stream_attributes[] = {
{0,0,0}
};
+static swig_lua_attribute swig_Stream_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_Stream_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_Stream_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_Stream_bases[] = {0};
static const char *swig_Stream_base_names[] = {0};
-static swig_lua_class _wrap_class_Stream = { "Stream", &SWIGTYPE_p_Stream,_wrap_new_Stream, swig_delete_Stream, swig_Stream_methods, swig_Stream_attributes, swig_Stream_bases, swig_Stream_base_names };
+static swig_lua_class _wrap_class_Stream = { "Stream", &SWIGTYPE_p_Stream,_wrap_new_Stream, swig_delete_Stream, swig_Stream_methods, swig_Stream_attributes, { "Stream", swig_Stream_cls_methods, swig_Stream_cls_attributes, swig_Stream_cls_constants }, swig_Stream_bases, swig_Stream_base_names };
static int _wrap_Event_event_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
switch_event_t *arg2 = (switch_event_t *) 0 ;
- SWIG_check_num_args("event",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("event",1,"Event *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("event",2,"switch_event_t *");
+ SWIG_check_num_args("Event::event",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::event",1,"Event *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("Event::event",2,"switch_event_t *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_event_set",1,SWIGTYPE_p_Event);
if (arg1) (arg1)->event = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_event_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
switch_event_t *result = 0 ;
- SWIG_check_num_args("event",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("event",1,"Event *");
+ SWIG_check_num_args("Event::event",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::event",1,"Event *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_event_get",1,SWIGTYPE_p_Event);
}
result = (switch_event_t *) ((arg1)->event);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_event_t,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_Event_serialized_string_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("serialized_string",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialized_string",1,"Event *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("serialized_string",2,"char *");
+ SWIG_check_num_args("Event::serialized_string",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::serialized_string",1,"Event *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::serialized_string",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_serialized_string_set",1,SWIGTYPE_p_Event);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->serialized_string) delete [] arg1->serialized_string;
+ delete [] arg1->serialized_string;
if (arg2) {
arg1->serialized_string = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->serialized_string, (const char *)arg2);
arg1->serialized_string = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Event_serialized_string_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("serialized_string",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialized_string",1,"Event *");
+ SWIG_check_num_args("Event::serialized_string",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::serialized_string",1,"Event *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_serialized_string_get",1,SWIGTYPE_p_Event);
}
result = (char *) ((arg1)->serialized_string);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_mine_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
int arg2 ;
- SWIG_check_num_args("mine",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mine",1,"Event *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("mine",2,"int");
+ SWIG_check_num_args("Event::mine",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::mine",1,"Event *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("Event::mine",2,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_mine_set",1,SWIGTYPE_p_Event);
arg2 = (int)lua_tonumber(L, 2);
if (arg1) (arg1)->mine = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_mine_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
int result;
- SWIG_check_num_args("mine",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mine",1,"Event *");
+ SWIG_check_num_args("Event::mine",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::mine",1,"Event *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_mine_get",1,SWIGTYPE_p_Event);
}
result = (int) ((arg1)->mine);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_new_Event__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) NULL ;
Event *result = 0 ;
- SWIG_check_num_args("Event",1,2)
- if(!lua_isstring(L,1)) SWIG_fail_arg("Event",1,"char const *");
- if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("Event",2,"char const *");
+ SWIG_check_num_args("Event::Event",1,2)
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("Event::Event",1,"char const *");
+ if(lua_gettop(L)>=2 && !SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::Event",2,"char const *");
arg1 = (char *)lua_tostring(L, 1);
if(lua_gettop(L)>=2){
arg2 = (char *)lua_tostring(L, 2);
}
result = (Event *)new Event((char const *)arg1,(char const *)arg2);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++;
return SWIG_arg;
static int _wrap_new_Event__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
switch_event_t *arg1 = (switch_event_t *) 0 ;
int arg2 = (int) 0 ;
Event *result = 0 ;
- SWIG_check_num_args("Event",1,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event",1,"switch_event_t *");
- if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("Event",2,"int");
+ SWIG_check_num_args("Event::Event",1,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::Event",1,"switch_event_t *");
+ if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("Event::Event",2,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_event_t,0))){
SWIG_fail_ptr("new_Event",1,SWIGTYPE_p_switch_event_t);
arg2 = (int)lua_tonumber(L, 2);
}
result = (Event *)new Event(arg1,arg2);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++;
return SWIG_arg;
if ((argc >= 1) && (argc <= 2)) {
int _v;
{
- _v = lua_isstring(L,argv[0]);
+ _v = SWIG_lua_isnilstring(L,argv[0]);
}
if (_v) {
if (argc <= 1) {
return _wrap_new_Event__SWIG_0(L);
}
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
return _wrap_new_Event__SWIG_0(L);
}
}
- lua_pushstring(L,"No matching function for overloaded 'new_Event'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_Event'\n"
+ " Possible C/C++ prototypes are:\n"
+ " Event::Event(char const *,char const *)\n"
+ " Event::Event(switch_event_t *,int)\n");
lua_error(L);return 0;
}
-static int _wrap_delete_Event(lua_State* L) {
- int SWIG_arg = -1;
- Event *arg1 = (Event *) 0 ;
-
- SWIG_check_num_args("Event",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event",1,"Event *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_Event",1,SWIGTYPE_p_Event);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static int _wrap_Event_chat_execute(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) NULL ;
int result;
- SWIG_check_num_args("chat_execute",2,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("chat_execute",1,"Event *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("chat_execute",2,"char const *");
- if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("chat_execute",3,"char const *");
+ SWIG_check_num_args("Event::chat_execute",2,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::chat_execute",1,"Event *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::chat_execute",2,"char const *");
+ if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("Event::chat_execute",3,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_chat_execute",1,SWIGTYPE_p_Event);
arg3 = (char *)lua_tostring(L, 3);
}
result = (int)(arg1)->chat_execute((char const *)arg2,(char const *)arg3);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_Event_chat_send(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) NULL ;
int result;
- SWIG_check_num_args("chat_send",1,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("chat_send",1,"Event *");
- if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("chat_send",2,"char const *");
+ SWIG_check_num_args("Event::chat_send",1,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::chat_send",1,"Event *");
+ if(lua_gettop(L)>=2 && !SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::chat_send",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_chat_send",1,SWIGTYPE_p_Event);
arg2 = (char *)lua_tostring(L, 2);
}
result = (int)(arg1)->chat_send((char const *)arg2);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_Event_serialize(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) NULL ;
char *result = 0 ;
- SWIG_check_num_args("serialize",1,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("serialize",1,"Event *");
- if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("serialize",2,"char const *");
+ SWIG_check_num_args("Event::serialize",1,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::serialize",1,"Event *");
+ if(lua_gettop(L)>=2 && !SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::serialize",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_serialize",1,SWIGTYPE_p_Event);
arg2 = (char *)lua_tostring(L, 2);
}
result = (char *)(arg1)->serialize((char const *)arg2);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_setPriority(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
switch_priority_t arg2 = (switch_priority_t) SWITCH_PRIORITY_NORMAL ;
- bool result;
switch_priority_t *argp2 ;
+ bool result;
- SWIG_check_num_args("setPriority",1,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setPriority",1,"Event *");
- if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("setPriority",2,"switch_priority_t");
+ SWIG_check_num_args("Event::setPriority",1,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::setPriority",1,"Event *");
+ if(lua_gettop(L)>=2 && !lua_isuserdata(L,2)) SWIG_fail_arg("Event::setPriority",2,"switch_priority_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_setPriority",1,SWIGTYPE_p_Event);
arg2 = *argp2;
}
result = (bool)(arg1)->setPriority(arg2);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_getHeader(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("getHeader",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getHeader",1,"Event *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("getHeader",2,"char const *");
+ SWIG_check_num_args("Event::getHeader",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::getHeader",1,"Event *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::getHeader",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_getHeader",1,SWIGTYPE_p_Event);
arg2 = (char *)lua_tostring(L, 2);
result = (char *)(arg1)->getHeader((char const *)arg2);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_getBody(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("getBody",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getBody",1,"Event *");
+ SWIG_check_num_args("Event::getBody",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::getBody",1,"Event *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_getBody",1,SWIGTYPE_p_Event);
}
result = (char *)(arg1)->getBody();
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_getType(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("getType",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getType",1,"Event *");
+ SWIG_check_num_args("Event::getType",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::getType",1,"Event *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_getType",1,SWIGTYPE_p_Event);
}
result = (char *)(arg1)->getType();
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_addBody(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
bool result;
- SWIG_check_num_args("addBody",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("addBody",1,"Event *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("addBody",2,"char const *");
+ SWIG_check_num_args("Event::addBody",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::addBody",1,"Event *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::addBody",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_addBody",1,SWIGTYPE_p_Event);
arg2 = (char *)lua_tostring(L, 2);
result = (bool)(arg1)->addBody((char const *)arg2);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_addHeader(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
bool result;
- SWIG_check_num_args("addHeader",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("addHeader",1,"Event *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("addHeader",2,"char const *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("addHeader",3,"char const *");
+ SWIG_check_num_args("Event::addHeader",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::addHeader",1,"Event *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::addHeader",2,"char const *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("Event::addHeader",3,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_addHeader",1,SWIGTYPE_p_Event);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_delHeader(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
char *arg2 = (char *) 0 ;
bool result;
- SWIG_check_num_args("delHeader",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("delHeader",1,"Event *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("delHeader",2,"char const *");
+ SWIG_check_num_args("Event::delHeader",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::delHeader",1,"Event *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("Event::delHeader",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_delHeader",1,SWIGTYPE_p_Event);
arg2 = (char *)lua_tostring(L, 2);
result = (bool)(arg1)->delHeader((char const *)arg2);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Event_fire(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
Event *arg1 = (Event *) 0 ;
bool result;
- SWIG_check_num_args("fire",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("fire",1,"Event *");
+ SWIG_check_num_args("Event::fire",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("Event::fire",1,"Event *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Event,0))){
SWIG_fail_ptr("Event_fire",1,SWIGTYPE_p_Event);
}
result = (bool)(arg1)->fire();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
{ "mine", _wrap_Event_mine_get, _wrap_Event_mine_set},
{0,0,0}
};
+static swig_lua_attribute swig_Event_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_Event_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_Event_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_Event_bases[] = {0};
static const char *swig_Event_base_names[] = {0};
-static swig_lua_class _wrap_class_Event = { "Event", &SWIGTYPE_p_Event,_wrap_new_Event, swig_delete_Event, swig_Event_methods, swig_Event_attributes, swig_Event_bases, swig_Event_base_names };
+static swig_lua_class _wrap_class_Event = { "Event", &SWIGTYPE_p_Event,_wrap_new_Event, swig_delete_Event, swig_Event_methods, swig_Event_attributes, { "Event", swig_Event_cls_methods, swig_Event_cls_attributes, swig_Event_cls_constants }, swig_Event_bases, swig_Event_base_names };
static int _wrap_EventConsumer_events_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
switch_queue_t *arg2 = (switch_queue_t *) 0 ;
- SWIG_check_num_args("events",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("events",1,"EventConsumer *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("events",2,"switch_queue_t *");
+ SWIG_check_num_args("EventConsumer::events",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::events",1,"EventConsumer *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("EventConsumer::events",2,"switch_queue_t *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_events_set",1,SWIGTYPE_p_EventConsumer);
if (arg1) (arg1)->events = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_EventConsumer_events_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
switch_queue_t *result = 0 ;
- SWIG_check_num_args("events",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("events",1,"EventConsumer *");
+ SWIG_check_num_args("EventConsumer::events",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::events",1,"EventConsumer *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_events_get",1,SWIGTYPE_p_EventConsumer);
}
result = (switch_queue_t *) ((arg1)->events);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_queue_t,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_EventConsumer_e_event_id_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
switch_event_types_t arg2 ;
switch_event_types_t *argp2 ;
- SWIG_check_num_args("e_event_id",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_event_id",1,"EventConsumer *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("e_event_id",2,"switch_event_types_t");
+ SWIG_check_num_args("EventConsumer::e_event_id",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::e_event_id",1,"EventConsumer *");
+ if(!lua_isuserdata(L,2)) SWIG_fail_arg("EventConsumer::e_event_id",2,"switch_event_types_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_e_event_id_set",1,SWIGTYPE_p_EventConsumer);
if (arg1) (arg1)->e_event_id = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_EventConsumer_e_event_id_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
switch_event_types_t result;
- SWIG_check_num_args("e_event_id",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_event_id",1,"EventConsumer *");
+ SWIG_check_num_args("EventConsumer::e_event_id",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::e_event_id",1,"EventConsumer *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_e_event_id_get",1,SWIGTYPE_p_EventConsumer);
}
result = ((arg1)->e_event_id);
- SWIG_arg=0;
{
- switch_event_types_t * resultptr = new switch_event_types_t((switch_event_types_t &) result);
+ switch_event_types_t * resultptr = new switch_event_types_t((const switch_event_types_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_event_types_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_EventConsumer_e_callback_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("e_callback",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_callback",1,"EventConsumer *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("e_callback",2,"char *");
+ SWIG_check_num_args("EventConsumer::e_callback",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::e_callback",1,"EventConsumer *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("EventConsumer::e_callback",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_e_callback_set",1,SWIGTYPE_p_EventConsumer);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->e_callback) delete [] arg1->e_callback;
+ delete [] arg1->e_callback;
if (arg2) {
arg1->e_callback = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->e_callback, (const char *)arg2);
arg1->e_callback = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_EventConsumer_e_callback_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("e_callback",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_callback",1,"EventConsumer *");
+ SWIG_check_num_args("EventConsumer::e_callback",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::e_callback",1,"EventConsumer *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_e_callback_get",1,SWIGTYPE_p_EventConsumer);
}
result = (char *) ((arg1)->e_callback);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_EventConsumer_e_subclass_name_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("e_subclass_name",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_subclass_name",1,"EventConsumer *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("e_subclass_name",2,"char *");
+ SWIG_check_num_args("EventConsumer::e_subclass_name",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::e_subclass_name",1,"EventConsumer *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("EventConsumer::e_subclass_name",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_e_subclass_name_set",1,SWIGTYPE_p_EventConsumer);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->e_subclass_name) delete [] arg1->e_subclass_name;
+ delete [] arg1->e_subclass_name;
if (arg2) {
arg1->e_subclass_name = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->e_subclass_name, (const char *)arg2);
arg1->e_subclass_name = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_EventConsumer_e_subclass_name_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("e_subclass_name",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_subclass_name",1,"EventConsumer *");
+ SWIG_check_num_args("EventConsumer::e_subclass_name",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::e_subclass_name",1,"EventConsumer *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_e_subclass_name_get",1,SWIGTYPE_p_EventConsumer);
}
result = (char *) ((arg1)->e_subclass_name);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_EventConsumer_e_cb_arg_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("e_cb_arg",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_cb_arg",1,"EventConsumer *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("e_cb_arg",2,"char *");
+ SWIG_check_num_args("EventConsumer::e_cb_arg",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::e_cb_arg",1,"EventConsumer *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("EventConsumer::e_cb_arg",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_e_cb_arg_set",1,SWIGTYPE_p_EventConsumer);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->e_cb_arg) delete [] arg1->e_cb_arg;
+ delete [] arg1->e_cb_arg;
if (arg2) {
arg1->e_cb_arg = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->e_cb_arg, (const char *)arg2);
arg1->e_cb_arg = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_EventConsumer_e_cb_arg_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("e_cb_arg",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_cb_arg",1,"EventConsumer *");
+ SWIG_check_num_args("EventConsumer::e_cb_arg",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::e_cb_arg",1,"EventConsumer *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_e_cb_arg_get",1,SWIGTYPE_p_EventConsumer);
}
result = (char *) ((arg1)->e_cb_arg);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_EventConsumer_enodes_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
switch_event_node_t **arg2 ;
- SWIG_check_num_args("enodes",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("enodes",1,"EventConsumer *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("enodes",2,"switch_event_node_t *[SWITCH_EVENT_ALL+1]");
+ SWIG_check_num_args("EventConsumer::enodes",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::enodes",1,"EventConsumer *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("EventConsumer::enodes",2,"switch_event_node_t *[SWITCH_EVENT_ALL+1]");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_enodes_set",1,SWIGTYPE_p_EventConsumer);
switch_event_node_t * *b = (switch_event_node_t * *) arg1->enodes;
for (ii = 0; ii < (size_t)SWITCH_EVENT_ALL+1; ii++) b[ii] = *((switch_event_node_t * *) arg2 + ii);
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_EventConsumer_enodes_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
switch_event_node_t **result = 0 ;
- SWIG_check_num_args("enodes",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("enodes",1,"EventConsumer *");
+ SWIG_check_num_args("EventConsumer::enodes",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::enodes",1,"EventConsumer *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_enodes_get",1,SWIGTYPE_p_EventConsumer);
}
result = (switch_event_node_t **)(switch_event_node_t **) ((arg1)->enodes);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_p_switch_event_node_t,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_EventConsumer_node_index_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
uint32_t arg2 ;
uint32_t *argp2 ;
- SWIG_check_num_args("node_index",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_index",1,"EventConsumer *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("node_index",2,"uint32_t");
+ SWIG_check_num_args("EventConsumer::node_index",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::node_index",1,"EventConsumer *");
+ if(!lua_isuserdata(L,2)) SWIG_fail_arg("EventConsumer::node_index",2,"uint32_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_node_index_set",1,SWIGTYPE_p_EventConsumer);
if (arg1) (arg1)->node_index = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_EventConsumer_node_index_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
uint32_t result;
- SWIG_check_num_args("node_index",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_index",1,"EventConsumer *");
+ SWIG_check_num_args("EventConsumer::node_index",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::node_index",1,"EventConsumer *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_node_index_get",1,SWIGTYPE_p_EventConsumer);
}
result = ((arg1)->node_index);
- SWIG_arg=0;
{
- uint32_t * resultptr = new uint32_t((uint32_t &) result);
+ uint32_t * resultptr = new uint32_t((const uint32_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_uint32_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_new_EventConsumer(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) NULL ;
char *arg2 = (char *) "" ;
int arg3 = (int) 5000 ;
EventConsumer *result = 0 ;
- SWIG_check_num_args("EventConsumer",0,3)
- if(lua_gettop(L)>=1 && !lua_isstring(L,1)) SWIG_fail_arg("EventConsumer",1,"char const *");
- if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("EventConsumer",2,"char const *");
- if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("EventConsumer",3,"int");
+ SWIG_check_num_args("EventConsumer::EventConsumer",0,3)
+ if(lua_gettop(L)>=1 && !SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("EventConsumer::EventConsumer",1,"char const *");
+ if(lua_gettop(L)>=2 && !SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("EventConsumer::EventConsumer",2,"char const *");
+ if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("EventConsumer::EventConsumer",3,"int");
if(lua_gettop(L)>=1){
arg1 = (char *)lua_tostring(L, 1);
}
arg3 = (int)lua_tonumber(L, 3);
}
result = (EventConsumer *)new EventConsumer((char const *)arg1,(char const *)arg2,arg3);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_EventConsumer,1); SWIG_arg++;
return SWIG_arg;
}
-static int _wrap_delete_EventConsumer(lua_State* L) {
- int SWIG_arg = -1;
- EventConsumer *arg1 = (EventConsumer *) 0 ;
-
- SWIG_check_num_args("EventConsumer",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer",1,"EventConsumer *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_EventConsumer",1,SWIGTYPE_p_EventConsumer);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static int _wrap_EventConsumer_bind(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) "" ;
int result;
- SWIG_check_num_args("bind",2,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bind",1,"EventConsumer *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("bind",2,"char const *");
- if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("bind",3,"char const *");
+ SWIG_check_num_args("EventConsumer::bind",2,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::bind",1,"EventConsumer *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("EventConsumer::bind",2,"char const *");
+ if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("EventConsumer::bind",3,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_bind",1,SWIGTYPE_p_EventConsumer);
arg3 = (char *)lua_tostring(L, 3);
}
result = (int)(arg1)->bind((char const *)arg2,(char const *)arg3);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_EventConsumer_pop(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
int arg2 = (int) 0 ;
int arg3 = (int) 0 ;
Event *result = 0 ;
- SWIG_check_num_args("pop",1,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("pop",1,"EventConsumer *");
- if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("pop",2,"int");
- if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("pop",3,"int");
+ SWIG_check_num_args("EventConsumer::pop",1,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::pop",1,"EventConsumer *");
+ if(lua_gettop(L)>=2 && !lua_isnumber(L,2)) SWIG_fail_arg("EventConsumer::pop",2,"int");
+ if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("EventConsumer::pop",3,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_pop",1,SWIGTYPE_p_EventConsumer);
arg3 = (int)lua_tonumber(L, 3);
}
result = (Event *)(arg1)->pop(arg2,arg3);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,1); SWIG_arg++;
return SWIG_arg;
static int _wrap_EventConsumer_cleanup(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
EventConsumer *arg1 = (EventConsumer *) 0 ;
- SWIG_check_num_args("cleanup",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cleanup",1,"EventConsumer *");
+ SWIG_check_num_args("EventConsumer::cleanup",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer::cleanup",1,"EventConsumer *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
SWIG_fail_ptr("EventConsumer_cleanup",1,SWIGTYPE_p_EventConsumer);
}
(arg1)->cleanup();
- SWIG_arg=0;
return SWIG_arg;
{ "node_index", _wrap_EventConsumer_node_index_get, _wrap_EventConsumer_node_index_set},
{0,0,0}
};
+static swig_lua_attribute swig_EventConsumer_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_EventConsumer_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_EventConsumer_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_EventConsumer_bases[] = {0};
static const char *swig_EventConsumer_base_names[] = {0};
-static swig_lua_class _wrap_class_EventConsumer = { "EventConsumer", &SWIGTYPE_p_EventConsumer,_wrap_new_EventConsumer, swig_delete_EventConsumer, swig_EventConsumer_methods, swig_EventConsumer_attributes, swig_EventConsumer_bases, swig_EventConsumer_base_names };
-
-static int _wrap_delete_CoreSession(lua_State* L) {
- int SWIG_arg = -1;
- CoreSession *arg1 = (CoreSession *) 0 ;
-
- SWIG_check_num_args("CoreSession",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession",1,"CoreSession *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_CoreSession",1,SWIGTYPE_p_CoreSession);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
+static swig_lua_class _wrap_class_EventConsumer = { "EventConsumer", &SWIGTYPE_p_EventConsumer,_wrap_new_EventConsumer, swig_delete_EventConsumer, swig_EventConsumer_methods, swig_EventConsumer_attributes, { "EventConsumer", swig_EventConsumer_cls_methods, swig_EventConsumer_cls_attributes, swig_EventConsumer_cls_constants }, swig_EventConsumer_bases, swig_EventConsumer_base_names };
static int _wrap_CoreSession_session_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_core_session_t *arg2 = (switch_core_session_t *) 0 ;
- SWIG_check_num_args("session",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("session",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("session",2,"switch_core_session_t *");
+ SWIG_check_num_args("CoreSession::session",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::session",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::session",2,"switch_core_session_t *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_session_set",1,SWIGTYPE_p_CoreSession);
if (arg1) (arg1)->session = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_session_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_core_session_t *result = 0 ;
- SWIG_check_num_args("session",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("session",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::session",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::session",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_session_get",1,SWIGTYPE_p_CoreSession);
}
result = (switch_core_session_t *) ((arg1)->session);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_core_session_t,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_channel_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_channel_t *arg2 = (switch_channel_t *) 0 ;
- SWIG_check_num_args("channel",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("channel",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("channel",2,"switch_channel_t *");
+ SWIG_check_num_args("CoreSession::channel",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::channel",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::channel",2,"switch_channel_t *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_channel_set",1,SWIGTYPE_p_CoreSession);
if (arg1) (arg1)->channel = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_channel_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_channel_t *result = 0 ;
- SWIG_check_num_args("channel",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("channel",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::channel",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::channel",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_channel_get",1,SWIGTYPE_p_CoreSession);
}
result = (switch_channel_t *) ((arg1)->channel);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_channel_t,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_flags_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
unsigned int arg2 ;
- SWIG_check_num_args("flags",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flags",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("flags",2,"unsigned int");
+ SWIG_check_num_args("CoreSession::flags",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::flags",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::flags",2,"unsigned int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_flags_set",1,SWIGTYPE_p_CoreSession);
}
+ SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative")
arg2 = (unsigned int)lua_tonumber(L, 2);
if (arg1) (arg1)->flags = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_flags_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
unsigned int result;
- SWIG_check_num_args("flags",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flags",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::flags",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::flags",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_flags_get",1,SWIGTYPE_p_CoreSession);
}
result = (unsigned int) ((arg1)->flags);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_allocated_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
- SWIG_check_num_args("allocated",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("allocated",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("allocated",2,"int");
+ SWIG_check_num_args("CoreSession::allocated",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::allocated",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::allocated",2,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_allocated_set",1,SWIGTYPE_p_CoreSession);
arg2 = (int)lua_tonumber(L, 2);
if (arg1) (arg1)->allocated = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_allocated_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int result;
- SWIG_check_num_args("allocated",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("allocated",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::allocated",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::allocated",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_allocated_get",1,SWIGTYPE_p_CoreSession);
}
result = (int) ((arg1)->allocated);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_cb_state_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
input_callback_state *arg2 = (input_callback_state *) 0 ;
- SWIG_check_num_args("cb_state",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_state",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("cb_state",2,"input_callback_state *");
+ SWIG_check_num_args("CoreSession::cb_state",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::cb_state",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::cb_state",2,"input_callback_state *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_cb_state_set",1,SWIGTYPE_p_CoreSession);
if (arg1) (arg1)->cb_state = *arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_cb_state_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
input_callback_state *result = 0 ;
- SWIG_check_num_args("cb_state",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_state",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::cb_state",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::cb_state",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_cb_state_get",1,SWIGTYPE_p_CoreSession);
}
result = (input_callback_state *)& ((arg1)->cb_state);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_input_callback_state,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_hook_state_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_channel_state_t arg2 ;
switch_channel_state_t *argp2 ;
- SWIG_check_num_args("hook_state",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hook_state",1,"CoreSession *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("hook_state",2,"switch_channel_state_t");
+ SWIG_check_num_args("CoreSession::hook_state",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::hook_state",1,"CoreSession *");
+ if(!lua_isuserdata(L,2)) SWIG_fail_arg("CoreSession::hook_state",2,"switch_channel_state_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_hook_state_set",1,SWIGTYPE_p_CoreSession);
if (arg1) (arg1)->hook_state = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_hook_state_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_channel_state_t result;
- SWIG_check_num_args("hook_state",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hook_state",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::hook_state",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::hook_state",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_hook_state_get",1,SWIGTYPE_p_CoreSession);
}
result = ((arg1)->hook_state);
- SWIG_arg=0;
{
- switch_channel_state_t * resultptr = new switch_channel_state_t((switch_channel_state_t &) result);
+ switch_channel_state_t * resultptr = new switch_channel_state_t((const switch_channel_state_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_channel_state_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_CoreSession_cause_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_call_cause_t arg2 ;
switch_call_cause_t *argp2 ;
- SWIG_check_num_args("cause",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cause",1,"CoreSession *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("cause",2,"switch_call_cause_t");
+ SWIG_check_num_args("CoreSession::cause",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::cause",1,"CoreSession *");
+ if(!lua_isuserdata(L,2)) SWIG_fail_arg("CoreSession::cause",2,"switch_call_cause_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_cause_set",1,SWIGTYPE_p_CoreSession);
if (arg1) (arg1)->cause = arg2;
- SWIG_arg=0;
-
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_cause_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_call_cause_t result;
- SWIG_check_num_args("cause",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cause",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::cause",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::cause",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_cause_get",1,SWIGTYPE_p_CoreSession);
}
result = ((arg1)->cause);
- SWIG_arg=0;
{
- switch_call_cause_t * resultptr = new switch_call_cause_t((switch_call_cause_t &) result);
+ switch_call_cause_t * resultptr = new switch_call_cause_t((const switch_call_cause_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_call_cause_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_CoreSession_uuid_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("uuid",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("uuid",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("uuid",2,"char *");
+ SWIG_check_num_args("CoreSession::uuid",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::uuid",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::uuid",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_uuid_set",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->uuid) delete [] arg1->uuid;
+ delete [] arg1->uuid;
if (arg2) {
arg1->uuid = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->uuid, (const char *)arg2);
arg1->uuid = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_uuid_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("uuid",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("uuid",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::uuid",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::uuid",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_uuid_get",1,SWIGTYPE_p_CoreSession);
}
result = (char *) ((arg1)->uuid);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_tts_name_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("tts_name",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("tts_name",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("tts_name",2,"char *");
+ SWIG_check_num_args("CoreSession::tts_name",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::tts_name",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::tts_name",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_tts_name_set",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->tts_name) delete [] arg1->tts_name;
+ delete [] arg1->tts_name;
if (arg2) {
arg1->tts_name = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->tts_name, (const char *)arg2);
arg1->tts_name = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_tts_name_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("tts_name",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("tts_name",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::tts_name",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::tts_name",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_tts_name_get",1,SWIGTYPE_p_CoreSession);
}
result = (char *) ((arg1)->tts_name);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_voice_name_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("voice_name",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("voice_name",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("voice_name",2,"char *");
+ SWIG_check_num_args("CoreSession::voice_name",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::voice_name",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::voice_name",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_voice_name_set",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->voice_name) delete [] arg1->voice_name;
+ delete [] arg1->voice_name;
if (arg2) {
arg1->voice_name = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->voice_name, (const char *)arg2);
arg1->voice_name = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_voice_name_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("voice_name",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("voice_name",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::voice_name",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::voice_name",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_voice_name_get",1,SWIGTYPE_p_CoreSession);
}
result = (char *) ((arg1)->voice_name);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_insertFile(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
int arg4 ;
int result;
- SWIG_check_num_args("insertFile",4,4)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("insertFile",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("insertFile",2,"char const *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("insertFile",3,"char const *");
- if(!lua_isnumber(L,4)) SWIG_fail_arg("insertFile",4,"int");
+ SWIG_check_num_args("CoreSession::insertFile",4,4)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::insertFile",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::insertFile",2,"char const *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::insertFile",3,"char const *");
+ if(!lua_isnumber(L,4)) SWIG_fail_arg("CoreSession::insertFile",4,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_insertFile",1,SWIGTYPE_p_CoreSession);
arg3 = (char *)lua_tostring(L, 3);
arg4 = (int)lua_tonumber(L, 4);
result = (int)(arg1)->insertFile((char const *)arg2,(char const *)arg3,arg4);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_answer(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int result;
- SWIG_check_num_args("answer",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("answer",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::answer",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::answer",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_answer",1,SWIGTYPE_p_CoreSession);
}
result = (int)(arg1)->answer();
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_preAnswer(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int result;
- SWIG_check_num_args("preAnswer",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("preAnswer",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::preAnswer",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::preAnswer",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_preAnswer",1,SWIGTYPE_p_CoreSession);
}
result = (int)(arg1)->preAnswer();
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_hangup(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) "normal_clearing" ;
- SWIG_check_num_args("hangup",1,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup",1,"CoreSession *");
- if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("hangup",2,"char const *");
+ SWIG_check_num_args("CoreSession::hangup",1,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::hangup",1,"CoreSession *");
+ if(lua_gettop(L)>=2 && !SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::hangup",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_hangup",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
}
(arg1)->hangup((char const *)arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_hangupState(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- SWIG_check_num_args("hangupState",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangupState",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::hangupState",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::hangupState",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_hangupState",1,SWIGTYPE_p_CoreSession);
}
(arg1)->hangupState();
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_setVariable(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
- SWIG_check_num_args("setVariable",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setVariable",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("setVariable",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("setVariable",3,"char *");
+ SWIG_check_num_args("CoreSession::setVariable",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::setVariable",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::setVariable",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::setVariable",3,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_setVariable",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
(arg1)->setVariable(arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_setPrivate(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
void *arg3 = (void *) 0 ;
- SWIG_check_num_args("setPrivate",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setPrivate",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("setPrivate",2,"char *");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("setPrivate",3,"void *");
+ SWIG_check_num_args("CoreSession::setPrivate",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::setPrivate",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::setPrivate",2,"char *");
+ if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("CoreSession::setPrivate",3,"void *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_setPrivate",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
arg3=(void *)SWIG_MustGetPtr(L,3,0,0,3,"CoreSession_setPrivate");
(arg1)->setPrivate(arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_getPrivate(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
void *result = 0 ;
- SWIG_check_num_args("getPrivate",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getPrivate",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("getPrivate",2,"char *");
+ SWIG_check_num_args("CoreSession::getPrivate",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::getPrivate",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::getPrivate",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_getPrivate",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
result = (void *)(arg1)->getPrivate(arg2);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_getVariable(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("getVariable",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getVariable",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("getVariable",2,"char *");
+ SWIG_check_num_args("CoreSession::getVariable",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::getVariable",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::getVariable",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_getVariable",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
result = (char *)(arg1)->getVariable(arg2);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_process_callback_result(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
switch_status_t result;
- SWIG_check_num_args("process_callback_result",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("process_callback_result",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("process_callback_result",2,"char *");
+ SWIG_check_num_args("CoreSession::process_callback_result",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::process_callback_result",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::process_callback_result",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_process_callback_result",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
result = (arg1)->process_callback_result(arg2);
- SWIG_arg=0;
{
- switch_status_t * resultptr = new switch_status_t((switch_status_t &) result);
+ switch_status_t * resultptr = new switch_status_t((const switch_status_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_CoreSession_say(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
char *arg5 = (char *) 0 ;
char *arg6 = (char *) NULL ;
- SWIG_check_num_args("say",5,6)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("say",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("say",2,"char const *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("say",3,"char const *");
- if(!lua_isstring(L,4)) SWIG_fail_arg("say",4,"char const *");
- if(!lua_isstring(L,5)) SWIG_fail_arg("say",5,"char const *");
- if(lua_gettop(L)>=6 && !lua_isstring(L,6)) SWIG_fail_arg("say",6,"char const *");
+ SWIG_check_num_args("CoreSession::say",5,6)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::say",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::say",2,"char const *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::say",3,"char const *");
+ if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("CoreSession::say",4,"char const *");
+ if(!SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("CoreSession::say",5,"char const *");
+ if(lua_gettop(L)>=6 && !SWIG_lua_isnilstring(L,6)) SWIG_fail_arg("CoreSession::say",6,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_say",1,SWIGTYPE_p_CoreSession);
arg6 = (char *)lua_tostring(L, 6);
}
(arg1)->say((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_sayPhrase(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) "" ;
char *arg4 = (char *) NULL ;
- SWIG_check_num_args("sayPhrase",2,4)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sayPhrase",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("sayPhrase",2,"char const *");
- if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("sayPhrase",3,"char const *");
- if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("sayPhrase",4,"char const *");
+ SWIG_check_num_args("CoreSession::sayPhrase",2,4)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::sayPhrase",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::sayPhrase",2,"char const *");
+ if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::sayPhrase",3,"char const *");
+ if(lua_gettop(L)>=4 && !SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("CoreSession::sayPhrase",4,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_sayPhrase",1,SWIGTYPE_p_CoreSession);
arg4 = (char *)lua_tostring(L, 4);
}
(arg1)->sayPhrase((char const *)arg2,(char const *)arg3,(char const *)arg4);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_hangupCause(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("hangupCause",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangupCause",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::hangupCause",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::hangupCause",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_hangupCause",1,SWIGTYPE_p_CoreSession);
}
result = (char *)(arg1)->hangupCause();
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_getState(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("getState",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getState",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::getState",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::getState",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_getState",1,SWIGTYPE_p_CoreSession);
}
result = (char *)(arg1)->getState();
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_recordFile(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
int arg3 = (int) 0 ;
int arg5 = (int) 0 ;
int result;
- SWIG_check_num_args("recordFile",2,5)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("recordFile",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("recordFile",2,"char *");
- if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("recordFile",3,"int");
- if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("recordFile",4,"int");
- if(lua_gettop(L)>=5 && !lua_isnumber(L,5)) SWIG_fail_arg("recordFile",5,"int");
+ SWIG_check_num_args("CoreSession::recordFile",2,5)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::recordFile",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::recordFile",2,"char *");
+ if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("CoreSession::recordFile",3,"int");
+ if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("CoreSession::recordFile",4,"int");
+ if(lua_gettop(L)>=5 && !lua_isnumber(L,5)) SWIG_fail_arg("CoreSession::recordFile",5,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_recordFile",1,SWIGTYPE_p_CoreSession);
arg5 = (int)lua_tonumber(L, 5);
}
result = (int)(arg1)->recordFile(arg2,arg3,arg4,arg5);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_originate(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
CoreSession *arg2 = (CoreSession *) 0 ;
char *arg3 = (char *) 0 ;
switch_state_handler_table_t *arg5 = (switch_state_handler_table_t *) NULL ;
int result;
- SWIG_check_num_args("originate",3,5)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("originate",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("originate",2,"CoreSession *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("originate",3,"char *");
- if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("originate",4,"int");
- if(lua_gettop(L)>=5 && !SWIG_isptrtype(L,5)) SWIG_fail_arg("originate",5,"switch_state_handler_table_t *");
+ SWIG_check_num_args("CoreSession::originate",3,5)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::originate",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::originate",2,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::originate",3,"char *");
+ if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("CoreSession::originate",4,"int");
+ if(lua_gettop(L)>=5 && !SWIG_isptrtype(L,5)) SWIG_fail_arg("CoreSession::originate",5,"switch_state_handler_table_t *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_originate",1,SWIGTYPE_p_CoreSession);
}
}
result = (int)(arg1)->originate(arg2,arg3,arg4,arg5);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_destroy(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- SWIG_check_num_args("destroy",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::destroy",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::destroy",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_destroy",1,SWIGTYPE_p_CoreSession);
}
(arg1)->destroy();
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_setDTMFCallback(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
void *arg2 = (void *) 0 ;
char *arg3 = (char *) 0 ;
- SWIG_check_num_args("setDTMFCallback",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setDTMFCallback",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setDTMFCallback",2,"void *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("setDTMFCallback",3,"char *");
+ SWIG_check_num_args("CoreSession::setDTMFCallback",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::setDTMFCallback",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::setDTMFCallback",2,"void *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::setDTMFCallback",3,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_setDTMFCallback",1,SWIGTYPE_p_CoreSession);
arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_setDTMFCallback");
arg3 = (char *)lua_tostring(L, 3);
(arg1)->setDTMFCallback(arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_speak(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
int result;
- SWIG_check_num_args("speak",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("speak",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("speak",2,"char *");
+ SWIG_check_num_args("CoreSession::speak",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::speak",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::speak",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_speak",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
result = (int)(arg1)->speak(arg2);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_set_tts_parms(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
- SWIG_check_num_args("set_tts_parms",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("set_tts_parms",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("set_tts_parms",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("set_tts_parms",3,"char *");
+ SWIG_check_num_args("CoreSession::set_tts_parms",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::set_tts_parms",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::set_tts_parms",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::set_tts_parms",3,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_set_tts_parms",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
(arg1)->set_tts_parms(arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_set_tts_params(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
- SWIG_check_num_args("set_tts_params",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("set_tts_params",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("set_tts_params",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("set_tts_params",3,"char *");
+ SWIG_check_num_args("CoreSession::set_tts_params",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::set_tts_params",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::set_tts_params",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::set_tts_params",3,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_set_tts_params",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
(arg1)->set_tts_params(arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_collectDigits__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
int result;
- SWIG_check_num_args("collectDigits",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("collectDigits",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("collectDigits",2,"int");
+ SWIG_check_num_args("CoreSession::collectDigits",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::collectDigits",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::collectDigits",2,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_collectDigits",1,SWIGTYPE_p_CoreSession);
arg2 = (int)lua_tonumber(L, 2);
result = (int)(arg1)->collectDigits(arg2);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_collectDigits__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
int arg3 ;
int result;
- SWIG_check_num_args("collectDigits",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("collectDigits",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("collectDigits",2,"int");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("collectDigits",3,"int");
+ SWIG_check_num_args("CoreSession::collectDigits",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::collectDigits",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::collectDigits",2,"int");
+ if(!lua_isnumber(L,3)) SWIG_fail_arg("CoreSession::collectDigits",3,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_collectDigits",1,SWIGTYPE_p_CoreSession);
arg2 = (int)lua_tonumber(L, 2);
arg3 = (int)lua_tonumber(L, 3);
result = (int)(arg1)->collectDigits(arg2,arg3);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
}
}
- lua_pushstring(L,"No matching function for overloaded 'CoreSession_collectDigits'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'CoreSession_collectDigits'\n"
+ " Possible C/C++ prototypes are:\n"
+ " CoreSession::collectDigits(int)\n"
+ " CoreSession::collectDigits(int,int)\n");
lua_error(L);return 0;
}
static int _wrap_CoreSession_getDigits__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
char *arg3 = (char *) 0 ;
int arg4 ;
char *result = 0 ;
- SWIG_check_num_args("getDigits",4,4)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getDigits",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("getDigits",2,"int");
- if(!lua_isstring(L,3)) SWIG_fail_arg("getDigits",3,"char *");
- if(!lua_isnumber(L,4)) SWIG_fail_arg("getDigits",4,"int");
+ SWIG_check_num_args("CoreSession::getDigits",4,4)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::getDigits",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::getDigits",2,"int");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::getDigits",3,"char *");
+ if(!lua_isnumber(L,4)) SWIG_fail_arg("CoreSession::getDigits",4,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_getDigits",1,SWIGTYPE_p_CoreSession);
arg3 = (char *)lua_tostring(L, 3);
arg4 = (int)lua_tonumber(L, 4);
result = (char *)(arg1)->getDigits(arg2,arg3,arg4);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_getDigits__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
char *arg3 = (char *) 0 ;
int arg5 ;
char *result = 0 ;
- SWIG_check_num_args("getDigits",5,5)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getDigits",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("getDigits",2,"int");
- if(!lua_isstring(L,3)) SWIG_fail_arg("getDigits",3,"char *");
- if(!lua_isnumber(L,4)) SWIG_fail_arg("getDigits",4,"int");
- if(!lua_isnumber(L,5)) SWIG_fail_arg("getDigits",5,"int");
+ SWIG_check_num_args("CoreSession::getDigits",5,5)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::getDigits",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::getDigits",2,"int");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::getDigits",3,"char *");
+ if(!lua_isnumber(L,4)) SWIG_fail_arg("CoreSession::getDigits",4,"int");
+ if(!lua_isnumber(L,5)) SWIG_fail_arg("CoreSession::getDigits",5,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_getDigits",1,SWIGTYPE_p_CoreSession);
arg4 = (int)lua_tonumber(L, 4);
arg5 = (int)lua_tonumber(L, 5);
result = (char *)(arg1)->getDigits(arg2,arg3,arg4,arg5);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
}
if (_v) {
{
- _v = lua_isstring(L,argv[2]);
+ _v = SWIG_lua_isnilstring(L,argv[2]);
}
if (_v) {
{
}
if (_v) {
{
- _v = lua_isstring(L,argv[2]);
+ _v = SWIG_lua_isnilstring(L,argv[2]);
}
if (_v) {
{
}
}
- lua_pushstring(L,"No matching function for overloaded 'CoreSession_getDigits'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'CoreSession_getDigits'\n"
+ " Possible C/C++ prototypes are:\n"
+ " CoreSession::getDigits(int,char *,int)\n"
+ " CoreSession::getDigits(int,char *,int,int)\n");
lua_error(L);return 0;
}
static int _wrap_CoreSession_transfer(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) NULL ;
char *arg4 = (char *) NULL ;
int result;
- SWIG_check_num_args("transfer",2,4)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("transfer",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("transfer",2,"char *");
- if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("transfer",3,"char *");
- if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("transfer",4,"char *");
+ SWIG_check_num_args("CoreSession::transfer",2,4)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::transfer",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::transfer",2,"char *");
+ if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::transfer",3,"char *");
+ if(lua_gettop(L)>=4 && !SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("CoreSession::transfer",4,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_transfer",1,SWIGTYPE_p_CoreSession);
arg4 = (char *)lua_tostring(L, 4);
}
result = (int)(arg1)->transfer(arg2,arg3,arg4);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_read(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
int arg3 ;
int arg7 = (int) 0 ;
char *result = 0 ;
- SWIG_check_num_args("read",6,7)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("read",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("read",2,"int");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("read",3,"int");
- if(!lua_isstring(L,4)) SWIG_fail_arg("read",4,"char const *");
- if(!lua_isnumber(L,5)) SWIG_fail_arg("read",5,"int");
- if(!lua_isstring(L,6)) SWIG_fail_arg("read",6,"char const *");
- if(lua_gettop(L)>=7 && !lua_isnumber(L,7)) SWIG_fail_arg("read",7,"int");
+ SWIG_check_num_args("CoreSession::read",6,7)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::read",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::read",2,"int");
+ if(!lua_isnumber(L,3)) SWIG_fail_arg("CoreSession::read",3,"int");
+ if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("CoreSession::read",4,"char const *");
+ if(!lua_isnumber(L,5)) SWIG_fail_arg("CoreSession::read",5,"int");
+ if(!SWIG_lua_isnilstring(L,6)) SWIG_fail_arg("CoreSession::read",6,"char const *");
+ if(lua_gettop(L)>=7 && !lua_isnumber(L,7)) SWIG_fail_arg("CoreSession::read",7,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_read",1,SWIGTYPE_p_CoreSession);
arg7 = (int)lua_tonumber(L, 7);
}
result = (char *)(arg1)->read(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_playAndGetDigits(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
int arg3 ;
char *arg12 = (char *) NULL ;
char *result = 0 ;
- SWIG_check_num_args("playAndGetDigits",9,12)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("playAndGetDigits",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("playAndGetDigits",2,"int");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("playAndGetDigits",3,"int");
- if(!lua_isnumber(L,4)) SWIG_fail_arg("playAndGetDigits",4,"int");
- if(!lua_isnumber(L,5)) SWIG_fail_arg("playAndGetDigits",5,"int");
- if(!lua_isstring(L,6)) SWIG_fail_arg("playAndGetDigits",6,"char *");
- if(!lua_isstring(L,7)) SWIG_fail_arg("playAndGetDigits",7,"char *");
- if(!lua_isstring(L,8)) SWIG_fail_arg("playAndGetDigits",8,"char *");
- if(!lua_isstring(L,9)) SWIG_fail_arg("playAndGetDigits",9,"char *");
- if(lua_gettop(L)>=10 && !lua_isstring(L,10)) SWIG_fail_arg("playAndGetDigits",10,"char const *");
- if(lua_gettop(L)>=11 && !lua_isnumber(L,11)) SWIG_fail_arg("playAndGetDigits",11,"int");
- if(lua_gettop(L)>=12 && !lua_isstring(L,12)) SWIG_fail_arg("playAndGetDigits",12,"char const *");
+ SWIG_check_num_args("CoreSession::playAndGetDigits",9,12)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::playAndGetDigits",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::playAndGetDigits",2,"int");
+ if(!lua_isnumber(L,3)) SWIG_fail_arg("CoreSession::playAndGetDigits",3,"int");
+ if(!lua_isnumber(L,4)) SWIG_fail_arg("CoreSession::playAndGetDigits",4,"int");
+ if(!lua_isnumber(L,5)) SWIG_fail_arg("CoreSession::playAndGetDigits",5,"int");
+ if(!SWIG_lua_isnilstring(L,6)) SWIG_fail_arg("CoreSession::playAndGetDigits",6,"char *");
+ if(!SWIG_lua_isnilstring(L,7)) SWIG_fail_arg("CoreSession::playAndGetDigits",7,"char *");
+ if(!SWIG_lua_isnilstring(L,8)) SWIG_fail_arg("CoreSession::playAndGetDigits",8,"char *");
+ if(!SWIG_lua_isnilstring(L,9)) SWIG_fail_arg("CoreSession::playAndGetDigits",9,"char *");
+ if(lua_gettop(L)>=10 && !SWIG_lua_isnilstring(L,10)) SWIG_fail_arg("CoreSession::playAndGetDigits",10,"char const *");
+ if(lua_gettop(L)>=11 && !lua_isnumber(L,11)) SWIG_fail_arg("CoreSession::playAndGetDigits",11,"int");
+ if(lua_gettop(L)>=12 && !SWIG_lua_isnilstring(L,12)) SWIG_fail_arg("CoreSession::playAndGetDigits",12,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_playAndGetDigits",1,SWIGTYPE_p_CoreSession);
arg12 = (char *)lua_tostring(L, 12);
}
result = (char *)(arg1)->playAndGetDigits(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,(char const *)arg12);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_streamFile(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
int arg3 = (int) 0 ;
int result;
- SWIG_check_num_args("streamFile",2,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("streamFile",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("streamFile",2,"char *");
- if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("streamFile",3,"int");
+ SWIG_check_num_args("CoreSession::streamFile",2,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::streamFile",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::streamFile",2,"char *");
+ if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("CoreSession::streamFile",3,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_streamFile",1,SWIGTYPE_p_CoreSession);
arg3 = (int)lua_tonumber(L, 3);
}
result = (int)(arg1)->streamFile(arg2,arg3);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_sleep(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int arg2 ;
int arg3 = (int) 0 ;
int result;
- SWIG_check_num_args("sleep",2,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sleep",1,"CoreSession *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("sleep",2,"int");
- if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("sleep",3,"int");
+ SWIG_check_num_args("CoreSession::sleep",2,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::sleep",1,"CoreSession *");
+ if(!lua_isnumber(L,2)) SWIG_fail_arg("CoreSession::sleep",2,"int");
+ if(lua_gettop(L)>=3 && !lua_isnumber(L,3)) SWIG_fail_arg("CoreSession::sleep",3,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_sleep",1,SWIGTYPE_p_CoreSession);
arg3 = (int)lua_tonumber(L, 3);
}
result = (int)(arg1)->sleep(arg2,arg3);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_flushEvents(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int result;
- SWIG_check_num_args("flushEvents",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flushEvents",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::flushEvents",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::flushEvents",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_flushEvents",1,SWIGTYPE_p_CoreSession);
}
result = (int)(arg1)->flushEvents();
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_flushDigits(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
int result;
- SWIG_check_num_args("flushDigits",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("flushDigits",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::flushDigits",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::flushDigits",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_flushDigits",1,SWIGTYPE_p_CoreSession);
}
result = (int)(arg1)->flushDigits();
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_setAutoHangup(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
bool arg2 ;
int result;
- SWIG_check_num_args("setAutoHangup",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setAutoHangup",1,"CoreSession *");
- if(!lua_isboolean(L,2)) SWIG_fail_arg("setAutoHangup",2,"bool");
+ SWIG_check_num_args("CoreSession::setAutoHangup",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::setAutoHangup",1,"CoreSession *");
+ if(!lua_isboolean(L,2)) SWIG_fail_arg("CoreSession::setAutoHangup",2,"bool");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_setAutoHangup",1,SWIGTYPE_p_CoreSession);
arg2 = (lua_toboolean(L, 2)!=0);
result = (int)(arg1)->setAutoHangup(arg2);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_setHangupHook(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
void *arg2 = (void *) 0 ;
- SWIG_check_num_args("setHangupHook",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setHangupHook",2,"void *");
+ SWIG_check_num_args("CoreSession::setHangupHook",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::setHangupHook",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::setHangupHook",2,"void *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_setHangupHook",1,SWIGTYPE_p_CoreSession);
arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"CoreSession_setHangupHook");
(arg1)->setHangupHook(arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_ready(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
bool result;
- SWIG_check_num_args("ready",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ready",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::ready",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::ready",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_ready",1,SWIGTYPE_p_CoreSession);
}
result = (bool)(arg1)->ready();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_bridged(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
bool result;
- SWIG_check_num_args("bridged",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bridged",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::bridged",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::bridged",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_bridged",1,SWIGTYPE_p_CoreSession);
}
result = (bool)(arg1)->bridged();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_answered(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
bool result;
- SWIG_check_num_args("answered",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("answered",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::answered",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::answered",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_answered",1,SWIGTYPE_p_CoreSession);
}
result = (bool)(arg1)->answered();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_mediaReady(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
bool result;
- SWIG_check_num_args("mediaReady",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("mediaReady",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::mediaReady",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::mediaReady",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_mediaReady",1,SWIGTYPE_p_CoreSession);
}
result = (bool)(arg1)->mediaReady();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_waitForAnswer(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
CoreSession *arg2 = (CoreSession *) 0 ;
- SWIG_check_num_args("waitForAnswer",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("waitForAnswer",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("waitForAnswer",2,"CoreSession *");
+ SWIG_check_num_args("CoreSession::waitForAnswer",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::waitForAnswer",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::waitForAnswer",2,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_waitForAnswer",1,SWIGTYPE_p_CoreSession);
}
(arg1)->waitForAnswer(arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_execute(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) NULL ;
- SWIG_check_num_args("execute",2,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("execute",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("execute",2,"char const *");
- if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("execute",3,"char const *");
+ SWIG_check_num_args("CoreSession::execute",2,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::execute",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::execute",2,"char const *");
+ if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::execute",3,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_execute",1,SWIGTYPE_p_CoreSession);
arg3 = (char *)lua_tostring(L, 3);
}
(arg1)->execute((char const *)arg2,(char const *)arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_sendEvent(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
Event *arg2 = (Event *) 0 ;
- SWIG_check_num_args("sendEvent",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("sendEvent",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("sendEvent",2,"Event *");
+ SWIG_check_num_args("CoreSession::sendEvent",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::sendEvent",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::sendEvent",2,"Event *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_sendEvent",1,SWIGTYPE_p_CoreSession);
}
(arg1)->sendEvent(arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_setEventData(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
Event *arg2 = (Event *) 0 ;
- SWIG_check_num_args("setEventData",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setEventData",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("setEventData",2,"Event *");
+ SWIG_check_num_args("CoreSession::setEventData",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::setEventData",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::setEventData",2,"Event *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_setEventData",1,SWIGTYPE_p_CoreSession);
}
(arg1)->setEventData(arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_getXMLCDR(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("getXMLCDR",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("getXMLCDR",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::getXMLCDR",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::getXMLCDR",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_getXMLCDR",1,SWIGTYPE_p_CoreSession);
}
result = (char *)(arg1)->getXMLCDR();
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_begin_allow_threads(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
bool result;
- SWIG_check_num_args("begin_allow_threads",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("begin_allow_threads",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::begin_allow_threads",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::begin_allow_threads",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_begin_allow_threads",1,SWIGTYPE_p_CoreSession);
}
result = (bool)(arg1)->begin_allow_threads();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_end_allow_threads(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
bool result;
- SWIG_check_num_args("end_allow_threads",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("end_allow_threads",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::end_allow_threads",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::end_allow_threads",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_end_allow_threads",1,SWIGTYPE_p_CoreSession);
}
result = (bool)(arg1)->end_allow_threads();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_get_uuid(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("get_uuid",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_uuid",1,"CoreSession const *");
+ SWIG_check_num_args("CoreSession::get_uuid",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::get_uuid",1,"CoreSession const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_get_uuid",1,SWIGTYPE_p_CoreSession);
}
result = (char *)((CoreSession const *)arg1)->get_uuid();
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_CoreSession_get_cb_args(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
switch_input_args_t *result = 0 ;
- SWIG_check_num_args("get_cb_args",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_cb_args",1,"CoreSession const *");
+ SWIG_check_num_args("CoreSession::get_cb_args",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::get_cb_args",1,"CoreSession const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_get_cb_args",1,SWIGTYPE_p_CoreSession);
}
- {
- switch_input_args_t const &_result_ref = ((CoreSession const *)arg1)->get_cb_args();
- result = (switch_input_args_t *) &_result_ref;
- }
- SWIG_arg=0;
+ result = (switch_input_args_t *) &((CoreSession const *)arg1)->get_cb_args();
SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_input_args_t,0); SWIG_arg++;
return SWIG_arg;
static int _wrap_CoreSession_check_hangup_hook(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
- SWIG_check_num_args("check_hangup_hook",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("check_hangup_hook",1,"CoreSession *");
+ SWIG_check_num_args("CoreSession::check_hangup_hook",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::check_hangup_hook",1,"CoreSession *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_check_hangup_hook",1,SWIGTYPE_p_CoreSession);
}
(arg1)->check_hangup_hook();
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_run_dtmf_callback(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
void *arg2 = (void *) 0 ;
switch_input_type_t arg3 ;
- switch_status_t result;
switch_input_type_t *argp3 ;
+ switch_status_t result;
- SWIG_check_num_args("run_dtmf_callback",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("run_dtmf_callback",1,"CoreSession *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("run_dtmf_callback",2,"void *");
- if(!lua_isuserdata(L,3)) SWIG_fail_arg("run_dtmf_callback",3,"switch_input_type_t");
+ SWIG_check_num_args("CoreSession::run_dtmf_callback",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::run_dtmf_callback",1,"CoreSession *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("CoreSession::run_dtmf_callback",2,"void *");
+ if(!lua_isuserdata(L,3)) SWIG_fail_arg("CoreSession::run_dtmf_callback",3,"switch_input_type_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_run_dtmf_callback",1,SWIGTYPE_p_CoreSession);
arg3 = *argp3;
result = (arg1)->run_dtmf_callback(arg2,arg3);
- SWIG_arg=0;
{
- switch_status_t * resultptr = new switch_status_t((switch_status_t &) result);
+ switch_status_t * resultptr = new switch_status_t((const switch_status_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_CoreSession_consoleLog(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
- SWIG_check_num_args("consoleLog",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("consoleLog",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog",3,"char *");
+ SWIG_check_num_args("CoreSession::consoleLog",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::consoleLog",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::consoleLog",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::consoleLog",3,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_consoleLog",1,SWIGTYPE_p_CoreSession);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
(arg1)->consoleLog(arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_CoreSession_consoleLog2(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
int arg5 ;
char *arg6 = (char *) 0 ;
- SWIG_check_num_args("consoleLog2",6,6)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("consoleLog2",1,"CoreSession *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("consoleLog2",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("consoleLog2",3,"char *");
- if(!lua_isstring(L,4)) SWIG_fail_arg("consoleLog2",4,"char *");
- if(!lua_isnumber(L,5)) SWIG_fail_arg("consoleLog2",5,"int");
- if(!lua_isstring(L,6)) SWIG_fail_arg("consoleLog2",6,"char *");
+ SWIG_check_num_args("CoreSession::consoleLog2",6,6)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("CoreSession::consoleLog2",1,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("CoreSession::consoleLog2",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("CoreSession::consoleLog2",3,"char *");
+ if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("CoreSession::consoleLog2",4,"char *");
+ if(!lua_isnumber(L,5)) SWIG_fail_arg("CoreSession::consoleLog2",5,"int");
+ if(!SWIG_lua_isnilstring(L,6)) SWIG_fail_arg("CoreSession::consoleLog2",6,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("CoreSession_consoleLog2",1,SWIGTYPE_p_CoreSession);
arg5 = (int)lua_tonumber(L, 5);
arg6 = (char *)lua_tostring(L, 6);
(arg1)->consoleLog2(arg2,arg3,arg4,arg5,arg6);
- SWIG_arg=0;
return SWIG_arg;
{ "voice_name", _wrap_CoreSession_voice_name_get, _wrap_CoreSession_voice_name_set},
{0,0,0}
};
+static swig_lua_attribute swig_CoreSession_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_CoreSession_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_CoreSession_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_CoreSession_bases[] = {0};
static const char *swig_CoreSession_base_names[] = {0};
-static swig_lua_class _wrap_class_CoreSession = { "CoreSession", &SWIGTYPE_p_CoreSession,0, swig_delete_CoreSession, swig_CoreSession_methods, swig_CoreSession_attributes, swig_CoreSession_bases, swig_CoreSession_base_names };
+static swig_lua_class _wrap_class_CoreSession = { "CoreSession", &SWIGTYPE_p_CoreSession,0, swig_delete_CoreSession, swig_CoreSession_methods, swig_CoreSession_attributes, { "CoreSession", swig_CoreSession_cls_methods, swig_CoreSession_cls_attributes, swig_CoreSession_cls_constants }, swig_CoreSession_bases, swig_CoreSession_base_names };
static int _wrap_console_log(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
SWIG_check_num_args("console_log",2,2)
- if(!lua_isstring(L,1)) SWIG_fail_arg("console_log",1,"char *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("console_log",2,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("console_log",1,"char *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("console_log",2,"char *");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
console_log(arg1,arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_console_log2(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
char *arg5 = (char *) 0 ;
SWIG_check_num_args("console_log2",5,5)
- if(!lua_isstring(L,1)) SWIG_fail_arg("console_log2",1,"char *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("console_log2",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("console_log2",3,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("console_log2",1,"char *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("console_log2",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("console_log2",3,"char *");
if(!lua_isnumber(L,4)) SWIG_fail_arg("console_log2",4,"int");
- if(!lua_isstring(L,5)) SWIG_fail_arg("console_log2",5,"char *");
+ if(!SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("console_log2",5,"char *");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
arg4 = (int)lua_tonumber(L, 4);
arg5 = (char *)lua_tostring(L, 5);
console_log2(arg1,arg2,arg3,arg4,arg5);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_console_clean_log(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
SWIG_check_num_args("console_clean_log",1,1)
- if(!lua_isstring(L,1)) SWIG_fail_arg("console_clean_log",1,"char *");
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("console_clean_log",1,"char *");
arg1 = (char *)lua_tostring(L, 1);
console_clean_log(arg1);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_msleep(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
unsigned int arg1 ;
SWIG_check_num_args("switch_msleep",1,1)
if(!lua_isnumber(L,1)) SWIG_fail_arg("switch_msleep",1,"unsigned int");
+ SWIG_contract_assert((lua_tonumber(L,1)>=0),"number must not be negative")
arg1 = (unsigned int)lua_tonumber(L, 1);
switch_msleep(arg1);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_bridge(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
CoreSession *arg1 = 0 ;
CoreSession *arg2 = 0 ;
}
bridge(*arg1,*arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_hanguphook(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
switch_status_t result;
}
result = hanguphook(arg1);
- SWIG_arg=0;
{
- switch_status_t * resultptr = new switch_status_t((switch_status_t &) result);
+ switch_status_t * resultptr = new switch_status_t((const switch_status_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_dtmf_callback(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
void *arg2 = (void *) 0 ;
switch_input_type_t arg3 ;
void *arg4 = (void *) 0 ;
unsigned int arg5 ;
- switch_status_t result;
switch_input_type_t *argp3 ;
+ switch_status_t result;
SWIG_check_num_args("dtmf_callback",5,5)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("dtmf_callback",1,"switch_core_session_t *");
arg3 = *argp3;
arg4=(void *)SWIG_MustGetPtr(L,4,0,0,4,"dtmf_callback");
+ SWIG_contract_assert((lua_tonumber(L,5)>=0),"number must not be negative")
arg5 = (unsigned int)lua_tonumber(L, 5);
result = dtmf_callback(arg1,arg2,arg3,arg4,arg5);
- SWIG_arg=0;
{
- switch_status_t * resultptr = new switch_status_t((switch_status_t &) result);
+ switch_status_t * resultptr = new switch_status_t((const switch_status_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_new_Session__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *result = 0 ;
- SWIG_check_num_args("LUA::Session",0,0)
+ SWIG_check_num_args("LUA::Session::Session",0,0)
result = (LUA::Session *)new LUA::Session();
- SWIG_arg=0;
- SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L);
+ SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_new_Session__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
CoreSession *arg2 = (CoreSession *) 0 ;
LUA::Session *result = 0 ;
- SWIG_check_num_args("LUA::Session",2,2)
- if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Session",1,"char *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("LUA::Session",2,"CoreSession *");
+ SWIG_check_num_args("LUA::Session::Session",2,2)
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("LUA::Session::Session",1,"char *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("LUA::Session::Session",2,"CoreSession *");
arg1 = (char *)lua_tostring(L, 1);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){
}
result = (LUA::Session *)new LUA::Session(arg1,arg2);
- SWIG_arg=0;
- SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L);
+ SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_new_Session__SWIG_2(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
LUA::Session *result = 0 ;
- SWIG_check_num_args("LUA::Session",1,1)
- if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Session",1,"char *");
+ SWIG_check_num_args("LUA::Session::Session",1,1)
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("LUA::Session::Session",1,"char *");
arg1 = (char *)lua_tostring(L, 1);
result = (LUA::Session *)new LUA::Session(arg1);
- SWIG_arg=0;
- SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L);
+ SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_new_Session__SWIG_3(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
LUA::Session *result = 0 ;
- SWIG_check_num_args("LUA::Session",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session",1,"switch_core_session_t *");
+ SWIG_check_num_args("LUA::Session::Session",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::Session",1,"switch_core_session_t *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_switch_core_session_t,0))){
SWIG_fail_ptr("new_Session",1,SWIGTYPE_p_switch_core_session_t);
}
result = (LUA::Session *)new LUA::Session(arg1);
- SWIG_arg=0;
- SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L);
+ SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
if (argc == 1) {
int _v;
{
- _v = lua_isstring(L,argv[0]);
+ _v = SWIG_lua_isnilstring(L,argv[0]);
}
if (_v) {
return _wrap_new_Session__SWIG_2(L);
if (argc == 2) {
int _v;
{
- _v = lua_isstring(L,argv[0]);
+ _v = SWIG_lua_isnilstring(L,argv[0]);
}
if (_v) {
{
}
}
- lua_pushstring(L,"No matching function for overloaded 'new_Session'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_Session'\n"
+ " Possible C/C++ prototypes are:\n"
+ " LUA::Session::Session()\n"
+ " LUA::Session::Session(char *,CoreSession *)\n"
+ " LUA::Session::Session(char *)\n"
+ " LUA::Session::Session(switch_core_session_t *)\n");
lua_error(L);return 0;
}
-static int _wrap_delete_Session(lua_State* L) {
- int SWIG_arg = -1;
- LUA::Session *arg1 = (LUA::Session *) 0 ;
-
- SWIG_check_num_args("LUA::~Session",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::~Session",1,"LUA::Session *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_Session",1,SWIGTYPE_p_LUA__Session);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static int _wrap_Session_destroy__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("destroy",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("destroy",2,"char const *");
+ SWIG_check_num_args("LUA::Session::destroy",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::destroy",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::destroy",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_destroy",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
(arg1)->destroy((char const *)arg2);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_destroy__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
- SWIG_check_num_args("destroy",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("destroy",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::destroy",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::destroy",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_destroy",1,SWIGTYPE_p_LUA__Session);
}
(arg1)->destroy();
- SWIG_arg=0;
return SWIG_arg;
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
return _wrap_Session_destroy__SWIG_0(L);
}
}
- lua_pushstring(L,"No matching function for overloaded 'Session_destroy'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'Session_destroy'\n"
+ " Possible C/C++ prototypes are:\n"
+ " LUA::Session::destroy(char const *)\n"
+ " LUA::Session::destroy()\n");
lua_error(L);return 0;
}
static int _wrap_Session_begin_allow_threads(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
bool result;
- SWIG_check_num_args("begin_allow_threads",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("begin_allow_threads",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::begin_allow_threads",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::begin_allow_threads",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_begin_allow_threads",1,SWIGTYPE_p_LUA__Session);
}
result = (bool)(arg1)->begin_allow_threads();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Session_end_allow_threads(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
bool result;
- SWIG_check_num_args("end_allow_threads",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("end_allow_threads",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::end_allow_threads",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::end_allow_threads",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_end_allow_threads",1,SWIGTYPE_p_LUA__Session);
}
result = (bool)(arg1)->end_allow_threads();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Session_check_hangup_hook(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
- SWIG_check_num_args("check_hangup_hook",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("check_hangup_hook",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::check_hangup_hook",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::check_hangup_hook",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_check_hangup_hook",1,SWIGTYPE_p_LUA__Session);
}
(arg1)->check_hangup_hook();
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_run_dtmf_callback(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
void *arg2 = (void *) 0 ;
switch_input_type_t arg3 ;
- switch_status_t result;
switch_input_type_t *argp3 ;
+ switch_status_t result;
- SWIG_check_num_args("run_dtmf_callback",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("run_dtmf_callback",1,"LUA::Session *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("run_dtmf_callback",2,"void *");
- if(!lua_isuserdata(L,3)) SWIG_fail_arg("run_dtmf_callback",3,"switch_input_type_t");
+ SWIG_check_num_args("LUA::Session::run_dtmf_callback",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::run_dtmf_callback",1,"LUA::Session *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("LUA::Session::run_dtmf_callback",2,"void *");
+ if(!lua_isuserdata(L,3)) SWIG_fail_arg("LUA::Session::run_dtmf_callback",3,"switch_input_type_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_run_dtmf_callback",1,SWIGTYPE_p_LUA__Session);
arg3 = *argp3;
result = (arg1)->run_dtmf_callback(arg2,arg3);
- SWIG_arg=0;
{
- switch_status_t * resultptr = new switch_status_t((switch_status_t &) result);
+ switch_status_t * resultptr = new switch_status_t((const switch_status_t &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_status_t,1); SWIG_arg++;
}
return SWIG_arg;
static int _wrap_Session_unsetInputCallback(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
- SWIG_check_num_args("unsetInputCallback",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("unsetInputCallback",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::unsetInputCallback",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::unsetInputCallback",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_unsetInputCallback",1,SWIGTYPE_p_LUA__Session);
}
(arg1)->unsetInputCallback();
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_setInputCallback__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
- SWIG_check_num_args("setInputCallback",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setInputCallback",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("setInputCallback",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("setInputCallback",3,"char *");
+ SWIG_check_num_args("LUA::Session::setInputCallback",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::setInputCallback",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::setInputCallback",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("LUA::Session::setInputCallback",3,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_setInputCallback",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
(arg1)->setInputCallback(arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_setInputCallback__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("setInputCallback",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setInputCallback",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("setInputCallback",2,"char *");
+ SWIG_check_num_args("LUA::Session::setInputCallback",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::setInputCallback",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::setInputCallback",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_setInputCallback",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
(arg1)->setInputCallback(arg2);
- SWIG_arg=0;
return SWIG_arg;
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
return _wrap_Session_setInputCallback__SWIG_1(L);
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
{
- _v = lua_isstring(L,argv[2]);
+ _v = SWIG_lua_isnilstring(L,argv[2]);
}
if (_v) {
return _wrap_Session_setInputCallback__SWIG_0(L);
}
}
- lua_pushstring(L,"No matching function for overloaded 'Session_setInputCallback'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'Session_setInputCallback'\n"
+ " Possible C/C++ prototypes are:\n"
+ " LUA::Session::setInputCallback(char *,char *)\n"
+ " LUA::Session::setInputCallback(char *)\n");
lua_error(L);return 0;
}
static int _wrap_Session_setHangupHook__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
- SWIG_check_num_args("setHangupHook",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("setHangupHook",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("setHangupHook",3,"char *");
+ SWIG_check_num_args("LUA::Session::setHangupHook",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::setHangupHook",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::setHangupHook",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("LUA::Session::setHangupHook",3,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_setHangupHook",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
(arg1)->setHangupHook(arg2,arg3);
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_setHangupHook__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("setHangupHook",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setHangupHook",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("setHangupHook",2,"char *");
+ SWIG_check_num_args("LUA::Session::setHangupHook",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::setHangupHook",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::setHangupHook",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_setHangupHook",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
(arg1)->setHangupHook(arg2);
- SWIG_arg=0;
return SWIG_arg;
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
return _wrap_Session_setHangupHook__SWIG_1(L);
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
{
- _v = lua_isstring(L,argv[2]);
+ _v = SWIG_lua_isnilstring(L,argv[2]);
}
if (_v) {
return _wrap_Session_setHangupHook__SWIG_0(L);
}
}
- lua_pushstring(L,"No matching function for overloaded 'Session_setHangupHook'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'Session_setHangupHook'\n"
+ " Possible C/C++ prototypes are:\n"
+ " LUA::Session::setHangupHook(char *,char *)\n"
+ " LUA::Session::setHangupHook(char *)\n");
lua_error(L);return 0;
}
static int _wrap_Session_ready(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
bool result;
- SWIG_check_num_args("ready",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("ready",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::ready",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::ready",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_ready",1,SWIGTYPE_p_LUA__Session);
}
result = (bool)(arg1)->ready();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Session_originate(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
CoreSession *arg2 = (CoreSession *) 0 ;
char *arg3 = (char *) 0 ;
int arg4 ;
int result;
- SWIG_check_num_args("originate",4,4)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("originate",1,"LUA::Session *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("originate",2,"CoreSession *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("originate",3,"char *");
- if(!lua_isnumber(L,4)) SWIG_fail_arg("originate",4,"int");
+ SWIG_check_num_args("LUA::Session::originate",4,4)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::originate",1,"LUA::Session *");
+ if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("LUA::Session::originate",2,"CoreSession *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("LUA::Session::originate",3,"char *");
+ if(!lua_isnumber(L,4)) SWIG_fail_arg("LUA::Session::originate",4,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_originate",1,SWIGTYPE_p_LUA__Session);
arg3 = (char *)lua_tostring(L, 3);
arg4 = (int)lua_tonumber(L, 4);
result = (int)(arg1)->originate(arg2,arg3,arg4);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_Session_cb_function_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("cb_function",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_function",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("cb_function",2,"char *");
+ SWIG_check_num_args("LUA::Session::cb_function",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::cb_function",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::cb_function",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_cb_function_set",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->cb_function) delete [] arg1->cb_function;
+ delete [] arg1->cb_function;
if (arg2) {
arg1->cb_function = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->cb_function, (const char *)arg2);
arg1->cb_function = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_cb_function_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("cb_function",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_function",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::cb_function",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::cb_function",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_cb_function_get",1,SWIGTYPE_p_LUA__Session);
}
result = (char *) ((arg1)->cb_function);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Session_cb_arg_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("cb_arg",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_arg",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("cb_arg",2,"char *");
+ SWIG_check_num_args("LUA::Session::cb_arg",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::cb_arg",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::cb_arg",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_cb_arg_set",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->cb_arg) delete [] arg1->cb_arg;
+ delete [] arg1->cb_arg;
if (arg2) {
arg1->cb_arg = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->cb_arg, (const char *)arg2);
arg1->cb_arg = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_cb_arg_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("cb_arg",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("cb_arg",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::cb_arg",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::cb_arg",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_cb_arg_get",1,SWIGTYPE_p_LUA__Session);
}
result = (char *) ((arg1)->cb_arg);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Session_hangup_func_str_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("hangup_func_str",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_str",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("hangup_func_str",2,"char *");
+ SWIG_check_num_args("LUA::Session::hangup_func_str",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::hangup_func_str",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::hangup_func_str",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_hangup_func_str_set",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->hangup_func_str) delete [] arg1->hangup_func_str;
+ delete [] arg1->hangup_func_str;
if (arg2) {
arg1->hangup_func_str = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->hangup_func_str, (const char *)arg2);
arg1->hangup_func_str = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_hangup_func_str_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("hangup_func_str",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_str",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::hangup_func_str",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::hangup_func_str",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_hangup_func_str_get",1,SWIGTYPE_p_LUA__Session);
}
result = (char *) ((arg1)->hangup_func_str);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Session_hangup_func_arg_set(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *arg2 = (char *) 0 ;
- SWIG_check_num_args("hangup_func_arg",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_arg",1,"LUA::Session *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("hangup_func_arg",2,"char *");
+ SWIG_check_num_args("LUA::Session::hangup_func_arg",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::hangup_func_arg",1,"LUA::Session *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Session::hangup_func_arg",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_hangup_func_arg_set",1,SWIGTYPE_p_LUA__Session);
arg2 = (char *)lua_tostring(L, 2);
{
- if (arg1->hangup_func_arg) delete [] arg1->hangup_func_arg;
+ delete [] arg1->hangup_func_arg;
if (arg2) {
arg1->hangup_func_arg = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->hangup_func_arg, (const char *)arg2);
arg1->hangup_func_arg = 0;
}
}
- SWIG_arg=0;
return SWIG_arg;
static int _wrap_Session_hangup_func_arg_get(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
char *result = 0 ;
- SWIG_check_num_args("hangup_func_arg",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("hangup_func_arg",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::hangup_func_arg",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::hangup_func_arg",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_hangup_func_arg_get",1,SWIGTYPE_p_LUA__Session);
}
result = (char *) ((arg1)->hangup_func_arg);
- SWIG_arg=0;
- lua_pushstring(L,(const char*)result); SWIG_arg++;
+ lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Session_setLUA(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Session *arg1 = (LUA::Session *) 0 ;
lua_State *arg2 = (lua_State *) 0 ;
arg2 = L;
- SWIG_check_num_args("setLUA",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("setLUA",1,"LUA::Session *");
+ SWIG_check_num_args("LUA::Session::setLUA",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Session::setLUA",1,"LUA::Session *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Session,0))){
SWIG_fail_ptr("Session_setLUA",1,SWIGTYPE_p_LUA__Session);
}
(arg1)->setLUA(arg2);
- SWIG_arg=0;
return SWIG_arg;
{ "hangup_func_arg", _wrap_Session_hangup_func_arg_get, _wrap_Session_hangup_func_arg_set},
{0,0,0}
};
+static swig_lua_attribute swig_LUA_Session_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_LUA_Session_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_LUA_Session_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_LUA_Session_bases[] = {0,0};
static const char *swig_LUA_Session_base_names[] = {"CoreSession *",0};
-static swig_lua_class _wrap_class_LUA_Session = { "Session", &SWIGTYPE_p_LUA__Session,_wrap_new_Session, swig_delete_Session, swig_LUA_Session_methods, swig_LUA_Session_attributes, swig_LUA_Session_bases, swig_LUA_Session_base_names };
+static swig_lua_class _wrap_class_LUA_Session = { "Session", &SWIGTYPE_p_LUA__Session,_wrap_new_Session, swig_delete_Session, swig_LUA_Session_methods, swig_LUA_Session_attributes, { "Session", swig_LUA_Session_cls_methods, swig_LUA_Session_cls_attributes, swig_LUA_Session_cls_constants }, swig_LUA_Session_bases, swig_LUA_Session_base_names };
static int _wrap_new_Dbh__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
LUA::Dbh *result = 0 ;
- SWIG_check_num_args("LUA::Dbh",3,3)
- if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("LUA::Dbh",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("LUA::Dbh",3,"char *");
+ SWIG_check_num_args("LUA::Dbh::Dbh",3,3)
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("LUA::Dbh::Dbh",1,"char *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Dbh::Dbh",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("LUA::Dbh::Dbh",3,"char *");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
result = (LUA::Dbh *)new LUA::Dbh(arg1,arg2,arg3);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++;
return SWIG_arg;
static int _wrap_new_Dbh__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
LUA::Dbh *result = 0 ;
- SWIG_check_num_args("LUA::Dbh",2,2)
- if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("LUA::Dbh",2,"char *");
+ SWIG_check_num_args("LUA::Dbh::Dbh",2,2)
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("LUA::Dbh::Dbh",1,"char *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Dbh::Dbh",2,"char *");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
result = (LUA::Dbh *)new LUA::Dbh(arg1,arg2);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++;
return SWIG_arg;
static int _wrap_new_Dbh__SWIG_2(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
char *arg1 = (char *) 0 ;
LUA::Dbh *result = 0 ;
- SWIG_check_num_args("LUA::Dbh",1,1)
- if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Dbh",1,"char *");
+ SWIG_check_num_args("LUA::Dbh::Dbh",1,1)
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("LUA::Dbh::Dbh",1,"char *");
arg1 = (char *)lua_tostring(L, 1);
result = (LUA::Dbh *)new LUA::Dbh(arg1);
- SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Dbh,1); SWIG_arg++;
return SWIG_arg;
if (argc == 1) {
int _v;
{
- _v = lua_isstring(L,argv[0]);
+ _v = SWIG_lua_isnilstring(L,argv[0]);
}
if (_v) {
return _wrap_new_Dbh__SWIG_2(L);
if (argc == 2) {
int _v;
{
- _v = lua_isstring(L,argv[0]);
+ _v = SWIG_lua_isnilstring(L,argv[0]);
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
return _wrap_new_Dbh__SWIG_1(L);
if (argc == 3) {
int _v;
{
- _v = lua_isstring(L,argv[0]);
+ _v = SWIG_lua_isnilstring(L,argv[0]);
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
{
- _v = lua_isstring(L,argv[2]);
+ _v = SWIG_lua_isnilstring(L,argv[2]);
}
if (_v) {
return _wrap_new_Dbh__SWIG_0(L);
}
}
- lua_pushstring(L,"No matching function for overloaded 'new_Dbh'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_Dbh'\n"
+ " Possible C/C++ prototypes are:\n"
+ " LUA::Dbh::Dbh(char *,char *,char *)\n"
+ " LUA::Dbh::Dbh(char *,char *)\n"
+ " LUA::Dbh::Dbh(char *)\n");
lua_error(L);return 0;
}
-static int _wrap_delete_Dbh(lua_State* L) {
- int SWIG_arg = -1;
- LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
-
- SWIG_check_num_args("LUA::~Dbh",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::~Dbh",1,"LUA::Dbh *");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,SWIG_POINTER_DISOWN))){
- SWIG_fail_ptr("delete_Dbh",1,SWIGTYPE_p_LUA__Dbh);
- }
-
- delete arg1;
-
- SWIG_arg=0;
-
- return SWIG_arg;
-
- if(0) SWIG_fail;
-
-fail:
- lua_error(L);
- return SWIG_arg;
-}
-
-
static int _wrap_Dbh_release(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
bool result;
- SWIG_check_num_args("release",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("release",1,"LUA::Dbh *");
+ SWIG_check_num_args("LUA::Dbh::release",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Dbh::release",1,"LUA::Dbh *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
SWIG_fail_ptr("Dbh_release",1,SWIGTYPE_p_LUA__Dbh);
}
result = (bool)(arg1)->release();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Dbh_connected(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
bool result;
- SWIG_check_num_args("connected",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("connected",1,"LUA::Dbh *");
+ SWIG_check_num_args("LUA::Dbh::connected",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Dbh::connected",1,"LUA::Dbh *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
SWIG_fail_ptr("Dbh_connected",1,SWIGTYPE_p_LUA__Dbh);
}
result = (bool)(arg1)->connected();
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Dbh_test_reactive__SWIG_0(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
char *arg4 = (char *) 0 ;
bool result;
- SWIG_check_num_args("test_reactive",4,4)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("test_reactive",3,"char *");
- if(!lua_isstring(L,4)) SWIG_fail_arg("test_reactive",4,"char *");
+ SWIG_check_num_args("LUA::Dbh::test_reactive",4,4)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Dbh::test_reactive",1,"LUA::Dbh *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Dbh::test_reactive",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("LUA::Dbh::test_reactive",3,"char *");
+ if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("LUA::Dbh::test_reactive",4,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh);
arg3 = (char *)lua_tostring(L, 3);
arg4 = (char *)lua_tostring(L, 4);
result = (bool)(arg1)->test_reactive(arg2,arg3,arg4);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Dbh_test_reactive__SWIG_1(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
bool result;
- SWIG_check_num_args("test_reactive",3,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *");
- if(!lua_isstring(L,3)) SWIG_fail_arg("test_reactive",3,"char *");
+ SWIG_check_num_args("LUA::Dbh::test_reactive",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Dbh::test_reactive",1,"LUA::Dbh *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Dbh::test_reactive",2,"char *");
+ if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("LUA::Dbh::test_reactive",3,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
result = (bool)(arg1)->test_reactive(arg2,arg3);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Dbh_test_reactive__SWIG_2(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
char *arg2 = (char *) 0 ;
bool result;
- SWIG_check_num_args("test_reactive",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("test_reactive",1,"LUA::Dbh *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("test_reactive",2,"char *");
+ SWIG_check_num_args("LUA::Dbh::test_reactive",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Dbh::test_reactive",1,"LUA::Dbh *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Dbh::test_reactive",2,"char *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
SWIG_fail_ptr("Dbh_test_reactive",1,SWIGTYPE_p_LUA__Dbh);
arg2 = (char *)lua_tostring(L, 2);
result = (bool)(arg1)->test_reactive(arg2);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
return _wrap_Dbh_test_reactive__SWIG_2(L);
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
{
- _v = lua_isstring(L,argv[2]);
+ _v = SWIG_lua_isnilstring(L,argv[2]);
}
if (_v) {
return _wrap_Dbh_test_reactive__SWIG_1(L);
}
if (_v) {
{
- _v = lua_isstring(L,argv[1]);
+ _v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
{
- _v = lua_isstring(L,argv[2]);
+ _v = SWIG_lua_isnilstring(L,argv[2]);
}
if (_v) {
{
- _v = lua_isstring(L,argv[3]);
+ _v = SWIG_lua_isnilstring(L,argv[3]);
}
if (_v) {
return _wrap_Dbh_test_reactive__SWIG_0(L);
}
}
- lua_pushstring(L,"No matching function for overloaded 'Dbh_test_reactive'");
+ SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'Dbh_test_reactive'\n"
+ " Possible C/C++ prototypes are:\n"
+ " LUA::Dbh::test_reactive(char *,char *,char *)\n"
+ " LUA::Dbh::test_reactive(char *,char *)\n"
+ " LUA::Dbh::test_reactive(char *)\n");
lua_error(L);return 0;
}
static int _wrap_Dbh_query(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
char *arg2 = (char *) 0 ;
SWIGLUA_FN arg3 ;
};
arg3 = default_swiglua_fn;
}
- SWIG_check_num_args("query",2,3)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("query",1,"LUA::Dbh *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("query",2,"char *");
- if(lua_gettop(L)>=3 && !lua_isfunction(L,3)) SWIG_fail_arg("query",3,"SWIGLUA_FN");
+ SWIG_check_num_args("LUA::Dbh::query",2,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Dbh::query",1,"LUA::Dbh *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Dbh::query",2,"char *");
+ if(lua_gettop(L)>=3 && !lua_isfunction(L,3)) SWIG_fail_arg("LUA::Dbh::query",3,"SWIGLUA_FN");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
SWIG_fail_ptr("Dbh_query",1,SWIGTYPE_p_LUA__Dbh);
}
}
result = (bool)(arg1)->query(arg2,arg3);
- SWIG_arg=0;
- lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
static int _wrap_Dbh_affected_rows(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
int result;
- SWIG_check_num_args("affected_rows",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("affected_rows",1,"LUA::Dbh *");
+ SWIG_check_num_args("LUA::Dbh::affected_rows",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Dbh::affected_rows",1,"LUA::Dbh *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
SWIG_fail_ptr("Dbh_affected_rows",1,SWIGTYPE_p_LUA__Dbh);
}
result = (int)(arg1)->affected_rows();
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static int _wrap_Dbh_load_extension(lua_State* L) {
- int SWIG_arg = -1;
+ int SWIG_arg = 0;
LUA::Dbh *arg1 = (LUA::Dbh *) 0 ;
char *arg2 = (char *) 0 ;
int result;
- SWIG_check_num_args("load_extension",2,2)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("load_extension",1,"LUA::Dbh *");
- if(!lua_isstring(L,2)) SWIG_fail_arg("load_extension",2,"char const *");
+ SWIG_check_num_args("LUA::Dbh::load_extension",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("LUA::Dbh::load_extension",1,"LUA::Dbh *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("LUA::Dbh::load_extension",2,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_LUA__Dbh,0))){
SWIG_fail_ptr("Dbh_load_extension",1,SWIGTYPE_p_LUA__Dbh);
arg2 = (char *)lua_tostring(L, 2);
result = (int)(arg1)->load_extension((char const *)arg2);
- SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
static swig_lua_attribute swig_LUA_Dbh_attributes[] = {
{0,0,0}
};
+static swig_lua_attribute swig_LUA_Dbh_cls_attributes[] = {
+ {0,0,0}
+};
+static swig_lua_method swig_LUA_Dbh_cls_methods[] = {
+ {0,0}
+};
+static swig_lua_const_info swig_LUA_Dbh_cls_constants[] = {
+ {0,0,0,0,0,0}
+};
static swig_lua_class *swig_LUA_Dbh_bases[] = {0};
static const char *swig_LUA_Dbh_base_names[] = {0};
-static swig_lua_class _wrap_class_LUA_Dbh = { "Dbh", &SWIGTYPE_p_LUA__Dbh,_wrap_new_Dbh, swig_delete_Dbh, swig_LUA_Dbh_methods, swig_LUA_Dbh_attributes, swig_LUA_Dbh_bases, swig_LUA_Dbh_base_names };
+static swig_lua_class _wrap_class_LUA_Dbh = { "Dbh", &SWIGTYPE_p_LUA__Dbh,_wrap_new_Dbh, swig_delete_Dbh, swig_LUA_Dbh_methods, swig_LUA_Dbh_attributes, { "Dbh", swig_LUA_Dbh_cls_methods, swig_LUA_Dbh_cls_attributes, swig_LUA_Dbh_cls_constants }, swig_LUA_Dbh_bases, swig_LUA_Dbh_base_names };
#ifdef __cplusplus
}
#endif
-static const struct luaL_reg swig_commands[] = {
+static const struct luaL_Reg swig_commands[] = {
{ "setGlobalVariable", _wrap_setGlobalVariable},
{ "getGlobalVariable", _wrap_getGlobalVariable},
{ "consoleLog", _wrap_consoleLog},
};
static swig_lua_const_info swig_constants[] = {
-{ SWIG_LUA_INT, (char *)"S_HUP", (long) S_HUP, 0, 0, 0},
-{ SWIG_LUA_INT, (char *)"S_FREE", (long) S_FREE, 0, 0, 0},
-{ SWIG_LUA_INT, (char *)"S_RDLOCK", (long) S_RDLOCK, 0, 0, 0},
+ {SWIG_LUA_CONSTTAB_INT("S_HUP", S_HUP)},
+ {SWIG_LUA_CONSTTAB_INT("S_FREE", S_FREE)},
+ {SWIG_LUA_CONSTTAB_INT("S_RDLOCK", S_RDLOCK)},
{0,0,0,0,0,0}
};
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
-static void *_p_LUA__SessionTo_p_CoreSession(void *x, int *newmemory) {
+static void *_p_LUA__SessionTo_p_CoreSession(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((CoreSession *) ((LUA::Session *) x));
}
static swig_type_info _swigt__p_API = {"_p_API", "API *", 0, 0, (void*)&_wrap_class_API, 0};
static swig_type_info _swigt__p_LUA__Session = {"_p_LUA__Session", "LUA::Session *", 0, 0, (void*)&_wrap_class_LUA_Session, 0};
static swig_type_info _swigt__p_SWIGLUA_FN = {"_p_SWIGLUA_FN", "SWIGLUA_FN *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Stream = {"_p_Stream", "Stream *", 0, 0, (void*)&_wrap_class_Stream, 0};
-static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state_t *|input_callback_state *", 0, 0, (void*)&_wrap_class_input_callback_state_t, 0};
+static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state_t *|input_callback_state *", 0, 0, (void*)&_wrap_class_input_callback_state, 0};
static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_lua_State = {"_p_lua_State", "lua_State *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_switch_event_node_t = {"_p_p_switch_event_node_t", "switch_event_node_t **", 0, 0, (void*)0, 0};
/* -----------------------------------------------------------------------------
* Type initialization:
- * This problem is tough by the requirement that no dynamic
- * memory is used. Also, since swig_type_info structures store pointers to
+ * This problem is tough by the requirement that no dynamic
+ * memory is used. Also, since swig_type_info structures store pointers to
* swig_cast_info structures and swig_cast_info structures store pointers back
- * to swig_type_info structures, we need some lookup code at initialization.
- * The idea is that swig generates all the structures that are needed.
- * The runtime then collects these partially filled structures.
- * The SWIG_InitializeModule function takes these initial arrays out of
+ * to swig_type_info structures, we need some lookup code at initialization.
+ * The idea is that swig generates all the structures that are needed.
+ * The runtime then collects these partially filled structures.
+ * The SWIG_InitializeModule function takes these initial arrays out of
* swig_module, and does all the lookup, filling in the swig_module.types
* array with the correct data and linking the correct swig_cast_info
* structures together.
*
- * The generated swig_type_info structures are assigned staticly to an initial
+ * The generated swig_type_info structures are assigned staticly to an initial
* array. We just loop through that array, and handle each type individually.
* First we lookup if this type has been already loaded, and if so, use the
* loaded structure instead of the generated one. Then we have to fill in the
* a column is one of the swig_cast_info structures for that type.
* The cast_initial array is actually an array of arrays, because each row has
* a variable number of columns. So to actually build the cast linked list,
- * we find the array of casts associated with the type, and loop through it
+ * we find the array of casts associated with the type, and loop through it
* adding the casts to the list. The one last trick we need to do is making
* sure the type pointer in the swig_cast_info struct is correct.
*
- * First off, we lookup the cast->type name to see if it is already loaded.
+ * First off, we lookup the cast->type name to see if it is already loaded.
* There are three cases to handle:
* 1) If the cast->type has already been loaded AND the type we are adding
* casting info to has not been loaded (it is in this module), THEN we
* replace the cast->type pointer with the type pointer that has already
* been loaded.
- * 2) If BOTH types (the one we are adding casting info to, and the
+ * 2) If BOTH types (the one we are adding casting info to, and the
* cast->type) are loaded, THEN the cast info has already been loaded by
* the previous module so we just ignore it.
* 3) Finally, if cast->type has not already been loaded, then we add that
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) {
/* Initialize the swig_module */
module_head->next = &swig_module;
}
- /* When multiple interpeters are used, a module could have already been initialized in
+ /* When multiple interpreters 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 */
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
/* Insert casting types */
cast = swig_module.cast_initial[i];
while (cast->type) {
-
+
/* Don't need to add information already in the list */
ret = 0;
#ifdef SWIGRUNTIME_DEBUG
#endif
/* this is the initialization function
added at the very end of the code
- the function is always called SWIG_init, but an eariler #define will rename it
+ the function is always called SWIG_init, but an earlier #define will rename it
*/
-SWIGEXPORT int SWIG_init(lua_State* L)
+#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
+LUALIB_API int SWIG_init(lua_State* L)
+#else
+SWIGEXPORT int SWIG_init(lua_State* L) /* default Lua action */
+#endif
{
+#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) /* valid for both Lua and eLua */
int i;
/* start with global table */
- lua_pushvalue(L,LUA_GLOBALSINDEX);
+ lua_pushglobaltable (L);
/* SWIG's internal initalisation */
SWIG_InitializeModule((void*)L);
SWIG_PropagateClientData();
+#endif
+
+#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC))
/* add a global fn */
SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type);
SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal);
for (i = 0; swig_variables[i].name; i++){
SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set);
}
- /* set up base class pointers (the hierachy) */
+#endif
+
+#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
+ /* set up base class pointers (the hierarchy) */
for (i = 0; swig_types[i]; i++){
if (swig_types[i]->clientdata){
SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata));
SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata));
}
}
+#endif
+
+#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC))
/* constants */
SWIG_Lua_InstallConstants(L,swig_constants);
+#endif
+
+#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
/* invoke user-specific initialization */
SWIG_init_user(L);
/* end module */
- lua_pop(L,1); /* tidy stack (remove module table)*/
- lua_pop(L,1); /* tidy stack (remove global table)*/
+ /* Note: We do not clean up the stack here (Lua will do this for us). At this
+ point, we have the globals table and out module table on the stack. Returning
+ one value makes the module table the result of the require command. */
return 1;
+#else
+ return 0;
+#endif
}
#ifdef __cplusplus