|
|
|
@@ -1,3 +1,20 @@
|
|
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
|
|
|
* Version 1.3.20
|
|
|
|
|
*
|
|
|
|
|
* This file is not intended to be easily readable and contains a number of
|
|
|
|
|
* coding conventions designed to improve portability and efficiency. Do not make
|
|
|
|
|
* changes to this file unless you know what you are doing--modify the SWIG
|
|
|
|
|
* interface file instead.
|
|
|
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
|
|
#define SWIGPYTHON
|
|
|
|
|
|
|
|
|
|
#define SWIG_GLOBAL 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "Python.h"
|
|
|
|
|
|
|
|
|
|
/*************************************************************** -*- c -*-
|
|
|
|
|
* python/precommon.swg
|
|
|
|
|
*
|
|
|
|
@@ -13,6 +30,8 @@
|
|
|
|
|
#define SWIG_TypeName SWIG_Python_TypeName
|
|
|
|
|
#define SWIG_TypeQuery SWIG_Python_TypeQuery
|
|
|
|
|
#define SWIG_TypeClientData SWIG_Python_TypeClientData
|
|
|
|
|
#define SWIG_PackData SWIG_Python_PackData
|
|
|
|
|
#define SWIG_UnpackData SWIG_Python_UnpackData
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
|
* common.swg
|
|
|
|
@@ -29,11 +48,10 @@
|
|
|
|
|
* this copyright message remains intact.
|
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
#include "Python.h"
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
|
|
#if defined(_WIN32) || defined(__WIN32__)
|
|
|
|
|
# if defined(_MSC_VER)
|
|
|
|
|
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
|
|
|
|
# if defined(_MSC_VER) || defined(__GNUC__)
|
|
|
|
|
# if defined(STATIC_LINKED)
|
|
|
|
|
# define SWIGEXPORT(a) a
|
|
|
|
|
# define SWIGIMPORT(a) extern a
|
|
|
|
@@ -87,6 +105,8 @@ SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
|
|
|
|
|
SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
|
|
|
|
|
SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
|
|
|
|
|
SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
|
|
|
|
|
SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
|
|
|
|
|
SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
@@ -94,8 +114,7 @@ static swig_type_info *swig_type_list = 0;
|
|
|
|
|
|
|
|
|
|
/* Register a type mapping with the type-checking */
|
|
|
|
|
SWIGRUNTIME(swig_type_info *)
|
|
|
|
|
SWIG_TypeRegister(swig_type_info *ti)
|
|
|
|
|
{
|
|
|
|
|
SWIG_TypeRegister(swig_type_info *ti) {
|
|
|
|
|
swig_type_info *tc, *head, *ret, *next;
|
|
|
|
|
/* Check to see if this type has already been registered */
|
|
|
|
|
tc = swig_type_list;
|
|
|
|
@@ -127,15 +146,14 @@ SWIG_TypeRegister(swig_type_info *ti)
|
|
|
|
|
head = tc;
|
|
|
|
|
tc++;
|
|
|
|
|
}
|
|
|
|
|
if (next) next->prev = head; /**/
|
|
|
|
|
if (next) next->prev = head;
|
|
|
|
|
head->next = next;
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Check the typename */
|
|
|
|
|
SWIGRUNTIME(swig_type_info *)
|
|
|
|
|
SWIG_TypeCheck(char *c, swig_type_info *ty)
|
|
|
|
|
{
|
|
|
|
|
SWIG_TypeCheck(char *c, swig_type_info *ty) {
|
|
|
|
|
swig_type_info *s;
|
|
|
|
|
if (!ty) return 0; /* Void pointer */
|
|
|
|
|
s = ty->next; /* First element always just a name */
|
|
|
|
@@ -151,7 +169,7 @@ SWIG_TypeCheck(char *c, swig_type_info *ty)
|
|
|
|
|
s->next = ty->next;
|
|
|
|
|
if (ty->next) ty->next->prev = s;
|
|
|
|
|
ty->next = s;
|
|
|
|
|
s->prev = ty; /**/
|
|
|
|
|
s->prev = ty;
|
|
|
|
|
return s;
|
|
|
|
|
}
|
|
|
|
|
s = s->next;
|
|
|
|
@@ -161,16 +179,14 @@ SWIG_TypeCheck(char *c, swig_type_info *ty)
|
|
|
|
|
|
|
|
|
|
/* Cast a pointer up an inheritance hierarchy */
|
|
|
|
|
SWIGRUNTIME(void *)
|
|
|
|
|
SWIG_TypeCast(swig_type_info *ty, void *ptr)
|
|
|
|
|
{
|
|
|
|
|
SWIG_TypeCast(swig_type_info *ty, void *ptr) {
|
|
|
|
|
if ((!ty) || (!ty->converter)) return ptr;
|
|
|
|
|
return (*ty->converter)(ptr);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Dynamic pointer casting. Down an inheritance hierarchy */
|
|
|
|
|
SWIGRUNTIME(swig_type_info *)
|
|
|
|
|
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
|
|
|
|
|
{
|
|
|
|
|
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
|
|
|
|
|
swig_type_info *lastty = ty;
|
|
|
|
|
if (!ty || !ty->dcast) return ty;
|
|
|
|
|
while (ty && (ty->dcast)) {
|
|
|
|
@@ -217,12 +233,51 @@ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
|
|
|
|
|
equiv = equiv->next;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Pack binary data into a string */
|
|
|
|
|
SWIGRUNTIME(char *)
|
|
|
|
|
SWIG_PackData(char *c, void *ptr, int sz) {
|
|
|
|
|
static char hex[17] = "0123456789abcdef";
|
|
|
|
|
int i;
|
|
|
|
|
unsigned char *u = (unsigned char *) ptr;
|
|
|
|
|
register unsigned char uu;
|
|
|
|
|
for (i = 0; i < sz; i++,u++) {
|
|
|
|
|
uu = *u;
|
|
|
|
|
*(c++) = hex[(uu & 0xf0) >> 4];
|
|
|
|
|
*(c++) = hex[uu & 0xf];
|
|
|
|
|
}
|
|
|
|
|
return c;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Unpack binary data from a string */
|
|
|
|
|
SWIGRUNTIME(char *)
|
|
|
|
|
SWIG_UnpackData(char *c, void *ptr, int sz) {
|
|
|
|
|
register unsigned char uu = 0;
|
|
|
|
|
register int d;
|
|
|
|
|
unsigned char *u = (unsigned char *) ptr;
|
|
|
|
|
int i;
|
|
|
|
|
for (i = 0; i < sz; i++, u++) {
|
|
|
|
|
d = *(c++);
|
|
|
|
|
if ((d >= '0') && (d <= '9'))
|
|
|
|
|
uu = ((d - '0') << 4);
|
|
|
|
|
else if ((d >= 'a') && (d <= 'f'))
|
|
|
|
|
uu = ((d - ('a'-10)) << 4);
|
|
|
|
|
d = *(c++);
|
|
|
|
|
if ((d >= '0') && (d <= '9'))
|
|
|
|
|
uu |= (d - '0');
|
|
|
|
|
else if ((d >= 'a') && (d <= 'f'))
|
|
|
|
|
uu |= (d - ('a'-10));
|
|
|
|
|
*u = uu;
|
|
|
|
|
}
|
|
|
|
|
return c;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
|
* python.swg
|
|
|
|
|
*
|
|
|
|
@@ -233,6 +288,7 @@ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
|
|
|
|
|
* Author : David Beazley (beazley@cs.uchicago.edu)
|
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
#include "Python.h"
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
@@ -277,10 +333,6 @@ typedef struct swig_const_info {
|
|
|
|
|
SWIG_Python_addvarlink(p, name, get_attr, set_attr)
|
|
|
|
|
#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
|
|
|
|
|
SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
|
|
|
|
|
#define SWIG_PackData(c, ptr, sz) \
|
|
|
|
|
SWIG_Python_PackData(c, ptr, sz)
|
|
|
|
|
#define SWIG_UnpackData(c, ptr, sz) \
|
|
|
|
|
SWIG_Python_UnpackData(c, ptr, sz)
|
|
|
|
|
#define SWIG_NewPackedObj(ptr, sz, type) \
|
|
|
|
|
SWIG_Python_NewPackedObj(ptr, sz, type)
|
|
|
|
|
#define SWIG_InstallConstants(d, constants) \
|
|
|
|
@@ -288,17 +340,15 @@ typedef struct swig_const_info {
|
|
|
|
|
|
|
|
|
|
#ifdef SWIG_NOINCLUDE
|
|
|
|
|
|
|
|
|
|
SWIGEXPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
|
|
|
|
|
SWIGEXPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
|
|
|
|
|
SWIGEXPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
|
|
|
|
|
SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
|
|
|
|
|
SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
|
|
|
|
|
SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
|
|
|
|
|
SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
|
|
|
|
|
SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
|
|
|
|
|
SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
|
|
|
|
|
SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
|
|
|
|
|
SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
|
|
|
|
|
|
|
|
|
|
SWIGEXPORT(PyObject *) SWIG_Python_newvarlink(void);
|
|
|
|
|
SWIGEXPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
|
|
|
|
|
SWIGEXPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
|
|
|
|
|
SWIGEXPORT(char *) SWIG_Python_PackData(char *c, void *, int);
|
|
|
|
|
SWIGEXPORT(char *) SWIG_Python_UnpackData(char *c, void *, int);
|
|
|
|
|
SWIGEXPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
|
|
|
|
|
SWIGEXPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
|
|
@@ -393,8 +443,7 @@ SWIG_Python_newvarlink(void) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SWIGRUNTIME(void)
|
|
|
|
|
SWIG_Python_addvarlink(PyObject *p, char *name,
|
|
|
|
|
PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
|
|
|
|
|
SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
|
|
|
|
|
swig_varlinkobject *v;
|
|
|
|
|
swig_globalvar *gv;
|
|
|
|
|
v= (swig_varlinkobject *) p;
|
|
|
|
@@ -407,44 +456,6 @@ SWIG_Python_addvarlink(PyObject *p, char *name,
|
|
|
|
|
v->vars = gv;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Pack binary data into a string */
|
|
|
|
|
SWIGRUNTIME(char *)
|
|
|
|
|
SWIG_Python_PackData(char *c, void *ptr, int sz) {
|
|
|
|
|
static char hex[17] = "0123456789abcdef";
|
|
|
|
|
int i;
|
|
|
|
|
unsigned char *u = (unsigned char *) ptr;
|
|
|
|
|
register unsigned char uu;
|
|
|
|
|
for (i = 0; i < sz; i++,u++) {
|
|
|
|
|
uu = *u;
|
|
|
|
|
*(c++) = hex[(uu & 0xf0) >> 4];
|
|
|
|
|
*(c++) = hex[uu & 0xf];
|
|
|
|
|
}
|
|
|
|
|
return c;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Unpack binary data from a string */
|
|
|
|
|
SWIGRUNTIME(char *)
|
|
|
|
|
SWIG_Python_UnpackData(char *c, void *ptr, int sz) {
|
|
|
|
|
register unsigned char uu = 0;
|
|
|
|
|
register int d;
|
|
|
|
|
unsigned char *u = (unsigned char *) ptr;
|
|
|
|
|
int i;
|
|
|
|
|
for (i = 0; i < sz; i++, u++) {
|
|
|
|
|
d = *(c++);
|
|
|
|
|
if ((d >= '0') && (d <= '9'))
|
|
|
|
|
uu = ((d - '0') << 4);
|
|
|
|
|
else if ((d >= 'a') && (d <= 'f'))
|
|
|
|
|
uu = ((d - ('a'-10)) << 4);
|
|
|
|
|
d = *(c++);
|
|
|
|
|
if ((d >= '0') && (d <= '9'))
|
|
|
|
|
uu |= (d - '0');
|
|
|
|
|
else if ((d >= 'a') && (d <= 'f'))
|
|
|
|
|
uu |= (d - ('a'-10));
|
|
|
|
|
*u = uu;
|
|
|
|
|
}
|
|
|
|
|
return c;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Convert a pointer value */
|
|
|
|
|
SWIGRUNTIME(int)
|
|
|
|
|
SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
|
|
|
|
@@ -539,8 +550,7 @@ type_error:
|
|
|
|
|
|
|
|
|
|
/* 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 argnum, int flags) {
|
|
|
|
|
void *result;
|
|
|
|
|
SWIG_Python_ConvertPtr(obj, &result, ty, flags | SWIG_POINTER_EXCEPTION);
|
|
|
|
|
return result;
|
|
|
|
@@ -671,3 +681,65 @@ SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* -------- TYPES TABLE (BEGIN) -------- */
|
|
|
|
|
|
|
|
|
|
static swig_type_info *swig_types[1];
|
|
|
|
|
|
|
|
|
|
/* -------- TYPES TABLE (END) -------- */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*-----------------------------------------------
|
|
|
|
|
@(target):= _swigrun.so
|
|
|
|
|
------------------------------------------------*/
|
|
|
|
|
#define SWIG_init init_swigrun
|
|
|
|
|
|
|
|
|
|
#define SWIG_name "_swigrun"
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
static PyMethodDef SwigMethods[] = {
|
|
|
|
|
{ NULL, NULL }
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static swig_type_info *swig_types_initial[] = {
|
|
|
|
|
0
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
|
|
|
|
|
|
|
|
|
|
static swig_const_info swig_const_table[] = {
|
|
|
|
|
{0}};
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C"
|
|
|
|
|
#endif
|
|
|
|
|
SWIGEXPORT(void) SWIG_init(void) {
|
|
|
|
|
static PyObject *SWIG_globals = 0;
|
|
|
|
|
static int typeinit = 0;
|
|
|
|
|
PyObject *m, *d;
|
|
|
|
|
int i;
|
|
|
|
|
if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
|
|
|
|
|
m = Py_InitModule((char *) SWIG_name, SwigMethods);
|
|
|
|
|
d = PyModule_GetDict(m);
|
|
|
|
|
|
|
|
|
|
if (!typeinit) {
|
|
|
|
|
for (i = 0; swig_types_initial[i]; i++) {
|
|
|
|
|
swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
|
|
|
|
|
}
|
|
|
|
|
typeinit = 1;
|
|
|
|
|
}
|
|
|
|
|
SWIG_InstallConstants(d,swig_const_table);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|