2021-05-05 16:19:27 -07:00
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG ( http : //www.swig.org).
* Version 4.0 .2
*
* 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 SWIG_PYTHON_CAST_MODE
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
# ifndef SWIGPYTHON
# define SWIGPYTHON
# endif
# define SWIG_DIRECTORS
# define SWIG_PYTHON_DIRECTOR_NO_VTABLE
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
# ifdef __cplusplus
/* SwigValueWrapper is described in swig.swg */
2021-05-19 21:33:08 -07:00
template < typename T > class SwigValueWrapper {
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 ( ) : 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 ; }
2021-05-05 16:19:27 -07:00
} ;
2021-05-19 21:33:08 -07:00
template < typename T > T SwigValueInit ( ) {
return T ( ) ;
2021-05-05 16:19:27 -07:00
}
# endif
/* -----------------------------------------------------------------------------
* This section contains generic SWIG labels for method / variable
* declarations / attributes , and other compiler dependent labels .
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* template workaround for compilers that cannot correctly implement the C++ standard */
# ifndef SWIGTEMPLATEDISAMBIGUATOR
2021-05-19 21:33:08 -07:00
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
# define SWIGTEMPLATEDISAMBIGUATOR template
# elif defined(__HP_aCC)
2021-05-05 16:19:27 -07:00
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
2021-05-19 21:33:08 -07:00
# define SWIGTEMPLATEDISAMBIGUATOR template
# else
# define SWIGTEMPLATEDISAMBIGUATOR
# endif
2021-05-05 16:19:27 -07:00
# endif
/* inline attribute */
# ifndef SWIGINLINE
2021-05-19 21:33:08 -07:00
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
# define SWIGINLINE inline
# else
# define SWIGINLINE
# endif
2021-05-05 16:19:27 -07:00
# endif
/* attribute recognised by some compilers to avoid 'unused' warnings */
# ifndef SWIGUNUSED
2021-05-19 21:33:08 -07:00
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
# define SWIGUNUSED __attribute__ ((__unused__))
# else
# define SWIGUNUSED
# endif
# elif defined(__ICC)
# define SWIGUNUSED __attribute__ ((__unused__))
# else
# define SWIGUNUSED
# endif
2021-05-05 16:19:27 -07:00
# endif
# ifndef SWIG_MSC_UNSUPPRESS_4505
2021-05-19 21:33:08 -07:00
# if defined(_MSC_VER)
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
# endif
2021-05-05 16:19:27 -07:00
# endif
# ifndef SWIGUNUSEDPARM
2021-05-19 21:33:08 -07:00
# ifdef __cplusplus
# define SWIGUNUSEDPARM(p)
# else
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
2021-05-05 16:19:27 -07:00
# endif
/* internal SWIG method */
# ifndef SWIGINTERN
2021-05-19 21:33:08 -07:00
# define SWIGINTERN static SWIGUNUSED
2021-05-05 16:19:27 -07:00
# endif
/* internal inline SWIG method */
# ifndef SWIGINTERNINLINE
2021-05-19 21:33:08 -07:00
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
2021-05-05 16:19:27 -07:00
# endif
/* exporting methods */
# if defined(__GNUC__)
2021-05-19 21:33:08 -07:00
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
# ifndef GCC_HASCLASSVISIBILITY
# define GCC_HASCLASSVISIBILITY
# endif
# endif
2021-05-05 16:19:27 -07:00
# endif
# ifndef SWIGEXPORT
2021-05-19 21:33:08 -07:00
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
# if defined(STATIC_LINKED)
# define SWIGEXPORT
# else
# define SWIGEXPORT __declspec(dllexport)
# endif
# else
# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
# define SWIGEXPORT __attribute__ ((visibility("default")))
# else
# define SWIGEXPORT
# endif
# endif
2021-05-05 16:19:27 -07:00
# endif
/* calling conventions for Windows */
# ifndef SWIGSTDCALL
2021-05-19 21:33:08 -07:00
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
# define SWIGSTDCALL __stdcall
# else
# define SWIGSTDCALL
# endif
2021-05-05 16:19:27 -07:00
# endif
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
2021-05-19 21:33:08 -07:00
# if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
# define _CRT_SECURE_NO_DEPRECATE
2021-05-05 16:19:27 -07:00
# endif
/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
2021-05-19 21:33:08 -07:00
# if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
# define _SCL_SECURE_NO_DEPRECATE
2021-05-05 16:19:27 -07:00
# endif
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
2021-05-19 21:33:08 -07:00
# if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
2021-05-05 16:19:27 -07:00
# endif
/* Intel's compiler complains if a variable which was never initialised is
* cast to void , which is a common idiom which we use to indicate that we
* are aware a variable isn ' t used . So we just silence that warning .
* See : https : //github.com/swig/swig/issues/192 for more discussion.
*/
# ifdef __INTEL_COMPILER
2021-05-19 21:33:08 -07:00
# pragma warning disable 592
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
# if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND)
2021-05-05 16:19:27 -07:00
/* Workaround for '::hypot' has not been declared', see https://bugs.python.org/issue11566 */
2021-05-19 21:33:08 -07:00
# include <math.h>
2021-05-05 16:19:27 -07:00
# endif
# if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
/* Use debug wrappers with the Python release dll */
2021-05-19 21:33:08 -07:00
# undef _DEBUG
# include <Python.h>
# define _DEBUG 1
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
# include <Python.h>
2021-05-05 16:19:27 -07:00
# endif
/* -----------------------------------------------------------------------------
* swigrun . swg
*
* This file contains generic C API SWIG runtime support for pointer
* type checking .
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* This should only be incremented when either the layout of swig_type_info changes,
or for whatever reason , the runtime changes incompatibly */
# define SWIG_RUNTIME_VERSION "4"
/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
# ifdef SWIG_TYPE_TABLE
2021-05-19 21:33:08 -07:00
# define SWIG_QUOTE_STRING(x) #x
# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
# define SWIG_TYPE_TABLE_NAME
2021-05-05 16:19:27 -07:00
# endif
/*
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 strictly necessary , ie , if you have problems
with your compiler or suchlike .
*/
# ifndef SWIGRUNTIME
2021-05-19 21:33:08 -07:00
# define SWIGRUNTIME SWIGINTERN
2021-05-05 16:19:27 -07:00
# endif
# ifndef SWIGRUNTIMEINLINE
2021-05-19 21:33:08 -07:00
# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
2021-05-05 16:19:27 -07:00
# endif
/* Generic buffer size */
# ifndef SWIG_BUFFER_SIZE
2021-05-19 21:33:08 -07:00
# define SWIG_BUFFER_SIZE 1024
2021-05-05 16:19:27 -07:00
# endif
/* Flags for pointer conversions */
2021-05-19 21:33:08 -07:00
# define SWIG_POINTER_DISOWN 0x1
# define SWIG_CAST_NEW_MEMORY 0x2
# define SWIG_POINTER_NO_NULL 0x4
2021-05-05 16:19:27 -07:00
/* Flags for new pointer objects */
2021-05-19 21:33:08 -07:00
# define SWIG_POINTER_OWN 0x1
2021-05-05 16:19:27 -07:00
/*
Flags / methods for returning states .
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 versions of SWIG , code such as the following was usually written :
if ( SWIG_ConvertPtr ( obj , vptr , ty . flags ) ! = - 1 ) {
// success code
} else {
//fail code
}
Now you can be more explicit :
int res = SWIG_ConvertPtr ( obj , vptr , ty . flags ) ;
if ( SWIG_IsOK ( res ) ) {
// success code
} else {
// fail code
}
which is the same really , but now you can also do
Type * ptr ;
int res = SWIG_ConvertPtr ( obj , ( void * * ) ( & ptr ) , ty . flags ) ;
if ( SWIG_IsOK ( res ) ) {
// success code
if ( SWIG_IsNewObj ( res ) {
. . .
2021-05-19 21:33:08 -07:00
delete * ptr ;
2021-05-05 16:19:27 -07:00
} else {
. . .
}
} 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
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 .
Finally , if the SWIG_CASTRANK_MODE is enabled , the result code
allows to return the ' cast rank ' , for example , if you have this
int food ( double )
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 ( )
*/
2021-05-19 21:33:08 -07:00
# define SWIG_OK (0)
# define SWIG_ERROR (-1)
# define SWIG_IsOK(r) (r >= 0)
# define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
2021-05-05 16:19:27 -07:00
/* The CastRankLimit says how many bits are used for the cast rank */
2021-05-19 21:33:08 -07:00
# define SWIG_CASTRANKLIMIT (1 << 8)
2021-05-05 16:19:27 -07:00
/* The NewMask denotes the object was created (using new/malloc) */
2021-05-19 21:33:08 -07:00
# define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
2021-05-05 16:19:27 -07:00
/* The TmpMask is for in/out typemaps that use temporal objects */
2021-05-19 21:33:08 -07:00
# define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
2021-05-05 16:19:27 -07:00
/* Simple returning values */
2021-05-19 21:33:08 -07:00
# define SWIG_BADOBJ (SWIG_ERROR)
# define SWIG_OLDOBJ (SWIG_OK)
# define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
# define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
2021-05-05 16:19:27 -07:00
/* Check, add and del mask methods */
2021-05-19 21:33:08 -07:00
# define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
# define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
# define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
# define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
# define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
# define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
2021-05-05 16:19:27 -07:00
/* Cast-Rank Mode */
# if defined(SWIG_CASTRANK_MODE)
2021-05-19 21:33:08 -07:00
# ifndef SWIG_TypeRank
# define SWIG_TypeRank unsigned long
# endif
# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
# define SWIG_MAXCASTRANK (2)
# endif
# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
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 ;
2021-05-05 16:19:27 -07:00
}
# else /* no cast-rank mode */
2021-05-19 21:33:08 -07:00
# define SWIG_AddCast(r) (r)
# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
# include <string.h>
# ifdef __cplusplus
extern " C " {
# endif
2021-05-19 21:33:08 -07:00
typedef void * ( * swig_converter_func ) ( void * , int * ) ;
typedef struct swig_type_info * ( * swig_dycast_func ) ( void * * ) ;
2021-05-05 16:19:27 -07:00
/* Structure to store information on one type */
typedef struct swig_type_info {
2021-05-19 21:33:08 -07:00
const char * name ; /* mangled name of this type */
const char * str ; /* human readable name of this type */
swig_dycast_func dcast ; /* dynamic cast function down a hierarchy */
struct swig_cast_info * cast ; /* linked list of types that can cast into this type */
void * clientdata ; /* language specific type data */
int owndata ; /* flag if the structure owns the clientdata */
2021-05-05 16:19:27 -07:00
} swig_type_info ;
/* Structure to store a type and conversion function used for casting */
typedef struct swig_cast_info {
2021-05-19 21:33:08 -07:00
swig_type_info * type ; /* pointer to type that is equivalent to this type */
swig_converter_func converter ; /* function to cast the void pointers */
struct swig_cast_info * next ; /* pointer to next cast in linked list */
struct swig_cast_info * prev ; /* pointer to the previous cast */
2021-05-05 16:19:27 -07:00
} swig_cast_info ;
/* Structure used to store module information
* Each module generates one structure like this , and the runtime collects
* all of these structures and stores them in a circularly linked list . */
typedef struct swig_module_info {
2021-05-19 21:33:08 -07:00
swig_type_info * * types ; /* Array of pointers to swig_type_info structures that are in this module */
size_t size ; /* Number of types in this module */
struct swig_module_info * next ; /* Pointer to next element in circularly linked list */
swig_type_info * * type_initial ; /* Array of initially generated type structures */
swig_cast_info * * cast_initial ; /* Array of initially generated casting structures */
void * clientdata ; /* Language specific module data */
2021-05-05 16:19:27 -07:00
} swig_module_info ;
/*
Compare two type names skipping the space characters , therefore
" char* " = = " char * " and " Class<int> " = = " Class<int > " , etc .
Return 0 when the two name types are equivalent , as in
strncmp , but skipping ' ' .
*/
2021-05-19 21:33:08 -07:00
SWIGRUNTIME int
SWIG_TypeNameComp ( const char * f1 , const char * l1 ,
const char * f2 , const char * l2 ) {
for ( ; ( f1 ! = l1 ) & & ( f2 ! = l2 ) ; + + f1 , + + f2 ) {
while ( ( * f1 = = ' ' ) & & ( f1 ! = l1 ) ) + + f1 ;
while ( ( * f2 = = ' ' ) & & ( f2 ! = l2 ) ) + + f2 ;
if ( * f1 ! = * f2 ) return ( * f1 > * f2 ) ? 1 : - 1 ;
}
return ( int ) ( ( l1 - f1 ) - ( l2 - f2 ) ) ;
2021-05-05 16:19:27 -07:00
}
/*
Check type equivalence in a name list like < name1 > | < name2 > | . . .
Return 0 if equal , - 1 if nb < tb , 1 if nb > tb
*/
2021-05-19 21:33:08 -07:00
SWIGRUNTIME int
SWIG_TypeCmp ( const char * nb , const char * tb ) {
int equiv = 1 ;
const char * te = tb + strlen ( tb ) ;
const char * ne = nb ;
while ( equiv ! = 0 & & * ne ) {
for ( nb = ne ; * ne ; + + ne ) {
if ( * ne = = ' | ' ) break ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
equiv = SWIG_TypeNameComp ( nb , ne , tb , te ) ;
if ( * ne ) + + ne ;
}
return equiv ;
2021-05-05 16:19:27 -07:00
}
/*
Check type equivalence in a name list like < name1 > | < name2 > | . . .
Return 0 if not equal , 1 if equal
*/
2021-05-19 21:33:08 -07:00
SWIGRUNTIME int
SWIG_TypeEquiv ( const char * nb , const char * tb ) {
return SWIG_TypeCmp ( nb , tb ) = = 0 ? 1 : 0 ;
2021-05-05 16:19:27 -07:00
}
/*
Check the typename
*/
2021-05-19 21:33:08 -07:00
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck ( const char * c , swig_type_info * 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 ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return 0 ;
2021-05-05 16:19:27 -07:00
}
/*
Identical to SWIG_TypeCheck , except strcmp is replaced with a pointer comparison
*/
2021-05-19 21:33:08 -07:00
SWIGRUNTIME swig_cast_info *
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 ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return 0 ;
2021-05-05 16:19:27 -07:00
}
/*
Cast a pointer up an inheritance hierarchy
*/
2021-05-19 21:33:08 -07:00
SWIGRUNTIMEINLINE void *
SWIG_TypeCast ( swig_cast_info * ty , void * ptr , int * newmemory ) {
return ( ( ! ty ) | | ( ! ty - > converter ) ) ? ptr : ( * ty - > converter ) ( ptr , newmemory ) ;
2021-05-05 16:19:27 -07:00
}
/*
Dynamic pointer casting . Down an inheritance hierarchy
*/
2021-05-19 21:33:08 -07:00
SWIGRUNTIME swig_type_info *
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 ;
}
return lastty ;
2021-05-05 16:19:27 -07:00
}
/*
Return the name associated with this type
*/
2021-05-19 21:33:08 -07:00
SWIGRUNTIMEINLINE const char *
SWIG_TypeName ( const swig_type_info * ty ) {
return ty - > name ;
2021-05-05 16:19:27 -07:00
}
/*
Return the pretty name associated with this type ,
that is an unmangled type name in a form presentable to the user .
*/
2021-05-19 21:33:08 -07:00
SWIGRUNTIME const char *
SWIG_TypePrettyName ( const swig_type_info * type ) {
/* The "str" field contains the equivalent pretty names of the
type , separated by vertical - bar characters . We choose
to print the last name , as it is often ( ? ) the most
specific . */
if ( ! type ) return NULL ;
if ( type - > str ! = NULL ) {
const char * last_name = type - > str ;
const char * s ;
for ( s = type - > str ; * s ; s + + )
if ( * s = = ' | ' ) last_name = s + 1 ;
return last_name ;
}
else
return type - > name ;
2021-05-05 16:19:27 -07:00
}
/*
Set the clientdata field for a type
*/
2021-05-19 21:33:08 -07:00
SWIGRUNTIME void
SWIG_TypeClientData ( swig_type_info * ti , void * clientdata ) {
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 ) ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
cast = cast - > next ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME void
SWIG_TypeNewClientData ( swig_type_info * ti , void * clientdata ) {
SWIG_TypeClientData ( ti , clientdata ) ;
ti - > owndata = 1 ;
2021-05-05 16:19:27 -07:00
}
/*
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 .
Note : if start = = end at the beginning of the function , we go all the way around
the circular list .
*/
2021-05-19 21:33:08 -07:00
SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule ( swig_module_info * start ,
swig_module_info * end ,
const char * name ) {
swig_module_info * iter = start ;
do {
if ( iter - > size ) {
size_t l = 0 ;
size_t r = iter - > size - 1 ;
do {
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
size_t i = ( l + r ) > > 1 ;
const char * iname = iter - > types [ i ] - > name ;
if ( iname ) {
int compare = strcmp ( name , iname ) ;
if ( compare = = 0 ) {
return iter - > types [ i ] ;
} else if ( compare < 0 ) {
if ( i ) {
r = i - 1 ;
} else {
break ;
}
} else if ( compare > 0 ) {
l = i + 1 ;
}
} else {
break ; /* should never happen */
}
} while ( l < = r ) ;
}
iter = iter - > next ;
} while ( iter ! = end ) ;
return 0 ;
2021-05-05 16:19:27 -07:00
}
/*
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 .
Note : if start = = end at the beginning of the function , we go all the way around
the circular list .
*/
2021-05-19 21:33:08 -07:00
SWIGRUNTIME swig_type_info *
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 ) ;
if ( ret ) {
return ret ;
} else {
/* STEP 2: If the type hasn't been found, do a complete search
of the str field ( the human readable name ) */
swig_module_info * iter = start ;
do {
size_t i = 0 ;
for ( ; i < iter - > size ; + + i ) {
if ( iter - > types [ i ] - > str & & ( SWIG_TypeEquiv ( iter - > types [ i ] - > str , name ) ) )
return iter - > types [ i ] ;
}
iter = iter - > next ;
} while ( iter ! = end ) ;
}
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
/* neither found a match */
return 0 ;
2021-05-05 16:19:27 -07:00
}
/*
Pack binary data into a string
*/
2021-05-19 21:33:08 -07:00
SWIGRUNTIME char *
SWIG_PackData ( char * c , void * ptr , size_t sz ) {
static const char hex [ 17 ] = " 0123456789abcdef " ;
const unsigned char * u = ( unsigned char * ) ptr ;
const unsigned char * eu = u + sz ;
for ( ; u ! = eu ; + + u ) {
unsigned char uu = * u ;
* ( c + + ) = hex [ ( uu & 0xf0 ) > > 4 ] ;
* ( c + + ) = hex [ uu & 0xf ] ;
}
return c ;
2021-05-05 16:19:27 -07:00
}
/*
Unpack binary data from a string
*/
2021-05-19 21:33:08 -07:00
SWIGRUNTIME const char *
SWIG_UnpackData ( const char * c , void * ptr , size_t sz ) {
unsigned char * u = ( unsigned char * ) ptr ;
const unsigned char * eu = u + sz ;
for ( ; u ! = eu ; + + u ) {
char d = * ( c + + ) ;
unsigned char uu ;
if ( ( d > = ' 0 ' ) & & ( d < = ' 9 ' ) )
uu = ( unsigned char ) ( ( d - ' 0 ' ) < < 4 ) ;
else if ( ( d > = ' a ' ) & & ( d < = ' f ' ) )
uu = ( unsigned char ) ( ( d - ( ' a ' - 10 ) ) < < 4 ) ;
else
return ( char * ) 0 ;
d = * ( c + + ) ;
if ( ( d > = ' 0 ' ) & & ( d < = ' 9 ' ) )
uu | = ( unsigned char ) ( d - ' 0 ' ) ;
else if ( ( d > = ' a ' ) & & ( d < = ' f ' ) )
uu | = ( unsigned char ) ( d - ( ' a ' - 10 ) ) ;
else
return ( char * ) 0 ;
* u = uu ;
}
return c ;
2021-05-05 16:19:27 -07:00
}
/*
Pack ' void * ' into a string buffer .
*/
2021-05-19 21:33:08 -07:00
SWIGRUNTIME char *
SWIG_PackVoidPtr ( char * buff , void * ptr , const char * name , size_t bsz ) {
char * r = buff ;
if ( ( 2 * sizeof ( void * ) + 2 ) > bsz ) return 0 ;
* ( r + + ) = ' _ ' ;
r = SWIG_PackData ( r , & ptr , sizeof ( void * ) ) ;
if ( strlen ( name ) + 1 > ( bsz - ( r - buff ) ) ) return 0 ;
strcpy ( r , name ) ;
return buff ;
}
SWIGRUNTIME const char *
SWIG_UnpackVoidPtr ( const char * c , void * * ptr , const char * name ) {
if ( * c ! = ' _ ' ) {
if ( strcmp ( c , " NULL " ) = = 0 ) {
* ptr = ( void * ) 0 ;
return name ;
} else {
return 0 ;
}
}
return SWIG_UnpackData ( + + c , ptr , sizeof ( void * ) ) ;
}
SWIGRUNTIME char *
SWIG_PackDataName ( char * buff , void * ptr , size_t sz , const char * name , size_t bsz ) {
char * r = buff ;
size_t lname = ( name ? strlen ( name ) : 0 ) ;
if ( ( 2 * sz + 2 + lname ) > bsz ) return 0 ;
* ( r + + ) = ' _ ' ;
r = SWIG_PackData ( r , ptr , sz ) ;
if ( lname ) {
strncpy ( r , name , lname + 1 ) ;
} else {
* r = 0 ;
}
return buff ;
}
SWIGRUNTIME const char *
SWIG_UnpackDataName ( const char * c , void * ptr , size_t sz , const char * name ) {
if ( * c ! = ' _ ' ) {
if ( strcmp ( c , " NULL " ) = = 0 ) {
memset ( ptr , 0 , sz ) ;
return name ;
} else {
return 0 ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return SWIG_UnpackData ( + + c , ptr , sz ) ;
2021-05-05 16:19:27 -07:00
}
# ifdef __cplusplus
}
# endif
/* Errors in SWIG */
2021-05-19 21:33:08 -07:00
# 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_NullReferenceError -13
2021-05-05 16:19:27 -07:00
/* Compatibility macros for Python 3 */
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
# 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)
2021-05-05 16:19:27 -07:00
# define PyString_InternFromString(key) PyUnicode_InternFromString(key)
2021-05-19 21:33:08 -07:00
# 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)
2021-05-05 16:19:27 -07:00
# endif
# ifndef Py_TYPE
2021-05-19 21:33:08 -07:00
# define Py_TYPE(op) ((op)->ob_type)
2021-05-05 16:19:27 -07:00
# endif
/* SWIG APIs for compatibility of both Python 2 & 3 */
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
# define SWIG_Python_str_FromFormat PyUnicode_FromFormat
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
# define SWIG_Python_str_FromFormat PyString_FromFormat
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
/* Warning: This function will allocate a new string in Python 3,
* so please call SWIG_Python_str_DelForPy3 ( x ) to free the space .
*/
2021-05-19 21:33:08 -07:00
SWIGINTERN char *
SWIG_Python_str_AsChar ( PyObject * str )
2021-05-05 16:19:27 -07:00
{
# if PY_VERSION_HEX >= 0x03030000
2021-05-19 21:33:08 -07:00
return ( char * ) PyUnicode_AsUTF8 ( str ) ;
2021-05-05 16:19:27 -07:00
# elif PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
char * newstr = 0 ;
str = PyUnicode_AsUTF8String ( str ) ;
if ( str ) {
char * cstr ;
Py_ssize_t len ;
if ( PyBytes_AsStringAndSize ( str , & cstr , & len ) ! = - 1 ) {
newstr = ( char * ) malloc ( len + 1 ) ;
if ( newstr )
memcpy ( newstr , cstr , len + 1 ) ;
}
Py_XDECREF ( str ) ;
}
return newstr ;
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
return PyString_AsString ( str ) ;
2021-05-05 16:19:27 -07:00
# endif
}
# if PY_VERSION_HEX >= 0x03030000 || PY_VERSION_HEX < 0x03000000
2021-05-19 21:33:08 -07:00
# define SWIG_Python_str_DelForPy3(x)
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
SWIGINTERN PyObject *
SWIG_Python_str_FromChar ( const char * c )
2021-05-05 16:19:27 -07:00
{
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
return PyUnicode_FromString ( c ) ;
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
return PyString_FromString ( c ) ;
2021-05-05 16:19:27 -07:00
# endif
}
# ifndef PyObject_DEL
2021-05-19 21:33:08 -07:00
# define PyObject_DEL PyObject_Del
2021-05-05 16:19:27 -07:00
# endif
// SWIGPY_USE_CAPSULE is no longer used within SWIG itself, but some user
// interface files check for it.
2021-05-19 21:33:08 -07:00
# define SWIGPY_USE_CAPSULE
# define SWIGPY_CAPSULE_NAME ("swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX < 0x03020000
2021-05-19 21:33:08 -07:00
# define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
# define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
# define Py_hash_t long
2021-05-05 16:19:27 -07:00
# endif
/* -----------------------------------------------------------------------------
* error manipulation
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SWIG_Python_ErrorType ( int code ) {
PyObject * type = 0 ;
switch ( code ) {
case SWIG_MemoryError :
type = PyExc_MemoryError ;
break ;
case SWIG_IOError :
type = PyExc_IOError ;
break ;
case SWIG_RuntimeError :
type = PyExc_RuntimeError ;
break ;
case SWIG_IndexError :
type = PyExc_IndexError ;
break ;
case SWIG_TypeError :
type = PyExc_TypeError ;
break ;
case SWIG_DivisionByZero :
type = PyExc_ZeroDivisionError ;
break ;
case SWIG_OverflowError :
type = PyExc_OverflowError ;
break ;
case SWIG_SyntaxError :
type = PyExc_SyntaxError ;
break ;
case SWIG_ValueError :
type = PyExc_ValueError ;
break ;
case SWIG_SystemError :
type = PyExc_SystemError ;
break ;
case SWIG_AttributeError :
type = PyExc_AttributeError ;
break ;
default :
type = PyExc_RuntimeError ;
}
return type ;
}
SWIGRUNTIME void
SWIG_Python_AddErrorMsg ( const char * mesg )
{
PyObject * type = 0 ;
PyObject * value = 0 ;
PyObject * traceback = 0 ;
if ( PyErr_Occurred ( ) )
PyErr_Fetch ( & type , & value , & traceback ) ;
if ( value ) {
PyObject * old_str = PyObject_Str ( value ) ;
const char * tmp = SWIG_Python_str_AsChar ( old_str ) ;
PyErr_Clear ( ) ;
Py_XINCREF ( type ) ;
if ( tmp )
PyErr_Format ( type , " %s %s " , tmp , mesg ) ;
else
PyErr_Format ( type , " %s " , mesg ) ;
SWIG_Python_str_DelForPy3 ( tmp ) ;
Py_DECREF ( old_str ) ;
Py_DECREF ( value ) ;
} else {
PyErr_SetString ( PyExc_RuntimeError , mesg ) ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME int
SWIG_Python_TypeErrorOccurred ( PyObject * obj )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
PyObject * error ;
if ( obj )
return 0 ;
error = PyErr_Occurred ( ) ;
return error & & PyErr_GivenExceptionMatches ( error , PyExc_TypeError ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME void
SWIG_Python_RaiseOrModifyTypeError ( const char * message )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
if ( SWIG_Python_TypeErrorOccurred ( NULL ) ) {
/* Use existing TypeError to preserve stacktrace and enhance with given message */
PyObject * newvalue ;
PyObject * type = NULL , * value = NULL , * traceback = NULL ;
PyErr_Fetch ( & type , & value , & traceback ) ;
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
newvalue = PyUnicode_FromFormat ( " %S \n Additional information: \n %s " , value , message ) ;
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
newvalue = PyString_FromFormat ( " %s \n Additional information: \n %s " , PyString_AsString ( value ) , message ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
Py_XDECREF ( value ) ;
PyErr_Restore ( type , newvalue , traceback ) ;
} else {
/* Raise TypeError using given message */
PyErr_SetString ( PyExc_TypeError , message ) ;
}
2021-05-05 16:19:27 -07:00
}
# if defined(SWIG_PYTHON_NO_THREADS)
2021-05-19 21:33:08 -07:00
# if defined(SWIG_PYTHON_THREADS)
# undef SWIG_PYTHON_THREADS
# endif
2021-05-05 16:19:27 -07:00
# endif
# if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
2021-05-19 21:33:08 -07:00
# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
# define SWIG_PYTHON_USE_GIL
# endif
# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
# ifndef SWIG_PYTHON_INITIALIZE_THREADS
# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
# endif
# ifdef __cplusplus /* C++ code */
class SWIG_Python_Thread_Block {
bool status ;
PyGILState_STATE state ;
public :
void end ( ) { if ( status ) { PyGILState_Release ( state ) ; status = false ; } }
SWIG_Python_Thread_Block ( ) : status ( true ) , state ( PyGILState_Ensure ( ) ) { }
~ SWIG_Python_Thread_Block ( ) { end ( ) ; }
} ;
class SWIG_Python_Thread_Allow {
bool status ;
PyThreadState * save ;
public :
void end ( ) { if ( status ) { PyEval_RestoreThread ( save ) ; status = false ; } }
SWIG_Python_Thread_Allow ( ) : status ( true ) , save ( PyEval_SaveThread ( ) ) { }
~ SWIG_Python_Thread_Allow ( ) { end ( ) ; }
} ;
# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
# else /* C code */
# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
# endif
# else /* Old thread way, not implemented, user must provide it */
# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
# define SWIG_PYTHON_INITIALIZE_THREADS
# endif
# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
# endif
# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
# define SWIG_PYTHON_THREAD_END_BLOCK
# endif
# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
# endif
# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
# define SWIG_PYTHON_THREAD_END_ALLOW
# endif
# endif
2021-05-05 16:19:27 -07:00
# else /* No thread support */
2021-05-19 21:33:08 -07:00
# define SWIG_PYTHON_INITIALIZE_THREADS
# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
# define SWIG_PYTHON_THREAD_END_BLOCK
# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
# define SWIG_PYTHON_THREAD_END_ALLOW
2021-05-05 16:19:27 -07:00
# endif
/* -----------------------------------------------------------------------------
* Python API portion that goes into the runtime
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
# ifdef __cplusplus
extern " C " {
# endif
/* -----------------------------------------------------------------------------
* Constant declarations
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Constant Types */
# define SWIG_PY_POINTER 4
# define SWIG_PY_BINARY 5
/* Constant information structure */
typedef struct swig_const_info {
2021-05-19 21:33:08 -07:00
int type ;
const char * name ;
long lvalue ;
double dvalue ;
void * pvalue ;
swig_type_info * * ptype ;
2021-05-05 16:19:27 -07:00
} swig_const_info ;
# ifdef __cplusplus
}
# endif
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
/* -----------------------------------------------------------------------------
* pyrun . swg
*
* This file contains the runtime support for Python modules
* and includes code for managing global variables and pointer
* type checking .
*
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
# if PY_VERSION_HEX < 0x02070000 /* 2.7.0 */
2021-05-19 21:33:08 -07:00
# error "This version of SWIG only supports Python >= 2.7"
2021-05-05 16:19:27 -07:00
# endif
# if PY_VERSION_HEX >= 0x03000000 && PY_VERSION_HEX < 0x03020000
2021-05-19 21:33:08 -07:00
# error "This version of SWIG only supports Python 3 >= 3.2"
2021-05-05 16:19:27 -07:00
# endif
/* Common SWIG API */
/* for raw pointers */
2021-05-19 21:33:08 -07:00
# 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)
2021-05-05 16:19:27 -07:00
# ifdef SWIGPYTHON_BUILTIN
2021-05-19 21:33:08 -07:00
# define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
# define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
# define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
# define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
# define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
# define swig_owntype int
2021-05-05 16:19:27 -07:00
/* for raw packed data */
2021-05-19 21:33:08 -07:00
# define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
# define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
2021-05-05 16:19:27 -07:00
/* for class or struct pointers */
2021-05-19 21:33:08 -07:00
# define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
# define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
2021-05-05 16:19:27 -07:00
/* for C or C++ function pointers */
2021-05-19 21:33:08 -07:00
# define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
# define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
2021-05-05 16:19:27 -07:00
/* for C++ member pointers, ie, member methods */
2021-05-19 21:33:08 -07:00
# define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
# define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
2021-05-05 16:19:27 -07:00
/* Runtime API */
2021-05-19 21:33:08 -07:00
# define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata)
# define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
# define SWIG_NewClientData(obj) SwigPyClientData_New(obj)
# define SWIG_SetErrorObj SWIG_Python_SetErrorObj
# define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
# define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
# define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
# define SWIG_fail goto fail
2021-05-05 16:19:27 -07:00
/* Runtime API implementation */
/* Error manipulation */
2021-05-19 21:33:08 -07:00
SWIGINTERN void
SWIG_Python_SetErrorObj ( PyObject * errtype , PyObject * obj ) {
SWIG_PYTHON_THREAD_BEGIN_BLOCK ;
PyErr_SetObject ( errtype , obj ) ;
Py_DECREF ( obj ) ;
SWIG_PYTHON_THREAD_END_BLOCK ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERN void
SWIG_Python_SetErrorMsg ( PyObject * errtype , const char * msg ) {
SWIG_PYTHON_THREAD_BEGIN_BLOCK ;
PyErr_SetString ( errtype , msg ) ;
SWIG_PYTHON_THREAD_END_BLOCK ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
# define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
2021-05-05 16:19:27 -07:00
/* Set a constant value */
# if defined(SWIGPYTHON_BUILTIN)
2021-05-19 21:33:08 -07:00
SWIGINTERN void
SwigPyBuiltin_AddPublicSymbol ( PyObject * seq , const char * key ) {
PyObject * s = PyString_InternFromString ( key ) ;
PyList_Append ( seq , s ) ;
Py_DECREF ( s ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERN void
SWIG_Python_SetConstant ( PyObject * d , PyObject * public_interface , const char * name , PyObject * obj ) {
PyDict_SetItemString ( d , name , obj ) ;
Py_DECREF ( obj ) ;
if ( public_interface )
SwigPyBuiltin_AddPublicSymbol ( public_interface , name ) ;
2021-05-05 16:19:27 -07:00
}
# else
2021-05-19 21:33:08 -07:00
SWIGINTERN void
SWIG_Python_SetConstant ( PyObject * d , const char * name , PyObject * obj ) {
PyDict_SetItemString ( d , name , obj ) ;
Py_DECREF ( obj ) ;
2021-05-05 16:19:27 -07:00
}
# endif
/* Append a value to the result obj */
2021-05-19 21:33:08 -07:00
SWIGINTERN PyObject *
SWIG_Python_AppendOutput ( PyObject * result , PyObject * obj ) {
if ( ! result ) {
result = obj ;
} else if ( result = = Py_None ) {
Py_DECREF ( result ) ;
result = obj ;
} else {
if ( ! PyList_Check ( result ) ) {
PyObject * o2 = result ;
result = PyList_New ( 1 ) ;
PyList_SetItem ( result , 0 , o2 ) ;
}
PyList_Append ( result , obj ) ;
Py_DECREF ( obj ) ;
}
return result ;
2021-05-05 16:19:27 -07:00
}
/* Unpack the argument tuple */
SWIGINTERN Py_ssize_t
2021-05-19 21:33:08 -07:00
SWIG_Python_UnpackTuple ( PyObject * args , const char * name , Py_ssize_t min , Py_ssize_t max , PyObject * * objs )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
if ( ! args ) {
if ( ! min & & ! max ) {
return 1 ;
} else {
PyErr_Format ( PyExc_TypeError , " %s expected %s%d arguments, got none " ,
name , ( min = = max ? " " : " at least " ) , ( int ) min ) ;
return 0 ;
}
}
if ( ! PyTuple_Check ( args ) ) {
if ( min < = 1 & & max > = 1 ) {
Py_ssize_t i ;
objs [ 0 ] = args ;
for ( i = 1 ; i < max ; + + i ) {
objs [ i ] = 0 ;
}
return 2 ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
PyErr_SetString ( PyExc_SystemError , " UnpackTuple() argument list is not a tuple " ) ;
return 0 ;
} else {
Py_ssize_t l = PyTuple_GET_SIZE ( args ) ;
if ( l < min ) {
PyErr_Format ( PyExc_TypeError , " %s expected %s%d arguments, got %d " ,
name , ( min = = max ? " " : " at least " ) , ( int ) min , ( int ) l ) ;
return 0 ;
} else if ( l > max ) {
PyErr_Format ( PyExc_TypeError , " %s expected %s%d arguments, got %d " ,
name , ( min = = max ? " " : " at most " ) , ( int ) max , ( int ) l ) ;
return 0 ;
} else {
Py_ssize_t i ;
for ( i = 0 ; i < l ; + + i ) {
objs [ i ] = PyTuple_GET_ITEM ( args , i ) ;
}
for ( ; l < max ; + + l ) {
objs [ l ] = 0 ;
}
return i + 1 ;
}
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERN int
SWIG_Python_CheckNoKeywords ( PyObject * kwargs , const char * name ) {
int no_kwargs = 1 ;
if ( kwargs ) {
assert ( PyDict_Check ( kwargs ) ) ;
if ( PyDict_Size ( kwargs ) > 0 ) {
PyErr_Format ( PyExc_TypeError , " %s() does not take keyword arguments " , name ) ;
no_kwargs = 0 ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return no_kwargs ;
2021-05-05 16:19:27 -07:00
}
/* A functor is a function object with one single object argument */
2021-05-19 21:33:08 -07:00
# define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
2021-05-05 16:19:27 -07:00
/*
Helper for static pointer initialization for both C and C + + code , for example
static PyObject * SWIG_STATIC_POINTER ( MyVar ) = NewSomething ( . . . ) ;
*/
# ifdef __cplusplus
2021-05-19 21:33:08 -07:00
# define SWIG_STATIC_POINTER(var) var
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
# define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
2021-05-05 16:19:27 -07:00
# endif
/* -----------------------------------------------------------------------------
* Pointer declarations
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Flags for new pointer objects */
2021-05-19 21:33:08 -07:00
# define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
# define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
# define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
# define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2)
# define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
2021-05-05 16:19:27 -07:00
# ifdef __cplusplus
extern " C " {
# endif
/* The python void return value */
2021-05-19 21:33:08 -07:00
SWIGRUNTIMEINLINE PyObject *
SWIG_Py_Void ( void )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
PyObject * none = Py_None ;
Py_INCREF ( none ) ;
return none ;
2021-05-05 16:19:27 -07:00
}
/* SwigPyClientData */
typedef struct {
2021-05-19 21:33:08 -07:00
PyObject * klass ;
PyObject * newraw ;
PyObject * newargs ;
PyObject * destroy ;
int delargs ;
int implicitconv ;
PyTypeObject * pytype ;
2021-05-05 16:19:27 -07:00
} SwigPyClientData ;
2021-05-19 21:33:08 -07:00
SWIGRUNTIMEINLINE int
SWIG_Python_CheckImplicit ( swig_type_info * ty )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
SwigPyClientData * data = ( SwigPyClientData * ) ty - > clientdata ;
int fail = data ? data - > implicitconv : 0 ;
if ( fail )
PyErr_SetString ( PyExc_TypeError , " Implicit conversion is prohibited for explicit constructors. " ) ;
return fail ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIMEINLINE PyObject *
SWIG_Python_ExceptionType ( swig_type_info * desc ) {
SwigPyClientData * data = desc ? ( SwigPyClientData * ) desc - > clientdata : 0 ;
PyObject * klass = data ? data - > klass : 0 ;
return ( klass ? klass : PyExc_RuntimeError ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME SwigPyClientData *
SwigPyClientData_New ( PyObject * obj )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
if ( ! obj ) {
return 0 ;
} else {
SwigPyClientData * data = ( SwigPyClientData * ) malloc ( sizeof ( SwigPyClientData ) ) ;
/* the klass element */
data - > klass = obj ;
Py_INCREF ( data - > klass ) ;
/* the newraw method and newargs arguments used to create a new raw instance */
if ( PyClass_Check ( obj ) ) {
data - > newraw = 0 ;
data - > newargs = obj ;
Py_INCREF ( obj ) ;
} else {
data - > newraw = PyObject_GetAttrString ( data - > klass , " __new__ " ) ;
if ( data - > newraw ) {
Py_INCREF ( data - > newraw ) ;
data - > newargs = PyTuple_New ( 1 ) ;
PyTuple_SetItem ( data - > newargs , 0 , obj ) ;
} else {
data - > newargs = obj ;
}
Py_INCREF ( data - > newargs ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
/* the destroy method, aka as the C++ delete method */
data - > destroy = PyObject_GetAttrString ( data - > klass , " __swig_destroy__ " ) ;
if ( PyErr_Occurred ( ) ) {
PyErr_Clear ( ) ;
data - > destroy = 0 ;
}
if ( data - > destroy ) {
int flags ;
Py_INCREF ( data - > destroy ) ;
flags = PyCFunction_GET_FLAGS ( data - > destroy ) ;
data - > delargs = ! ( flags & ( METH_O ) ) ;
} else {
data - > delargs = 0 ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
data - > implicitconv = 0 ;
data - > pytype = 0 ;
return data ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME void
SwigPyClientData_Del ( SwigPyClientData * data ) {
Py_XDECREF ( data - > newraw ) ;
Py_XDECREF ( data - > newargs ) ;
Py_XDECREF ( data - > destroy ) ;
2021-05-05 16:19:27 -07:00
}
/* =============== SwigPyObject =====================*/
typedef struct {
2021-05-19 21:33:08 -07:00
PyObject_HEAD
void * ptr ;
swig_type_info * ty ;
int own ;
PyObject * next ;
2021-05-05 16:19:27 -07:00
# ifdef SWIGPYTHON_BUILTIN
2021-05-19 21:33:08 -07:00
PyObject * dict ;
2021-05-05 16:19:27 -07:00
# endif
} SwigPyObject ;
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
# ifdef SWIGPYTHON_BUILTIN
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SwigPyObject_get___dict__ ( PyObject * v , PyObject * SWIGUNUSEDPARM ( args ) )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
SwigPyObject * sobj = ( SwigPyObject * ) v ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
if ( ! sobj - > dict )
sobj - > dict = PyDict_New ( ) ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
Py_INCREF ( sobj - > dict ) ;
return sobj - > dict ;
2021-05-05 16:19:27 -07:00
}
# endif
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SwigPyObject_long ( SwigPyObject * v )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
return PyLong_FromVoidPtr ( v - > ptr ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SwigPyObject_format ( const char * fmt , SwigPyObject * v )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
PyObject * res = NULL ;
PyObject * args = PyTuple_New ( 1 ) ;
if ( args ) {
if ( PyTuple_SetItem ( args , 0 , SwigPyObject_long ( v ) ) = = 0 ) {
PyObject * ofmt = SWIG_Python_str_FromChar ( fmt ) ;
if ( ofmt ) {
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
res = PyUnicode_Format ( ofmt , args ) ;
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
res = PyString_Format ( ofmt , args ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
Py_DECREF ( ofmt ) ;
}
Py_DECREF ( args ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return res ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SwigPyObject_oct ( SwigPyObject * v )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
return SwigPyObject_format ( " %o " , v ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SwigPyObject_hex ( SwigPyObject * v )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
return SwigPyObject_format ( " %x " , v ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SwigPyObject_repr ( SwigPyObject * v )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
const char * name = SWIG_TypePrettyName ( v - > ty ) ;
PyObject * repr = SWIG_Python_str_FromFormat ( " <Swig Object of type '%s' at %p> " , ( name ? name : " unknown " ) , ( void * ) v ) ;
if ( v - > next ) {
PyObject * nrep = SwigPyObject_repr ( ( SwigPyObject * ) v - > next ) ;
# 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 ;
2021-05-05 16:19:27 -07:00
}
/* We need a version taking two PyObject* parameters so it's a valid
* PyCFunction to use in swigobject_methods [ ] . */
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SwigPyObject_repr2 ( PyObject * v , PyObject * SWIGUNUSEDPARM ( args ) )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
return SwigPyObject_repr ( ( SwigPyObject * ) v ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME int
SwigPyObject_compare ( SwigPyObject * v , SwigPyObject * w )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
void * i = v - > ptr ;
void * j = w - > ptr ;
return ( i < j ) ? - 1 : ( ( i > j ) ? 1 : 0 ) ;
2021-05-05 16:19:27 -07:00
}
/* Added for Python 3.x, would it also be useful for Python 2.x? */
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SwigPyObject_richcompare ( SwigPyObject * v , SwigPyObject * w , int op )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
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 ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
SWIGRUNTIME PyTypeObject * SwigPyObject_TypeOnce ( void ) ;
# ifdef SWIGPYTHON_BUILTIN
2021-05-19 21:33:08 -07:00
static swig_type_info * SwigPyObject_stype = 0 ;
SWIGRUNTIME PyTypeObject *
SwigPyObject_type ( void ) {
SwigPyClientData * cd ;
2021-05-05 16:19:27 -07:00
assert ( SwigPyObject_stype ) ;
2021-05-19 21:33:08 -07:00
cd = ( SwigPyClientData * ) SwigPyObject_stype - > clientdata ;
2021-05-05 16:19:27 -07:00
assert ( cd ) ;
assert ( cd - > pytype ) ;
return cd - > pytype ;
}
# else
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyTypeObject *
SwigPyObject_type ( void ) {
static PyTypeObject * SWIG_STATIC_POINTER ( type ) = SwigPyObject_TypeOnce ( ) ;
return type ;
2021-05-05 16:19:27 -07:00
}
# endif
2021-05-19 21:33:08 -07:00
SWIGRUNTIMEINLINE int
SwigPyObject_Check ( PyObject * op ) {
2021-05-05 16:19:27 -07:00
# ifdef SWIGPYTHON_BUILTIN
2021-05-19 21:33:08 -07:00
PyTypeObject * target_tp = SwigPyObject_type ( ) ;
if ( PyType_IsSubtype ( op - > ob_type , target_tp ) )
return 1 ;
return ( strcmp ( op - > ob_type - > tp_name , " SwigPyObject " ) = = 0 ) ;
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
return ( Py_TYPE ( op ) = = SwigPyObject_type ( ) )
| | ( strcmp ( Py_TYPE ( op ) - > tp_name , " SwigPyObject " ) = = 0 ) ;
2021-05-05 16:19:27 -07:00
# endif
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SwigPyObject_New ( void * ptr , swig_type_info * ty , int own ) ;
SWIGRUNTIME void
SwigPyObject_dealloc ( PyObject * v )
{
SwigPyObject * sobj = ( SwigPyObject * ) v ;
PyObject * next = sobj - > next ;
if ( sobj - > own = = SWIG_POINTER_OWN ) {
swig_type_info * ty = sobj - > ty ;
SwigPyClientData * data = ty ? ( SwigPyClientData * ) ty - > clientdata : 0 ;
PyObject * destroy = data ? data - > destroy : 0 ;
if ( destroy ) {
/* destroy is always a VARARGS method */
PyObject * res ;
/* PyObject_CallFunction() has the potential to silently drop
the active exception . In cases of unnamed temporary
variable or where we just finished iterating over a generator
StopIteration will be active right now , and this needs to
remain true upon return from SwigPyObject_dealloc . So save
and restore . */
PyObject * type = NULL , * value = NULL , * traceback = NULL ;
PyErr_Fetch ( & type , & value , & traceback ) ;
if ( data - > delargs ) {
/* 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 {
PyCFunction meth = PyCFunction_GET_FUNCTION ( destroy ) ;
PyObject * mself = PyCFunction_GET_SELF ( destroy ) ;
res = ( ( * meth ) ( mself , v ) ) ;
}
if ( ! res )
PyErr_WriteUnraisable ( destroy ) ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
PyErr_Restore ( type , value , traceback ) ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
Py_XDECREF ( res ) ;
}
# if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
else {
const char * name = SWIG_TypePrettyName ( ty ) ;
printf ( " swig/python detected a memory leak of type '%s', no destructor found. \n " , ( name ? name : " unknown " ) ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
# endif
}
Py_XDECREF ( next ) ;
PyObject_DEL ( v ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SwigPyObject_append ( PyObject * v , PyObject * next )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
SwigPyObject * sobj = ( SwigPyObject * ) v ;
if ( ! SwigPyObject_Check ( next ) ) {
PyErr_SetString ( PyExc_TypeError , " Attempt to append a non SwigPyObject " ) ;
return NULL ;
}
sobj - > next = next ;
Py_INCREF ( next ) ;
return SWIG_Py_Void ( ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SwigPyObject_next ( PyObject * v , PyObject * SWIGUNUSEDPARM ( args ) )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
SwigPyObject * sobj = ( SwigPyObject * ) v ;
if ( sobj - > next ) {
Py_INCREF ( sobj - > next ) ;
return sobj - > next ;
} else {
2021-05-05 16:19:27 -07:00
return SWIG_Py_Void ( ) ;
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERN PyObject *
SwigPyObject_disown ( PyObject * v , PyObject * SWIGUNUSEDPARM ( args ) )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
SwigPyObject * sobj = ( SwigPyObject * ) v ;
sobj - > own = 0 ;
return SWIG_Py_Void ( ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERN PyObject *
SwigPyObject_acquire ( PyObject * v , PyObject * SWIGUNUSEDPARM ( args ) )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
SwigPyObject * sobj = ( SwigPyObject * ) v ;
sobj - > own = SWIG_POINTER_OWN ;
return SWIG_Py_Void ( ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERN PyObject *
SwigPyObject_own ( PyObject * v , PyObject * args )
{
PyObject * val = 0 ;
if ( ! PyArg_UnpackTuple ( args , " own " , 0 , 1 , & val ) ) {
return NULL ;
} else {
SwigPyObject * sobj = ( SwigPyObject * ) v ;
PyObject * obj = PyBool_FromLong ( sobj - > own ) ;
if ( val ) {
if ( PyObject_IsTrue ( val ) ) {
SwigPyObject_acquire ( v , args ) ;
} else {
SwigPyObject_disown ( v , args ) ;
}
}
return obj ;
}
}
static PyMethodDef
swigobject_methods [ ] = {
{ " disown " , SwigPyObject_disown , METH_NOARGS , " releases ownership of the pointer " } ,
{ " acquire " , SwigPyObject_acquire , METH_NOARGS , " acquires ownership of the pointer " } ,
{ " own " , SwigPyObject_own , METH_VARARGS , " returns/sets ownership of the pointer " } ,
{ " append " , SwigPyObject_append , METH_O , " appends another 'this' object " } ,
{ " next " , SwigPyObject_next , METH_NOARGS , " returns the next 'this' object " } ,
{ " __repr__ " , SwigPyObject_repr2 , METH_NOARGS , " returns object representation " } ,
{ 0 , 0 , 0 , 0 }
2021-05-05 16:19:27 -07:00
} ;
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyTypeObject *
SwigPyObject_TypeOnce ( void ) {
static char swigobject_doc [ ] = " Swig object carries a C/C++ instance pointer " ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
static PyNumberMethods SwigPyObject_as_number = {
( binaryfunc ) 0 , /*nb_add*/
( binaryfunc ) 0 , /*nb_subtract*/
( binaryfunc ) 0 , /*nb_multiply*/
2021-05-05 16:19:27 -07:00
/* nb_divide removed in Python 3 */
# if PY_VERSION_HEX < 0x03000000
2021-05-19 21:33:08 -07:00
( binaryfunc ) 0 , /*nb_divide*/
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
( binaryfunc ) 0 , /*nb_remainder*/
( binaryfunc ) 0 , /*nb_divmod*/
( ternaryfunc ) 0 , /*nb_power*/
( unaryfunc ) 0 , /*nb_negative*/
( unaryfunc ) 0 , /*nb_positive*/
( unaryfunc ) 0 , /*nb_absolute*/
( inquiry ) 0 , /*nb_nonzero*/
0 , /*nb_invert*/
0 , /*nb_lshift*/
0 , /*nb_rshift*/
0 , /*nb_and*/
0 , /*nb_xor*/
0 , /*nb_or*/
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX < 0x03000000
2021-05-19 21:33:08 -07:00
0 , /*nb_coerce*/
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
( unaryfunc ) SwigPyObject_long , /*nb_int*/
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX < 0x03000000
2021-05-19 21:33:08 -07:00
( unaryfunc ) SwigPyObject_long , /*nb_long*/
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
0 , /*nb_reserved*/
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
( unaryfunc ) 0 , /*nb_float*/
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX < 0x03000000
2021-05-19 21:33:08 -07:00
( unaryfunc ) SwigPyObject_oct , /*nb_oct*/
( unaryfunc ) SwigPyObject_hex , /*nb_hex*/
2021-05-05 16:19:27 -07:00
# endif
# if PY_VERSION_HEX >= 0x03050000 /* 3.5 */
2021-05-19 21:33:08 -07:00
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
2021-05-05 16:19:27 -07:00
# elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */
2021-05-19 21:33:08 -07:00
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 /* nb_inplace_add -> nb_index */
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
} ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
static PyTypeObject swigpyobject_type ;
static int type_init = 0 ;
if ( ! type_init ) {
const PyTypeObject tmp = {
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
PyVarObject_HEAD_INIT ( NULL , 0 )
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
PyObject_HEAD_INIT ( NULL )
0 , /* ob_size */
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
" SwigPyObject " , /* tp_name */
sizeof ( SwigPyObject ) , /* tp_basicsize */
0 , /* tp_itemsize */
( destructor ) SwigPyObject_dealloc , /* tp_dealloc */
0 , /* tp_print */
( getattrfunc ) 0 , /* tp_getattr */
( setattrfunc ) 0 , /* tp_setattr */
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
0 , /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
( cmpfunc ) SwigPyObject_compare , /* tp_compare */
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
( 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 */
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_del */
0 , /* tp_version_tag */
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03040000
2021-05-19 21:33:08 -07:00
0 , /* tp_finalize */
2021-05-05 16:19:27 -07:00
# endif
# if PY_VERSION_HEX >= 0x03080000
2021-05-19 21:33:08 -07:00
0 , /* tp_vectorcall */
2021-05-05 16:19:27 -07:00
# endif
# if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
2021-05-19 21:33:08 -07:00
0 , /* tp_print */
2021-05-05 16:19:27 -07:00
# endif
# ifdef COUNT_ALLOCS
2021-05-19 21:33:08 -07:00
0 , /* tp_allocs */
0 , /* tp_frees */
0 , /* tp_maxalloc */
0 , /* tp_prev */
0 /* tp_next */
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
} ;
swigpyobject_type = tmp ;
type_init = 1 ;
if ( PyType_Ready ( & swigpyobject_type ) < 0 )
return NULL ;
}
return & swigpyobject_type ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SwigPyObject_New ( void * ptr , swig_type_info * ty , int own )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
SwigPyObject * sobj = PyObject_NEW ( SwigPyObject , SwigPyObject_type ( ) ) ;
if ( sobj ) {
sobj - > ptr = ptr ;
sobj - > ty = ty ;
sobj - > own = own ;
sobj - > next = 0 ;
}
return ( PyObject * ) sobj ;
2021-05-05 16:19:27 -07:00
}
/* -----------------------------------------------------------------------------
* Implements a simple Swig Packed type , and use it instead of string
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
typedef struct {
2021-05-19 21:33:08 -07:00
PyObject_HEAD
void * pack ;
swig_type_info * ty ;
size_t size ;
2021-05-05 16:19:27 -07:00
} SwigPyPacked ;
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SwigPyPacked_repr ( SwigPyPacked * v )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
char result [ SWIG_BUFFER_SIZE ] ;
if ( SWIG_PackDataName ( result , v - > pack , v - > size , 0 , sizeof ( result ) ) ) {
return SWIG_Python_str_FromFormat ( " <Swig Packed at %s%s> " , result , v - > ty - > name ) ;
} else {
return SWIG_Python_str_FromFormat ( " <Swig Packed %s> " , v - > ty - > name ) ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SwigPyPacked_str ( SwigPyPacked * v )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
char result [ SWIG_BUFFER_SIZE ] ;
if ( SWIG_PackDataName ( result , v - > pack , v - > size , 0 , sizeof ( result ) ) ) {
return SWIG_Python_str_FromFormat ( " %s%s " , result , v - > ty - > name ) ;
} else {
return SWIG_Python_str_FromChar ( v - > ty - > name ) ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME int
SwigPyPacked_compare ( SwigPyPacked * v , SwigPyPacked * w )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
size_t i = v - > size ;
size_t j = w - > size ;
int s = ( i < j ) ? - 1 : ( ( i > j ) ? 1 : 0 ) ;
return s ? s : strncmp ( ( const char * ) v - > pack , ( const char * ) w - > pack , 2 * v - > size ) ;
2021-05-05 16:19:27 -07:00
}
SWIGRUNTIME PyTypeObject * SwigPyPacked_TypeOnce ( void ) ;
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyTypeObject *
SwigPyPacked_type ( void ) {
static PyTypeObject * SWIG_STATIC_POINTER ( type ) = SwigPyPacked_TypeOnce ( ) ;
return type ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIMEINLINE int
SwigPyPacked_Check ( PyObject * op ) {
return ( ( op ) - > ob_type = = SwigPyPacked_TypeOnce ( ) )
| | ( strcmp ( ( op ) - > ob_type - > tp_name , " SwigPyPacked " ) = = 0 ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME void
SwigPyPacked_dealloc ( PyObject * v )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
if ( SwigPyPacked_Check ( v ) ) {
SwigPyPacked * sobj = ( SwigPyPacked * ) v ;
free ( sobj - > pack ) ;
}
PyObject_DEL ( v ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyTypeObject *
SwigPyPacked_TypeOnce ( void ) {
static char swigpacked_doc [ ] = " Swig object carries a C/C++ instance pointer " ;
static PyTypeObject swigpypacked_type ;
static int type_init = 0 ;
if ( ! type_init ) {
const PyTypeObject tmp = {
# if PY_VERSION_HEX>=0x03000000
PyVarObject_HEAD_INIT ( NULL , 0 )
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
PyObject_HEAD_INIT ( NULL )
0 , /* ob_size */
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
" SwigPyPacked " , /* tp_name */
sizeof ( SwigPyPacked ) , /* tp_basicsize */
0 , /* tp_itemsize */
( destructor ) SwigPyPacked_dealloc , /* tp_dealloc */
0 , /* tp_print */
( getattrfunc ) 0 , /* tp_getattr */
( setattrfunc ) 0 , /* tp_setattr */
# if PY_VERSION_HEX>=0x03000000
0 , /* tp_reserved in 3.0.1 */
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
( cmpfunc ) SwigPyPacked_compare , /* tp_compare */
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
( 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 */
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_del */
0 , /* tp_version_tag */
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03040000
2021-05-19 21:33:08 -07:00
0 , /* tp_finalize */
2021-05-05 16:19:27 -07:00
# endif
# if PY_VERSION_HEX >= 0x03080000
2021-05-19 21:33:08 -07:00
0 , /* tp_vectorcall */
2021-05-05 16:19:27 -07:00
# endif
# if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
2021-05-19 21:33:08 -07:00
0 , /* tp_print */
2021-05-05 16:19:27 -07:00
# endif
# ifdef COUNT_ALLOCS
2021-05-19 21:33:08 -07:00
0 , /* tp_allocs */
0 , /* tp_frees */
0 , /* tp_maxalloc */
0 , /* tp_prev */
0 /* tp_next */
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
} ;
swigpypacked_type = tmp ;
type_init = 1 ;
if ( PyType_Ready ( & swigpypacked_type ) < 0 )
return NULL ;
}
return & swigpypacked_type ;
}
SWIGRUNTIME PyObject *
SwigPyPacked_New ( void * ptr , size_t size , swig_type_info * ty )
{
SwigPyPacked * sobj = PyObject_NEW ( SwigPyPacked , SwigPyPacked_type ( ) ) ;
if ( sobj ) {
void * pack = malloc ( size ) ;
if ( pack ) {
memcpy ( pack , ptr , size ) ;
sobj - > pack = pack ;
sobj - > ty = ty ;
sobj - > size = size ;
} else {
PyObject_DEL ( ( PyObject * ) sobj ) ;
sobj = 0 ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return ( PyObject * ) sobj ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME swig_type_info *
SwigPyPacked_UnpackData ( PyObject * obj , void * ptr , size_t size )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
if ( SwigPyPacked_Check ( obj ) ) {
SwigPyPacked * sobj = ( SwigPyPacked * ) obj ;
if ( sobj - > size ! = size ) return 0 ;
memcpy ( ptr , sobj - > pack , size ) ;
return sobj - > ty ;
} else {
return 0 ;
}
2021-05-05 16:19:27 -07:00
}
/* -----------------------------------------------------------------------------
* pointers / data manipulation
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2021-05-19 21:33:08 -07:00
static PyObject * Swig_This_global = NULL ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SWIG_This ( void )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
if ( Swig_This_global = = NULL )
Swig_This_global = SWIG_Python_str_FromChar ( " this " ) ;
return Swig_This_global ;
2021-05-05 16:19:27 -07:00
}
/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
/* TODO: I don't know how to implement the fast getset in Python 3 right now */
2021-05-19 21:33:08 -07:00
# if PY_VERSION_HEX>=0x03000000
# define SWIG_PYTHON_SLOW_GETSET_THIS
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
SWIGRUNTIME SwigPyObject *
SWIG_Python_GetSwigThis ( PyObject * pyobj )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
PyObject * obj ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
if ( SwigPyObject_Check ( pyobj ) )
return ( SwigPyObject * ) pyobj ;
2021-05-05 16:19:27 -07:00
# ifdef SWIGPYTHON_BUILTIN
2021-05-19 21:33:08 -07:00
( 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 ;
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
obj = 0 ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
# if !defined(SWIG_PYTHON_SLOW_GETSET_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 {
2021-05-05 16:19:27 -07:00
# ifdef PyWeakref_CheckProxy
2021-05-19 21:33:08 -07:00
if ( PyWeakref_CheckProxy ( pyobj ) ) {
PyObject * wobj = PyWeakref_GET_OBJECT ( pyobj ) ;
return wobj ? SWIG_Python_GetSwigThis ( wobj ) : 0 ;
}
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
obj = PyObject_GetAttr ( pyobj , SWIG_This ( ) ) ;
if ( obj ) {
Py_DECREF ( obj ) ;
} else {
if ( PyErr_Occurred ( ) ) PyErr_Clear ( ) ;
return 0 ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
obj = PyObject_GetAttr ( pyobj , SWIG_This ( ) ) ;
if ( obj ) {
Py_DECREF ( obj ) ;
} else {
if ( PyErr_Occurred ( ) ) PyErr_Clear ( ) ;
return 0 ;
}
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
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 ;
2021-05-05 16:19:27 -07:00
# endif
}
/* Acquire a pointer value */
2021-05-19 21:33:08 -07:00
SWIGRUNTIME int
SWIG_Python_AcquirePtr ( PyObject * obj , int own ) {
if ( own = = SWIG_POINTER_OWN ) {
SwigPyObject * sobj = SWIG_Python_GetSwigThis ( obj ) ;
if ( sobj ) {
int oldown = sobj - > own ;
sobj - > own = own ;
return oldown ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return 0 ;
2021-05-05 16:19:27 -07:00
}
/* Convert a pointer value */
2021-05-19 21:33:08 -07:00
SWIGRUNTIME int
SWIG_Python_ConvertPtrAndOwn ( PyObject * obj , void * * ptr , swig_type_info * ty , int flags , int * own ) {
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 ( flags & SWIG_POINTER_NO_NULL ) ? SWIG_NullReferenceError : SWIG_OK ;
}
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 ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
break ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
} else {
if ( ptr ) * ptr = vptr ;
break ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
if ( sobj ) {
if ( own )
* 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 ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
Py_DECREF ( impconv ) ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
if ( ! SWIG_IsOK ( res ) & & obj = = Py_None ) {
if ( ptr )
* ptr = 0 ;
if ( PyErr_Occurred ( ) )
PyErr_Clear ( ) ;
res = SWIG_OK ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return res ;
2021-05-05 16:19:27 -07:00
}
/* Convert a function ptr value */
2021-05-19 21:33:08 -07:00
SWIGRUNTIME int
SWIG_Python_ConvertFunctionPtr ( PyObject * obj , void * * ptr , swig_type_info * ty ) {
if ( ! PyCFunction_Check ( obj ) ) {
return SWIG_ConvertPtr ( obj , ptr , ty , 0 ) ;
} else {
void * vptr = 0 ;
swig_cast_info * tc ;
/* 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 )
desc = ty ? SWIG_UnpackVoidPtr ( desc + 10 , & vptr , ty - > name ) : 0 ;
if ( ! desc )
return SWIG_ERROR ;
tc = SWIG_TypeCheck ( desc , ty ) ;
if ( tc ) {
int newmemory = 0 ;
* ptr = SWIG_TypeCast ( tc , vptr , & newmemory ) ;
assert ( ! newmemory ) ; /* newmemory handling not yet implemented */
} else {
return SWIG_ERROR ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
return SWIG_OK ;
}
2021-05-05 16:19:27 -07:00
}
/* Convert a packed pointer value */
2021-05-19 21:33:08 -07:00
SWIGRUNTIME int
SWIG_Python_ConvertPacked ( PyObject * obj , void * ptr , size_t sz , swig_type_info * ty ) {
swig_type_info * to = SwigPyPacked_UnpackData ( obj , ptr , sz ) ;
if ( ! to ) return SWIG_ERROR ;
if ( ty ) {
if ( to ! = ty ) {
/* check type cast? */
swig_cast_info * tc = SWIG_TypeCheck ( to - > name , ty ) ;
if ( ! tc ) return SWIG_ERROR ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return SWIG_OK ;
}
2021-05-05 16:19:27 -07:00
/* -----------------------------------------------------------------------------
* Create a new pointer object
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/*
Create a new instance object , without calling __init__ , and set the
' this ' attribute .
*/
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SWIG_Python_NewShadowInstance ( SwigPyClientData * data , PyObject * swig_this )
{
PyObject * inst = 0 ;
PyObject * newraw = data - > newraw ;
if ( newraw ) {
inst = PyObject_Call ( newraw , data - > newargs , NULL ) ;
if ( inst ) {
# if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
PyObject * * dictptr = _PyObject_GetDictPtr ( inst ) ;
if ( dictptr ! = NULL ) {
PyObject * dict = * dictptr ;
if ( dict = = NULL ) {
dict = PyDict_New ( ) ;
* dictptr = dict ;
PyDict_SetItem ( dict , SWIG_This ( ) , swig_this ) ;
}
}
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
if ( PyObject_SetAttr ( inst , SWIG_This ( ) , swig_this ) = = - 1 ) {
Py_DECREF ( inst ) ;
inst = 0 ;
}
2021-05-05 16:19:27 -07:00
# endif
}
2021-05-19 21:33:08 -07:00
} else {
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
PyObject * empty_args = PyTuple_New ( 0 ) ;
if ( empty_args ) {
PyObject * empty_kwargs = PyDict_New ( ) ;
if ( empty_kwargs ) {
inst = ( ( PyTypeObject * ) data - > newargs ) - > tp_new ( ( PyTypeObject * ) data - > newargs , empty_args , empty_kwargs ) ;
Py_DECREF ( empty_kwargs ) ;
if ( inst ) {
if ( PyObject_SetAttr ( inst , SWIG_This ( ) , swig_this ) = = - 1 ) {
Py_DECREF ( inst ) ;
inst = 0 ;
} else {
Py_TYPE ( inst ) - > tp_flags & = ~ Py_TPFLAGS_VALID_VERSION_TAG ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
Py_DECREF ( empty_args ) ;
}
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
PyObject * dict = PyDict_New ( ) ;
if ( dict ) {
PyDict_SetItem ( dict , SWIG_This ( ) , swig_this ) ;
inst = PyInstance_NewRaw ( data - > newargs , dict ) ;
Py_DECREF ( dict ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
# endif
}
return inst ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME int
SWIG_Python_SetSwigThis ( PyObject * inst , PyObject * swig_this )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
# if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
PyObject * * dictptr = _PyObject_GetDictPtr ( inst ) ;
if ( dictptr ! = NULL ) {
PyObject * dict = * dictptr ;
if ( dict = = NULL ) {
dict = PyDict_New ( ) ;
* dictptr = dict ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
return PyDict_SetItem ( dict , SWIG_This ( ) , swig_this ) ;
}
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
return PyObject_SetAttr ( inst , SWIG_This ( ) , swig_this ) ;
}
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
SWIGINTERN PyObject *
SWIG_Python_InitShadowInstance ( PyObject * args ) {
PyObject * obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " swiginit " , 2 , 2 , obj ) ) {
return NULL ;
} else {
SwigPyObject * sthis = SWIG_Python_GetSwigThis ( obj [ 0 ] ) ;
if ( sthis ) {
SwigPyObject_append ( ( PyObject * ) sthis , obj [ 1 ] ) ;
} else {
if ( SWIG_Python_SetSwigThis ( obj [ 0 ] , obj [ 1 ] ) ! = 0 )
2021-05-05 16:19:27 -07:00
return NULL ;
}
2021-05-19 21:33:08 -07:00
return SWIG_Py_Void ( ) ;
}
2021-05-05 16:19:27 -07:00
}
/* Create a new pointer object */
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
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 ( ) ;
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 ;
2021-05-05 16:19:27 -07:00
# ifdef SWIGPYTHON_BUILTIN
2021-05-19 21:33:08 -07:00
newobj - > dict = 0 ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
}
} else {
newobj = PyObject_New ( SwigPyObject , clientdata - > pytype ) ;
2021-05-05 16:19:27 -07:00
# ifdef SWIGPYTHON_BUILTIN
2021-05-19 21:33:08 -07:00
newobj - > dict = 0 ;
2021-05-05 16:19:27 -07:00
# endif
}
2021-05-19 21:33:08 -07:00
if ( newobj ) {
newobj - > ptr = ptr ;
newobj - > ty = type ;
newobj - > own = own ;
newobj - > next = 0 ;
return ( PyObject * ) newobj ;
}
return SWIG_Py_Void ( ) ;
}
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
assert ( ! ( flags & SWIG_BUILTIN_TP_INIT ) ) ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
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 ;
2021-05-05 16:19:27 -07:00
}
/* Create a new packed object */
2021-05-19 21:33:08 -07:00
SWIGRUNTIMEINLINE PyObject *
SWIG_Python_NewPackedObj ( void * ptr , size_t sz , swig_type_info * type ) {
return ptr ? SwigPyPacked_New ( ( void * ) ptr , sz , type ) : SWIG_Py_Void ( ) ;
2021-05-05 16:19:27 -07:00
}
/* -----------------------------------------------------------------------------*
2021-05-19 21:33:08 -07:00
* Get type list
2021-05-05 16:19:27 -07:00
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
# ifdef SWIG_LINK_RUNTIME
2021-05-19 21:33:08 -07:00
void * SWIG_ReturnGlobalTypeList ( void * ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
SWIGRUNTIME swig_module_info *
SWIG_Python_GetModule ( void * SWIGUNUSEDPARM ( clientdata ) ) {
static void * type_pointer = ( void * ) 0 ;
/* first check if module already created */
if ( ! type_pointer ) {
2021-05-05 16:19:27 -07:00
# ifdef SWIG_LINK_RUNTIME
2021-05-19 21:33:08 -07:00
type_pointer = SWIG_ReturnGlobalTypeList ( ( void * ) 0 ) ;
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
type_pointer = PyCapsule_Import ( SWIGPY_CAPSULE_NAME , 0 ) ;
if ( PyErr_Occurred ( ) ) {
PyErr_Clear ( ) ;
type_pointer = ( void * ) 0 ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
# endif
}
return ( swig_module_info * ) type_pointer ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME void
SWIG_Python_DestroyModule ( PyObject * obj )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
swig_module_info * swig_module = ( swig_module_info * ) PyCapsule_GetPointer ( obj , SWIGPY_CAPSULE_NAME ) ;
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 ) {
SwigPyClientData * data = ( SwigPyClientData * ) ty - > clientdata ;
if ( data ) SwigPyClientData_Del ( data ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
Py_DECREF ( SWIG_This ( ) ) ;
Swig_This_global = NULL ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME void
SWIG_Python_SetModule ( swig_module_info * swig_module ) {
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
/* Add a dummy module object into sys.modules */
PyObject * module = PyImport_AddModule ( " swig_runtime_data " SWIG_RUNTIME_VERSION ) ;
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
static PyMethodDef swig_empty_runtime_method_table [ ] = { { NULL , NULL , 0 , NULL } } ; /* Sentinel */
PyObject * module = Py_InitModule ( " swig_runtime_data " SWIG_RUNTIME_VERSION , swig_empty_runtime_method_table ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
PyObject * pointer = PyCapsule_New ( ( void * ) swig_module , SWIGPY_CAPSULE_NAME , SWIG_Python_DestroyModule ) ;
if ( pointer & & module ) {
PyModule_AddObject ( module , " type_pointer_capsule " SWIG_TYPE_TABLE_NAME , pointer ) ;
} else {
Py_XDECREF ( pointer ) ;
}
2021-05-05 16:19:27 -07:00
}
/* The python cached type query */
2021-05-19 21:33:08 -07:00
SWIGRUNTIME PyObject *
SWIG_Python_TypeCache ( void ) {
static PyObject * SWIG_STATIC_POINTER ( cache ) = PyDict_New ( ) ;
return cache ;
}
SWIGRUNTIME swig_type_info *
SWIG_Python_TypeQuery ( const char * type )
{
PyObject * cache = SWIG_Python_TypeCache ( ) ;
PyObject * key = SWIG_Python_str_FromChar ( type ) ;
PyObject * obj = PyDict_GetItem ( cache , key ) ;
swig_type_info * descriptor ;
if ( obj ) {
descriptor = ( swig_type_info * ) PyCapsule_GetPointer ( obj , NULL ) ;
} else {
swig_module_info * swig_module = SWIG_GetModule ( 0 ) ;
descriptor = SWIG_TypeQueryModule ( swig_module , swig_module , type ) ;
if ( descriptor ) {
obj = PyCapsule_New ( ( void * ) descriptor , NULL , NULL ) ;
PyDict_SetItem ( cache , key , obj ) ;
Py_DECREF ( obj ) ;
}
}
Py_DECREF ( key ) ;
return descriptor ;
}
/*
2021-05-05 16:19:27 -07:00
For backward compatibility only
*/
2021-05-19 21:33:08 -07:00
# define SWIG_POINTER_EXCEPTION 0
# define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
# define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
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 ) {
PyObject * old_str = PyObject_Str ( value ) ;
const char * tmp = SWIG_Python_str_AsChar ( old_str ) ;
const char * errmesg = tmp ? tmp : " Invalid error message " ;
Py_XINCREF ( type ) ;
PyErr_Clear ( ) ;
if ( infront ) {
PyErr_Format ( type , " %s %s " , mesg , errmesg ) ;
} else {
PyErr_Format ( type , " %s %s " , errmesg , mesg ) ;
}
SWIG_Python_str_DelForPy3 ( tmp ) ;
Py_DECREF ( old_str ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
return 1 ;
} else {
return 0 ;
}
}
SWIGRUNTIME int
SWIG_Python_ArgFail ( int argnum )
{
if ( PyErr_Occurred ( ) ) {
/* add information about failing argument */
char mesg [ 256 ] ;
PyOS_snprintf ( mesg , sizeof ( mesg ) , " argument number %d: " , argnum ) ;
return SWIG_Python_AddErrMesg ( mesg , 1 ) ;
} else {
return 0 ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIMEINLINE const char *
SwigPyObject_GetDesc ( PyObject * self )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
SwigPyObject * v = ( SwigPyObject * ) self ;
swig_type_info * ty = v ? v - > ty : 0 ;
return ty ? ty - > str : " " ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGRUNTIME void
SWIG_Python_TypeError ( const char * type , PyObject * obj )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
if ( type ) {
2021-05-05 16:19:27 -07:00
# if defined(SWIG_COBJECT_TYPES)
2021-05-19 21:33:08 -07:00
if ( obj & & SwigPyObject_Check ( obj ) ) {
const char * otype = ( const char * ) SwigPyObject_GetDesc ( obj ) ;
if ( otype ) {
PyErr_Format ( PyExc_TypeError , " a '%s' is expected, 'SwigPyObject(%s)' is received " ,
type , otype ) ;
return ;
}
} else
# endif
{
const char * otype = ( obj ? obj - > ob_type - > tp_name : 0 ) ;
if ( otype ) {
PyObject * str = PyObject_Str ( obj ) ;
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 ) ;
}
Py_XDECREF ( str ) ;
return ;
}
}
PyErr_Format ( PyExc_TypeError , " a '%s' is expected " , type ) ;
} else {
PyErr_Format ( PyExc_TypeError , " unexpected type is received " ) ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
/* Convert a pointer value, signal an exception on a type mismatch */
2021-05-19 21:33:08 -07:00
SWIGRUNTIME void *
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 ( ) ;
2021-05-05 16:19:27 -07:00
# if SWIG_POINTER_EXCEPTION
2021-05-19 21:33:08 -07:00
if ( flags ) {
SWIG_Python_TypeError ( SWIG_TypePrettyName ( ty ) , obj ) ;
SWIG_Python_ArgFail ( argnum ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
# endif
}
return result ;
2021-05-05 16:19:27 -07:00
}
# ifdef SWIGPYTHON_BUILTIN
2021-05-19 21:33:08 -07:00
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 ) ;
}
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 ) {
2021-05-05 16:19:27 -07:00
if ( PyString_Check ( name ) ) {
2021-05-19 21:33:08 -07:00
encoded_name = name ;
Py_INCREF ( name ) ;
} else {
encoded_name = PyUnicode_AsUTF8String ( name ) ;
if ( ! encoded_name )
2021-05-05 16:19:27 -07:00
return - 1 ;
}
2021-05-19 21:33:08 -07:00
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 ;
2021-05-05 16:19:27 -07:00
}
# endif
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
# ifdef __cplusplus
}
# endif
2021-05-19 21:33:08 -07:00
# define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
# define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2021-05-05 16:19:27 -07:00
# ifdef __cplusplus
extern " C " {
# endif
/* Method creation and docstring support functions */
2021-05-19 21:33:08 -07:00
SWIGINTERN PyMethodDef * SWIG_PythonGetProxyDoc ( const char * name ) ;
SWIGINTERN PyObject * SWIG_PyInstanceMethod_New ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * func ) ;
SWIGINTERN PyObject * SWIG_PyStaticMethod_New ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * func ) ;
2021-05-05 16:19:27 -07:00
# ifdef __cplusplus
}
# endif
/* -----------------------------------------------------------------------------
* director_common . swg
*
* This file contains support for director classes which is common between
* languages .
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/*
Use - DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the
' Swig ' namespace . This could be useful for multi - modules projects .
*/
# ifdef SWIG_DIRECTOR_STATIC
/* Force anonymous (static) namespace */
# define Swig
# endif
/* -----------------------------------------------------------------------------
* director . swg
*
* This file contains support for director classes so that Python proxy
* methods can be called from C + + .
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
# ifndef SWIG_DIRECTOR_PYTHON_HEADER_
# define SWIG_DIRECTOR_PYTHON_HEADER_
# include <string>
2021-05-19 21:33:08 -07:00
# include <iostream>
# include <exception>
2021-05-05 16:19:27 -07:00
# include <vector>
2021-05-19 21:33:08 -07:00
# include <map>
2021-05-05 16:19:27 -07:00
/*
Use - DSWIG_PYTHON_DIRECTOR_NO_VTABLE if you don ' t want to generate a ' virtual
table ' , and avoid multiple GetAttr calls to retrieve the python
methods .
*/
# ifndef SWIG_PYTHON_DIRECTOR_NO_VTABLE
# ifndef SWIG_PYTHON_DIRECTOR_VTABLE
# define SWIG_PYTHON_DIRECTOR_VTABLE
# endif
# endif
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
/*
Use - DSWIG_DIRECTOR_NO_UEH if you prefer to avoid the use of the
Undefined Exception Handler provided by swig .
*/
# ifndef SWIG_DIRECTOR_NO_UEH
# ifndef SWIG_DIRECTOR_UEH
# define SWIG_DIRECTOR_UEH
# endif
# endif
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
/*
Use - DSWIG_DIRECTOR_NORTTI if you prefer to avoid the use of the
native C + + RTTI and dynamic_cast < > . But be aware that directors
could stop working when using this option .
*/
# ifdef SWIG_DIRECTOR_NORTTI
/*
When we don ' t use the native C + + RTTI , we implement a minimal one
only for Directors .
*/
2021-05-19 21:33:08 -07:00
# ifndef SWIG_DIRECTOR_RTDIR
# define SWIG_DIRECTOR_RTDIR
2021-05-05 16:19:27 -07:00
namespace Swig {
2021-05-19 21:33:08 -07:00
class Director ;
SWIGINTERN std : : map < void * , Director * > & get_rtdir_map ( ) {
static std : : map < void * , Director * > rtdir_map ;
2021-05-05 16:19:27 -07:00
return rtdir_map ;
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
SWIGINTERNINLINE void set_rtdir ( void * vptr , Director * rtdir ) {
2021-05-05 16:19:27 -07:00
get_rtdir_map ( ) [ vptr ] = rtdir ;
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
SWIGINTERNINLINE Director * get_rtdir ( void * vptr ) {
std : : map < void * , Director * > : : const_iterator pos = get_rtdir_map ( ) . find ( vptr ) ;
Director * rtdir = ( pos ! = get_rtdir_map ( ) . end ( ) ) ? pos - > second : 0 ;
2021-05-05 16:19:27 -07:00
return rtdir ;
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
# endif /* SWIG_DIRECTOR_RTDIR */
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
# define SWIG_DIRECTOR_CAST(ARG) Swig::get_rtdir(static_cast<void *>(ARG))
# define SWIG_DIRECTOR_RGTR(ARG1, ARG2) Swig::set_rtdir(static_cast<void *>(ARG1), ARG2)
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
# define SWIG_DIRECTOR_CAST(ARG) dynamic_cast<Swig::Director *>(ARG)
# define SWIG_DIRECTOR_RGTR(ARG1, ARG2)
2021-05-05 16:19:27 -07:00
# endif /* SWIG_DIRECTOR_NORTTI */
extern " C " {
2021-05-19 21:33:08 -07:00
struct swig_type_info ;
2021-05-05 16:19:27 -07:00
}
namespace Swig {
2021-05-19 21:33:08 -07:00
/* memory handler */
struct GCItem {
virtual ~ GCItem ( ) { }
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
virtual int get_own ( ) const {
return 0 ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
} ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
struct GCItem_var {
GCItem_var ( GCItem * item = 0 ) : _item ( item ) {
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
GCItem_var & operator = ( GCItem * item ) {
GCItem * tmp = _item ;
_item = item ;
delete tmp ;
return * this ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
~ GCItem_var ( ) {
delete _item ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
GCItem * operator - > ( ) const {
return _item ;
2021-05-05 16:19:27 -07:00
}
private :
2021-05-19 21:33:08 -07:00
GCItem * _item ;
} ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
struct GCItem_Object : GCItem {
GCItem_Object ( int own ) : _own ( own ) {
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
virtual ~ GCItem_Object ( ) {
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
int get_own ( ) const {
return _own ;
2021-05-05 16:19:27 -07:00
}
private :
int _own ;
2021-05-19 21:33:08 -07:00
} ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
template < typename Type >
struct GCItem_T : GCItem {
GCItem_T ( Type * ptr ) : _ptr ( ptr ) {
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
virtual ~ GCItem_T ( ) {
delete _ptr ;
2021-05-05 16:19:27 -07:00
}
private :
2021-05-19 21:33:08 -07:00
Type * _ptr ;
} ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
template < typename Type >
struct GCArray_T : GCItem {
GCArray_T ( Type * ptr ) : _ptr ( ptr ) {
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
virtual ~ GCArray_T ( ) {
delete [ ] _ptr ;
2021-05-05 16:19:27 -07:00
}
private :
2021-05-19 21:33:08 -07:00
Type * _ptr ;
} ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
/* base class for director exceptions */
class DirectorException : public std : : exception {
2021-05-05 16:19:27 -07:00
protected :
std : : string swig_msg ;
public :
2021-05-19 21:33:08 -07:00
DirectorException ( PyObject * error , const char * hdr = " " , const char * msg = " " ) : swig_msg ( hdr ) {
SWIG_PYTHON_THREAD_BEGIN_BLOCK ;
if ( msg [ 0 ] ) {
swig_msg + = " " ;
swig_msg + = msg ;
}
if ( ! PyErr_Occurred ( ) ) {
PyErr_SetString ( error , what ( ) ) ;
}
SWIG_PYTHON_THREAD_END_BLOCK ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
virtual ~ DirectorException ( ) throw ( ) {
2021-05-05 16:19:27 -07:00
}
/* Deprecated, use what() instead */
2021-05-19 21:33:08 -07:00
const char * getMessage ( ) const {
return what ( ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
const char * what ( ) const throw ( ) {
return swig_msg . c_str ( ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
static void raise ( PyObject * error , const char * msg ) {
throw DirectorException ( error , msg ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
static void raise ( const char * msg ) {
raise ( PyExc_RuntimeError , msg ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
} ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
/* type mismatch in the return value from a python method call */
class DirectorTypeMismatchException : public DirectorException {
2021-05-05 16:19:27 -07:00
public :
2021-05-19 21:33:08 -07:00
DirectorTypeMismatchException ( PyObject * error , const char * msg = " " )
: DirectorException ( error , " SWIG director type mismatch " , msg ) {
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
DirectorTypeMismatchException ( const char * msg = " " )
: DirectorException ( PyExc_TypeError , " SWIG director type mismatch " , msg ) {
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
static void raise ( PyObject * error , const char * msg ) {
throw DirectorTypeMismatchException ( error , msg ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
static void raise ( const char * msg ) {
throw DirectorTypeMismatchException ( msg ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
} ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
/* any python exception that occurs during a director method call */
class DirectorMethodException : public DirectorException {
2021-05-05 16:19:27 -07:00
public :
2021-05-19 21:33:08 -07:00
DirectorMethodException ( const char * msg = " " )
: DirectorException ( PyExc_RuntimeError , " SWIG director method error. " , msg ) {
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
static void raise ( const char * msg ) {
throw DirectorMethodException ( msg ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
} ;
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
/* attempt to call a pure virtual method via a director method */
class DirectorPureVirtualException : public DirectorException {
2021-05-05 16:19:27 -07:00
public :
2021-05-19 21:33:08 -07:00
DirectorPureVirtualException ( const char * msg = " " )
: DirectorException ( PyExc_RuntimeError , " SWIG director pure virtual method called " , msg ) {
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
static void raise ( const char * msg ) {
throw DirectorPureVirtualException ( msg ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
} ;
2021-05-05 16:19:27 -07:00
# if defined(SWIG_PYTHON_THREADS)
/* __THREAD__ is the old macro to activate some thread support */
2021-05-19 21:33:08 -07:00
# if !defined(__THREAD__)
# define __THREAD__ 1
# endif
2021-05-05 16:19:27 -07:00
# endif
# ifdef __THREAD__
2021-05-19 21:33:08 -07:00
# include "pythread.h"
class Guard {
PyThread_type_lock & mutex_ ;
2021-05-05 16:19:27 -07:00
public :
2021-05-19 21:33:08 -07:00
Guard ( PyThread_type_lock & mutex ) : mutex_ ( mutex ) {
PyThread_acquire_lock ( mutex_ , WAIT_LOCK ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
~ Guard ( ) {
PyThread_release_lock ( mutex_ ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
} ;
# define SWIG_GUARD(mutex) Guard _guard(mutex)
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
# define SWIG_GUARD(mutex)
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
/* director base class */
class Director {
2021-05-05 16:19:27 -07:00
private :
/* pointer to the wrapped python object */
2021-05-19 21:33:08 -07:00
PyObject * swig_self ;
2021-05-05 16:19:27 -07:00
/* flag indicating whether the object is owned by python or c++ */
mutable bool swig_disown_flag ;
/* decrement the reference count of the wrapped python object */
2021-05-19 21:33:08 -07:00
void swig_decref ( ) const {
if ( swig_disown_flag ) {
SWIG_PYTHON_THREAD_BEGIN_BLOCK ;
Py_DECREF ( swig_self ) ;
SWIG_PYTHON_THREAD_END_BLOCK ;
}
2021-05-05 16:19:27 -07:00
}
public :
/* wrap a python object. */
2021-05-19 21:33:08 -07:00
Director ( PyObject * self ) : swig_self ( self ) , swig_disown_flag ( false ) {
2021-05-05 16:19:27 -07:00
}
/* discard our reference at destruction */
2021-05-19 21:33:08 -07:00
virtual ~ Director ( ) {
swig_decref ( ) ;
2021-05-05 16:19:27 -07:00
}
/* return a pointer to the wrapped python object */
2021-05-19 21:33:08 -07:00
PyObject * swig_get_self ( ) const {
return swig_self ;
2021-05-05 16:19:27 -07:00
}
/* acquire ownership of the wrapped python object (the sense of "disown" is from python) */
2021-05-19 21:33:08 -07:00
void swig_disown ( ) const {
if ( ! swig_disown_flag ) {
swig_disown_flag = true ;
swig_incref ( ) ;
}
2021-05-05 16:19:27 -07:00
}
/* increase the reference count of the wrapped python object */
2021-05-19 21:33:08 -07:00
void swig_incref ( ) const {
if ( swig_disown_flag ) {
Py_INCREF ( swig_self ) ;
}
2021-05-05 16:19:27 -07:00
}
/* methods to implement pseudo protected director members */
2021-05-19 21:33:08 -07:00
virtual bool swig_get_inner ( const char * /* swig_protected_method_name */ ) const {
return true ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
virtual void swig_set_inner ( const char * /* swig_protected_method_name */ , bool /* swig_val */ ) const {
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
/* ownership management */
2021-05-05 16:19:27 -07:00
private :
2021-05-19 21:33:08 -07:00
typedef std : : map < void * , GCItem_var > swig_ownership_map ;
2021-05-05 16:19:27 -07:00
mutable swig_ownership_map swig_owner ;
# ifdef __THREAD__
static PyThread_type_lock swig_mutex_own ;
# endif
public :
2021-05-19 21:33:08 -07:00
template < typename Type >
void swig_acquire_ownership_array ( Type * vptr ) const {
if ( vptr ) {
SWIG_GUARD ( swig_mutex_own ) ;
swig_owner [ vptr ] = new GCArray_T < Type > ( vptr ) ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
template < typename Type >
void swig_acquire_ownership ( Type * vptr ) const {
if ( vptr ) {
SWIG_GUARD ( swig_mutex_own ) ;
swig_owner [ vptr ] = new GCItem_T < Type > ( vptr ) ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
void swig_acquire_ownership_obj ( void * vptr , int own ) const {
if ( vptr & & own ) {
SWIG_GUARD ( swig_mutex_own ) ;
swig_owner [ vptr ] = new GCItem_Object ( own ) ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
int swig_release_ownership ( void * vptr ) const {
int own = 0 ;
if ( vptr ) {
SWIG_GUARD ( swig_mutex_own ) ;
swig_ownership_map : : iterator iter = swig_owner . find ( vptr ) ;
if ( iter ! = swig_owner . end ( ) ) {
own = iter - > second - > get_own ( ) ;
swig_owner . erase ( iter ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return own ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
template < typename Type >
static PyObject * swig_pyobj_disown ( PyObject * pyobj , PyObject * SWIGUNUSEDPARM ( args ) ) {
SwigPyObject * sobj = ( SwigPyObject * ) pyobj ;
sobj - > own = 0 ;
Director * d = SWIG_DIRECTOR_CAST ( reinterpret_cast < Type * > ( sobj - > ptr ) ) ;
if ( d )
d - > swig_disown ( ) ;
return PyWeakref_NewProxy ( pyobj , NULL ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
} ;
2021-05-05 16:19:27 -07:00
# ifdef __THREAD__
2021-05-19 21:33:08 -07:00
PyThread_type_lock Director : : swig_mutex_own = PyThread_allocate_lock ( ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
# endif
/* -------- TYPES TABLE (BEGIN) -------- */
# define SWIGTYPE_p_PythonDirectorCallbackClass swig_types[0]
2021-05-19 21:33:08 -07:00
# define SWIGTYPE_p_a_32__p_char swig_types[1]
# define SWIGTYPE_p_char swig_types[2]
# define SWIGTYPE_p_int swig_types[3]
# define SWIGTYPE_p_long_long swig_types[4]
# define SWIGTYPE_p_p_char swig_types[5]
# define SWIGTYPE_p_short swig_types[6]
# define SWIGTYPE_p_signed_char swig_types[7]
# define SWIGTYPE_p_ssize_t swig_types[8]
# define SWIGTYPE_p_unsigned_char swig_types[9]
# define SWIGTYPE_p_unsigned_int swig_types[10]
# define SWIGTYPE_p_unsigned_long_long swig_types[11]
# define SWIGTYPE_p_unsigned_short swig_types[12]
# define SWIGTYPE_p_void swig_types[13]
# define SWIGTYPE_p_zts_addr_info_t swig_types[14]
# define SWIGTYPE_p_zts_errno_t swig_types[15]
# define SWIGTYPE_p_zts_error_t swig_types[16]
# define SWIGTYPE_p_zts_event_msg_t swig_types[17]
# define SWIGTYPE_p_zts_event_t swig_types[18]
# define SWIGTYPE_p_zts_fd_set swig_types[19]
# define SWIGTYPE_p_zts_hostent swig_types[20]
# define SWIGTYPE_p_zts_iovec swig_types[21]
# define SWIGTYPE_p_zts_ip4_addr swig_types[22]
# define SWIGTYPE_p_zts_ip6_addr swig_types[23]
# define SWIGTYPE_p_zts_ip_addr swig_types[24]
# define SWIGTYPE_p_zts_msghdr swig_types[25]
# define SWIGTYPE_p_zts_multicast_group_t swig_types[26]
# define SWIGTYPE_p_zts_net_info_t swig_types[27]
# define SWIGTYPE_p_zts_net_info_type_t swig_types[28]
# define SWIGTYPE_p_zts_netif_info_t swig_types[29]
# define SWIGTYPE_p_zts_network_status_t swig_types[30]
# define SWIGTYPE_p_zts_node_info_t swig_types[31]
# define SWIGTYPE_p_zts_path_t swig_types[32]
# define SWIGTYPE_p_zts_peer_info_t swig_types[33]
# define SWIGTYPE_p_zts_peer_role_t swig_types[34]
# define SWIGTYPE_p_zts_pollfd swig_types[35]
# define SWIGTYPE_p_zts_root_set_t swig_types[36]
# define SWIGTYPE_p_zts_route_info_t swig_types[37]
# define SWIGTYPE_p_zts_sockaddr swig_types[38]
# define SWIGTYPE_p_zts_sockaddr_storage swig_types[39]
# define SWIGTYPE_p_zts_stats_counter_t swig_types[40]
# define SWIGTYPE_p_zts_timeval swig_types[41]
static swig_type_info * swig_types [ 43 ] ;
static swig_module_info swig_module = { swig_types , 42 , 0 , 0 , 0 , 0 } ;
# define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2021-05-05 16:19:27 -07:00
# define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
/* -------- TYPES TABLE (END) -------- */
# ifdef SWIG_TypeQuery
2021-05-19 21:33:08 -07:00
# undef SWIG_TypeQuery
2021-05-05 16:19:27 -07:00
# endif
# define SWIG_TypeQuery SWIG_Python_TypeQuery
/*-----------------------------------------------
@ ( target ) : = _libzt . so
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
# define SWIG_init PyInit__libzt
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
# define SWIG_init init_libzt
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
# define SWIG_name "_libzt"
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
# define SWIGVERSION 0x040002
2021-05-05 16:19:27 -07:00
# define SWIG_VERSION SWIGVERSION
2021-05-19 21:33:08 -07:00
# define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
# define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2021-05-05 16:19:27 -07:00
# include <stdexcept>
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
namespace swig {
2021-05-19 21:33:08 -07:00
class SwigPtr_PyObject {
2021-05-05 16:19:27 -07:00
protected :
2021-05-19 21:33:08 -07:00
PyObject * _obj ;
2021-05-05 16:19:27 -07:00
public :
2021-05-19 21:33:08 -07:00
SwigPtr_PyObject ( ) : _obj ( 0 )
2021-05-05 16:19:27 -07:00
{
}
SwigPtr_PyObject ( const SwigPtr_PyObject & item ) : _obj ( item . _obj )
{
2021-05-19 21:33:08 -07:00
SWIG_PYTHON_THREAD_BEGIN_BLOCK ;
Py_XINCREF ( _obj ) ;
SWIG_PYTHON_THREAD_END_BLOCK ;
}
SwigPtr_PyObject ( PyObject * obj , bool initial_ref = true ) : _obj ( obj )
{
if ( initial_ref ) {
2021-05-05 16:19:27 -07:00
SWIG_PYTHON_THREAD_BEGIN_BLOCK ;
Py_XINCREF ( _obj ) ;
SWIG_PYTHON_THREAD_END_BLOCK ;
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SwigPtr_PyObject & operator = ( const SwigPtr_PyObject & item )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
SWIG_PYTHON_THREAD_BEGIN_BLOCK ;
Py_XINCREF ( item . _obj ) ;
Py_XDECREF ( _obj ) ;
_obj = item . _obj ;
SWIG_PYTHON_THREAD_END_BLOCK ;
return * this ;
}
~ SwigPtr_PyObject ( )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
SWIG_PYTHON_THREAD_BEGIN_BLOCK ;
Py_XDECREF ( _obj ) ;
SWIG_PYTHON_THREAD_END_BLOCK ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
operator PyObject * ( ) const
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
return _obj ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
PyObject * operator - > ( ) const
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
return _obj ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
} ;
}
2021-05-05 16:19:27 -07:00
namespace swig {
2021-05-19 21:33:08 -07:00
struct SwigVar_PyObject : SwigPtr_PyObject {
SwigVar_PyObject ( PyObject * obj = 0 ) : SwigPtr_PyObject ( obj , false ) { }
SwigVar_PyObject & operator = ( PyObject * obj )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
Py_XDECREF ( _obj ) ;
_obj = obj ;
return * this ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
} ;
}
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
# include <stdint.h> // Use the C99 official header
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
SWIGINTERNINLINE PyObject *
SWIG_From_int ( int value )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
return PyInt_FromLong ( ( long ) value ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
# include "ZeroTierSockets.h"
2021-05-19 21:33:08 -07:00
# include "PythonSockets.h"
2021-05-05 16:19:27 -07:00
# include <limits.h>
2021-05-19 21:33:08 -07:00
# if !defined(SWIG_NO_LLONG_MAX)
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
# define LLONG_MAX __LONG_LONG_MAX__
# define LLONG_MIN (-LLONG_MAX - 1LL)
# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
# endif
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
SWIGINTERN int
SWIG_AsVal_double ( PyObject * obj , double * val )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
int res = SWIG_TypeError ;
if ( PyFloat_Check ( obj ) ) {
if ( val ) * val = PyFloat_AsDouble ( obj ) ;
return SWIG_OK ;
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX < 0x03000000
2021-05-19 21:33:08 -07:00
} else if ( PyInt_Check ( obj ) ) {
if ( val ) * val = ( double ) PyInt_AsLong ( obj ) ;
return SWIG_OK ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
} else if ( PyLong_Check ( obj ) ) {
double v = PyLong_AsDouble ( obj ) ;
if ( ! PyErr_Occurred ( ) ) {
if ( val ) * val = v ;
return SWIG_OK ;
} else {
PyErr_Clear ( ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
# ifdef SWIG_PYTHON_CAST_MODE
2021-05-19 21:33:08 -07:00
{
int dispatch = 0 ;
double d = PyFloat_AsDouble ( obj ) ;
if ( ! PyErr_Occurred ( ) ) {
if ( val ) * val = d ;
return SWIG_AddCast ( SWIG_OK ) ;
} else {
PyErr_Clear ( ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
if ( ! dispatch ) {
long v = PyLong_AsLong ( obj ) ;
if ( ! PyErr_Occurred ( ) ) {
if ( val ) * val = v ;
return SWIG_AddCast ( SWIG_AddCast ( SWIG_OK ) ) ;
} else {
PyErr_Clear ( ) ;
}
}
}
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
return res ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
# include <float.h>
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
# include <math.h>
2021-05-19 21:33:08 -07:00
SWIGINTERNINLINE int
SWIG_CanCastAsInteger ( double * d , double min , double max ) {
double x = * d ;
if ( ( min < = x & & x < = max ) ) {
double fx = floor ( x ) ;
double cx = ceil ( x ) ;
double rd = ( ( x - fx ) < 0.5 ) ? fx : cx ; /* simple rint */
if ( ( errno = = EDOM ) | | ( errno = = ERANGE ) ) {
errno = 0 ;
} else {
double summ , reps , diff ;
if ( rd < x ) {
diff = x - rd ;
} else if ( rd > x ) {
diff = rd - x ;
} else {
return 1 ;
}
summ = rd + x ;
reps = diff / summ ;
if ( reps < 8 * DBL_EPSILON ) {
* d = rd ;
return 1 ;
}
}
}
return 0 ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERN int
SWIG_AsVal_long ( PyObject * obj , long * val )
2021-05-05 16:19:27 -07:00
{
# if PY_VERSION_HEX < 0x03000000
2021-05-19 21:33:08 -07:00
if ( PyInt_Check ( obj ) ) {
if ( val ) * val = PyInt_AsLong ( obj ) ;
return SWIG_OK ;
} else
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
if ( PyLong_Check ( obj ) ) {
long v = PyLong_AsLong ( obj ) ;
if ( ! PyErr_Occurred ( ) ) {
if ( val ) * val = v ;
return SWIG_OK ;
} else {
PyErr_Clear ( ) ;
return SWIG_OverflowError ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
# ifdef SWIG_PYTHON_CAST_MODE
2021-05-19 21:33:08 -07:00
{
int dispatch = 0 ;
long v = PyInt_AsLong ( obj ) ;
if ( ! PyErr_Occurred ( ) ) {
if ( val ) * val = v ;
return SWIG_AddCast ( SWIG_OK ) ;
} else {
PyErr_Clear ( ) ;
}
if ( ! dispatch ) {
double d ;
int res = SWIG_AddCast ( SWIG_AsVal_double ( obj , & d ) ) ;
if ( SWIG_IsOK ( res ) & & SWIG_CanCastAsInteger ( & d , LONG_MIN , LONG_MAX ) ) {
if ( val ) * val = ( long ) ( d ) ;
return res ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
return SWIG_TypeError ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERN int
SWIG_AsVal_int ( PyObject * obj , int * val )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
long v ;
int res = SWIG_AsVal_long ( obj , & v ) ;
if ( SWIG_IsOK ( res ) ) {
if ( ( v < INT_MIN | | v > INT_MAX ) ) {
return SWIG_OverflowError ;
} else {
if ( val ) * val = static_cast < int > ( v ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return res ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERNINLINE PyObject *
SWIG_From_unsigned_SS_int ( unsigned int value )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
return PyInt_FromSize_t ( ( size_t ) value ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
# define SWIG_From_long PyInt_FromLong
SWIGINTERNINLINE PyObject *
SWIG_From_unsigned_SS_long ( unsigned long value )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
return ( value > LONG_MAX ) ?
PyLong_FromUnsignedLong ( value ) : PyInt_FromLong ( static_cast < long > ( value ) ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERN int
SWIG_AsVal_unsigned_SS_long ( PyObject * obj , unsigned long * val )
2021-05-05 16:19:27 -07:00
{
# if PY_VERSION_HEX < 0x03000000
2021-05-19 21:33:08 -07:00
if ( PyInt_Check ( obj ) ) {
long v = PyInt_AsLong ( obj ) ;
if ( v > = 0 ) {
if ( val ) * val = v ;
return SWIG_OK ;
} else {
return SWIG_OverflowError ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
} else
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
if ( PyLong_Check ( obj ) ) {
unsigned long v = PyLong_AsUnsignedLong ( obj ) ;
if ( ! PyErr_Occurred ( ) ) {
if ( val ) * val = v ;
return SWIG_OK ;
} else {
PyErr_Clear ( ) ;
return SWIG_OverflowError ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
# ifdef SWIG_PYTHON_CAST_MODE
2021-05-19 21:33:08 -07:00
{
int dispatch = 0 ;
unsigned long v = PyLong_AsUnsignedLong ( obj ) ;
if ( ! PyErr_Occurred ( ) ) {
if ( val ) * val = v ;
return SWIG_AddCast ( SWIG_OK ) ;
} else {
PyErr_Clear ( ) ;
}
if ( ! dispatch ) {
double d ;
int res = SWIG_AddCast ( SWIG_AsVal_double ( obj , & d ) ) ;
if ( SWIG_IsOK ( res ) & & SWIG_CanCastAsInteger ( & d , 0 , ULONG_MAX ) ) {
if ( val ) * val = ( unsigned long ) ( d ) ;
return res ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
return SWIG_TypeError ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
# if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
# define SWIG_LONG_LONG_AVAILABLE
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
# ifdef SWIG_LONG_LONG_AVAILABLE
2021-05-19 21:33:08 -07:00
SWIGINTERN int
SWIG_AsVal_unsigned_SS_long_SS_long ( PyObject * obj , unsigned long long * val )
{
int res = SWIG_TypeError ;
if ( PyLong_Check ( obj ) ) {
unsigned long long v = PyLong_AsUnsignedLongLong ( obj ) ;
if ( ! PyErr_Occurred ( ) ) {
if ( val ) * val = v ;
return SWIG_OK ;
} else {
PyErr_Clear ( ) ;
res = SWIG_OverflowError ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
} else {
unsigned long v ;
res = SWIG_AsVal_unsigned_SS_long ( obj , & v ) ;
if ( SWIG_IsOK ( res ) ) {
if ( val ) * val = v ;
return res ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
# ifdef SWIG_PYTHON_CAST_MODE
2021-05-19 21:33:08 -07:00
{
const double mant_max = 1LL < < DBL_MANT_DIG ;
double d ;
res = SWIG_AsVal_double ( obj , & d ) ;
if ( SWIG_IsOK ( res ) & & ! SWIG_CanCastAsInteger ( & d , 0 , mant_max ) )
return SWIG_OverflowError ;
if ( SWIG_IsOK ( res ) & & SWIG_CanCastAsInteger ( & d , 0 , mant_max ) ) {
if ( val ) * val = ( unsigned long long ) ( d ) ;
return SWIG_AddCast ( res ) ;
}
res = SWIG_TypeError ;
}
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
return res ;
2021-05-05 16:19:27 -07:00
}
# endif
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
# ifdef SWIG_LONG_LONG_AVAILABLE
2021-05-19 21:33:08 -07:00
SWIGINTERNINLINE PyObject *
SWIG_From_unsigned_SS_long_SS_long ( unsigned long long value )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
return ( value > LONG_MAX ) ?
PyLong_FromUnsignedLongLong ( value ) : PyInt_FromLong ( static_cast < long > ( value ) ) ;
2021-05-05 16:19:27 -07:00
}
# endif
2021-05-19 21:33:08 -07:00
SWIGINTERN int
SWIG_AsVal_unsigned_SS_short ( PyObject * obj , unsigned short * val )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
unsigned long v ;
int res = SWIG_AsVal_unsigned_SS_long ( obj , & v ) ;
if ( SWIG_IsOK ( res ) ) {
if ( ( v > USHRT_MAX ) ) {
return SWIG_OverflowError ;
} else {
if ( val ) * val = static_cast < unsigned short > ( v ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return res ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERNINLINE PyObject *
SWIG_From_unsigned_SS_short ( unsigned short value )
{
return SWIG_From_unsigned_SS_long ( value ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERN int
SWIG_AsVal_unsigned_SS_char ( PyObject * obj , unsigned char * val )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
unsigned long v ;
int res = SWIG_AsVal_unsigned_SS_long ( obj , & v ) ;
if ( SWIG_IsOK ( res ) ) {
if ( ( v > UCHAR_MAX ) ) {
return SWIG_OverflowError ;
} else {
if ( val ) * val = static_cast < unsigned char > ( v ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return res ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERNINLINE PyObject *
SWIG_From_unsigned_SS_char ( unsigned char value )
{
return SWIG_From_unsigned_SS_long ( value ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERN swig_type_info *
SWIG_pchar_descriptor ( void )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
static int init = 0 ;
static swig_type_info * info = 0 ;
if ( ! init ) {
info = SWIG_TypeQuery ( " _p_char " ) ;
init = 1 ;
}
return info ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERN int
SWIG_AsCharPtrAndSize ( PyObject * obj , char * * cptr , size_t * psize , int * alloc )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
# if PY_VERSION_HEX>=0x03000000
2021-05-05 16:19:27 -07:00
# if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
2021-05-19 21:33:08 -07:00
if ( PyBytes_Check ( obj ) )
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
if ( PyUnicode_Check ( obj ) )
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
# else
if ( PyString_Check ( obj ) )
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
{
char * cstr ; Py_ssize_t len ;
int ret = SWIG_OK ;
# if PY_VERSION_HEX>=0x03000000
# if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
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 ) ;
if ( ! obj )
return SWIG_TypeError ;
if ( alloc )
* alloc = SWIG_NEWOBJ ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
if ( PyBytes_AsStringAndSize ( obj , & cstr , & len ) = = - 1 )
return SWIG_TypeError ;
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
if ( PyString_AsStringAndSize ( obj , & cstr , & len ) = = - 1 )
return SWIG_TypeError ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
if ( cptr ) {
if ( alloc ) {
if ( * alloc = = SWIG_NEWOBJ ) {
* cptr = reinterpret_cast < char * > ( memcpy ( new char [ len + 1 ] , cstr , sizeof ( char ) * ( len + 1 ) ) ) ;
* alloc = SWIG_NEWOBJ ;
} else {
* cptr = cstr ;
* alloc = SWIG_OLDOBJ ;
}
} else {
# if PY_VERSION_HEX>=0x03000000
2021-05-05 16:19:27 -07:00
# if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
2021-05-19 21:33:08 -07:00
* cptr = PyBytes_AsString ( obj ) ;
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
assert ( 0 ) ; /* Should never reach here with Unicode strings in Python 3 */
2021-05-05 16:19:27 -07:00
# endif
# else
2021-05-19 21:33:08 -07:00
* cptr = SWIG_Python_str_AsChar ( obj ) ;
if ( ! * cptr )
ret = SWIG_TypeError ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
if ( psize ) * psize = len + 1 ;
# if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
Py_XDECREF ( obj ) ;
# endif
return ret ;
} else {
2021-05-05 16:19:27 -07:00
# if defined(SWIG_PYTHON_2_UNICODE)
# if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
# error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
# endif
2021-05-19 21:33:08 -07:00
# if PY_VERSION_HEX<0x03000000
if ( PyUnicode_Check ( obj ) ) {
char * cstr ; Py_ssize_t len ;
if ( ! alloc & & cptr ) {
return SWIG_RuntimeError ;
}
obj = PyUnicode_AsUTF8String ( obj ) ;
if ( ! obj )
return SWIG_TypeError ;
if ( PyString_AsStringAndSize ( obj , & cstr , & len ) ! = - 1 ) {
if ( cptr ) {
if ( alloc ) * alloc = SWIG_NEWOBJ ;
* cptr = reinterpret_cast < char * > ( memcpy ( new char [ len + 1 ] , cstr , sizeof ( char ) * ( len + 1 ) ) ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
if ( psize ) * psize = len + 1 ;
Py_XDECREF ( obj ) ;
return SWIG_OK ;
} else {
Py_XDECREF ( obj ) ;
}
}
2021-05-05 16:19:27 -07:00
# endif
# endif
2021-05-19 21:33:08 -07:00
swig_type_info * pchar_descriptor = SWIG_pchar_descriptor ( ) ;
if ( pchar_descriptor ) {
void * vptr = 0 ;
if ( SWIG_ConvertPtr ( obj , & vptr , pchar_descriptor , 0 ) = = SWIG_OK ) {
if ( cptr ) * cptr = ( char * ) vptr ;
if ( psize ) * psize = vptr ? ( strlen ( ( char * ) vptr ) + 1 ) : 0 ;
if ( alloc ) * alloc = SWIG_OLDOBJ ;
return SWIG_OK ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return SWIG_TypeError ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERN int
SWIG_AsCharArray ( PyObject * obj , char * val , size_t size )
{
char * cptr = 0 ; size_t csize = 0 ; int alloc = SWIG_OLDOBJ ;
int res = SWIG_AsCharPtrAndSize ( obj , & cptr , & csize , & alloc ) ;
if ( SWIG_IsOK ( res ) ) {
/* special case of single char conversion when we don't need space for NUL */
if ( size = = 1 & & csize = = 2 & & cptr & & ! cptr [ 1 ] ) - - csize ;
if ( csize < = size ) {
if ( val ) {
if ( csize ) memcpy ( val , cptr , csize * sizeof ( char ) ) ;
if ( csize < size ) memset ( val + csize , 0 , ( size - csize ) * sizeof ( char ) ) ;
}
if ( alloc = = SWIG_NEWOBJ ) {
delete [ ] cptr ;
res = SWIG_DelNewMask ( res ) ;
}
return res ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
if ( alloc = = SWIG_NEWOBJ ) delete [ ] cptr ;
}
return SWIG_TypeError ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERNINLINE PyObject *
SWIG_FromCharPtrAndSize ( const char * carray , size_t size )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
if ( carray ) {
if ( size > INT_MAX ) {
swig_type_info * pchar_descriptor = SWIG_pchar_descriptor ( ) ;
return pchar_descriptor ?
SWIG_InternalNewPointerObj ( const_cast < char * > ( carray ) , pchar_descriptor , 0 ) : SWIG_Py_Void ( ) ;
} else {
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03000000
# if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
2021-05-19 21:33:08 -07:00
return PyBytes_FromStringAndSize ( carray , static_cast < Py_ssize_t > ( size ) ) ;
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
return PyUnicode_DecodeUTF8 ( carray , static_cast < Py_ssize_t > ( size ) , " surrogateescape " ) ;
2021-05-05 16:19:27 -07:00
# endif
# else
2021-05-19 21:33:08 -07:00
return PyString_FromStringAndSize ( carray , static_cast < Py_ssize_t > ( size ) ) ;
2021-05-05 16:19:27 -07:00
# endif
}
2021-05-19 21:33:08 -07:00
} else {
return SWIG_Py_Void ( ) ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERN size_t
SWIG_strnlen ( const char * s , size_t maxlen )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
const char * p ;
for ( p = s ; maxlen - - & & * p ; p + + )
;
return p - s ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERN int
SWIG_AsVal_unsigned_SS_int ( PyObject * obj , unsigned int * val )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
unsigned long v ;
int res = SWIG_AsVal_unsigned_SS_long ( obj , & v ) ;
if ( SWIG_IsOK ( res ) ) {
if ( ( v > UINT_MAX ) ) {
return SWIG_OverflowError ;
} else {
if ( val ) * val = static_cast < unsigned int > ( v ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return res ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */
2021-05-05 16:19:27 -07:00
# ifndef SWIG_isfinite
/* isfinite() is a macro for C99 */
2021-05-19 21:33:08 -07:00
# if defined(isfinite)
# define SWIG_isfinite(X) (isfinite(X))
# elif defined(__cplusplus) && __cplusplus >= 201103L
2021-05-05 16:19:27 -07:00
/* Use a template so that this works whether isfinite() is std::isfinite() or
* in the global namespace . The reality seems to vary between compiler
* versions .
*
* Make sure namespace std exists to avoid compiler warnings .
*
* extern " C++ " is required as this fragment can end up inside an extern " C " { } block
*/
2021-05-19 21:33:08 -07:00
namespace std { }
extern " C++ " template < typename T >
inline int SWIG_isfinite_func ( T x ) {
using namespace std ;
return isfinite ( x ) ;
}
# define SWIG_isfinite(X) (SWIG_isfinite_func(X))
# elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
# define SWIG_isfinite(X) (__builtin_isfinite(X))
# elif defined(__clang__) && defined(__has_builtin)
# if __has_builtin(__builtin_isfinite)
# define SWIG_isfinite(X) (__builtin_isfinite(X))
# endif
# elif defined(_MSC_VER)
# define SWIG_isfinite(X) (_finite(X))
# elif defined(__sun) && defined(__SVR4)
# include <ieeefp.h>
# define SWIG_isfinite(X) (finite(X))
# endif
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
/* Accept infinite as a valid float value unless we are unable to check if a value is finite */
# ifdef SWIG_isfinite
2021-05-19 21:33:08 -07:00
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X))
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX))
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
SWIGINTERN int
SWIG_AsVal_float ( PyObject * obj , float * val )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
double v ;
int res = SWIG_AsVal_double ( obj , & v ) ;
if ( SWIG_IsOK ( res ) ) {
if ( SWIG_Float_Overflow_Check ( v ) ) {
return SWIG_OverflowError ;
} else {
if ( val ) * val = static_cast < float > ( v ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return res ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
# define SWIG_From_double PyFloat_FromDouble
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
SWIGINTERNINLINE PyObject *
SWIG_From_float ( float value )
{
return SWIG_From_double ( value ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERNINLINE PyObject *
SWIG_FromCharPtr ( const char * cptr )
{
return SWIG_FromCharPtrAndSize ( cptr , ( cptr ? strlen ( cptr ) : 0 ) ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERN int
SWIG_AsVal_short ( PyObject * obj , short * val )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
long v ;
int res = SWIG_AsVal_long ( obj , & v ) ;
if ( SWIG_IsOK ( res ) ) {
if ( ( v < SHRT_MIN | | v > SHRT_MAX ) ) {
return SWIG_OverflowError ;
} else {
if ( val ) * val = static_cast < short > ( v ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
return res ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERNINLINE PyObject *
SWIG_From_short ( short value )
{
return SWIG_From_long ( value ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERNINLINE int
SWIG_AsVal_size_t ( PyObject * obj , size_t * val )
2021-05-05 16:19:27 -07:00
{
2021-05-19 21:33:08 -07:00
int res = SWIG_TypeError ;
# ifdef SWIG_LONG_LONG_AVAILABLE
if ( sizeof ( size_t ) < = sizeof ( unsigned long ) ) {
# endif
unsigned long v ;
res = SWIG_AsVal_unsigned_SS_long ( obj , val ? & v : 0 ) ;
if ( SWIG_IsOK ( res ) & & val ) * val = static_cast < size_t > ( v ) ;
# ifdef SWIG_LONG_LONG_AVAILABLE
} else if ( sizeof ( size_t ) < = sizeof ( unsigned long long ) ) {
unsigned long long v ;
res = SWIG_AsVal_unsigned_SS_long_SS_long ( obj , val ? & v : 0 ) ;
if ( SWIG_IsOK ( res ) & & val ) * val = static_cast < size_t > ( v ) ;
}
# endif
return res ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SWIGINTERNINLINE PyObject *
SWIG_From_size_t ( size_t value )
{
# ifdef SWIG_LONG_LONG_AVAILABLE
if ( sizeof ( size_t ) < = sizeof ( unsigned long ) ) {
# endif
return SWIG_From_unsigned_SS_long ( static_cast < unsigned long > ( value ) ) ;
# ifdef SWIG_LONG_LONG_AVAILABLE
} else {
/* assume sizeof(size_t) <= sizeof(unsigned long long) */
return SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( value ) ) ;
}
# endif
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
/* ---------------------------------------------------
* C + + director class methods
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
# include "zt_wrap.h"
2021-05-05 16:19:27 -07:00
2021-05-19 21:33:08 -07:00
SwigDirector_PythonDirectorCallbackClass : : SwigDirector_PythonDirectorCallbackClass ( PyObject * self ) : PythonDirectorCallbackClass ( ) , Swig : : Director ( self ) {
SWIG_DIRECTOR_RGTR ( ( PythonDirectorCallbackClass * ) this , this ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
void SwigDirector_PythonDirectorCallbackClass : : on_zerotier_event ( zts_event_msg_t * msg ) {
swig : : SwigVar_PyObject obj0 ;
obj0 = SWIG_NewPointerObj ( SWIG_as_voidptr ( msg ) , SWIGTYPE_p_zts_event_msg_t , 0 ) ;
if ( ! swig_get_self ( ) ) {
Swig : : DirectorException : : raise ( " 'self' uninitialized, maybe you forgot to call PythonDirectorCallbackClass.__init__. " ) ;
}
# if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
const size_t swig_method_index = 0 ;
const char * const swig_method_name = " on_zerotier_event " ;
PyObject * method = swig_get_method ( swig_method_index , swig_method_name ) ;
swig : : SwigVar_PyObject result = PyObject_CallFunctionObjArgs ( method , ( PyObject * ) obj0 , NULL ) ;
# else
swig : : SwigVar_PyObject swig_method_name = SWIG_Python_str_FromChar ( " on_zerotier_event " ) ;
swig : : SwigVar_PyObject result = PyObject_CallMethodObjArgs ( swig_get_self ( ) , ( PyObject * ) swig_method_name , ( PyObject * ) obj0 , NULL ) ;
# endif
if ( ! result ) {
PyObject * error = PyErr_Occurred ( ) ;
if ( error ) {
Swig : : DirectorMethodException : : raise ( " Error detected when calling 'PythonDirectorCallbackClass.on_zerotier_event' " ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
SwigDirector_PythonDirectorCallbackClass : : ~ SwigDirector_PythonDirectorCallbackClass ( ) {
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
# ifdef __cplusplus
extern " C " {
# endif
SWIGINTERN int Swig_var_zts_errno_set ( PyObject * _val ) {
{
int val ;
int res = SWIG_AsVal_int ( _val , & val ) ;
if ( ! SWIG_IsOK ( res ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res ) , " in variable ' " " zts_errno " " ' of type ' " " int " " ' " ) ;
}
zts_errno = static_cast < int > ( val ) ;
}
return 0 ;
fail :
return 1 ;
}
SWIGINTERN PyObject * Swig_var_zts_errno_get ( void ) {
PyObject * pyobj = 0 ;
pyobj = SWIG_From_int ( static_cast < int > ( zts_errno ) ) ;
return pyobj ;
}
SWIGINTERN PyObject * _wrap_zts_node_info_t_node_id_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_node_info_t * arg1 = ( zts_node_info_t * ) 0 ;
uint64_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_node_info_t_node_id_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_node_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_node_info_t_node_id_set " " ', argument " " 1 " " of type ' " " zts_node_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_node_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_node_info_t_node_id_set " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > node_id = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_info_t_node_id_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_node_info_t * arg1 = ( zts_node_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint64_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_node_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_node_info_t_node_id_get " " ', argument " " 1 " " of type ' " " zts_node_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_node_info_t * > ( argp1 ) ;
result = ( uint64_t ) ( ( arg1 ) - > node_id ) ;
resultobj = SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_info_t_port_primary_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_node_info_t * arg1 = ( zts_node_info_t * ) 0 ;
uint16_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_node_info_t_port_primary_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_node_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_node_info_t_port_primary_set " " ', argument " " 1 " " of type ' " " zts_node_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_node_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_short ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_node_info_t_port_primary_set " " ', argument " " 2 " " of type ' " " uint16_t " " ' " ) ;
}
arg2 = static_cast < uint16_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > port_primary = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_info_t_port_primary_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_node_info_t * arg1 = ( zts_node_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint16_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_node_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_node_info_t_port_primary_get " " ', argument " " 1 " " of type ' " " zts_node_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_node_info_t * > ( argp1 ) ;
result = ( uint16_t ) ( ( arg1 ) - > port_primary ) ;
resultobj = SWIG_From_unsigned_SS_short ( static_cast < unsigned short > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_info_t_port_secondary_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_node_info_t * arg1 = ( zts_node_info_t * ) 0 ;
uint16_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_node_info_t_port_secondary_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_node_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_node_info_t_port_secondary_set " " ', argument " " 1 " " of type ' " " zts_node_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_node_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_short ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_node_info_t_port_secondary_set " " ', argument " " 2 " " of type ' " " uint16_t " " ' " ) ;
}
arg2 = static_cast < uint16_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > port_secondary = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_info_t_port_secondary_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_node_info_t * arg1 = ( zts_node_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint16_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_node_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_node_info_t_port_secondary_get " " ', argument " " 1 " " of type ' " " zts_node_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_node_info_t * > ( argp1 ) ;
result = ( uint16_t ) ( ( arg1 ) - > port_secondary ) ;
resultobj = SWIG_From_unsigned_SS_short ( static_cast < unsigned short > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_info_t_port_tertiary_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_node_info_t * arg1 = ( zts_node_info_t * ) 0 ;
uint16_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_node_info_t_port_tertiary_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_node_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_node_info_t_port_tertiary_set " " ', argument " " 1 " " of type ' " " zts_node_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_node_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_short ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_node_info_t_port_tertiary_set " " ', argument " " 2 " " of type ' " " uint16_t " " ' " ) ;
}
arg2 = static_cast < uint16_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > port_tertiary = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_info_t_port_tertiary_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_node_info_t * arg1 = ( zts_node_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint16_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_node_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_node_info_t_port_tertiary_get " " ', argument " " 1 " " of type ' " " zts_node_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_node_info_t * > ( argp1 ) ;
result = ( uint16_t ) ( ( arg1 ) - > port_tertiary ) ;
resultobj = SWIG_From_unsigned_SS_short ( static_cast < unsigned short > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_info_t_ver_major_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_node_info_t * arg1 = ( zts_node_info_t * ) 0 ;
uint8_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned char val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_node_info_t_ver_major_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_node_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_node_info_t_ver_major_set " " ', argument " " 1 " " of type ' " " zts_node_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_node_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_char ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_node_info_t_ver_major_set " " ', argument " " 2 " " of type ' " " uint8_t " " ' " ) ;
}
arg2 = static_cast < uint8_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > ver_major = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_info_t_ver_major_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_node_info_t * arg1 = ( zts_node_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint8_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_node_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_node_info_t_ver_major_get " " ', argument " " 1 " " of type ' " " zts_node_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_node_info_t * > ( argp1 ) ;
result = ( uint8_t ) ( ( arg1 ) - > ver_major ) ;
resultobj = SWIG_From_unsigned_SS_char ( static_cast < unsigned char > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_info_t_ver_minor_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_node_info_t * arg1 = ( zts_node_info_t * ) 0 ;
uint8_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned char val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_node_info_t_ver_minor_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_node_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_node_info_t_ver_minor_set " " ', argument " " 1 " " of type ' " " zts_node_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_node_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_char ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_node_info_t_ver_minor_set " " ', argument " " 2 " " of type ' " " uint8_t " " ' " ) ;
}
arg2 = static_cast < uint8_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > ver_minor = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_info_t_ver_minor_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_node_info_t * arg1 = ( zts_node_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint8_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_node_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_node_info_t_ver_minor_get " " ', argument " " 1 " " of type ' " " zts_node_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_node_info_t * > ( argp1 ) ;
result = ( uint8_t ) ( ( arg1 ) - > ver_minor ) ;
resultobj = SWIG_From_unsigned_SS_char ( static_cast < unsigned char > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_info_t_ver_rev_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_node_info_t * arg1 = ( zts_node_info_t * ) 0 ;
uint8_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned char val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_node_info_t_ver_rev_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_node_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_node_info_t_ver_rev_set " " ', argument " " 1 " " of type ' " " zts_node_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_node_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_char ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_node_info_t_ver_rev_set " " ', argument " " 2 " " of type ' " " uint8_t " " ' " ) ;
}
arg2 = static_cast < uint8_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > ver_rev = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_info_t_ver_rev_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_node_info_t * arg1 = ( zts_node_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint8_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_node_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_node_info_t_ver_rev_get " " ', argument " " 1 " " of type ' " " zts_node_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_node_info_t * > ( argp1 ) ;
result = ( uint8_t ) ( ( arg1 ) - > ver_rev ) ;
resultobj = SWIG_From_unsigned_SS_char ( static_cast < unsigned char > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_node_info_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_node_info_t * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_node_info_t " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_node_info_t * ) new zts_node_info_t ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_node_info_t , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_node_info_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_node_info_t * arg1 = ( zts_node_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_node_info_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_node_info_t " " ', argument " " 1 " " of type ' " " zts_node_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_node_info_t * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_node_info_t_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_node_info_t , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_node_info_t_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_addr_info_t_net_id_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_addr_info_t * arg1 = ( zts_addr_info_t * ) 0 ;
uint64_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_addr_info_t_net_id_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_addr_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_addr_info_t_net_id_set " " ', argument " " 1 " " of type ' " " zts_addr_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_addr_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_addr_info_t_net_id_set " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > net_id = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_addr_info_t_net_id_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_addr_info_t * arg1 = ( zts_addr_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint64_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_addr_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_addr_info_t_net_id_get " " ', argument " " 1 " " of type ' " " zts_addr_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_addr_info_t * > ( argp1 ) ;
result = ( uint64_t ) ( ( arg1 ) - > net_id ) ;
resultobj = SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_addr_info_t_addr_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_addr_info_t * arg1 = ( zts_addr_info_t * ) 0 ;
zts_sockaddr_storage * arg2 = ( zts_sockaddr_storage * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_addr_info_t_addr_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_addr_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_addr_info_t_addr_set " " ', argument " " 1 " " of type ' " " zts_addr_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_addr_info_t * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_sockaddr_storage , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_addr_info_t_addr_set " " ', argument " " 2 " " of type ' " " zts_sockaddr_storage * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_sockaddr_storage * > ( argp2 ) ;
if ( arg1 ) ( arg1 ) - > addr = * arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_addr_info_t_addr_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_addr_info_t * arg1 = ( zts_addr_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_sockaddr_storage * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_addr_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_addr_info_t_addr_get " " ', argument " " 1 " " of type ' " " zts_addr_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_addr_info_t * > ( argp1 ) ;
result = ( zts_sockaddr_storage * ) & ( ( arg1 ) - > addr ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_sockaddr_storage , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_addr_info_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_addr_info_t * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_addr_info_t " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_addr_info_t * ) new zts_addr_info_t ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_addr_info_t , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_addr_info_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_addr_info_t * arg1 = ( zts_addr_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_addr_info_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_addr_info_t " " ', argument " " 1 " " of type ' " " zts_addr_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_addr_info_t * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_addr_info_t_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_addr_info_t , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_addr_info_t_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_route_info_t_target_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_route_info_t * arg1 = ( zts_route_info_t * ) 0 ;
zts_sockaddr_storage * arg2 = ( zts_sockaddr_storage * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_route_info_t_target_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_route_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_route_info_t_target_set " " ', argument " " 1 " " of type ' " " zts_route_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_route_info_t * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_sockaddr_storage , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_route_info_t_target_set " " ', argument " " 2 " " of type ' " " zts_sockaddr_storage * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_sockaddr_storage * > ( argp2 ) ;
if ( arg1 ) ( arg1 ) - > target = * arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_route_info_t_target_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_route_info_t * arg1 = ( zts_route_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_sockaddr_storage * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_route_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_route_info_t_target_get " " ', argument " " 1 " " of type ' " " zts_route_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_route_info_t * > ( argp1 ) ;
result = ( zts_sockaddr_storage * ) & ( ( arg1 ) - > target ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_sockaddr_storage , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_route_info_t_via_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_route_info_t * arg1 = ( zts_route_info_t * ) 0 ;
zts_sockaddr_storage * arg2 = ( zts_sockaddr_storage * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_route_info_t_via_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_route_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_route_info_t_via_set " " ', argument " " 1 " " of type ' " " zts_route_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_route_info_t * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_sockaddr_storage , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_route_info_t_via_set " " ', argument " " 2 " " of type ' " " zts_sockaddr_storage * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_sockaddr_storage * > ( argp2 ) ;
if ( arg1 ) ( arg1 ) - > via = * arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_route_info_t_via_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_route_info_t * arg1 = ( zts_route_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_sockaddr_storage * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_route_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_route_info_t_via_get " " ', argument " " 1 " " of type ' " " zts_route_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_route_info_t * > ( argp1 ) ;
result = ( zts_sockaddr_storage * ) & ( ( arg1 ) - > via ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_sockaddr_storage , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_route_info_t_flags_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_route_info_t * arg1 = ( zts_route_info_t * ) 0 ;
uint16_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_route_info_t_flags_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_route_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_route_info_t_flags_set " " ', argument " " 1 " " of type ' " " zts_route_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_route_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_short ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_route_info_t_flags_set " " ', argument " " 2 " " of type ' " " uint16_t " " ' " ) ;
}
arg2 = static_cast < uint16_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > flags = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_route_info_t_flags_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_route_info_t * arg1 = ( zts_route_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint16_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_route_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_route_info_t_flags_get " " ', argument " " 1 " " of type ' " " zts_route_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_route_info_t * > ( argp1 ) ;
result = ( uint16_t ) ( ( arg1 ) - > flags ) ;
resultobj = SWIG_From_unsigned_SS_short ( static_cast < unsigned short > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_route_info_t_metric_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_route_info_t * arg1 = ( zts_route_info_t * ) 0 ;
uint16_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_route_info_t_metric_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_route_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_route_info_t_metric_set " " ', argument " " 1 " " of type ' " " zts_route_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_route_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_short ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_route_info_t_metric_set " " ', argument " " 2 " " of type ' " " uint16_t " " ' " ) ;
}
arg2 = static_cast < uint16_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > metric = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_route_info_t_metric_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_route_info_t * arg1 = ( zts_route_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint16_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_route_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_route_info_t_metric_get " " ', argument " " 1 " " of type ' " " zts_route_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_route_info_t * > ( argp1 ) ;
result = ( uint16_t ) ( ( arg1 ) - > metric ) ;
resultobj = SWIG_From_unsigned_SS_short ( static_cast < unsigned short > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_route_info_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_route_info_t * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_route_info_t " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_route_info_t * ) new zts_route_info_t ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_route_info_t , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_route_info_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_route_info_t * arg1 = ( zts_route_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_route_info_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_route_info_t " " ', argument " " 1 " " of type ' " " zts_route_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_route_info_t * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_route_info_t_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_route_info_t , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_route_info_t_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_multicast_group_t_mac_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_multicast_group_t * arg1 = ( zts_multicast_group_t * ) 0 ;
uint64_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_multicast_group_t_mac_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_multicast_group_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_multicast_group_t_mac_set " " ', argument " " 1 " " of type ' " " zts_multicast_group_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_multicast_group_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_multicast_group_t_mac_set " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > mac = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_multicast_group_t_mac_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_multicast_group_t * arg1 = ( zts_multicast_group_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint64_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_multicast_group_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_multicast_group_t_mac_get " " ', argument " " 1 " " of type ' " " zts_multicast_group_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_multicast_group_t * > ( argp1 ) ;
result = ( uint64_t ) ( ( arg1 ) - > mac ) ;
resultobj = SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_multicast_group_t_adi_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_multicast_group_t * arg1 = ( zts_multicast_group_t * ) 0 ;
unsigned long arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_multicast_group_t_adi_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_multicast_group_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_multicast_group_t_adi_set " " ', argument " " 1 " " of type ' " " zts_multicast_group_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_multicast_group_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_multicast_group_t_adi_set " " ', argument " " 2 " " of type ' " " unsigned long " " ' " ) ;
}
arg2 = static_cast < unsigned long > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > adi = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_multicast_group_t_adi_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_multicast_group_t * arg1 = ( zts_multicast_group_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
unsigned long result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_multicast_group_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_multicast_group_t_adi_get " " ', argument " " 1 " " of type ' " " zts_multicast_group_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_multicast_group_t * > ( argp1 ) ;
result = ( unsigned long ) ( ( arg1 ) - > adi ) ;
resultobj = SWIG_From_unsigned_SS_long ( static_cast < unsigned long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_multicast_group_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_multicast_group_t * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_multicast_group_t " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_multicast_group_t * ) new zts_multicast_group_t ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_multicast_group_t , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_multicast_group_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_multicast_group_t * arg1 = ( zts_multicast_group_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_multicast_group_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_multicast_group_t " " ', argument " " 1 " " of type ' " " zts_multicast_group_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_multicast_group_t * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_multicast_group_t_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_multicast_group_t , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_multicast_group_t_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_net_id_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
uint64_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_info_t_net_id_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_net_id_set " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_net_info_t_net_id_set " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > net_id = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_net_id_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint64_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_net_id_get " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
result = ( uint64_t ) ( ( arg1 ) - > net_id ) ;
resultobj = SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_mac_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
uint64_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_info_t_mac_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_mac_set " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_net_info_t_mac_set " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > mac = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_mac_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint64_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_mac_get " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
result = ( uint64_t ) ( ( arg1 ) - > mac ) ;
resultobj = SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_name_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
char * arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
char temp2 [ 127 + 1 ] ;
int res2 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_info_t_name_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_name_set " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
res2 = SWIG_AsCharArray ( swig_obj [ 1 ] , temp2 , 127 + 1 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_net_info_t_name_set " " ', argument " " 2 " " of type ' " " char [127+1] " " ' " ) ;
}
arg2 = reinterpret_cast < char * > ( temp2 ) ;
if ( arg2 ) memcpy ( arg1 - > name , arg2 , 127 + 1 * sizeof ( char ) ) ;
else memset ( arg1 - > name , 0 , 127 + 1 * sizeof ( char ) ) ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_name_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
char * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_name_get " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
result = ( char * ) ( char * ) ( ( arg1 ) - > name ) ;
{
size_t size = SWIG_strnlen ( result , 127 + 1 ) ;
resultobj = SWIG_FromCharPtrAndSize ( result , size ) ;
}
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_status_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
zts_network_status_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_info_t_status_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_status_set " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_net_info_t_status_set " " ', argument " " 2 " " of type ' " " zts_network_status_t " " ' " ) ;
}
arg2 = static_cast < zts_network_status_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > status = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_status_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_network_status_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_status_get " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
result = ( zts_network_status_t ) ( ( arg1 ) - > status ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_type_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
zts_net_info_type_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_info_t_type_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_type_set " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_net_info_t_type_set " " ', argument " " 2 " " of type ' " " zts_net_info_type_t " " ' " ) ;
}
arg2 = static_cast < zts_net_info_type_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > type = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_type_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_net_info_type_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_type_get " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
result = ( zts_net_info_type_t ) ( ( arg1 ) - > type ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_mtu_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
unsigned int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_info_t_mtu_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_mtu_set " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_net_info_t_mtu_set " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > mtu = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_mtu_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
unsigned int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_mtu_get " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
result = ( unsigned int ) ( ( arg1 ) - > mtu ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_dhcp_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_info_t_dhcp_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_dhcp_set " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_net_info_t_dhcp_set " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > dhcp = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_dhcp_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_dhcp_get " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
result = ( int ) ( ( arg1 ) - > dhcp ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_bridge_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_info_t_bridge_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_bridge_set " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_net_info_t_bridge_set " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > bridge = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_bridge_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_bridge_get " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
result = ( int ) ( ( arg1 ) - > bridge ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_broadcast_enabled_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_info_t_broadcast_enabled_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_broadcast_enabled_set " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_net_info_t_broadcast_enabled_set " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > broadcast_enabled = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_broadcast_enabled_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_broadcast_enabled_get " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
result = ( int ) ( ( arg1 ) - > broadcast_enabled ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_port_error_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_info_t_port_error_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_port_error_set " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_net_info_t_port_error_set " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > port_error = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_port_error_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_port_error_get " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
result = ( int ) ( ( arg1 ) - > port_error ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_netconf_rev_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
unsigned long arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_info_t_netconf_rev_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_netconf_rev_set " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_net_info_t_netconf_rev_set " " ', argument " " 2 " " of type ' " " unsigned long " " ' " ) ;
}
arg2 = static_cast < unsigned long > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > netconf_rev = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_netconf_rev_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
unsigned long result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_netconf_rev_get " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
result = ( unsigned long ) ( ( arg1 ) - > netconf_rev ) ;
resultobj = SWIG_From_unsigned_SS_long ( static_cast < unsigned long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_assigned_addr_count_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
unsigned int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_info_t_assigned_addr_count_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_assigned_addr_count_set " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_net_info_t_assigned_addr_count_set " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > assigned_addr_count = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_assigned_addr_count_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
unsigned int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_assigned_addr_count_get " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
result = ( unsigned int ) ( ( arg1 ) - > assigned_addr_count ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_assigned_addrs_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
zts_sockaddr_storage * arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_info_t_assigned_addrs_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_assigned_addrs_set " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_sockaddr_storage , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_net_info_t_assigned_addrs_set " " ', argument " " 2 " " of type ' " " zts_sockaddr_storage [16] " " ' " ) ;
}
arg2 = reinterpret_cast < zts_sockaddr_storage * > ( argp2 ) ;
{
if ( arg2 ) {
size_t ii = 0 ;
for ( ; ii < ( size_t ) 16 ; + + ii ) * ( zts_sockaddr_storage * ) & arg1 - > assigned_addrs [ ii ] = * ( ( zts_sockaddr_storage * ) arg2 + ii ) ;
} else {
SWIG_exception_fail ( SWIG_ValueError , " invalid null reference " " in variable ' " " assigned_addrs " " ' of type ' " " zts_sockaddr_storage [16] " " ' " ) ;
}
}
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_assigned_addrs_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_sockaddr_storage * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_assigned_addrs_get " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
result = ( zts_sockaddr_storage * ) ( zts_sockaddr_storage * ) ( ( arg1 ) - > assigned_addrs ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_sockaddr_storage , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_route_count_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
unsigned int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_info_t_route_count_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_route_count_set " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_net_info_t_route_count_set " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > route_count = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_route_count_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
unsigned int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_route_count_get " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
result = ( unsigned int ) ( ( arg1 ) - > route_count ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_routes_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
zts_route_info_t * arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_info_t_routes_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_routes_set " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_route_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_net_info_t_routes_set " " ', argument " " 2 " " of type ' " " zts_route_info_t [32] " " ' " ) ;
}
arg2 = reinterpret_cast < zts_route_info_t * > ( argp2 ) ;
{
if ( arg2 ) {
size_t ii = 0 ;
for ( ; ii < ( size_t ) 32 ; + + ii ) * ( zts_route_info_t * ) & arg1 - > routes [ ii ] = * ( ( zts_route_info_t * ) arg2 + ii ) ;
} else {
SWIG_exception_fail ( SWIG_ValueError , " invalid null reference " " in variable ' " " routes " " ' of type ' " " zts_route_info_t [32] " " ' " ) ;
}
}
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_routes_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_route_info_t * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_routes_get " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
result = ( zts_route_info_t * ) ( zts_route_info_t * ) ( ( arg1 ) - > routes ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_route_info_t , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_multicast_sub_count_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
unsigned int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_info_t_multicast_sub_count_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_multicast_sub_count_set " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_net_info_t_multicast_sub_count_set " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > multicast_sub_count = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_info_t_multicast_sub_count_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
unsigned int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_net_info_t_multicast_sub_count_get " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
result = ( unsigned int ) ( ( arg1 ) - > multicast_sub_count ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_net_info_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_net_info_t " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_net_info_t * ) new zts_net_info_t ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_net_info_t , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_net_info_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_net_info_t * arg1 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_net_info_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_net_info_t " " ', argument " " 1 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_net_info_t * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_net_info_t_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_net_info_t , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_net_info_t_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_address_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
zts_sockaddr_storage * arg2 = ( zts_sockaddr_storage * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_path_t_address_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_address_set " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_sockaddr_storage , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_path_t_address_set " " ', argument " " 2 " " of type ' " " zts_sockaddr_storage * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_sockaddr_storage * > ( argp2 ) ;
if ( arg1 ) ( arg1 ) - > address = * arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_address_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_sockaddr_storage * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_address_get " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
result = ( zts_sockaddr_storage * ) & ( ( arg1 ) - > address ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_sockaddr_storage , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_last_tx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
uint64_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_path_t_last_tx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_last_tx_set " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_path_t_last_tx_set " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > last_tx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_last_tx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint64_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_last_tx_get " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
result = ( uint64_t ) ( ( arg1 ) - > last_tx ) ;
resultobj = SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_last_rx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
uint64_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_path_t_last_rx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_last_rx_set " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_path_t_last_rx_set " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > last_rx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_last_rx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint64_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_last_rx_get " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
result = ( uint64_t ) ( ( arg1 ) - > last_rx ) ;
resultobj = SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_trusted_path_id_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
uint64_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_path_t_trusted_path_id_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_trusted_path_id_set " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_path_t_trusted_path_id_set " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > trusted_path_id = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_trusted_path_id_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint64_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_trusted_path_id_get " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
result = ( uint64_t ) ( ( arg1 ) - > trusted_path_id ) ;
resultobj = SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_latency_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
float arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
float val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_path_t_latency_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_latency_set " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_float ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_path_t_latency_set " " ', argument " " 2 " " of type ' " " float " " ' " ) ;
}
arg2 = static_cast < float > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > latency = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_latency_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
float result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_latency_get " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
result = ( float ) ( ( arg1 ) - > latency ) ;
resultobj = SWIG_From_float ( static_cast < float > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_unused_0_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
float arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
float val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_path_t_unused_0_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_unused_0_set " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_float ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_path_t_unused_0_set " " ', argument " " 2 " " of type ' " " float " " ' " ) ;
}
arg2 = static_cast < float > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > unused_0 = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_unused_0_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
float result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_unused_0_get " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
result = ( float ) ( ( arg1 ) - > unused_0 ) ;
resultobj = SWIG_From_float ( static_cast < float > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_unused_1_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
float arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
float val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_path_t_unused_1_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_unused_1_set " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_float ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_path_t_unused_1_set " " ', argument " " 2 " " of type ' " " float " " ' " ) ;
}
arg2 = static_cast < float > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > unused_1 = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_unused_1_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
float result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_unused_1_get " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
result = ( float ) ( ( arg1 ) - > unused_1 ) ;
resultobj = SWIG_From_float ( static_cast < float > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_unused_2_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
float arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
float val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_path_t_unused_2_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_unused_2_set " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_float ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_path_t_unused_2_set " " ', argument " " 2 " " of type ' " " float " " ' " ) ;
}
arg2 = static_cast < float > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > unused_2 = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_unused_2_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
float result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_unused_2_get " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
result = ( float ) ( ( arg1 ) - > unused_2 ) ;
resultobj = SWIG_From_float ( static_cast < float > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_unused_3_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
float arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
float val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_path_t_unused_3_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_unused_3_set " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_float ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_path_t_unused_3_set " " ', argument " " 2 " " of type ' " " float " " ' " ) ;
}
arg2 = static_cast < float > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > unused_3 = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_unused_3_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
float result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_unused_3_get " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
result = ( float ) ( ( arg1 ) - > unused_3 ) ;
resultobj = SWIG_From_float ( static_cast < float > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_unused_4_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
float arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
float val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_path_t_unused_4_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_unused_4_set " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_float ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_path_t_unused_4_set " " ', argument " " 2 " " of type ' " " float " " ' " ) ;
}
arg2 = static_cast < float > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > unused_4 = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_unused_4_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
float result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_unused_4_get " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
result = ( float ) ( ( arg1 ) - > unused_4 ) ;
resultobj = SWIG_From_float ( static_cast < float > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_unused_5_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
uint64_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_path_t_unused_5_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_unused_5_set " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_path_t_unused_5_set " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > unused_5 = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_unused_5_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint64_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_unused_5_get " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
result = ( uint64_t ) ( ( arg1 ) - > unused_5 ) ;
resultobj = SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_unused_6_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
uint64_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_path_t_unused_6_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_unused_6_set " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_path_t_unused_6_set " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > unused_6 = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_unused_6_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint64_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_unused_6_get " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
result = ( uint64_t ) ( ( arg1 ) - > unused_6 ) ;
resultobj = SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_unused_7_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
float arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
float val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_path_t_unused_7_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_unused_7_set " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_float ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_path_t_unused_7_set " " ', argument " " 2 " " of type ' " " float " " ' " ) ;
}
arg2 = static_cast < float > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > unused_7 = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_unused_7_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
float result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_unused_7_get " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
result = ( float ) ( ( arg1 ) - > unused_7 ) ;
resultobj = SWIG_From_float ( static_cast < float > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_ifname_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
char * arg2 = ( char * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char * buf2 = 0 ;
int alloc2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_path_t_ifname_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_ifname_set " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
res2 = SWIG_AsCharPtrAndSize ( swig_obj [ 1 ] , & buf2 , NULL , & alloc2 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_path_t_ifname_set " " ', argument " " 2 " " of type ' " " char * " " ' " ) ;
}
arg2 = reinterpret_cast < char * > ( buf2 ) ;
if ( arg1 - > ifname ) delete [ ] arg1 - > ifname ;
if ( arg2 ) {
size_t size = strlen ( reinterpret_cast < const char * > ( arg2 ) ) + 1 ;
arg1 - > ifname = ( char * ) reinterpret_cast < char * > ( memcpy ( new char [ size ] , reinterpret_cast < const char * > ( arg2 ) , sizeof ( char ) * ( size ) ) ) ;
} else {
arg1 - > ifname = 0 ;
}
resultobj = SWIG_Py_Void ( ) ;
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return resultobj ;
fail :
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_ifname_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
char * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_ifname_get " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
result = ( char * ) ( ( arg1 ) - > ifname ) ;
resultobj = SWIG_FromCharPtr ( ( const char * ) result ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_expired_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_path_t_expired_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_expired_set " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_path_t_expired_set " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > expired = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_expired_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_expired_get " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
result = ( int ) ( ( arg1 ) - > expired ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_preferred_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_path_t_preferred_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_preferred_set " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_path_t_preferred_set " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > preferred = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_path_t_preferred_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_path_t_preferred_get " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
result = ( int ) ( ( arg1 ) - > preferred ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_path_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_path_t " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_path_t * ) new zts_path_t ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_path_t , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_path_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_path_t * arg1 = ( zts_path_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_path_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_path_t " " ', argument " " 1 " " of type ' " " zts_path_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_path_t * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_path_t_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_path_t , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_path_t_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_peer_id_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
uint64_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_peer_info_t_peer_id_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_peer_id_set " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_peer_info_t_peer_id_set " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > peer_id = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_peer_id_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint64_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_peer_id_get " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
result = ( uint64_t ) ( ( arg1 ) - > peer_id ) ;
resultobj = SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_ver_major_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_peer_info_t_ver_major_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_ver_major_set " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_peer_info_t_ver_major_set " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > ver_major = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_ver_major_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_ver_major_get " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
result = ( int ) ( ( arg1 ) - > ver_major ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_ver_minor_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_peer_info_t_ver_minor_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_ver_minor_set " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_peer_info_t_ver_minor_set " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > ver_minor = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_ver_minor_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_ver_minor_get " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
result = ( int ) ( ( arg1 ) - > ver_minor ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_ver_rev_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_peer_info_t_ver_rev_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_ver_rev_set " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_peer_info_t_ver_rev_set " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > ver_rev = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_ver_rev_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_ver_rev_get " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
result = ( int ) ( ( arg1 ) - > ver_rev ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_latency_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_peer_info_t_latency_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_latency_set " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_peer_info_t_latency_set " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > latency = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_latency_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_latency_get " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
result = ( int ) ( ( arg1 ) - > latency ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_role_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
zts_peer_role_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_peer_info_t_role_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_role_set " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_peer_info_t_role_set " " ', argument " " 2 " " of type ' " " zts_peer_role_t " " ' " ) ;
}
arg2 = static_cast < zts_peer_role_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > role = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_role_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_peer_role_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_role_get " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
result = ( zts_peer_role_t ) ( ( arg1 ) - > role ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_path_count_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
unsigned int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_peer_info_t_path_count_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_path_count_set " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_peer_info_t_path_count_set " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > path_count = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_path_count_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
unsigned int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_path_count_get " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
result = ( unsigned int ) ( ( arg1 ) - > path_count ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_unused_0_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_peer_info_t_unused_0_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_unused_0_set " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_peer_info_t_unused_0_set " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > unused_0 = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_unused_0_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_unused_0_get " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
result = ( int ) ( ( arg1 ) - > unused_0 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_paths_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
zts_path_t * arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_peer_info_t_paths_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_paths_set " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_peer_info_t_paths_set " " ', argument " " 2 " " of type ' " " zts_path_t [16] " " ' " ) ;
}
arg2 = reinterpret_cast < zts_path_t * > ( argp2 ) ;
{
if ( arg2 ) {
size_t ii = 0 ;
for ( ; ii < ( size_t ) 16 ; + + ii ) * ( zts_path_t * ) & arg1 - > paths [ ii ] = * ( ( zts_path_t * ) arg2 + ii ) ;
} else {
SWIG_exception_fail ( SWIG_ValueError , " invalid null reference " " in variable ' " " paths " " ' of type ' " " zts_path_t [16] " " ' " ) ;
}
}
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_peer_info_t_paths_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_path_t * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_peer_info_t_paths_get " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
result = ( zts_path_t * ) ( zts_path_t * ) ( ( arg1 ) - > paths ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_path_t , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_peer_info_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_peer_info_t " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_peer_info_t * ) new zts_peer_info_t ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_peer_info_t , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_peer_info_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_peer_info_t * arg1 = ( zts_peer_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_peer_info_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_peer_info_t " " ', argument " " 1 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_peer_info_t * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_peer_info_t_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_peer_info_t , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_peer_info_t_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_root_set_t_public_id_str_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_root_set_t * arg1 = ( zts_root_set_t * ) 0 ;
char * * arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_root_set_t_public_id_str_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_root_set_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_root_set_t_public_id_str_set " " ', argument " " 1 " " of type ' " " zts_root_set_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_root_set_t * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_p_char , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_root_set_t_public_id_str_set " " ', argument " " 2 " " of type ' " " char *[16] " " ' " ) ;
}
arg2 = reinterpret_cast < char * * > ( argp2 ) ;
{
if ( arg2 ) {
size_t ii = 0 ;
for ( ; ii < ( size_t ) 16 ; + + ii ) * ( char * * ) & arg1 - > public_id_str [ ii ] = * ( ( char * * ) arg2 + ii ) ;
} else {
SWIG_exception_fail ( SWIG_ValueError , " invalid null reference " " in variable ' " " public_id_str " " ' of type ' " " char *[16] " " ' " ) ;
}
}
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_root_set_t_public_id_str_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_root_set_t * arg1 = ( zts_root_set_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
char * * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_root_set_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_root_set_t_public_id_str_get " " ', argument " " 1 " " of type ' " " zts_root_set_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_root_set_t * > ( argp1 ) ;
result = ( char * * ) ( char * * ) ( ( arg1 ) - > public_id_str ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_p_char , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_root_set_t_endpoint_ip_str_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_root_set_t * arg1 = ( zts_root_set_t * ) 0 ;
char * ( * arg2 ) [ 32 ] ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_root_set_t_endpoint_ip_str_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_root_set_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_root_set_t_endpoint_ip_str_set " " ', argument " " 1 " " of type ' " " zts_root_set_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_root_set_t * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_a_32__p_char , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_root_set_t_endpoint_ip_str_set " " ', argument " " 2 " " of type ' " " char *[16][32] " " ' " ) ;
}
arg2 = reinterpret_cast < char * ( * ) [ 32 ] > ( argp2 ) ;
{
if ( arg2 ) {
size_t ii = 0 ;
for ( ; ii < ( size_t ) 16 ; + + ii ) {
if ( arg2 [ ii ] ) {
size_t jj = 0 ;
for ( ; jj < ( size_t ) 32 ; + + jj ) arg1 - > endpoint_ip_str [ ii ] [ jj ] = arg2 [ ii ] [ jj ] ;
} else {
SWIG_exception_fail ( SWIG_ValueError , " invalid null reference " " in variable ' " " endpoint_ip_str " " ' of type ' " " char *[16][32] " " ' " ) ;
}
}
} else {
SWIG_exception_fail ( SWIG_ValueError , " invalid null reference " " in variable ' " " endpoint_ip_str " " ' of type ' " " char *[16][32] " " ' " ) ;
}
}
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_root_set_t_endpoint_ip_str_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_root_set_t * arg1 = ( zts_root_set_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
char * ( * result ) [ 32 ] = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_root_set_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_root_set_t_endpoint_ip_str_get " " ', argument " " 1 " " of type ' " " zts_root_set_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_root_set_t * > ( argp1 ) ;
result = ( char * ( * ) [ 32 ] ) ( char * ( * ) [ 32 ] ) ( ( arg1 ) - > endpoint_ip_str ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_a_32__p_char , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_root_set_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_root_set_t * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_root_set_t " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_root_set_t * ) new zts_root_set_t ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_root_set_t , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_root_set_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_root_set_t * arg1 = ( zts_root_set_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_root_set_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_root_set_t " " ', argument " " 1 " " of type ' " " zts_root_set_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_root_set_t * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_root_set_t_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_root_set_t , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_root_set_t_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_netif_info_t_net_id_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_netif_info_t * arg1 = ( zts_netif_info_t * ) 0 ;
uint64_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_netif_info_t_net_id_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_netif_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_netif_info_t_net_id_set " " ', argument " " 1 " " of type ' " " zts_netif_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_netif_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_netif_info_t_net_id_set " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > net_id = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_netif_info_t_net_id_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_netif_info_t * arg1 = ( zts_netif_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint64_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_netif_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_netif_info_t_net_id_get " " ', argument " " 1 " " of type ' " " zts_netif_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_netif_info_t * > ( argp1 ) ;
result = ( uint64_t ) ( ( arg1 ) - > net_id ) ;
resultobj = SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_netif_info_t_mac_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_netif_info_t * arg1 = ( zts_netif_info_t * ) 0 ;
uint64_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_netif_info_t_mac_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_netif_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_netif_info_t_mac_set " " ', argument " " 1 " " of type ' " " zts_netif_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_netif_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_netif_info_t_mac_set " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > mac = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_netif_info_t_mac_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_netif_info_t * arg1 = ( zts_netif_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint64_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_netif_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_netif_info_t_mac_get " " ', argument " " 1 " " of type ' " " zts_netif_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_netif_info_t * > ( argp1 ) ;
result = ( uint64_t ) ( ( arg1 ) - > mac ) ;
resultobj = SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_netif_info_t_mtu_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_netif_info_t * arg1 = ( zts_netif_info_t * ) 0 ;
int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_netif_info_t_mtu_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_netif_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_netif_info_t_mtu_set " " ', argument " " 1 " " of type ' " " zts_netif_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_netif_info_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_netif_info_t_mtu_set " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > mtu = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_netif_info_t_mtu_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_netif_info_t * arg1 = ( zts_netif_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_netif_info_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_netif_info_t_mtu_get " " ', argument " " 1 " " of type ' " " zts_netif_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_netif_info_t * > ( argp1 ) ;
result = ( int ) ( ( arg1 ) - > mtu ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_netif_info_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_netif_info_t * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_netif_info_t " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_netif_info_t * ) new zts_netif_info_t ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_netif_info_t , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_netif_info_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_netif_info_t * arg1 = ( zts_netif_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_netif_info_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_netif_info_t " " ', argument " " 1 " " of type ' " " zts_netif_info_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_netif_info_t * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_netif_info_t_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_netif_info_t , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_netif_info_t_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_event_code_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
int16_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
short val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_event_msg_t_event_code_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_event_code_set " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_short ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_event_msg_t_event_code_set " " ', argument " " 2 " " of type ' " " int16_t " " ' " ) ;
}
arg2 = static_cast < int16_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > event_code = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_event_code_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int16_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_event_code_get " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
result = ( int16_t ) ( ( arg1 ) - > event_code ) ;
resultobj = SWIG_From_short ( static_cast < short > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_node_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
zts_node_info_t * arg2 = ( zts_node_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_event_msg_t_node_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_node_set " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_node_info_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_event_msg_t_node_set " " ', argument " " 2 " " of type ' " " zts_node_info_t * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_node_info_t * > ( argp2 ) ;
if ( arg1 ) ( arg1 ) - > node = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_node_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_node_info_t * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_node_get " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
result = ( zts_node_info_t * ) ( ( arg1 ) - > node ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_node_info_t , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_network_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
zts_net_info_t * arg2 = ( zts_net_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_event_msg_t_network_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_network_set " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_net_info_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_event_msg_t_network_set " " ', argument " " 2 " " of type ' " " zts_net_info_t * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_net_info_t * > ( argp2 ) ;
if ( arg1 ) ( arg1 ) - > network = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_network_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_net_info_t * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_network_get " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
result = ( zts_net_info_t * ) ( ( arg1 ) - > network ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_net_info_t , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_netif_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
zts_netif_info_t * arg2 = ( zts_netif_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_event_msg_t_netif_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_netif_set " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_netif_info_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_event_msg_t_netif_set " " ', argument " " 2 " " of type ' " " zts_netif_info_t * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_netif_info_t * > ( argp2 ) ;
if ( arg1 ) ( arg1 ) - > netif = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_netif_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_netif_info_t * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_netif_get " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
result = ( zts_netif_info_t * ) ( ( arg1 ) - > netif ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_netif_info_t , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_route_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
zts_route_info_t * arg2 = ( zts_route_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_event_msg_t_route_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_route_set " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_route_info_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_event_msg_t_route_set " " ', argument " " 2 " " of type ' " " zts_route_info_t * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_route_info_t * > ( argp2 ) ;
if ( arg1 ) ( arg1 ) - > route = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_route_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_route_info_t * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_route_get " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
result = ( zts_route_info_t * ) ( ( arg1 ) - > route ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_route_info_t , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_peer_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
zts_peer_info_t * arg2 = ( zts_peer_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_event_msg_t_peer_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_peer_set " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_peer_info_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_event_msg_t_peer_set " " ', argument " " 2 " " of type ' " " zts_peer_info_t * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_peer_info_t * > ( argp2 ) ;
if ( arg1 ) ( arg1 ) - > peer = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_peer_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_peer_info_t * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_peer_get " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
result = ( zts_peer_info_t * ) ( ( arg1 ) - > peer ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_peer_info_t , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_addr_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
zts_addr_info_t * arg2 = ( zts_addr_info_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_event_msg_t_addr_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_addr_set " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_addr_info_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_event_msg_t_addr_set " " ', argument " " 2 " " of type ' " " zts_addr_info_t * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_addr_info_t * > ( argp2 ) ;
if ( arg1 ) ( arg1 ) - > addr = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_addr_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_addr_info_t * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_addr_get " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
result = ( zts_addr_info_t * ) ( ( arg1 ) - > addr ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_addr_info_t , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_cache_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
void * arg2 = ( void * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
int res2 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_event_msg_t_cache_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_cache_set " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , SWIG_as_voidptrptr ( & arg2 ) , 0 , SWIG_POINTER_DISOWN ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_event_msg_t_cache_set " " ', argument " " 2 " " of type ' " " void * " " ' " ) ;
}
if ( arg1 ) ( arg1 ) - > cache = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_cache_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
void * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_cache_get " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
result = ( void * ) ( ( arg1 ) - > cache ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_void , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_len_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_event_msg_t_len_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_len_set " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_event_msg_t_len_set " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > len = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_event_msg_t_len_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_event_msg_t_len_get " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
result = ( int ) ( ( arg1 ) - > len ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_event_msg_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_event_msg_t " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_event_msg_t * ) new zts_event_msg_t ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_event_msg_t , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_event_msg_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_event_msg_t * arg1 = ( zts_event_msg_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_event_msg_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_event_msg_t " " ', argument " " 1 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_event_msg_t * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_event_msg_t_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_event_msg_t , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_event_msg_t_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_id_new ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
char * arg1 = ( char * ) 0 ;
unsigned int * arg2 = ( unsigned int * ) 0 ;
int res1 ;
char * buf1 = 0 ;
int alloc1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_id_new " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_AsCharPtrAndSize ( swig_obj [ 0 ] , & buf1 , NULL , & alloc1 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_id_new " " ', argument " " 1 " " of type ' " " char * " " ' " ) ;
}
arg1 = reinterpret_cast < char * > ( buf1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_unsigned_int , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_id_new " " ', argument " " 2 " " of type ' " " unsigned int * " " ' " ) ;
}
arg2 = reinterpret_cast < unsigned int * > ( argp2 ) ;
result = ( int ) zts_id_new ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return resultobj ;
fail :
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_id_pair_is_valid ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
char * arg1 = ( char * ) 0 ;
unsigned int arg2 ;
int res1 ;
char * buf1 = 0 ;
int alloc1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_id_pair_is_valid " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_AsCharPtrAndSize ( swig_obj [ 0 ] , & buf1 , NULL , & alloc1 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_id_pair_is_valid " " ', argument " " 1 " " of type ' " " char const * " " ' " ) ;
}
arg1 = reinterpret_cast < char * > ( buf1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_id_pair_is_valid " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
result = ( int ) zts_id_pair_is_valid ( ( char const * ) arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return resultobj ;
fail :
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_init_from_storage ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
char * arg1 = ( char * ) 0 ;
int res1 ;
char * buf1 = 0 ;
int alloc1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_AsCharPtrAndSize ( swig_obj [ 0 ] , & buf1 , NULL , & alloc1 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_init_from_storage " " ', argument " " 1 " " of type ' " " char const * " " ' " ) ;
}
arg1 = reinterpret_cast < char * > ( buf1 ) ;
result = ( int ) zts_init_from_storage ( ( char const * ) arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return resultobj ;
fail :
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_init_from_memory ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
char * arg1 = ( char * ) 0 ;
unsigned int arg2 ;
int res1 ;
char * buf1 = 0 ;
int alloc1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_init_from_memory " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_AsCharPtrAndSize ( swig_obj [ 0 ] , & buf1 , NULL , & alloc1 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_init_from_memory " " ', argument " " 1 " " of type ' " " char const * " " ' " ) ;
}
arg1 = reinterpret_cast < char * > ( buf1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_init_from_memory " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
result = ( int ) zts_init_from_memory ( ( char const * ) arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return resultobj ;
fail :
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_PythonDirectorCallbackClass_on_zerotier_event ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
PythonDirectorCallbackClass * arg1 = ( PythonDirectorCallbackClass * ) 0 ;
zts_event_msg_t * arg2 = ( zts_event_msg_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
Swig : : Director * director = 0 ;
bool upcall = false ;
if ( ! SWIG_Python_UnpackTuple ( args , " PythonDirectorCallbackClass_on_zerotier_event " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_PythonDirectorCallbackClass , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " PythonDirectorCallbackClass_on_zerotier_event " " ', argument " " 1 " " of type ' " " PythonDirectorCallbackClass * " " ' " ) ;
}
arg1 = reinterpret_cast < PythonDirectorCallbackClass * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_event_msg_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " PythonDirectorCallbackClass_on_zerotier_event " " ', argument " " 2 " " of type ' " " zts_event_msg_t * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_event_msg_t * > ( argp2 ) ;
director = SWIG_DIRECTOR_CAST ( arg1 ) ;
upcall = ( director & & ( director - > swig_get_self ( ) = = swig_obj [ 0 ] ) ) ;
try {
if ( upcall ) {
( arg1 ) - > PythonDirectorCallbackClass : : on_zerotier_event ( arg2 ) ;
} else {
( arg1 ) - > on_zerotier_event ( arg2 ) ;
}
} catch ( Swig : : DirectorException & ) {
SWIG_fail ;
}
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_PythonDirectorCallbackClass ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
PythonDirectorCallbackClass * arg1 = ( PythonDirectorCallbackClass * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_PythonDirectorCallbackClass , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_PythonDirectorCallbackClass " " ', argument " " 1 " " of type ' " " PythonDirectorCallbackClass * " " ' " ) ;
}
arg1 = reinterpret_cast < PythonDirectorCallbackClass * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_PythonDirectorCallbackClass ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
PyObject * arg1 = ( PyObject * ) 0 ;
PyObject * swig_obj [ 1 ] ;
PythonDirectorCallbackClass * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
arg1 = swig_obj [ 0 ] ;
if ( arg1 ! = Py_None ) {
/* subclassed */
result = ( PythonDirectorCallbackClass * ) new SwigDirector_PythonDirectorCallbackClass ( arg1 ) ;
} else {
result = ( PythonDirectorCallbackClass * ) new PythonDirectorCallbackClass ( ) ;
}
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_PythonDirectorCallbackClass , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_disown_PythonDirectorCallbackClass ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
PythonDirectorCallbackClass * arg1 = ( PythonDirectorCallbackClass * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_PythonDirectorCallbackClass , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " disown_PythonDirectorCallbackClass " " ', argument " " 1 " " of type ' " " PythonDirectorCallbackClass * " " ' " ) ;
}
arg1 = reinterpret_cast < PythonDirectorCallbackClass * > ( argp1 ) ;
{
Swig : : Director * director = SWIG_DIRECTOR_CAST ( arg1 ) ;
if ( director ) director - > swig_disown ( ) ;
}
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * PythonDirectorCallbackClass_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_PythonDirectorCallbackClass , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * PythonDirectorCallbackClass_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN int Swig_var__userEventCallback_set ( PyObject * _val ) {
{
void * argp = 0 ;
int res = SWIG_ConvertPtr ( _val , & argp , SWIGTYPE_p_PythonDirectorCallbackClass , 0 ) ;
if ( ! SWIG_IsOK ( res ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res ) , " in variable ' " " _userEventCallback " " ' of type ' " " PythonDirectorCallbackClass * " " ' " ) ;
}
_userEventCallback = reinterpret_cast < PythonDirectorCallbackClass * > ( argp ) ;
}
return 0 ;
fail :
return 1 ;
}
SWIGINTERN PyObject * Swig_var__userEventCallback_get ( void ) {
PyObject * pyobj = 0 ;
pyobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( _userEventCallback ) , SWIGTYPE_p_PythonDirectorCallbackClass , 0 ) ;
return pyobj ;
}
SWIGINTERN PyObject * _wrap_zts_init_set_event_handler ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
PythonDirectorCallbackClass * arg1 = ( PythonDirectorCallbackClass * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_PythonDirectorCallbackClass , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_init_set_event_handler " " ', argument " " 1 " " of type ' " " PythonDirectorCallbackClass * " " ' " ) ;
}
arg1 = reinterpret_cast < PythonDirectorCallbackClass * > ( argp1 ) ;
result = ( int ) zts_init_set_event_handler ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_init_blacklist_if ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
char * arg1 = ( char * ) 0 ;
unsigned int arg2 ;
int res1 ;
char * buf1 = 0 ;
int alloc1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_init_blacklist_if " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_AsCharPtrAndSize ( swig_obj [ 0 ] , & buf1 , NULL , & alloc1 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_init_blacklist_if " " ', argument " " 1 " " of type ' " " char const * " " ' " ) ;
}
arg1 = reinterpret_cast < char * > ( buf1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_init_blacklist_if " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
result = ( int ) zts_init_blacklist_if ( ( char const * ) arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return resultobj ;
fail :
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_init_set_roots ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
void * arg1 = ( void * ) 0 ;
unsigned int arg2 ;
int res1 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_init_set_roots " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , SWIG_as_voidptrptr ( & arg1 ) , 0 , 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_init_set_roots " " ', argument " " 1 " " of type ' " " void const * " " ' " ) ;
}
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_init_set_roots " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
result = ( int ) zts_init_set_roots ( ( void const * ) arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_init_set_port ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
unsigned short arg1 ;
unsigned short val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_short ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_init_set_port " " ', argument " " 1 " " of type ' " " unsigned short " " ' " ) ;
}
arg1 = static_cast < unsigned short > ( val1 ) ;
result = ( int ) zts_init_set_port ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_init_set_random_port_range ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
unsigned short arg1 ;
unsigned short arg2 ;
unsigned short val1 ;
int ecode1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_init_set_random_port_range " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_short ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_init_set_random_port_range " " ', argument " " 1 " " of type ' " " unsigned short " " ' " ) ;
}
arg1 = static_cast < unsigned short > ( val1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_short ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_init_set_random_port_range " " ', argument " " 2 " " of type ' " " unsigned short " " ' " ) ;
}
arg2 = static_cast < unsigned short > ( val2 ) ;
result = ( int ) zts_init_set_random_port_range ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_init_allow_secondary_port ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
unsigned int arg1 ;
unsigned int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_init_allow_secondary_port " " ', argument " " 1 " " of type ' " " unsigned int " " ' " ) ;
}
arg1 = static_cast < unsigned int > ( val1 ) ;
result = ( int ) zts_init_allow_secondary_port ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_init_allow_port_mapping ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
unsigned int arg1 ;
unsigned int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_init_allow_port_mapping " " ', argument " " 1 " " of type ' " " unsigned int " " ' " ) ;
}
arg1 = static_cast < unsigned int > ( val1 ) ;
result = ( int ) zts_init_allow_port_mapping ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_init_allow_net_cache ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
unsigned int arg1 ;
unsigned int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_init_allow_net_cache " " ', argument " " 1 " " of type ' " " unsigned int " " ' " ) ;
}
arg1 = static_cast < unsigned int > ( val1 ) ;
result = ( int ) zts_init_allow_net_cache ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_init_allow_peer_cache ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
unsigned int arg1 ;
unsigned int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_init_allow_peer_cache " " ', argument " " 1 " " of type ' " " unsigned int " " ' " ) ;
}
arg1 = static_cast < unsigned int > ( val1 ) ;
result = ( int ) zts_init_allow_peer_cache ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_init_allow_roots_cache ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
unsigned int arg1 ;
unsigned int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_init_allow_roots_cache " " ', argument " " 1 " " of type ' " " unsigned int " " ' " ) ;
}
arg1 = static_cast < unsigned int > ( val1 ) ;
result = ( int ) zts_init_allow_roots_cache ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_init_allow_id_cache ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
unsigned int arg1 ;
unsigned int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_init_allow_id_cache " " ', argument " " 1 " " of type ' " " unsigned int " " ' " ) ;
}
arg1 = static_cast < unsigned int > ( val1 ) ;
result = ( int ) zts_init_allow_id_cache ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_addr_is_assigned ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned int arg2 ;
unsigned long long val1 ;
int ecode1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_addr_is_assigned " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_addr_is_assigned " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_addr_is_assigned " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
result = ( int ) zts_addr_is_assigned ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_addr_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned int arg2 ;
zts_sockaddr_storage * arg3 = ( zts_sockaddr_storage * ) 0 ;
unsigned long long val1 ;
int ecode1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
void * argp3 = 0 ;
int res3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_addr_get " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_addr_get " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_addr_get " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
res3 = SWIG_ConvertPtr ( swig_obj [ 2 ] , & argp3 , SWIGTYPE_p_zts_sockaddr_storage , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_addr_get " " ', argument " " 3 " " of type ' " " zts_sockaddr_storage * " " ' " ) ;
}
arg3 = reinterpret_cast < zts_sockaddr_storage * > ( argp3 ) ;
result = ( int ) zts_addr_get ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_addr_get_str ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned int arg2 ;
char * arg3 = ( char * ) 0 ;
unsigned int arg4 ;
unsigned long long val1 ;
int ecode1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
int res3 ;
char * buf3 = 0 ;
int alloc3 = 0 ;
unsigned int val4 ;
int ecode4 = 0 ;
PyObject * swig_obj [ 4 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_addr_get_str " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_addr_get_str " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_addr_get_str " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
res3 = SWIG_AsCharPtrAndSize ( swig_obj [ 2 ] , & buf3 , NULL , & alloc3 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_addr_get_str " " ', argument " " 3 " " of type ' " " char * " " ' " ) ;
}
arg3 = reinterpret_cast < char * > ( buf3 ) ;
ecode4 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 3 ] , & val4 ) ;
if ( ! SWIG_IsOK ( ecode4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode4 ) , " in method ' " " zts_addr_get_str " " ', argument " " 4 " " of type ' " " unsigned int " " ' " ) ;
}
arg4 = static_cast < unsigned int > ( val4 ) ;
result = ( int ) zts_addr_get_str ( arg1 , arg2 , arg3 , arg4 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
return resultobj ;
fail :
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_addr_get_all ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
zts_sockaddr_storage * arg2 = ( zts_sockaddr_storage * ) 0 ;
unsigned int * arg3 = ( unsigned int * ) 0 ;
unsigned long long val1 ;
int ecode1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
void * argp3 = 0 ;
int res3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_addr_get_all " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_addr_get_all " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_sockaddr_storage , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_addr_get_all " " ', argument " " 2 " " of type ' " " zts_sockaddr_storage * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_sockaddr_storage * > ( argp2 ) ;
res3 = SWIG_ConvertPtr ( swig_obj [ 2 ] , & argp3 , SWIGTYPE_p_unsigned_int , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_addr_get_all " " ', argument " " 3 " " of type ' " " unsigned int * " " ' " ) ;
}
arg3 = reinterpret_cast < unsigned int * > ( argp3 ) ;
result = ( int ) zts_addr_get_all ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_addr_compute_6plane ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
uint64_t arg2 ;
zts_sockaddr_storage * arg3 = ( zts_sockaddr_storage * ) 0 ;
unsigned long long val1 ;
int ecode1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
void * argp3 = 0 ;
int res3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_addr_compute_6plane " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_addr_compute_6plane " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_addr_compute_6plane " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
res3 = SWIG_ConvertPtr ( swig_obj [ 2 ] , & argp3 , SWIGTYPE_p_zts_sockaddr_storage , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_addr_compute_6plane " " ', argument " " 3 " " of type ' " " zts_sockaddr_storage * " " ' " ) ;
}
arg3 = reinterpret_cast < zts_sockaddr_storage * > ( argp3 ) ;
result = ( int ) zts_addr_compute_6plane ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_addr_compute_rfc4193 ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
uint64_t arg2 ;
zts_sockaddr_storage * arg3 = ( zts_sockaddr_storage * ) 0 ;
unsigned long long val1 ;
int ecode1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
void * argp3 = 0 ;
int res3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_addr_compute_rfc4193 " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_addr_compute_rfc4193 " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_addr_compute_rfc4193 " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
res3 = SWIG_ConvertPtr ( swig_obj [ 2 ] , & argp3 , SWIGTYPE_p_zts_sockaddr_storage , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_addr_compute_rfc4193 " " ', argument " " 3 " " of type ' " " zts_sockaddr_storage * " " ' " ) ;
}
arg3 = reinterpret_cast < zts_sockaddr_storage * > ( argp3 ) ;
result = ( int ) zts_addr_compute_rfc4193 ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_addr_compute_rfc4193_str ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
uint64_t arg2 ;
char * arg3 = ( char * ) 0 ;
unsigned int arg4 ;
unsigned long long val1 ;
int ecode1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
int res3 ;
char * buf3 = 0 ;
int alloc3 = 0 ;
unsigned int val4 ;
int ecode4 = 0 ;
PyObject * swig_obj [ 4 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_addr_compute_rfc4193_str " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_addr_compute_rfc4193_str " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_addr_compute_rfc4193_str " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
res3 = SWIG_AsCharPtrAndSize ( swig_obj [ 2 ] , & buf3 , NULL , & alloc3 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_addr_compute_rfc4193_str " " ', argument " " 3 " " of type ' " " char * " " ' " ) ;
}
arg3 = reinterpret_cast < char * > ( buf3 ) ;
ecode4 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 3 ] , & val4 ) ;
if ( ! SWIG_IsOK ( ecode4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode4 ) , " in method ' " " zts_addr_compute_rfc4193_str " " ', argument " " 4 " " of type ' " " unsigned int " " ' " ) ;
}
arg4 = static_cast < unsigned int > ( val4 ) ;
result = ( int ) zts_addr_compute_rfc4193_str ( arg1 , arg2 , arg3 , arg4 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
return resultobj ;
fail :
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_addr_compute_6plane_str ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
uint64_t arg2 ;
char * arg3 = ( char * ) 0 ;
unsigned int arg4 ;
unsigned long long val1 ;
int ecode1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
int res3 ;
char * buf3 = 0 ;
int alloc3 = 0 ;
unsigned int val4 ;
int ecode4 = 0 ;
PyObject * swig_obj [ 4 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_addr_compute_6plane_str " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_addr_compute_6plane_str " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_addr_compute_6plane_str " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
res3 = SWIG_AsCharPtrAndSize ( swig_obj [ 2 ] , & buf3 , NULL , & alloc3 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_addr_compute_6plane_str " " ', argument " " 3 " " of type ' " " char * " " ' " ) ;
}
arg3 = reinterpret_cast < char * > ( buf3 ) ;
ecode4 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 3 ] , & val4 ) ;
if ( ! SWIG_IsOK ( ecode4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode4 ) , " in method ' " " zts_addr_compute_6plane_str " " ', argument " " 4 " " of type ' " " unsigned int " " ' " ) ;
}
arg4 = static_cast < unsigned int > ( val4 ) ;
result = ( int ) zts_addr_compute_6plane_str ( arg1 , arg2 , arg3 , arg4 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
return resultobj ;
fail :
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_compute_adhoc_id ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint16_t arg1 ;
uint16_t arg2 ;
unsigned short val1 ;
int ecode1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
uint64_t result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_compute_adhoc_id " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_short ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_net_compute_adhoc_id " " ', argument " " 1 " " of type ' " " uint16_t " " ' " ) ;
}
arg1 = static_cast < uint16_t > ( val1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_short ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_net_compute_adhoc_id " " ', argument " " 2 " " of type ' " " uint16_t " " ' " ) ;
}
arg2 = static_cast < uint16_t > ( val2 ) ;
result = ( uint64_t ) zts_net_compute_adhoc_id ( arg1 , arg2 ) ;
resultobj = SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_join ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned long long val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_net_join " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
result = ( int ) zts_net_join ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_leave ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned long long val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_net_leave " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
result = ( int ) zts_net_leave ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_transport_is_ready ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned long long val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_net_transport_is_ready " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
result = ( int ) zts_net_transport_is_ready ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_get_mac ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned long long val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint64_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_net_get_mac " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
result = ( uint64_t ) zts_net_get_mac ( arg1 ) ;
resultobj = SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_get_mac_str ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
char * arg2 = ( char * ) 0 ;
unsigned int arg3 ;
unsigned long long val1 ;
int ecode1 = 0 ;
int res2 ;
char * buf2 = 0 ;
int alloc2 = 0 ;
unsigned int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_get_mac_str " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_net_get_mac_str " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
res2 = SWIG_AsCharPtrAndSize ( swig_obj [ 1 ] , & buf2 , NULL , & alloc2 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_net_get_mac_str " " ', argument " " 2 " " of type ' " " char * " " ' " ) ;
}
arg2 = reinterpret_cast < char * > ( buf2 ) ;
ecode3 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_net_get_mac_str " " ', argument " " 3 " " of type ' " " unsigned int " " ' " ) ;
}
arg3 = static_cast < unsigned int > ( val3 ) ;
result = ( int ) zts_net_get_mac_str ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return resultobj ;
fail :
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_get_broadcast ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned long long val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_net_get_broadcast " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
result = ( int ) zts_net_get_broadcast ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_get_mtu ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned long long val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_net_get_mtu " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
result = ( int ) zts_net_get_mtu ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_get_name ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
char * arg2 = ( char * ) 0 ;
unsigned int arg3 ;
unsigned long long val1 ;
int ecode1 = 0 ;
int res2 ;
char * buf2 = 0 ;
int alloc2 = 0 ;
unsigned int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_net_get_name " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_net_get_name " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
res2 = SWIG_AsCharPtrAndSize ( swig_obj [ 1 ] , & buf2 , NULL , & alloc2 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_net_get_name " " ', argument " " 2 " " of type ' " " char * " " ' " ) ;
}
arg2 = reinterpret_cast < char * > ( buf2 ) ;
ecode3 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_net_get_name " " ', argument " " 3 " " of type ' " " unsigned int " " ' " ) ;
}
arg3 = static_cast < unsigned int > ( val3 ) ;
result = ( int ) zts_net_get_name ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return resultobj ;
fail :
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_get_status ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned long long val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_net_get_status " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
result = ( int ) zts_net_get_status ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_net_get_type ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned long long val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_net_get_type " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
result = ( int ) zts_net_get_type ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_route_is_assigned ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned int arg2 ;
unsigned long long val1 ;
int ecode1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_route_is_assigned " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_route_is_assigned " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_route_is_assigned " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
result = ( int ) zts_route_is_assigned ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_start ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_node_start " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( int ) zts_node_start ( ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_is_online ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_node_is_online " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( int ) zts_node_is_online ( ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_get_id ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_node_get_id " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( uint64_t ) zts_node_get_id ( ) ;
resultobj = SWIG_From_unsigned_SS_long_SS_long ( static_cast < unsigned long long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_get_id_pair ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
char * arg1 = ( char * ) 0 ;
unsigned int * arg2 = ( unsigned int * ) 0 ;
int res1 ;
char * buf1 = 0 ;
int alloc1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_node_get_id_pair " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_AsCharPtrAndSize ( swig_obj [ 0 ] , & buf1 , NULL , & alloc1 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_node_get_id_pair " " ', argument " " 1 " " of type ' " " char * " " ' " ) ;
}
arg1 = reinterpret_cast < char * > ( buf1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_unsigned_int , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_node_get_id_pair " " ', argument " " 2 " " of type ' " " unsigned int * " " ' " ) ;
}
arg2 = reinterpret_cast < unsigned int * > ( argp2 ) ;
result = ( int ) zts_node_get_id_pair ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return resultobj ;
fail :
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_get_port ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_node_get_port " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( int ) zts_node_get_port ( ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_stop ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_node_stop " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( int ) zts_node_stop ( ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_node_free ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_node_free " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( int ) zts_node_free ( ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_moon_orbit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
uint64_t arg2 ;
unsigned long long val1 ;
int ecode1 = 0 ;
unsigned long long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_moon_orbit " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_moon_orbit " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_moon_orbit " " ', argument " " 2 " " of type ' " " uint64_t " " ' " ) ;
}
arg2 = static_cast < uint64_t > ( val2 ) ;
result = ( int ) zts_moon_orbit ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_moon_deorbit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned long long val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_moon_deorbit " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
result = ( int ) zts_moon_deorbit ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_link_tx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_link_tx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_link_tx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_link_tx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > link_tx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_link_tx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_link_tx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > link_tx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_link_rx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_link_rx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_link_rx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_link_rx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > link_rx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_link_rx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_link_rx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > link_rx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_link_drop_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_link_drop_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_link_drop_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_link_drop_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > link_drop = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_link_drop_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_link_drop_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > link_drop ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_link_err_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_link_err_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_link_err_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_link_err_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > link_err = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_link_err_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_link_err_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > link_err ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_etharp_tx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_etharp_tx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_etharp_tx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_etharp_tx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > etharp_tx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_etharp_tx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_etharp_tx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > etharp_tx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_etharp_rx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_etharp_rx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_etharp_rx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_etharp_rx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > etharp_rx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_etharp_rx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_etharp_rx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > etharp_rx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_etharp_drop_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_etharp_drop_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_etharp_drop_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_etharp_drop_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > etharp_drop = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_etharp_drop_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_etharp_drop_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > etharp_drop ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_etharp_err_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_etharp_err_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_etharp_err_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_etharp_err_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > etharp_err = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_etharp_err_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_etharp_err_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > etharp_err ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_ip4_tx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_ip4_tx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_ip4_tx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_ip4_tx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > ip4_tx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_ip4_tx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_ip4_tx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > ip4_tx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_ip4_rx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_ip4_rx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_ip4_rx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_ip4_rx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > ip4_rx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_ip4_rx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_ip4_rx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > ip4_rx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_ip4_drop_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_ip4_drop_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_ip4_drop_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_ip4_drop_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > ip4_drop = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_ip4_drop_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_ip4_drop_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > ip4_drop ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_ip4_err_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_ip4_err_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_ip4_err_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_ip4_err_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > ip4_err = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_ip4_err_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_ip4_err_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > ip4_err ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_ip6_tx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_ip6_tx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_ip6_tx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_ip6_tx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > ip6_tx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_ip6_tx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_ip6_tx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > ip6_tx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_ip6_rx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_ip6_rx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_ip6_rx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_ip6_rx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > ip6_rx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_ip6_rx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_ip6_rx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > ip6_rx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_ip6_drop_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_ip6_drop_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_ip6_drop_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_ip6_drop_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > ip6_drop = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_ip6_drop_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_ip6_drop_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > ip6_drop ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_ip6_err_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_ip6_err_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_ip6_err_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_ip6_err_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > ip6_err = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_ip6_err_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_ip6_err_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > ip6_err ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_icmp4_tx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_icmp4_tx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_icmp4_tx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_icmp4_tx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > icmp4_tx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_icmp4_tx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_icmp4_tx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > icmp4_tx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_icmp4_rx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_icmp4_rx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_icmp4_rx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_icmp4_rx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > icmp4_rx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_icmp4_rx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_icmp4_rx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > icmp4_rx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_icmp4_drop_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_icmp4_drop_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_icmp4_drop_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_icmp4_drop_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > icmp4_drop = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_icmp4_drop_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_icmp4_drop_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > icmp4_drop ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_icmp4_err_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_icmp4_err_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_icmp4_err_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_icmp4_err_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > icmp4_err = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_icmp4_err_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_icmp4_err_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > icmp4_err ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_icmp6_tx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_icmp6_tx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_icmp6_tx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_icmp6_tx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > icmp6_tx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_icmp6_tx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_icmp6_tx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > icmp6_tx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_icmp6_rx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_icmp6_rx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_icmp6_rx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_icmp6_rx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > icmp6_rx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_icmp6_rx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_icmp6_rx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > icmp6_rx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_icmp6_drop_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_icmp6_drop_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_icmp6_drop_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_icmp6_drop_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > icmp6_drop = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_icmp6_drop_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_icmp6_drop_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > icmp6_drop ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_icmp6_err_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_icmp6_err_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_icmp6_err_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_icmp6_err_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > icmp6_err = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_icmp6_err_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_icmp6_err_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > icmp6_err ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_udp_tx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_udp_tx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_udp_tx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_udp_tx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > udp_tx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_udp_tx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_udp_tx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > udp_tx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_udp_rx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_udp_rx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_udp_rx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_udp_rx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > udp_rx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_udp_rx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_udp_rx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > udp_rx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_udp_drop_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_udp_drop_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_udp_drop_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_udp_drop_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > udp_drop = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_udp_drop_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_udp_drop_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > udp_drop ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_udp_err_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_udp_err_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_udp_err_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_udp_err_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > udp_err = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_udp_err_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_udp_err_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > udp_err ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_tcp_tx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_tcp_tx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_tcp_tx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_tcp_tx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > tcp_tx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_tcp_tx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_tcp_tx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > tcp_tx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_tcp_rx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_tcp_rx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_tcp_rx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_tcp_rx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > tcp_rx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_tcp_rx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_tcp_rx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > tcp_rx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_tcp_drop_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_tcp_drop_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_tcp_drop_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_tcp_drop_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > tcp_drop = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_tcp_drop_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_tcp_drop_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > tcp_drop ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_tcp_err_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_tcp_err_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_tcp_err_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_tcp_err_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > tcp_err = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_tcp_err_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_tcp_err_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > tcp_err ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_nd6_tx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_nd6_tx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_nd6_tx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_nd6_tx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > nd6_tx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_nd6_tx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_nd6_tx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > nd6_tx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_nd6_rx_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_nd6_rx_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_nd6_rx_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_nd6_rx_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > nd6_rx = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_nd6_rx_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_nd6_rx_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > nd6_rx ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_nd6_drop_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_nd6_drop_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_nd6_drop_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_nd6_drop_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > nd6_drop = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_nd6_drop_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_nd6_drop_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > nd6_drop ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_nd6_err_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_stats_counter_t_nd6_err_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_nd6_err_set " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_stats_counter_t_nd6_err_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > nd6_err = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_stats_counter_t_nd6_err_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_counter_t_nd6_err_get " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > nd6_err ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_stats_counter_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_stats_counter_t " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_stats_counter_t * ) new zts_stats_counter_t ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_stats_counter_t , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_stats_counter_t ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_stats_counter_t " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_stats_counter_t_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_stats_counter_t , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_stats_counter_t_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_stats_get_all ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_stats_counter_t * arg1 = ( zts_stats_counter_t * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_stats_counter_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_stats_get_all " " ', argument " " 1 " " of type ' " " zts_stats_counter_t * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_stats_counter_t * > ( argp1 ) ;
result = ( int ) zts_stats_get_all ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_socket ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_socket " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_socket " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_bsd_socket " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_socket " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
result = ( int ) zts_bsd_socket ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_connect ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
zts_sockaddr * arg2 = ( zts_sockaddr * ) 0 ;
zts_socklen_t arg3 ;
int val1 ;
int ecode1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
unsigned int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_connect " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_connect " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_sockaddr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bsd_connect " " ', argument " " 2 " " of type ' " " zts_sockaddr const * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_sockaddr * > ( argp2 ) ;
ecode3 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_connect " " ', argument " " 3 " " of type ' " " zts_socklen_t " " ' " ) ;
}
arg3 = static_cast < zts_socklen_t > ( val3 ) ;
result = ( int ) zts_bsd_connect ( arg1 , ( zts_sockaddr const * ) arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_bind ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
zts_sockaddr * arg2 = ( zts_sockaddr * ) 0 ;
zts_socklen_t arg3 ;
int val1 ;
int ecode1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
unsigned int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_bind " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_bind " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_sockaddr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bsd_bind " " ', argument " " 2 " " of type ' " " zts_sockaddr const * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_sockaddr * > ( argp2 ) ;
ecode3 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_bind " " ', argument " " 3 " " of type ' " " zts_socklen_t " " ' " ) ;
}
arg3 = static_cast < zts_socklen_t > ( val3 ) ;
result = ( int ) zts_bsd_bind ( arg1 , ( zts_sockaddr const * ) arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_listen ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_listen " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_listen " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_bsd_listen " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
result = ( int ) zts_bsd_listen ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_accept ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
zts_sockaddr * arg2 = ( zts_sockaddr * ) 0 ;
zts_socklen_t * arg3 = ( zts_socklen_t * ) 0 ;
int val1 ;
int ecode1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
void * argp3 = 0 ;
int res3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_accept " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_accept " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_sockaddr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bsd_accept " " ', argument " " 2 " " of type ' " " zts_sockaddr * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_sockaddr * > ( argp2 ) ;
res3 = SWIG_ConvertPtr ( swig_obj [ 2 ] , & argp3 , SWIGTYPE_p_unsigned_int , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_bsd_accept " " ', argument " " 3 " " of type ' " " zts_socklen_t * " " ' " ) ;
}
arg3 = reinterpret_cast < zts_socklen_t * > ( argp3 ) ;
result = ( int ) zts_bsd_accept ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_setsockopt ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int arg3 ;
void * arg4 = ( void * ) 0 ;
zts_socklen_t arg5 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int res4 ;
unsigned int val5 ;
int ecode5 = 0 ;
PyObject * swig_obj [ 5 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_setsockopt " , 5 , 5 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_setsockopt " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_bsd_setsockopt " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_setsockopt " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
res4 = SWIG_ConvertPtr ( swig_obj [ 3 ] , SWIG_as_voidptrptr ( & arg4 ) , 0 , 0 ) ;
if ( ! SWIG_IsOK ( res4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res4 ) , " in method ' " " zts_bsd_setsockopt " " ', argument " " 4 " " of type ' " " void const * " " ' " ) ;
}
ecode5 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 4 ] , & val5 ) ;
if ( ! SWIG_IsOK ( ecode5 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode5 ) , " in method ' " " zts_bsd_setsockopt " " ', argument " " 5 " " of type ' " " zts_socklen_t " " ' " ) ;
}
arg5 = static_cast < zts_socklen_t > ( val5 ) ;
result = ( int ) zts_bsd_setsockopt ( arg1 , arg2 , arg3 , ( void const * ) arg4 , arg5 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_getsockopt ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int arg3 ;
void * arg4 = ( void * ) 0 ;
zts_socklen_t * arg5 = ( zts_socklen_t * ) 0 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int res4 ;
void * argp5 = 0 ;
int res5 = 0 ;
PyObject * swig_obj [ 5 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_getsockopt " , 5 , 5 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_getsockopt " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_bsd_getsockopt " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_getsockopt " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
res4 = SWIG_ConvertPtr ( swig_obj [ 3 ] , SWIG_as_voidptrptr ( & arg4 ) , 0 , 0 ) ;
if ( ! SWIG_IsOK ( res4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res4 ) , " in method ' " " zts_bsd_getsockopt " " ', argument " " 4 " " of type ' " " void * " " ' " ) ;
}
res5 = SWIG_ConvertPtr ( swig_obj [ 4 ] , & argp5 , SWIGTYPE_p_unsigned_int , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res5 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res5 ) , " in method ' " " zts_bsd_getsockopt " " ', argument " " 5 " " of type ' " " zts_socklen_t * " " ' " ) ;
}
arg5 = reinterpret_cast < zts_socklen_t * > ( argp5 ) ;
result = ( int ) zts_bsd_getsockopt ( arg1 , arg2 , arg3 , arg4 , arg5 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_getsockname ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
zts_sockaddr * arg2 = ( zts_sockaddr * ) 0 ;
zts_socklen_t * arg3 = ( zts_socklen_t * ) 0 ;
int val1 ;
int ecode1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
void * argp3 = 0 ;
int res3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_getsockname " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_getsockname " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_sockaddr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bsd_getsockname " " ', argument " " 2 " " of type ' " " zts_sockaddr * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_sockaddr * > ( argp2 ) ;
res3 = SWIG_ConvertPtr ( swig_obj [ 2 ] , & argp3 , SWIGTYPE_p_unsigned_int , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_bsd_getsockname " " ', argument " " 3 " " of type ' " " zts_socklen_t * " " ' " ) ;
}
arg3 = reinterpret_cast < zts_socklen_t * > ( argp3 ) ;
result = ( int ) zts_bsd_getsockname ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_getpeername ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
zts_sockaddr * arg2 = ( zts_sockaddr * ) 0 ;
zts_socklen_t * arg3 = ( zts_socklen_t * ) 0 ;
int val1 ;
int ecode1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
void * argp3 = 0 ;
int res3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_getpeername " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_getpeername " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_sockaddr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bsd_getpeername " " ', argument " " 2 " " of type ' " " zts_sockaddr * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_sockaddr * > ( argp2 ) ;
res3 = SWIG_ConvertPtr ( swig_obj [ 2 ] , & argp3 , SWIGTYPE_p_unsigned_int , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_bsd_getpeername " " ', argument " " 3 " " of type ' " " zts_socklen_t * " " ' " ) ;
}
arg3 = reinterpret_cast < zts_socklen_t * > ( argp3 ) ;
result = ( int ) zts_bsd_getpeername ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_close ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_close " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_bsd_close ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_timeval_tv_sec_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_timeval * arg1 = ( zts_timeval * ) 0 ;
long arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_timeval_tv_sec_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_timeval , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_timeval_tv_sec_set " " ', argument " " 1 " " of type ' " " zts_timeval * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_timeval * > ( argp1 ) ;
ecode2 = SWIG_AsVal_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_timeval_tv_sec_set " " ', argument " " 2 " " of type ' " " long " " ' " ) ;
}
arg2 = static_cast < long > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > tv_sec = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_timeval_tv_sec_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_timeval * arg1 = ( zts_timeval * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
long result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_timeval , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_timeval_tv_sec_get " " ', argument " " 1 " " of type ' " " zts_timeval * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_timeval * > ( argp1 ) ;
result = ( long ) ( ( arg1 ) - > tv_sec ) ;
resultobj = SWIG_From_long ( static_cast < long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_timeval_tv_usec_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_timeval * arg1 = ( zts_timeval * ) 0 ;
long arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
long val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_timeval_tv_usec_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_timeval , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_timeval_tv_usec_set " " ', argument " " 1 " " of type ' " " zts_timeval * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_timeval * > ( argp1 ) ;
ecode2 = SWIG_AsVal_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_timeval_tv_usec_set " " ', argument " " 2 " " of type ' " " long " " ' " ) ;
}
arg2 = static_cast < long > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > tv_usec = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_timeval_tv_usec_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_timeval * arg1 = ( zts_timeval * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
long result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_timeval , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_timeval_tv_usec_get " " ', argument " " 1 " " of type ' " " zts_timeval * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_timeval * > ( argp1 ) ;
result = ( long ) ( ( arg1 ) - > tv_usec ) ;
resultobj = SWIG_From_long ( static_cast < long > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_timeval ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_timeval * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_timeval " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_timeval * ) new zts_timeval ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_timeval , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_timeval ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_timeval * arg1 = ( zts_timeval * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_timeval , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_timeval " " ', argument " " 1 " " of type ' " " zts_timeval * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_timeval * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_timeval_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_timeval , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_timeval_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_select ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
zts_fd_set * arg2 = ( zts_fd_set * ) 0 ;
zts_fd_set * arg3 = ( zts_fd_set * ) 0 ;
zts_fd_set * arg4 = ( zts_fd_set * ) 0 ;
zts_timeval * arg5 = ( zts_timeval * ) 0 ;
int val1 ;
int ecode1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
void * argp3 = 0 ;
int res3 = 0 ;
void * argp4 = 0 ;
int res4 = 0 ;
void * argp5 = 0 ;
int res5 = 0 ;
PyObject * swig_obj [ 5 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_select " , 5 , 5 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_select " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_fd_set , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bsd_select " " ', argument " " 2 " " of type ' " " zts_fd_set * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_fd_set * > ( argp2 ) ;
res3 = SWIG_ConvertPtr ( swig_obj [ 2 ] , & argp3 , SWIGTYPE_p_zts_fd_set , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_bsd_select " " ', argument " " 3 " " of type ' " " zts_fd_set * " " ' " ) ;
}
arg3 = reinterpret_cast < zts_fd_set * > ( argp3 ) ;
res4 = SWIG_ConvertPtr ( swig_obj [ 3 ] , & argp4 , SWIGTYPE_p_zts_fd_set , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res4 ) , " in method ' " " zts_bsd_select " " ', argument " " 4 " " of type ' " " zts_fd_set * " " ' " ) ;
}
arg4 = reinterpret_cast < zts_fd_set * > ( argp4 ) ;
res5 = SWIG_ConvertPtr ( swig_obj [ 4 ] , & argp5 , SWIGTYPE_p_zts_timeval , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res5 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res5 ) , " in method ' " " zts_bsd_select " " ', argument " " 5 " " of type ' " " zts_timeval * " " ' " ) ;
}
arg5 = reinterpret_cast < zts_timeval * > ( argp5 ) ;
result = ( int ) zts_bsd_select ( arg1 , arg2 , arg3 , arg4 , arg5 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_fcntl ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_fcntl " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_fcntl " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_bsd_fcntl " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_fcntl " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
result = ( int ) zts_bsd_fcntl ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_poll ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_pollfd * arg1 = ( zts_pollfd * ) 0 ;
zts_nfds_t arg2 ;
int arg3 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_poll " , 3 , 3 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_pollfd , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_bsd_poll " " ', argument " " 1 " " of type ' " " zts_pollfd * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_pollfd * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_bsd_poll " " ', argument " " 2 " " of type ' " " zts_nfds_t " " ' " ) ;
}
arg2 = static_cast < zts_nfds_t > ( val2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_poll " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
result = ( int ) zts_bsd_poll ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_ioctl ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
unsigned long arg2 ;
void * arg3 = ( void * ) 0 ;
int val1 ;
int ecode1 = 0 ;
unsigned long val2 ;
int ecode2 = 0 ;
int res3 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_ioctl " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_ioctl " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_long ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_bsd_ioctl " " ', argument " " 2 " " of type ' " " unsigned long " " ' " ) ;
}
arg2 = static_cast < unsigned long > ( val2 ) ;
res3 = SWIG_ConvertPtr ( swig_obj [ 2 ] , SWIG_as_voidptrptr ( & arg3 ) , 0 , 0 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_bsd_ioctl " " ', argument " " 3 " " of type ' " " void * " " ' " ) ;
}
result = ( int ) zts_bsd_ioctl ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_send ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
void * arg2 = ( void * ) 0 ;
size_t arg3 ;
int arg4 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
size_t val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
PyObject * swig_obj [ 4 ] ;
ssize_t result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_send " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_send " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , SWIG_as_voidptrptr ( & arg2 ) , 0 , 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bsd_send " " ', argument " " 2 " " of type ' " " void const * " " ' " ) ;
}
ecode3 = SWIG_AsVal_size_t ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_send " " ', argument " " 3 " " of type ' " " size_t " " ' " ) ;
}
arg3 = static_cast < size_t > ( val3 ) ;
ecode4 = SWIG_AsVal_int ( swig_obj [ 3 ] , & val4 ) ;
if ( ! SWIG_IsOK ( ecode4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode4 ) , " in method ' " " zts_bsd_send " " ', argument " " 4 " " of type ' " " int " " ' " ) ;
}
arg4 = static_cast < int > ( val4 ) ;
result = zts_bsd_send ( arg1 , ( void const * ) arg2 , arg3 , arg4 ) ;
resultobj = SWIG_NewPointerObj ( ( new ssize_t ( static_cast < const ssize_t & > ( result ) ) ) , SWIGTYPE_p_ssize_t , SWIG_POINTER_OWN | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_sendto ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
void * arg2 = ( void * ) 0 ;
size_t arg3 ;
int arg4 ;
zts_sockaddr * arg5 = ( zts_sockaddr * ) 0 ;
zts_socklen_t arg6 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
size_t val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
void * argp5 = 0 ;
int res5 = 0 ;
unsigned int val6 ;
int ecode6 = 0 ;
PyObject * swig_obj [ 6 ] ;
ssize_t result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_sendto " , 6 , 6 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_sendto " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , SWIG_as_voidptrptr ( & arg2 ) , 0 , 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bsd_sendto " " ', argument " " 2 " " of type ' " " void const * " " ' " ) ;
}
ecode3 = SWIG_AsVal_size_t ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_sendto " " ', argument " " 3 " " of type ' " " size_t " " ' " ) ;
}
arg3 = static_cast < size_t > ( val3 ) ;
ecode4 = SWIG_AsVal_int ( swig_obj [ 3 ] , & val4 ) ;
if ( ! SWIG_IsOK ( ecode4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode4 ) , " in method ' " " zts_bsd_sendto " " ', argument " " 4 " " of type ' " " int " " ' " ) ;
}
arg4 = static_cast < int > ( val4 ) ;
res5 = SWIG_ConvertPtr ( swig_obj [ 4 ] , & argp5 , SWIGTYPE_p_zts_sockaddr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res5 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res5 ) , " in method ' " " zts_bsd_sendto " " ', argument " " 5 " " of type ' " " zts_sockaddr const * " " ' " ) ;
}
arg5 = reinterpret_cast < zts_sockaddr * > ( argp5 ) ;
ecode6 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 5 ] , & val6 ) ;
if ( ! SWIG_IsOK ( ecode6 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode6 ) , " in method ' " " zts_bsd_sendto " " ', argument " " 6 " " of type ' " " zts_socklen_t " " ' " ) ;
}
arg6 = static_cast < zts_socklen_t > ( val6 ) ;
result = zts_bsd_sendto ( arg1 , ( void const * ) arg2 , arg3 , arg4 , ( zts_sockaddr const * ) arg5 , arg6 ) ;
resultobj = SWIG_NewPointerObj ( ( new ssize_t ( static_cast < const ssize_t & > ( result ) ) ) , SWIGTYPE_p_ssize_t , SWIG_POINTER_OWN | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_iovec_iov_base_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_iovec * arg1 = ( zts_iovec * ) 0 ;
void * arg2 = ( void * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
int res2 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_iovec_iov_base_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_iovec , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_iovec_iov_base_set " " ', argument " " 1 " " of type ' " " zts_iovec * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_iovec * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , SWIG_as_voidptrptr ( & arg2 ) , 0 , SWIG_POINTER_DISOWN ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_iovec_iov_base_set " " ', argument " " 2 " " of type ' " " void * " " ' " ) ;
}
if ( arg1 ) ( arg1 ) - > iov_base = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_iovec_iov_base_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_iovec * arg1 = ( zts_iovec * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
void * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_iovec , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_iovec_iov_base_get " " ', argument " " 1 " " of type ' " " zts_iovec * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_iovec * > ( argp1 ) ;
result = ( void * ) ( ( arg1 ) - > iov_base ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_void , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_iovec_iov_len_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_iovec * arg1 = ( zts_iovec * ) 0 ;
size_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
size_t val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_iovec_iov_len_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_iovec , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_iovec_iov_len_set " " ', argument " " 1 " " of type ' " " zts_iovec * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_iovec * > ( argp1 ) ;
ecode2 = SWIG_AsVal_size_t ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_iovec_iov_len_set " " ', argument " " 2 " " of type ' " " size_t " " ' " ) ;
}
arg2 = static_cast < size_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > iov_len = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_iovec_iov_len_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_iovec * arg1 = ( zts_iovec * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
size_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_iovec , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_iovec_iov_len_get " " ', argument " " 1 " " of type ' " " zts_iovec * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_iovec * > ( argp1 ) ;
result = ( ( arg1 ) - > iov_len ) ;
resultobj = SWIG_From_size_t ( static_cast < size_t > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_iovec ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_iovec * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_iovec " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_iovec * ) new zts_iovec ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_iovec , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_iovec ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_iovec * arg1 = ( zts_iovec * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_iovec , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_iovec " " ', argument " " 1 " " of type ' " " zts_iovec * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_iovec * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_iovec_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_iovec , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_iovec_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_sendmsg ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
zts_msghdr * arg2 = ( zts_msghdr * ) 0 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
ssize_t result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_sendmsg " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_sendmsg " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_msghdr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bsd_sendmsg " " ', argument " " 2 " " of type ' " " zts_msghdr const * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_msghdr * > ( argp2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_sendmsg " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
result = zts_bsd_sendmsg ( arg1 , ( zts_msghdr const * ) arg2 , arg3 ) ;
resultobj = SWIG_NewPointerObj ( ( new ssize_t ( static_cast < const ssize_t & > ( result ) ) ) , SWIGTYPE_p_ssize_t , SWIG_POINTER_OWN | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_recv ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
void * arg2 = ( void * ) 0 ;
size_t arg3 ;
int arg4 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
size_t val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
PyObject * swig_obj [ 4 ] ;
ssize_t result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_recv " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_recv " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , SWIG_as_voidptrptr ( & arg2 ) , 0 , 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bsd_recv " " ', argument " " 2 " " of type ' " " void * " " ' " ) ;
}
ecode3 = SWIG_AsVal_size_t ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_recv " " ', argument " " 3 " " of type ' " " size_t " " ' " ) ;
}
arg3 = static_cast < size_t > ( val3 ) ;
ecode4 = SWIG_AsVal_int ( swig_obj [ 3 ] , & val4 ) ;
if ( ! SWIG_IsOK ( ecode4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode4 ) , " in method ' " " zts_bsd_recv " " ', argument " " 4 " " of type ' " " int " " ' " ) ;
}
arg4 = static_cast < int > ( val4 ) ;
result = zts_bsd_recv ( arg1 , arg2 , arg3 , arg4 ) ;
resultobj = SWIG_NewPointerObj ( ( new ssize_t ( static_cast < const ssize_t & > ( result ) ) ) , SWIGTYPE_p_ssize_t , SWIG_POINTER_OWN | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_recvfrom ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
void * arg2 = ( void * ) 0 ;
size_t arg3 ;
int arg4 ;
zts_sockaddr * arg5 = ( zts_sockaddr * ) 0 ;
zts_socklen_t * arg6 = ( zts_socklen_t * ) 0 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
size_t val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
void * argp5 = 0 ;
int res5 = 0 ;
void * argp6 = 0 ;
int res6 = 0 ;
PyObject * swig_obj [ 6 ] ;
ssize_t result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_recvfrom " , 6 , 6 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_recvfrom " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , SWIG_as_voidptrptr ( & arg2 ) , 0 , 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bsd_recvfrom " " ', argument " " 2 " " of type ' " " void * " " ' " ) ;
}
ecode3 = SWIG_AsVal_size_t ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_recvfrom " " ', argument " " 3 " " of type ' " " size_t " " ' " ) ;
}
arg3 = static_cast < size_t > ( val3 ) ;
ecode4 = SWIG_AsVal_int ( swig_obj [ 3 ] , & val4 ) ;
if ( ! SWIG_IsOK ( ecode4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode4 ) , " in method ' " " zts_bsd_recvfrom " " ', argument " " 4 " " of type ' " " int " " ' " ) ;
}
arg4 = static_cast < int > ( val4 ) ;
res5 = SWIG_ConvertPtr ( swig_obj [ 4 ] , & argp5 , SWIGTYPE_p_zts_sockaddr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res5 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res5 ) , " in method ' " " zts_bsd_recvfrom " " ', argument " " 5 " " of type ' " " zts_sockaddr * " " ' " ) ;
}
arg5 = reinterpret_cast < zts_sockaddr * > ( argp5 ) ;
res6 = SWIG_ConvertPtr ( swig_obj [ 5 ] , & argp6 , SWIGTYPE_p_unsigned_int , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res6 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res6 ) , " in method ' " " zts_bsd_recvfrom " " ', argument " " 6 " " of type ' " " zts_socklen_t * " " ' " ) ;
}
arg6 = reinterpret_cast < zts_socklen_t * > ( argp6 ) ;
result = zts_bsd_recvfrom ( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 ) ;
resultobj = SWIG_NewPointerObj ( ( new ssize_t ( static_cast < const ssize_t & > ( result ) ) ) , SWIGTYPE_p_ssize_t , SWIG_POINTER_OWN | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_recvmsg ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
zts_msghdr * arg2 = ( zts_msghdr * ) 0 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
ssize_t result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_recvmsg " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_recvmsg " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_msghdr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bsd_recvmsg " " ', argument " " 2 " " of type ' " " zts_msghdr * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_msghdr * > ( argp2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_recvmsg " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
result = zts_bsd_recvmsg ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_NewPointerObj ( ( new ssize_t ( static_cast < const ssize_t & > ( result ) ) ) , SWIGTYPE_p_ssize_t , SWIG_POINTER_OWN | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_read ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
void * arg2 = ( void * ) 0 ;
size_t arg3 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
size_t val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
ssize_t result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_read " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_read " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , SWIG_as_voidptrptr ( & arg2 ) , 0 , 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bsd_read " " ', argument " " 2 " " of type ' " " void * " " ' " ) ;
}
ecode3 = SWIG_AsVal_size_t ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_read " " ', argument " " 3 " " of type ' " " size_t " " ' " ) ;
}
arg3 = static_cast < size_t > ( val3 ) ;
result = zts_bsd_read ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_NewPointerObj ( ( new ssize_t ( static_cast < const ssize_t & > ( result ) ) ) , SWIGTYPE_p_ssize_t , SWIG_POINTER_OWN | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_readv ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
zts_iovec * arg2 = ( zts_iovec * ) 0 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
ssize_t result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_readv " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_readv " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_iovec , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bsd_readv " " ', argument " " 2 " " of type ' " " zts_iovec const * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_iovec * > ( argp2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_readv " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
result = zts_bsd_readv ( arg1 , ( zts_iovec const * ) arg2 , arg3 ) ;
resultobj = SWIG_NewPointerObj ( ( new ssize_t ( static_cast < const ssize_t & > ( result ) ) ) , SWIGTYPE_p_ssize_t , SWIG_POINTER_OWN | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_write ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
void * arg2 = ( void * ) 0 ;
size_t arg3 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
size_t val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
ssize_t result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_write " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_write " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , SWIG_as_voidptrptr ( & arg2 ) , 0 , 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bsd_write " " ', argument " " 2 " " of type ' " " void const * " " ' " ) ;
}
ecode3 = SWIG_AsVal_size_t ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_write " " ', argument " " 3 " " of type ' " " size_t " " ' " ) ;
}
arg3 = static_cast < size_t > ( val3 ) ;
result = zts_bsd_write ( arg1 , ( void const * ) arg2 , arg3 ) ;
resultobj = SWIG_NewPointerObj ( ( new ssize_t ( static_cast < const ssize_t & > ( result ) ) ) , SWIGTYPE_p_ssize_t , SWIG_POINTER_OWN | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_writev ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
zts_iovec * arg2 = ( zts_iovec * ) 0 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
ssize_t result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_writev " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_writev " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_iovec , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bsd_writev " " ', argument " " 2 " " of type ' " " zts_iovec const * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_iovec * > ( argp2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bsd_writev " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
result = zts_bsd_writev ( arg1 , ( zts_iovec const * ) arg2 , arg3 ) ;
resultobj = SWIG_NewPointerObj ( ( new ssize_t ( static_cast < const ssize_t & > ( result ) ) ) , SWIGTYPE_p_ssize_t , SWIG_POINTER_OWN | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_shutdown ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bsd_shutdown " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bsd_shutdown " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_bsd_shutdown " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
result = ( int ) zts_bsd_shutdown ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_socket ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_socket " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_socket " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_socket " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_socket " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
result = ( int ) zts_socket ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_connect ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
char * arg2 = ( char * ) 0 ;
unsigned short arg3 ;
int arg4 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
char * buf2 = 0 ;
int alloc2 = 0 ;
unsigned short val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
PyObject * swig_obj [ 4 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_connect " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_connect " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_AsCharPtrAndSize ( swig_obj [ 1 ] , & buf2 , NULL , & alloc2 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_connect " " ', argument " " 2 " " of type ' " " char const * " " ' " ) ;
}
arg2 = reinterpret_cast < char * > ( buf2 ) ;
ecode3 = SWIG_AsVal_unsigned_SS_short ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_connect " " ', argument " " 3 " " of type ' " " unsigned short " " ' " ) ;
}
arg3 = static_cast < unsigned short > ( val3 ) ;
ecode4 = SWIG_AsVal_int ( swig_obj [ 3 ] , & val4 ) ;
if ( ! SWIG_IsOK ( ecode4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode4 ) , " in method ' " " zts_connect " " ', argument " " 4 " " of type ' " " int " " ' " ) ;
}
arg4 = static_cast < int > ( val4 ) ;
result = ( int ) zts_connect ( arg1 , ( char const * ) arg2 , arg3 , arg4 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return resultobj ;
fail :
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_bind ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
char * arg2 = ( char * ) 0 ;
unsigned short arg3 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
char * buf2 = 0 ;
int alloc2 = 0 ;
unsigned short val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_bind " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_bind " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_AsCharPtrAndSize ( swig_obj [ 1 ] , & buf2 , NULL , & alloc2 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_bind " " ', argument " " 2 " " of type ' " " char const * " " ' " ) ;
}
arg2 = reinterpret_cast < char * > ( buf2 ) ;
ecode3 = SWIG_AsVal_unsigned_SS_short ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_bind " " ', argument " " 3 " " of type ' " " unsigned short " " ' " ) ;
}
arg3 = static_cast < unsigned short > ( val3 ) ;
result = ( int ) zts_bind ( arg1 , ( char const * ) arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return resultobj ;
fail :
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_listen ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_listen " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_listen " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_listen " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
result = ( int ) zts_listen ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_accept ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
char * arg2 = ( char * ) 0 ;
int arg3 ;
unsigned short * arg4 = ( unsigned short * ) 0 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
char * buf2 = 0 ;
int alloc2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void * argp4 = 0 ;
int res4 = 0 ;
PyObject * swig_obj [ 4 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_accept " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_accept " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_AsCharPtrAndSize ( swig_obj [ 1 ] , & buf2 , NULL , & alloc2 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_accept " " ', argument " " 2 " " of type ' " " char * " " ' " ) ;
}
arg2 = reinterpret_cast < char * > ( buf2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_accept " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
res4 = SWIG_ConvertPtr ( swig_obj [ 3 ] , & argp4 , SWIGTYPE_p_unsigned_short , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res4 ) , " in method ' " " zts_accept " " ', argument " " 4 " " of type ' " " unsigned short * " " ' " ) ;
}
arg4 = reinterpret_cast < unsigned short * > ( argp4 ) ;
result = ( int ) zts_accept ( arg1 , arg2 , arg3 , arg4 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return resultobj ;
fail :
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_send ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
void * arg2 = ( void * ) 0 ;
size_t arg3 ;
int arg4 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
size_t val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
PyObject * swig_obj [ 4 ] ;
ssize_t result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_send " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_send " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , SWIG_as_voidptrptr ( & arg2 ) , 0 , 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_send " " ', argument " " 2 " " of type ' " " void const * " " ' " ) ;
}
ecode3 = SWIG_AsVal_size_t ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_send " " ', argument " " 3 " " of type ' " " size_t " " ' " ) ;
}
arg3 = static_cast < size_t > ( val3 ) ;
ecode4 = SWIG_AsVal_int ( swig_obj [ 3 ] , & val4 ) ;
if ( ! SWIG_IsOK ( ecode4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode4 ) , " in method ' " " zts_send " " ', argument " " 4 " " of type ' " " int " " ' " ) ;
}
arg4 = static_cast < int > ( val4 ) ;
result = zts_send ( arg1 , ( void const * ) arg2 , arg3 , arg4 ) ;
resultobj = SWIG_NewPointerObj ( ( new ssize_t ( static_cast < const ssize_t & > ( result ) ) ) , SWIGTYPE_p_ssize_t , SWIG_POINTER_OWN | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_recv ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
void * arg2 = ( void * ) 0 ;
size_t arg3 ;
int arg4 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
size_t val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
PyObject * swig_obj [ 4 ] ;
ssize_t result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_recv " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_recv " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , SWIG_as_voidptrptr ( & arg2 ) , 0 , 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_recv " " ', argument " " 2 " " of type ' " " void * " " ' " ) ;
}
ecode3 = SWIG_AsVal_size_t ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_recv " " ', argument " " 3 " " of type ' " " size_t " " ' " ) ;
}
arg3 = static_cast < size_t > ( val3 ) ;
ecode4 = SWIG_AsVal_int ( swig_obj [ 3 ] , & val4 ) ;
if ( ! SWIG_IsOK ( ecode4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode4 ) , " in method ' " " zts_recv " " ', argument " " 4 " " of type ' " " int " " ' " ) ;
}
arg4 = static_cast < int > ( val4 ) ;
result = zts_recv ( arg1 , arg2 , arg3 , arg4 ) ;
resultobj = SWIG_NewPointerObj ( ( new ssize_t ( static_cast < const ssize_t & > ( result ) ) ) , SWIGTYPE_p_ssize_t , SWIG_POINTER_OWN | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_read ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
void * arg2 = ( void * ) 0 ;
size_t arg3 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
size_t val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
ssize_t result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_read " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_read " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , SWIG_as_voidptrptr ( & arg2 ) , 0 , 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_read " " ', argument " " 2 " " of type ' " " void * " " ' " ) ;
}
ecode3 = SWIG_AsVal_size_t ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_read " " ', argument " " 3 " " of type ' " " size_t " " ' " ) ;
}
arg3 = static_cast < size_t > ( val3 ) ;
result = zts_read ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_NewPointerObj ( ( new ssize_t ( static_cast < const ssize_t & > ( result ) ) ) , SWIGTYPE_p_ssize_t , SWIG_POINTER_OWN | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_write ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
void * arg2 = ( void * ) 0 ;
size_t arg3 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
size_t val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
ssize_t result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_write " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_write " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , SWIG_as_voidptrptr ( & arg2 ) , 0 , 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_write " " ', argument " " 2 " " of type ' " " void const * " " ' " ) ;
}
ecode3 = SWIG_AsVal_size_t ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_write " " ', argument " " 3 " " of type ' " " size_t " " ' " ) ;
}
arg3 = static_cast < size_t > ( val3 ) ;
result = zts_write ( arg1 , ( void const * ) arg2 , arg3 ) ;
resultobj = SWIG_NewPointerObj ( ( new ssize_t ( static_cast < const ssize_t & > ( result ) ) ) , SWIGTYPE_p_ssize_t , SWIG_POINTER_OWN | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_shutdown_rd ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_shutdown_rd " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_shutdown_rd ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_shutdown_wr ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_shutdown_wr " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_shutdown_wr ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_shutdown_rdwr ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_shutdown_rdwr " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_shutdown_rdwr ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_close ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_close " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_close ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_getpeername ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
char * arg2 = ( char * ) 0 ;
int arg3 ;
unsigned short * arg4 = ( unsigned short * ) 0 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
char * buf2 = 0 ;
int alloc2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void * argp4 = 0 ;
int res4 = 0 ;
PyObject * swig_obj [ 4 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_getpeername " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_getpeername " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_AsCharPtrAndSize ( swig_obj [ 1 ] , & buf2 , NULL , & alloc2 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_getpeername " " ', argument " " 2 " " of type ' " " char * " " ' " ) ;
}
arg2 = reinterpret_cast < char * > ( buf2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_getpeername " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
res4 = SWIG_ConvertPtr ( swig_obj [ 3 ] , & argp4 , SWIGTYPE_p_unsigned_short , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res4 ) , " in method ' " " zts_getpeername " " ', argument " " 4 " " of type ' " " unsigned short * " " ' " ) ;
}
arg4 = reinterpret_cast < unsigned short * > ( argp4 ) ;
result = ( int ) zts_getpeername ( arg1 , arg2 , arg3 , arg4 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return resultobj ;
fail :
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_getsockname ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
char * arg2 = ( char * ) 0 ;
int arg3 ;
unsigned short * arg4 = ( unsigned short * ) 0 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
char * buf2 = 0 ;
int alloc2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void * argp4 = 0 ;
int res4 = 0 ;
PyObject * swig_obj [ 4 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_getsockname " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_getsockname " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_AsCharPtrAndSize ( swig_obj [ 1 ] , & buf2 , NULL , & alloc2 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_getsockname " " ', argument " " 2 " " of type ' " " char * " " ' " ) ;
}
arg2 = reinterpret_cast < char * > ( buf2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_getsockname " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
res4 = SWIG_ConvertPtr ( swig_obj [ 3 ] , & argp4 , SWIGTYPE_p_unsigned_short , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res4 ) , " in method ' " " zts_getsockname " " ', argument " " 4 " " of type ' " " unsigned short * " " ' " ) ;
}
arg4 = reinterpret_cast < unsigned short * > ( argp4 ) ;
result = ( int ) zts_getsockname ( arg1 , arg2 , arg3 , arg4 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return resultobj ;
fail :
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_tcp_client ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
char * arg1 = ( char * ) 0 ;
unsigned short arg2 ;
int res1 ;
char * buf1 = 0 ;
int alloc1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_tcp_client " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_AsCharPtrAndSize ( swig_obj [ 0 ] , & buf1 , NULL , & alloc1 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_tcp_client " " ', argument " " 1 " " of type ' " " char const * " " ' " ) ;
}
arg1 = reinterpret_cast < char * > ( buf1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_short ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_tcp_client " " ', argument " " 2 " " of type ' " " unsigned short " " ' " ) ;
}
arg2 = static_cast < unsigned short > ( val2 ) ;
result = ( int ) zts_tcp_client ( ( char const * ) arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return resultobj ;
fail :
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_tcp_server ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
char * arg1 = ( char * ) 0 ;
unsigned short arg2 ;
char * arg3 = ( char * ) 0 ;
int arg4 ;
unsigned short * arg5 = ( unsigned short * ) 0 ;
int res1 ;
char * buf1 = 0 ;
int alloc1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
int res3 ;
char * buf3 = 0 ;
int alloc3 = 0 ;
int val4 ;
int ecode4 = 0 ;
void * argp5 = 0 ;
int res5 = 0 ;
PyObject * swig_obj [ 5 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_tcp_server " , 5 , 5 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_AsCharPtrAndSize ( swig_obj [ 0 ] , & buf1 , NULL , & alloc1 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_tcp_server " " ', argument " " 1 " " of type ' " " char const * " " ' " ) ;
}
arg1 = reinterpret_cast < char * > ( buf1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_short ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_tcp_server " " ', argument " " 2 " " of type ' " " unsigned short " " ' " ) ;
}
arg2 = static_cast < unsigned short > ( val2 ) ;
res3 = SWIG_AsCharPtrAndSize ( swig_obj [ 2 ] , & buf3 , NULL , & alloc3 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_tcp_server " " ', argument " " 3 " " of type ' " " char * " " ' " ) ;
}
arg3 = reinterpret_cast < char * > ( buf3 ) ;
ecode4 = SWIG_AsVal_int ( swig_obj [ 3 ] , & val4 ) ;
if ( ! SWIG_IsOK ( ecode4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode4 ) , " in method ' " " zts_tcp_server " " ', argument " " 4 " " of type ' " " int " " ' " ) ;
}
arg4 = static_cast < int > ( val4 ) ;
res5 = SWIG_ConvertPtr ( swig_obj [ 4 ] , & argp5 , SWIGTYPE_p_unsigned_short , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res5 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res5 ) , " in method ' " " zts_tcp_server " " ', argument " " 5 " " of type ' " " unsigned short * " " ' " ) ;
}
arg5 = reinterpret_cast < unsigned short * > ( argp5 ) ;
result = ( int ) zts_tcp_server ( ( char const * ) arg1 , arg2 , arg3 , arg4 , arg5 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
return resultobj ;
fail :
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_udp_server ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
char * arg1 = ( char * ) 0 ;
unsigned short arg2 ;
int res1 ;
char * buf1 = 0 ;
int alloc1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_udp_server " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_AsCharPtrAndSize ( swig_obj [ 0 ] , & buf1 , NULL , & alloc1 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_udp_server " " ', argument " " 1 " " of type ' " " char const * " " ' " ) ;
}
arg1 = reinterpret_cast < char * > ( buf1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_short ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_udp_server " " ', argument " " 2 " " of type ' " " unsigned short " " ' " ) ;
}
arg2 = static_cast < unsigned short > ( val2 ) ;
result = ( int ) zts_udp_server ( ( char const * ) arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return resultobj ;
fail :
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_udp_client ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
char * arg1 = ( char * ) 0 ;
int res1 ;
char * buf1 = 0 ;
int alloc1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_AsCharPtrAndSize ( swig_obj [ 0 ] , & buf1 , NULL , & alloc1 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_udp_client " " ', argument " " 1 " " of type ' " " char const * " " ' " ) ;
}
arg1 = reinterpret_cast < char * > ( buf1 ) ;
result = ( int ) zts_udp_client ( ( char const * ) arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return resultobj ;
fail :
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_set_no_delay ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_set_no_delay " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_set_no_delay " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_set_no_delay " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
result = ( int ) zts_set_no_delay ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_get_last_socket_error ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_get_last_socket_error " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_get_last_socket_error ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_get_data_available ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
size_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_get_data_available " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = zts_get_data_available ( arg1 ) ;
resultobj = SWIG_From_size_t ( static_cast < size_t > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_get_no_delay ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_get_no_delay " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_get_no_delay ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_set_linger ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_set_linger " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_set_linger " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_set_linger " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_set_linger " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
result = ( int ) zts_set_linger ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_get_linger_enabled ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_get_linger_enabled " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_get_linger_enabled ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_get_linger_value ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_get_linger_value " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_get_linger_value ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_get_pending_data_size ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_get_pending_data_size " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_get_pending_data_size ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_set_reuse_addr ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_set_reuse_addr " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_set_reuse_addr " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_set_reuse_addr " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
result = ( int ) zts_set_reuse_addr ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_get_reuse_addr ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_get_reuse_addr " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_get_reuse_addr ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_set_recv_timeout ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_set_recv_timeout " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_set_recv_timeout " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_set_recv_timeout " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_set_recv_timeout " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
result = ( int ) zts_set_recv_timeout ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_get_recv_timeout ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_get_recv_timeout " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_get_recv_timeout ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_set_send_timeout ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_set_send_timeout " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_set_send_timeout " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_set_send_timeout " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_set_send_timeout " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
result = ( int ) zts_set_send_timeout ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_get_send_timeout ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_get_send_timeout " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_get_send_timeout ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_set_send_buf_size ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_set_send_buf_size " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_set_send_buf_size " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_set_send_buf_size " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
result = ( int ) zts_set_send_buf_size ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_get_send_buf_size ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_get_send_buf_size " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_get_send_buf_size ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_set_recv_buf_size ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_set_recv_buf_size " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_set_recv_buf_size " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_set_recv_buf_size " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
result = ( int ) zts_set_recv_buf_size ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_get_recv_buf_size ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_get_recv_buf_size " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_get_recv_buf_size ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_set_ttl ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_set_ttl " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_set_ttl " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_set_ttl " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
result = ( int ) zts_set_ttl ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_get_ttl ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_get_ttl " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_get_ttl ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_set_blocking ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_set_blocking " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_set_blocking " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_set_blocking " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
result = ( int ) zts_set_blocking ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_get_blocking ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_get_blocking " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_get_blocking ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_set_keepalive ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_set_keepalive " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_set_keepalive " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_set_keepalive " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
result = ( int ) zts_set_keepalive ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_get_keepalive ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_get_keepalive " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_get_keepalive ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_hostent_h_name_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_hostent * arg1 = ( zts_hostent * ) 0 ;
char * arg2 = ( char * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char * buf2 = 0 ;
int alloc2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_hostent_h_name_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_hostent , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_hostent_h_name_set " " ', argument " " 1 " " of type ' " " zts_hostent * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_hostent * > ( argp1 ) ;
res2 = SWIG_AsCharPtrAndSize ( swig_obj [ 1 ] , & buf2 , NULL , & alloc2 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_hostent_h_name_set " " ', argument " " 2 " " of type ' " " char * " " ' " ) ;
}
arg2 = reinterpret_cast < char * > ( buf2 ) ;
if ( arg1 - > h_name ) delete [ ] arg1 - > h_name ;
if ( arg2 ) {
size_t size = strlen ( reinterpret_cast < const char * > ( arg2 ) ) + 1 ;
arg1 - > h_name = ( char * ) reinterpret_cast < char * > ( memcpy ( new char [ size ] , reinterpret_cast < const char * > ( arg2 ) , sizeof ( char ) * ( size ) ) ) ;
} else {
arg1 - > h_name = 0 ;
}
resultobj = SWIG_Py_Void ( ) ;
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return resultobj ;
fail :
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_hostent_h_name_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_hostent * arg1 = ( zts_hostent * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
char * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_hostent , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_hostent_h_name_get " " ', argument " " 1 " " of type ' " " zts_hostent * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_hostent * > ( argp1 ) ;
result = ( char * ) ( ( arg1 ) - > h_name ) ;
resultobj = SWIG_FromCharPtr ( ( const char * ) result ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_hostent_h_aliases_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_hostent * arg1 = ( zts_hostent * ) 0 ;
char * * arg2 = ( char * * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_hostent_h_aliases_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_hostent , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_hostent_h_aliases_set " " ', argument " " 1 " " of type ' " " zts_hostent * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_hostent * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_p_char , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_hostent_h_aliases_set " " ', argument " " 2 " " of type ' " " char ** " " ' " ) ;
}
arg2 = reinterpret_cast < char * * > ( argp2 ) ;
if ( arg1 ) ( arg1 ) - > h_aliases = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_hostent_h_aliases_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_hostent * arg1 = ( zts_hostent * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
char * * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_hostent , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_hostent_h_aliases_get " " ', argument " " 1 " " of type ' " " zts_hostent * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_hostent * > ( argp1 ) ;
result = ( char * * ) ( ( arg1 ) - > h_aliases ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_p_char , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_hostent_h_addrtype_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_hostent * arg1 = ( zts_hostent * ) 0 ;
int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_hostent_h_addrtype_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_hostent , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_hostent_h_addrtype_set " " ', argument " " 1 " " of type ' " " zts_hostent * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_hostent * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_hostent_h_addrtype_set " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > h_addrtype = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_hostent_h_addrtype_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_hostent * arg1 = ( zts_hostent * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_hostent , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_hostent_h_addrtype_get " " ', argument " " 1 " " of type ' " " zts_hostent * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_hostent * > ( argp1 ) ;
result = ( int ) ( ( arg1 ) - > h_addrtype ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_hostent_h_length_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_hostent * arg1 = ( zts_hostent * ) 0 ;
int arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_hostent_h_length_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_hostent , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_hostent_h_length_set " " ', argument " " 1 " " of type ' " " zts_hostent * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_hostent * > ( argp1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_hostent_h_length_set " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > h_length = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_hostent_h_length_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_hostent * arg1 = ( zts_hostent * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_hostent , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_hostent_h_length_get " " ', argument " " 1 " " of type ' " " zts_hostent * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_hostent * > ( argp1 ) ;
result = ( int ) ( ( arg1 ) - > h_length ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_hostent_h_addr_list_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_hostent * arg1 = ( zts_hostent * ) 0 ;
char * * arg2 = ( char * * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_hostent_h_addr_list_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_hostent , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_hostent_h_addr_list_set " " ', argument " " 1 " " of type ' " " zts_hostent * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_hostent * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_p_char , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_hostent_h_addr_list_set " " ', argument " " 2 " " of type ' " " char ** " " ' " ) ;
}
arg2 = reinterpret_cast < char * * > ( argp2 ) ;
if ( arg1 ) ( arg1 ) - > h_addr_list = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_hostent_h_addr_list_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_hostent * arg1 = ( zts_hostent * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
char * * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_hostent , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_hostent_h_addr_list_get " " ', argument " " 1 " " of type ' " " zts_hostent * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_hostent * > ( argp1 ) ;
result = ( char * * ) ( ( arg1 ) - > h_addr_list ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_p_char , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_hostent ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_hostent * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_hostent " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_hostent * ) new zts_hostent ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_hostent , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_hostent ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_hostent * arg1 = ( zts_hostent * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_hostent , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_hostent " " ', argument " " 1 " " of type ' " " zts_hostent * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_hostent * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_hostent_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_hostent , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_hostent_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_bsd_gethostbyname ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
char * arg1 = ( char * ) 0 ;
int res1 ;
char * buf1 = 0 ;
int alloc1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_hostent * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_AsCharPtrAndSize ( swig_obj [ 0 ] , & buf1 , NULL , & alloc1 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_bsd_gethostbyname " " ', argument " " 1 " " of type ' " " char const * " " ' " ) ;
}
arg1 = reinterpret_cast < char * > ( buf1 ) ;
result = ( zts_hostent * ) zts_bsd_gethostbyname ( ( char const * ) arg1 ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_hostent , 0 | 0 ) ;
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return resultobj ;
fail :
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_ip4_addr_addr_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_ip4_addr * arg1 = ( zts_ip4_addr * ) 0 ;
uint32_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_ip4_addr_addr_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_ip4_addr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_ip4_addr_addr_set " " ', argument " " 1 " " of type ' " " zts_ip4_addr * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_ip4_addr * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_ip4_addr_addr_set " " ', argument " " 2 " " of type ' " " uint32_t " " ' " ) ;
}
arg2 = static_cast < uint32_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > addr = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_ip4_addr_addr_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_ip4_addr * arg1 = ( zts_ip4_addr * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_ip4_addr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_ip4_addr_addr_get " " ', argument " " 1 " " of type ' " " zts_ip4_addr * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_ip4_addr * > ( argp1 ) ;
result = ( uint32_t ) ( ( arg1 ) - > addr ) ;
resultobj = SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_ip4_addr ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_ip4_addr * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_ip4_addr " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_ip4_addr * ) new zts_ip4_addr ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_ip4_addr , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_ip4_addr ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_ip4_addr * arg1 = ( zts_ip4_addr * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_ip4_addr , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_ip4_addr " " ', argument " " 1 " " of type ' " " zts_ip4_addr * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_ip4_addr * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_ip4_addr_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_ip4_addr , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_ip4_addr_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_ip6_addr_addr_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_ip6_addr * arg1 = ( zts_ip6_addr * ) 0 ;
uint32_t * arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_ip6_addr_addr_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_ip6_addr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_ip6_addr_addr_set " " ', argument " " 1 " " of type ' " " zts_ip6_addr * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_ip6_addr * > ( argp1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_unsigned_int , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_ip6_addr_addr_set " " ', argument " " 2 " " of type ' " " uint32_t [4] " " ' " ) ;
}
arg2 = reinterpret_cast < uint32_t * > ( argp2 ) ;
{
if ( arg2 ) {
size_t ii = 0 ;
for ( ; ii < ( size_t ) 4 ; + + ii ) * ( uint32_t * ) & arg1 - > addr [ ii ] = * ( ( uint32_t * ) arg2 + ii ) ;
} else {
SWIG_exception_fail ( SWIG_ValueError , " invalid null reference " " in variable ' " " addr " " ' of type ' " " uint32_t [4] " " ' " ) ;
}
}
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_ip6_addr_addr_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_ip6_addr * arg1 = ( zts_ip6_addr * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint32_t * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_ip6_addr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_ip6_addr_addr_get " " ', argument " " 1 " " of type ' " " zts_ip6_addr * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_ip6_addr * > ( argp1 ) ;
result = ( uint32_t * ) ( uint32_t * ) ( ( arg1 ) - > addr ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_unsigned_int , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_ip6_addr ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_ip6_addr * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_ip6_addr " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_ip6_addr * ) new zts_ip6_addr ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_ip6_addr , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_ip6_addr ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_ip6_addr * arg1 = ( zts_ip6_addr * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_ip6_addr , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_ip6_addr " " ', argument " " 1 " " of type ' " " zts_ip6_addr * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_ip6_addr * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_ip6_addr_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_ip6_addr , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_ip6_addr_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_ip_addr_type_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_ip_addr * arg1 = ( zts_ip_addr * ) 0 ;
uint8_t arg2 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned char val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_ip_addr_type_set " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_ip_addr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_ip_addr_type_set " " ', argument " " 1 " " of type ' " " zts_ip_addr * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_ip_addr * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_char ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_ip_addr_type_set " " ', argument " " 2 " " of type ' " " uint8_t " " ' " ) ;
}
arg2 = static_cast < uint8_t > ( val2 ) ;
if ( arg1 ) ( arg1 ) - > type = arg2 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_ip_addr_type_get ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_ip_addr * arg1 = ( zts_ip_addr * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
uint8_t result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_ip_addr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_ip_addr_type_get " " ', argument " " 1 " " of type ' " " zts_ip_addr * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_ip_addr * > ( argp1 ) ;
result = ( uint8_t ) ( ( arg1 ) - > type ) ;
resultobj = SWIG_From_unsigned_SS_char ( static_cast < unsigned char > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_new_zts_ip_addr ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_ip_addr * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " new_zts_ip_addr " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( zts_ip_addr * ) new zts_ip_addr ( ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_ip_addr , SWIG_POINTER_NEW | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_delete_zts_ip_addr ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_ip_addr * arg1 = ( zts_ip_addr * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_ip_addr , SWIG_POINTER_DISOWN | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " delete_zts_ip_addr " " ', argument " " 1 " " of type ' " " zts_ip_addr * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_ip_addr * > ( argp1 ) ;
delete arg1 ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * zts_ip_addr_swigregister ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * obj ;
if ( ! SWIG_Python_UnpackTuple ( args , " swigregister " , 1 , 1 , & obj ) ) return NULL ;
SWIG_TypeNewClientData ( SWIGTYPE_p_zts_ip_addr , SWIG_NewClientData ( obj ) ) ;
return SWIG_Py_Void ( ) ;
}
SWIGINTERN PyObject * zts_ip_addr_swiginit ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
return SWIG_Python_InitShadowInstance ( args ) ;
}
SWIGINTERN PyObject * _wrap_zts_dns_set_server ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint8_t arg1 ;
zts_ip_addr * arg2 = ( zts_ip_addr * ) 0 ;
unsigned char val1 ;
int ecode1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_dns_set_server " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_char ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_dns_set_server " " ', argument " " 1 " " of type ' " " uint8_t " " ' " ) ;
}
arg1 = static_cast < uint8_t > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_ip_addr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_dns_set_server " " ', argument " " 2 " " of type ' " " zts_ip_addr const * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_ip_addr * > ( argp2 ) ;
result = ( int ) zts_dns_set_server ( arg1 , ( zts_ip_addr const * ) arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_dns_get_server ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint8_t arg1 ;
unsigned char val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
zts_ip_addr * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_char ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_dns_get_server " " ', argument " " 1 " " of type ' " " uint8_t " " ' " ) ;
}
arg1 = static_cast < uint8_t > ( val1 ) ;
result = ( zts_ip_addr * ) zts_dns_get_server ( arg1 ) ;
resultobj = SWIG_NewPointerObj ( SWIG_as_voidptr ( result ) , SWIGTYPE_p_zts_ip_addr , 0 | 0 ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_core_lock_obtain ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_core_lock_obtain " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( int ) zts_core_lock_obtain ( ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_core_lock_release ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_core_lock_release " , 0 , 0 , 0 ) ) SWIG_fail ;
result = ( int ) zts_core_lock_release ( ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_core_query_addr_count ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned long long val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_core_query_addr_count " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
result = ( int ) zts_core_query_addr_count ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_core_query_addr ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned int arg2 ;
char * arg3 = ( char * ) 0 ;
unsigned int arg4 ;
unsigned long long val1 ;
int ecode1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
int res3 ;
char * buf3 = 0 ;
int alloc3 = 0 ;
unsigned int val4 ;
int ecode4 = 0 ;
PyObject * swig_obj [ 4 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_core_query_addr " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_core_query_addr " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_core_query_addr " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
res3 = SWIG_AsCharPtrAndSize ( swig_obj [ 2 ] , & buf3 , NULL , & alloc3 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_core_query_addr " " ', argument " " 3 " " of type ' " " char * " " ' " ) ;
}
arg3 = reinterpret_cast < char * > ( buf3 ) ;
ecode4 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 3 ] , & val4 ) ;
if ( ! SWIG_IsOK ( ecode4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode4 ) , " in method ' " " zts_core_query_addr " " ', argument " " 4 " " of type ' " " unsigned int " " ' " ) ;
}
arg4 = static_cast < unsigned int > ( val4 ) ;
result = ( int ) zts_core_query_addr ( arg1 , arg2 , arg3 , arg4 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
return resultobj ;
fail :
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_core_query_route_count ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned long long val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_core_query_route_count " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
result = ( int ) zts_core_query_route_count ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_core_query_route ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned int arg2 ;
char * arg3 = ( char * ) 0 ;
char * arg4 = ( char * ) 0 ;
unsigned int arg5 ;
uint16_t * arg6 = ( uint16_t * ) 0 ;
uint16_t * arg7 = ( uint16_t * ) 0 ;
unsigned long long val1 ;
int ecode1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
int res3 ;
char * buf3 = 0 ;
int alloc3 = 0 ;
int res4 ;
char * buf4 = 0 ;
int alloc4 = 0 ;
unsigned int val5 ;
int ecode5 = 0 ;
void * argp6 = 0 ;
int res6 = 0 ;
void * argp7 = 0 ;
int res7 = 0 ;
PyObject * swig_obj [ 7 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_core_query_route " , 7 , 7 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_core_query_route " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_core_query_route " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
res3 = SWIG_AsCharPtrAndSize ( swig_obj [ 2 ] , & buf3 , NULL , & alloc3 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_core_query_route " " ', argument " " 3 " " of type ' " " char * " " ' " ) ;
}
arg3 = reinterpret_cast < char * > ( buf3 ) ;
res4 = SWIG_AsCharPtrAndSize ( swig_obj [ 3 ] , & buf4 , NULL , & alloc4 ) ;
if ( ! SWIG_IsOK ( res4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res4 ) , " in method ' " " zts_core_query_route " " ', argument " " 4 " " of type ' " " char * " " ' " ) ;
}
arg4 = reinterpret_cast < char * > ( buf4 ) ;
ecode5 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 4 ] , & val5 ) ;
if ( ! SWIG_IsOK ( ecode5 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode5 ) , " in method ' " " zts_core_query_route " " ', argument " " 5 " " of type ' " " unsigned int " " ' " ) ;
}
arg5 = static_cast < unsigned int > ( val5 ) ;
res6 = SWIG_ConvertPtr ( swig_obj [ 5 ] , & argp6 , SWIGTYPE_p_unsigned_short , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res6 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res6 ) , " in method ' " " zts_core_query_route " " ', argument " " 6 " " of type ' " " uint16_t * " " ' " ) ;
}
arg6 = reinterpret_cast < uint16_t * > ( argp6 ) ;
res7 = SWIG_ConvertPtr ( swig_obj [ 6 ] , & argp7 , SWIGTYPE_p_unsigned_short , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res7 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res7 ) , " in method ' " " zts_core_query_route " " ', argument " " 7 " " of type ' " " uint16_t * " " ' " ) ;
}
arg7 = reinterpret_cast < uint16_t * > ( argp7 ) ;
result = ( int ) zts_core_query_route ( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
if ( alloc4 = = SWIG_NEWOBJ ) delete [ ] buf4 ;
return resultobj ;
fail :
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
if ( alloc4 = = SWIG_NEWOBJ ) delete [ ] buf4 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_core_query_path_count ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned long long val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_core_query_path_count " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
result = ( int ) zts_core_query_path_count ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_core_query_path ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned int arg2 ;
char * arg3 = ( char * ) 0 ;
unsigned int arg4 ;
unsigned long long val1 ;
int ecode1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
int res3 ;
char * buf3 = 0 ;
int alloc3 = 0 ;
unsigned int val4 ;
int ecode4 = 0 ;
PyObject * swig_obj [ 4 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_core_query_path " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_core_query_path " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_core_query_path " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
res3 = SWIG_AsCharPtrAndSize ( swig_obj [ 2 ] , & buf3 , NULL , & alloc3 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_core_query_path " " ', argument " " 3 " " of type ' " " char * " " ' " ) ;
}
arg3 = reinterpret_cast < char * > ( buf3 ) ;
ecode4 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 3 ] , & val4 ) ;
if ( ! SWIG_IsOK ( ecode4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode4 ) , " in method ' " " zts_core_query_path " " ', argument " " 4 " " of type ' " " unsigned int " " ' " ) ;
}
arg4 = static_cast < unsigned int > ( val4 ) ;
result = ( int ) zts_core_query_path ( arg1 , arg2 , arg3 , arg4 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
return resultobj ;
fail :
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_core_query_mc_count ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned long long val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_core_query_mc_count " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
result = ( int ) zts_core_query_mc_count ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_core_query_mc ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
unsigned int arg2 ;
uint64_t * arg3 = ( uint64_t * ) 0 ;
uint32_t * arg4 = ( uint32_t * ) 0 ;
unsigned long long val1 ;
int ecode1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
void * argp3 = 0 ;
int res3 = 0 ;
void * argp4 = 0 ;
int res4 = 0 ;
PyObject * swig_obj [ 4 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_core_query_mc " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_core_query_mc " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_core_query_mc " " ', argument " " 2 " " of type ' " " unsigned int " " ' " ) ;
}
arg2 = static_cast < unsigned int > ( val2 ) ;
res3 = SWIG_ConvertPtr ( swig_obj [ 2 ] , & argp3 , SWIGTYPE_p_unsigned_long_long , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_core_query_mc " " ', argument " " 3 " " of type ' " " uint64_t * " " ' " ) ;
}
arg3 = reinterpret_cast < uint64_t * > ( argp3 ) ;
res4 = SWIG_ConvertPtr ( swig_obj [ 3 ] , & argp4 , SWIGTYPE_p_unsigned_int , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res4 ) , " in method ' " " zts_core_query_mc " " ', argument " " 4 " " of type ' " " uint32_t * " " ' " ) ;
}
arg4 = reinterpret_cast < uint32_t * > ( argp4 ) ;
result = ( int ) zts_core_query_mc ( arg1 , arg2 , arg3 , arg4 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_util_sign_root_set ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
char * arg1 = ( char * ) 0 ;
unsigned int * arg2 = ( unsigned int * ) 0 ;
char * arg3 = ( char * ) 0 ;
unsigned int * arg4 = ( unsigned int * ) 0 ;
char * arg5 = ( char * ) 0 ;
unsigned int * arg6 = ( unsigned int * ) 0 ;
uint64_t arg7 ;
uint64_t arg8 ;
zts_root_set_t * arg9 = ( zts_root_set_t * ) 0 ;
int res1 ;
char * buf1 = 0 ;
int alloc1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
int res3 ;
char * buf3 = 0 ;
int alloc3 = 0 ;
void * argp4 = 0 ;
int res4 = 0 ;
int res5 ;
char * buf5 = 0 ;
int alloc5 = 0 ;
void * argp6 = 0 ;
int res6 = 0 ;
unsigned long long val7 ;
int ecode7 = 0 ;
unsigned long long val8 ;
int ecode8 = 0 ;
void * argp9 = 0 ;
int res9 = 0 ;
PyObject * swig_obj [ 9 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_util_sign_root_set " , 9 , 9 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_AsCharPtrAndSize ( swig_obj [ 0 ] , & buf1 , NULL , & alloc1 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_util_sign_root_set " " ', argument " " 1 " " of type ' " " char * " " ' " ) ;
}
arg1 = reinterpret_cast < char * > ( buf1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_unsigned_int , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_util_sign_root_set " " ', argument " " 2 " " of type ' " " unsigned int * " " ' " ) ;
}
arg2 = reinterpret_cast < unsigned int * > ( argp2 ) ;
res3 = SWIG_AsCharPtrAndSize ( swig_obj [ 2 ] , & buf3 , NULL , & alloc3 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_util_sign_root_set " " ', argument " " 3 " " of type ' " " char * " " ' " ) ;
}
arg3 = reinterpret_cast < char * > ( buf3 ) ;
res4 = SWIG_ConvertPtr ( swig_obj [ 3 ] , & argp4 , SWIGTYPE_p_unsigned_int , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res4 ) , " in method ' " " zts_util_sign_root_set " " ', argument " " 4 " " of type ' " " unsigned int * " " ' " ) ;
}
arg4 = reinterpret_cast < unsigned int * > ( argp4 ) ;
res5 = SWIG_AsCharPtrAndSize ( swig_obj [ 4 ] , & buf5 , NULL , & alloc5 ) ;
if ( ! SWIG_IsOK ( res5 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res5 ) , " in method ' " " zts_util_sign_root_set " " ', argument " " 5 " " of type ' " " char * " " ' " ) ;
}
arg5 = reinterpret_cast < char * > ( buf5 ) ;
res6 = SWIG_ConvertPtr ( swig_obj [ 5 ] , & argp6 , SWIGTYPE_p_unsigned_int , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res6 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res6 ) , " in method ' " " zts_util_sign_root_set " " ', argument " " 6 " " of type ' " " unsigned int * " " ' " ) ;
}
arg6 = reinterpret_cast < unsigned int * > ( argp6 ) ;
ecode7 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 6 ] , & val7 ) ;
if ( ! SWIG_IsOK ( ecode7 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode7 ) , " in method ' " " zts_util_sign_root_set " " ', argument " " 7 " " of type ' " " uint64_t " " ' " ) ;
}
arg7 = static_cast < uint64_t > ( val7 ) ;
ecode8 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 7 ] , & val8 ) ;
if ( ! SWIG_IsOK ( ecode8 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode8 ) , " in method ' " " zts_util_sign_root_set " " ', argument " " 8 " " of type ' " " uint64_t " " ' " ) ;
}
arg8 = static_cast < uint64_t > ( val8 ) ;
res9 = SWIG_ConvertPtr ( swig_obj [ 8 ] , & argp9 , SWIGTYPE_p_zts_root_set_t , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res9 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res9 ) , " in method ' " " zts_util_sign_root_set " " ', argument " " 9 " " of type ' " " zts_root_set_t * " " ' " ) ;
}
arg9 = reinterpret_cast < zts_root_set_t * > ( argp9 ) ;
result = ( int ) zts_util_sign_root_set ( arg1 , arg2 , arg3 , arg4 , arg5 , arg6 , arg7 , arg8 , arg9 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
if ( alloc5 = = SWIG_NEWOBJ ) delete [ ] buf5 ;
return resultobj ;
fail :
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
if ( alloc5 = = SWIG_NEWOBJ ) delete [ ] buf5 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_util_delay ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
unsigned long arg1 ;
unsigned long val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_unsigned_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_util_delay " " ', argument " " 1 " " of type ' " " unsigned long " " ' " ) ;
}
arg1 = static_cast < unsigned long > ( val1 ) ;
zts_util_delay ( arg1 ) ;
resultobj = SWIG_Py_Void ( ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_util_get_ip_family ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
char * arg1 = ( char * ) 0 ;
int res1 ;
char * buf1 = 0 ;
int alloc1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_AsCharPtrAndSize ( swig_obj [ 0 ] , & buf1 , NULL , & alloc1 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_util_get_ip_family " " ', argument " " 1 " " of type ' " " char const * " " ' " ) ;
}
arg1 = reinterpret_cast < char * > ( buf1 ) ;
result = ( int ) zts_util_get_ip_family ( ( char const * ) arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return resultobj ;
fail :
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_util_ipstr_to_saddr ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
char * arg1 = ( char * ) 0 ;
unsigned short arg2 ;
zts_sockaddr * arg3 = ( zts_sockaddr * ) 0 ;
zts_socklen_t * arg4 = ( zts_socklen_t * ) 0 ;
int res1 ;
char * buf1 = 0 ;
int alloc1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
void * argp3 = 0 ;
int res3 = 0 ;
void * argp4 = 0 ;
int res4 = 0 ;
PyObject * swig_obj [ 4 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_util_ipstr_to_saddr " , 4 , 4 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_AsCharPtrAndSize ( swig_obj [ 0 ] , & buf1 , NULL , & alloc1 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_util_ipstr_to_saddr " " ', argument " " 1 " " of type ' " " char const * " " ' " ) ;
}
arg1 = reinterpret_cast < char * > ( buf1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_short ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_util_ipstr_to_saddr " " ', argument " " 2 " " of type ' " " unsigned short " " ' " ) ;
}
arg2 = static_cast < unsigned short > ( val2 ) ;
res3 = SWIG_ConvertPtr ( swig_obj [ 2 ] , & argp3 , SWIGTYPE_p_zts_sockaddr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_util_ipstr_to_saddr " " ', argument " " 3 " " of type ' " " zts_sockaddr * " " ' " ) ;
}
arg3 = reinterpret_cast < zts_sockaddr * > ( argp3 ) ;
res4 = SWIG_ConvertPtr ( swig_obj [ 3 ] , & argp4 , SWIGTYPE_p_unsigned_int , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res4 ) , " in method ' " " zts_util_ipstr_to_saddr " " ', argument " " 4 " " of type ' " " zts_socklen_t * " " ' " ) ;
}
arg4 = reinterpret_cast < zts_socklen_t * > ( argp4 ) ;
result = ( int ) zts_util_ipstr_to_saddr ( ( char const * ) arg1 , arg2 , arg3 , arg4 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return resultobj ;
fail :
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_util_ntop ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_sockaddr * arg1 = ( zts_sockaddr * ) 0 ;
zts_socklen_t arg2 ;
char * arg3 = ( char * ) 0 ;
int arg4 ;
unsigned short * arg5 = ( unsigned short * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
int res3 ;
char * buf3 = 0 ;
int alloc3 = 0 ;
int val4 ;
int ecode4 = 0 ;
void * argp5 = 0 ;
int res5 = 0 ;
PyObject * swig_obj [ 5 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_util_ntop " , 5 , 5 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_sockaddr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_util_ntop " " ', argument " " 1 " " of type ' " " zts_sockaddr * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_sockaddr * > ( argp1 ) ;
ecode2 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_util_ntop " " ', argument " " 2 " " of type ' " " zts_socklen_t " " ' " ) ;
}
arg2 = static_cast < zts_socklen_t > ( val2 ) ;
res3 = SWIG_AsCharPtrAndSize ( swig_obj [ 2 ] , & buf3 , NULL , & alloc3 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_util_ntop " " ', argument " " 3 " " of type ' " " char * " " ' " ) ;
}
arg3 = reinterpret_cast < char * > ( buf3 ) ;
ecode4 = SWIG_AsVal_int ( swig_obj [ 3 ] , & val4 ) ;
if ( ! SWIG_IsOK ( ecode4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode4 ) , " in method ' " " zts_util_ntop " " ', argument " " 4 " " of type ' " " int " " ' " ) ;
}
arg4 = static_cast < int > ( val4 ) ;
res5 = SWIG_ConvertPtr ( swig_obj [ 4 ] , & argp5 , SWIGTYPE_p_unsigned_short , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res5 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res5 ) , " in method ' " " zts_util_ntop " " ', argument " " 5 " " of type ' " " unsigned short * " " ' " ) ;
}
arg5 = reinterpret_cast < unsigned short * > ( argp5 ) ;
result = ( int ) zts_util_ntop ( arg1 , arg2 , arg3 , arg4 , arg5 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
return resultobj ;
fail :
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_ipaddr_ntoa ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
zts_ip_addr * arg1 = ( zts_ip_addr * ) 0 ;
void * argp1 = 0 ;
int res1 = 0 ;
PyObject * swig_obj [ 1 ] ;
char * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
res1 = SWIG_ConvertPtr ( swig_obj [ 0 ] , & argp1 , SWIGTYPE_p_zts_ip_addr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_ipaddr_ntoa " " ', argument " " 1 " " of type ' " " zts_ip_addr const * " " ' " ) ;
}
arg1 = reinterpret_cast < zts_ip_addr * > ( argp1 ) ;
result = ( char * ) zts_ipaddr_ntoa ( ( zts_ip_addr const * ) arg1 ) ;
resultobj = SWIG_FromCharPtr ( ( const char * ) result ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_ipaddr_aton ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
char * arg1 = ( char * ) 0 ;
zts_ip_addr * arg2 = ( zts_ip_addr * ) 0 ;
int res1 ;
char * buf1 = 0 ;
int alloc1 = 0 ;
void * argp2 = 0 ;
int res2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_ipaddr_aton " , 2 , 2 , swig_obj ) ) SWIG_fail ;
res1 = SWIG_AsCharPtrAndSize ( swig_obj [ 0 ] , & buf1 , NULL , & alloc1 ) ;
if ( ! SWIG_IsOK ( res1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res1 ) , " in method ' " " zts_ipaddr_aton " " ', argument " " 1 " " of type ' " " char const * " " ' " ) ;
}
arg1 = reinterpret_cast < char * > ( buf1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , & argp2 , SWIGTYPE_p_zts_ip_addr , 0 | 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_ipaddr_aton " " ', argument " " 2 " " of type ' " " zts_ip_addr * " " ' " ) ;
}
arg2 = reinterpret_cast < zts_ip_addr * > ( argp2 ) ;
result = ( int ) zts_ipaddr_aton ( ( char const * ) arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return resultobj ;
fail :
if ( alloc1 = = SWIG_NEWOBJ ) delete [ ] buf1 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_inet_ntop ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
void * arg2 = ( void * ) 0 ;
char * arg3 = ( char * ) 0 ;
zts_socklen_t arg4 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
int res3 ;
char * buf3 = 0 ;
int alloc3 = 0 ;
unsigned int val4 ;
int ecode4 = 0 ;
PyObject * swig_obj [ 4 ] ;
char * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_inet_ntop " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_inet_ntop " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_ConvertPtr ( swig_obj [ 1 ] , SWIG_as_voidptrptr ( & arg2 ) , 0 , 0 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_inet_ntop " " ', argument " " 2 " " of type ' " " void const * " " ' " ) ;
}
res3 = SWIG_AsCharPtrAndSize ( swig_obj [ 2 ] , & buf3 , NULL , & alloc3 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_inet_ntop " " ', argument " " 3 " " of type ' " " char * " " ' " ) ;
}
arg3 = reinterpret_cast < char * > ( buf3 ) ;
ecode4 = SWIG_AsVal_unsigned_SS_int ( swig_obj [ 3 ] , & val4 ) ;
if ( ! SWIG_IsOK ( ecode4 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode4 ) , " in method ' " " zts_inet_ntop " " ', argument " " 4 " " of type ' " " zts_socklen_t " " ' " ) ;
}
arg4 = static_cast < zts_socklen_t > ( val4 ) ;
result = ( char * ) zts_inet_ntop ( arg1 , ( void const * ) arg2 , arg3 , arg4 ) ;
resultobj = SWIG_FromCharPtr ( ( const char * ) result ) ;
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
return resultobj ;
fail :
if ( alloc3 = = SWIG_NEWOBJ ) delete [ ] buf3 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_inet_pton ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
char * arg2 = ( char * ) 0 ;
void * arg3 = ( void * ) 0 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
char * buf2 = 0 ;
int alloc2 = 0 ;
int res3 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_inet_pton " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_inet_pton " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
res2 = SWIG_AsCharPtrAndSize ( swig_obj [ 1 ] , & buf2 , NULL , & alloc2 ) ;
if ( ! SWIG_IsOK ( res2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res2 ) , " in method ' " " zts_inet_pton " " ', argument " " 2 " " of type ' " " char const * " " ' " ) ;
}
arg2 = reinterpret_cast < char * > ( buf2 ) ;
res3 = SWIG_ConvertPtr ( swig_obj [ 2 ] , SWIG_as_voidptrptr ( & arg3 ) , 0 , 0 ) ;
if ( ! SWIG_IsOK ( res3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( res3 ) , " in method ' " " zts_inet_pton " " ', argument " " 3 " " of type ' " " void * " " ' " ) ;
}
result = ( int ) zts_inet_pton ( arg1 , ( char const * ) arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return resultobj ;
fail :
if ( alloc2 = = SWIG_NEWOBJ ) delete [ ] buf2 ;
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_py_bind ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int arg3 ;
PyObject * arg4 = ( PyObject * ) 0 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 4 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_py_bind " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_py_bind " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_py_bind " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_py_bind " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
arg4 = swig_obj [ 3 ] ;
result = ( int ) zts_py_bind ( arg1 , arg2 , arg3 , arg4 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_py_connect ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int arg3 ;
PyObject * arg4 = ( PyObject * ) 0 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 4 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_py_connect " , 4 , 4 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_py_connect " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_py_connect " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_py_connect " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
arg4 = swig_obj [ 3 ] ;
result = ( int ) zts_py_connect ( arg1 , arg2 , arg3 , arg4 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_py_accept ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
PyObject * result = 0 ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_py_accept " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( PyObject * ) zts_py_accept ( arg1 ) ;
resultobj = result ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_py_listen ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_py_listen " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_py_listen " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_py_listen " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
result = ( int ) zts_py_listen ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_py_recv ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
PyObject * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_py_recv " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_py_recv " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_py_recv " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_py_recv " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
result = ( PyObject * ) zts_py_recv ( arg1 , arg2 , arg3 ) ;
resultobj = result ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_py_send ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
PyObject * arg2 = ( PyObject * ) 0 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject * swig_obj [ 3 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_py_send " , 3 , 3 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_py_send " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
arg2 = swig_obj [ 1 ] ;
ecode3 = SWIG_AsVal_int ( swig_obj [ 2 ] , & val3 ) ;
if ( ! SWIG_IsOK ( ecode3 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode3 ) , " in method ' " " zts_py_send " " ', argument " " 3 " " of type ' " " int " " ' " ) ;
}
arg3 = static_cast < int > ( val3 ) ;
result = ( int ) zts_py_send ( arg1 , arg2 , arg3 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_py_close ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_py_close " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_py_close ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_py_setblocking ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
int result ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_py_setblocking " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_py_setblocking " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_py_setblocking " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
result = ( int ) zts_py_setblocking ( arg1 , arg2 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_py_getblocking ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
int arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject * swig_obj [ 1 ] ;
int result ;
if ( ! args ) SWIG_fail ;
swig_obj [ 0 ] = args ;
ecode1 = SWIG_AsVal_int ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_py_getblocking " " ', argument " " 1 " " of type ' " " int " " ' " ) ;
}
arg1 = static_cast < int > ( val1 ) ;
result = ( int ) zts_py_getblocking ( arg1 ) ;
resultobj = SWIG_From_int ( static_cast < int > ( result ) ) ;
return resultobj ;
fail :
return NULL ;
}
SWIGINTERN PyObject * _wrap_zts_py_addr_get_str ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * args ) {
PyObject * resultobj = 0 ;
uint64_t arg1 ;
int arg2 ;
unsigned long long val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * swig_obj [ 2 ] ;
PyObject * result = 0 ;
if ( ! SWIG_Python_UnpackTuple ( args , " zts_py_addr_get_str " , 2 , 2 , swig_obj ) ) SWIG_fail ;
ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long ( swig_obj [ 0 ] , & val1 ) ;
if ( ! SWIG_IsOK ( ecode1 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode1 ) , " in method ' " " zts_py_addr_get_str " " ', argument " " 1 " " of type ' " " uint64_t " " ' " ) ;
}
arg1 = static_cast < uint64_t > ( val1 ) ;
ecode2 = SWIG_AsVal_int ( swig_obj [ 1 ] , & val2 ) ;
if ( ! SWIG_IsOK ( ecode2 ) ) {
SWIG_exception_fail ( SWIG_ArgError ( ecode2 ) , " in method ' " " zts_py_addr_get_str " " ', argument " " 2 " " of type ' " " int " " ' " ) ;
}
arg2 = static_cast < int > ( val2 ) ;
result = ( PyObject * ) zts_py_addr_get_str ( arg1 , arg2 ) ;
resultobj = result ;
return resultobj ;
fail :
return NULL ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
static PyMethodDef SwigMethods [ ] = {
2021-05-19 21:33:08 -07:00
{ " SWIG_PyInstanceMethod_New " , SWIG_PyInstanceMethod_New , METH_O , NULL } ,
{ " zts_node_info_t_node_id_set " , _wrap_zts_node_info_t_node_id_set , METH_VARARGS , NULL } ,
{ " zts_node_info_t_node_id_get " , _wrap_zts_node_info_t_node_id_get , METH_O , NULL } ,
{ " zts_node_info_t_port_primary_set " , _wrap_zts_node_info_t_port_primary_set , METH_VARARGS , NULL } ,
{ " zts_node_info_t_port_primary_get " , _wrap_zts_node_info_t_port_primary_get , METH_O , NULL } ,
{ " zts_node_info_t_port_secondary_set " , _wrap_zts_node_info_t_port_secondary_set , METH_VARARGS , NULL } ,
{ " zts_node_info_t_port_secondary_get " , _wrap_zts_node_info_t_port_secondary_get , METH_O , NULL } ,
{ " zts_node_info_t_port_tertiary_set " , _wrap_zts_node_info_t_port_tertiary_set , METH_VARARGS , NULL } ,
{ " zts_node_info_t_port_tertiary_get " , _wrap_zts_node_info_t_port_tertiary_get , METH_O , NULL } ,
{ " zts_node_info_t_ver_major_set " , _wrap_zts_node_info_t_ver_major_set , METH_VARARGS , NULL } ,
{ " zts_node_info_t_ver_major_get " , _wrap_zts_node_info_t_ver_major_get , METH_O , NULL } ,
{ " zts_node_info_t_ver_minor_set " , _wrap_zts_node_info_t_ver_minor_set , METH_VARARGS , NULL } ,
{ " zts_node_info_t_ver_minor_get " , _wrap_zts_node_info_t_ver_minor_get , METH_O , NULL } ,
{ " zts_node_info_t_ver_rev_set " , _wrap_zts_node_info_t_ver_rev_set , METH_VARARGS , NULL } ,
{ " zts_node_info_t_ver_rev_get " , _wrap_zts_node_info_t_ver_rev_get , METH_O , NULL } ,
{ " new_zts_node_info_t " , _wrap_new_zts_node_info_t , METH_NOARGS , NULL } ,
{ " delete_zts_node_info_t " , _wrap_delete_zts_node_info_t , METH_O , NULL } ,
{ " zts_node_info_t_swigregister " , zts_node_info_t_swigregister , METH_O , NULL } ,
{ " zts_node_info_t_swiginit " , zts_node_info_t_swiginit , METH_VARARGS , NULL } ,
{ " zts_addr_info_t_net_id_set " , _wrap_zts_addr_info_t_net_id_set , METH_VARARGS , NULL } ,
{ " zts_addr_info_t_net_id_get " , _wrap_zts_addr_info_t_net_id_get , METH_O , NULL } ,
{ " zts_addr_info_t_addr_set " , _wrap_zts_addr_info_t_addr_set , METH_VARARGS , NULL } ,
{ " zts_addr_info_t_addr_get " , _wrap_zts_addr_info_t_addr_get , METH_O , NULL } ,
{ " new_zts_addr_info_t " , _wrap_new_zts_addr_info_t , METH_NOARGS , NULL } ,
{ " delete_zts_addr_info_t " , _wrap_delete_zts_addr_info_t , METH_O , NULL } ,
{ " zts_addr_info_t_swigregister " , zts_addr_info_t_swigregister , METH_O , NULL } ,
{ " zts_addr_info_t_swiginit " , zts_addr_info_t_swiginit , METH_VARARGS , NULL } ,
{ " zts_route_info_t_target_set " , _wrap_zts_route_info_t_target_set , METH_VARARGS , NULL } ,
{ " zts_route_info_t_target_get " , _wrap_zts_route_info_t_target_get , METH_O , NULL } ,
{ " zts_route_info_t_via_set " , _wrap_zts_route_info_t_via_set , METH_VARARGS , NULL } ,
{ " zts_route_info_t_via_get " , _wrap_zts_route_info_t_via_get , METH_O , NULL } ,
{ " zts_route_info_t_flags_set " , _wrap_zts_route_info_t_flags_set , METH_VARARGS , NULL } ,
{ " zts_route_info_t_flags_get " , _wrap_zts_route_info_t_flags_get , METH_O , NULL } ,
{ " zts_route_info_t_metric_set " , _wrap_zts_route_info_t_metric_set , METH_VARARGS , NULL } ,
{ " zts_route_info_t_metric_get " , _wrap_zts_route_info_t_metric_get , METH_O , NULL } ,
{ " new_zts_route_info_t " , _wrap_new_zts_route_info_t , METH_NOARGS , NULL } ,
{ " delete_zts_route_info_t " , _wrap_delete_zts_route_info_t , METH_O , NULL } ,
{ " zts_route_info_t_swigregister " , zts_route_info_t_swigregister , METH_O , NULL } ,
{ " zts_route_info_t_swiginit " , zts_route_info_t_swiginit , METH_VARARGS , NULL } ,
{ " zts_multicast_group_t_mac_set " , _wrap_zts_multicast_group_t_mac_set , METH_VARARGS , NULL } ,
{ " zts_multicast_group_t_mac_get " , _wrap_zts_multicast_group_t_mac_get , METH_O , NULL } ,
{ " zts_multicast_group_t_adi_set " , _wrap_zts_multicast_group_t_adi_set , METH_VARARGS , NULL } ,
{ " zts_multicast_group_t_adi_get " , _wrap_zts_multicast_group_t_adi_get , METH_O , NULL } ,
{ " new_zts_multicast_group_t " , _wrap_new_zts_multicast_group_t , METH_NOARGS , NULL } ,
{ " delete_zts_multicast_group_t " , _wrap_delete_zts_multicast_group_t , METH_O , NULL } ,
{ " zts_multicast_group_t_swigregister " , zts_multicast_group_t_swigregister , METH_O , NULL } ,
{ " zts_multicast_group_t_swiginit " , zts_multicast_group_t_swiginit , METH_VARARGS , NULL } ,
{ " zts_net_info_t_net_id_set " , _wrap_zts_net_info_t_net_id_set , METH_VARARGS , NULL } ,
{ " zts_net_info_t_net_id_get " , _wrap_zts_net_info_t_net_id_get , METH_O , NULL } ,
{ " zts_net_info_t_mac_set " , _wrap_zts_net_info_t_mac_set , METH_VARARGS , NULL } ,
{ " zts_net_info_t_mac_get " , _wrap_zts_net_info_t_mac_get , METH_O , NULL } ,
{ " zts_net_info_t_name_set " , _wrap_zts_net_info_t_name_set , METH_VARARGS , NULL } ,
{ " zts_net_info_t_name_get " , _wrap_zts_net_info_t_name_get , METH_O , NULL } ,
{ " zts_net_info_t_status_set " , _wrap_zts_net_info_t_status_set , METH_VARARGS , NULL } ,
{ " zts_net_info_t_status_get " , _wrap_zts_net_info_t_status_get , METH_O , NULL } ,
{ " zts_net_info_t_type_set " , _wrap_zts_net_info_t_type_set , METH_VARARGS , NULL } ,
{ " zts_net_info_t_type_get " , _wrap_zts_net_info_t_type_get , METH_O , NULL } ,
{ " zts_net_info_t_mtu_set " , _wrap_zts_net_info_t_mtu_set , METH_VARARGS , NULL } ,
{ " zts_net_info_t_mtu_get " , _wrap_zts_net_info_t_mtu_get , METH_O , NULL } ,
{ " zts_net_info_t_dhcp_set " , _wrap_zts_net_info_t_dhcp_set , METH_VARARGS , NULL } ,
{ " zts_net_info_t_dhcp_get " , _wrap_zts_net_info_t_dhcp_get , METH_O , NULL } ,
{ " zts_net_info_t_bridge_set " , _wrap_zts_net_info_t_bridge_set , METH_VARARGS , NULL } ,
{ " zts_net_info_t_bridge_get " , _wrap_zts_net_info_t_bridge_get , METH_O , NULL } ,
{ " zts_net_info_t_broadcast_enabled_set " , _wrap_zts_net_info_t_broadcast_enabled_set , METH_VARARGS , NULL } ,
{ " zts_net_info_t_broadcast_enabled_get " , _wrap_zts_net_info_t_broadcast_enabled_get , METH_O , NULL } ,
{ " zts_net_info_t_port_error_set " , _wrap_zts_net_info_t_port_error_set , METH_VARARGS , NULL } ,
{ " zts_net_info_t_port_error_get " , _wrap_zts_net_info_t_port_error_get , METH_O , NULL } ,
{ " zts_net_info_t_netconf_rev_set " , _wrap_zts_net_info_t_netconf_rev_set , METH_VARARGS , NULL } ,
{ " zts_net_info_t_netconf_rev_get " , _wrap_zts_net_info_t_netconf_rev_get , METH_O , NULL } ,
{ " zts_net_info_t_assigned_addr_count_set " , _wrap_zts_net_info_t_assigned_addr_count_set , METH_VARARGS , NULL } ,
{ " zts_net_info_t_assigned_addr_count_get " , _wrap_zts_net_info_t_assigned_addr_count_get , METH_O , NULL } ,
{ " zts_net_info_t_assigned_addrs_set " , _wrap_zts_net_info_t_assigned_addrs_set , METH_VARARGS , NULL } ,
{ " zts_net_info_t_assigned_addrs_get " , _wrap_zts_net_info_t_assigned_addrs_get , METH_O , NULL } ,
{ " zts_net_info_t_route_count_set " , _wrap_zts_net_info_t_route_count_set , METH_VARARGS , NULL } ,
{ " zts_net_info_t_route_count_get " , _wrap_zts_net_info_t_route_count_get , METH_O , NULL } ,
{ " zts_net_info_t_routes_set " , _wrap_zts_net_info_t_routes_set , METH_VARARGS , NULL } ,
{ " zts_net_info_t_routes_get " , _wrap_zts_net_info_t_routes_get , METH_O , NULL } ,
{ " zts_net_info_t_multicast_sub_count_set " , _wrap_zts_net_info_t_multicast_sub_count_set , METH_VARARGS , NULL } ,
{ " zts_net_info_t_multicast_sub_count_get " , _wrap_zts_net_info_t_multicast_sub_count_get , METH_O , NULL } ,
{ " new_zts_net_info_t " , _wrap_new_zts_net_info_t , METH_NOARGS , NULL } ,
{ " delete_zts_net_info_t " , _wrap_delete_zts_net_info_t , METH_O , NULL } ,
{ " zts_net_info_t_swigregister " , zts_net_info_t_swigregister , METH_O , NULL } ,
{ " zts_net_info_t_swiginit " , zts_net_info_t_swiginit , METH_VARARGS , NULL } ,
{ " zts_path_t_address_set " , _wrap_zts_path_t_address_set , METH_VARARGS , NULL } ,
{ " zts_path_t_address_get " , _wrap_zts_path_t_address_get , METH_O , NULL } ,
{ " zts_path_t_last_tx_set " , _wrap_zts_path_t_last_tx_set , METH_VARARGS , NULL } ,
{ " zts_path_t_last_tx_get " , _wrap_zts_path_t_last_tx_get , METH_O , NULL } ,
{ " zts_path_t_last_rx_set " , _wrap_zts_path_t_last_rx_set , METH_VARARGS , NULL } ,
{ " zts_path_t_last_rx_get " , _wrap_zts_path_t_last_rx_get , METH_O , NULL } ,
{ " zts_path_t_trusted_path_id_set " , _wrap_zts_path_t_trusted_path_id_set , METH_VARARGS , NULL } ,
{ " zts_path_t_trusted_path_id_get " , _wrap_zts_path_t_trusted_path_id_get , METH_O , NULL } ,
{ " zts_path_t_latency_set " , _wrap_zts_path_t_latency_set , METH_VARARGS , NULL } ,
{ " zts_path_t_latency_get " , _wrap_zts_path_t_latency_get , METH_O , NULL } ,
{ " zts_path_t_unused_0_set " , _wrap_zts_path_t_unused_0_set , METH_VARARGS , NULL } ,
{ " zts_path_t_unused_0_get " , _wrap_zts_path_t_unused_0_get , METH_O , NULL } ,
{ " zts_path_t_unused_1_set " , _wrap_zts_path_t_unused_1_set , METH_VARARGS , NULL } ,
{ " zts_path_t_unused_1_get " , _wrap_zts_path_t_unused_1_get , METH_O , NULL } ,
{ " zts_path_t_unused_2_set " , _wrap_zts_path_t_unused_2_set , METH_VARARGS , NULL } ,
{ " zts_path_t_unused_2_get " , _wrap_zts_path_t_unused_2_get , METH_O , NULL } ,
{ " zts_path_t_unused_3_set " , _wrap_zts_path_t_unused_3_set , METH_VARARGS , NULL } ,
{ " zts_path_t_unused_3_get " , _wrap_zts_path_t_unused_3_get , METH_O , NULL } ,
{ " zts_path_t_unused_4_set " , _wrap_zts_path_t_unused_4_set , METH_VARARGS , NULL } ,
{ " zts_path_t_unused_4_get " , _wrap_zts_path_t_unused_4_get , METH_O , NULL } ,
{ " zts_path_t_unused_5_set " , _wrap_zts_path_t_unused_5_set , METH_VARARGS , NULL } ,
{ " zts_path_t_unused_5_get " , _wrap_zts_path_t_unused_5_get , METH_O , NULL } ,
{ " zts_path_t_unused_6_set " , _wrap_zts_path_t_unused_6_set , METH_VARARGS , NULL } ,
{ " zts_path_t_unused_6_get " , _wrap_zts_path_t_unused_6_get , METH_O , NULL } ,
{ " zts_path_t_unused_7_set " , _wrap_zts_path_t_unused_7_set , METH_VARARGS , NULL } ,
{ " zts_path_t_unused_7_get " , _wrap_zts_path_t_unused_7_get , METH_O , NULL } ,
{ " zts_path_t_ifname_set " , _wrap_zts_path_t_ifname_set , METH_VARARGS , NULL } ,
{ " zts_path_t_ifname_get " , _wrap_zts_path_t_ifname_get , METH_O , NULL } ,
{ " zts_path_t_expired_set " , _wrap_zts_path_t_expired_set , METH_VARARGS , NULL } ,
{ " zts_path_t_expired_get " , _wrap_zts_path_t_expired_get , METH_O , NULL } ,
{ " zts_path_t_preferred_set " , _wrap_zts_path_t_preferred_set , METH_VARARGS , NULL } ,
{ " zts_path_t_preferred_get " , _wrap_zts_path_t_preferred_get , METH_O , NULL } ,
{ " new_zts_path_t " , _wrap_new_zts_path_t , METH_NOARGS , NULL } ,
{ " delete_zts_path_t " , _wrap_delete_zts_path_t , METH_O , NULL } ,
{ " zts_path_t_swigregister " , zts_path_t_swigregister , METH_O , NULL } ,
{ " zts_path_t_swiginit " , zts_path_t_swiginit , METH_VARARGS , NULL } ,
{ " zts_peer_info_t_peer_id_set " , _wrap_zts_peer_info_t_peer_id_set , METH_VARARGS , NULL } ,
{ " zts_peer_info_t_peer_id_get " , _wrap_zts_peer_info_t_peer_id_get , METH_O , NULL } ,
{ " zts_peer_info_t_ver_major_set " , _wrap_zts_peer_info_t_ver_major_set , METH_VARARGS , NULL } ,
{ " zts_peer_info_t_ver_major_get " , _wrap_zts_peer_info_t_ver_major_get , METH_O , NULL } ,
{ " zts_peer_info_t_ver_minor_set " , _wrap_zts_peer_info_t_ver_minor_set , METH_VARARGS , NULL } ,
{ " zts_peer_info_t_ver_minor_get " , _wrap_zts_peer_info_t_ver_minor_get , METH_O , NULL } ,
{ " zts_peer_info_t_ver_rev_set " , _wrap_zts_peer_info_t_ver_rev_set , METH_VARARGS , NULL } ,
{ " zts_peer_info_t_ver_rev_get " , _wrap_zts_peer_info_t_ver_rev_get , METH_O , NULL } ,
{ " zts_peer_info_t_latency_set " , _wrap_zts_peer_info_t_latency_set , METH_VARARGS , NULL } ,
{ " zts_peer_info_t_latency_get " , _wrap_zts_peer_info_t_latency_get , METH_O , NULL } ,
{ " zts_peer_info_t_role_set " , _wrap_zts_peer_info_t_role_set , METH_VARARGS , NULL } ,
{ " zts_peer_info_t_role_get " , _wrap_zts_peer_info_t_role_get , METH_O , NULL } ,
{ " zts_peer_info_t_path_count_set " , _wrap_zts_peer_info_t_path_count_set , METH_VARARGS , NULL } ,
{ " zts_peer_info_t_path_count_get " , _wrap_zts_peer_info_t_path_count_get , METH_O , NULL } ,
{ " zts_peer_info_t_unused_0_set " , _wrap_zts_peer_info_t_unused_0_set , METH_VARARGS , NULL } ,
{ " zts_peer_info_t_unused_0_get " , _wrap_zts_peer_info_t_unused_0_get , METH_O , NULL } ,
{ " zts_peer_info_t_paths_set " , _wrap_zts_peer_info_t_paths_set , METH_VARARGS , NULL } ,
{ " zts_peer_info_t_paths_get " , _wrap_zts_peer_info_t_paths_get , METH_O , NULL } ,
{ " new_zts_peer_info_t " , _wrap_new_zts_peer_info_t , METH_NOARGS , NULL } ,
{ " delete_zts_peer_info_t " , _wrap_delete_zts_peer_info_t , METH_O , NULL } ,
{ " zts_peer_info_t_swigregister " , zts_peer_info_t_swigregister , METH_O , NULL } ,
{ " zts_peer_info_t_swiginit " , zts_peer_info_t_swiginit , METH_VARARGS , NULL } ,
{ " zts_root_set_t_public_id_str_set " , _wrap_zts_root_set_t_public_id_str_set , METH_VARARGS , NULL } ,
{ " zts_root_set_t_public_id_str_get " , _wrap_zts_root_set_t_public_id_str_get , METH_O , NULL } ,
{ " zts_root_set_t_endpoint_ip_str_set " , _wrap_zts_root_set_t_endpoint_ip_str_set , METH_VARARGS , NULL } ,
{ " zts_root_set_t_endpoint_ip_str_get " , _wrap_zts_root_set_t_endpoint_ip_str_get , METH_O , NULL } ,
{ " new_zts_root_set_t " , _wrap_new_zts_root_set_t , METH_NOARGS , NULL } ,
{ " delete_zts_root_set_t " , _wrap_delete_zts_root_set_t , METH_O , NULL } ,
{ " zts_root_set_t_swigregister " , zts_root_set_t_swigregister , METH_O , NULL } ,
{ " zts_root_set_t_swiginit " , zts_root_set_t_swiginit , METH_VARARGS , NULL } ,
{ " zts_netif_info_t_net_id_set " , _wrap_zts_netif_info_t_net_id_set , METH_VARARGS , NULL } ,
{ " zts_netif_info_t_net_id_get " , _wrap_zts_netif_info_t_net_id_get , METH_O , NULL } ,
{ " zts_netif_info_t_mac_set " , _wrap_zts_netif_info_t_mac_set , METH_VARARGS , NULL } ,
{ " zts_netif_info_t_mac_get " , _wrap_zts_netif_info_t_mac_get , METH_O , NULL } ,
{ " zts_netif_info_t_mtu_set " , _wrap_zts_netif_info_t_mtu_set , METH_VARARGS , NULL } ,
{ " zts_netif_info_t_mtu_get " , _wrap_zts_netif_info_t_mtu_get , METH_O , NULL } ,
{ " new_zts_netif_info_t " , _wrap_new_zts_netif_info_t , METH_NOARGS , NULL } ,
{ " delete_zts_netif_info_t " , _wrap_delete_zts_netif_info_t , METH_O , NULL } ,
{ " zts_netif_info_t_swigregister " , zts_netif_info_t_swigregister , METH_O , NULL } ,
{ " zts_netif_info_t_swiginit " , zts_netif_info_t_swiginit , METH_VARARGS , NULL } ,
{ " zts_event_msg_t_event_code_set " , _wrap_zts_event_msg_t_event_code_set , METH_VARARGS , NULL } ,
{ " zts_event_msg_t_event_code_get " , _wrap_zts_event_msg_t_event_code_get , METH_O , NULL } ,
{ " zts_event_msg_t_node_set " , _wrap_zts_event_msg_t_node_set , METH_VARARGS , NULL } ,
{ " zts_event_msg_t_node_get " , _wrap_zts_event_msg_t_node_get , METH_O , NULL } ,
{ " zts_event_msg_t_network_set " , _wrap_zts_event_msg_t_network_set , METH_VARARGS , NULL } ,
{ " zts_event_msg_t_network_get " , _wrap_zts_event_msg_t_network_get , METH_O , NULL } ,
{ " zts_event_msg_t_netif_set " , _wrap_zts_event_msg_t_netif_set , METH_VARARGS , NULL } ,
{ " zts_event_msg_t_netif_get " , _wrap_zts_event_msg_t_netif_get , METH_O , NULL } ,
{ " zts_event_msg_t_route_set " , _wrap_zts_event_msg_t_route_set , METH_VARARGS , NULL } ,
{ " zts_event_msg_t_route_get " , _wrap_zts_event_msg_t_route_get , METH_O , NULL } ,
{ " zts_event_msg_t_peer_set " , _wrap_zts_event_msg_t_peer_set , METH_VARARGS , NULL } ,
{ " zts_event_msg_t_peer_get " , _wrap_zts_event_msg_t_peer_get , METH_O , NULL } ,
{ " zts_event_msg_t_addr_set " , _wrap_zts_event_msg_t_addr_set , METH_VARARGS , NULL } ,
{ " zts_event_msg_t_addr_get " , _wrap_zts_event_msg_t_addr_get , METH_O , NULL } ,
{ " zts_event_msg_t_cache_set " , _wrap_zts_event_msg_t_cache_set , METH_VARARGS , NULL } ,
{ " zts_event_msg_t_cache_get " , _wrap_zts_event_msg_t_cache_get , METH_O , NULL } ,
{ " zts_event_msg_t_len_set " , _wrap_zts_event_msg_t_len_set , METH_VARARGS , NULL } ,
{ " zts_event_msg_t_len_get " , _wrap_zts_event_msg_t_len_get , METH_O , NULL } ,
{ " new_zts_event_msg_t " , _wrap_new_zts_event_msg_t , METH_NOARGS , NULL } ,
{ " delete_zts_event_msg_t " , _wrap_delete_zts_event_msg_t , METH_O , NULL } ,
{ " zts_event_msg_t_swigregister " , zts_event_msg_t_swigregister , METH_O , NULL } ,
{ " zts_event_msg_t_swiginit " , zts_event_msg_t_swiginit , METH_VARARGS , NULL } ,
{ " zts_id_new " , _wrap_zts_id_new , METH_VARARGS , NULL } ,
{ " zts_id_pair_is_valid " , _wrap_zts_id_pair_is_valid , METH_VARARGS , NULL } ,
{ " zts_init_from_storage " , _wrap_zts_init_from_storage , METH_O , NULL } ,
{ " zts_init_from_memory " , _wrap_zts_init_from_memory , METH_VARARGS , NULL } ,
{ " PythonDirectorCallbackClass_on_zerotier_event " , _wrap_PythonDirectorCallbackClass_on_zerotier_event , METH_VARARGS , NULL } ,
{ " delete_PythonDirectorCallbackClass " , _wrap_delete_PythonDirectorCallbackClass , METH_O , NULL } ,
{ " new_PythonDirectorCallbackClass " , _wrap_new_PythonDirectorCallbackClass , METH_O , NULL } ,
{ " disown_PythonDirectorCallbackClass " , _wrap_disown_PythonDirectorCallbackClass , METH_O , NULL } ,
{ " PythonDirectorCallbackClass_swigregister " , PythonDirectorCallbackClass_swigregister , METH_O , NULL } ,
{ " PythonDirectorCallbackClass_swiginit " , PythonDirectorCallbackClass_swiginit , METH_VARARGS , NULL } ,
{ " zts_init_set_event_handler " , _wrap_zts_init_set_event_handler , METH_O , NULL } ,
{ " zts_init_blacklist_if " , _wrap_zts_init_blacklist_if , METH_VARARGS , NULL } ,
{ " zts_init_set_roots " , _wrap_zts_init_set_roots , METH_VARARGS , NULL } ,
{ " zts_init_set_port " , _wrap_zts_init_set_port , METH_O , NULL } ,
{ " zts_init_set_random_port_range " , _wrap_zts_init_set_random_port_range , METH_VARARGS , NULL } ,
{ " zts_init_allow_secondary_port " , _wrap_zts_init_allow_secondary_port , METH_O , NULL } ,
{ " zts_init_allow_port_mapping " , _wrap_zts_init_allow_port_mapping , METH_O , NULL } ,
{ " zts_init_allow_net_cache " , _wrap_zts_init_allow_net_cache , METH_O , NULL } ,
{ " zts_init_allow_peer_cache " , _wrap_zts_init_allow_peer_cache , METH_O , NULL } ,
{ " zts_init_allow_roots_cache " , _wrap_zts_init_allow_roots_cache , METH_O , NULL } ,
{ " zts_init_allow_id_cache " , _wrap_zts_init_allow_id_cache , METH_O , NULL } ,
{ " zts_addr_is_assigned " , _wrap_zts_addr_is_assigned , METH_VARARGS , NULL } ,
{ " zts_addr_get " , _wrap_zts_addr_get , METH_VARARGS , NULL } ,
{ " zts_addr_get_str " , _wrap_zts_addr_get_str , METH_VARARGS , NULL } ,
{ " zts_addr_get_all " , _wrap_zts_addr_get_all , METH_VARARGS , NULL } ,
{ " zts_addr_compute_6plane " , _wrap_zts_addr_compute_6plane , METH_VARARGS , NULL } ,
{ " zts_addr_compute_rfc4193 " , _wrap_zts_addr_compute_rfc4193 , METH_VARARGS , NULL } ,
{ " zts_addr_compute_rfc4193_str " , _wrap_zts_addr_compute_rfc4193_str , METH_VARARGS , NULL } ,
{ " zts_addr_compute_6plane_str " , _wrap_zts_addr_compute_6plane_str , METH_VARARGS , NULL } ,
{ " zts_net_compute_adhoc_id " , _wrap_zts_net_compute_adhoc_id , METH_VARARGS , NULL } ,
{ " zts_net_join " , _wrap_zts_net_join , METH_O , NULL } ,
{ " zts_net_leave " , _wrap_zts_net_leave , METH_O , NULL } ,
{ " zts_net_transport_is_ready " , _wrap_zts_net_transport_is_ready , METH_O , NULL } ,
{ " zts_net_get_mac " , _wrap_zts_net_get_mac , METH_O , NULL } ,
{ " zts_net_get_mac_str " , _wrap_zts_net_get_mac_str , METH_VARARGS , NULL } ,
{ " zts_net_get_broadcast " , _wrap_zts_net_get_broadcast , METH_O , NULL } ,
{ " zts_net_get_mtu " , _wrap_zts_net_get_mtu , METH_O , NULL } ,
{ " zts_net_get_name " , _wrap_zts_net_get_name , METH_VARARGS , NULL } ,
{ " zts_net_get_status " , _wrap_zts_net_get_status , METH_O , NULL } ,
{ " zts_net_get_type " , _wrap_zts_net_get_type , METH_O , NULL } ,
{ " zts_route_is_assigned " , _wrap_zts_route_is_assigned , METH_VARARGS , NULL } ,
{ " zts_node_start " , _wrap_zts_node_start , METH_NOARGS , NULL } ,
{ " zts_node_is_online " , _wrap_zts_node_is_online , METH_NOARGS , NULL } ,
{ " zts_node_get_id " , _wrap_zts_node_get_id , METH_NOARGS , NULL } ,
{ " zts_node_get_id_pair " , _wrap_zts_node_get_id_pair , METH_VARARGS , NULL } ,
{ " zts_node_get_port " , _wrap_zts_node_get_port , METH_NOARGS , NULL } ,
{ " zts_node_stop " , _wrap_zts_node_stop , METH_NOARGS , NULL } ,
{ " zts_node_free " , _wrap_zts_node_free , METH_NOARGS , NULL } ,
{ " zts_moon_orbit " , _wrap_zts_moon_orbit , METH_VARARGS , NULL } ,
{ " zts_moon_deorbit " , _wrap_zts_moon_deorbit , METH_O , NULL } ,
{ " zts_stats_counter_t_link_tx_set " , _wrap_zts_stats_counter_t_link_tx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_link_tx_get " , _wrap_zts_stats_counter_t_link_tx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_link_rx_set " , _wrap_zts_stats_counter_t_link_rx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_link_rx_get " , _wrap_zts_stats_counter_t_link_rx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_link_drop_set " , _wrap_zts_stats_counter_t_link_drop_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_link_drop_get " , _wrap_zts_stats_counter_t_link_drop_get , METH_O , NULL } ,
{ " zts_stats_counter_t_link_err_set " , _wrap_zts_stats_counter_t_link_err_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_link_err_get " , _wrap_zts_stats_counter_t_link_err_get , METH_O , NULL } ,
{ " zts_stats_counter_t_etharp_tx_set " , _wrap_zts_stats_counter_t_etharp_tx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_etharp_tx_get " , _wrap_zts_stats_counter_t_etharp_tx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_etharp_rx_set " , _wrap_zts_stats_counter_t_etharp_rx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_etharp_rx_get " , _wrap_zts_stats_counter_t_etharp_rx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_etharp_drop_set " , _wrap_zts_stats_counter_t_etharp_drop_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_etharp_drop_get " , _wrap_zts_stats_counter_t_etharp_drop_get , METH_O , NULL } ,
{ " zts_stats_counter_t_etharp_err_set " , _wrap_zts_stats_counter_t_etharp_err_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_etharp_err_get " , _wrap_zts_stats_counter_t_etharp_err_get , METH_O , NULL } ,
{ " zts_stats_counter_t_ip4_tx_set " , _wrap_zts_stats_counter_t_ip4_tx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_ip4_tx_get " , _wrap_zts_stats_counter_t_ip4_tx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_ip4_rx_set " , _wrap_zts_stats_counter_t_ip4_rx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_ip4_rx_get " , _wrap_zts_stats_counter_t_ip4_rx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_ip4_drop_set " , _wrap_zts_stats_counter_t_ip4_drop_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_ip4_drop_get " , _wrap_zts_stats_counter_t_ip4_drop_get , METH_O , NULL } ,
{ " zts_stats_counter_t_ip4_err_set " , _wrap_zts_stats_counter_t_ip4_err_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_ip4_err_get " , _wrap_zts_stats_counter_t_ip4_err_get , METH_O , NULL } ,
{ " zts_stats_counter_t_ip6_tx_set " , _wrap_zts_stats_counter_t_ip6_tx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_ip6_tx_get " , _wrap_zts_stats_counter_t_ip6_tx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_ip6_rx_set " , _wrap_zts_stats_counter_t_ip6_rx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_ip6_rx_get " , _wrap_zts_stats_counter_t_ip6_rx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_ip6_drop_set " , _wrap_zts_stats_counter_t_ip6_drop_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_ip6_drop_get " , _wrap_zts_stats_counter_t_ip6_drop_get , METH_O , NULL } ,
{ " zts_stats_counter_t_ip6_err_set " , _wrap_zts_stats_counter_t_ip6_err_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_ip6_err_get " , _wrap_zts_stats_counter_t_ip6_err_get , METH_O , NULL } ,
{ " zts_stats_counter_t_icmp4_tx_set " , _wrap_zts_stats_counter_t_icmp4_tx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_icmp4_tx_get " , _wrap_zts_stats_counter_t_icmp4_tx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_icmp4_rx_set " , _wrap_zts_stats_counter_t_icmp4_rx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_icmp4_rx_get " , _wrap_zts_stats_counter_t_icmp4_rx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_icmp4_drop_set " , _wrap_zts_stats_counter_t_icmp4_drop_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_icmp4_drop_get " , _wrap_zts_stats_counter_t_icmp4_drop_get , METH_O , NULL } ,
{ " zts_stats_counter_t_icmp4_err_set " , _wrap_zts_stats_counter_t_icmp4_err_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_icmp4_err_get " , _wrap_zts_stats_counter_t_icmp4_err_get , METH_O , NULL } ,
{ " zts_stats_counter_t_icmp6_tx_set " , _wrap_zts_stats_counter_t_icmp6_tx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_icmp6_tx_get " , _wrap_zts_stats_counter_t_icmp6_tx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_icmp6_rx_set " , _wrap_zts_stats_counter_t_icmp6_rx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_icmp6_rx_get " , _wrap_zts_stats_counter_t_icmp6_rx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_icmp6_drop_set " , _wrap_zts_stats_counter_t_icmp6_drop_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_icmp6_drop_get " , _wrap_zts_stats_counter_t_icmp6_drop_get , METH_O , NULL } ,
{ " zts_stats_counter_t_icmp6_err_set " , _wrap_zts_stats_counter_t_icmp6_err_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_icmp6_err_get " , _wrap_zts_stats_counter_t_icmp6_err_get , METH_O , NULL } ,
{ " zts_stats_counter_t_udp_tx_set " , _wrap_zts_stats_counter_t_udp_tx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_udp_tx_get " , _wrap_zts_stats_counter_t_udp_tx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_udp_rx_set " , _wrap_zts_stats_counter_t_udp_rx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_udp_rx_get " , _wrap_zts_stats_counter_t_udp_rx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_udp_drop_set " , _wrap_zts_stats_counter_t_udp_drop_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_udp_drop_get " , _wrap_zts_stats_counter_t_udp_drop_get , METH_O , NULL } ,
{ " zts_stats_counter_t_udp_err_set " , _wrap_zts_stats_counter_t_udp_err_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_udp_err_get " , _wrap_zts_stats_counter_t_udp_err_get , METH_O , NULL } ,
{ " zts_stats_counter_t_tcp_tx_set " , _wrap_zts_stats_counter_t_tcp_tx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_tcp_tx_get " , _wrap_zts_stats_counter_t_tcp_tx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_tcp_rx_set " , _wrap_zts_stats_counter_t_tcp_rx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_tcp_rx_get " , _wrap_zts_stats_counter_t_tcp_rx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_tcp_drop_set " , _wrap_zts_stats_counter_t_tcp_drop_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_tcp_drop_get " , _wrap_zts_stats_counter_t_tcp_drop_get , METH_O , NULL } ,
{ " zts_stats_counter_t_tcp_err_set " , _wrap_zts_stats_counter_t_tcp_err_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_tcp_err_get " , _wrap_zts_stats_counter_t_tcp_err_get , METH_O , NULL } ,
{ " zts_stats_counter_t_nd6_tx_set " , _wrap_zts_stats_counter_t_nd6_tx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_nd6_tx_get " , _wrap_zts_stats_counter_t_nd6_tx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_nd6_rx_set " , _wrap_zts_stats_counter_t_nd6_rx_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_nd6_rx_get " , _wrap_zts_stats_counter_t_nd6_rx_get , METH_O , NULL } ,
{ " zts_stats_counter_t_nd6_drop_set " , _wrap_zts_stats_counter_t_nd6_drop_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_nd6_drop_get " , _wrap_zts_stats_counter_t_nd6_drop_get , METH_O , NULL } ,
{ " zts_stats_counter_t_nd6_err_set " , _wrap_zts_stats_counter_t_nd6_err_set , METH_VARARGS , NULL } ,
{ " zts_stats_counter_t_nd6_err_get " , _wrap_zts_stats_counter_t_nd6_err_get , METH_O , NULL } ,
{ " new_zts_stats_counter_t " , _wrap_new_zts_stats_counter_t , METH_NOARGS , NULL } ,
{ " delete_zts_stats_counter_t " , _wrap_delete_zts_stats_counter_t , METH_O , NULL } ,
{ " zts_stats_counter_t_swigregister " , zts_stats_counter_t_swigregister , METH_O , NULL } ,
{ " zts_stats_counter_t_swiginit " , zts_stats_counter_t_swiginit , METH_VARARGS , NULL } ,
{ " zts_stats_get_all " , _wrap_zts_stats_get_all , METH_O , NULL } ,
{ " zts_bsd_socket " , _wrap_zts_bsd_socket , METH_VARARGS , NULL } ,
{ " zts_bsd_connect " , _wrap_zts_bsd_connect , METH_VARARGS , NULL } ,
{ " zts_bsd_bind " , _wrap_zts_bsd_bind , METH_VARARGS , NULL } ,
{ " zts_bsd_listen " , _wrap_zts_bsd_listen , METH_VARARGS , NULL } ,
{ " zts_bsd_accept " , _wrap_zts_bsd_accept , METH_VARARGS , NULL } ,
{ " zts_bsd_setsockopt " , _wrap_zts_bsd_setsockopt , METH_VARARGS , NULL } ,
{ " zts_bsd_getsockopt " , _wrap_zts_bsd_getsockopt , METH_VARARGS , NULL } ,
{ " zts_bsd_getsockname " , _wrap_zts_bsd_getsockname , METH_VARARGS , NULL } ,
{ " zts_bsd_getpeername " , _wrap_zts_bsd_getpeername , METH_VARARGS , NULL } ,
{ " zts_bsd_close " , _wrap_zts_bsd_close , METH_O , NULL } ,
{ " zts_timeval_tv_sec_set " , _wrap_zts_timeval_tv_sec_set , METH_VARARGS , NULL } ,
{ " zts_timeval_tv_sec_get " , _wrap_zts_timeval_tv_sec_get , METH_O , NULL } ,
{ " zts_timeval_tv_usec_set " , _wrap_zts_timeval_tv_usec_set , METH_VARARGS , NULL } ,
{ " zts_timeval_tv_usec_get " , _wrap_zts_timeval_tv_usec_get , METH_O , NULL } ,
{ " new_zts_timeval " , _wrap_new_zts_timeval , METH_NOARGS , NULL } ,
{ " delete_zts_timeval " , _wrap_delete_zts_timeval , METH_O , NULL } ,
{ " zts_timeval_swigregister " , zts_timeval_swigregister , METH_O , NULL } ,
{ " zts_timeval_swiginit " , zts_timeval_swiginit , METH_VARARGS , NULL } ,
{ " zts_bsd_select " , _wrap_zts_bsd_select , METH_VARARGS , NULL } ,
{ " zts_bsd_fcntl " , _wrap_zts_bsd_fcntl , METH_VARARGS , NULL } ,
{ " zts_bsd_poll " , _wrap_zts_bsd_poll , METH_VARARGS , NULL } ,
{ " zts_bsd_ioctl " , _wrap_zts_bsd_ioctl , METH_VARARGS , NULL } ,
{ " zts_bsd_send " , _wrap_zts_bsd_send , METH_VARARGS , NULL } ,
{ " zts_bsd_sendto " , _wrap_zts_bsd_sendto , METH_VARARGS , NULL } ,
{ " zts_iovec_iov_base_set " , _wrap_zts_iovec_iov_base_set , METH_VARARGS , NULL } ,
{ " zts_iovec_iov_base_get " , _wrap_zts_iovec_iov_base_get , METH_O , NULL } ,
{ " zts_iovec_iov_len_set " , _wrap_zts_iovec_iov_len_set , METH_VARARGS , NULL } ,
{ " zts_iovec_iov_len_get " , _wrap_zts_iovec_iov_len_get , METH_O , NULL } ,
{ " new_zts_iovec " , _wrap_new_zts_iovec , METH_NOARGS , NULL } ,
{ " delete_zts_iovec " , _wrap_delete_zts_iovec , METH_O , NULL } ,
{ " zts_iovec_swigregister " , zts_iovec_swigregister , METH_O , NULL } ,
{ " zts_iovec_swiginit " , zts_iovec_swiginit , METH_VARARGS , NULL } ,
{ " zts_bsd_sendmsg " , _wrap_zts_bsd_sendmsg , METH_VARARGS , NULL } ,
{ " zts_bsd_recv " , _wrap_zts_bsd_recv , METH_VARARGS , NULL } ,
{ " zts_bsd_recvfrom " , _wrap_zts_bsd_recvfrom , METH_VARARGS , NULL } ,
{ " zts_bsd_recvmsg " , _wrap_zts_bsd_recvmsg , METH_VARARGS , NULL } ,
{ " zts_bsd_read " , _wrap_zts_bsd_read , METH_VARARGS , NULL } ,
{ " zts_bsd_readv " , _wrap_zts_bsd_readv , METH_VARARGS , NULL } ,
{ " zts_bsd_write " , _wrap_zts_bsd_write , METH_VARARGS , NULL } ,
{ " zts_bsd_writev " , _wrap_zts_bsd_writev , METH_VARARGS , NULL } ,
{ " zts_bsd_shutdown " , _wrap_zts_bsd_shutdown , METH_VARARGS , NULL } ,
{ " zts_socket " , _wrap_zts_socket , METH_VARARGS , NULL } ,
{ " zts_connect " , _wrap_zts_connect , METH_VARARGS , NULL } ,
{ " zts_bind " , _wrap_zts_bind , METH_VARARGS , NULL } ,
{ " zts_listen " , _wrap_zts_listen , METH_VARARGS , NULL } ,
{ " zts_accept " , _wrap_zts_accept , METH_VARARGS , NULL } ,
{ " zts_send " , _wrap_zts_send , METH_VARARGS , NULL } ,
{ " zts_recv " , _wrap_zts_recv , METH_VARARGS , NULL } ,
{ " zts_read " , _wrap_zts_read , METH_VARARGS , NULL } ,
{ " zts_write " , _wrap_zts_write , METH_VARARGS , NULL } ,
{ " zts_shutdown_rd " , _wrap_zts_shutdown_rd , METH_O , NULL } ,
{ " zts_shutdown_wr " , _wrap_zts_shutdown_wr , METH_O , NULL } ,
{ " zts_shutdown_rdwr " , _wrap_zts_shutdown_rdwr , METH_O , NULL } ,
{ " zts_close " , _wrap_zts_close , METH_O , NULL } ,
{ " zts_getpeername " , _wrap_zts_getpeername , METH_VARARGS , NULL } ,
{ " zts_getsockname " , _wrap_zts_getsockname , METH_VARARGS , NULL } ,
{ " zts_tcp_client " , _wrap_zts_tcp_client , METH_VARARGS , NULL } ,
{ " zts_tcp_server " , _wrap_zts_tcp_server , METH_VARARGS , NULL } ,
{ " zts_udp_server " , _wrap_zts_udp_server , METH_VARARGS , NULL } ,
{ " zts_udp_client " , _wrap_zts_udp_client , METH_O , NULL } ,
{ " zts_set_no_delay " , _wrap_zts_set_no_delay , METH_VARARGS , NULL } ,
{ " zts_get_last_socket_error " , _wrap_zts_get_last_socket_error , METH_O , NULL } ,
{ " zts_get_data_available " , _wrap_zts_get_data_available , METH_O , NULL } ,
{ " zts_get_no_delay " , _wrap_zts_get_no_delay , METH_O , NULL } ,
{ " zts_set_linger " , _wrap_zts_set_linger , METH_VARARGS , NULL } ,
{ " zts_get_linger_enabled " , _wrap_zts_get_linger_enabled , METH_O , NULL } ,
{ " zts_get_linger_value " , _wrap_zts_get_linger_value , METH_O , NULL } ,
{ " zts_get_pending_data_size " , _wrap_zts_get_pending_data_size , METH_O , NULL } ,
{ " zts_set_reuse_addr " , _wrap_zts_set_reuse_addr , METH_VARARGS , NULL } ,
{ " zts_get_reuse_addr " , _wrap_zts_get_reuse_addr , METH_O , NULL } ,
{ " zts_set_recv_timeout " , _wrap_zts_set_recv_timeout , METH_VARARGS , NULL } ,
{ " zts_get_recv_timeout " , _wrap_zts_get_recv_timeout , METH_O , NULL } ,
{ " zts_set_send_timeout " , _wrap_zts_set_send_timeout , METH_VARARGS , NULL } ,
{ " zts_get_send_timeout " , _wrap_zts_get_send_timeout , METH_O , NULL } ,
{ " zts_set_send_buf_size " , _wrap_zts_set_send_buf_size , METH_VARARGS , NULL } ,
{ " zts_get_send_buf_size " , _wrap_zts_get_send_buf_size , METH_O , NULL } ,
{ " zts_set_recv_buf_size " , _wrap_zts_set_recv_buf_size , METH_VARARGS , NULL } ,
{ " zts_get_recv_buf_size " , _wrap_zts_get_recv_buf_size , METH_O , NULL } ,
{ " zts_set_ttl " , _wrap_zts_set_ttl , METH_VARARGS , NULL } ,
{ " zts_get_ttl " , _wrap_zts_get_ttl , METH_O , NULL } ,
{ " zts_set_blocking " , _wrap_zts_set_blocking , METH_VARARGS , NULL } ,
{ " zts_get_blocking " , _wrap_zts_get_blocking , METH_O , NULL } ,
{ " zts_set_keepalive " , _wrap_zts_set_keepalive , METH_VARARGS , NULL } ,
{ " zts_get_keepalive " , _wrap_zts_get_keepalive , METH_O , NULL } ,
{ " zts_hostent_h_name_set " , _wrap_zts_hostent_h_name_set , METH_VARARGS , NULL } ,
{ " zts_hostent_h_name_get " , _wrap_zts_hostent_h_name_get , METH_O , NULL } ,
{ " zts_hostent_h_aliases_set " , _wrap_zts_hostent_h_aliases_set , METH_VARARGS , NULL } ,
{ " zts_hostent_h_aliases_get " , _wrap_zts_hostent_h_aliases_get , METH_O , NULL } ,
{ " zts_hostent_h_addrtype_set " , _wrap_zts_hostent_h_addrtype_set , METH_VARARGS , NULL } ,
{ " zts_hostent_h_addrtype_get " , _wrap_zts_hostent_h_addrtype_get , METH_O , NULL } ,
{ " zts_hostent_h_length_set " , _wrap_zts_hostent_h_length_set , METH_VARARGS , NULL } ,
{ " zts_hostent_h_length_get " , _wrap_zts_hostent_h_length_get , METH_O , NULL } ,
{ " zts_hostent_h_addr_list_set " , _wrap_zts_hostent_h_addr_list_set , METH_VARARGS , NULL } ,
{ " zts_hostent_h_addr_list_get " , _wrap_zts_hostent_h_addr_list_get , METH_O , NULL } ,
{ " new_zts_hostent " , _wrap_new_zts_hostent , METH_NOARGS , NULL } ,
{ " delete_zts_hostent " , _wrap_delete_zts_hostent , METH_O , NULL } ,
{ " zts_hostent_swigregister " , zts_hostent_swigregister , METH_O , NULL } ,
{ " zts_hostent_swiginit " , zts_hostent_swiginit , METH_VARARGS , NULL } ,
{ " zts_bsd_gethostbyname " , _wrap_zts_bsd_gethostbyname , METH_O , NULL } ,
{ " zts_ip4_addr_addr_set " , _wrap_zts_ip4_addr_addr_set , METH_VARARGS , NULL } ,
{ " zts_ip4_addr_addr_get " , _wrap_zts_ip4_addr_addr_get , METH_O , NULL } ,
{ " new_zts_ip4_addr " , _wrap_new_zts_ip4_addr , METH_NOARGS , NULL } ,
{ " delete_zts_ip4_addr " , _wrap_delete_zts_ip4_addr , METH_O , NULL } ,
{ " zts_ip4_addr_swigregister " , zts_ip4_addr_swigregister , METH_O , NULL } ,
{ " zts_ip4_addr_swiginit " , zts_ip4_addr_swiginit , METH_VARARGS , NULL } ,
{ " zts_ip6_addr_addr_set " , _wrap_zts_ip6_addr_addr_set , METH_VARARGS , NULL } ,
{ " zts_ip6_addr_addr_get " , _wrap_zts_ip6_addr_addr_get , METH_O , NULL } ,
{ " new_zts_ip6_addr " , _wrap_new_zts_ip6_addr , METH_NOARGS , NULL } ,
{ " delete_zts_ip6_addr " , _wrap_delete_zts_ip6_addr , METH_O , NULL } ,
{ " zts_ip6_addr_swigregister " , zts_ip6_addr_swigregister , METH_O , NULL } ,
{ " zts_ip6_addr_swiginit " , zts_ip6_addr_swiginit , METH_VARARGS , NULL } ,
{ " zts_ip_addr_type_set " , _wrap_zts_ip_addr_type_set , METH_VARARGS , NULL } ,
{ " zts_ip_addr_type_get " , _wrap_zts_ip_addr_type_get , METH_O , NULL } ,
{ " new_zts_ip_addr " , _wrap_new_zts_ip_addr , METH_NOARGS , NULL } ,
{ " delete_zts_ip_addr " , _wrap_delete_zts_ip_addr , METH_O , NULL } ,
{ " zts_ip_addr_swigregister " , zts_ip_addr_swigregister , METH_O , NULL } ,
{ " zts_ip_addr_swiginit " , zts_ip_addr_swiginit , METH_VARARGS , NULL } ,
{ " zts_dns_set_server " , _wrap_zts_dns_set_server , METH_VARARGS , NULL } ,
{ " zts_dns_get_server " , _wrap_zts_dns_get_server , METH_O , NULL } ,
{ " zts_core_lock_obtain " , _wrap_zts_core_lock_obtain , METH_NOARGS , NULL } ,
{ " zts_core_lock_release " , _wrap_zts_core_lock_release , METH_NOARGS , NULL } ,
{ " zts_core_query_addr_count " , _wrap_zts_core_query_addr_count , METH_O , NULL } ,
{ " zts_core_query_addr " , _wrap_zts_core_query_addr , METH_VARARGS , NULL } ,
{ " zts_core_query_route_count " , _wrap_zts_core_query_route_count , METH_O , NULL } ,
{ " zts_core_query_route " , _wrap_zts_core_query_route , METH_VARARGS , NULL } ,
{ " zts_core_query_path_count " , _wrap_zts_core_query_path_count , METH_O , NULL } ,
{ " zts_core_query_path " , _wrap_zts_core_query_path , METH_VARARGS , NULL } ,
{ " zts_core_query_mc_count " , _wrap_zts_core_query_mc_count , METH_O , NULL } ,
{ " zts_core_query_mc " , _wrap_zts_core_query_mc , METH_VARARGS , NULL } ,
{ " zts_util_sign_root_set " , _wrap_zts_util_sign_root_set , METH_VARARGS , NULL } ,
{ " zts_util_delay " , _wrap_zts_util_delay , METH_O , NULL } ,
{ " zts_util_get_ip_family " , _wrap_zts_util_get_ip_family , METH_O , NULL } ,
{ " zts_util_ipstr_to_saddr " , _wrap_zts_util_ipstr_to_saddr , METH_VARARGS , NULL } ,
{ " zts_util_ntop " , _wrap_zts_util_ntop , METH_VARARGS , NULL } ,
{ " zts_ipaddr_ntoa " , _wrap_zts_ipaddr_ntoa , METH_O , NULL } ,
{ " zts_ipaddr_aton " , _wrap_zts_ipaddr_aton , METH_VARARGS , NULL } ,
{ " zts_inet_ntop " , _wrap_zts_inet_ntop , METH_VARARGS , NULL } ,
{ " zts_inet_pton " , _wrap_zts_inet_pton , METH_VARARGS , NULL } ,
{ " zts_py_bind " , _wrap_zts_py_bind , METH_VARARGS , NULL } ,
{ " zts_py_connect " , _wrap_zts_py_connect , METH_VARARGS , NULL } ,
{ " zts_py_accept " , _wrap_zts_py_accept , METH_O , NULL } ,
{ " zts_py_listen " , _wrap_zts_py_listen , METH_VARARGS , NULL } ,
{ " zts_py_recv " , _wrap_zts_py_recv , METH_VARARGS , NULL } ,
{ " zts_py_send " , _wrap_zts_py_send , METH_VARARGS , NULL } ,
{ " zts_py_close " , _wrap_zts_py_close , METH_O , NULL } ,
{ " zts_py_setblocking " , _wrap_zts_py_setblocking , METH_VARARGS , NULL } ,
{ " zts_py_getblocking " , _wrap_zts_py_getblocking , METH_O , NULL } ,
{ " zts_py_addr_get_str " , _wrap_zts_py_addr_get_str , METH_VARARGS , NULL } ,
{ NULL , NULL , 0 , NULL }
} ;
static PyMethodDef SwigMethods_proxydocs [ ] = {
{ NULL , NULL , 0 , NULL }
2021-05-05 16:19:27 -07:00
} ;
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2021-05-19 21:33:08 -07:00
static swig_type_info _swigt__p_PythonDirectorCallbackClass = { " _p_PythonDirectorCallbackClass " , " PythonDirectorCallbackClass * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_a_32__p_char = { " _p_a_32__p_char " , " char *(*)[32] " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_char = { " _p_char " , " char * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_int = { " _p_int " , " intptr_t *|int *|int_least32_t *|int_fast32_t *|int32_t *|int_fast16_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_long_long = { " _p_long_long " , " int_least64_t *|int_fast64_t *|int64_t *|long long *|intmax_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_p_char = { " _p_p_char " , " char ** " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_short = { " _p_short " , " short *|int_least16_t *|int16_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_signed_char = { " _p_signed_char " , " signed char *|int_least8_t *|int_fast8_t *|int8_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_ssize_t = { " _p_ssize_t " , " ssize_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_unsigned_char = { " _p_unsigned_char " , " unsigned char *|zts_sa_family_t *|uint_least8_t *|uint_fast8_t *|uint8_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_unsigned_int = { " _p_unsigned_int " , " uintptr_t *|uint_least32_t *|uint_fast32_t *|uint32_t *|unsigned int *|zts_in_addr_t *|zts_socklen_t *|uint_fast16_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_unsigned_long_long = { " _p_unsigned_long_long " , " uint_least64_t *|uint_fast64_t *|uint64_t *|unsigned long long *|uintmax_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_unsigned_short = { " _p_unsigned_short " , " unsigned short *|zts_in_port_t *|uint_least16_t *|uint16_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_void = { " _p_void " , " void * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_addr_info_t = { " _p_zts_addr_info_t " , " zts_addr_info_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_errno_t = { " _p_zts_errno_t " , " enum zts_errno_t *|zts_errno_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_error_t = { " _p_zts_error_t " , " enum zts_error_t *|zts_error_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_event_msg_t = { " _p_zts_event_msg_t " , " zts_event_msg_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_event_t = { " _p_zts_event_t " , " enum zts_event_t *|zts_event_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_fd_set = { " _p_zts_fd_set " , " zts_fd_set * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_hostent = { " _p_zts_hostent " , " zts_hostent * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_iovec = { " _p_zts_iovec " , " zts_iovec * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_ip4_addr = { " _p_zts_ip4_addr " , " zts_ip4_addr * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_ip6_addr = { " _p_zts_ip6_addr " , " zts_ip6_addr * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_ip_addr = { " _p_zts_ip_addr " , " zts_ip_addr * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_msghdr = { " _p_zts_msghdr " , " zts_msghdr * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_multicast_group_t = { " _p_zts_multicast_group_t " , " zts_multicast_group_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_net_info_t = { " _p_zts_net_info_t " , " zts_net_info_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_net_info_type_t = { " _p_zts_net_info_type_t " , " enum zts_net_info_type_t *|zts_net_info_type_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_netif_info_t = { " _p_zts_netif_info_t " , " zts_netif_info_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_network_status_t = { " _p_zts_network_status_t " , " enum zts_network_status_t *|zts_network_status_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_node_info_t = { " _p_zts_node_info_t " , " zts_node_info_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_path_t = { " _p_zts_path_t " , " zts_path_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_peer_info_t = { " _p_zts_peer_info_t " , " zts_peer_info_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_peer_role_t = { " _p_zts_peer_role_t " , " enum zts_peer_role_t *|zts_peer_role_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_pollfd = { " _p_zts_pollfd " , " zts_pollfd * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_root_set_t = { " _p_zts_root_set_t " , " zts_root_set_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_route_info_t = { " _p_zts_route_info_t " , " zts_route_info_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_sockaddr = { " _p_zts_sockaddr " , " zts_sockaddr * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_sockaddr_storage = { " _p_zts_sockaddr_storage " , " zts_sockaddr_storage * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_stats_counter_t = { " _p_zts_stats_counter_t " , " zts_stats_counter_t * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info _swigt__p_zts_timeval = { " _p_zts_timeval " , " zts_timeval * " , 0 , 0 , ( void * ) 0 , 0 } ;
static swig_type_info * swig_type_initial [ ] = {
& _swigt__p_PythonDirectorCallbackClass ,
& _swigt__p_a_32__p_char ,
& _swigt__p_char ,
& _swigt__p_int ,
& _swigt__p_long_long ,
& _swigt__p_p_char ,
& _swigt__p_short ,
& _swigt__p_signed_char ,
& _swigt__p_ssize_t ,
& _swigt__p_unsigned_char ,
& _swigt__p_unsigned_int ,
& _swigt__p_unsigned_long_long ,
& _swigt__p_unsigned_short ,
& _swigt__p_void ,
& _swigt__p_zts_addr_info_t ,
& _swigt__p_zts_errno_t ,
& _swigt__p_zts_error_t ,
& _swigt__p_zts_event_msg_t ,
& _swigt__p_zts_event_t ,
& _swigt__p_zts_fd_set ,
& _swigt__p_zts_hostent ,
& _swigt__p_zts_iovec ,
& _swigt__p_zts_ip4_addr ,
& _swigt__p_zts_ip6_addr ,
& _swigt__p_zts_ip_addr ,
& _swigt__p_zts_msghdr ,
& _swigt__p_zts_multicast_group_t ,
& _swigt__p_zts_net_info_t ,
& _swigt__p_zts_net_info_type_t ,
& _swigt__p_zts_netif_info_t ,
& _swigt__p_zts_network_status_t ,
& _swigt__p_zts_node_info_t ,
& _swigt__p_zts_path_t ,
& _swigt__p_zts_peer_info_t ,
& _swigt__p_zts_peer_role_t ,
& _swigt__p_zts_pollfd ,
& _swigt__p_zts_root_set_t ,
& _swigt__p_zts_route_info_t ,
& _swigt__p_zts_sockaddr ,
& _swigt__p_zts_sockaddr_storage ,
& _swigt__p_zts_stats_counter_t ,
& _swigt__p_zts_timeval ,
2021-05-05 16:19:27 -07:00
} ;
2021-05-19 21:33:08 -07:00
static swig_cast_info _swigc__p_PythonDirectorCallbackClass [ ] = { { & _swigt__p_PythonDirectorCallbackClass , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_a_32__p_char [ ] = { { & _swigt__p_a_32__p_char , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_char [ ] = { { & _swigt__p_char , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_int [ ] = { { & _swigt__p_int , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_long_long [ ] = { { & _swigt__p_long_long , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_p_char [ ] = { { & _swigt__p_p_char , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_short [ ] = { { & _swigt__p_short , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_signed_char [ ] = { { & _swigt__p_signed_char , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_ssize_t [ ] = { { & _swigt__p_ssize_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_unsigned_char [ ] = { { & _swigt__p_unsigned_char , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_unsigned_int [ ] = { { & _swigt__p_unsigned_int , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_unsigned_long_long [ ] = { { & _swigt__p_unsigned_long_long , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_unsigned_short [ ] = { { & _swigt__p_unsigned_short , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_void [ ] = { { & _swigt__p_void , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_addr_info_t [ ] = { { & _swigt__p_zts_addr_info_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_errno_t [ ] = { { & _swigt__p_zts_errno_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_error_t [ ] = { { & _swigt__p_zts_error_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_event_msg_t [ ] = { { & _swigt__p_zts_event_msg_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_event_t [ ] = { { & _swigt__p_zts_event_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_fd_set [ ] = { { & _swigt__p_zts_fd_set , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_hostent [ ] = { { & _swigt__p_zts_hostent , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_iovec [ ] = { { & _swigt__p_zts_iovec , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_ip4_addr [ ] = { { & _swigt__p_zts_ip4_addr , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_ip6_addr [ ] = { { & _swigt__p_zts_ip6_addr , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_ip_addr [ ] = { { & _swigt__p_zts_ip_addr , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_msghdr [ ] = { { & _swigt__p_zts_msghdr , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_multicast_group_t [ ] = { { & _swigt__p_zts_multicast_group_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_net_info_t [ ] = { { & _swigt__p_zts_net_info_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_net_info_type_t [ ] = { { & _swigt__p_zts_net_info_type_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_netif_info_t [ ] = { { & _swigt__p_zts_netif_info_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_network_status_t [ ] = { { & _swigt__p_zts_network_status_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_node_info_t [ ] = { { & _swigt__p_zts_node_info_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_path_t [ ] = { { & _swigt__p_zts_path_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_peer_info_t [ ] = { { & _swigt__p_zts_peer_info_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_peer_role_t [ ] = { { & _swigt__p_zts_peer_role_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_pollfd [ ] = { { & _swigt__p_zts_pollfd , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_root_set_t [ ] = { { & _swigt__p_zts_root_set_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_route_info_t [ ] = { { & _swigt__p_zts_route_info_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_sockaddr [ ] = { { & _swigt__p_zts_sockaddr , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_sockaddr_storage [ ] = { { & _swigt__p_zts_sockaddr_storage , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_stats_counter_t [ ] = { { & _swigt__p_zts_stats_counter_t , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info _swigc__p_zts_timeval [ ] = { { & _swigt__p_zts_timeval , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 } } ;
static swig_cast_info * swig_cast_initial [ ] = {
_swigc__p_PythonDirectorCallbackClass ,
_swigc__p_a_32__p_char ,
_swigc__p_char ,
_swigc__p_int ,
_swigc__p_long_long ,
_swigc__p_p_char ,
_swigc__p_short ,
_swigc__p_signed_char ,
_swigc__p_ssize_t ,
_swigc__p_unsigned_char ,
_swigc__p_unsigned_int ,
_swigc__p_unsigned_long_long ,
_swigc__p_unsigned_short ,
_swigc__p_void ,
_swigc__p_zts_addr_info_t ,
_swigc__p_zts_errno_t ,
_swigc__p_zts_error_t ,
_swigc__p_zts_event_msg_t ,
_swigc__p_zts_event_t ,
_swigc__p_zts_fd_set ,
_swigc__p_zts_hostent ,
_swigc__p_zts_iovec ,
_swigc__p_zts_ip4_addr ,
_swigc__p_zts_ip6_addr ,
_swigc__p_zts_ip_addr ,
_swigc__p_zts_msghdr ,
_swigc__p_zts_multicast_group_t ,
_swigc__p_zts_net_info_t ,
_swigc__p_zts_net_info_type_t ,
_swigc__p_zts_netif_info_t ,
_swigc__p_zts_network_status_t ,
_swigc__p_zts_node_info_t ,
_swigc__p_zts_path_t ,
_swigc__p_zts_peer_info_t ,
_swigc__p_zts_peer_role_t ,
_swigc__p_zts_pollfd ,
_swigc__p_zts_root_set_t ,
_swigc__p_zts_route_info_t ,
_swigc__p_zts_sockaddr ,
_swigc__p_zts_sockaddr_storage ,
_swigc__p_zts_stats_counter_t ,
_swigc__p_zts_timeval ,
2021-05-05 16:19:27 -07:00
} ;
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2021-05-19 21:33:08 -07:00
static swig_const_info swig_const_table [ ] = {
{ 0 , 0 , 0 , 0.0 , 0 , 0 } } ;
2021-05-05 16:19:27 -07:00
# ifdef __cplusplus
}
# 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
* 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
* 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 statically 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
* cast linked list . The cast data is initially stored in something like a
* two - dimensional array . Each row corresponds to a type ( there are the same
* number of rows as there are in the swig_type_initial array ) . Each entry in
* 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
* 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 .
* 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
* 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_cast_info to the linked list ( because the cast - > type ) pointer will
* be correct .
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
# ifdef __cplusplus
extern " C " {
#if 0
} /* c-mode */
# endif
# endif
#if 0
# define SWIGRUNTIME_DEBUG
# endif
2021-05-19 21:33:08 -07:00
SWIGRUNTIME void
SWIG_InitializeModule ( void * clientdata ) {
size_t i ;
swig_module_info * module_head , * iter ;
int init ;
/* check to see if the circular list has been setup, if not, set it up */
if ( swig_module . next = = 0 ) {
/* Initialize the swig_module */
swig_module . type_initial = swig_type_initial ;
swig_module . cast_initial = swig_cast_initial ;
swig_module . next = & swig_module ;
init = 1 ;
} else {
init = 0 ;
}
/* Try and load any already created modules */
module_head = SWIG_GetModule ( clientdata ) ;
if ( ! module_head ) {
/* This is the first module loaded for this interpreter */
/* so set the swig module into the interpreter */
SWIG_SetModule ( clientdata , & swig_module ) ;
} else {
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
iter = module_head ;
do {
if ( iter = = & swig_module ) {
/* Our module is already in the list, so there's nothing more to do. */
2021-05-05 16:19:27 -07:00
return ;
2021-05-19 21:33:08 -07:00
}
iter = iter - > next ;
} while ( iter ! = module_head ) ;
/* otherwise we must add our module into the list */
swig_module . next = module_head - > next ;
module_head - > next = & swig_module ;
}
/* 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 */
if ( init = = 0 ) return ;
/* Now work on filling in swig_module.types */
2021-05-05 16:19:27 -07:00
# ifdef SWIGRUNTIME_DEBUG
2021-05-19 21:33:08 -07:00
printf ( " SWIG_InitializeModule: size %lu \n " , ( unsigned long ) swig_module . size ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
for ( i = 0 ; i < swig_module . size ; + + i ) {
swig_type_info * type = 0 ;
swig_type_info * ret ;
swig_cast_info * cast ;
2021-05-05 16:19:27 -07:00
# ifdef SWIGRUNTIME_DEBUG
2021-05-19 21:33:08 -07:00
printf ( " SWIG_InitializeModule: type %lu %s \n " , ( unsigned long ) i , swig_module . type_initial [ i ] - > name ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
/* if there is another module already loaded */
if ( swig_module . next ! = & swig_module ) {
type = SWIG_MangledTypeQueryModule ( swig_module . next , & swig_module , swig_module . type_initial [ i ] - > name ) ;
}
if ( type ) {
/* Overwrite clientdata field */
2021-05-05 16:19:27 -07:00
# ifdef SWIGRUNTIME_DEBUG
2021-05-19 21:33:08 -07:00
printf ( " SWIG_InitializeModule: found type %s \n " , type - > name ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
if ( swig_module . type_initial [ i ] - > clientdata ) {
type - > clientdata = swig_module . type_initial [ i ] - > clientdata ;
2021-05-05 16:19:27 -07:00
# ifdef SWIGRUNTIME_DEBUG
2021-05-19 21:33:08 -07:00
printf ( " SWIG_InitializeModule: found and overwrite type %s \n " , type - > name ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
}
} else {
type = swig_module . type_initial [ i ] ;
}
/* Insert casting types */
cast = swig_module . cast_initial [ i ] ;
while ( cast - > type ) {
/* Don't need to add information already in the list */
ret = 0 ;
2021-05-05 16:19:27 -07:00
# ifdef SWIGRUNTIME_DEBUG
2021-05-19 21:33:08 -07:00
printf ( " SWIG_InitializeModule: look cast %s \n " , cast - > type - > name ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
if ( swig_module . next ! = & swig_module ) {
ret = SWIG_MangledTypeQueryModule ( swig_module . next , & swig_module , cast - > type - > name ) ;
2021-05-05 16:19:27 -07:00
# ifdef SWIGRUNTIME_DEBUG
2021-05-19 21:33:08 -07:00
if ( ret ) printf ( " SWIG_InitializeModule: found cast %s \n " , ret - > name ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
}
if ( ret ) {
if ( type = = swig_module . type_initial [ i ] ) {
2021-05-05 16:19:27 -07:00
# ifdef SWIGRUNTIME_DEBUG
2021-05-19 21:33:08 -07:00
printf ( " SWIG_InitializeModule: skip old type %s \n " , ret - > name ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
cast - > type = ret ;
ret = 0 ;
} else {
/* Check for casting already in the list */
swig_cast_info * ocast = SWIG_TypeCheck ( ret - > name , type ) ;
2021-05-05 16:19:27 -07:00
# ifdef SWIGRUNTIME_DEBUG
2021-05-19 21:33:08 -07:00
if ( ocast ) printf ( " SWIG_InitializeModule: skip old cast %s \n " , ret - > name ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
if ( ! ocast ) ret = 0 ;
}
}
if ( ! ret ) {
2021-05-05 16:19:27 -07:00
# ifdef SWIGRUNTIME_DEBUG
2021-05-19 21:33:08 -07:00
printf ( " SWIG_InitializeModule: adding cast %s \n " , cast - > type - > name ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
if ( type - > cast ) {
type - > cast - > prev = cast ;
cast - > next = type - > cast ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
type - > cast = cast ;
}
cast + + ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
/* Set entry in modules->types array equal to the type */
swig_module . types [ i ] = type ;
}
swig_module . types [ i ] = 0 ;
2021-05-05 16:19:27 -07:00
# ifdef SWIGRUNTIME_DEBUG
2021-05-19 21:33:08 -07:00
printf ( " **** SWIG_InitializeModule: Cast List ****** \n " ) ;
for ( i = 0 ; i < swig_module . size ; + + i ) {
int j = 0 ;
swig_cast_info * cast = swig_module . cast_initial [ i ] ;
printf ( " SWIG_InitializeModule: type %lu %s \n " , ( unsigned long ) i , swig_module . type_initial [ i ] - > name ) ;
while ( cast - > type ) {
printf ( " SWIG_InitializeModule: cast type %s \n " , cast - > type - > name ) ;
cast + + ;
+ + j ;
}
printf ( " ---- Total casts: %d \n " , j ) ;
}
printf ( " **** SWIG_InitializeModule: Cast List ****** \n " ) ;
2021-05-05 16:19:27 -07:00
# endif
}
/* This function will propagate the clientdata field of type to
2021-05-19 21:33:08 -07:00
* any new swig_type_info structures that have been added into the list
* of equivalent types . It is like calling
* SWIG_TypeClientData ( type , clientdata ) a second time .
*/
SWIGRUNTIME void
SWIG_PropagateClientData ( void ) {
size_t i ;
swig_cast_info * equiv ;
static int init_run = 0 ;
if ( init_run ) return ;
init_run = 1 ;
for ( i = 0 ; i < swig_module . size ; i + + ) {
if ( swig_module . types [ i ] - > clientdata ) {
equiv = swig_module . types [ i ] - > cast ;
while ( equiv ) {
if ( ! equiv - > converter ) {
if ( equiv - > type & & ! equiv - > type - > clientdata )
SWIG_TypeClientData ( equiv - > type , swig_module . types [ i ] - > clientdata ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
equiv = equiv - > next ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
}
# ifdef __cplusplus
#if 0
{
/* c-mode */
# endif
}
# endif
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
# ifdef __cplusplus
extern " C " {
# endif
2021-05-19 21:33:08 -07:00
/* 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_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
/* -----------------------------------------------------------------------------
* global variable support code .
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
typedef struct swig_globalvar {
char * name ; /* Name of global variable */
PyObject * ( * get_attr ) ( void ) ; /* Return the current value */
int ( * set_attr ) ( PyObject * ) ; /* Set the value */
struct swig_globalvar * next ;
} swig_globalvar ;
typedef struct swig_varlinkobject {
PyObject_HEAD
swig_globalvar * vars ;
} swig_varlinkobject ;
SWIGINTERN PyObject *
swig_varlink_repr ( swig_varlinkobject * SWIGUNUSEDPARM ( v ) ) {
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03000000
return PyUnicode_InternFromString ( " <Swig global variables> " ) ;
# else
return PyString_FromString ( " <Swig global variables> " ) ;
# endif
2021-05-19 21:33:08 -07:00
}
SWIGINTERN PyObject *
swig_varlink_str ( swig_varlinkobject * v ) {
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
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 ( " , " ) ;
2021-05-05 16:19:27 -07:00
joined = PyUnicode_Concat ( str , tail ) ;
Py_DecRef ( str ) ;
Py_DecRef ( tail ) ;
str = joined ;
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
}
tail = PyUnicode_InternFromString ( " ) " ) ;
joined = PyUnicode_Concat ( str , tail ) ;
Py_DecRef ( str ) ;
Py_DecRef ( tail ) ;
str = joined ;
# else
2021-05-19 21:33:08 -07:00
PyObject * str = PyString_FromString ( " ( " ) ;
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 ( " , " ) ) ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
PyString_ConcatAndDel ( & str , PyString_FromString ( " ) " ) ) ;
2021-05-05 16:19:27 -07:00
# endif
return str ;
2021-05-19 21:33:08 -07:00
}
SWIGINTERN void
swig_varlink_dealloc ( swig_varlinkobject * v ) {
swig_globalvar * var = v - > vars ;
2021-05-05 16:19:27 -07:00
while ( var ) {
2021-05-19 21:33:08 -07:00
swig_globalvar * n = var - > next ;
free ( var - > name ) ;
free ( var ) ;
var = n ;
}
}
SWIGINTERN PyObject *
swig_varlink_getattr ( swig_varlinkobject * v , char * n ) {
PyObject * res = NULL ;
swig_globalvar * var = v - > vars ;
2021-05-05 16:19:27 -07:00
while ( var ) {
2021-05-19 21:33:08 -07:00
if ( strcmp ( var - > name , n ) = = 0 ) {
res = ( * var - > get_attr ) ( ) ;
break ;
}
var = var - > next ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
if ( res = = NULL & & ! PyErr_Occurred ( ) ) {
PyErr_Format ( PyExc_AttributeError , " Unknown C global variable '%s' " , n ) ;
2021-05-05 16:19:27 -07:00
}
return res ;
2021-05-19 21:33:08 -07:00
}
SWIGINTERN int
swig_varlink_setattr ( swig_varlinkobject * v , char * n , PyObject * p ) {
2021-05-05 16:19:27 -07:00
int res = 1 ;
2021-05-19 21:33:08 -07:00
swig_globalvar * var = v - > vars ;
2021-05-05 16:19:27 -07:00
while ( var ) {
2021-05-19 21:33:08 -07:00
if ( strcmp ( var - > name , n ) = = 0 ) {
res = ( * var - > set_attr ) ( p ) ;
break ;
}
var = var - > next ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
if ( res = = 1 & & ! PyErr_Occurred ( ) ) {
PyErr_Format ( PyExc_AttributeError , " Unknown C global variable '%s' " , n ) ;
2021-05-05 16:19:27 -07:00
}
return res ;
2021-05-19 21:33:08 -07:00
}
SWIGINTERN PyTypeObject *
swig_varlink_type ( void ) {
2021-05-05 16:19:27 -07:00
static char varlink__doc__ [ ] = " Swig var link object " ;
static PyTypeObject varlink_type ;
static int type_init = 0 ;
2021-05-19 21:33:08 -07:00
if ( ! type_init ) {
const PyTypeObject tmp = {
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
PyVarObject_HEAD_INIT ( NULL , 0 )
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
PyObject_HEAD_INIT ( NULL )
0 , /* ob_size */
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
" swigvarlink " , /* tp_name */
sizeof ( swig_varlinkobject ) , /* tp_basicsize */
0 , /* tp_itemsize */
( destructor ) swig_varlink_dealloc , /* tp_dealloc */
0 , /* 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_sequence */
0 , /* tp_as_mapping */
0 , /* tp_hash */
0 , /* tp_call */
( reprfunc ) swig_varlink_str , /* tp_str */
0 , /* tp_getattro */
0 , /* tp_setattro */
0 , /* tp_as_buffer */
0 , /* tp_flags */
varlink__doc__ , /* tp_doc */
0 , /* tp_traverse */
0 , /* tp_clear */
0 , /* tp_richcompare */
0 , /* tp_weaklistoffset */
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , /* tp_iter -> tp_weaklist */
0 , /* tp_del */
0 , /* tp_version_tag */
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03040000
2021-05-19 21:33:08 -07:00
0 , /* tp_finalize */
2021-05-05 16:19:27 -07:00
# endif
# if PY_VERSION_HEX >= 0x03080000
2021-05-19 21:33:08 -07:00
0 , /* tp_vectorcall */
2021-05-05 16:19:27 -07:00
# endif
# if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
2021-05-19 21:33:08 -07:00
0 , /* tp_print */
2021-05-05 16:19:27 -07:00
# endif
# ifdef COUNT_ALLOCS
2021-05-19 21:33:08 -07:00
0 , /* tp_allocs */
0 , /* tp_frees */
0 , /* tp_maxalloc */
0 , /* tp_prev */
0 /* tp_next */
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
} ;
varlink_type = tmp ;
type_init = 1 ;
if ( PyType_Ready ( & varlink_type ) < 0 )
return NULL ;
2021-05-05 16:19:27 -07:00
}
return & varlink_type ;
2021-05-19 21:33:08 -07:00
}
/* Create a variable linking object for use later */
SWIGINTERN PyObject *
SWIG_Python_newvarlink ( void ) {
swig_varlinkobject * result = PyObject_NEW ( swig_varlinkobject , swig_varlink_type ( ) ) ;
2021-05-05 16:19:27 -07:00
if ( result ) {
2021-05-19 21:33:08 -07:00
result - > vars = 0 ;
}
return ( ( PyObject * ) result ) ;
}
SWIGINTERN void
SWIG_Python_addvarlink ( PyObject * p , const char * name , PyObject * ( * get_attr ) ( void ) , int ( * set_attr ) ( PyObject * p ) ) {
swig_varlinkobject * v = ( swig_varlinkobject * ) p ;
swig_globalvar * gv = ( swig_globalvar * ) malloc ( sizeof ( swig_globalvar ) ) ;
2021-05-05 16:19:27 -07:00
if ( gv ) {
2021-05-19 21:33:08 -07:00
size_t size = strlen ( name ) + 1 ;
gv - > name = ( char * ) malloc ( size ) ;
if ( gv - > name ) {
memcpy ( gv - > name , name , size ) ;
gv - > get_attr = get_attr ;
gv - > set_attr = set_attr ;
gv - > next = v - > vars ;
}
2021-05-05 16:19:27 -07:00
}
v - > vars = gv ;
2021-05-19 21:33:08 -07:00
}
SWIGINTERN PyObject *
SWIG_globals ( void ) {
static PyObject * globals = 0 ;
if ( ! globals ) {
globals = SWIG_newvarlink ( ) ;
2021-05-05 16:19:27 -07:00
}
return globals ;
2021-05-19 21:33:08 -07:00
}
/* -----------------------------------------------------------------------------
* constants / methods manipulation
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Install Constants */
SWIGINTERN void
SWIG_Python_InstallConstants ( PyObject * d , swig_const_info constants [ ] ) {
PyObject * obj = 0 ;
2021-05-05 16:19:27 -07:00
size_t i ;
for ( i = 0 ; constants [ i ] . type ; + + i ) {
2021-05-19 21:33:08 -07:00
switch ( constants [ i ] . type ) {
case SWIG_PY_POINTER :
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 ) ) ;
break ;
default :
obj = 0 ;
break ;
}
if ( obj ) {
PyDict_SetItemString ( d , constants [ i ] . name , obj ) ;
Py_DECREF ( obj ) ;
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
/* -----------------------------------------------------------------------------*/
/* Fix SwigMethods to carry the callback ptrs when needed */
/* -----------------------------------------------------------------------------*/
SWIGINTERN void
SWIG_Python_FixMethods ( PyMethodDef * methods ,
swig_const_info * const_table ,
swig_type_info * * types ,
swig_type_info * * types_initial ) {
2021-05-05 16:19:27 -07:00
size_t i ;
for ( i = 0 ; methods [ i ] . ml_name ; + + i ) {
2021-05-19 21:33:08 -07:00
const char * c = methods [ i ] . ml_doc ;
if ( ! c ) continue ;
c = strstr ( c , " swig_ptr: " ) ;
if ( c ) {
int j ;
swig_const_info * ci = 0 ;
const char * name = c + 10 ;
for ( j = 0 ; const_table [ j ] . type ; + + j ) {
if ( strncmp ( const_table [ j ] . name , name ,
strlen ( const_table [ j ] . name ) ) = = 0 ) {
ci = & ( const_table [ j ] ) ;
break ;
}
}
if ( ci ) {
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 ;
memcpy ( buff , methods [ i ] . ml_doc , ldoc ) ;
buff + = ldoc ;
memcpy ( buff , " swig_ptr: " , 10 ) ;
buff + = 10 ;
SWIG_PackVoidPtr ( buff , ptr , ty - > name , lptr ) ;
methods [ i ] . ml_doc = ndoc ;
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
}
2021-05-19 21:33:08 -07:00
}
/* -----------------------------------------------------------------------------
* Method creation and docstring support functions
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* -----------------------------------------------------------------------------
* Function to find the method definition with the correct docstring for the
* proxy module as opposed to the low - level API
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
SWIGINTERN PyMethodDef * SWIG_PythonGetProxyDoc ( const char * name ) {
2021-05-05 16:19:27 -07:00
/* Find the function in the modified method table */
size_t offset = 0 ;
int found = 0 ;
while ( SwigMethods_proxydocs [ offset ] . ml_meth ! = NULL ) {
2021-05-19 21:33:08 -07:00
if ( strcmp ( SwigMethods_proxydocs [ offset ] . ml_name , name ) = = 0 ) {
found = 1 ;
break ;
}
offset + + ;
2021-05-05 16:19:27 -07:00
}
/* Use the copy with the modified docstring if available */
return found ? & SwigMethods_proxydocs [ offset ] : NULL ;
2021-05-19 21:33:08 -07:00
}
/* -----------------------------------------------------------------------------
* Wrapper of PyInstanceMethod_New ( ) used in Python 3
* It is exported to the generated module , used for - fastproxy
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
SWIGINTERN PyObject * SWIG_PyInstanceMethod_New ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * func ) {
2021-05-05 16:19:27 -07:00
if ( PyCFunction_Check ( func ) ) {
2021-05-19 21:33:08 -07:00
PyCFunctionObject * funcobj = ( PyCFunctionObject * ) func ;
PyMethodDef * ml = SWIG_PythonGetProxyDoc ( funcobj - > m_ml - > ml_name ) ;
if ( ml )
func = PyCFunction_NewEx ( ml , funcobj - > m_self , funcobj - > m_module ) ;
2021-05-05 16:19:27 -07:00
}
# if PY_VERSION_HEX >= 0x03000000
return PyInstanceMethod_New ( func ) ;
# else
return PyMethod_New ( func , NULL , NULL ) ;
# endif
2021-05-19 21:33:08 -07:00
}
/* -----------------------------------------------------------------------------
* Wrapper of PyStaticMethod_New ( )
* It is exported to the generated module , used for - fastproxy
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
SWIGINTERN PyObject * SWIG_PyStaticMethod_New ( PyObject * SWIGUNUSEDPARM ( self ) , PyObject * func ) {
2021-05-05 16:19:27 -07:00
if ( PyCFunction_Check ( func ) ) {
2021-05-19 21:33:08 -07:00
PyCFunctionObject * funcobj = ( PyCFunctionObject * ) func ;
PyMethodDef * ml = SWIG_PythonGetProxyDoc ( funcobj - > m_ml - > ml_name ) ;
if ( ml )
func = PyCFunction_NewEx ( ml , funcobj - > m_self , funcobj - > m_module ) ;
2021-05-05 16:19:27 -07:00
}
return PyStaticMethod_New ( func ) ;
2021-05-19 21:33:08 -07:00
}
2021-05-05 16:19:27 -07:00
# ifdef __cplusplus
}
# endif
/* -----------------------------------------------------------------------------*
* Partial Init method
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
# ifdef __cplusplus
extern " C "
# endif
2021-05-19 21:33:08 -07:00
SWIGEXPORT
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
PyObject *
2021-05-05 16:19:27 -07:00
# else
void
# endif
2021-05-19 21:33:08 -07:00
SWIG_init ( void ) {
PyObject * m , * d , * md , * globals ;
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
static struct PyModuleDef SWIG_module = {
PyModuleDef_HEAD_INIT ,
SWIG_name ,
NULL ,
- 1 ,
SwigMethods ,
NULL ,
NULL ,
NULL ,
NULL
} ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
2021-05-05 16:19:27 -07:00
# if defined(SWIGPYTHON_BUILTIN)
2021-05-19 21:33:08 -07:00
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 = {
SwigPyObject_own ,
SwigPyObject_own
} ;
static PyGetSetDef thisown_getset_def = {
( char * ) " thisown " , SwigPyBuiltin_GetterClosure , SwigPyBuiltin_SetterClosure , NULL , & thisown_getset_closure
} ;
PyTypeObject * builtin_pytype ;
int builtin_base_count ;
swig_type_info * builtin_basetype ;
PyObject * tuple ;
PyGetSetDescrObject * static_getset ;
PyTypeObject * metatype ;
PyTypeObject * swigpyobject ;
SwigPyClientData * cd ;
PyObject * public_interface , * public_symbol ;
PyObject * this_descr ;
PyObject * thisown_descr ;
PyObject * self = 0 ;
int i ;
( void ) builtin_pytype ;
( void ) builtin_base_count ;
( void ) builtin_basetype ;
( void ) tuple ;
( void ) static_getset ;
( void ) self ;
/* Metaclass is used to implement static member variables */
metatype = SwigPyObjectType ( ) ;
assert ( metatype ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
( void ) globals ;
/* Create singletons now to avoid potential deadlocks with multi-threaded usage after module initialization */
SWIG_This ( ) ;
SWIG_Python_TypeCache ( ) ;
SwigPyPacked_type ( ) ;
2021-05-05 16:19:27 -07:00
# ifndef SWIGPYTHON_BUILTIN
2021-05-19 21:33:08 -07:00
SwigPyObject_type ( ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
/* Fix SwigMethods to carry the callback ptrs when needed */
SWIG_Python_FixMethods ( SwigMethods , swig_const_table , swig_types , swig_type_initial ) ;
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
m = PyModule_Create ( & SWIG_module ) ;
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
m = Py_InitModule ( SWIG_name , SwigMethods ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
md = d = PyModule_GetDict ( m ) ;
( void ) md ;
SWIG_InitializeModule ( 0 ) ;
2021-05-05 16:19:27 -07:00
# ifdef SWIGPYTHON_BUILTIN
2021-05-19 21:33:08 -07:00
swigpyobject = SwigPyObject_TypeOnce ( ) ;
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 ;
} else if ( swigpyobject - > 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 ) ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
SWIG_InstallConstants ( d , swig_const_table ) ;
SWIG_Python_SetConstant ( d , " ZTS_ENABLE_PYTHON " , SWIG_From_int ( static_cast < int > ( 1 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ERR_OK " , SWIG_From_int ( static_cast < int > ( ZTS_ERR_OK ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ERR_SOCKET " , SWIG_From_int ( static_cast < int > ( ZTS_ERR_SOCKET ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ERR_SERVICE " , SWIG_From_int ( static_cast < int > ( ZTS_ERR_SERVICE ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ERR_ARG " , SWIG_From_int ( static_cast < int > ( ZTS_ERR_ARG ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ERR_NO_RESULT " , SWIG_From_int ( static_cast < int > ( ZTS_ERR_NO_RESULT ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ERR_GENERAL " , SWIG_From_int ( static_cast < int > ( ZTS_ERR_GENERAL ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NODE_UP " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NODE_UP ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NODE_ONLINE " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NODE_ONLINE ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NODE_OFFLINE " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NODE_OFFLINE ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NODE_DOWN " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NODE_DOWN ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NODE_FATAL_ERROR " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NODE_FATAL_ERROR ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NETWORK_NOT_FOUND " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NETWORK_NOT_FOUND ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NETWORK_CLIENT_TOO_OLD " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NETWORK_CLIENT_TOO_OLD ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NETWORK_REQ_CONFIG " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NETWORK_REQ_CONFIG ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NETWORK_OK " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NETWORK_OK ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NETWORK_ACCESS_DENIED " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NETWORK_ACCESS_DENIED ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NETWORK_READY_IP4 " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NETWORK_READY_IP4 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NETWORK_READY_IP6 " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NETWORK_READY_IP6 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NETWORK_READY_IP4_IP6 " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NETWORK_READY_IP4_IP6 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NETWORK_DOWN " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NETWORK_DOWN ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NETWORK_UPDATE " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NETWORK_UPDATE ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_STACK_UP " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_STACK_UP ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_STACK_DOWN " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_STACK_DOWN ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NETIF_UP " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NETIF_UP ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NETIF_DOWN " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NETIF_DOWN ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NETIF_REMOVED " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NETIF_REMOVED ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NETIF_LINK_UP " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NETIF_LINK_UP ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_NETIF_LINK_DOWN " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_NETIF_LINK_DOWN ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_PEER_DIRECT " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_PEER_DIRECT ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_PEER_RELAY " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_PEER_RELAY ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_PEER_UNREACHABLE " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_PEER_UNREACHABLE ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_PEER_PATH_DISCOVERED " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_PEER_PATH_DISCOVERED ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_PEER_PATH_DEAD " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_PEER_PATH_DEAD ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_ROUTE_ADDED " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_ROUTE_ADDED ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_ROUTE_REMOVED " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_ROUTE_REMOVED ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_ADDR_ADDED_IP4 " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_ADDR_ADDED_IP4 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_ADDR_REMOVED_IP4 " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_ADDR_REMOVED_IP4 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_ADDR_ADDED_IP6 " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_ADDR_ADDED_IP6 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_ADDR_REMOVED_IP6 " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_ADDR_REMOVED_IP6 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_STORE_IDENTITY_SECRET " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_STORE_IDENTITY_SECRET ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_STORE_IDENTITY_PUBLIC " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_STORE_IDENTITY_PUBLIC ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_STORE_PLANET " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_STORE_PLANET ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_STORE_PEER " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_STORE_PEER ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EVENT_STORE_NETWORK " , SWIG_From_int ( static_cast < int > ( ZTS_EVENT_STORE_NETWORK ) ) ) ;
globals = SWIG_globals ( ) ;
if ( ! globals ) {
PyErr_SetString ( PyExc_TypeError , " Failure to create SWIG globals. " ) ;
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
return NULL ;
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
return ;
2021-05-05 16:19:27 -07:00
# endif
2021-05-19 21:33:08 -07:00
}
PyDict_SetItemString ( md , " cvar " , globals ) ;
Py_DECREF ( globals ) ;
SWIG_addvarlink ( globals , " zts_errno " , Swig_var_zts_errno_get , Swig_var_zts_errno_set ) ;
SWIG_Python_SetConstant ( d , " ZTS_EPERM " , SWIG_From_int ( static_cast < int > ( ZTS_EPERM ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ENOENT " , SWIG_From_int ( static_cast < int > ( ZTS_ENOENT ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ESRCH " , SWIG_From_int ( static_cast < int > ( ZTS_ESRCH ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EINTR " , SWIG_From_int ( static_cast < int > ( ZTS_EINTR ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EIO " , SWIG_From_int ( static_cast < int > ( ZTS_EIO ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ENXIO " , SWIG_From_int ( static_cast < int > ( ZTS_ENXIO ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EBADF " , SWIG_From_int ( static_cast < int > ( ZTS_EBADF ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EAGAIN " , SWIG_From_int ( static_cast < int > ( ZTS_EAGAIN ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EWOULDBLOCK " , SWIG_From_int ( static_cast < int > ( ZTS_EWOULDBLOCK ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ENOMEM " , SWIG_From_int ( static_cast < int > ( ZTS_ENOMEM ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EACCES " , SWIG_From_int ( static_cast < int > ( ZTS_EACCES ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EFAULT " , SWIG_From_int ( static_cast < int > ( ZTS_EFAULT ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EBUSY " , SWIG_From_int ( static_cast < int > ( ZTS_EBUSY ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EEXIST " , SWIG_From_int ( static_cast < int > ( ZTS_EEXIST ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ENODEV " , SWIG_From_int ( static_cast < int > ( ZTS_ENODEV ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EINVAL " , SWIG_From_int ( static_cast < int > ( ZTS_EINVAL ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ENFILE " , SWIG_From_int ( static_cast < int > ( ZTS_ENFILE ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EMFILE " , SWIG_From_int ( static_cast < int > ( ZTS_EMFILE ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ENOSYS " , SWIG_From_int ( static_cast < int > ( ZTS_ENOSYS ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ENOTSOCK " , SWIG_From_int ( static_cast < int > ( ZTS_ENOTSOCK ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EDESTADDRREQ " , SWIG_From_int ( static_cast < int > ( ZTS_EDESTADDRREQ ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EMSGSIZE " , SWIG_From_int ( static_cast < int > ( ZTS_EMSGSIZE ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EPROTOTYPE " , SWIG_From_int ( static_cast < int > ( ZTS_EPROTOTYPE ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ENOPROTOOPT " , SWIG_From_int ( static_cast < int > ( ZTS_ENOPROTOOPT ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EPROTONOSUPPORT " , SWIG_From_int ( static_cast < int > ( ZTS_EPROTONOSUPPORT ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ESOCKTNOSUPPORT " , SWIG_From_int ( static_cast < int > ( ZTS_ESOCKTNOSUPPORT ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EOPNOTSUPP " , SWIG_From_int ( static_cast < int > ( ZTS_EOPNOTSUPP ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EPFNOSUPPORT " , SWIG_From_int ( static_cast < int > ( ZTS_EPFNOSUPPORT ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EAFNOSUPPORT " , SWIG_From_int ( static_cast < int > ( ZTS_EAFNOSUPPORT ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EADDRINUSE " , SWIG_From_int ( static_cast < int > ( ZTS_EADDRINUSE ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EADDRNOTAVAIL " , SWIG_From_int ( static_cast < int > ( ZTS_EADDRNOTAVAIL ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ENETDOWN " , SWIG_From_int ( static_cast < int > ( ZTS_ENETDOWN ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ENETUNREACH " , SWIG_From_int ( static_cast < int > ( ZTS_ENETUNREACH ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ECONNABORTED " , SWIG_From_int ( static_cast < int > ( ZTS_ECONNABORTED ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ECONNRESET " , SWIG_From_int ( static_cast < int > ( ZTS_ECONNRESET ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ENOBUFS " , SWIG_From_int ( static_cast < int > ( ZTS_ENOBUFS ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EISCONN " , SWIG_From_int ( static_cast < int > ( ZTS_EISCONN ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ENOTCONN " , SWIG_From_int ( static_cast < int > ( ZTS_ENOTCONN ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ETIMEDOUT " , SWIG_From_int ( static_cast < int > ( ZTS_ETIMEDOUT ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EHOSTUNREACH " , SWIG_From_int ( static_cast < int > ( ZTS_EHOSTUNREACH ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EALREADY " , SWIG_From_int ( static_cast < int > ( ZTS_EALREADY ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_EINPROGRESS " , SWIG_From_int ( static_cast < int > ( ZTS_EINPROGRESS ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_MAC_ADDRSTRLEN " , SWIG_From_int ( static_cast < int > ( 18 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_INET_ADDRSTRLEN " , SWIG_From_int ( static_cast < int > ( 16 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_INET6_ADDRSTRLEN " , SWIG_From_int ( static_cast < int > ( 46 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IP_MAX_STR_LEN " , SWIG_From_int ( static_cast < int > ( 46 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_STORE_DATA_LEN " , SWIG_From_int ( static_cast < int > ( 4096 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_MAX_NETWORK_SHORT_NAME_LENGTH " , SWIG_From_int ( static_cast < int > ( 127 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_MAX_NETWORK_ROUTES " , SWIG_From_int ( static_cast < int > ( 32 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_MAX_ASSIGNED_ADDRESSES " , SWIG_From_int ( static_cast < int > ( 16 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_MAX_PEER_NETWORK_PATHS " , SWIG_From_int ( static_cast < int > ( 16 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_MAX_MULTICAST_SUBSCRIPTIONS " , SWIG_From_int ( static_cast < int > ( 1024 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_MAX_ENDPOINT_STR_LEN " , SWIG_From_int ( static_cast < int > ( 46 + 6 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SOCK_STREAM " , SWIG_From_int ( static_cast < int > ( 0x0001 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SOCK_DGRAM " , SWIG_From_int ( static_cast < int > ( 0x0002 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SOCK_RAW " , SWIG_From_int ( static_cast < int > ( 0x0003 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_AF_UNSPEC " , SWIG_From_int ( static_cast < int > ( 0x0000 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_AF_INET " , SWIG_From_int ( static_cast < int > ( 0x0002 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_AF_INET6 " , SWIG_From_int ( static_cast < int > ( 0x000a ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_PF_INET " , SWIG_From_int ( static_cast < int > ( 0x0002 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_PF_INET6 " , SWIG_From_int ( static_cast < int > ( 0x000a ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_PF_UNSPEC " , SWIG_From_int ( static_cast < int > ( 0x0000 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPPROTO_IP " , SWIG_From_int ( static_cast < int > ( 0x0000 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPPROTO_ICMP " , SWIG_From_int ( static_cast < int > ( 0x0001 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPPROTO_TCP " , SWIG_From_int ( static_cast < int > ( 0x0006 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPPROTO_UDP " , SWIG_From_int ( static_cast < int > ( 0x0011 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPPROTO_IPV6 " , SWIG_From_int ( static_cast < int > ( 0x0029 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPPROTO_ICMPV6 " , SWIG_From_int ( static_cast < int > ( 0x003a ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPPROTO_UDPLITE " , SWIG_From_int ( static_cast < int > ( 0x0088 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPPROTO_RAW " , SWIG_From_int ( static_cast < int > ( 0x00ff ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_MSG_PEEK " , SWIG_From_int ( static_cast < int > ( 0x0001 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_MSG_WAITALL " , SWIG_From_int ( static_cast < int > ( 0x0002 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_MSG_OOB " , SWIG_From_int ( static_cast < int > ( 0x0004 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_MSG_DONTWAIT " , SWIG_From_int ( static_cast < int > ( 0x0008 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_MSG_MORE " , SWIG_From_int ( static_cast < int > ( 0x0010 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IOCPARM_MASK " , SWIG_From_unsigned_SS_int ( static_cast < unsigned int > ( 0x7fU ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IOC_VOID " , SWIG_From_unsigned_SS_long ( static_cast < unsigned long > ( 0x20000000UL ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IOC_OUT " , SWIG_From_unsigned_SS_long ( static_cast < unsigned long > ( 0x40000000UL ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IOC_IN " , SWIG_From_unsigned_SS_long ( static_cast < unsigned long > ( 0x80000000UL ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IOC_INOUT " , SWIG_From_unsigned_SS_long ( static_cast < unsigned long > ( ( 0x80000000UL | 0x40000000UL ) ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_NETWORK_STATUS_REQUESTING_CONFIGURATION " , SWIG_From_int ( static_cast < int > ( ZTS_NETWORK_STATUS_REQUESTING_CONFIGURATION ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_NETWORK_STATUS_OK " , SWIG_From_int ( static_cast < int > ( ZTS_NETWORK_STATUS_OK ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_NETWORK_STATUS_ACCESS_DENIED " , SWIG_From_int ( static_cast < int > ( ZTS_NETWORK_STATUS_ACCESS_DENIED ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_NETWORK_STATUS_NOT_FOUND " , SWIG_From_int ( static_cast < int > ( ZTS_NETWORK_STATUS_NOT_FOUND ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_NETWORK_STATUS_PORT_ERROR " , SWIG_From_int ( static_cast < int > ( ZTS_NETWORK_STATUS_PORT_ERROR ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_NETWORK_STATUS_CLIENT_TOO_OLD " , SWIG_From_int ( static_cast < int > ( ZTS_NETWORK_STATUS_CLIENT_TOO_OLD ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_NETWORK_TYPE_PRIVATE " , SWIG_From_int ( static_cast < int > ( ZTS_NETWORK_TYPE_PRIVATE ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_NETWORK_TYPE_PUBLIC " , SWIG_From_int ( static_cast < int > ( ZTS_NETWORK_TYPE_PUBLIC ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_PEER_ROLE_LEAF " , SWIG_From_int ( static_cast < int > ( ZTS_PEER_ROLE_LEAF ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_PEER_ROLE_MOON " , SWIG_From_int ( static_cast < int > ( ZTS_PEER_ROLE_MOON ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_PEER_ROLE_PLANET " , SWIG_From_int ( static_cast < int > ( ZTS_PEER_ROLE_PLANET ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_MAX_NUM_ROOTS " , SWIG_From_int ( static_cast < int > ( 16 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_MAX_ENDPOINTS_PER_ROOT " , SWIG_From_int ( static_cast < int > ( 32 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_DISABLE_CENTRAL_API " , SWIG_From_int ( static_cast < int > ( 1 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_ID_STR_BUF_LEN " , SWIG_From_int ( static_cast < int > ( 384 ) ) ) ;
SWIG_addvarlink ( globals , " _userEventCallback " , Swig_var__userEventCallback_get , Swig_var__userEventCallback_set ) ;
SWIG_Python_SetConstant ( d , " ZTS_SOL_SOCKET " , SWIG_From_int ( static_cast < int > ( 0x0fff ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_DEBUG " , SWIG_From_int ( static_cast < int > ( 0x0001 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_ACCEPTCONN " , SWIG_From_int ( static_cast < int > ( 0x0002 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_REUSEADDR " , SWIG_From_int ( static_cast < int > ( 0x0004 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_KEEPALIVE " , SWIG_From_int ( static_cast < int > ( 0x0008 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_DONTROUTE " , SWIG_From_int ( static_cast < int > ( 0x0010 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_BROADCAST " , SWIG_From_int ( static_cast < int > ( 0x0020 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_USELOOPBACK " , SWIG_From_int ( static_cast < int > ( 0x0040 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_LINGER " , SWIG_From_int ( static_cast < int > ( 0x0080 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_OOBINLINE " , SWIG_From_int ( static_cast < int > ( 0x0100 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_REUSEPORT " , SWIG_From_int ( static_cast < int > ( 0x0200 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_SNDBUF " , SWIG_From_int ( static_cast < int > ( 0x1001 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_RCVBUF " , SWIG_From_int ( static_cast < int > ( 0x1002 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_SNDLOWAT " , SWIG_From_int ( static_cast < int > ( 0x1003 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_RCVLOWAT " , SWIG_From_int ( static_cast < int > ( 0x1004 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_SNDTIMEO " , SWIG_From_int ( static_cast < int > ( 0x1005 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_RCVTIMEO " , SWIG_From_int ( static_cast < int > ( 0x1006 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_ERROR " , SWIG_From_int ( static_cast < int > ( 0x1007 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_TYPE " , SWIG_From_int ( static_cast < int > ( 0x1008 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_CONTIMEO " , SWIG_From_int ( static_cast < int > ( 0x1009 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_NO_CHECK " , SWIG_From_int ( static_cast < int > ( 0x100a ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SO_BINDTODEVICE " , SWIG_From_int ( static_cast < int > ( 0x100b ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IP_TOS " , SWIG_From_int ( static_cast < int > ( 0x0001 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IP_TTL " , SWIG_From_int ( static_cast < int > ( 0x0002 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IP_PKTINFO " , SWIG_From_int ( static_cast < int > ( 0x0008 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_TCP_NODELAY " , SWIG_From_int ( static_cast < int > ( 0x0001 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_TCP_KEEPALIVE " , SWIG_From_int ( static_cast < int > ( 0x0002 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_TCP_KEEPIDLE " , SWIG_From_int ( static_cast < int > ( 0x0003 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_TCP_KEEPINTVL " , SWIG_From_int ( static_cast < int > ( 0x0004 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_TCP_KEEPCNT " , SWIG_From_int ( static_cast < int > ( 0x0005 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPV6_CHECKSUM " , SWIG_From_int ( static_cast < int > ( 0x0007 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPV6_V6ONLY " , SWIG_From_int ( static_cast < int > ( 0x001b ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_UDPLITE_SEND_CSCOV " , SWIG_From_int ( static_cast < int > ( 0x01 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_UDPLITE_RECV_CSCOV " , SWIG_From_int ( static_cast < int > ( 0x02 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IP_MULTICAST_TTL " , SWIG_From_int ( static_cast < int > ( 5 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IP_MULTICAST_IF " , SWIG_From_int ( static_cast < int > ( 6 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IP_MULTICAST_LOOP " , SWIG_From_int ( static_cast < int > ( 7 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IP_ADD_MEMBERSHIP " , SWIG_From_int ( static_cast < int > ( 3 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IP_DROP_MEMBERSHIP " , SWIG_From_int ( static_cast < int > ( 4 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPV6_JOIN_GROUP " , SWIG_From_int ( static_cast < int > ( 12 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPV6_ADD_MEMBERSHIP " , SWIG_From_int ( static_cast < int > ( 12 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPV6_LEAVE_GROUP " , SWIG_From_int ( static_cast < int > ( 13 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPV6_DROP_MEMBERSHIP " , SWIG_From_int ( static_cast < int > ( 13 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPTOS_TOS_MASK " , SWIG_From_int ( static_cast < int > ( 0x1E ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPTOS_LOWDELAY " , SWIG_From_int ( static_cast < int > ( 0x10 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPTOS_THROUGHPUT " , SWIG_From_int ( static_cast < int > ( 0x08 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPTOS_RELIABILITY " , SWIG_From_int ( static_cast < int > ( 0x04 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPTOS_LOWCOST " , SWIG_From_int ( static_cast < int > ( 0x02 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPTOS_MINCOST " , SWIG_From_int ( static_cast < int > ( 0x02 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPTOS_PREC_MASK " , SWIG_From_int ( static_cast < int > ( 0xe0 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPTOS_PREC_NETCONTROL " , SWIG_From_int ( static_cast < int > ( 0xe0 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPTOS_PREC_INTERNETCONTROL " , SWIG_From_int ( static_cast < int > ( 0xc0 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPTOS_PREC_CRITIC_ECP " , SWIG_From_int ( static_cast < int > ( 0xa0 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPTOS_PREC_FLASHOVERRIDE " , SWIG_From_int ( static_cast < int > ( 0x80 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPTOS_PREC_FLASH " , SWIG_From_int ( static_cast < int > ( 0x60 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPTOS_PREC_IMMEDIATE " , SWIG_From_int ( static_cast < int > ( 0x40 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPTOS_PREC_PRIORITY " , SWIG_From_int ( static_cast < int > ( 0x20 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_IPTOS_PREC_ROUTINE " , SWIG_From_int ( static_cast < int > ( 0x00 ) ) ) ;
SWIG_Python_SetConstant ( d , " LWIP_SOCKET_OFFSET " , SWIG_From_int ( static_cast < int > ( 0 ) ) ) ;
SWIG_Python_SetConstant ( d , " MEMP_NUM_NETCONN " , SWIG_From_int ( static_cast < int > ( 1024 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_FD_SETSIZE " , SWIG_From_int ( static_cast < int > ( 1024 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_F_GETFL " , SWIG_From_int ( static_cast < int > ( 0x0003 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_F_SETFL " , SWIG_From_int ( static_cast < int > ( 0x0004 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_O_NONBLOCK " , SWIG_From_int ( static_cast < int > ( 1 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_O_NDELAY " , SWIG_From_int ( static_cast < int > ( 1 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_O_RDONLY " , SWIG_From_int ( static_cast < int > ( 2 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_O_WRONLY " , SWIG_From_int ( static_cast < int > ( 4 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_O_RDWR " , SWIG_From_int ( static_cast < int > ( ( 2 | 4 ) ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_POLLIN " , SWIG_From_int ( static_cast < int > ( 0x001 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_POLLOUT " , SWIG_From_int ( static_cast < int > ( 0x002 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_POLLERR " , SWIG_From_int ( static_cast < int > ( 0x004 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_POLLNVAL " , SWIG_From_int ( static_cast < int > ( 0x008 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_POLLRDNORM " , SWIG_From_int ( static_cast < int > ( 0x010 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_POLLRDBAND " , SWIG_From_int ( static_cast < int > ( 0x020 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_POLLPRI " , SWIG_From_int ( static_cast < int > ( 0x040 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_POLLWRNORM " , SWIG_From_int ( static_cast < int > ( 0x080 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_POLLWRBAND " , SWIG_From_int ( static_cast < int > ( 0x100 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_POLLHUP " , SWIG_From_int ( static_cast < int > ( 0x200 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_MSG_TRUNC " , SWIG_From_int ( static_cast < int > ( 0x04 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_MSG_CTRUNC " , SWIG_From_int ( static_cast < int > ( 0x08 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SHUT_RD " , SWIG_From_int ( static_cast < int > ( 0x0 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SHUT_WR " , SWIG_From_int ( static_cast < int > ( 0x1 ) ) ) ;
SWIG_Python_SetConstant ( d , " ZTS_SHUT_RDWR " , SWIG_From_int ( static_cast < int > ( 0x2 ) ) ) ;
2021-05-05 16:19:27 -07:00
# if PY_VERSION_HEX >= 0x03000000
2021-05-19 21:33:08 -07:00
return m ;
2021-05-05 16:19:27 -07:00
# else
2021-05-19 21:33:08 -07:00
return ;
2021-05-05 16:19:27 -07:00
# endif
}
2021-05-19 21:33:08 -07:00