Commit bd064e1f authored by Timothy Stack's avatar Timothy Stack
Browse files

Regenerate with newer swig

parent 3dafe359
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.19
* Version 1.3.21
*
* 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
......@@ -12,6 +12,25 @@
#include "Python.h"
/*************************************************************** -*- c -*-
* python/precommon.swg
*
* Rename all exported symbols from common.swg, to avoid symbol
* clashes if multiple interpreters are included
*
************************************************************************/
#define SWIG_TypeRegister SWIG_Python_TypeRegister
#define SWIG_TypeCheck SWIG_Python_TypeCheck
#define SWIG_TypeCast SWIG_Python_TypeCast
#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
#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,33 +48,33 @@
#include <string.h>
#if defined(_WIN32) || defined(__WIN32__)
# if defined(_MSC_VER)
# if defined(STATIC_LINKED)
# define SWIGEXPORT(a) a
# define SWIGIMPORT(a) extern a
# else
# define SWIGEXPORT(a) __declspec(dllexport) a
# define SWIGIMPORT(a) extern a
# endif
# else
# if defined(__BORLANDC__)
# define SWIGEXPORT(a) a _export
# define SWIGIMPORT(a) a _export
# else
# define SWIGEXPORT(a) a
# define SWIGIMPORT(a) a
# endif
# endif
#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
# else
# define SWIGEXPORT(a) __declspec(dllexport) a
# define SWIGIMPORT(a) extern a
# endif
# else
# if defined(__BORLANDC__)
# define SWIGEXPORT(a) a _export
# define SWIGIMPORT(a) a _export
# else
# define SWIGEXPORT(a) a
# define SWIGIMPORT(a) a
# endif
# endif
#else
# define SWIGEXPORT(a) a
# define SWIGIMPORT(a) a
# define SWIGEXPORT(a) a
# define SWIGIMPORT(a) a
#endif
#ifdef SWIG_GLOBAL
#define SWIGRUNTIME(a) SWIGEXPORT(a)
# define SWIGRUNTIME(a) SWIGEXPORT(a)
#else
#define SWIGRUNTIME(a) static a
# define SWIGRUNTIME(a) static a
#endif
#ifdef __cplusplus
......@@ -66,10 +85,10 @@ typedef void *(*swig_converter_func)(void *);
typedef struct swig_type_info *(*swig_dycast_func)(void **);
typedef struct swig_type_info {
const char *name;
const char *name;
swig_converter_func converter;
const char *str;
void *clientdata;
void *clientdata;
swig_dycast_func dcast;
struct swig_type_info *next;
struct swig_type_info *prev;
......@@ -84,6 +103,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
......@@ -91,15 +112,14 @@ 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;
while (tc) {
if (strcmp(tc->name, ti->name) == 0) {
/* Already exists in the table. Just add additional types to the list */
if (tc->clientdata) ti->clientdata = tc->clientdata;
if (tc->clientdata) ti->clientdata = tc->clientdata;
head = tc;
next = tc->next;
goto l1;
......@@ -114,7 +134,7 @@ SWIG_TypeRegister(swig_type_info *ti)
swig_type_list = ti;
/* Build linked lists */
l1:
l1:
ret = head;
tc = ti + 1;
/* Patch up the rest of the links */
......@@ -124,15 +144,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 */
......@@ -142,13 +161,13 @@ SWIG_TypeCheck(char *c, swig_type_info *ty)
/* Move s to the top of the linked list */
s->prev->next = s->next;
if (s->next) {
s->next->prev = s->prev;
s->next->prev = s->prev;
}
/* Insert s as second element in the list */
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;
......@@ -158,21 +177,19 @@ 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)) {
ty = (*ty->dcast)(ptr);
if (ty) lastty = ty;
ty = (*ty->dcast)(ptr);
if (ty) lastty = ty;
}
return lastty;
}
......@@ -206,19 +223,57 @@ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
if (!equiv->converter) {
tc = swig_type_list;
while (tc) {
if ((strcmp(tc->name, equiv->name) == 0))
SWIG_TypeClientData(tc,clientdata);
tc = tc->prev;
if ((strcmp(tc->name, equiv->name) == 0))
SWIG_TypeClientData(tc,clientdata);
tc = tc->prev;
}
}
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
/***********************************************************************
......@@ -261,17 +316,37 @@ typedef struct swig_const_info {
swig_type_info **ptype;
} swig_const_info;
/* Common SWIG API */
#define SWIG_ConvertPtr(obj, pp, type, flags) \
SWIG_Python_ConvertPtr(obj, pp, type, flags)
#define SWIG_NewPointerObj(p, type, flags) \
SWIG_Python_NewPointerObj(p, type, flags)
#define SWIG_MustGetPtr(p, type, argnum, flags) \
SWIG_Python_MustGetPtr(p, type, argnum, flags)
/* Python-specific SWIG API */
#define SWIG_newvarlink() \
SWIG_Python_newvarlink()
#define SWIG_addvarlink(p, name, get_attr, set_attr) \
SWIG_Python_addvarlink(p, name, get_attr, set_attr)
#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
#define SWIG_NewPackedObj(ptr, sz, type) \
SWIG_Python_NewPackedObj(ptr, sz, type)
#define SWIG_InstallConstants(d, constants) \
SWIG_Python_InstallConstants(d, constants)
#ifdef SWIG_NOINCLUDE
SWIGEXPORT(PyObject *) SWIG_newvarlink(void);
SWIGEXPORT(void) SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
SWIGEXPORT(int) SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int);
SWIGEXPORT(int) SWIG_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
SWIGEXPORT(char *) SWIG_PackData(char *c, void *, int);
SWIGEXPORT(char *) SWIG_UnpackData(char *c, void *, int);
SWIGEXPORT(PyObject *) SWIG_NewPointerObj(void *, swig_type_info *,int own);
SWIGEXPORT(PyObject *) SWIG_NewPackedObj(void *, int sz, swig_type_info *);
SWIGEXPORT(void) SWIG_InstallConstants(PyObject *d, swig_const_info constants[]);
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[]);
#else
/* -----------------------------------------------------------------------------
......@@ -338,7 +413,7 @@ swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
statichere PyTypeObject varlinktype = {
PyObject_HEAD_INIT(0)
0,
(char *)"swigvarlink", /* Type name */
(char *)"swigvarlink", /* Type name */
sizeof(swig_varlinkobject), /* Basic size */
0, /* Itemsize */
0, /* Deallocator */
......@@ -354,7 +429,7 @@ statichere PyTypeObject varlinktype = {
/* Create a variable linking object for use later */
SWIGRUNTIME(PyObject *)
SWIG_newvarlink(void) {
SWIG_Python_newvarlink(void) {
swig_varlinkobject *result = 0;
result = PyMem_NEW(swig_varlinkobject,1);
varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
......@@ -366,8 +441,7 @@ SWIG_newvarlink(void) {
}
SWIGRUNTIME(void)
SWIG_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;
......@@ -380,49 +454,11 @@ SWIG_addvarlink(PyObject *p, char *name,
v->vars = gv;
}
/* 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;
}
/* Convert a pointer value */
SWIGRUNTIME(int)
SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
swig_type_info *tc;
char *c;
char *c = 0;
static PyObject *SWIG_this = 0;
int newref = 0;
PyObject *pyobj = 0;
......@@ -490,17 +526,17 @@ cobject:
}
if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
PyObject *zero = PyInt_FromLong(0);
PyObject_SetAttrString(pyobj,(char*)"thisown",zero);
Py_DECREF(zero);
PyObject *zero = PyInt_FromLong(0);
PyObject_SetAttrString(pyobj,(char*)"thisown",zero);
Py_DECREF(zero);
}
return 0;
type_error:
if (flags & SWIG_POINTER_EXCEPTION) {
if (ty) {
char *temp = (char *) malloc(64+strlen(ty->name));
sprintf(temp,"Type error. Expected %s", ty->name);
if (ty && c) {
char *temp = (char *) malloc(64+strlen(ty->name)+strlen(c));
sprintf(temp,"Type error. Got %s, expected %s", c, ty->name);
PyErr_SetString(PyExc_TypeError, temp);
free((char *) temp);
} else {
......@@ -510,11 +546,19 @@ type_error:
return -1;
}
/* 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) {
void *result;
SWIG_Python_ConvertPtr(obj, &result, ty, flags | SWIG_POINTER_EXCEPTION);
return result;
}
/* Convert a packed value value */
SWIGRUNTIME(int)
SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
swig_type_info *tc;
char *c;
char *c = 0;
if ((!obj) || (!PyString_Check(obj))) goto type_error;
c = PyString_AsString(obj);
......@@ -531,9 +575,9 @@ SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int fla
type_error:
if (flags) {
if (ty) {
char *temp = (char *) malloc(64+strlen(ty->name));
sprintf(temp,"Type error. Expected %s", ty->name);
if (ty && c) {
char *temp = (char *) malloc(64+strlen(ty->name)+strlen(c));
sprintf(temp,"Type error. Got %s, expected %s", c, ty->name);
PyErr_SetString(PyExc_TypeError, temp);
free((char *) temp);
} else {
......@@ -545,7 +589,7 @@ type_error:
/* Create a new pointer object */
SWIGRUNTIME(PyObject *)
SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
PyObject *robj;
if (!ptr) {
Py_INCREF(Py_None);
......@@ -572,9 +616,9 @@ SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
Py_DECREF(args);
if (inst) {
if (own) {
PyObject *n = PyInt_FromLong(1);
PyObject_SetAttrString(inst,(char*)"thisown",n);
Py_DECREF(n);
PyObject *n = PyInt_FromLong(1);
PyObject_SetAttrString(inst,(char*)"thisown",n);
Py_DECREF(n);
}
robj = inst;
}
......@@ -583,7 +627,7 @@ SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
}
SWIGRUNTIME(PyObject *)
SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
SWIG_Python_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
char result[1024];
char *r = result;
if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
......@@ -595,7 +639,7 @@ SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
/* Install Constants */
SWIGRUNTIME(void)
SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
int i;
PyObject *obj;
for (i = 0; constants[i].type; i++) {
......@@ -628,17 +672,15 @@ SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
#endif
/* Contract support */
#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
#ifdef __cplusplus
}
#endif
/* -------- TYPES TABLE (BEGIN) -------- */
#define SWIGTYPE_p_f_elvin_handle_t_p_char_elvin_keys_t_int_elvin_notify_cb_t_p_void_elvin_error_t__elvin_subscription_t swig_types[0]
......@@ -1411,7 +1453,7 @@ static PyObject *_wrap_address_tuple_site_set(PyObject *self, PyObject *args) {
if (arg2) {
arg1->site = (char *) malloc(strlen(arg2)+1);
strcpy((char*)arg1->site,arg2);
}else {
} else {
arg1->site = 0;
}
}
......@@ -1452,7 +1494,7 @@ static PyObject *_wrap_address_tuple_expt_set(PyObject *self, PyObject *args) {
if (arg2) {
arg1->expt = (char *) malloc(strlen(arg2)+1);
strcpy((char*)arg1->expt,arg2);
}else {
} else {
arg1->expt = 0;
}
}
......@@ -1493,7 +1535,7 @@ static PyObject *_wrap_address_tuple_group_set(PyObject *self, PyObject *args) {
if (arg2) {
arg1->group = (char *) malloc(strlen(arg2)+1);
strcpy((char*)arg1->group,arg2);
}else {
} else {
arg1->group = 0;
}
}
......@@ -1534,7 +1576,7 @@ static PyObject *_wrap_address_tuple_host_set(PyObject *self, PyObject *args) {
if (arg2) {
arg1->host = (char *) malloc(strlen(arg2)+1);
strcpy((char*)arg1->host,arg2);
}else {
} else {
arg1->host = 0;
}
}
......@@ -1575,7 +1617,7 @@ static PyObject *_wrap_address_tuple_objtype_set(PyObject *self, PyObject *args)
if (arg2) {
arg1->objtype = (char *) malloc(strlen(arg2)+1);
strcpy((char*)arg1->objtype,arg2);
}else {
} else {
arg1->objtype = 0;
}
}
......@@ -1616,7 +1658,7 @@ static PyObject *_wrap_address_tuple_objname_set(PyObject *self, PyObject *args)
if (arg2) {
arg1->objname = (char *) malloc(strlen(arg2)+1);
strcpy((char*)arg1->objname,arg2);
}else {
} else {
arg1->objname = 0;
}
}
......@@ -1657,7 +1699,7 @@ static PyObject *_wrap_address_tuple_eventtype_set(PyObject *self, PyObject *arg
if (arg2) {
arg1->eventtype = (char *) malloc(strlen(arg2)+1);
strcpy((char*)arg1->eventtype,arg2);
}else {
} else {
arg1->eventtype = 0;
}
}
......
# This file was created automatically by SWIG.
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
import _tbevent
def _swig_setattr(self,class_type,name,value):
if (name == "this"):
if isinstance(value, class_type):
......@@ -25,6 +27,7 @@ try:
except AttributeError:
class _object : pass
_newclass = 0
del types
MAXHOSTNAMELEN = _tbevent.MAXHOSTNAMELEN
......@@ -33,51 +36,51 @@ class event_handle(_object):
__setattr__ = lambda self, name, value: _swig_setattr(self, event_handle, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, event_handle, name)
def __repr__(self):
return "<C event_handle instance at %s>" % (self.this,)
__swig_setmethods__["server"] = _tbevent.event_handle_server_set
__swig_getmethods__["server"] = _tbevent.event_handle_server_get
if _newclass:server = property(_tbevent.event_handle_server_get,_tbevent.event_handle_server_set)
if _newclass:server = property(_tbevent.event_handle_server_get, _tbevent.event_handle_server_set)
__swig_setmethods__["status"] = _tbevent.event_handle_status_set
__swig_getmethods__["status"] = _tbevent.event_handle_status_get
if _newclass:status = property(_tbevent.event_handle_status_get,_tbevent.event_handle_status_set)
if _newclass:status = property(_tbevent.event_handle_status_get, _tbevent.event_handle_status_set)
__swig_setmethods__["keydata"] = _tbevent.event_handle_keydata_set
__swig_getmethods__["keydata"] = _tbevent.event_handle_keydata_get
if _newclass:keydata = property(_tbevent.event_handle_keydata_get,_tbevent.event_handle_keydata_set)
if _newclass:keydata = property(_tbevent.event_handle_keydata_get, _tbevent.event_handle_keydata_set)
__swig_setmethods__["keylen"] = _tbevent.event_handle_keylen_set
__swig_getmethods__["keylen"] = _tbevent.event_handle_keylen_get
if _newclass:keylen = property(_tbevent.event_handle_keylen_get,_tbevent.event_handle_keylen_set)
if _newclass:keylen = property(_tbevent.event_handle_keylen_get, _tbevent.event_handle_keylen_set)
__swig_setmethods__["init"] = _tbevent.event_handle_init_set
__swig_getmethods__["init"] = _tbevent.event_handle_init_get
if _newclass:init = property(_tbevent.event_handle_init_get,_tbevent.event_handle_init_set)
if _newclass:init = property(_tbevent.event_handle_init_get, _tbevent.event_handle_init_set)
__swig_setmethods__["connect"] = _tbevent.event_handle_connect_set
__swig_getmethods__["connect"] = _tbevent.event_handle_connect_get
if _newclass:connect = property(_tbevent.event_handle_connect_get,_tbevent.event_handle_connect_set)
if _newclass:connect = property(_tbevent.event_handle_connect_get, _tbevent.event_handle_connect_set)
__swig_setmethods__["disconnect"] = _tbevent.event_handle_disconnect_set
__swig_getmethods__["disconnect"] = _tbevent.event_handle_disconnect_get
if _newclass:disconnect = property(_tbevent.event_handle_disconnect_get,_tbevent.event_handle_disconnect_set)
if _newclass:disconnect = property(_tbevent.event_handle_disconnect_get, _tbevent.event_handle_disconnect_set)
__swig_setmethods__["cleanup"] = _tbevent.event_handle_cleanup_set
__swig_getmethods__["cleanup"] = _tbevent.event_handle_cleanup_get
if _newclass:cleanup = property(_tbevent.event_handle_cleanup_get,_tbevent.event_handle_cleanup_set)
if _newclass:cleanup = property(_tbevent.event_handle_cleanup_get, _tbevent.event_handle_cleanup_set)
__swig_setmethods__["mainloop"] = _tbevent.event_handle_mainloop_set