/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.11 * * 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 SWIGRUBY /* ----------------------------------------------------------------------------- * 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 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* 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 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # 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 #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif #endif #ifndef SWIGEXPORT # 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 #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #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 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* 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 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # 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 #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif #endif #ifndef SWIGEXPORT # 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 #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #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 # 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) #else # define SWIG_TYPE_TABLE_NAME #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 # define SWIGRUNTIME SWIGINTERN #endif #ifndef SWIGRUNTIMEINLINE # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE #endif /* Generic buffer size */ #ifndef SWIG_BUFFER_SIZE # define SWIG_BUFFER_SIZE 1024 #endif /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 #define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 /* 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) { ... delete *ptr; } 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 () { if () { *ptr = ; return SWIG_NEWOBJ; } else { *ptr = ; 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() */ #define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) /* The NewMask denotes the object was created (using new/malloc) */ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) /* The TmpMask is for in/out typemaps that use temporal objects */ #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) /* Simple returning values */ #define SWIG_BADOBJ (SWIG_ERROR) #define SWIG_OLDOBJ (SWIG_OK) #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) /* Check, add and del mask methods */ #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)) /* Cast-Rank Mode */ #if defined(SWIG_CASTRANK_MODE) # 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; } #else /* no cast-rank mode */ # define SWIG_AddCast(r) (r) # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif #include #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store information on one type */ typedef struct swig_type_info { 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 */ } swig_type_info; /* Structure to store a type and conversion function used for casting */ typedef struct swig_cast_info { 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 */ } 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 { 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 */ } swig_module_info; /* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. Return 0 when the two name types are equivalent, as in strncmp, but skipping ' '. */ 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)); } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ 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; } equiv = SWIG_TypeNameComp(nb, ne, tb, te); if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; } /* Check the typename */ 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; } } return 0; } /* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (iter->type == from) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* Dynamic pointer casting. Down an inheritance hierarchy */ 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; } /* Return the name associated with this type */ SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty) { return ty->name; } /* Return the pretty name associated with this type, that is an unmangled type name in a form presentable to the user. */ 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; } /* Set the clientdata field for a type */ 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); } } cast = cast->next; } } SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { register size_t l = 0; register size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ register size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { register int compare = strcmp(name, iname); if (compare == 0) { 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; } /* 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. */ 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 { register 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); } /* neither found a match */ return 0; } /* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; register const unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } /* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { register unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register char d = *(c++); register unsigned char uu; if ((d >= '0') && (d <= '9')) uu = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (d - ('a'-10)); else return (char *) 0; *u = uu; } return c; } /* Pack 'void *' into a string buffer. */ 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; } } return SWIG_UnpackData(++c,ptr,sz); } #ifdef __cplusplus } #endif /* Errors in SWIG */ #define SWIG_UnknownError -1 #define SWIG_IOError -2 #define SWIG_RuntimeError -3 #define SWIG_IndexError -4 #define SWIG_TypeError -5 #define SWIG_DivisionByZero -6 #define SWIG_OverflowError -7 #define SWIG_SyntaxError -8 #define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 #define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 #include /* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which * breaks using rb_intern as an lvalue, as SWIG does. We work around this * issue for now by disabling this. * https://sourceforge.net/tracker/?func=detail&aid=2859614&group_id=1645&atid=101645 */ #ifdef rb_intern # undef rb_intern #endif /* Remove global macros defined in Ruby's win32.h */ #ifdef write # undef write #endif #ifdef read # undef read #endif #ifdef bind # undef bind #endif #ifdef close # undef close #endif #ifdef connect # undef connect #endif /* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */ #ifndef NUM2LL #define NUM2LL(x) NUM2LONG((x)) #endif #ifndef LL2NUM #define LL2NUM(x) INT2NUM((long) (x)) #endif #ifndef ULL2NUM #define ULL2NUM(x) UINT2NUM((unsigned long) (x)) #endif /* Ruby 1.7 doesn't (yet) define NUM2ULL() */ #ifndef NUM2ULL #ifdef HAVE_LONG_LONG #define NUM2ULL(x) rb_num2ull((x)) #else #define NUM2ULL(x) NUM2ULONG(x) #endif #endif /* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */ /* Define these for older versions so we can just write code the new way */ #ifndef RSTRING_LEN # define RSTRING_LEN(x) RSTRING(x)->len #endif #ifndef RSTRING_PTR # define RSTRING_PTR(x) RSTRING(x)->ptr #endif #ifndef RSTRING_END # define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x)) #endif #ifndef RARRAY_LEN # define RARRAY_LEN(x) RARRAY(x)->len #endif #ifndef RARRAY_PTR # define RARRAY_PTR(x) RARRAY(x)->ptr #endif #ifndef RFLOAT_VALUE # define RFLOAT_VALUE(x) RFLOAT(x)->value #endif #ifndef DOUBLE2NUM # define DOUBLE2NUM(x) rb_float_new(x) #endif #ifndef RHASH_TBL # define RHASH_TBL(x) (RHASH(x)->tbl) #endif #ifndef RHASH_ITER_LEV # define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev) #endif #ifndef RHASH_IFNONE # define RHASH_IFNONE(x) (RHASH(x)->ifnone) #endif #ifndef RHASH_SIZE # define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries) #endif #ifndef RHASH_EMPTY_P # define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0) #endif #ifndef RSTRUCT_LEN # define RSTRUCT_LEN(x) RSTRUCT(x)->len #endif #ifndef RSTRUCT_PTR # define RSTRUCT_PTR(x) RSTRUCT(x)->ptr #endif /* * Need to be very careful about how these macros are defined, especially * when compiling C++ code or C code with an ANSI C compiler. * * VALUEFUNC(f) is a macro used to typecast a C function that implements * a Ruby method so that it can be passed as an argument to API functions * like rb_define_method() and rb_define_singleton_method(). * * VOIDFUNC(f) is a macro used to typecast a C function that implements * either the "mark" or "free" stuff for a Ruby Data object, so that it * can be passed as an argument to API functions like Data_Wrap_Struct() * and Data_Make_Struct(). */ #ifdef __cplusplus # ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */ # define PROTECTFUNC(f) ((VALUE (*)()) f) # define VALUEFUNC(f) ((VALUE (*)()) f) # define VOIDFUNC(f) ((void (*)()) f) # else # ifndef ANYARGS /* These definitions should work for Ruby 1.6 */ # define PROTECTFUNC(f) ((VALUE (*)()) f) # define VALUEFUNC(f) ((VALUE (*)()) f) # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f) # else /* These definitions should work for Ruby 1.7+ */ # define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f) # define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f) # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f) # endif # endif #else # define VALUEFUNC(f) (f) # define VOIDFUNC(f) (f) #endif /* Don't use for expressions have side effect */ #ifndef RB_STRING_VALUE #define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s))) #endif #ifndef StringValue #define StringValue(s) RB_STRING_VALUE(s) #endif #ifndef StringValuePtr #define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s)) #endif #ifndef StringValueLen #define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s)) #endif #ifndef SafeStringValue #define SafeStringValue(v) do {\ StringValue(v);\ rb_check_safe_str(v);\ } while (0) #endif #ifndef HAVE_RB_DEFINE_ALLOC_FUNC #define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1) #define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new") #endif static VALUE _mSWIG = Qnil; /* ----------------------------------------------------------------------------- * error manipulation * ----------------------------------------------------------------------------- */ /* Define some additional error types */ #define SWIG_ObjectPreviouslyDeletedError -100 /* Define custom exceptions for errors that do not map to existing Ruby exceptions. Note this only works for C++ since a global cannot be initialized by a function in C. For C, fallback to rb_eRuntimeError.*/ SWIGINTERN VALUE getNullReferenceError(void) { static int init = 0; static VALUE rb_eNullReferenceError ; if (!init) { init = 1; rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError); } return rb_eNullReferenceError; } SWIGINTERN VALUE getObjectPreviouslyDeletedError(void) { static int init = 0; static VALUE rb_eObjectPreviouslyDeleted ; if (!init) { init = 1; rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError); } return rb_eObjectPreviouslyDeleted; } SWIGINTERN VALUE SWIG_Ruby_ErrorType(int SWIG_code) { VALUE type; switch (SWIG_code) { case SWIG_MemoryError: type = rb_eNoMemError; break; case SWIG_IOError: type = rb_eIOError; break; case SWIG_RuntimeError: type = rb_eRuntimeError; break; case SWIG_IndexError: type = rb_eIndexError; break; case SWIG_TypeError: type = rb_eTypeError; break; case SWIG_DivisionByZero: type = rb_eZeroDivError; break; case SWIG_OverflowError: type = rb_eRangeError; break; case SWIG_SyntaxError: type = rb_eSyntaxError; break; case SWIG_ValueError: type = rb_eArgError; break; case SWIG_SystemError: type = rb_eFatal; break; case SWIG_AttributeError: type = rb_eRuntimeError; break; case SWIG_NullReferenceError: type = getNullReferenceError(); break; case SWIG_ObjectPreviouslyDeletedError: type = getObjectPreviouslyDeletedError(); break; case SWIG_UnknownError: type = rb_eRuntimeError; break; default: type = rb_eRuntimeError; } return type; } /* This function is called when a user inputs a wrong argument to a method. */ SWIGINTERN const char* Ruby_Format_TypeError( const char* msg, const char* type, const char* name, const int argn, VALUE input ) { char buf[128]; VALUE str; VALUE asStr; if ( msg && *msg ) { str = rb_str_new2(msg); } else { str = rb_str_new(NULL, 0); } str = rb_str_cat2( str, "Expected argument " ); sprintf( buf, "%d of type ", argn-1 ); str = rb_str_cat2( str, buf ); str = rb_str_cat2( str, type ); str = rb_str_cat2( str, ", but got " ); str = rb_str_cat2( str, rb_obj_classname(input) ); str = rb_str_cat2( str, " " ); asStr = rb_inspect(input); if ( RSTRING_LEN(asStr) > 30 ) { str = rb_str_cat( str, StringValuePtr(asStr), 30 ); str = rb_str_cat2( str, "..." ); } else { str = rb_str_append( str, asStr ); } if ( name ) { str = rb_str_cat2( str, "\n\tin SWIG method '" ); str = rb_str_cat2( str, name ); str = rb_str_cat2( str, "'" ); } return StringValuePtr( str ); } /* This function is called when an overloaded method fails */ SWIGINTERN void Ruby_Format_OverloadedError( const int argc, const int maxargs, const char* method, const char* prototypes ) { const char* msg = "Wrong # of arguments"; if ( argc <= maxargs ) msg = "Wrong arguments"; rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n" "Possible C/C++ prototypes are:\n%s", msg, method, prototypes); } /* ----------------------------------------------------------------------------- * rubytracking.swg * * This file contains support for tracking mappings from * Ruby objects to C++ objects. This functionality is needed * to implement mark functions for Ruby's mark and sweep * garbage collector. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif /* Ruby 1.8 actually assumes the first case. */ #if SIZEOF_VOIDP == SIZEOF_LONG # define SWIG2NUM(v) LONG2NUM((unsigned long)v) # define NUM2SWIG(x) (unsigned long)NUM2LONG(x) #elif SIZEOF_VOIDP == SIZEOF_LONG_LONG # define SWIG2NUM(v) LL2NUM((unsigned long long)v) # define NUM2SWIG(x) (unsigned long long)NUM2LL(x) #else # error sizeof(void*) is not the same as long or long long #endif /* Global Ruby hash table to store Trackings from C/C++ structs to Ruby Objects. */ static VALUE swig_ruby_trackings = Qnil; /* Global variable that stores a reference to the ruby hash table delete function. */ static ID swig_ruby_hash_delete; /* Setup a Ruby hash table to store Trackings */ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) { /* Create a ruby hash table to store Trackings from C++ objects to Ruby objects. */ /* Try to see if some other .so has already created a tracking hash table, which we keep hidden in an instance var in the SWIG module. This is done to allow multiple DSOs to share the same tracking table. */ ID trackings_id = rb_intern( "@__trackings__" ); VALUE verbose = rb_gv_get("VERBOSE"); rb_gv_set("VERBOSE", Qfalse); swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id ); rb_gv_set("VERBOSE", verbose); /* No, it hasn't. Create one ourselves */ if ( swig_ruby_trackings == Qnil ) { swig_ruby_trackings = rb_hash_new(); rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings ); } /* Now store a reference to the hash table delete function so that we only have to look it up once.*/ swig_ruby_hash_delete = rb_intern("delete"); } /* Get a Ruby number to reference a pointer */ SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) { /* We cast the pointer to an unsigned long and then store a reference to it using a Ruby number object. */ /* Convert the pointer to a Ruby number */ return SWIG2NUM(ptr); } /* Get a Ruby number to reference an object */ SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) { /* We cast the object to an unsigned long and then store a reference to it using a Ruby number object. */ /* Convert the Object to a Ruby number */ return SWIG2NUM(object); } /* Get a Ruby object from a previously stored reference */ SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) { /* The provided Ruby number object is a reference to the Ruby object we want.*/ /* Convert the Ruby number to a Ruby object */ return NUM2SWIG(reference); } /* Add a Tracking from a C/C++ struct to a Ruby object */ SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) { /* In a Ruby hash table we store the pointer and the associated Ruby object. The trick here is that we cannot store the Ruby object directly - if we do then it cannot be garbage collected. So instead we typecast it as a unsigned long and convert it to a Ruby number object.*/ /* Get a reference to the pointer as a Ruby number */ VALUE key = SWIG_RubyPtrToReference(ptr); /* Get a reference to the Ruby object as a Ruby number */ VALUE value = SWIG_RubyObjectToReference(object); /* Store the mapping to the global hash table. */ rb_hash_aset(swig_ruby_trackings, key, value); } /* Get the Ruby object that owns the specified C/C++ struct */ SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) { /* Get a reference to the pointer as a Ruby number */ VALUE key = SWIG_RubyPtrToReference(ptr); /* Now lookup the value stored in the global hash table */ VALUE value = rb_hash_aref(swig_ruby_trackings, key); if (value == Qnil) { /* No object exists - return nil. */ return Qnil; } else { /* Convert this value to Ruby object */ return SWIG_RubyReferenceToObject(value); } } /* Remove a Tracking from a C/C++ struct to a Ruby object. It is very important to remove objects once they are destroyed since the same memory address may be reused later to create a new object. */ SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) { /* Get a reference to the pointer as a Ruby number */ VALUE key = SWIG_RubyPtrToReference(ptr); /* Delete the object from the hash table by calling Ruby's do this we need to call the Hash.delete method.*/ rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key); } /* This is a helper method that unlinks a Ruby object from its underlying C++ object. This is needed if the lifetime of the Ruby object is longer than the C++ object */ SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) { VALUE object = SWIG_RubyInstanceFor(ptr); if (object != Qnil) { DATA_PTR(object) = 0; } } #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * Ruby API portion that goes into the runtime * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif SWIGINTERN VALUE SWIG_Ruby_AppendOutput(VALUE target, VALUE o) { if (NIL_P(target)) { target = o; } else { if (TYPE(target) != T_ARRAY) { VALUE o2 = target; target = rb_ary_new(); rb_ary_push(target, o2); } rb_ary_push(target, o); } return target; } /* For ruby1.8.4 and earlier. */ #ifndef RUBY_INIT_STACK RUBY_EXTERN void Init_stack(VALUE* addr); # define RUBY_INIT_STACK \ VALUE variable_in_this_stack_frame; \ Init_stack(&variable_in_this_stack_frame); #endif #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * rubyrun.swg * * This file contains the runtime support for Ruby modules * and includes code for managing global variables and pointer * type checking. * ----------------------------------------------------------------------------- */ /* For backward compatibility only */ #define SWIG_POINTER_EXCEPTION 0 /* for raw pointers */ #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0) #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own) #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags) #define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own) #define swig_owntype ruby_owntype /* for raw packed data */ #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags) #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type) /* for class or struct pointers */ #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) /* for C or C++ function pointers */ #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0) #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0) /* for C++ member pointers, ie, member methods */ #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty) #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule(clientdata) #define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer) /* Error manipulation */ #define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code) #define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), "%s", msg) #define SWIG_fail goto fail /* Ruby-specific SWIG API */ #define SWIG_InitRuntime() SWIG_Ruby_InitRuntime() #define SWIG_define_class(ty) SWIG_Ruby_define_class(ty) #define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty) #define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value) #define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty) #include "assert.h" /* ----------------------------------------------------------------------------- * pointers/data manipulation * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif typedef struct { VALUE klass; VALUE mImpl; void (*mark)(void *); void (*destroy)(void *); int trackObjects; } swig_class; /* Global pointer used to keep some internal SWIG stuff */ static VALUE _cSWIG_Pointer = Qnil; static VALUE swig_runtime_data_type_pointer = Qnil; /* Global IDs used to keep some internal SWIG stuff */ static ID swig_arity_id = 0; static ID swig_call_id = 0; /* If your swig extension is to be run within an embedded ruby and has director callbacks, you should set -DRUBY_EMBEDDED during compilation. This will reset ruby's stack frame on each entry point from the main program the first time a virtual director function is invoked (in a non-recursive way). If this is not done, you run the risk of Ruby trashing the stack. */ #ifdef RUBY_EMBEDDED # define SWIG_INIT_STACK \ if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \ ++swig_virtual_calls; # define SWIG_RELEASE_STACK --swig_virtual_calls; # define Ruby_DirectorTypeMismatchException(x) \ rb_raise( rb_eTypeError, "%s", x ); return c_result; static unsigned int swig_virtual_calls = 0; #else /* normal non-embedded extension */ # define SWIG_INIT_STACK # define SWIG_RELEASE_STACK # define Ruby_DirectorTypeMismatchException(x) \ throw Swig::DirectorTypeMismatchException( x ); #endif /* RUBY_EMBEDDED */ SWIGRUNTIME VALUE getExceptionClass(void) { static int init = 0; static VALUE rubyExceptionClass ; if (!init) { init = 1; rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception")); } return rubyExceptionClass; } /* This code checks to see if the Ruby object being raised as part of an exception inherits from the Ruby class Exception. If so, the object is simply returned. If not, then a new Ruby exception object is created and that will be returned to Ruby.*/ SWIGRUNTIME VALUE SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) { VALUE exceptionClass = getExceptionClass(); if (rb_obj_is_kind_of(obj, exceptionClass)) { return obj; } else { return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj)); } } /* Initialize Ruby runtime support */ SWIGRUNTIME void SWIG_Ruby_InitRuntime(void) { if (_mSWIG == Qnil) { _mSWIG = rb_define_module("SWIG"); swig_call_id = rb_intern("call"); swig_arity_id = rb_intern("arity"); } } /* Define Ruby class for C type */ SWIGRUNTIME void SWIG_Ruby_define_class(swig_type_info *type) { VALUE klass; char *klass_name = (char *) malloc(4 + strlen(type->name) + 1); sprintf(klass_name, "TYPE%s", type->name); if (NIL_P(_cSWIG_Pointer)) { _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject); rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new"); } klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer); free((void *) klass_name); } /* Create a new pointer object */ SWIGRUNTIME VALUE SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags) { int own = flags & SWIG_POINTER_OWN; int track; char *klass_name; swig_class *sklass; VALUE klass; VALUE obj; if (!ptr) return Qnil; if (type->clientdata) { sklass = (swig_class *) type->clientdata; /* Are we tracking this class and have we already returned this Ruby object? */ track = sklass->trackObjects; if (track) { obj = SWIG_RubyInstanceFor(ptr); /* Check the object's type and make sure it has the correct type. It might not in cases where methods do things like downcast methods. */ if (obj != Qnil) { VALUE value = rb_iv_get(obj, "@__swigtype__"); const char* type_name = RSTRING_PTR(value); if (strcmp(type->name, type_name) == 0) { return obj; } } } /* Create a new Ruby object */ obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark), ( own ? VOIDFUNC(sklass->destroy) : (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 ) ), ptr); /* If tracking is on for this class then track this object. */ if (track) { SWIG_RubyAddTracking(ptr, obj); } } else { klass_name = (char *) malloc(4 + strlen(type->name) + 1); sprintf(klass_name, "TYPE%s", type->name); klass = rb_const_get(_mSWIG, rb_intern(klass_name)); free((void *) klass_name); obj = Data_Wrap_Struct(klass, 0, 0, ptr); } rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name)); return obj; } /* Create a new class instance (always owned) */ SWIGRUNTIME VALUE SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type) { VALUE obj; swig_class *sklass = (swig_class *) type->clientdata; obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0); rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name)); return obj; } /* Get type mangle from class name */ SWIGRUNTIMEINLINE char * SWIG_Ruby_MangleStr(VALUE obj) { VALUE stype = rb_iv_get(obj, "@__swigtype__"); return StringValuePtr(stype); } /* Acquire a pointer value */ typedef void (*ruby_owntype)(void*); SWIGRUNTIME ruby_owntype SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) { if (obj) { ruby_owntype oldown = RDATA(obj)->dfree; RDATA(obj)->dfree = own; return oldown; } else { return 0; } } /* Convert a pointer value */ SWIGRUNTIME int SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own) { char *c; swig_cast_info *tc; void *vptr = 0; /* Grab the pointer */ if (NIL_P(obj)) { *ptr = 0; return SWIG_OK; } else { if (TYPE(obj) != T_DATA) { return SWIG_ERROR; } Data_Get_Struct(obj, void, vptr); } if (own) *own = RDATA(obj)->dfree; /* Check to see if the input object is giving up ownership of the underlying C struct or C++ object. If so then we need to reset the destructor since the Ruby object no longer owns the underlying C++ object.*/ if (flags & SWIG_POINTER_DISOWN) { /* Is tracking on for this class? */ int track = 0; if (ty && ty->clientdata) { swig_class *sklass = (swig_class *) ty->clientdata; track = sklass->trackObjects; } if (track) { /* We are tracking objects for this class. Thus we change the destructor * to SWIG_RubyRemoveTracking. This allows us to * remove the mapping from the C++ to Ruby object * when the Ruby object is garbage collected. If we don't * do this, then it is possible we will return a reference * to a Ruby object that no longer exists thereby crashing Ruby. */ RDATA(obj)->dfree = SWIG_RubyRemoveTracking; } else { RDATA(obj)->dfree = 0; } } /* Do type-checking if type info was provided */ if (ty) { if (ty->clientdata) { if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) { if (vptr == 0) { /* The object has already been deleted */ return SWIG_ObjectPreviouslyDeletedError; } *ptr = vptr; return SWIG_OK; } } if ((c = SWIG_MangleStr(obj)) == NULL) { return SWIG_ERROR; } tc = SWIG_TypeCheck(c, ty); if (!tc) { return SWIG_ERROR; } else { int newmemory = 0; *ptr = SWIG_TypeCast(tc, vptr, &newmemory); assert(!newmemory); /* newmemory handling not yet implemented */ } } else { *ptr = vptr; } return SWIG_OK; } /* Check convert */ SWIGRUNTIMEINLINE int SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty) { char *c = SWIG_MangleStr(obj); if (!c) return 0; return SWIG_TypeCheck(c,ty) != 0; } SWIGRUNTIME VALUE SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) { char result[1024]; char *r = result; if ((2*sz + 1 + strlen(type->name)) > 1000) return 0; *(r++) = '_'; r = SWIG_PackData(r, ptr, sz); strcpy(r, type->name); return rb_str_new2(result); } /* Convert a packed value value */ SWIGRUNTIME int SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) { swig_cast_info *tc; const char *c; if (TYPE(obj) != T_STRING) goto type_error; c = StringValuePtr(obj); /* Pointer values must start with leading underscore */ if (*c != '_') goto type_error; c++; c = SWIG_UnpackData(c, ptr, sz); if (ty) { tc = SWIG_TypeCheck(c, ty); if (!tc) goto type_error; } return SWIG_OK; type_error: return SWIG_ERROR; } SWIGRUNTIME swig_module_info * SWIG_Ruby_GetModule(void *SWIGUNUSEDPARM(clientdata)) { VALUE pointer; swig_module_info *ret = 0; VALUE verbose = rb_gv_get("VERBOSE"); /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */ rb_gv_set("VERBOSE", Qfalse); /* first check if pointer already created */ pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); if (pointer != Qnil) { Data_Get_Struct(pointer, swig_module_info, ret); } /* reinstate warnings */ rb_gv_set("VERBOSE", verbose); return ret; } SWIGRUNTIME void SWIG_Ruby_SetModule(swig_module_info *pointer) { /* register a new class */ VALUE cl = rb_define_class("swig_runtime_data", rb_cObject); /* create and store the structure pointer to a global variable */ swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer); rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer); } /* This function can be used to check whether a proc or method or similarly callable function has been passed. Usually used in a %typecheck, like: %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) { $result = SWIG_Ruby_isCallable( $input ); } */ SWIGINTERN int SWIG_Ruby_isCallable( VALUE proc ) { if ( rb_respond_to( proc, swig_call_id ) ) return 1; return 0; } /* This function can be used to check the arity (number of arguments) a proc or method can take. Usually used in a %typecheck. Valid arities will be that equal to minimal or those < 0 which indicate a variable number of parameters at the end. */ SWIGINTERN int SWIG_Ruby_arity( VALUE proc, int minimal ) { if ( rb_respond_to( proc, swig_arity_id ) ) { VALUE num = rb_funcall( proc, swig_arity_id, 0 ); int arity = NUM2INT(num); if ( arity < 0 && (arity+1) < -minimal ) return 1; if ( arity == minimal ) return 1; return 1; } return 0; } #ifdef __cplusplus } #endif #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 /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_p_char swig_types[0] #define SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void swig_types[1] #define SWIGTYPE_p_f_p_void__p_void swig_types[2] #define SWIGTYPE_p_f_p_void__uintptr_t swig_types[3] #define SWIGTYPE_p_f_p_void__void swig_types[4] #define SWIGTYPE_p_f_p_void_p_struct_pn_string_t__int swig_types[5] #define SWIGTYPE_p_f_p_void_p_void__intptr_t swig_types[6] #define SWIGTYPE_p_int swig_types[7] #define SWIGTYPE_p_intptr_t swig_types[8] #define SWIGTYPE_p_long swig_types[9] #define SWIGTYPE_p_long_long swig_types[10] #define SWIGTYPE_p_p_char swig_types[11] #define SWIGTYPE_p_pn_activate_criteria_t swig_types[12] #define SWIGTYPE_p_pn_atom_t swig_types[13] #define SWIGTYPE_p_pn_atom_t_u swig_types[14] #define SWIGTYPE_p_pn_bytes_t swig_types[15] #define SWIGTYPE_p_pn_class_t swig_types[16] #define SWIGTYPE_p_pn_collector_t swig_types[17] #define SWIGTYPE_p_pn_condition_t swig_types[18] #define SWIGTYPE_p_pn_connection_t swig_types[19] #define SWIGTYPE_p_pn_connector_t swig_types[20] #define SWIGTYPE_p_pn_data_t swig_types[21] #define SWIGTYPE_p_pn_decimal128_t swig_types[22] #define SWIGTYPE_p_pn_delivery_t swig_types[23] #define SWIGTYPE_p_pn_delivery_tag_t swig_types[24] #define SWIGTYPE_p_pn_disposition_t swig_types[25] #define SWIGTYPE_p_pn_distribution_mode_t swig_types[26] #define SWIGTYPE_p_pn_driver_t swig_types[27] #define SWIGTYPE_p_pn_durability_t swig_types[28] #define SWIGTYPE_p_pn_error_t swig_types[29] #define SWIGTYPE_p_pn_event_category_t swig_types[30] #define SWIGTYPE_p_pn_event_t swig_types[31] #define SWIGTYPE_p_pn_event_type_t swig_types[32] #define SWIGTYPE_p_pn_expiry_policy_t swig_types[33] #define SWIGTYPE_p_pn_format_t swig_types[34] #define SWIGTYPE_p_pn_hash_t swig_types[35] #define SWIGTYPE_p_pn_io_t swig_types[36] #define SWIGTYPE_p_pn_iterator_t swig_types[37] #define SWIGTYPE_p_pn_link_t swig_types[38] #define SWIGTYPE_p_pn_list_t swig_types[39] #define SWIGTYPE_p_pn_listener_t swig_types[40] #define SWIGTYPE_p_pn_map_t swig_types[41] #define SWIGTYPE_p_pn_message_t swig_types[42] #define SWIGTYPE_p_pn_messenger_t swig_types[43] #define SWIGTYPE_p_pn_rcv_settle_mode_t swig_types[44] #define SWIGTYPE_p_pn_sasl_outcome_t swig_types[45] #define SWIGTYPE_p_pn_sasl_state_t swig_types[46] #define SWIGTYPE_p_pn_sasl_t swig_types[47] #define SWIGTYPE_p_pn_selectable_t swig_types[48] #define SWIGTYPE_p_pn_session_t swig_types[49] #define SWIGTYPE_p_pn_snd_settle_mode_t swig_types[50] #define SWIGTYPE_p_pn_ssl_domain_t swig_types[51] #define SWIGTYPE_p_pn_ssl_mode_t swig_types[52] #define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[53] #define SWIGTYPE_p_pn_ssl_t swig_types[54] #define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[55] #define SWIGTYPE_p_pn_status_t swig_types[56] #define SWIGTYPE_p_pn_string_t swig_types[57] #define SWIGTYPE_p_pn_subscription_t swig_types[58] #define SWIGTYPE_p_pn_terminus_t swig_types[59] #define SWIGTYPE_p_pn_terminus_type_t swig_types[60] #define SWIGTYPE_p_pn_transport_t swig_types[61] #define SWIGTYPE_p_pn_type_t swig_types[62] #define SWIGTYPE_p_pn_uuid_t swig_types[63] #define SWIGTYPE_p_short swig_types[64] #define SWIGTYPE_p_signed_char swig_types[65] #define SWIGTYPE_p_uintptr_t swig_types[66] #define SWIGTYPE_p_unsigned_char swig_types[67] #define SWIGTYPE_p_unsigned_int swig_types[68] #define SWIGTYPE_p_unsigned_long swig_types[69] #define SWIGTYPE_p_unsigned_long_long swig_types[70] #define SWIGTYPE_p_unsigned_short swig_types[71] #define SWIGTYPE_p_void swig_types[72] static swig_type_info *swig_types[74]; static swig_module_info swig_module = {swig_types, 73, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ #define SWIG_init Init_cproton #define SWIG_name "Cproton" static VALUE mCproton; #define SWIG_RUBY_THREAD_BEGIN_BLOCK #define SWIG_RUBY_THREAD_END_BLOCK #define SWIGVERSION 0x020011 #define SWIG_VERSION SWIGVERSION #define SWIG_as_voidptr(a) (void *)((const void *)(a)) #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) #include #include #include #include #include #include #include #include #include #if !defined(RSTRING_LEN) # define RSTRING_LEN(x) (RSTRING(X)->len) # define RSTRING_PTR(x) (RSTRING(x)->ptr) #endif SWIGINTERN swig_type_info* SWIG_pchar_descriptor(void) { static int init = 0; static swig_type_info* info = 0; if (!init) { info = SWIG_TypeQuery("_p_char"); init = 1; } return info; } SWIGINTERN int SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc) { if (TYPE(obj) == T_STRING) { char *cstr = StringValuePtr(obj); size_t size = RSTRING_LEN(obj) + 1; if (cptr) { if (alloc) { if (*alloc == SWIG_NEWOBJ) { *cptr = (char *)memcpy((char *)malloc((size)*sizeof(char)), cstr, sizeof(char)*(size)); } else { *cptr = cstr; *alloc = SWIG_OLDOBJ; } } } if (psize) *psize = size; return SWIG_OK; } else { 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; } } } return SWIG_TypeError; } SWIGINTERN VALUE SWIG_ruby_failed(void) { return Qnil; } /*@SWIG:/usr/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); unsigned long *res = (unsigned long *)(args[1]); *res = type == T_FIXNUM ? NUM2ULONG(obj) : rb_big2ulong(obj); return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val) { VALUE type = TYPE(obj); if ((type == T_FIXNUM) || (type == T_BIGNUM)) { unsigned long v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERNINLINE int SWIG_AsVal_size_t (VALUE obj, size_t *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); if (SWIG_IsOK(res) && val) *val = (size_t)(v); return res; } #include #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 #endif #define SWIG_From_long LONG2NUM SWIGINTERNINLINE VALUE SWIG_From_int (int value) { return SWIG_From_long (value); } SWIGINTERNINLINE VALUE SWIG_FromCharPtrAndSize(const char* carray, size_t size) { if (carray) { if (size > LONG_MAX) { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); return pchar_descriptor ? SWIG_NewPointerObj((char *)(carray), pchar_descriptor, 0) : Qnil; } else { return rb_str_new(carray, (long)(size)); } } else { return Qnil; } } int wrap_pn_link_recv(pn_link_t *link, char *OUTPUT, size_t *OUTPUT_SIZE) { ssize_t sz = pn_link_recv(link, OUTPUT, *OUTPUT_SIZE); if (sz >= 0) { *OUTPUT_SIZE = sz; } else { *OUTPUT_SIZE = 0; } return sz; } int wrap_pn_transport_output(pn_transport_t *transport, char *OUTPUT, size_t *OUTPUT_SIZE) { ssize_t sz = pn_transport_output(transport, OUTPUT, *OUTPUT_SIZE); if (sz >= 0) { *OUTPUT_SIZE = sz; } else { *OUTPUT_SIZE = 0; } return sz; } pn_delivery_t *wrap_pn_delivery(pn_link_t *link, char *STRING, size_t LENGTH) { return pn_delivery(link, pn_dtag(STRING, LENGTH)); } void wrap_pn_delivery_tag(pn_delivery_t *delivery, char **ALLOC_OUTPUT, size_t *ALLOC_SIZE) { pn_delivery_tag_t tag = pn_delivery_tag(delivery); *ALLOC_OUTPUT = malloc(tag.size); *ALLOC_SIZE = tag.size; memcpy(*ALLOC_OUTPUT, tag.bytes, tag.size); } int wrap_pn_message_data(char *STRING, size_t LENGTH, char *OUTPUT, size_t *OUTPUT_SIZE) { ssize_t sz = pn_message_data(OUTPUT, *OUTPUT_SIZE, STRING, LENGTH); if (sz >= 0) { *OUTPUT_SIZE = sz; } else { *OUTPUT_SIZE = 0; } return sz; } SWIGINTERNINLINE VALUE SWIG_FromCharPtr(const char *cptr) { return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); } SWIGINTERNINLINE VALUE SWIG_From_bool (bool value) { return value ? Qtrue : Qfalse; } SWIGINTERN int SWIG_AsCharArray(VALUE 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)) { if ((csize == size + 1) && cptr && !(cptr[csize-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) { free((char*)cptr); res = SWIG_DelNewMask(res); } return res; } if (alloc == SWIG_NEWOBJ) free((char*)cptr); } return SWIG_TypeError; } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_long (unsigned long value) { return ULONG2NUM(value); } SWIGINTERNINLINE VALUE SWIG_From_size_t (size_t value) { return SWIG_From_unsigned_SS_long ((unsigned long)(value)); } /*@SWIG:/usr/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); long *res = (long *)(args[1]); *res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj); return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_long (VALUE obj, long* val) { VALUE type = TYPE(obj); if ((type == T_FIXNUM) || (type == T_BIGNUM)) { long v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_int (VALUE obj, int *val) { 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 = (int)(v); } } return res; } #include #include /* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */ #ifndef SWIG_isfinite # if defined(isfinite) # define SWIG_isfinite(X) (isfinite(X)) # elif defined(_MSC_VER) # define SWIG_isfinite(X) (_finite(X)) # elif defined(__sun) && defined(__SVR4) # include # define SWIG_isfinite(X) (finite(X)) # endif #endif /* Accept infinite as a valid float value unless we are unable to check if a value is finite */ #ifdef SWIG_isfinite # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X)) #else # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX)) #endif /*@SWIG:/usr/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); double *res = (double *)(args[1]); *res = NUM2DBL(obj); return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_double (VALUE obj, double *val) { VALUE type = TYPE(obj); if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) { double v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_float (VALUE obj, float *val) { 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 = (float)(v); } } return res; } SWIGINTERN int SWIG_AsVal_bool (VALUE obj, bool *val) { if (obj == Qtrue) { if (val) *val = true; return SWIG_OK; } else if (obj == Qfalse) { if (val) *val = false; return SWIG_OK; } else { int res = 0; if (SWIG_AsVal_int (obj, &res) == SWIG_OK) { if (val) *val = res ? true : false; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERNINLINE VALUE SWIG_From_long_SS_long (long long value) { return LL2NUM(value); } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_long_SS_long (unsigned long long value) { return ULL2NUM(value); } /*@SWIG:/usr/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); long long *res = (long long *)(args[1]); *res = type == T_FIXNUM ? NUM2ULL(obj) : rb_big2ull(obj); return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val) { VALUE type = TYPE(obj); if ((type == T_FIXNUM) || (type == T_BIGNUM)) { unsigned long long v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_short (unsigned short value) { return SWIG_From_unsigned_SS_long (value); } SWIGINTERN int SWIG_AsVal_unsigned_SS_short (VALUE obj, unsigned short *val) { 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 = (unsigned short)(v); } } return res; } /*@SWIG:/usr/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); long long *res = (long long *)(args[1]); *res = type == T_FIXNUM ? NUM2LL(obj) : rb_big2ll(obj); return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_long_SS_long (VALUE obj, long long *val) { VALUE type = TYPE(obj); if ((type == T_FIXNUM) || (type == T_BIGNUM)) { long long v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_char (unsigned char value) { return SWIG_From_unsigned_SS_long (value); } SWIGINTERN int SWIG_AsVal_unsigned_SS_char (VALUE obj, unsigned char *val) { 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 = (unsigned char)(v); } } return res; } typedef union { bool as_bool; uint8_t as_ubyte; int8_t as_byte; uint16_t as_ushort; int16_t as_short; uint32_t as_uint; int32_t as_int; pn_char_t as_char; uint64_t as_ulong; int64_t as_long; pn_timestamp_t as_timestamp; float as_float; double as_double; pn_decimal32_t as_decimal32; pn_decimal64_t as_decimal64; pn_decimal128_t as_decimal128; pn_uuid_t as_uuid; pn_bytes_t as_bytes; } pn_atom_t_u; SWIGINTERN int SWIG_AsVal_signed_SS_char (VALUE obj, signed char *val) { long v; int res = SWIG_AsVal_long (obj, &v); if (SWIG_IsOK(res)) { if ((v < SCHAR_MIN || v > SCHAR_MAX)) { return SWIG_OverflowError; } else { if (val) *val = (signed char)(v); } } return res; } SWIGINTERNINLINE VALUE SWIG_From_signed_SS_char (signed char value) { return SWIG_From_long (value); } SWIGINTERN int SWIG_AsVal_short (VALUE obj, short *val) { 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 = (short)(v); } } return res; } SWIGINTERNINLINE VALUE SWIG_From_short (short value) { return SWIG_From_long (value); } #define SWIG_From_double rb_float_new SWIGINTERNINLINE VALUE SWIG_From_float (float value) { return SWIG_From_double (value); } SWIGINTERN VALUE _wrap_pn_message_load(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; size_t size2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_load", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, &size2, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_message_load", 2, argv[1] )); } arg2 = (char *)(buf2); arg3 = (size_t)(size2 - 1); result = (int)pn_message_load(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_load_data(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; size_t size2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_load_data", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, &size2, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_message_load_data", 2, argv[1] )); } arg2 = (char *)(buf2); arg3 = (size_t)(size2 - 1); result = (int)pn_message_load_data(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_load_text(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; size_t size2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_load_text", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, &size2, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_message_load_text", 2, argv[1] )); } arg2 = (char *)(buf2); arg3 = (size_t)(size2 - 1); result = (int)pn_message_load_text(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_load_amqp(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; size_t size2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_load_amqp", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, &size2, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_message_load_amqp", 2, argv[1] )); } arg2 = (char *)(buf2); arg3 = (size_t)(size2 - 1); result = (int)pn_message_load_amqp(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_load_json(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; size_t size2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_load_json", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, &size2, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_message_load_json", 2, argv[1] )); } arg2 = (char *)(buf2); arg3 = (size_t)(size2 - 1); result = (int)pn_message_load_json(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_encode(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; size_t *arg3 = (size_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; size_t n2 ; char *buff2 = 0 ; size_t size2 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_encode", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsVal_size_t (argv[1], &n2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","pn_message_encode", 2, argv[1] )); } buff2= (char *)malloc((n2+1)*sizeof(char)); arg2 = (char *)(buff2); size2 = (size_t)(n2); arg3 = &size2; result = (int)pn_message_encode(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3)); if (buff2) free((char*)buff2); return vresult; fail: if (buff2) free((char*)buff2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_save(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; size_t *arg3 = (size_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; size_t n2 ; char *buff2 = 0 ; size_t size2 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_save", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsVal_size_t (argv[1], &n2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","pn_message_save", 2, argv[1] )); } buff2= (char *)malloc((n2+1)*sizeof(char)); arg2 = (char *)(buff2); size2 = (size_t)(n2); arg3 = &size2; result = (int)pn_message_save(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3)); if (buff2) free((char*)buff2); return vresult; fail: if (buff2) free((char*)buff2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_save_data(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; size_t *arg3 = (size_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; size_t n2 ; char *buff2 = 0 ; size_t size2 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_save_data", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsVal_size_t (argv[1], &n2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","pn_message_save_data", 2, argv[1] )); } buff2= (char *)malloc((n2+1)*sizeof(char)); arg2 = (char *)(buff2); size2 = (size_t)(n2); arg3 = &size2; result = (int)pn_message_save_data(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3)); if (buff2) free((char*)buff2); return vresult; fail: if (buff2) free((char*)buff2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_save_text(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; size_t *arg3 = (size_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; size_t n2 ; char *buff2 = 0 ; size_t size2 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_save_text", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsVal_size_t (argv[1], &n2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","pn_message_save_text", 2, argv[1] )); } buff2= (char *)malloc((n2+1)*sizeof(char)); arg2 = (char *)(buff2); size2 = (size_t)(n2); arg3 = &size2; result = (int)pn_message_save_text(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3)); if (buff2) free((char*)buff2); return vresult; fail: if (buff2) free((char*)buff2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_save_amqp(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; size_t *arg3 = (size_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; size_t n2 ; char *buff2 = 0 ; size_t size2 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_save_amqp", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsVal_size_t (argv[1], &n2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","pn_message_save_amqp", 2, argv[1] )); } buff2= (char *)malloc((n2+1)*sizeof(char)); arg2 = (char *)(buff2); size2 = (size_t)(n2); arg3 = &size2; result = (int)pn_message_save_amqp(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3)); if (buff2) free((char*)buff2); return vresult; fail: if (buff2) free((char*)buff2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_save_json(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; size_t *arg3 = (size_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; size_t n2 ; char *buff2 = 0 ; size_t size2 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_save_json", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsVal_size_t (argv[1], &n2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","pn_message_save_json", 2, argv[1] )); } buff2= (char *)malloc((n2+1)*sizeof(char)); arg2 = (char *)(buff2); size2 = (size_t)(n2); arg3 = &size2; result = (int)pn_message_save_json(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3)); if (buff2) free((char*)buff2); return vresult; fail: if (buff2) free((char*)buff2); return Qnil; } SWIGINTERN VALUE _wrap_pn_link_send(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; size_t size2 = 0 ; int alloc2 = 0 ; ssize_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_send", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, &size2, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_link_send", 2, argv[1] )); } arg2 = (char *)(buf2); arg3 = (size_t)(size2 - 1); result = (ssize_t)pn_link_send(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_link_recv(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; char *arg2 = (char *) 0 ; size_t *arg3 = (size_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; size_t n2 ; char *buff2 = 0 ; size_t size2 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","wrap_pn_link_recv", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); res2 = SWIG_AsVal_size_t (argv[1], &n2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","wrap_pn_link_recv", 2, argv[1] )); } buff2= (char *)malloc((n2+1)*sizeof(char)); arg2 = (char *)(buff2); size2 = (size_t)(n2); arg3 = &size2; result = (int)wrap_pn_link_recv(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3)); if (buff2) free((char*)buff2); return vresult; fail: if (buff2) free((char*)buff2); return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_input(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; size_t size2 = 0 ; int alloc2 = 0 ; ssize_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_input", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, &size2, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_transport_input", 2, argv[1] )); } arg2 = (char *)(buf2); arg3 = (size_t)(size2 - 1); result = (ssize_t)pn_transport_input(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_output(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; char *arg2 = (char *) 0 ; size_t *arg3 = (size_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; size_t n2 ; char *buff2 = 0 ; size_t size2 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","wrap_pn_transport_output", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); res2 = SWIG_AsVal_size_t (argv[1], &n2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","wrap_pn_transport_output", 2, argv[1] )); } buff2= (char *)malloc((n2+1)*sizeof(char)); arg2 = (char *)(buff2); size2 = (size_t)(n2); arg3 = &size2; result = (int)wrap_pn_transport_output(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3)); if (buff2) free((char*)buff2); return vresult; fail: if (buff2) free((char*)buff2); return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; size_t size2 = 0 ; int alloc2 = 0 ; pn_delivery_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","wrap_pn_delivery", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, &size2, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","wrap_pn_delivery", 2, argv[1] )); } arg2 = (char *)(buf2); arg3 = (size_t)(size2 - 1); result = (pn_delivery_t *)wrap_pn_delivery(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_tag(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; char **arg2 = (char **) 0 ; size_t *arg3 = (size_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *temp2 = 0 ; size_t tempn2 ; VALUE vresult = Qnil; arg2 = &temp2; arg3 = &tempn2; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","wrap_pn_delivery_tag", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); wrap_pn_delivery_tag(arg1,arg2,arg3); if (*arg2) { vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(*arg2,*arg3)); free(*arg2); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_data(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; size_t arg2 ; char *arg3 = (char *) 0 ; size_t *arg4 = (size_t *) 0 ; int res1 ; char *buf1 = 0 ; size_t size1 = 0 ; int alloc1 = 0 ; int res3 ; size_t n3 ; char *buff3 = 0 ; size_t size3 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, &size1, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char *","wrap_pn_message_data", 1, argv[0] )); } arg1 = (char *)(buf1); arg2 = (size_t)(size1 - 1); res3 = SWIG_AsVal_size_t (argv[1], &n3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","wrap_pn_message_data", 3, argv[1] )); } buff3= (char *)malloc((n3+1)*sizeof(char)); arg3 = (char *)(buff3); size3 = (size_t)(n3); arg4 = &size3; result = (int)wrap_pn_message_data(arg1,arg2,arg3,arg4); vresult = SWIG_From_int((int)(result)); vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg3,*arg4)); if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); if (buff3) free((char*)buff3); return vresult; fail: if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); if (buff3) free((char*)buff3); return Qnil; } SWIGINTERN VALUE _wrap_pn_ssl_get_cipher_name(int argc, VALUE *argv, VALUE self) { pn_ssl_t *arg1 = (pn_ssl_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; size_t size2 ; char *buff2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_get_cipher_name", 1, argv[0] )); } arg1 = (pn_ssl_t *)(argp1); res2 = SWIG_AsVal_size_t (argv[1], &size2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t MAX_OUTPUT_SIZE)","pn_ssl_get_cipher_name", 2, argv[1] )); } buff2= (char *)malloc((size2+1)*sizeof(char)); arg3 = (size_t)(size2); arg2 = (char *)(buff2); result = (bool)pn_ssl_get_cipher_name(arg1,arg2,arg3); vresult = SWIG_From_bool((bool)(result)); vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtr(arg2)); if (buff2) free((char*)buff2); return vresult; fail: if (buff2) free((char*)buff2); return Qnil; } SWIGINTERN VALUE _wrap_pn_ssl_get_protocol_name(int argc, VALUE *argv, VALUE self) { pn_ssl_t *arg1 = (pn_ssl_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; size_t size2 ; char *buff2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_get_protocol_name", 1, argv[0] )); } arg1 = (pn_ssl_t *)(argp1); res2 = SWIG_AsVal_size_t (argv[1], &size2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t MAX_OUTPUT_SIZE)","pn_ssl_get_protocol_name", 2, argv[1] )); } buff2= (char *)malloc((size2+1)*sizeof(char)); arg3 = (size_t)(size2); arg2 = (char *)(buff2); result = (bool)pn_ssl_get_protocol_name(arg1,arg2,arg3); vresult = SWIG_From_bool((bool)(result)); vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtr(arg2)); if (buff2) free((char*)buff2); return vresult; fail: if (buff2) free((char*)buff2); return Qnil; } static swig_class SwigClassPn_decimal128_t; SWIGINTERN VALUE _wrap_pn_decimal128_t_bytes_set(int argc, VALUE *argv, VALUE self) { pn_decimal128_t *arg1 = (pn_decimal128_t *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; int res2 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_decimal128_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_decimal128_t *","bytes", 1, self )); } arg1 = (pn_decimal128_t *)(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","bytes", 2, argv[0] )); } arg2 = (char *)(temp2); if (arg2) memcpy(arg1->bytes,arg2,16*sizeof(char)); else memset(arg1->bytes,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_decimal128_t_bytes_get(int argc, VALUE *argv, VALUE self) { pn_decimal128_t *arg1 = (pn_decimal128_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_decimal128_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_decimal128_t *","bytes", 1, self )); } arg1 = (pn_decimal128_t *)(argp1); result = (char *)(char *) ((arg1)->bytes); { size_t size = 16; while (size && (result[size - 1] == '\0')) --size; vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_pn_decimal128_t_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_pn_decimal128_t_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_pn_decimal128_t); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_pn_decimal128_t(int argc, VALUE *argv, VALUE self) { pn_decimal128_t *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (pn_decimal128_t *)calloc(1, sizeof(pn_decimal128_t)); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_pn_decimal128_t(pn_decimal128_t *arg1) { free((char *) arg1); } static swig_class SwigClassPn_uuid_t; SWIGINTERN VALUE _wrap_pn_uuid_t_bytes_set(int argc, VALUE *argv, VALUE self) { pn_uuid_t *arg1 = (pn_uuid_t *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; int res2 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_uuid_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_uuid_t *","bytes", 1, self )); } arg1 = (pn_uuid_t *)(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","bytes", 2, argv[0] )); } arg2 = (char *)(temp2); if (arg2) memcpy(arg1->bytes,arg2,16*sizeof(char)); else memset(arg1->bytes,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_uuid_t_bytes_get(int argc, VALUE *argv, VALUE self) { pn_uuid_t *arg1 = (pn_uuid_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_uuid_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_uuid_t *","bytes", 1, self )); } arg1 = (pn_uuid_t *)(argp1); result = (char *)(char *) ((arg1)->bytes); { size_t size = 16; while (size && (result[size - 1] == '\0')) --size; vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_pn_uuid_t_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_pn_uuid_t_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_pn_uuid_t); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_pn_uuid_t(int argc, VALUE *argv, VALUE self) { pn_uuid_t *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (pn_uuid_t *)calloc(1, sizeof(pn_uuid_t)); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_pn_uuid_t(pn_uuid_t *arg1) { free((char *) arg1); } static swig_class SwigClassPn_bytes_t; /* Document-method: Cproton::pn_bytes_t.size call-seq: size -> size_t Size or Length of the pn_bytes_t. */ /* Document-method: Cproton::pn_bytes_t.size= call-seq: size=(x) -> size_t Size or Length of the pn_bytes_t. */ SWIGINTERN VALUE _wrap_pn_bytes_t_size_set(int argc, VALUE *argv, VALUE self) { pn_bytes_t *arg1 = (pn_bytes_t *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_bytes_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_bytes_t *","size", 1, self )); } arg1 = (pn_bytes_t *)(argp1); ecode2 = SWIG_AsVal_size_t(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","size", 2, argv[0] )); } arg2 = (size_t)(val2); if (arg1) (arg1)->size = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_bytes_t_size_get(int argc, VALUE *argv, VALUE self) { pn_bytes_t *arg1 = (pn_bytes_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_bytes_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_bytes_t *","size", 1, self )); } arg1 = (pn_bytes_t *)(argp1); result = (size_t) ((arg1)->size); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_bytes_t_start_set(int argc, VALUE *argv, VALUE self) { pn_bytes_t *arg1 = (pn_bytes_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_bytes_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_bytes_t *","start", 1, self )); } arg1 = (pn_bytes_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","start", 2, argv[0] )); } arg2 = (char *)(buf2); if (arg1->start) free((char*)arg1->start); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->start = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->start = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_bytes_t_start_get(int argc, VALUE *argv, VALUE self) { pn_bytes_t *arg1 = (pn_bytes_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_bytes_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_bytes_t *","start", 1, self )); } arg1 = (pn_bytes_t *)(argp1); result = (char *) ((arg1)->start); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_pn_bytes_t_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_pn_bytes_t_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_pn_bytes_t); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_pn_bytes_t(int argc, VALUE *argv, VALUE self) { pn_bytes_t *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (pn_bytes_t *)calloc(1, sizeof(pn_bytes_t)); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_pn_bytes_t(pn_bytes_t *arg1) { free((char *) arg1); } SWIGINTERN VALUE _wrap_pn_bytes(int argc, VALUE *argv, VALUE self) { size_t arg1 ; char *arg2 = (char *) 0 ; size_t val1 ; int ecode1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; pn_bytes_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_size_t(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","pn_bytes", 1, argv[0] )); } arg1 = (size_t)(val1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_bytes", 2, argv[1] )); } arg2 = (char *)(buf2); result = pn_bytes(arg1,arg2); { vresult = rb_str_new((&result)->start, (&result)->size); } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_bytes_dup(int argc, VALUE *argv, VALUE self) { size_t arg1 ; char *arg2 = (char *) 0 ; size_t val1 ; int ecode1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; pn_bytes_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_size_t(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","pn_bytes_dup", 1, argv[0] )); } arg1 = (size_t)(val1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_bytes_dup", 2, argv[1] )); } arg2 = (char *)(buf2); result = pn_bytes_dup(arg1,(char const *)arg2); { vresult = rb_str_new((&result)->start, (&result)->size); } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } static swig_class SwigClassPn_class_t; SWIGINTERN VALUE _wrap_pn_class_t_initialize_set(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void (*arg2)(void *) = (void (*)(void *)) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","initialize", 1, self )); } arg1 = (pn_class_t *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_void__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(void *)","initialize", 2, argv[0] )); } } if (arg1) (arg1)->initialize = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_t_initialize_get(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void (*result)(void *) = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","initialize", 1, self )); } arg1 = (pn_class_t *)(argp1); result = (void (*)(void *)) ((arg1)->initialize); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__void); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_t_finalize_set(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void (*arg2)(void *) = (void (*)(void *)) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","finalize", 1, self )); } arg1 = (pn_class_t *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_void__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(void *)","finalize", 2, argv[0] )); } } if (arg1) (arg1)->finalize = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_t_finalize_get(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void (*result)(void *) = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","finalize", 1, self )); } arg1 = (pn_class_t *)(argp1); result = (void (*)(void *)) ((arg1)->finalize); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__void); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_t_hashcode_set(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; uintptr_t (*arg2)(void *) = (uintptr_t (*)(void *)) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","hashcode", 1, self )); } arg1 = (pn_class_t *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_void__uintptr_t); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "uintptr_t (*)(void *)","hashcode", 2, argv[0] )); } } if (arg1) (arg1)->hashcode = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_t_hashcode_get(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uintptr_t (*result)(void *) = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","hashcode", 1, self )); } arg1 = (pn_class_t *)(argp1); result = (uintptr_t (*)(void *)) ((arg1)->hashcode); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__uintptr_t); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_t_compare_set(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; intptr_t (*arg2)(void *,void *) = (intptr_t (*)(void *,void *)) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","compare", 1, self )); } arg1 = (pn_class_t *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_void_p_void__intptr_t); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "intptr_t (*)(void *,void *)","compare", 2, argv[0] )); } } if (arg1) (arg1)->compare = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_t_compare_get(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; intptr_t (*result)(void *,void *) = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","compare", 1, self )); } arg1 = (pn_class_t *)(argp1); result = (intptr_t (*)(void *,void *)) ((arg1)->compare); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_void__intptr_t); return vresult; fail: return Qnil; } /* Document-method: Cproton::pn_class_t.inspect call-seq: inspect(arg2, arg3) -> int (*)(void *,pn_string_t *) Inspect class and its contents. */ /* Document-method: Cproton::pn_class_t.inspect= call-seq: inspect=(x) -> int (*)(void *,pn_string_t *) Inspect class and its contents. */ SWIGINTERN VALUE _wrap_pn_class_t_inspect_set(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; int (*arg2)(void *,pn_string_t *) = (int (*)(void *,pn_string_t *)) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","inspect", 1, self )); } arg1 = (pn_class_t *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_void_p_struct_pn_string_t__int); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "int (*)(void *,pn_string_t *)","inspect", 2, argv[0] )); } } if (arg1) (arg1)->inspect = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_t_inspect_get(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int (*result)(void *,pn_string_t *) = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","inspect", 1, self )); } arg1 = (pn_class_t *)(argp1); result = (int (*)(void *,pn_string_t *)) ((arg1)->inspect); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_struct_pn_string_t__int); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_pn_class_t_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_pn_class_t_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_pn_class_t); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_pn_class_t(int argc, VALUE *argv, VALUE self) { pn_class_t *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (pn_class_t *)calloc(1, sizeof(pn_class_t)); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_pn_class_t(pn_class_t *arg1) { free((char *) arg1); } SWIGINTERN VALUE _wrap_pn_new(int argc, VALUE *argv, VALUE self) { size_t arg1 ; pn_class_t *arg2 = (pn_class_t *) 0 ; size_t val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_size_t(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","pn_new", 1, argv[0] )); } arg1 = (size_t)(val1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_class_t *","pn_new", 2, argv[1] )); } arg2 = (pn_class_t *)(argp2); result = (void *)pn_new(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_initialize(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; pn_class_t *arg2 = (pn_class_t *) 0 ; int res1 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_initialize", 1, argv[0] )); } res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_class_t *","pn_initialize", 2, argv[1] )); } arg2 = (pn_class_t *)(argp2); pn_initialize(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_incref(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; int res1 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_incref", 1, argv[0] )); } result = (void *)pn_incref(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_decref(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; int res1 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_decref", 1, argv[0] )); } pn_decref(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_refcount(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; int res1 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_refcount", 1, argv[0] )); } result = (int)pn_refcount(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_finalize(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; int res1 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_finalize", 1, argv[0] )); } pn_finalize(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_free(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; int res1 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_free", 1, argv[0] )); } pn_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; int res1 ; pn_class_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_class", 1, argv[0] )); } result = (pn_class_t *)pn_class(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_class_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_hashcode(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; int res1 ; uintptr_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_hashcode", 1, argv[0] )); } result = pn_hashcode(arg1); vresult = SWIG_NewPointerObj((uintptr_t *)memcpy((uintptr_t *)malloc(sizeof(uintptr_t)),&result,sizeof(uintptr_t)), SWIGTYPE_p_uintptr_t, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_compare(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; void *arg2 = (void *) 0 ; int res1 ; int res2 ; intptr_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_compare", 1, argv[0] )); } res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_compare", 2, argv[1] )); } result = pn_compare(arg1,arg2); vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)malloc(sizeof(intptr_t)),&result,sizeof(intptr_t)), SWIGTYPE_p_intptr_t, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_equals(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; void *arg2 = (void *) 0 ; int res1 ; int res2 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_equals", 1, argv[0] )); } res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_equals", 2, argv[1] )); } result = (bool)pn_equals(arg1,arg2); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_inspect(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; pn_string_t *arg2 = (pn_string_t *) 0 ; int res1 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_inspect", 1, argv[0] )); } res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_string_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_string_t *","pn_inspect", 2, argv[1] )); } arg2 = (pn_string_t *)(argp2); result = (int)pn_inspect(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_list(int argc, VALUE *argv, VALUE self) { size_t arg1 ; int arg2 ; size_t val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; pn_list_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_size_t(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","pn_list", 1, argv[0] )); } arg1 = (size_t)(val1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_list", 2, argv[1] )); } arg2 = (int)(val2); result = (pn_list_t *)pn_list(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_list_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_list_size(int argc, VALUE *argv, VALUE self) { pn_list_t *arg1 = (pn_list_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_size", 1, argv[0] )); } arg1 = (pn_list_t *)(argp1); result = (size_t)pn_list_size(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_list_get(int argc, VALUE *argv, VALUE self) { pn_list_t *arg1 = (pn_list_t *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_get", 1, argv[0] )); } arg1 = (pn_list_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_list_get", 2, argv[1] )); } arg2 = (int)(val2); result = (void *)pn_list_get(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_list_set(int argc, VALUE *argv, VALUE self) { pn_list_t *arg1 = (pn_list_t *) 0 ; int arg2 ; void *arg3 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_set", 1, argv[0] )); } arg1 = (pn_list_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_list_set", 2, argv[1] )); } arg2 = (int)(val2); res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_list_set", 3, argv[2] )); } pn_list_set(arg1,arg2,arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_list_add(int argc, VALUE *argv, VALUE self) { pn_list_t *arg1 = (pn_list_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_add", 1, argv[0] )); } arg1 = (pn_list_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_list_add", 2, argv[1] )); } result = (int)pn_list_add(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_list_index(int argc, VALUE *argv, VALUE self) { pn_list_t *arg1 = (pn_list_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; ssize_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_index", 1, argv[0] )); } arg1 = (pn_list_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_list_index", 2, argv[1] )); } result = (ssize_t)pn_list_index(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_list_remove(int argc, VALUE *argv, VALUE self) { pn_list_t *arg1 = (pn_list_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_remove", 1, argv[0] )); } arg1 = (pn_list_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_list_remove", 2, argv[1] )); } result = (bool)pn_list_remove(arg1,arg2); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_list_del(int argc, VALUE *argv, VALUE self) { pn_list_t *arg1 = (pn_list_t *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_del", 1, argv[0] )); } arg1 = (pn_list_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_list_del", 2, argv[1] )); } arg2 = (int)(val2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","pn_list_del", 3, argv[2] )); } arg3 = (int)(val3); pn_list_del(arg1,arg2,arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_list_clear(int argc, VALUE *argv, VALUE self) { pn_list_t *arg1 = (pn_list_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_clear", 1, argv[0] )); } arg1 = (pn_list_t *)(argp1); pn_list_clear(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_list_iterator(int argc, VALUE *argv, VALUE self) { pn_list_t *arg1 = (pn_list_t *) 0 ; pn_iterator_t *arg2 = (pn_iterator_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_iterator", 1, argv[0] )); } arg1 = (pn_list_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_iterator_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_iterator_t *","pn_list_iterator", 2, argv[1] )); } arg2 = (pn_iterator_t *)(argp2); pn_list_iterator(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_map(int argc, VALUE *argv, VALUE self) { size_t arg1 ; float arg2 ; int arg3 ; size_t val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; pn_map_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_size_t(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","pn_map", 1, argv[0] )); } arg1 = (size_t)(val1); ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","pn_map", 2, argv[1] )); } arg2 = (float)(val2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","pn_map", 3, argv[2] )); } arg3 = (int)(val3); result = (pn_map_t *)pn_map(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_map_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_map_size(int argc, VALUE *argv, VALUE self) { pn_map_t *arg1 = (pn_map_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_size", 1, argv[0] )); } arg1 = (pn_map_t *)(argp1); result = (size_t)pn_map_size(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_map_put(int argc, VALUE *argv, VALUE self) { pn_map_t *arg1 = (pn_map_t *) 0 ; void *arg2 = (void *) 0 ; void *arg3 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; int res3 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_put", 1, argv[0] )); } arg1 = (pn_map_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_map_put", 2, argv[1] )); } res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_map_put", 3, argv[2] )); } result = (int)pn_map_put(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_map_get(int argc, VALUE *argv, VALUE self) { pn_map_t *arg1 = (pn_map_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_get", 1, argv[0] )); } arg1 = (pn_map_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_map_get", 2, argv[1] )); } result = (void *)pn_map_get(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_map_del(int argc, VALUE *argv, VALUE self) { pn_map_t *arg1 = (pn_map_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_del", 1, argv[0] )); } arg1 = (pn_map_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_map_del", 2, argv[1] )); } pn_map_del(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_map_head(int argc, VALUE *argv, VALUE self) { pn_map_t *arg1 = (pn_map_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_handle_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_head", 1, argv[0] )); } arg1 = (pn_map_t *)(argp1); result = pn_map_head(arg1); vresult = SWIG_NewPointerObj((pn_handle_t *)memcpy((pn_handle_t *)malloc(sizeof(pn_handle_t)),&result,sizeof(pn_handle_t)), SWIGTYPE_p_uintptr_t, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_map_next(int argc, VALUE *argv, VALUE self) { pn_map_t *arg1 = (pn_map_t *) 0 ; pn_handle_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; pn_handle_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_next", 1, argv[0] )); } arg1 = (pn_map_t *)(argp1); { res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_next", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_handle_t","pn_map_next", 2, argv[1])); } else { arg2 = *((pn_handle_t *)(argp2)); } } result = pn_map_next(arg1,arg2); vresult = SWIG_NewPointerObj((pn_handle_t *)memcpy((pn_handle_t *)malloc(sizeof(pn_handle_t)),&result,sizeof(pn_handle_t)), SWIGTYPE_p_uintptr_t, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_map_key(int argc, VALUE *argv, VALUE self) { pn_map_t *arg1 = (pn_map_t *) 0 ; pn_handle_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_key", 1, argv[0] )); } arg1 = (pn_map_t *)(argp1); { res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_key", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_handle_t","pn_map_key", 2, argv[1])); } else { arg2 = *((pn_handle_t *)(argp2)); } } result = (void *)pn_map_key(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_map_value(int argc, VALUE *argv, VALUE self) { pn_map_t *arg1 = (pn_map_t *) 0 ; pn_handle_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_value", 1, argv[0] )); } arg1 = (pn_map_t *)(argp1); { res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_value", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_handle_t","pn_map_value", 2, argv[1])); } else { arg2 = *((pn_handle_t *)(argp2)); } } result = (void *)pn_map_value(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_hash(int argc, VALUE *argv, VALUE self) { size_t arg1 ; float arg2 ; int arg3 ; size_t val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; pn_hash_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_size_t(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","pn_hash", 1, argv[0] )); } arg1 = (size_t)(val1); ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","pn_hash", 2, argv[1] )); } arg2 = (float)(val2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","pn_hash", 3, argv[2] )); } arg3 = (int)(val3); result = (pn_hash_t *)pn_hash(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_hash_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_hash_size(int argc, VALUE *argv, VALUE self) { pn_hash_t *arg1 = (pn_hash_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_size", 1, argv[0] )); } arg1 = (pn_hash_t *)(argp1); result = (size_t)pn_hash_size(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_hash_put(int argc, VALUE *argv, VALUE self) { pn_hash_t *arg1 = (pn_hash_t *) 0 ; uintptr_t arg2 ; void *arg3 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int res3 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_put", 1, argv[0] )); } arg1 = (pn_hash_t *)(argp1); { res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_put", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uintptr_t","pn_hash_put", 2, argv[1])); } else { arg2 = *((uintptr_t *)(argp2)); } } res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_hash_put", 3, argv[2] )); } result = (int)pn_hash_put(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_hash_get(int argc, VALUE *argv, VALUE self) { pn_hash_t *arg1 = (pn_hash_t *) 0 ; uintptr_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_get", 1, argv[0] )); } arg1 = (pn_hash_t *)(argp1); { res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_get", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uintptr_t","pn_hash_get", 2, argv[1])); } else { arg2 = *((uintptr_t *)(argp2)); } } result = (void *)pn_hash_get(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_hash_del(int argc, VALUE *argv, VALUE self) { pn_hash_t *arg1 = (pn_hash_t *) 0 ; uintptr_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_del", 1, argv[0] )); } arg1 = (pn_hash_t *)(argp1); { res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_del", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uintptr_t","pn_hash_del", 2, argv[1])); } else { arg2 = *((uintptr_t *)(argp2)); } } pn_hash_del(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_hash_head(int argc, VALUE *argv, VALUE self) { pn_hash_t *arg1 = (pn_hash_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_handle_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_head", 1, argv[0] )); } arg1 = (pn_hash_t *)(argp1); result = pn_hash_head(arg1); vresult = SWIG_NewPointerObj((pn_handle_t *)memcpy((pn_handle_t *)malloc(sizeof(pn_handle_t)),&result,sizeof(pn_handle_t)), SWIGTYPE_p_uintptr_t, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_hash_next(int argc, VALUE *argv, VALUE self) { pn_hash_t *arg1 = (pn_hash_t *) 0 ; pn_handle_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; pn_handle_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_next", 1, argv[0] )); } arg1 = (pn_hash_t *)(argp1); { res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_next", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_handle_t","pn_hash_next", 2, argv[1])); } else { arg2 = *((pn_handle_t *)(argp2)); } } result = pn_hash_next(arg1,arg2); vresult = SWIG_NewPointerObj((pn_handle_t *)memcpy((pn_handle_t *)malloc(sizeof(pn_handle_t)),&result,sizeof(pn_handle_t)), SWIGTYPE_p_uintptr_t, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_hash_key(int argc, VALUE *argv, VALUE self) { pn_hash_t *arg1 = (pn_hash_t *) 0 ; pn_handle_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; uintptr_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_key", 1, argv[0] )); } arg1 = (pn_hash_t *)(argp1); { res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_key", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_handle_t","pn_hash_key", 2, argv[1])); } else { arg2 = *((pn_handle_t *)(argp2)); } } result = pn_hash_key(arg1,arg2); vresult = SWIG_NewPointerObj((uintptr_t *)memcpy((uintptr_t *)malloc(sizeof(uintptr_t)),&result,sizeof(uintptr_t)), SWIGTYPE_p_uintptr_t, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_hash_value(int argc, VALUE *argv, VALUE self) { pn_hash_t *arg1 = (pn_hash_t *) 0 ; pn_handle_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_value", 1, argv[0] )); } arg1 = (pn_hash_t *)(argp1); { res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_value", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_handle_t","pn_hash_value", 2, argv[1])); } else { arg2 = *((pn_handle_t *)(argp2)); } } result = (void *)pn_hash_value(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_string(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; pn_string_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","pn_string", 1, argv[0] )); } arg1 = (char *)(buf1); result = (pn_string_t *)pn_string((char const *)arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_string_t, 0 | 0 ); if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); return vresult; fail: if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); return Qnil; } SWIGINTERN VALUE _wrap_pn_stringn(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; size_t arg2 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; size_t val2 ; int ecode2 = 0 ; pn_string_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","pn_stringn", 1, argv[0] )); } arg1 = (char *)(buf1); ecode2 = SWIG_AsVal_size_t(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_stringn", 2, argv[1] )); } arg2 = (size_t)(val2); result = (pn_string_t *)pn_stringn((char const *)arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_string_t, 0 | 0 ); if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); return vresult; fail: if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); return Qnil; } SWIGINTERN VALUE _wrap_pn_string_get(int argc, VALUE *argv, VALUE self) { pn_string_t *arg1 = (pn_string_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_get", 1, argv[0] )); } arg1 = (pn_string_t *)(argp1); result = (char *)pn_string_get(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_string_size(int argc, VALUE *argv, VALUE self) { pn_string_t *arg1 = (pn_string_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_size", 1, argv[0] )); } arg1 = (pn_string_t *)(argp1); result = (size_t)pn_string_size(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_string_set(int argc, VALUE *argv, VALUE self) { pn_string_t *arg1 = (pn_string_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_set", 1, argv[0] )); } arg1 = (pn_string_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_string_set", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)pn_string_set(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_string_setn(int argc, VALUE *argv, VALUE self) { pn_string_t *arg1 = (pn_string_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_setn", 1, argv[0] )); } arg1 = (pn_string_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_string_setn", 2, argv[1] )); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_string_setn", 3, argv[2] )); } arg3 = (size_t)(val3); result = (int)pn_string_setn(arg1,(char const *)arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_string_put(int argc, VALUE *argv, VALUE self) { pn_string_t *arg1 = (pn_string_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; ssize_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_put", 1, argv[0] )); } arg1 = (pn_string_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_string_put", 2, argv[1] )); } arg2 = (char *)(buf2); result = (ssize_t)pn_string_put(arg1,arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_string_clear(int argc, VALUE *argv, VALUE self) { pn_string_t *arg1 = (pn_string_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_clear", 1, argv[0] )); } arg1 = (pn_string_t *)(argp1); pn_string_clear(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_string_format(int argc, VALUE *argv, VALUE self) { pn_string_t *arg1 = (pn_string_t *) 0 ; char *arg2 = (char *) 0 ; void *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if (argc < 2) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_format", 1, argv[0] )); } arg1 = (pn_string_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_string_format", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)pn_string_format(arg1,(char const *)arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_string_addf(int argc, VALUE *argv, VALUE self) { pn_string_t *arg1 = (pn_string_t *) 0 ; char *arg2 = (char *) 0 ; void *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if (argc < 2) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_addf", 1, argv[0] )); } arg1 = (pn_string_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_string_addf", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)pn_string_addf(arg1,(char const *)arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_string_grow(int argc, VALUE *argv, VALUE self) { pn_string_t *arg1 = (pn_string_t *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_grow", 1, argv[0] )); } arg1 = (pn_string_t *)(argp1); ecode2 = SWIG_AsVal_size_t(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_string_grow", 2, argv[1] )); } arg2 = (size_t)(val2); result = (int)pn_string_grow(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_string_buffer(int argc, VALUE *argv, VALUE self) { pn_string_t *arg1 = (pn_string_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_buffer", 1, argv[0] )); } arg1 = (pn_string_t *)(argp1); result = (char *)pn_string_buffer(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_string_capacity(int argc, VALUE *argv, VALUE self) { pn_string_t *arg1 = (pn_string_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_capacity", 1, argv[0] )); } arg1 = (pn_string_t *)(argp1); result = (size_t)pn_string_capacity(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_string_resize(int argc, VALUE *argv, VALUE self) { pn_string_t *arg1 = (pn_string_t *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_resize", 1, argv[0] )); } arg1 = (pn_string_t *)(argp1); ecode2 = SWIG_AsVal_size_t(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_string_resize", 2, argv[1] )); } arg2 = (size_t)(val2); result = (int)pn_string_resize(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_string_copy(int argc, VALUE *argv, VALUE self) { pn_string_t *arg1 = (pn_string_t *) 0 ; pn_string_t *arg2 = (pn_string_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_copy", 1, argv[0] )); } arg1 = (pn_string_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_string_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_copy", 2, argv[1] )); } arg2 = (pn_string_t *)(argp2); result = (int)pn_string_copy(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_iterator(int argc, VALUE *argv, VALUE self) { pn_iterator_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (pn_iterator_t *)pn_iterator(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_iterator_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_iterator_start(int argc, VALUE *argv, VALUE self) { pn_iterator_t *arg1 = (pn_iterator_t *) 0 ; pn_iterator_next_t arg2 = (pn_iterator_next_t) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; size_t val3 ; int ecode3 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_iterator_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_iterator_t *","pn_iterator_start", 1, argv[0] )); } arg1 = (pn_iterator_t *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_void__p_void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "pn_iterator_next_t","pn_iterator_start", 2, argv[1] )); } } ecode3 = SWIG_AsVal_size_t(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_iterator_start", 3, argv[2] )); } arg3 = (size_t)(val3); result = (void *)pn_iterator_start(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_iterator_next(int argc, VALUE *argv, VALUE self) { pn_iterator_t *arg1 = (pn_iterator_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_iterator_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_iterator_t *","pn_iterator_next", 1, argv[0] )); } arg1 = (pn_iterator_t *)(argp1); result = (void *)pn_iterator_next(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } static int check_error(int x) { static int values[] = { PN_EOS,PN_ERR,PN_OVERFLOW,PN_UNDERFLOW,PN_STATE_ERR,PN_ARG_ERR,PN_TIMEOUT }; static int size = sizeof(values); int i,j; for (i = 0, j = 0; i < size; i+=sizeof(int),j++) { if (x == values[j]) return 1; } return 0; } static int check_state(int x) { static int values[] = { PN_LOCAL_UNINIT,PN_LOCAL_ACTIVE,PN_LOCAL_CLOSED,PN_REMOTE_UNINIT,PN_REMOTE_ACTIVE,PN_REMOTE_CLOSED }; static int size = sizeof(values); int i,j; for (i = 0, j = 0; i < size; i+=sizeof(int),j++) { if (x == values[j]) return 1; } return 0; } static int check_disposition(int x) { static int values[] = { 0,PN_RECEIVED,PN_ACCEPTED,PN_REJECTED,PN_RELEASED,PN_MODIFIED }; static int size = sizeof(values); int i,j; for (i = 0, j = 0; i < size; i+=sizeof(int),j++) { if (x == values[j]) return 1; } return 0; } static int check_trace(int x) { static int values[] = { PN_TRACE_OFF,PN_TRACE_RAW,PN_TRACE_FRM,PN_TRACE_DRV }; static int size = sizeof(values); int i,j; for (i = 0, j = 0; i < size; i+=sizeof(int),j++) { if (x == values[j]) return 1; } return 0; } static int check_format(int x) { static int values[] = { PN_DATA,PN_TEXT,PN_AMQP,PN_JSON }; static int size = sizeof(values); int i,j; for (i = 0, j = 0; i < size; i+=sizeof(int),j++) { if (x == values[j]) return 1; } return 0; } static int check_sasl_outcome(int x) { static int values[] = { PN_SASL_NONE,PN_SASL_OK,PN_SASL_AUTH,PN_SASL_SYS,PN_SASL_PERM,PN_SASL_TEMP }; static int size = sizeof(values); int i,j; for (i = 0, j = 0; i < size; i+=sizeof(int),j++) { if (x == values[j]) return 1; } return 0; } static int check_sasl_state(int x) { static int values[] = { PN_SASL_CONF,PN_SASL_IDLE,PN_SASL_STEP,PN_SASL_PASS,PN_SASL_FAIL }; static int size = sizeof(values); int i,j; for (i = 0, j = 0; i < size; i+=sizeof(int),j++) { if (x == values[j]) return 1; } return 0; } SWIGINTERN VALUE _wrap_pn_code(int argc, VALUE *argv, VALUE self) { int arg1 ; int val1 ; int ecode1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pn_code", 1, argv[0] )); } arg1 = (int)(val1); SWIG_contract_assert((check_error(arg1)), "Contract violation: require: (check_error(arg1))"); result = (char *)pn_code(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_error(int argc, VALUE *argv, VALUE self) { pn_error_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (pn_error_t *)pn_error(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_error_free(int argc, VALUE *argv, VALUE self) { pn_error_t *arg1 = (pn_error_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_error_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_error_t *","pn_error_free", 1, argv[0] )); } arg1 = (pn_error_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_error_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_error_clear(int argc, VALUE *argv, VALUE self) { pn_error_t *arg1 = (pn_error_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_error_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_error_t *","pn_error_clear", 1, argv[0] )); } arg1 = (pn_error_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_error_clear(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_error_set(int argc, VALUE *argv, VALUE self) { pn_error_t *arg1 = (pn_error_t *) 0 ; int arg2 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_error_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_error_t *","pn_error_set", 1, argv[0] )); } arg1 = (pn_error_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_error_set", 2, argv[1] )); } arg2 = (int)(val2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_error_set", 3, argv[2] )); } arg3 = (char *)(buf3); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_error_set(arg1,arg2,(char const *)arg3); vresult = SWIG_From_int((int)(result)); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_pn_error_code(int argc, VALUE *argv, VALUE self) { pn_error_t *arg1 = (pn_error_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_error_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_error_t *","pn_error_code", 1, argv[0] )); } arg1 = (pn_error_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_error_code(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_error_text(int argc, VALUE *argv, VALUE self) { pn_error_t *arg1 = (pn_error_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_error_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_error_t *","pn_error_text", 1, argv[0] )); } arg1 = (pn_error_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (char *)pn_error_text(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_error_copy(int argc, VALUE *argv, VALUE self) { pn_error_t *arg1 = (pn_error_t *) 0 ; pn_error_t *arg2 = (pn_error_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_error_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_error_t *","pn_error_copy", 1, argv[0] )); } arg1 = (pn_error_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_error_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_error_t *","pn_error_copy", 2, argv[1] )); } arg2 = (pn_error_t *)(argp2); result = (int)pn_error_copy(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_condition_is_set(int argc, VALUE *argv, VALUE self) { pn_condition_t *arg1 = (pn_condition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_is_set", 1, argv[0] )); } arg1 = (pn_condition_t *)(argp1); result = (bool)pn_condition_is_set(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_condition_clear(int argc, VALUE *argv, VALUE self) { pn_condition_t *arg1 = (pn_condition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_clear", 1, argv[0] )); } arg1 = (pn_condition_t *)(argp1); pn_condition_clear(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_condition_get_name(int argc, VALUE *argv, VALUE self) { pn_condition_t *arg1 = (pn_condition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_get_name", 1, argv[0] )); } arg1 = (pn_condition_t *)(argp1); result = (char *)pn_condition_get_name(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_condition_set_name(int argc, VALUE *argv, VALUE self) { pn_condition_t *arg1 = (pn_condition_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_set_name", 1, argv[0] )); } arg1 = (pn_condition_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_condition_set_name", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)pn_condition_set_name(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_condition_get_description(int argc, VALUE *argv, VALUE self) { pn_condition_t *arg1 = (pn_condition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_get_description", 1, argv[0] )); } arg1 = (pn_condition_t *)(argp1); result = (char *)pn_condition_get_description(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_condition_set_description(int argc, VALUE *argv, VALUE self) { pn_condition_t *arg1 = (pn_condition_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_set_description", 1, argv[0] )); } arg1 = (pn_condition_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_condition_set_description", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)pn_condition_set_description(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_condition_info(int argc, VALUE *argv, VALUE self) { pn_condition_t *arg1 = (pn_condition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_info", 1, argv[0] )); } arg1 = (pn_condition_t *)(argp1); result = (pn_data_t *)pn_condition_info(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_condition_is_redirect(int argc, VALUE *argv, VALUE self) { pn_condition_t *arg1 = (pn_condition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_is_redirect", 1, argv[0] )); } arg1 = (pn_condition_t *)(argp1); result = (bool)pn_condition_is_redirect(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_condition_redirect_host(int argc, VALUE *argv, VALUE self) { pn_condition_t *arg1 = (pn_condition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_redirect_host", 1, argv[0] )); } arg1 = (pn_condition_t *)(argp1); result = (char *)pn_condition_redirect_host(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_condition_redirect_port(int argc, VALUE *argv, VALUE self) { pn_condition_t *arg1 = (pn_condition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_redirect_port", 1, argv[0] )); } arg1 = (pn_condition_t *)(argp1); result = (int)pn_condition_redirect_port(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection(int argc, VALUE *argv, VALUE self) { pn_connection_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (pn_connection_t *)pn_connection(); SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)"); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_free(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_free", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_connection_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_error(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_error_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_error", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_error_t *)pn_connection_error(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_collect(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; pn_collector_t *arg2 = (pn_collector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_collect", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_collector_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_collector_t *","pn_connection_collect", 2, argv[1] )); } arg2 = (pn_collector_t *)(argp2); pn_connection_collect(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_get_context(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_get_context", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); result = (void *)pn_connection_get_context(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_set_context(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_context", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_connection_set_context", 2, argv[1] )); } pn_connection_set_context(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_state(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_state_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_state", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_state_t)pn_connection_state(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_open(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_open", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_connection_open(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_close(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_close", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_connection_close(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_reset(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_reset", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); pn_connection_reset(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_condition(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_condition_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_condition", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); result = (pn_condition_t *)pn_connection_condition(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_remote_condition(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_condition_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_condition", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); result = (pn_condition_t *)pn_connection_remote_condition(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_get_container(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_get_container", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (char *)pn_connection_get_container(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_set_container(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_container", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_set_container", 2, argv[1] )); } arg2 = (char *)(buf2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_connection_set_container(arg1,(char const *)arg2); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_get_hostname(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_get_hostname", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (char *)pn_connection_get_hostname(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_set_hostname(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_hostname", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_set_hostname", 2, argv[1] )); } arg2 = (char *)(buf2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_connection_set_hostname(arg1,(char const *)arg2); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_remote_container(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_container", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (char *)pn_connection_remote_container(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_remote_hostname(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_hostname", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (char *)pn_connection_remote_hostname(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_offered_capabilities(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_offered_capabilities", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); result = (pn_data_t *)pn_connection_offered_capabilities(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_desired_capabilities(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_desired_capabilities", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); result = (pn_data_t *)pn_connection_desired_capabilities(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_properties(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_properties", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); result = (pn_data_t *)pn_connection_properties(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_remote_offered_capabilities(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_offered_capabilities", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); result = (pn_data_t *)pn_connection_remote_offered_capabilities(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_remote_desired_capabilities(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_desired_capabilities", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); result = (pn_data_t *)pn_connection_remote_desired_capabilities(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_remote_properties(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_properties", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); result = (pn_data_t *)pn_connection_remote_properties(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_transport(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_transport_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_transport", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); result = (pn_transport_t *)pn_connection_transport(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_transport_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_session_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_session", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_session_t *)pn_session(arg1); SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)"); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_free(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_free", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_session_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_get_context(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_get_context", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); result = (void *)pn_session_get_context(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_set_context(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_set_context", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_session_set_context", 2, argv[1] )); } pn_session_set_context(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_state(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_state_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_state", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_state_t)pn_session_state(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_error(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_error_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_error", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_error_t *)pn_session_error(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_condition(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_condition_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_condition", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); result = (pn_condition_t *)pn_session_condition(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_remote_condition(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_condition_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_remote_condition", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); result = (pn_condition_t *)pn_session_remote_condition(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_connection(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_connection_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_connection", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_connection_t *)pn_session_connection(arg1); SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)"); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_open(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_open", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_session_open(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_close(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_close", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_session_close(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_get_incoming_capacity(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_get_incoming_capacity", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); result = (size_t)pn_session_get_incoming_capacity(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_set_incoming_capacity(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_set_incoming_capacity", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); ecode2 = SWIG_AsVal_size_t(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_session_set_incoming_capacity", 2, argv[1] )); } arg2 = (size_t)(val2); pn_session_set_incoming_capacity(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_outgoing_bytes(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_outgoing_bytes", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); result = (size_t)pn_session_outgoing_bytes(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_incoming_bytes(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_incoming_bytes", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); result = (size_t)pn_session_incoming_bytes(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_head(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; pn_state_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; pn_session_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_session_head", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_state_t","pn_session_head", 2, argv[1] )); } arg2 = (pn_state_t)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_session_t *)pn_session_head(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_next(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; pn_state_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; pn_session_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_next", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_state_t","pn_session_next", 2, argv[1] )); } arg2 = (pn_state_t)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_session_t *)pn_session_next(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_sender(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; pn_link_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_sender", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_sender", 2, argv[1] )); } arg2 = (char *)(buf2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_link_t *)pn_sender(arg1,(char const *)arg2); SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)"); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_link_t, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_receiver(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; pn_link_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_receiver", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_receiver", 2, argv[1] )); } arg2 = (char *)(buf2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_link_t *)pn_receiver(arg1,(char const *)arg2); SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)"); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_link_t, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_link_free(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_free", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_link_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_get_context(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_get_context", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (void *)pn_link_get_context(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_set_context(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_set_context", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_link_set_context", 2, argv[1] )); } pn_link_set_context(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_name(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_name", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (char *)pn_link_name(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_is_sender(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_is_sender", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (bool)pn_link_is_sender(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_is_receiver(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_is_receiver", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (bool)pn_link_is_receiver(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_state(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_state_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_state", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_state_t)pn_link_state(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_error(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_error_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_error", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_error_t *)pn_link_error(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_condition(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_condition_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_condition", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (pn_condition_t *)pn_link_condition(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_remote_condition(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_condition_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_condition", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (pn_condition_t *)pn_link_remote_condition(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_session(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_session_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_session", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_session_t *)pn_link_session(arg1); SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)"); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_head(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; pn_state_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; pn_link_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_link_head", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_state_t","pn_link_head", 2, argv[1] )); } arg2 = (pn_state_t)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_link_t *)pn_link_head(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_link_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_next(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; pn_state_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; pn_link_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_next", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_state_t","pn_link_next", 2, argv[1] )); } arg2 = (pn_state_t)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_link_t *)pn_link_next(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_link_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_open(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_open", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_link_open(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_close(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_close", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_link_close(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_source(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_terminus_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_source", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (pn_terminus_t *)pn_link_source(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_terminus_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_target(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_terminus_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_target", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (pn_terminus_t *)pn_link_target(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_terminus_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_remote_source(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_terminus_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_source", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_terminus_t *)pn_link_remote_source(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_terminus_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_remote_target(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_terminus_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_target", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_terminus_t *)pn_link_remote_target(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_terminus_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_current(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_delivery_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_current", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_delivery_t *)pn_link_current(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_advance(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_advance", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (bool)pn_link_advance(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_credit(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_credit", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_link_credit(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_queued(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_queued", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_link_queued(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_remote_credit(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_credit", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (int)pn_link_remote_credit(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_get_drain(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_get_drain", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (bool)pn_link_get_drain(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_drained(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_drained", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_link_drained(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_available(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_available", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (int)pn_link_available(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_snd_settle_mode(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_snd_settle_mode_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_snd_settle_mode", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (pn_snd_settle_mode_t)pn_link_snd_settle_mode(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_rcv_settle_mode(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_rcv_settle_mode_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_rcv_settle_mode", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (pn_rcv_settle_mode_t)pn_link_rcv_settle_mode(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_set_snd_settle_mode(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; pn_snd_settle_mode_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_set_snd_settle_mode", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_snd_settle_mode_t","pn_link_set_snd_settle_mode", 2, argv[1] )); } arg2 = (pn_snd_settle_mode_t)(val2); pn_link_set_snd_settle_mode(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_set_rcv_settle_mode(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; pn_rcv_settle_mode_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_set_rcv_settle_mode", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_rcv_settle_mode_t","pn_link_set_rcv_settle_mode", 2, argv[1] )); } arg2 = (pn_rcv_settle_mode_t)(val2); pn_link_set_rcv_settle_mode(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_remote_snd_settle_mode(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_snd_settle_mode_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_snd_settle_mode", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (pn_snd_settle_mode_t)pn_link_remote_snd_settle_mode(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_remote_rcv_settle_mode(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_rcv_settle_mode_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_rcv_settle_mode", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (pn_rcv_settle_mode_t)pn_link_remote_rcv_settle_mode(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_unsettled(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_unsettled", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_link_unsettled(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_unsettled_head(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_delivery_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_unsettled_head", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_delivery_t *)pn_unsettled_head(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_unsettled_next(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_delivery_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_unsettled_next", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_delivery_t *)pn_unsettled_next(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_offered(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_offered", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_link_offered", 2, argv[1] )); } arg2 = (int)(val2); pn_link_offered(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_flow(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_flow", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_link_flow", 2, argv[1] )); } arg2 = (int)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_link_flow(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_drain(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_drain", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_link_drain", 2, argv[1] )); } arg2 = (int)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_link_drain(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_set_drain(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_set_drain", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_link_set_drain", 2, argv[1] )); } arg2 = (bool)(val2); pn_link_set_drain(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_draining(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_draining", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (bool)pn_link_draining(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_get_type(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_terminus_type_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_get_type", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); result = (pn_terminus_type_t)pn_terminus_get_type(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_set_type(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; pn_terminus_type_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_set_type", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_terminus_type_t","pn_terminus_set_type", 2, argv[1] )); } arg2 = (pn_terminus_type_t)(val2); result = (int)pn_terminus_set_type(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_get_address(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_get_address", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); result = (char *)pn_terminus_get_address(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_set_address(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_set_address", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_terminus_set_address", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)pn_terminus_set_address(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_get_distribution_mode(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_distribution_mode_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t const *","pn_terminus_get_distribution_mode", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); result = (pn_distribution_mode_t)pn_terminus_get_distribution_mode((struct pn_terminus_t const *)arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_set_distribution_mode(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; pn_distribution_mode_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_set_distribution_mode", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_distribution_mode_t","pn_terminus_set_distribution_mode", 2, argv[1] )); } arg2 = (pn_distribution_mode_t)(val2); result = (int)pn_terminus_set_distribution_mode(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_get_durability(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_durability_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_get_durability", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); result = (pn_durability_t)pn_terminus_get_durability(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_set_durability(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; pn_durability_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_set_durability", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_durability_t","pn_terminus_set_durability", 2, argv[1] )); } arg2 = (pn_durability_t)(val2); result = (int)pn_terminus_set_durability(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_get_expiry_policy(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_expiry_policy_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_get_expiry_policy", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); result = (pn_expiry_policy_t)pn_terminus_get_expiry_policy(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_set_expiry_policy(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; pn_expiry_policy_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_set_expiry_policy", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_expiry_policy_t","pn_terminus_set_expiry_policy", 2, argv[1] )); } arg2 = (pn_expiry_policy_t)(val2); result = (int)pn_terminus_set_expiry_policy(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_get_timeout(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_seconds_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_get_timeout", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); result = (pn_seconds_t)pn_terminus_get_timeout(arg1); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_set_timeout(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; pn_seconds_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_set_timeout", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_seconds_t","pn_terminus_set_timeout", 2, argv[1] )); } arg2 = (pn_seconds_t)(val2); result = (int)pn_terminus_set_timeout(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_is_dynamic(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_is_dynamic", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); result = (bool)pn_terminus_is_dynamic(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_set_dynamic(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_set_dynamic", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_terminus_set_dynamic", 2, argv[1] )); } arg2 = (bool)(val2); result = (int)pn_terminus_set_dynamic(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_properties(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_properties", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); result = (pn_data_t *)pn_terminus_properties(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_capabilities(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_capabilities", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); result = (pn_data_t *)pn_terminus_capabilities(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_outcomes(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_outcomes", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); result = (pn_data_t *)pn_terminus_outcomes(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_filter(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_filter", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); result = (pn_data_t *)pn_terminus_filter(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_terminus_copy(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; pn_terminus_t *arg2 = (pn_terminus_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_copy", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_terminus_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_copy", 2, argv[1] )); } arg2 = (pn_terminus_t *)(argp2); result = (int)pn_terminus_copy(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } static swig_class SwigClassPn_delivery_tag_t; /* Document-method: Cproton::pn_delivery_tag_t.size call-seq: size -> size_t Size or Length of the pn_delivery_tag_t. */ /* Document-method: Cproton::pn_delivery_tag_t.size= call-seq: size=(x) -> size_t Size or Length of the pn_delivery_tag_t. */ SWIGINTERN VALUE _wrap_pn_delivery_tag_t_size_set(int argc, VALUE *argv, VALUE self) { struct pn_delivery_tag_t *arg1 = (struct pn_delivery_tag_t *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_delivery_tag_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct pn_delivery_tag_t *","size", 1, self )); } arg1 = (struct pn_delivery_tag_t *)(argp1); ecode2 = SWIG_AsVal_size_t(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","size", 2, argv[0] )); } arg2 = (size_t)(val2); if (arg1) (arg1)->size = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_tag_t_size_get(int argc, VALUE *argv, VALUE self) { struct pn_delivery_tag_t *arg1 = (struct pn_delivery_tag_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_delivery_tag_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct pn_delivery_tag_t *","size", 1, self )); } arg1 = (struct pn_delivery_tag_t *)(argp1); result = (size_t) ((arg1)->size); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_tag_t_bytes_set(int argc, VALUE *argv, VALUE self) { struct pn_delivery_tag_t *arg1 = (struct pn_delivery_tag_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_delivery_tag_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct pn_delivery_tag_t *","bytes", 1, self )); } arg1 = (struct pn_delivery_tag_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","bytes", 2, argv[0] )); } arg2 = (char *)(buf2); if (arg2) { size_t size = strlen((const char *)((const char *)(arg2))) + 1; arg1->bytes = (char const *)(char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size)); } else { arg1->bytes = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_tag_t_bytes_get(int argc, VALUE *argv, VALUE self) { struct pn_delivery_tag_t *arg1 = (struct pn_delivery_tag_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_delivery_tag_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct pn_delivery_tag_t *","bytes", 1, self )); } arg1 = (struct pn_delivery_tag_t *)(argp1); result = (char *) ((arg1)->bytes); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_pn_delivery_tag_t_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_pn_delivery_tag_t_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_pn_delivery_tag_t); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_pn_delivery_tag_t(int argc, VALUE *argv, VALUE self) { struct pn_delivery_tag_t *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (struct pn_delivery_tag_t *)calloc(1, sizeof(struct pn_delivery_tag_t)); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_pn_delivery_tag_t(struct pn_delivery_tag_t *arg1) { free((char *) arg1); } SWIGINTERN VALUE _wrap_pn_delivery_get_context(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_get_context", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); result = (void *)pn_delivery_get_context(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_set_context(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_set_context", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_delivery_set_context", 2, argv[1] )); } pn_delivery_set_context(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_link(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_link_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_link", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_link_t *)pn_delivery_link(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_link_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_local(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_disposition_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_local", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); result = (pn_disposition_t *)pn_delivery_local(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_disposition_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_local_state(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_local_state", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (uint64_t)pn_delivery_local_state(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_remote(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_disposition_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_remote", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); result = (pn_disposition_t *)pn_delivery_remote(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_disposition_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_remote_state(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_remote_state", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (uint64_t)pn_delivery_remote_state(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_settled(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_settled", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (bool)pn_delivery_settled(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_pending(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_pending", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (size_t)pn_delivery_pending(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_partial(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_partial", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); result = (bool)pn_delivery_partial(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_writable(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_writable", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (bool)pn_delivery_writable(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_readable(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_readable", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (bool)pn_delivery_readable(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_updated(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_updated", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (bool)pn_delivery_updated(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_update(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; uint64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_update", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","pn_delivery_update", 2, argv[1] )); } arg2 = (uint64_t)(val2); pn_delivery_update(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_clear(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_clear", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_delivery_clear(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_settle(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_settle", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_delivery_settle(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_dump(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_dump", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_delivery_dump(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_buffered(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_buffered", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); result = (bool)pn_delivery_buffered(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_work_head(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_delivery_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_work_head", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_delivery_t *)pn_work_head(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_work_next(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_delivery_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_work_next", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_delivery_t *)pn_work_next(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_disposition_type(int argc, VALUE *argv, VALUE self) { pn_disposition_t *arg1 = (pn_disposition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_type", 1, argv[0] )); } arg1 = (pn_disposition_t *)(argp1); result = (uint64_t)pn_disposition_type(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_disposition_condition(int argc, VALUE *argv, VALUE self) { pn_disposition_t *arg1 = (pn_disposition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_condition_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_condition", 1, argv[0] )); } arg1 = (pn_disposition_t *)(argp1); result = (pn_condition_t *)pn_disposition_condition(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_disposition_data(int argc, VALUE *argv, VALUE self) { pn_disposition_t *arg1 = (pn_disposition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_data", 1, argv[0] )); } arg1 = (pn_disposition_t *)(argp1); result = (pn_data_t *)pn_disposition_data(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_disposition_get_section_number(int argc, VALUE *argv, VALUE self) { pn_disposition_t *arg1 = (pn_disposition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint32_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_get_section_number", 1, argv[0] )); } arg1 = (pn_disposition_t *)(argp1); result = (uint32_t)pn_disposition_get_section_number(arg1); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_disposition_set_section_number(int argc, VALUE *argv, VALUE self) { pn_disposition_t *arg1 = (pn_disposition_t *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_set_section_number", 1, argv[0] )); } arg1 = (pn_disposition_t *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","pn_disposition_set_section_number", 2, argv[1] )); } arg2 = (uint32_t)(val2); pn_disposition_set_section_number(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_disposition_get_section_offset(int argc, VALUE *argv, VALUE self) { pn_disposition_t *arg1 = (pn_disposition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_get_section_offset", 1, argv[0] )); } arg1 = (pn_disposition_t *)(argp1); result = (uint64_t)pn_disposition_get_section_offset(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_disposition_set_section_offset(int argc, VALUE *argv, VALUE self) { pn_disposition_t *arg1 = (pn_disposition_t *) 0 ; uint64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_set_section_offset", 1, argv[0] )); } arg1 = (pn_disposition_t *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","pn_disposition_set_section_offset", 2, argv[1] )); } arg2 = (uint64_t)(val2); pn_disposition_set_section_offset(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_disposition_is_failed(int argc, VALUE *argv, VALUE self) { pn_disposition_t *arg1 = (pn_disposition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_is_failed", 1, argv[0] )); } arg1 = (pn_disposition_t *)(argp1); result = (bool)pn_disposition_is_failed(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_disposition_set_failed(int argc, VALUE *argv, VALUE self) { pn_disposition_t *arg1 = (pn_disposition_t *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_set_failed", 1, argv[0] )); } arg1 = (pn_disposition_t *)(argp1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_disposition_set_failed", 2, argv[1] )); } arg2 = (bool)(val2); pn_disposition_set_failed(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_disposition_is_undeliverable(int argc, VALUE *argv, VALUE self) { pn_disposition_t *arg1 = (pn_disposition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_is_undeliverable", 1, argv[0] )); } arg1 = (pn_disposition_t *)(argp1); result = (bool)pn_disposition_is_undeliverable(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_disposition_set_undeliverable(int argc, VALUE *argv, VALUE self) { pn_disposition_t *arg1 = (pn_disposition_t *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_set_undeliverable", 1, argv[0] )); } arg1 = (pn_disposition_t *)(argp1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_disposition_set_undeliverable", 2, argv[1] )); } arg2 = (bool)(val2); pn_disposition_set_undeliverable(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_disposition_annotations(int argc, VALUE *argv, VALUE self) { pn_disposition_t *arg1 = (pn_disposition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_annotations", 1, argv[0] )); } arg1 = (pn_disposition_t *)(argp1); result = (pn_data_t *)pn_disposition_annotations(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport(int argc, VALUE *argv, VALUE self) { pn_transport_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (pn_transport_t *)pn_transport(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_transport_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_free(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_free", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_transport_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_error(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_error_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_error", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_error_t *)pn_transport_error(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_bind(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; pn_connection_t *arg2 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_bind", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_connection_t *","pn_transport_bind", 2, argv[1] )); } arg2 = (pn_connection_t *)(argp2); result = (int)pn_transport_bind(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_unbind(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_unbind", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (int)pn_transport_unbind(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_trace(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; pn_trace_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_trace", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_trace_t","pn_transport_trace", 2, argv[1] )); } arg2 = (pn_trace_t)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_transport_trace(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_set_tracer(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; pn_tracer_t arg2 = (pn_tracer_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_tracer", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "pn_tracer_t","pn_transport_set_tracer", 2, argv[1] )); } } pn_transport_set_tracer(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_get_tracer(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_tracer_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_tracer", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (pn_tracer_t)pn_transport_get_tracer(arg1); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_get_context(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_context", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (void *)pn_transport_get_context(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_set_context(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_context", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_transport_set_context", 2, argv[1] )); } pn_transport_set_context(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_log(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_log", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_transport_log", 2, argv[1] )); } arg2 = (char *)(buf2); pn_transport_log(arg1,(char const *)arg2); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_logf(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; char *arg2 = (char *) 0 ; void *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (argc < 2) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_logf", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_transport_logf", 2, argv[1] )); } arg2 = (char *)(buf2); pn_transport_logf(arg1,(char const *)arg2,arg3); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_get_channel_max(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint16_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_channel_max", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (uint16_t)pn_transport_get_channel_max(arg1); vresult = SWIG_From_unsigned_SS_short((unsigned short)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_set_channel_max(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_channel_max", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","pn_transport_set_channel_max", 2, argv[1] )); } arg2 = (uint16_t)(val2); pn_transport_set_channel_max(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_remote_channel_max(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint16_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_remote_channel_max", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (uint16_t)pn_transport_remote_channel_max(arg1); vresult = SWIG_From_unsigned_SS_short((unsigned short)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_get_max_frame(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint32_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_max_frame", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (uint32_t)pn_transport_get_max_frame(arg1); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_set_max_frame(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_max_frame", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","pn_transport_set_max_frame", 2, argv[1] )); } arg2 = (uint32_t)(val2); pn_transport_set_max_frame(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_get_remote_max_frame(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint32_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_remote_max_frame", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (uint32_t)pn_transport_get_remote_max_frame(arg1); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_get_idle_timeout(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_millis_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_idle_timeout", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (pn_millis_t)pn_transport_get_idle_timeout(arg1); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_set_idle_timeout(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; pn_millis_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_idle_timeout", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_millis_t","pn_transport_set_idle_timeout", 2, argv[1] )); } arg2 = (pn_millis_t)(val2); pn_transport_set_idle_timeout(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_get_remote_idle_timeout(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_millis_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_remote_idle_timeout", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (pn_millis_t)pn_transport_get_remote_idle_timeout(arg1); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_capacity(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; ssize_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_capacity", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (ssize_t)pn_transport_capacity(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_tail(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_tail", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (char *)pn_transport_tail(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_push(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_push", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_transport_push", 2, argv[1] )); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_transport_push", 3, argv[2] )); } arg3 = (size_t)(val3); result = (int)pn_transport_push(arg1,(char const *)arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_process(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_process", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); ecode2 = SWIG_AsVal_size_t(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_transport_process", 2, argv[1] )); } arg2 = (size_t)(val2); result = (int)pn_transport_process(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_close_tail(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_close_tail", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (int)pn_transport_close_tail(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_pending(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; ssize_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_pending", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (ssize_t)pn_transport_pending(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_head(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_head", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (char *)pn_transport_head(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_peek(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_peek", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_transport_peek", 2, argv[1] )); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_transport_peek", 3, argv[2] )); } arg3 = (size_t)(val3); result = (int)pn_transport_peek(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_pop(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_pop", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); ecode2 = SWIG_AsVal_size_t(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_transport_pop", 2, argv[1] )); } arg2 = (size_t)(val2); pn_transport_pop(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_close_head(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_close_head", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (int)pn_transport_close_head(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_quiesced(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_quiesced", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (bool)pn_transport_quiesced(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_closed(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_closed", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (bool)pn_transport_closed(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_tick(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; pn_timestamp_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long long val2 ; int ecode2 = 0 ; pn_timestamp_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_tick", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_timestamp_t","pn_transport_tick", 2, argv[1] )); } arg2 = (pn_timestamp_t)(val2); result = (pn_timestamp_t)pn_transport_tick(arg1,arg2); vresult = SWIG_From_long_SS_long((long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_get_frames_output(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t const *","pn_transport_get_frames_output", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (uint64_t)pn_transport_get_frames_output((struct pn_transport_t const *)arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_get_frames_input(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t const *","pn_transport_get_frames_input", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (uint64_t)pn_transport_get_frames_input((struct pn_transport_t const *)arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_event_type_name(int argc, VALUE *argv, VALUE self) { pn_event_type_t arg1 ; int val1 ; int ecode1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "pn_event_type_t","pn_event_type_name", 1, argv[0] )); } arg1 = (pn_event_type_t)(val1); result = (char *)pn_event_type_name(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_collector(int argc, VALUE *argv, VALUE self) { pn_collector_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (pn_collector_t *)pn_collector(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_collector_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_collector_free(int argc, VALUE *argv, VALUE self) { pn_collector_t *arg1 = (pn_collector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_free", 1, argv[0] )); } arg1 = (pn_collector_t *)(argp1); pn_collector_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_collector_peek(int argc, VALUE *argv, VALUE self) { pn_collector_t *arg1 = (pn_collector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_event_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_peek", 1, argv[0] )); } arg1 = (pn_collector_t *)(argp1); result = (pn_event_t *)pn_collector_peek(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_collector_pop(int argc, VALUE *argv, VALUE self) { pn_collector_t *arg1 = (pn_collector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_pop", 1, argv[0] )); } arg1 = (pn_collector_t *)(argp1); result = (bool)pn_collector_pop(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_event_type(int argc, VALUE *argv, VALUE self) { pn_event_t *arg1 = (pn_event_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_event_type_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_type", 1, argv[0] )); } arg1 = (pn_event_t *)(argp1); result = (pn_event_type_t)pn_event_type(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_event_category(int argc, VALUE *argv, VALUE self) { pn_event_t *arg1 = (pn_event_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_event_category_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_category", 1, argv[0] )); } arg1 = (pn_event_t *)(argp1); result = (pn_event_category_t)pn_event_category(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_event_connection(int argc, VALUE *argv, VALUE self) { pn_event_t *arg1 = (pn_event_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_connection_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_connection", 1, argv[0] )); } arg1 = (pn_event_t *)(argp1); result = (pn_connection_t *)pn_event_connection(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_event_session(int argc, VALUE *argv, VALUE self) { pn_event_t *arg1 = (pn_event_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_session_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_session", 1, argv[0] )); } arg1 = (pn_event_t *)(argp1); result = (pn_session_t *)pn_event_session(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_event_link(int argc, VALUE *argv, VALUE self) { pn_event_t *arg1 = (pn_event_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_link_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_link", 1, argv[0] )); } arg1 = (pn_event_t *)(argp1); result = (pn_link_t *)pn_event_link(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_link_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_event_delivery(int argc, VALUE *argv, VALUE self) { pn_event_t *arg1 = (pn_event_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_delivery_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_delivery", 1, argv[0] )); } arg1 = (pn_event_t *)(argp1); result = (pn_delivery_t *)pn_event_delivery(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_event_transport(int argc, VALUE *argv, VALUE self) { pn_event_t *arg1 = (pn_event_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_transport_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_transport", 1, argv[0] )); } arg1 = (pn_event_t *)(argp1); result = (pn_transport_t *)pn_event_transport(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_transport_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message(int argc, VALUE *argv, VALUE self) { pn_message_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (pn_message_t *)pn_message(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_message_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_free(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_free", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_message_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_clear(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_clear", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_message_clear(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_errno(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_errno", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_errno(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_error(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_error_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_error", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_error_t *)pn_message_error(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_is_inferred(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_is_inferred", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); result = (bool)pn_message_is_inferred(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_inferred(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_inferred", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_message_set_inferred", 2, argv[1] )); } arg2 = (bool)(val2); result = (int)pn_message_set_inferred(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_is_durable(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_is_durable", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (bool)pn_message_is_durable(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_durable(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_durable", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_message_set_durable", 2, argv[1] )); } arg2 = (bool)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_durable(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_priority(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint8_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_priority", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (uint8_t)pn_message_get_priority(arg1); vresult = SWIG_From_unsigned_SS_char((unsigned char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_priority(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; uint8_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_priority", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","pn_message_set_priority", 2, argv[1] )); } arg2 = (uint8_t)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_priority(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_ttl(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_millis_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_ttl", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_millis_t)pn_message_get_ttl(arg1); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_ttl(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; pn_millis_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_ttl", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_millis_t","pn_message_set_ttl", 2, argv[1] )); } arg2 = (pn_millis_t)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_ttl(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_is_first_acquirer(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_is_first_acquirer", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (bool)pn_message_is_first_acquirer(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_first_acquirer(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_first_acquirer", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_message_set_first_acquirer", 2, argv[1] )); } arg2 = (bool)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_first_acquirer(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_delivery_count(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint32_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_delivery_count", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (uint32_t)pn_message_get_delivery_count(arg1); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_delivery_count(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_delivery_count", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","pn_message_set_delivery_count", 2, argv[1] )); } arg2 = (uint32_t)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_delivery_count(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_id(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_id", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); result = (pn_data_t *)pn_message_id(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_id(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_atom_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_id", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = pn_message_get_id(arg1); { switch((&result)->type) { case PN_NULL: vresult = Qnil; break; case PN_BOOL: vresult = (&result)->u.as_bool ? Qtrue : Qfalse; break; case PN_BYTE: vresult = INT2NUM((&result)->u.as_byte); break; case PN_UBYTE: vresult = UINT2NUM((&result)->u.as_ubyte); break; case PN_SHORT: vresult = INT2NUM((&result)->u.as_short); break; case PN_USHORT: vresult = UINT2NUM((&result)->u.as_ushort); break; case PN_INT: vresult = INT2NUM((&result)->u.as_int); break; case PN_UINT: vresult = UINT2NUM((&result)->u.as_uint); break; case PN_LONG: vresult = LL2NUM((&result)->u.as_long); break; case PN_ULONG: vresult = ULL2NUM((&result)->u.as_ulong); break; case PN_FLOAT: vresult = rb_float_new((&result)->u.as_float); break; case PN_DOUBLE: vresult = rb_float_new((&result)->u.as_double); break; case PN_STRING: vresult = rb_str_new((&result)->u.as_bytes.start, (&result)->u.as_bytes.size); break; } } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_id(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; pn_atom_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_id", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); { if (argv[1] == Qnil) { (&arg2)->type = PN_NULL; } else { switch(TYPE(argv[1])) { case T_TRUE: (&arg2)->type = PN_BOOL; (&arg2)->u.as_bool = true; break; case T_FALSE: (&arg2)->type = PN_BOOL; (&arg2)->u.as_bool = false; break; case T_FLOAT: (&arg2)->type = PN_FLOAT; (&arg2)->u.as_float = NUM2DBL(argv[1]); break; case T_STRING: (&arg2)->type = PN_STRING; (&arg2)->u.as_bytes.start = RSTRING_PTR(argv[1]); if ((&arg2)->u.as_bytes.start) { (&arg2)->u.as_bytes.size = RSTRING_LEN(argv[1]); } else { (&arg2)->u.as_bytes.size = 0; } break; case T_FIXNUM: (&arg2)->type = PN_INT; (&arg2)->u.as_int = FIX2LONG(argv[1]); break; case T_BIGNUM: (&arg2)->type = PN_LONG; (&arg2)->u.as_long = NUM2LL(argv[1]); break; } } } SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_id(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_user_id(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_bytes_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_user_id", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = pn_message_get_user_id(arg1); { vresult = rb_str_new((&result)->start, (&result)->size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_user_id(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; pn_bytes_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_user_id", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); { if (argv[1] == Qnil) { (&arg2)->start = NULL; (&arg2)->size = 0; } else { (&arg2)->start = RSTRING_PTR(argv[1]); if (!(&arg2)->start) { (&arg2)->size = 0; } (&arg2)->size = RSTRING_LEN(argv[1]); } } SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_user_id(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_address(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_address", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (char *)pn_message_get_address(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_address(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_address", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_message_set_address", 2, argv[1] )); } arg2 = (char *)(buf2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_address(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_subject(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_subject", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (char *)pn_message_get_subject(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_subject(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_subject", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_message_set_subject", 2, argv[1] )); } arg2 = (char *)(buf2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_subject(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_reply_to(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_reply_to", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (char *)pn_message_get_reply_to(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_reply_to(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_reply_to", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_message_set_reply_to", 2, argv[1] )); } arg2 = (char *)(buf2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_reply_to(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_correlation_id(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_correlation_id", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); result = (pn_data_t *)pn_message_correlation_id(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_correlation_id(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_atom_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_correlation_id", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = pn_message_get_correlation_id(arg1); { switch((&result)->type) { case PN_NULL: vresult = Qnil; break; case PN_BOOL: vresult = (&result)->u.as_bool ? Qtrue : Qfalse; break; case PN_BYTE: vresult = INT2NUM((&result)->u.as_byte); break; case PN_UBYTE: vresult = UINT2NUM((&result)->u.as_ubyte); break; case PN_SHORT: vresult = INT2NUM((&result)->u.as_short); break; case PN_USHORT: vresult = UINT2NUM((&result)->u.as_ushort); break; case PN_INT: vresult = INT2NUM((&result)->u.as_int); break; case PN_UINT: vresult = UINT2NUM((&result)->u.as_uint); break; case PN_LONG: vresult = LL2NUM((&result)->u.as_long); break; case PN_ULONG: vresult = ULL2NUM((&result)->u.as_ulong); break; case PN_FLOAT: vresult = rb_float_new((&result)->u.as_float); break; case PN_DOUBLE: vresult = rb_float_new((&result)->u.as_double); break; case PN_STRING: vresult = rb_str_new((&result)->u.as_bytes.start, (&result)->u.as_bytes.size); break; } } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_correlation_id(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; pn_atom_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_correlation_id", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); { if (argv[1] == Qnil) { (&arg2)->type = PN_NULL; } else { switch(TYPE(argv[1])) { case T_TRUE: (&arg2)->type = PN_BOOL; (&arg2)->u.as_bool = true; break; case T_FALSE: (&arg2)->type = PN_BOOL; (&arg2)->u.as_bool = false; break; case T_FLOAT: (&arg2)->type = PN_FLOAT; (&arg2)->u.as_float = NUM2DBL(argv[1]); break; case T_STRING: (&arg2)->type = PN_STRING; (&arg2)->u.as_bytes.start = RSTRING_PTR(argv[1]); if ((&arg2)->u.as_bytes.start) { (&arg2)->u.as_bytes.size = RSTRING_LEN(argv[1]); } else { (&arg2)->u.as_bytes.size = 0; } break; case T_FIXNUM: (&arg2)->type = PN_INT; (&arg2)->u.as_int = FIX2LONG(argv[1]); break; case T_BIGNUM: (&arg2)->type = PN_LONG; (&arg2)->u.as_long = NUM2LL(argv[1]); break; } } } SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_correlation_id(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_content_type(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_content_type", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (char *)pn_message_get_content_type(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_content_type(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_content_type", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_message_set_content_type", 2, argv[1] )); } arg2 = (char *)(buf2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_content_type(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_content_encoding(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_content_encoding", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (char *)pn_message_get_content_encoding(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_content_encoding(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_content_encoding", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_message_set_content_encoding", 2, argv[1] )); } arg2 = (char *)(buf2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_content_encoding(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_expiry_time(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_timestamp_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_expiry_time", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_timestamp_t)pn_message_get_expiry_time(arg1); vresult = SWIG_From_long_SS_long((long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_expiry_time(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; pn_timestamp_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long long val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_expiry_time", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_timestamp_t","pn_message_set_expiry_time", 2, argv[1] )); } arg2 = (pn_timestamp_t)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_expiry_time(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_creation_time(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_timestamp_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_creation_time", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_timestamp_t)pn_message_get_creation_time(arg1); vresult = SWIG_From_long_SS_long((long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_creation_time(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; pn_timestamp_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long long val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_creation_time", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_timestamp_t","pn_message_set_creation_time", 2, argv[1] )); } arg2 = (pn_timestamp_t)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_creation_time(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_group_id(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_group_id", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (char *)pn_message_get_group_id(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_group_id(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_group_id", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_message_set_group_id", 2, argv[1] )); } arg2 = (char *)(buf2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_group_id(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_group_sequence(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_sequence_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_group_sequence", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_sequence_t)pn_message_get_group_sequence(arg1); vresult = SWIG_From_long((long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_group_sequence(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; pn_sequence_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_group_sequence", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); ecode2 = SWIG_AsVal_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_sequence_t","pn_message_set_group_sequence", 2, argv[1] )); } arg2 = (pn_sequence_t)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_group_sequence(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_reply_to_group_id(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_reply_to_group_id", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (char *)pn_message_get_reply_to_group_id(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_reply_to_group_id(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_reply_to_group_id", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_message_set_reply_to_group_id", 2, argv[1] )); } arg2 = (char *)(buf2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_message_set_reply_to_group_id(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_message_get_format(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_format_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_format", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_format_t)pn_message_get_format(arg1); SWIG_contract_assert((check_format(result)), "Contract violation: ensure: (check_format(result))"); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_set_format(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; pn_format_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_format", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_format_t","pn_message_set_format", 2, argv[1] )); } arg2 = (pn_format_t)(val2); SWIG_contract_assert((arg1!=NULL)&&(check_format(arg2)), "Contract violation: require: (arg1!=NULL)&&(check_format(arg2))"); result = (int)pn_message_set_format(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_instructions(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_instructions", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); result = (pn_data_t *)pn_message_instructions(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_annotations(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_annotations", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); result = (pn_data_t *)pn_message_annotations(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_properties(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_properties", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); result = (pn_data_t *)pn_message_properties(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_body(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_body", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); result = (pn_data_t *)pn_message_body(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_decode(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_decode", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_message_decode", 2, argv[1] )); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_message_decode", 3, argv[2] )); } arg3 = (size_t)(val3); SWIG_contract_assert((arg1!=NULL)&&(arg3>=0), "Contract violation: require: (arg1!=NULL)&&(arg3>=0)"); result = (int)pn_message_decode(arg1,(char const *)arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_sasl_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_sasl", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (pn_sasl_t *)pn_sasl(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_sasl_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl_state(int argc, VALUE *argv, VALUE self) { pn_sasl_t *arg1 = (pn_sasl_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_sasl_state_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_state", 1, argv[0] )); } arg1 = (pn_sasl_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_sasl_state_t)pn_sasl_state(arg1); SWIG_contract_assert((check_sasl_state(result)), "Contract violation: ensure: (check_sasl_state(result))"); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl_mechanisms(int argc, VALUE *argv, VALUE self) { pn_sasl_t *arg1 = (pn_sasl_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_mechanisms", 1, argv[0] )); } arg1 = (pn_sasl_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_sasl_mechanisms", 2, argv[1] )); } arg2 = (char *)(buf2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_sasl_mechanisms(arg1,(char const *)arg2); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl_remote_mechanisms(int argc, VALUE *argv, VALUE self) { pn_sasl_t *arg1 = (pn_sasl_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_remote_mechanisms", 1, argv[0] )); } arg1 = (pn_sasl_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (char *)pn_sasl_remote_mechanisms(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl_client(int argc, VALUE *argv, VALUE self) { pn_sasl_t *arg1 = (pn_sasl_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_client", 1, argv[0] )); } arg1 = (pn_sasl_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_sasl_client(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl_server(int argc, VALUE *argv, VALUE self) { pn_sasl_t *arg1 = (pn_sasl_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_server", 1, argv[0] )); } arg1 = (pn_sasl_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_sasl_server(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl_plain(int argc, VALUE *argv, VALUE self) { pn_sasl_t *arg1 = (pn_sasl_t *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_plain", 1, argv[0] )); } arg1 = (pn_sasl_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_sasl_plain", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_sasl_plain", 3, argv[2] )); } arg3 = (char *)(buf3); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_sasl_plain(arg1,(char const *)arg2,(char const *)arg3); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl_pending(int argc, VALUE *argv, VALUE self) { pn_sasl_t *arg1 = (pn_sasl_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_pending", 1, argv[0] )); } arg1 = (pn_sasl_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (size_t)pn_sasl_pending(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl_recv(int argc, VALUE *argv, VALUE self) { pn_sasl_t *arg1 = (pn_sasl_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; ssize_t result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_recv", 1, argv[0] )); } arg1 = (pn_sasl_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_sasl_recv", 2, argv[1] )); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_sasl_recv", 3, argv[2] )); } arg3 = (size_t)(val3); SWIG_contract_assert((arg1!=NULL)&&(arg2!=NULL)&&(arg3>0), "Contract violation: require: (arg1!=NULL)&&(arg2!=NULL)&&(arg3>0)"); result = (ssize_t)pn_sasl_recv(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl_send(int argc, VALUE *argv, VALUE self) { pn_sasl_t *arg1 = (pn_sasl_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; ssize_t result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_send", 1, argv[0] )); } arg1 = (pn_sasl_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_sasl_send", 2, argv[1] )); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_sasl_send", 3, argv[2] )); } arg3 = (size_t)(val3); SWIG_contract_assert((arg1!=NULL)&&(arg2!=NULL)&&(arg3>0), "Contract violation: require: (arg1!=NULL)&&(arg2!=NULL)&&(arg3>0)"); result = (ssize_t)pn_sasl_send(arg1,(char const *)arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl_done(int argc, VALUE *argv, VALUE self) { pn_sasl_t *arg1 = (pn_sasl_t *) 0 ; pn_sasl_outcome_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_done", 1, argv[0] )); } arg1 = (pn_sasl_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_sasl_outcome_t","pn_sasl_done", 2, argv[1] )); } arg2 = (pn_sasl_outcome_t)(val2); SWIG_contract_assert((arg1!=NULL)&&(check_sasl_outcome(arg2)), "Contract violation: require: (arg1!=NULL)&&(check_sasl_outcome(arg2))"); pn_sasl_done(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl_outcome(int argc, VALUE *argv, VALUE self) { pn_sasl_t *arg1 = (pn_sasl_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_sasl_outcome_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_outcome", 1, argv[0] )); } arg1 = (pn_sasl_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_sasl_outcome_t)pn_sasl_outcome(arg1); SWIG_contract_assert((check_sasl_outcome(result)), "Contract violation: ensure: (check_sasl_outcome(result))"); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_driver(int argc, VALUE *argv, VALUE self) { pn_driver_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (pn_driver_t *)pn_driver(); SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)"); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_driver_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_driver_errno(int argc, VALUE *argv, VALUE self) { pn_driver_t *arg1 = (pn_driver_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_driver_errno", 1, argv[0] )); } arg1 = (pn_driver_t *)(argp1); result = (int)pn_driver_errno(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_driver_error(int argc, VALUE *argv, VALUE self) { pn_driver_t *arg1 = (pn_driver_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_driver_error", 1, argv[0] )); } arg1 = (pn_driver_t *)(argp1); result = (char *)pn_driver_error(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_driver_trace(int argc, VALUE *argv, VALUE self) { pn_driver_t *arg1 = (pn_driver_t *) 0 ; pn_trace_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_driver_trace", 1, argv[0] )); } arg1 = (pn_driver_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_trace_t","pn_driver_trace", 2, argv[1] )); } arg2 = (pn_trace_t)(val2); SWIG_contract_assert((arg1!=NULL)&&(check_trace(arg2)), "Contract violation: require: (arg1!=NULL)&&(check_trace(arg2))"); pn_driver_trace(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_driver_wakeup(int argc, VALUE *argv, VALUE self) { pn_driver_t *arg1 = (pn_driver_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_driver_wakeup", 1, argv[0] )); } arg1 = (pn_driver_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_driver_wakeup(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_driver_wait(int argc, VALUE *argv, VALUE self) { pn_driver_t *arg1 = (pn_driver_t *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_driver_wait", 1, argv[0] )); } arg1 = (pn_driver_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_driver_wait", 2, argv[1] )); } arg2 = (int)(val2); SWIG_contract_assert((arg1!=NULL)&&(arg2>=-1), "Contract violation: require: (arg1!=NULL)&&(arg2>=-1)"); result = (int)pn_driver_wait(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_driver_listener(int argc, VALUE *argv, VALUE self) { pn_driver_t *arg1 = (pn_driver_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_listener_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_driver_listener", 1, argv[0] )); } arg1 = (pn_driver_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_listener_t *)pn_driver_listener(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_listener_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_driver_connector(int argc, VALUE *argv, VALUE self) { pn_driver_t *arg1 = (pn_driver_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_connector_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_driver_connector", 1, argv[0] )); } arg1 = (pn_driver_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_connector_t *)pn_driver_connector(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connector_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_driver_free(int argc, VALUE *argv, VALUE self) { pn_driver_t *arg1 = (pn_driver_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_driver_free", 1, argv[0] )); } arg1 = (pn_driver_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_driver_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_listener(int argc, VALUE *argv, VALUE self) { pn_driver_t *arg1 = (pn_driver_t *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; pn_listener_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_listener", 1, argv[0] )); } arg1 = (pn_driver_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_listener", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_listener", 3, argv[2] )); } arg3 = (char *)(buf3); res4 = SWIG_ConvertPtr(argv[3],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","pn_listener", 4, argv[3] )); } SWIG_contract_assert((arg1!=NULL)&&(arg2!=NULL)&&(arg3!=NULL), "Contract violation: require: (arg1!=NULL)&&(arg2!=NULL)&&(arg3!=NULL)"); result = (pn_listener_t *)pn_listener(arg1,(char const *)arg2,(char const *)arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_listener_t, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_pn_listener_head(int argc, VALUE *argv, VALUE self) { pn_driver_t *arg1 = (pn_driver_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_listener_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_listener_head", 1, argv[0] )); } arg1 = (pn_driver_t *)(argp1); result = (pn_listener_t *)pn_listener_head(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_listener_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_listener_next(int argc, VALUE *argv, VALUE self) { pn_listener_t *arg1 = (pn_listener_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_listener_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_listener_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_listener_t *","pn_listener_next", 1, argv[0] )); } arg1 = (pn_listener_t *)(argp1); result = (pn_listener_t *)pn_listener_next(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_listener_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_listener_trace(int argc, VALUE *argv, VALUE self) { pn_listener_t *arg1 = (pn_listener_t *) 0 ; pn_trace_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_listener_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_listener_t *","pn_listener_trace", 1, argv[0] )); } arg1 = (pn_listener_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_trace_t","pn_listener_trace", 2, argv[1] )); } arg2 = (pn_trace_t)(val2); SWIG_contract_assert((arg1!=NULL)&&(check_trace(arg2)), "Contract violation: require: (arg1!=NULL)&&(check_trace(arg2))"); pn_listener_trace(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_listener_accept(int argc, VALUE *argv, VALUE self) { pn_listener_t *arg1 = (pn_listener_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_connector_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_listener_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_listener_t *","pn_listener_accept", 1, argv[0] )); } arg1 = (pn_listener_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_connector_t *)pn_listener_accept(arg1); SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)"); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connector_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_listener_context(int argc, VALUE *argv, VALUE self) { pn_listener_t *arg1 = (pn_listener_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_listener_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_listener_t *","pn_listener_context", 1, argv[0] )); } arg1 = (pn_listener_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (void *)pn_listener_context(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_listener_set_context(int argc, VALUE *argv, VALUE self) { pn_listener_t *arg1 = (pn_listener_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_listener_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_listener_t *","pn_listener_set_context", 1, argv[0] )); } arg1 = (pn_listener_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_listener_set_context", 2, argv[1] )); } SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_listener_set_context(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_listener_close(int argc, VALUE *argv, VALUE self) { pn_listener_t *arg1 = (pn_listener_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_listener_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_listener_t *","pn_listener_close", 1, argv[0] )); } arg1 = (pn_listener_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_listener_close(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_listener_free(int argc, VALUE *argv, VALUE self) { pn_listener_t *arg1 = (pn_listener_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_listener_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_listener_t *","pn_listener_free", 1, argv[0] )); } arg1 = (pn_listener_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_listener_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector(int argc, VALUE *argv, VALUE self) { pn_driver_t *arg1 = (pn_driver_t *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; pn_connector_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_connector", 1, argv[0] )); } arg1 = (pn_driver_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connector", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_connector", 3, argv[2] )); } arg3 = (char *)(buf3); res4 = SWIG_ConvertPtr(argv[3],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","pn_connector", 4, argv[3] )); } SWIG_contract_assert((arg1!=NULL)&&(arg2!=NULL)&&(arg3!=NULL), "Contract violation: require: (arg1!=NULL)&&(arg2!=NULL)&&(arg3!=NULL)"); result = (pn_connector_t *)pn_connector(arg1,(char const *)arg2,(char const *)arg3,arg4); SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)"); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_head(int argc, VALUE *argv, VALUE self) { pn_driver_t *arg1 = (pn_driver_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_connector_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_connector_head", 1, argv[0] )); } arg1 = (pn_driver_t *)(argp1); result = (pn_connector_t *)pn_connector_head(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connector_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_next(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_connector_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_next", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); result = (pn_connector_t *)pn_connector_next(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connector_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_trace(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; pn_trace_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_trace", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_trace_t","pn_connector_trace", 2, argv[1] )); } arg2 = (pn_trace_t)(val2); SWIG_contract_assert((arg1!=NULL)&&(check_trace(arg2)), "Contract violation: require: (arg1!=NULL)&&(check_trace(arg2))"); pn_connector_trace(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_process(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_process", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_connector_process(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_listener(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_listener_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_listener", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_listener_t *)pn_connector_listener(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_listener_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_sasl(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_sasl_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_sasl", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_sasl_t *)pn_connector_sasl(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_sasl_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_connection(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_connection_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_connection", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_connection_t *)pn_connector_connection(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_set_connection(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; pn_connection_t *arg2 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_set_connection", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_connection_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connector_set_connection", 2, argv[1] )); } arg2 = (pn_connection_t *)(argp2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_connector_set_connection(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_context(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_context", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (void *)pn_connector_context(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_set_context(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_set_context", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_connector_set_context", 2, argv[1] )); } SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_connector_set_context(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_name(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t const *","pn_connector_name", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); result = (char *)pn_connector_name((struct pn_connector_t const *)arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_transport(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_transport_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_transport", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); result = (pn_transport_t *)pn_connector_transport(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_transport_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_close(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_close", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_connector_close(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_closed(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_closed", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (bool)pn_connector_closed(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_free(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_free", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_connector_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_activate(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; pn_activate_criteria_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_activate", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_activate_criteria_t","pn_connector_activate", 2, argv[1] )); } arg2 = (pn_activate_criteria_t)(val2); pn_connector_activate(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_activated(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; pn_activate_criteria_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_activated", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_activate_criteria_t","pn_connector_activated", 2, argv[1] )); } arg2 = (pn_activate_criteria_t)(val2); result = (bool)pn_connector_activated(arg1,arg2); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_listener_fd(int argc, VALUE *argv, VALUE self) { pn_driver_t *arg1 = (pn_driver_t *) 0 ; pn_socket_t arg2 ; void *arg3 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 ; pn_listener_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_listener_fd", 1, argv[0] )); } arg1 = (pn_driver_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_socket_t","pn_listener_fd", 2, argv[1] )); } arg2 = (pn_socket_t)(val2); res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_listener_fd", 3, argv[2] )); } result = (pn_listener_t *)pn_listener_fd(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_listener_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_listener_get_fd(int argc, VALUE *argv, VALUE self) { pn_listener_t *arg1 = (pn_listener_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_socket_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_listener_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_listener_t *","pn_listener_get_fd", 1, argv[0] )); } arg1 = (pn_listener_t *)(argp1); result = (pn_socket_t)pn_listener_get_fd(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_fd(int argc, VALUE *argv, VALUE self) { pn_driver_t *arg1 = (pn_driver_t *) 0 ; pn_socket_t arg2 ; void *arg3 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 ; pn_connector_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_connector_fd", 1, argv[0] )); } arg1 = (pn_driver_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_socket_t","pn_connector_fd", 2, argv[1] )); } arg2 = (pn_socket_t)(val2); res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_connector_fd", 3, argv[2] )); } result = (pn_connector_t *)pn_connector_fd(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connector_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connector_get_fd(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_socket_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_get_fd", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); result = (pn_socket_t)pn_connector_get_fd(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; pn_messenger_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","pn_messenger", 1, argv[0] )); } arg1 = (char *)(buf1); result = (pn_messenger_t *)pn_messenger((char const *)arg1); SWIG_contract_assert((pn_message!=NULL), "Contract violation: ensure: (pn_message!=NULL)"); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); return vresult; fail: if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_name(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_name", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (char *)pn_messenger_name(arg1); SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)"); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_set_certificate(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_certificate", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_messenger_set_certificate", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)pn_messenger_set_certificate(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_get_certificate(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_certificate", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); result = (char *)pn_messenger_get_certificate(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_set_private_key(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_private_key", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_messenger_set_private_key", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)pn_messenger_set_private_key(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_get_private_key(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_private_key", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); result = (char *)pn_messenger_get_private_key(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_set_password(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_password", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_messenger_set_password", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)pn_messenger_set_password(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_get_password(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_password", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); result = (char *)pn_messenger_get_password(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_set_trusted_certificates(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_trusted_certificates", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_messenger_set_trusted_certificates", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)pn_messenger_set_trusted_certificates(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_get_trusted_certificates(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_trusted_certificates", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); result = (char *)pn_messenger_get_trusted_certificates(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_set_timeout(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_timeout", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_messenger_set_timeout", 2, argv[1] )); } arg2 = (int)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_messenger_set_timeout(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_get_timeout(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_timeout", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_messenger_get_timeout(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_is_blocking(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_is_blocking", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); result = (bool)pn_messenger_is_blocking(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_set_blocking(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_blocking", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_messenger_set_blocking", 2, argv[1] )); } arg2 = (bool)(val2); result = (int)pn_messenger_set_blocking(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_is_passive(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_is_passive", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); result = (bool)pn_messenger_is_passive(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_set_passive(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_passive", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_messenger_set_passive", 2, argv[1] )); } arg2 = (bool)(val2); result = (int)pn_messenger_set_passive(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_free(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_free", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_messenger_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_errno(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_errno", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_messenger_errno(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_error(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_error_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_error", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (pn_error_t *)pn_messenger_error(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_get_outgoing_window(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_outgoing_window", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); result = (int)pn_messenger_get_outgoing_window(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_set_outgoing_window(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_outgoing_window", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_messenger_set_outgoing_window", 2, argv[1] )); } arg2 = (int)(val2); result = (int)pn_messenger_set_outgoing_window(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_get_incoming_window(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_incoming_window", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); result = (int)pn_messenger_get_incoming_window(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_set_incoming_window(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_incoming_window", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_messenger_set_incoming_window", 2, argv[1] )); } arg2 = (int)(val2); result = (int)pn_messenger_set_incoming_window(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_start(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_start", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_messenger_start(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_stop(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_stop", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_messenger_stop(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_stopped(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_stopped", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); result = (bool)pn_messenger_stopped(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_subscribe(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; pn_subscription_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_subscribe", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_messenger_subscribe", 2, argv[1] )); } arg2 = (char *)(buf2); SWIG_contract_assert((arg1!=NULL)&&(arg2!=NULL), "Contract violation: require: (arg1!=NULL)&&(arg2!=NULL)"); result = (pn_subscription_t *)pn_messenger_subscribe(arg1,(char const *)arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_subscription_t, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_subscription_get_context(int argc, VALUE *argv, VALUE self) { pn_subscription_t *arg1 = (pn_subscription_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_subscription_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_subscription_t *","pn_subscription_get_context", 1, argv[0] )); } arg1 = (pn_subscription_t *)(argp1); result = (void *)pn_subscription_get_context(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_subscription_set_context(int argc, VALUE *argv, VALUE self) { pn_subscription_t *arg1 = (pn_subscription_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_subscription_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_subscription_t *","pn_subscription_set_context", 1, argv[0] )); } arg1 = (pn_subscription_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_subscription_set_context", 2, argv[1] )); } pn_subscription_set_context(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_subscription_address(int argc, VALUE *argv, VALUE self) { pn_subscription_t *arg1 = (pn_subscription_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_subscription_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_subscription_t *","pn_subscription_address", 1, argv[0] )); } arg1 = (pn_subscription_t *)(argp1); result = (char *)pn_subscription_address(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_put(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; pn_message_t *arg2 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_put", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_message_t *","pn_messenger_put", 2, argv[1] )); } arg2 = (pn_message_t *)(argp2); SWIG_contract_assert((arg1!=NULL)&&(arg2!=NULL), "Contract violation: require: (arg1!=NULL)&&(arg2!=NULL)"); result = (int)pn_messenger_put(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_status(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; pn_tracker_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long long val2 ; int ecode2 = 0 ; pn_status_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_status", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_tracker_t","pn_messenger_status", 2, argv[1] )); } arg2 = (pn_tracker_t)(val2); result = (pn_status_t)pn_messenger_status(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_buffered(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; pn_tracker_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long long val2 ; int ecode2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_buffered", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_tracker_t","pn_messenger_buffered", 2, argv[1] )); } arg2 = (pn_tracker_t)(val2); result = (bool)pn_messenger_buffered(arg1,arg2); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_settle(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; pn_tracker_t arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; long long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_settle", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_tracker_t","pn_messenger_settle", 2, argv[1] )); } arg2 = (pn_tracker_t)(val2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","pn_messenger_settle", 3, argv[2] )); } arg3 = (int)(val3); result = (int)pn_messenger_settle(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_outgoing_tracker(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_tracker_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_outgoing_tracker", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); result = (pn_tracker_t)pn_messenger_outgoing_tracker(arg1); vresult = SWIG_From_long_SS_long((long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_work(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_work", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_messenger_work", 2, argv[1] )); } arg2 = (int)(val2); result = (int)pn_messenger_work(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_interrupt(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_interrupt", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); result = (int)pn_messenger_interrupt(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_send(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_send", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_messenger_send", 2, argv[1] )); } arg2 = (int)(val2); result = (int)pn_messenger_send(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_recv(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_recv", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_messenger_recv", 2, argv[1] )); } arg2 = (int)(val2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_messenger_recv(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_receiving(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_receiving", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); result = (int)pn_messenger_receiving(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_get(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; pn_message_t *arg2 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_message_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_message_t *","pn_messenger_get", 2, argv[1] )); } arg2 = (pn_message_t *)(argp2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_messenger_get(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_incoming_tracker(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_tracker_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_incoming_tracker", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); result = (pn_tracker_t)pn_messenger_incoming_tracker(arg1); vresult = SWIG_From_long_SS_long((long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_incoming_subscription(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_subscription_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_incoming_subscription", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); result = (pn_subscription_t *)pn_messenger_incoming_subscription(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_subscription_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_accept(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; pn_tracker_t arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; long long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_accept", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_tracker_t","pn_messenger_accept", 2, argv[1] )); } arg2 = (pn_tracker_t)(val2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","pn_messenger_accept", 3, argv[2] )); } arg3 = (int)(val3); result = (int)pn_messenger_accept(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_reject(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; pn_tracker_t arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; long long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_reject", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_tracker_t","pn_messenger_reject", 2, argv[1] )); } arg2 = (pn_tracker_t)(val2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","pn_messenger_reject", 3, argv[2] )); } arg3 = (int)(val3); result = (int)pn_messenger_reject(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_outgoing(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_outgoing", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_messenger_outgoing(arg1); SWIG_contract_assert((result>=0), "Contract violation: ensure: (result>=0)"); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_incoming(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_incoming", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (int)pn_messenger_incoming(arg1); SWIG_contract_assert((result>=0), "Contract violation: ensure: (result>=0)"); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_route(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_route", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_messenger_route", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_messenger_route", 3, argv[2] )); } arg3 = (char *)(buf3); result = (int)pn_messenger_route(arg1,(char const *)arg2,(char const *)arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_rewrite(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_rewrite", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_messenger_rewrite", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_messenger_rewrite", 3, argv[2] )); } arg3 = (char *)(buf3); result = (int)pn_messenger_rewrite(arg1,(char const *)arg2,(char const *)arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_selectable(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_selectable_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_selectable", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); result = (pn_selectable_t *)pn_messenger_selectable(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_selectable_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_messenger_deadline(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_timestamp_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_deadline", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); result = (pn_timestamp_t)pn_messenger_deadline(arg1); vresult = SWIG_From_long_SS_long((long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_io(int argc, VALUE *argv, VALUE self) { pn_io_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (pn_io_t *)pn_io(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_io_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_io_free(int argc, VALUE *argv, VALUE self) { pn_io_t *arg1 = (pn_io_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_io_free", 1, argv[0] )); } arg1 = (pn_io_t *)(argp1); pn_io_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_io_error(int argc, VALUE *argv, VALUE self) { pn_io_t *arg1 = (pn_io_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_error_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_io_error", 1, argv[0] )); } arg1 = (pn_io_t *)(argp1); result = (pn_error_t *)pn_io_error(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connect(int argc, VALUE *argv, VALUE self) { pn_io_t *arg1 = (pn_io_t *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; pn_socket_t result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_connect", 1, argv[0] )); } arg1 = (pn_io_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connect", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_connect", 3, argv[2] )); } arg3 = (char *)(buf3); result = (pn_socket_t)pn_connect(arg1,(char const *)arg2,(char const *)arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_pn_listen(int argc, VALUE *argv, VALUE self) { pn_io_t *arg1 = (pn_io_t *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; pn_socket_t result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_listen", 1, argv[0] )); } arg1 = (pn_io_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_listen", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_listen", 3, argv[2] )); } arg3 = (char *)(buf3); result = (pn_socket_t)pn_listen(arg1,(char const *)arg2,(char const *)arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_pn_accept(int argc, VALUE *argv, VALUE self) { pn_io_t *arg1 = (pn_io_t *) 0 ; pn_socket_t arg2 ; char *arg3 = (char *) 0 ; size_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; size_t val4 ; int ecode4 = 0 ; pn_socket_t result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_accept", 1, argv[0] )); } arg1 = (pn_io_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_socket_t","pn_accept", 2, argv[1] )); } arg2 = (pn_socket_t)(val2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","pn_accept", 3, argv[2] )); } arg3 = (char *)(buf3); ecode4 = SWIG_AsVal_size_t(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","pn_accept", 4, argv[3] )); } arg4 = (size_t)(val4); result = (pn_socket_t)pn_accept(arg1,arg2,arg3,arg4); vresult = SWIG_From_int((int)(result)); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_pn_close(int argc, VALUE *argv, VALUE self) { pn_io_t *arg1 = (pn_io_t *) 0 ; pn_socket_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_close", 1, argv[0] )); } arg1 = (pn_io_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_socket_t","pn_close", 2, argv[1] )); } arg2 = (pn_socket_t)(val2); pn_close(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_send(int argc, VALUE *argv, VALUE self) { pn_io_t *arg1 = (pn_io_t *) 0 ; pn_socket_t arg2 ; void *arg3 = (void *) 0 ; size_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 ; size_t val4 ; int ecode4 = 0 ; ssize_t result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_send", 1, argv[0] )); } arg1 = (pn_io_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_socket_t","pn_send", 2, argv[1] )); } arg2 = (pn_socket_t)(val2); res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void const *","pn_send", 3, argv[2] )); } ecode4 = SWIG_AsVal_size_t(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","pn_send", 4, argv[3] )); } arg4 = (size_t)(val4); result = (ssize_t)pn_send(arg1,arg2,(void const *)arg3,arg4); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_recv(int argc, VALUE *argv, VALUE self) { pn_io_t *arg1 = (pn_io_t *) 0 ; pn_socket_t arg2 ; void *arg3 = (void *) 0 ; size_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 ; size_t val4 ; int ecode4 = 0 ; ssize_t result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_recv", 1, argv[0] )); } arg1 = (pn_io_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_socket_t","pn_recv", 2, argv[1] )); } arg2 = (pn_socket_t)(val2); res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_recv", 3, argv[2] )); } ecode4 = SWIG_AsVal_size_t(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","pn_recv", 4, argv[3] )); } arg4 = (size_t)(val4); result = (ssize_t)pn_recv(arg1,arg2,arg3,arg4); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_pipe(int argc, VALUE *argv, VALUE self) { pn_io_t *arg1 = (pn_io_t *) 0 ; pn_socket_t *arg2 = (pn_socket_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_pipe", 1, argv[0] )); } arg1 = (pn_io_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_int, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_socket_t *","pn_pipe", 2, argv[1] )); } arg2 = (pn_socket_t *)(argp2); result = (int)pn_pipe(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_read(int argc, VALUE *argv, VALUE self) { pn_io_t *arg1 = (pn_io_t *) 0 ; pn_socket_t arg2 ; void *arg3 = (void *) 0 ; size_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 ; size_t val4 ; int ecode4 = 0 ; ssize_t result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_read", 1, argv[0] )); } arg1 = (pn_io_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_socket_t","pn_read", 2, argv[1] )); } arg2 = (pn_socket_t)(val2); res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_read", 3, argv[2] )); } ecode4 = SWIG_AsVal_size_t(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","pn_read", 4, argv[3] )); } arg4 = (size_t)(val4); result = (ssize_t)pn_read(arg1,arg2,arg3,arg4); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_write(int argc, VALUE *argv, VALUE self) { pn_io_t *arg1 = (pn_io_t *) 0 ; pn_socket_t arg2 ; void *arg3 = (void *) 0 ; size_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 ; size_t val4 ; int ecode4 = 0 ; ssize_t result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_write", 1, argv[0] )); } arg1 = (pn_io_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_socket_t","pn_write", 2, argv[1] )); } arg2 = (pn_socket_t)(val2); res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void const *","pn_write", 3, argv[2] )); } ecode4 = SWIG_AsVal_size_t(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","pn_write", 4, argv[3] )); } arg4 = (size_t)(val4); result = (ssize_t)pn_write(arg1,arg2,(void const *)arg3,arg4); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_wouldblock(int argc, VALUE *argv, VALUE self) { pn_io_t *arg1 = (pn_io_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_wouldblock", 1, argv[0] )); } arg1 = (pn_io_t *)(argp1); result = (bool)pn_wouldblock(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_selectables(int argc, VALUE *argv, VALUE self) { pn_selectables_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (pn_selectables_t *)pn_selectables(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_iterator_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_selectables_next(int argc, VALUE *argv, VALUE self) { pn_selectables_t *arg1 = (pn_selectables_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_selectable_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_iterator_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectables_t *","pn_selectables_next", 1, argv[0] )); } arg1 = (pn_selectables_t *)(argp1); result = (pn_selectable_t *)pn_selectables_next(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_selectable_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_selectables_free(int argc, VALUE *argv, VALUE self) { pn_selectables_t *arg1 = (pn_selectables_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_iterator_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectables_t *","pn_selectables_free", 1, argv[0] )); } arg1 = (pn_selectables_t *)(argp1); pn_selectables_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_selectable_fd(int argc, VALUE *argv, VALUE self) { pn_selectable_t *arg1 = (pn_selectable_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_socket_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_fd", 1, argv[0] )); } arg1 = (pn_selectable_t *)(argp1); result = (pn_socket_t)pn_selectable_fd(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_selectable_capacity(int argc, VALUE *argv, VALUE self) { pn_selectable_t *arg1 = (pn_selectable_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; ssize_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_capacity", 1, argv[0] )); } arg1 = (pn_selectable_t *)(argp1); result = (ssize_t)pn_selectable_capacity(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_selectable_pending(int argc, VALUE *argv, VALUE self) { pn_selectable_t *arg1 = (pn_selectable_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; ssize_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_pending", 1, argv[0] )); } arg1 = (pn_selectable_t *)(argp1); result = (ssize_t)pn_selectable_pending(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_selectable_deadline(int argc, VALUE *argv, VALUE self) { pn_selectable_t *arg1 = (pn_selectable_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_timestamp_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_deadline", 1, argv[0] )); } arg1 = (pn_selectable_t *)(argp1); result = (pn_timestamp_t)pn_selectable_deadline(arg1); vresult = SWIG_From_long_SS_long((long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_selectable_readable(int argc, VALUE *argv, VALUE self) { pn_selectable_t *arg1 = (pn_selectable_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_readable", 1, argv[0] )); } arg1 = (pn_selectable_t *)(argp1); pn_selectable_readable(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_selectable_writable(int argc, VALUE *argv, VALUE self) { pn_selectable_t *arg1 = (pn_selectable_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_writable", 1, argv[0] )); } arg1 = (pn_selectable_t *)(argp1); pn_selectable_writable(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_selectable_expired(int argc, VALUE *argv, VALUE self) { pn_selectable_t *arg1 = (pn_selectable_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_expired", 1, argv[0] )); } arg1 = (pn_selectable_t *)(argp1); pn_selectable_expired(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_selectable_is_registered(int argc, VALUE *argv, VALUE self) { pn_selectable_t *arg1 = (pn_selectable_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_is_registered", 1, argv[0] )); } arg1 = (pn_selectable_t *)(argp1); result = (bool)pn_selectable_is_registered(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_selectable_set_registered(int argc, VALUE *argv, VALUE self) { pn_selectable_t *arg1 = (pn_selectable_t *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_set_registered", 1, argv[0] )); } arg1 = (pn_selectable_t *)(argp1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_selectable_set_registered", 2, argv[1] )); } arg2 = (bool)(val2); pn_selectable_set_registered(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_selectable_is_terminal(int argc, VALUE *argv, VALUE self) { pn_selectable_t *arg1 = (pn_selectable_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_is_terminal", 1, argv[0] )); } arg1 = (pn_selectable_t *)(argp1); result = (bool)pn_selectable_is_terminal(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_selectable_free(int argc, VALUE *argv, VALUE self) { pn_selectable_t *arg1 = (pn_selectable_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_free", 1, argv[0] )); } arg1 = (pn_selectable_t *)(argp1); pn_selectable_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_ssl_domain(int argc, VALUE *argv, VALUE self) { pn_ssl_mode_t arg1 ; int val1 ; int ecode1 = 0 ; pn_ssl_domain_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "pn_ssl_mode_t","pn_ssl_domain", 1, argv[0] )); } arg1 = (pn_ssl_mode_t)(val1); result = (pn_ssl_domain_t *)pn_ssl_domain(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_ssl_domain_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_ssl_domain_free(int argc, VALUE *argv, VALUE self) { pn_ssl_domain_t *arg1 = (pn_ssl_domain_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_domain_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_domain_t *","pn_ssl_domain_free", 1, argv[0] )); } arg1 = (pn_ssl_domain_t *)(argp1); pn_ssl_domain_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_ssl_domain_set_credentials(int argc, VALUE *argv, VALUE self) { pn_ssl_domain_t *arg1 = (pn_ssl_domain_t *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_domain_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_domain_t *","pn_ssl_domain_set_credentials", 1, argv[0] )); } arg1 = (pn_ssl_domain_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_ssl_domain_set_credentials", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_ssl_domain_set_credentials", 3, argv[2] )); } arg3 = (char *)(buf3); res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","pn_ssl_domain_set_credentials", 4, argv[3] )); } arg4 = (char *)(buf4); result = (int)pn_ssl_domain_set_credentials(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return Qnil; } SWIGINTERN VALUE _wrap_pn_ssl_domain_set_trusted_ca_db(int argc, VALUE *argv, VALUE self) { pn_ssl_domain_t *arg1 = (pn_ssl_domain_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_domain_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_domain_t *","pn_ssl_domain_set_trusted_ca_db", 1, argv[0] )); } arg1 = (pn_ssl_domain_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_ssl_domain_set_trusted_ca_db", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)pn_ssl_domain_set_trusted_ca_db(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_ssl_domain_set_peer_authentication(int argc, VALUE *argv, VALUE self) { pn_ssl_domain_t *arg1 = (pn_ssl_domain_t *) 0 ; pn_ssl_verify_mode_t arg2 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_domain_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_domain_t *","pn_ssl_domain_set_peer_authentication", 1, argv[0] )); } arg1 = (pn_ssl_domain_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_ssl_verify_mode_t","pn_ssl_domain_set_peer_authentication", 2, argv[1] )); } arg2 = (pn_ssl_verify_mode_t)(val2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_ssl_domain_set_peer_authentication", 3, argv[2] )); } arg3 = (char *)(buf3); result = (int)pn_ssl_domain_set_peer_authentication(arg1,arg2,(char const *)arg3); vresult = SWIG_From_int((int)(result)); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_pn_ssl_domain_allow_unsecured_client(int argc, VALUE *argv, VALUE self) { pn_ssl_domain_t *arg1 = (pn_ssl_domain_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_domain_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_domain_t *","pn_ssl_domain_allow_unsecured_client", 1, argv[0] )); } arg1 = (pn_ssl_domain_t *)(argp1); result = (int)pn_ssl_domain_allow_unsecured_client(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_ssl(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_ssl_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_ssl", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (pn_ssl_t *)pn_ssl(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_ssl_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_ssl_init(int argc, VALUE *argv, VALUE self) { pn_ssl_t *arg1 = (pn_ssl_t *) 0 ; pn_ssl_domain_t *arg2 = (pn_ssl_domain_t *) 0 ; char *arg3 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_init", 1, argv[0] )); } arg1 = (pn_ssl_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_ssl_domain_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_ssl_domain_t *","pn_ssl_init", 2, argv[1] )); } arg2 = (pn_ssl_domain_t *)(argp2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_ssl_init", 3, argv[2] )); } arg3 = (char *)(buf3); result = (int)pn_ssl_init(arg1,arg2,(char const *)arg3); vresult = SWIG_From_int((int)(result)); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_pn_ssl_resume_status(int argc, VALUE *argv, VALUE self) { pn_ssl_t *arg1 = (pn_ssl_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_ssl_resume_status_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_resume_status", 1, argv[0] )); } arg1 = (pn_ssl_t *)(argp1); result = (pn_ssl_resume_status_t)pn_ssl_resume_status(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_ssl_set_peer_hostname(int argc, VALUE *argv, VALUE self) { pn_ssl_t *arg1 = (pn_ssl_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_set_peer_hostname", 1, argv[0] )); } arg1 = (pn_ssl_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_ssl_set_peer_hostname", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)pn_ssl_set_peer_hostname(arg1,(char const *)arg2); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_ssl_get_peer_hostname(int argc, VALUE *argv, VALUE self) { pn_ssl_t *arg1 = (pn_ssl_t *) 0 ; char *arg2 = (char *) 0 ; size_t *arg3 = (size_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_get_peer_hostname", 1, argv[0] )); } arg1 = (pn_ssl_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_ssl_get_peer_hostname", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_unsigned_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "size_t *","pn_ssl_get_peer_hostname", 3, argv[2] )); } arg3 = (size_t *)(argp3); result = (int)pn_ssl_get_peer_hostname(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_type_name(int argc, VALUE *argv, VALUE self) { pn_type_t arg1 ; int val1 ; int ecode1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "pn_type_t","pn_type_name", 1, argv[0] )); } arg1 = (pn_type_t)(val1); result = (char *)pn_type_name(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } static swig_class SwigClassPn_atom_t; SWIGINTERN VALUE _wrap_pn_atom_t_type_set(int argc, VALUE *argv, VALUE self) { pn_atom_t *arg1 = (pn_atom_t *) 0 ; pn_type_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t *","type", 1, self )); } arg1 = (pn_atom_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_type_t","type", 2, argv[0] )); } arg2 = (pn_type_t)(val2); if (arg1) (arg1)->type = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_type_get(int argc, VALUE *argv, VALUE self) { pn_atom_t *arg1 = (pn_atom_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_type_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t *","type", 1, self )); } arg1 = (pn_atom_t *)(argp1); result = (pn_type_t) ((arg1)->type); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_get(int argc, VALUE *argv, VALUE self) { pn_atom_t *arg1 = (pn_atom_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_atom_t_u *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t *","u", 1, self )); } arg1 = (pn_atom_t *)(argp1); result = (pn_atom_t_u *)& ((arg1)->u); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_pn_atom_t_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_pn_atom_t_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_pn_atom_t); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_pn_atom_t(int argc, VALUE *argv, VALUE self) { pn_atom_t *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (pn_atom_t *)calloc(1, sizeof(pn_atom_t)); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_pn_atom_t(pn_atom_t *arg1) { free((char *) arg1); } static swig_class SwigClassPn_atom_t_u; SWIGINTERN VALUE _wrap_pn_atom_t_u_as_bool_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_bool", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","as_bool", 2, argv[0] )); } arg2 = (bool)(val2); if (arg1) (arg1)->as_bool = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_bool_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_bool", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (bool) ((arg1)->as_bool); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_ubyte_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; uint8_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ubyte", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","as_ubyte", 2, argv[0] )); } arg2 = (uint8_t)(val2); if (arg1) (arg1)->as_ubyte = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_ubyte_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint8_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ubyte", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (uint8_t) ((arg1)->as_ubyte); vresult = SWIG_From_unsigned_SS_char((unsigned char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_byte_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; int8_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; signed char val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_byte", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); ecode2 = SWIG_AsVal_signed_SS_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int8_t","as_byte", 2, argv[0] )); } arg2 = (int8_t)(val2); if (arg1) (arg1)->as_byte = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_byte_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int8_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_byte", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (int8_t) ((arg1)->as_byte); vresult = SWIG_From_signed_SS_char((signed char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_ushort_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ushort", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","as_ushort", 2, argv[0] )); } arg2 = (uint16_t)(val2); if (arg1) (arg1)->as_ushort = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_ushort_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint16_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ushort", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (uint16_t) ((arg1)->as_ushort); vresult = SWIG_From_unsigned_SS_short((unsigned short)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_short_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; int16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; short val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_short", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int16_t","as_short", 2, argv[0] )); } arg2 = (int16_t)(val2); if (arg1) (arg1)->as_short = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_short_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int16_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_short", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (int16_t) ((arg1)->as_short); vresult = SWIG_From_short((short)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_uint_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_uint", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","as_uint", 2, argv[0] )); } arg2 = (uint32_t)(val2); if (arg1) (arg1)->as_uint = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_uint_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_uint", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (uint32_t) ((arg1)->as_uint); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_int_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; int32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_int", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); ecode2 = SWIG_AsVal_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int32_t","as_int", 2, argv[0] )); } arg2 = (int32_t)(val2); if (arg1) (arg1)->as_int = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_int_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_int", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (int32_t) ((arg1)->as_int); vresult = SWIG_From_long((long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_char_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; pn_char_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_char", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_char_t","as_char", 2, argv[0] )); } arg2 = (pn_char_t)(val2); if (arg1) (arg1)->as_char = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_char_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_char_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_char", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (pn_char_t) ((arg1)->as_char); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_ulong_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; uint64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ulong", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","as_ulong", 2, argv[0] )); } arg2 = (uint64_t)(val2); if (arg1) (arg1)->as_ulong = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_ulong_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ulong", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (uint64_t) ((arg1)->as_ulong); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_long_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; int64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long long val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_long", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int64_t","as_long", 2, argv[0] )); } arg2 = (int64_t)(val2); if (arg1) (arg1)->as_long = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_long_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_long", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (int64_t) ((arg1)->as_long); vresult = SWIG_From_long_SS_long((long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_timestamp_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; pn_timestamp_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long long val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_timestamp", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_timestamp_t","as_timestamp", 2, argv[0] )); } arg2 = (pn_timestamp_t)(val2); if (arg1) (arg1)->as_timestamp = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_timestamp_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_timestamp_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_timestamp", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (pn_timestamp_t) ((arg1)->as_timestamp); vresult = SWIG_From_long_SS_long((long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_float_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_float", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","as_float", 2, argv[0] )); } arg2 = (float)(val2); if (arg1) (arg1)->as_float = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_float_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; float result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_float", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (float) ((arg1)->as_float); vresult = SWIG_From_float((float)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_double_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; double arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_double", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","as_double", 2, argv[0] )); } arg2 = (double)(val2); if (arg1) (arg1)->as_double = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_double_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; double result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_double", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (double) ((arg1)->as_double); vresult = SWIG_From_double((double)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_decimal32_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; pn_decimal32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal32", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); { arg2 = FIX2UINT(argv[0]); } if (arg1) (arg1)->as_decimal32 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_decimal32_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_decimal32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal32", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (pn_decimal32_t) ((arg1)->as_decimal32); { vresult = ULL2NUM(result); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_decimal64_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; pn_decimal64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal64", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); { arg2 = NUM2ULONG(argv[0]); } if (arg1) (arg1)->as_decimal64 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_decimal64_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_decimal64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal64", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (pn_decimal64_t) ((arg1)->as_decimal64); { vresult = ULL2NUM(result); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_decimal128_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; pn_decimal128_t *arg2 = (pn_decimal128_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal128", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_pn_decimal128_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_decimal128_t *","as_decimal128", 2, argv[0] )); } arg2 = (pn_decimal128_t *)(argp2); if (arg1) (arg1)->as_decimal128 = *arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_decimal128_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_decimal128_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal128", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (pn_decimal128_t *)& ((arg1)->as_decimal128); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_decimal128_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_uuid_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; pn_uuid_t *arg2 = (pn_uuid_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_uuid", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_pn_uuid_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_uuid_t *","as_uuid", 2, argv[0] )); } arg2 = (pn_uuid_t *)(argp2); if (arg1) (arg1)->as_uuid = *arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_uuid_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_uuid_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_uuid", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (pn_uuid_t *)& ((arg1)->as_uuid); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_uuid_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_bytes_set(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; pn_bytes_t *arg2 = (pn_bytes_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_bytes", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_pn_bytes_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_bytes_t *","as_bytes", 2, argv[0] )); } arg2 = (pn_bytes_t *)(argp2); if (arg1) (arg1)->as_bytes = *arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_atom_t_u_as_bytes_get(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_bytes_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_bytes", 1, self )); } arg1 = (pn_atom_t_u *)(argp1); result = (pn_bytes_t *)& ((arg1)->as_bytes); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_bytes_t, 0 | 0 ); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_pn_atom_t_u_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_pn_atom_t_u_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_pn_atom_t_u); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_pn_atom_t_u(int argc, VALUE *argv, VALUE self) { pn_atom_t_u *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (pn_atom_t_u *)calloc(1, sizeof(pn_atom_t_u)); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_pn_atom_t_u(pn_atom_t_u *arg1) { free((char *) arg1); } SWIGINTERN VALUE _wrap_pn_data(int argc, VALUE *argv, VALUE self) { size_t arg1 ; size_t val1 ; int ecode1 = 0 ; pn_data_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_size_t(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","pn_data", 1, argv[0] )); } arg1 = (size_t)(val1); result = (pn_data_t *)pn_data(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_free(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_free", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); pn_data_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_errno(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_errno", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (int)pn_data_errno(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_error(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_error_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_error", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (pn_error_t *)pn_data_error(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_fill(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; char *arg2 = (char *) 0 ; void *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if (argc < 2) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_fill", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_data_fill", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)pn_data_fill(arg1,(char const *)arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_data_scan(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; char *arg2 = (char *) 0 ; void *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int result; VALUE vresult = Qnil; if (argc < 2) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_scan", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_data_scan", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)pn_data_scan(arg1,(char const *)arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_data_clear(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_clear", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); pn_data_clear(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_size(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_size", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (size_t)pn_data_size(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_rewind(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_rewind", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); pn_data_rewind(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_next(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_next", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (bool)pn_data_next(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_prev(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_prev", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (bool)pn_data_prev(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_enter(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_enter", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (bool)pn_data_enter(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_exit(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_exit", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (bool)pn_data_exit(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_lookup(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_lookup", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_data_lookup", 2, argv[1] )); } arg2 = (char *)(buf2); result = (bool)pn_data_lookup(arg1,(char const *)arg2); vresult = SWIG_From_bool((bool)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_data_type(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_type_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_type", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (pn_type_t)pn_data_type(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_print(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_print", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (int)pn_data_print(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_format(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; char *arg2 = (char *) 0 ; size_t *arg3 = (size_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_format", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_data_format", 2, argv[1] )); } arg2 = (char *)(buf2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_unsigned_int, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "size_t *","pn_data_format", 3, argv[2] )); } arg3 = (size_t *)(argp3); result = (int)pn_data_format(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_data_encode(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; ssize_t result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_encode", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_data_encode", 2, argv[1] )); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_data_encode", 3, argv[2] )); } arg3 = (size_t)(val3); result = (ssize_t)pn_data_encode(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_data_decode(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; ssize_t result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_decode", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_data_decode", 2, argv[1] )); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_data_decode", 3, argv[2] )); } arg3 = (size_t)(val3); result = (ssize_t)pn_data_decode(arg1,(char const *)arg2,arg3); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_list(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_list", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (int)pn_data_put_list(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_map(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_map", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (int)pn_data_put_map(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_array(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; bool arg2 ; pn_type_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_array", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_data_put_array", 2, argv[1] )); } arg2 = (bool)(val2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "pn_type_t","pn_data_put_array", 3, argv[2] )); } arg3 = (pn_type_t)(val3); result = (int)pn_data_put_array(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_described(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_described", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (int)pn_data_put_described(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_null(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_null", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (int)pn_data_put_null(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_bool(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_bool", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_data_put_bool", 2, argv[1] )); } arg2 = (bool)(val2); result = (int)pn_data_put_bool(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_ubyte(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; uint8_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_ubyte", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","pn_data_put_ubyte", 2, argv[1] )); } arg2 = (uint8_t)(val2); result = (int)pn_data_put_ubyte(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_byte(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; int8_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; signed char val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_byte", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); ecode2 = SWIG_AsVal_signed_SS_char(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int8_t","pn_data_put_byte", 2, argv[1] )); } arg2 = (int8_t)(val2); result = (int)pn_data_put_byte(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_ushort(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_ushort", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","pn_data_put_ushort", 2, argv[1] )); } arg2 = (uint16_t)(val2); result = (int)pn_data_put_ushort(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_short(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; int16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; short val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_short", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); ecode2 = SWIG_AsVal_short(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int16_t","pn_data_put_short", 2, argv[1] )); } arg2 = (int16_t)(val2); result = (int)pn_data_put_short(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_uint(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_uint", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","pn_data_put_uint", 2, argv[1] )); } arg2 = (uint32_t)(val2); result = (int)pn_data_put_uint(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_int(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; int32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_int", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); ecode2 = SWIG_AsVal_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int32_t","pn_data_put_int", 2, argv[1] )); } arg2 = (int32_t)(val2); result = (int)pn_data_put_int(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_char(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; pn_char_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_char", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_char_t","pn_data_put_char", 2, argv[1] )); } arg2 = (pn_char_t)(val2); result = (int)pn_data_put_char(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_ulong(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; uint64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_ulong", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","pn_data_put_ulong", 2, argv[1] )); } arg2 = (uint64_t)(val2); result = (int)pn_data_put_ulong(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_long(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; int64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long long val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_long", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int64_t","pn_data_put_long", 2, argv[1] )); } arg2 = (int64_t)(val2); result = (int)pn_data_put_long(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_timestamp(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; pn_timestamp_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long long val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_timestamp", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_timestamp_t","pn_data_put_timestamp", 2, argv[1] )); } arg2 = (pn_timestamp_t)(val2); result = (int)pn_data_put_timestamp(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_float(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_float", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","pn_data_put_float", 2, argv[1] )); } arg2 = (float)(val2); result = (int)pn_data_put_float(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_double(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; double arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_double", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); ecode2 = SWIG_AsVal_double(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","pn_data_put_double", 2, argv[1] )); } arg2 = (double)(val2); result = (int)pn_data_put_double(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_decimal32(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; pn_decimal32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_decimal32", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); { arg2 = FIX2UINT(argv[1]); } result = (int)pn_data_put_decimal32(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_decimal64(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; pn_decimal64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_decimal64", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); { arg2 = NUM2ULONG(argv[1]); } result = (int)pn_data_put_decimal64(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_decimal128(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; pn_decimal128_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_decimal128", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); { int index; for(index = 0; index < 16; index++) { VALUE element = rb_ary_entry(argv[1], index); (&arg2)->bytes[16 - (index + 1)] = FIX2INT(element); } } result = (int)pn_data_put_decimal128(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_uuid(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; pn_uuid_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_uuid", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); { int index; for(index = 0; index < 16; index++) { VALUE element = rb_ary_entry(argv[1], index); (&arg2)->bytes[16 - (index + 1)] = FIX2INT(element); } } result = (int)pn_data_put_uuid(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_binary(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; pn_bytes_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_binary", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); { if (argv[1] == Qnil) { (&arg2)->start = NULL; (&arg2)->size = 0; } else { (&arg2)->start = RSTRING_PTR(argv[1]); if (!(&arg2)->start) { (&arg2)->size = 0; } (&arg2)->size = RSTRING_LEN(argv[1]); } } result = (int)pn_data_put_binary(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_string(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; pn_bytes_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_string", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); { if (argv[1] == Qnil) { (&arg2)->start = NULL; (&arg2)->size = 0; } else { (&arg2)->start = RSTRING_PTR(argv[1]); if (!(&arg2)->start) { (&arg2)->size = 0; } (&arg2)->size = RSTRING_LEN(argv[1]); } } result = (int)pn_data_put_string(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_symbol(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; pn_bytes_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_symbol", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); { if (argv[1] == Qnil) { (&arg2)->start = NULL; (&arg2)->size = 0; } else { (&arg2)->start = RSTRING_PTR(argv[1]); if (!(&arg2)->start) { (&arg2)->size = 0; } (&arg2)->size = RSTRING_LEN(argv[1]); } } result = (int)pn_data_put_symbol(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_put_atom(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; pn_atom_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_atom", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); { if (argv[1] == Qnil) { (&arg2)->type = PN_NULL; } else { switch(TYPE(argv[1])) { case T_TRUE: (&arg2)->type = PN_BOOL; (&arg2)->u.as_bool = true; break; case T_FALSE: (&arg2)->type = PN_BOOL; (&arg2)->u.as_bool = false; break; case T_FLOAT: (&arg2)->type = PN_FLOAT; (&arg2)->u.as_float = NUM2DBL(argv[1]); break; case T_STRING: (&arg2)->type = PN_STRING; (&arg2)->u.as_bytes.start = RSTRING_PTR(argv[1]); if ((&arg2)->u.as_bytes.start) { (&arg2)->u.as_bytes.size = RSTRING_LEN(argv[1]); } else { (&arg2)->u.as_bytes.size = 0; } break; case T_FIXNUM: (&arg2)->type = PN_INT; (&arg2)->u.as_int = FIX2LONG(argv[1]); break; case T_BIGNUM: (&arg2)->type = PN_LONG; (&arg2)->u.as_long = NUM2LL(argv[1]); break; } } } result = (int)pn_data_put_atom(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_list(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_list", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (size_t)pn_data_get_list(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_map(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_map", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (size_t)pn_data_get_map(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_array(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_array", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (size_t)pn_data_get_array(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_is_array_described(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_is_array_described", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (bool)pn_data_is_array_described(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_array_type(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_type_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_array_type", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (pn_type_t)pn_data_get_array_type(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_is_described(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_is_described", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (bool)pn_data_is_described(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_is_null(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_is_null", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (bool)pn_data_is_null(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_bool(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_bool", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (bool)pn_data_get_bool(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_ubyte(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint8_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_ubyte", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (uint8_t)pn_data_get_ubyte(arg1); vresult = SWIG_From_unsigned_SS_char((unsigned char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_byte(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int8_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_byte", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (int8_t)pn_data_get_byte(arg1); vresult = SWIG_From_signed_SS_char((signed char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_ushort(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint16_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_ushort", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (uint16_t)pn_data_get_ushort(arg1); vresult = SWIG_From_unsigned_SS_short((unsigned short)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_short(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int16_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_short", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (int16_t)pn_data_get_short(arg1); vresult = SWIG_From_short((short)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_uint(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint32_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_uint", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (uint32_t)pn_data_get_uint(arg1); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_int(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int32_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_int", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (int32_t)pn_data_get_int(arg1); vresult = SWIG_From_long((long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_char(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_char_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_char", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (pn_char_t)pn_data_get_char(arg1); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_ulong(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_ulong", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (uint64_t)pn_data_get_ulong(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_long(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int64_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_long", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (int64_t)pn_data_get_long(arg1); vresult = SWIG_From_long_SS_long((long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_timestamp(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_timestamp_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_timestamp", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (pn_timestamp_t)pn_data_get_timestamp(arg1); vresult = SWIG_From_long_SS_long((long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_float(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; float result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_float", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (float)pn_data_get_float(arg1); vresult = SWIG_From_float((float)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_double(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; double result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_double", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (double)pn_data_get_double(arg1); vresult = SWIG_From_double((double)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_decimal32(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_decimal32_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_decimal32", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (pn_decimal32_t)pn_data_get_decimal32(arg1); { vresult = ULL2NUM(result); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_decimal64(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_decimal64_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_decimal64", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (pn_decimal64_t)pn_data_get_decimal64(arg1); { vresult = ULL2NUM(result); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_decimal128(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_decimal128_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_decimal128", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = pn_data_get_decimal128(arg1); { int index; vresult = rb_ary_new2(16); for(index = 0; index < 16; index++) { rb_ary_store(vresult, 16 - (index + 1), CHR2FIX((&result)->bytes[index])); } } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_uuid(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_uuid_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_uuid", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = pn_data_get_uuid(arg1); { int index; vresult = rb_ary_new2(16); for(index = 0; index < 16; index++) { rb_ary_store(vresult, 16 - (index + 1), CHR2FIX((&result)->bytes[index])); } } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_binary(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_bytes_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_binary", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = pn_data_get_binary(arg1); { vresult = rb_str_new((&result)->start, (&result)->size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_string(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_bytes_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_string", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = pn_data_get_string(arg1); { vresult = rb_str_new((&result)->start, (&result)->size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_symbol(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_bytes_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_symbol", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = pn_data_get_symbol(arg1); { vresult = rb_str_new((&result)->start, (&result)->size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_bytes(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_bytes_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_bytes", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = pn_data_get_bytes(arg1); { vresult = rb_str_new((&result)->start, (&result)->size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_get_atom(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_atom_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_atom", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = pn_data_get_atom(arg1); { switch((&result)->type) { case PN_NULL: vresult = Qnil; break; case PN_BOOL: vresult = (&result)->u.as_bool ? Qtrue : Qfalse; break; case PN_BYTE: vresult = INT2NUM((&result)->u.as_byte); break; case PN_UBYTE: vresult = UINT2NUM((&result)->u.as_ubyte); break; case PN_SHORT: vresult = INT2NUM((&result)->u.as_short); break; case PN_USHORT: vresult = UINT2NUM((&result)->u.as_ushort); break; case PN_INT: vresult = INT2NUM((&result)->u.as_int); break; case PN_UINT: vresult = UINT2NUM((&result)->u.as_uint); break; case PN_LONG: vresult = LL2NUM((&result)->u.as_long); break; case PN_ULONG: vresult = ULL2NUM((&result)->u.as_ulong); break; case PN_FLOAT: vresult = rb_float_new((&result)->u.as_float); break; case PN_DOUBLE: vresult = rb_float_new((&result)->u.as_double); break; case PN_STRING: vresult = rb_str_new((&result)->u.as_bytes.start, (&result)->u.as_bytes.size); break; } } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_copy(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; pn_data_t *arg2 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_copy", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_copy", 2, argv[1] )); } arg2 = (pn_data_t *)(argp2); result = (int)pn_data_copy(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_append(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; pn_data_t *arg2 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_append", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_append", 2, argv[1] )); } arg2 = (pn_data_t *)(argp2); result = (int)pn_data_append(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_appendn(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; pn_data_t *arg2 = (pn_data_t *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_appendn", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_appendn", 2, argv[1] )); } arg2 = (pn_data_t *)(argp2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","pn_data_appendn", 3, argv[2] )); } arg3 = (int)(val3); result = (int)pn_data_appendn(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_narrow(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_narrow", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); pn_data_narrow(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_widen(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_widen", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); pn_data_widen(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_point(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_handle_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_point", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = pn_data_point(arg1); vresult = SWIG_NewPointerObj((pn_handle_t *)memcpy((pn_handle_t *)malloc(sizeof(pn_handle_t)),&result,sizeof(pn_handle_t)), SWIGTYPE_p_uintptr_t, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_restore(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; pn_handle_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_restore", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); { res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handle_t","pn_data_restore", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_handle_t","pn_data_restore", 2, argv[1])); } else { arg2 = *((pn_handle_t *)(argp2)); } } result = (bool)pn_data_restore(arg1,arg2); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_data_dump(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_dump", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); pn_data_dump(arg1); return Qnil; fail: return Qnil; } /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_struct_pn_transport_t_p_q_const__char__void = {"_p_f_p_struct_pn_transport_t_p_q_const__char__void", "void (*)(struct pn_transport_t *,char const *)|pn_tracer_t", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_void__p_void = {"_p_f_p_void__p_void", "void *(*)(void *)|pn_iterator_next_t", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_void__uintptr_t = {"_p_f_p_void__uintptr_t", "uintptr_t (*)(void *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_void__void = {"_p_f_p_void__void", "void (*)(void *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_void_p_struct_pn_string_t__int = {"_p_f_p_void_p_struct_pn_string_t__int", "int (*)(void *,struct pn_string_t *)|int (*)(void *,pn_string_t *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_void_p_void__intptr_t = {"_p_f_p_void_p_void__intptr_t", "intptr_t (*)(void *,void *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_int = {"_p_int", "int *|ssize_t *|pn_state_t *|pn_trace_t *|pn_socket_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_intptr_t = {"_p_intptr_t", "intptr_t *|pn_shandle_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_long = {"_p_long", "int32_t *|long *|pn_sequence_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_long_long = {"_p_long_long", "int64_t *|long long *|pn_tracker_t *|pn_timestamp_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_pn_activate_criteria_t = {"_p_pn_activate_criteria_t", "enum pn_activate_criteria_t *|pn_activate_criteria_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_atom_t = {"_p_pn_atom_t", "pn_atom_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_atom_t_u = {"_p_pn_atom_t_u", "pn_atom_t_u *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_bytes_t = {"_p_pn_bytes_t", "pn_bytes_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_class_t = {"_p_pn_class_t", "pn_class_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_collector_t = {"_p_pn_collector_t", "struct pn_collector_t *|pn_collector_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_condition_t = {"_p_pn_condition_t", "struct pn_condition_t *|pn_condition_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_connection_t = {"_p_pn_connection_t", "struct pn_connection_t *|pn_connection_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_connector_t = {"_p_pn_connector_t", "struct pn_connector_t *|pn_connector_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_data_t = {"_p_pn_data_t", "struct pn_data_t *|pn_data_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_decimal128_t = {"_p_pn_decimal128_t", "pn_decimal128_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_delivery_t = {"_p_pn_delivery_t", "struct pn_delivery_t *|pn_delivery_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_delivery_tag_t = {"_p_pn_delivery_tag_t", "struct pn_delivery_tag_t *|pn_delivery_tag_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_disposition_t = {"_p_pn_disposition_t", "struct pn_disposition_t *|pn_disposition_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_distribution_mode_t = {"_p_pn_distribution_mode_t", "enum pn_distribution_mode_t *|pn_distribution_mode_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_driver_t = {"_p_pn_driver_t", "struct pn_driver_t *|pn_driver_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_durability_t = {"_p_pn_durability_t", "enum pn_durability_t *|pn_durability_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_error_t = {"_p_pn_error_t", "struct pn_error_t *|pn_error_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_event_category_t = {"_p_pn_event_category_t", "enum pn_event_category_t *|pn_event_category_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_event_t = {"_p_pn_event_t", "struct pn_event_t *|pn_event_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_event_type_t = {"_p_pn_event_type_t", "enum pn_event_type_t *|pn_event_type_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_expiry_policy_t = {"_p_pn_expiry_policy_t", "enum pn_expiry_policy_t *|pn_expiry_policy_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_format_t = {"_p_pn_format_t", "enum pn_format_t *|pn_format_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_hash_t = {"_p_pn_hash_t", "struct pn_hash_t *|pn_hash_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_io_t = {"_p_pn_io_t", "struct pn_io_t *|pn_io_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_iterator_t = {"_p_pn_iterator_t", "pn_selectables_t *|struct pn_iterator_t *|pn_iterator_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_link_t = {"_p_pn_link_t", "struct pn_link_t *|pn_link_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_list_t = {"_p_pn_list_t", "struct pn_list_t *|pn_list_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_listener_t = {"_p_pn_listener_t", "struct pn_listener_t *|pn_listener_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_map_t = {"_p_pn_map_t", "struct pn_map_t *|pn_map_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_message_t = {"_p_pn_message_t", "struct pn_message_t *|pn_message_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_messenger_t = {"_p_pn_messenger_t", "struct pn_messenger_t *|pn_messenger_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_rcv_settle_mode_t = {"_p_pn_rcv_settle_mode_t", "enum pn_rcv_settle_mode_t *|pn_rcv_settle_mode_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_sasl_outcome_t = {"_p_pn_sasl_outcome_t", "enum pn_sasl_outcome_t *|pn_sasl_outcome_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_sasl_state_t = {"_p_pn_sasl_state_t", "enum pn_sasl_state_t *|pn_sasl_state_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_sasl_t = {"_p_pn_sasl_t", "struct pn_sasl_t *|pn_sasl_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_selectable_t = {"_p_pn_selectable_t", "struct pn_selectable_t *|pn_selectable_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_session_t = {"_p_pn_session_t", "struct pn_session_t *|pn_session_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_snd_settle_mode_t = {"_p_pn_snd_settle_mode_t", "enum pn_snd_settle_mode_t *|pn_snd_settle_mode_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_ssl_domain_t = {"_p_pn_ssl_domain_t", "struct pn_ssl_domain_t *|pn_ssl_domain_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_ssl_mode_t = {"_p_pn_ssl_mode_t", "enum pn_ssl_mode_t *|pn_ssl_mode_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_ssl_resume_status_t = {"_p_pn_ssl_resume_status_t", "enum pn_ssl_resume_status_t *|pn_ssl_resume_status_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_ssl_t = {"_p_pn_ssl_t", "struct pn_ssl_t *|pn_ssl_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_ssl_verify_mode_t = {"_p_pn_ssl_verify_mode_t", "enum pn_ssl_verify_mode_t *|pn_ssl_verify_mode_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_status_t = {"_p_pn_status_t", "enum pn_status_t *|pn_status_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_string_t = {"_p_pn_string_t", "struct pn_string_t *|pn_string_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_subscription_t = {"_p_pn_subscription_t", "struct pn_subscription_t *|pn_subscription_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_terminus_t = {"_p_pn_terminus_t", "struct pn_terminus_t *|pn_terminus_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_terminus_type_t = {"_p_pn_terminus_type_t", "enum pn_terminus_type_t *|pn_terminus_type_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_transport_t = {"_p_pn_transport_t", "struct pn_transport_t *|pn_transport_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_type_t = {"_p_pn_type_t", "enum pn_type_t *|pn_type_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_uuid_t = {"_p_pn_uuid_t", "pn_uuid_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_short = {"_p_short", "short *|int16_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|int8_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_uintptr_t = {"_p_uintptr_t", "uintptr_t *|pn_handle_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uint8_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "size_t *|unsigned int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "pn_seconds_t *|pn_decimal32_t *|uint32_t *|unsigned long *|pn_millis_t *|pn_char_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "pn_decimal64_t *|uint64_t *|unsigned long long *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|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 *swig_type_initial[] = { &_swigt__p_char, &_swigt__p_f_p_struct_pn_transport_t_p_q_const__char__void, &_swigt__p_f_p_void__p_void, &_swigt__p_f_p_void__uintptr_t, &_swigt__p_f_p_void__void, &_swigt__p_f_p_void_p_struct_pn_string_t__int, &_swigt__p_f_p_void_p_void__intptr_t, &_swigt__p_int, &_swigt__p_intptr_t, &_swigt__p_long, &_swigt__p_long_long, &_swigt__p_p_char, &_swigt__p_pn_activate_criteria_t, &_swigt__p_pn_atom_t, &_swigt__p_pn_atom_t_u, &_swigt__p_pn_bytes_t, &_swigt__p_pn_class_t, &_swigt__p_pn_collector_t, &_swigt__p_pn_condition_t, &_swigt__p_pn_connection_t, &_swigt__p_pn_connector_t, &_swigt__p_pn_data_t, &_swigt__p_pn_decimal128_t, &_swigt__p_pn_delivery_t, &_swigt__p_pn_delivery_tag_t, &_swigt__p_pn_disposition_t, &_swigt__p_pn_distribution_mode_t, &_swigt__p_pn_driver_t, &_swigt__p_pn_durability_t, &_swigt__p_pn_error_t, &_swigt__p_pn_event_category_t, &_swigt__p_pn_event_t, &_swigt__p_pn_event_type_t, &_swigt__p_pn_expiry_policy_t, &_swigt__p_pn_format_t, &_swigt__p_pn_hash_t, &_swigt__p_pn_io_t, &_swigt__p_pn_iterator_t, &_swigt__p_pn_link_t, &_swigt__p_pn_list_t, &_swigt__p_pn_listener_t, &_swigt__p_pn_map_t, &_swigt__p_pn_message_t, &_swigt__p_pn_messenger_t, &_swigt__p_pn_rcv_settle_mode_t, &_swigt__p_pn_sasl_outcome_t, &_swigt__p_pn_sasl_state_t, &_swigt__p_pn_sasl_t, &_swigt__p_pn_selectable_t, &_swigt__p_pn_session_t, &_swigt__p_pn_snd_settle_mode_t, &_swigt__p_pn_ssl_domain_t, &_swigt__p_pn_ssl_mode_t, &_swigt__p_pn_ssl_resume_status_t, &_swigt__p_pn_ssl_t, &_swigt__p_pn_ssl_verify_mode_t, &_swigt__p_pn_status_t, &_swigt__p_pn_string_t, &_swigt__p_pn_subscription_t, &_swigt__p_pn_terminus_t, &_swigt__p_pn_terminus_type_t, &_swigt__p_pn_transport_t, &_swigt__p_pn_type_t, &_swigt__p_pn_uuid_t, &_swigt__p_short, &_swigt__p_signed_char, &_swigt__p_uintptr_t, &_swigt__p_unsigned_char, &_swigt__p_unsigned_int, &_swigt__p_unsigned_long, &_swigt__p_unsigned_long_long, &_swigt__p_unsigned_short, &_swigt__p_void, }; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_struct_pn_transport_t_p_q_const__char__void[] = { {&_swigt__p_f_p_struct_pn_transport_t_p_q_const__char__void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_void__p_void[] = { {&_swigt__p_f_p_void__p_void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_void__uintptr_t[] = { {&_swigt__p_f_p_void__uintptr_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_void__void[] = { {&_swigt__p_f_p_void__void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_void_p_struct_pn_string_t__int[] = { {&_swigt__p_f_p_void_p_struct_pn_string_t__int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_void_p_void__intptr_t[] = { {&_swigt__p_f_p_void_p_void__intptr_t, 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_intptr_t[] = { {&_swigt__p_intptr_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 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_pn_activate_criteria_t[] = { {&_swigt__p_pn_activate_criteria_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_atom_t[] = { {&_swigt__p_pn_atom_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_atom_t_u[] = { {&_swigt__p_pn_atom_t_u, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_bytes_t[] = { {&_swigt__p_pn_bytes_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_class_t[] = { {&_swigt__p_pn_class_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_collector_t[] = { {&_swigt__p_pn_collector_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_condition_t[] = { {&_swigt__p_pn_condition_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_connection_t[] = { {&_swigt__p_pn_connection_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_connector_t[] = { {&_swigt__p_pn_connector_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_data_t[] = { {&_swigt__p_pn_data_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_decimal128_t[] = { {&_swigt__p_pn_decimal128_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_delivery_t[] = { {&_swigt__p_pn_delivery_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_delivery_tag_t[] = { {&_swigt__p_pn_delivery_tag_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_disposition_t[] = { {&_swigt__p_pn_disposition_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_distribution_mode_t[] = { {&_swigt__p_pn_distribution_mode_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_driver_t[] = { {&_swigt__p_pn_driver_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_durability_t[] = { {&_swigt__p_pn_durability_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_error_t[] = { {&_swigt__p_pn_error_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_event_category_t[] = { {&_swigt__p_pn_event_category_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_event_t[] = { {&_swigt__p_pn_event_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_event_type_t[] = { {&_swigt__p_pn_event_type_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_expiry_policy_t[] = { {&_swigt__p_pn_expiry_policy_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_format_t[] = { {&_swigt__p_pn_format_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_hash_t[] = { {&_swigt__p_pn_hash_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_io_t[] = { {&_swigt__p_pn_io_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_iterator_t[] = { {&_swigt__p_pn_iterator_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_link_t[] = { {&_swigt__p_pn_link_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_list_t[] = { {&_swigt__p_pn_list_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_listener_t[] = { {&_swigt__p_pn_listener_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_map_t[] = { {&_swigt__p_pn_map_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_message_t[] = { {&_swigt__p_pn_message_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_messenger_t[] = { {&_swigt__p_pn_messenger_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_rcv_settle_mode_t[] = { {&_swigt__p_pn_rcv_settle_mode_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_sasl_outcome_t[] = { {&_swigt__p_pn_sasl_outcome_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_sasl_state_t[] = { {&_swigt__p_pn_sasl_state_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_sasl_t[] = { {&_swigt__p_pn_sasl_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_selectable_t[] = { {&_swigt__p_pn_selectable_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_session_t[] = { {&_swigt__p_pn_session_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_snd_settle_mode_t[] = { {&_swigt__p_pn_snd_settle_mode_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_ssl_domain_t[] = { {&_swigt__p_pn_ssl_domain_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_ssl_mode_t[] = { {&_swigt__p_pn_ssl_mode_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_ssl_resume_status_t[] = { {&_swigt__p_pn_ssl_resume_status_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_ssl_t[] = { {&_swigt__p_pn_ssl_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_ssl_verify_mode_t[] = { {&_swigt__p_pn_ssl_verify_mode_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_status_t[] = { {&_swigt__p_pn_status_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_string_t[] = { {&_swigt__p_pn_string_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_subscription_t[] = { {&_swigt__p_pn_subscription_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_terminus_t[] = { {&_swigt__p_pn_terminus_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_terminus_type_t[] = { {&_swigt__p_pn_terminus_type_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_transport_t[] = { {&_swigt__p_pn_transport_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_type_t[] = { {&_swigt__p_pn_type_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_uuid_t[] = { {&_swigt__p_pn_uuid_t, 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_uintptr_t[] = { {&_swigt__p_uintptr_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[] = { {&_swigt__p_unsigned_long, 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 *swig_cast_initial[] = { _swigc__p_char, _swigc__p_f_p_struct_pn_transport_t_p_q_const__char__void, _swigc__p_f_p_void__p_void, _swigc__p_f_p_void__uintptr_t, _swigc__p_f_p_void__void, _swigc__p_f_p_void_p_struct_pn_string_t__int, _swigc__p_f_p_void_p_void__intptr_t, _swigc__p_int, _swigc__p_intptr_t, _swigc__p_long, _swigc__p_long_long, _swigc__p_p_char, _swigc__p_pn_activate_criteria_t, _swigc__p_pn_atom_t, _swigc__p_pn_atom_t_u, _swigc__p_pn_bytes_t, _swigc__p_pn_class_t, _swigc__p_pn_collector_t, _swigc__p_pn_condition_t, _swigc__p_pn_connection_t, _swigc__p_pn_connector_t, _swigc__p_pn_data_t, _swigc__p_pn_decimal128_t, _swigc__p_pn_delivery_t, _swigc__p_pn_delivery_tag_t, _swigc__p_pn_disposition_t, _swigc__p_pn_distribution_mode_t, _swigc__p_pn_driver_t, _swigc__p_pn_durability_t, _swigc__p_pn_error_t, _swigc__p_pn_event_category_t, _swigc__p_pn_event_t, _swigc__p_pn_event_type_t, _swigc__p_pn_expiry_policy_t, _swigc__p_pn_format_t, _swigc__p_pn_hash_t, _swigc__p_pn_io_t, _swigc__p_pn_iterator_t, _swigc__p_pn_link_t, _swigc__p_pn_list_t, _swigc__p_pn_listener_t, _swigc__p_pn_map_t, _swigc__p_pn_message_t, _swigc__p_pn_messenger_t, _swigc__p_pn_rcv_settle_mode_t, _swigc__p_pn_sasl_outcome_t, _swigc__p_pn_sasl_state_t, _swigc__p_pn_sasl_t, _swigc__p_pn_selectable_t, _swigc__p_pn_session_t, _swigc__p_pn_snd_settle_mode_t, _swigc__p_pn_ssl_domain_t, _swigc__p_pn_ssl_mode_t, _swigc__p_pn_ssl_resume_status_t, _swigc__p_pn_ssl_t, _swigc__p_pn_ssl_verify_mode_t, _swigc__p_pn_status_t, _swigc__p_pn_string_t, _swigc__p_pn_subscription_t, _swigc__p_pn_terminus_t, _swigc__p_pn_terminus_type_t, _swigc__p_pn_transport_t, _swigc__p_pn_type_t, _swigc__p_pn_uuid_t, _swigc__p_short, _swigc__p_signed_char, _swigc__p_uintptr_t, _swigc__p_unsigned_char, _swigc__p_unsigned_int, _swigc__p_unsigned_long, _swigc__p_unsigned_long_long, _swigc__p_unsigned_short, _swigc__p_void, }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ /* ----------------------------------------------------------------------------- * 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 staticly to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * 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 SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; int found, 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); module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ found=0; iter=module_head; do { if (iter==&swig_module) { found=1; break; } iter=iter->next; } while (iter!= module_head); /* if the is found in the list, then all is done and we may leave */ if (found) return; /* otherwise we must add out 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 */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); #endif for (i = 0; i < swig_module.size; ++i) { swig_type_info *type = 0; swig_type_info *ret; swig_cast_info *cast; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); #endif /* 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 */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found type %s\n", type->name); #endif if (swig_module.type_initial[i]->clientdata) { type->clientdata = swig_module.type_initial[i]->clientdata; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); #endif } } 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; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); #endif if (swig_module.next != &swig_module) { ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); #ifdef SWIGRUNTIME_DEBUG if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); #endif } if (ret) { if (type == swig_module.type_initial[i]) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: skip old type %s\n", ret->name); #endif cast->type = ret; ret = 0; } else { /* Check for casting already in the list */ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); #ifdef SWIGRUNTIME_DEBUG if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); #endif if (!ocast) ret = 0; } } if (!ret) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); #endif if (type->cast) { type->cast->prev = cast; cast->next = type->cast; } type->cast = cast; } cast++; } /* Set entry in modules->types array equal to the type */ swig_module.types[i] = type; } swig_module.types[i] = 0; #ifdef SWIGRUNTIME_DEBUG 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 %d %s\n", 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"); #endif } /* This function will propagate the clientdata field of type to * 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); } equiv = equiv->next; } } } } #ifdef __cplusplus #if 0 { /* c-mode */ #endif } #endif /* */ #ifdef __cplusplus extern "C" #endif SWIGEXPORT void Init_cproton(void) { size_t i; SWIG_InitRuntime(); mCproton = rb_define_module("Cproton"); SWIG_InitializeModule(0); for (i = 0; i < swig_module.size; i++) { SWIG_define_class(swig_module.types[i]); } SWIG_RubyInitializeTrackings(); rb_define_module_function(mCproton, "pn_message_load", _wrap_pn_message_load, -1); rb_define_module_function(mCproton, "pn_message_load_data", _wrap_pn_message_load_data, -1); rb_define_module_function(mCproton, "pn_message_load_text", _wrap_pn_message_load_text, -1); rb_define_module_function(mCproton, "pn_message_load_amqp", _wrap_pn_message_load_amqp, -1); rb_define_module_function(mCproton, "pn_message_load_json", _wrap_pn_message_load_json, -1); rb_define_module_function(mCproton, "pn_message_encode", _wrap_pn_message_encode, -1); rb_define_module_function(mCproton, "pn_message_save", _wrap_pn_message_save, -1); rb_define_module_function(mCproton, "pn_message_save_data", _wrap_pn_message_save_data, -1); rb_define_module_function(mCproton, "pn_message_save_text", _wrap_pn_message_save_text, -1); rb_define_module_function(mCproton, "pn_message_save_amqp", _wrap_pn_message_save_amqp, -1); rb_define_module_function(mCproton, "pn_message_save_json", _wrap_pn_message_save_json, -1); rb_define_module_function(mCproton, "pn_link_send", _wrap_pn_link_send, -1); rb_define_module_function(mCproton, "pn_link_recv", _wrap_pn_link_recv, -1); rb_define_module_function(mCproton, "pn_transport_input", _wrap_pn_transport_input, -1); rb_define_module_function(mCproton, "pn_transport_output", _wrap_pn_transport_output, -1); rb_define_module_function(mCproton, "pn_delivery", _wrap_pn_delivery, -1); rb_define_module_function(mCproton, "pn_delivery_tag", _wrap_pn_delivery_tag, -1); rb_define_module_function(mCproton, "pn_message_data", _wrap_pn_message_data, -1); rb_define_module_function(mCproton, "pn_ssl_get_cipher_name", _wrap_pn_ssl_get_cipher_name, -1); rb_define_module_function(mCproton, "pn_ssl_get_protocol_name", _wrap_pn_ssl_get_protocol_name, -1); rb_define_const(mCproton, "PROTON_IMPORT_EXPORT_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1))); SwigClassPn_decimal128_t.klass = rb_define_class_under(mCproton, "Pn_decimal128_t", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_pn_decimal128_t, (void *) &SwigClassPn_decimal128_t); rb_define_alloc_func(SwigClassPn_decimal128_t.klass, _wrap_pn_decimal128_t_allocate); rb_define_method(SwigClassPn_decimal128_t.klass, "initialize", _wrap_new_pn_decimal128_t, -1); rb_define_method(SwigClassPn_decimal128_t.klass, "bytes=", _wrap_pn_decimal128_t_bytes_set, -1); rb_define_method(SwigClassPn_decimal128_t.klass, "bytes", _wrap_pn_decimal128_t_bytes_get, -1); SwigClassPn_decimal128_t.mark = 0; SwigClassPn_decimal128_t.destroy = (void (*)(void *)) free_pn_decimal128_t; SwigClassPn_decimal128_t.trackObjects = 0; SwigClassPn_uuid_t.klass = rb_define_class_under(mCproton, "Pn_uuid_t", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_pn_uuid_t, (void *) &SwigClassPn_uuid_t); rb_define_alloc_func(SwigClassPn_uuid_t.klass, _wrap_pn_uuid_t_allocate); rb_define_method(SwigClassPn_uuid_t.klass, "initialize", _wrap_new_pn_uuid_t, -1); rb_define_method(SwigClassPn_uuid_t.klass, "bytes=", _wrap_pn_uuid_t_bytes_set, -1); rb_define_method(SwigClassPn_uuid_t.klass, "bytes", _wrap_pn_uuid_t_bytes_get, -1); SwigClassPn_uuid_t.mark = 0; SwigClassPn_uuid_t.destroy = (void (*)(void *)) free_pn_uuid_t; SwigClassPn_uuid_t.trackObjects = 0; SwigClassPn_bytes_t.klass = rb_define_class_under(mCproton, "Pn_bytes_t", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_pn_bytes_t, (void *) &SwigClassPn_bytes_t); rb_define_alloc_func(SwigClassPn_bytes_t.klass, _wrap_pn_bytes_t_allocate); rb_define_method(SwigClassPn_bytes_t.klass, "initialize", _wrap_new_pn_bytes_t, -1); rb_define_method(SwigClassPn_bytes_t.klass, "size=", _wrap_pn_bytes_t_size_set, -1); rb_define_method(SwigClassPn_bytes_t.klass, "size", _wrap_pn_bytes_t_size_get, -1); rb_define_method(SwigClassPn_bytes_t.klass, "start=", _wrap_pn_bytes_t_start_set, -1); rb_define_method(SwigClassPn_bytes_t.klass, "start", _wrap_pn_bytes_t_start_get, -1); SwigClassPn_bytes_t.mark = 0; SwigClassPn_bytes_t.destroy = (void (*)(void *)) free_pn_bytes_t; SwigClassPn_bytes_t.trackObjects = 0; rb_define_module_function(mCproton, "pn_bytes", _wrap_pn_bytes, -1); rb_define_module_function(mCproton, "pn_bytes_dup", _wrap_pn_bytes_dup, -1); rb_define_const(mCproton, "PROTON_OBJECT_H", SWIG_From_int((int)(1))); SwigClassPn_class_t.klass = rb_define_class_under(mCproton, "Pn_class_t", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_pn_class_t, (void *) &SwigClassPn_class_t); rb_define_alloc_func(SwigClassPn_class_t.klass, _wrap_pn_class_t_allocate); rb_define_method(SwigClassPn_class_t.klass, "initialize", _wrap_new_pn_class_t, -1); rb_define_method(SwigClassPn_class_t.klass, "initialize=", _wrap_pn_class_t_initialize_set, -1); rb_define_method(SwigClassPn_class_t.klass, "initialize", _wrap_pn_class_t_initialize_get, -1); rb_define_method(SwigClassPn_class_t.klass, "finalize=", _wrap_pn_class_t_finalize_set, -1); rb_define_method(SwigClassPn_class_t.klass, "finalize", _wrap_pn_class_t_finalize_get, -1); rb_define_method(SwigClassPn_class_t.klass, "hashcode=", _wrap_pn_class_t_hashcode_set, -1); rb_define_method(SwigClassPn_class_t.klass, "hashcode", _wrap_pn_class_t_hashcode_get, -1); rb_define_method(SwigClassPn_class_t.klass, "compare=", _wrap_pn_class_t_compare_set, -1); rb_define_method(SwigClassPn_class_t.klass, "compare", _wrap_pn_class_t_compare_get, -1); rb_define_method(SwigClassPn_class_t.klass, "inspect=", _wrap_pn_class_t_inspect_set, -1); rb_define_method(SwigClassPn_class_t.klass, "inspect", _wrap_pn_class_t_inspect_get, -1); SwigClassPn_class_t.mark = 0; SwigClassPn_class_t.destroy = (void (*)(void *)) free_pn_class_t; SwigClassPn_class_t.trackObjects = 0; rb_define_module_function(mCproton, "pn_new", _wrap_pn_new, -1); rb_define_module_function(mCproton, "pn_initialize", _wrap_pn_initialize, -1); rb_define_module_function(mCproton, "pn_incref", _wrap_pn_incref, -1); rb_define_module_function(mCproton, "pn_decref", _wrap_pn_decref, -1); rb_define_module_function(mCproton, "pn_refcount", _wrap_pn_refcount, -1); rb_define_module_function(mCproton, "pn_finalize", _wrap_pn_finalize, -1); rb_define_module_function(mCproton, "pn_free", _wrap_pn_free, -1); rb_define_module_function(mCproton, "pn_class", _wrap_pn_class, -1); rb_define_module_function(mCproton, "pn_hashcode", _wrap_pn_hashcode, -1); rb_define_module_function(mCproton, "pn_compare", _wrap_pn_compare, -1); rb_define_module_function(mCproton, "pn_equals", _wrap_pn_equals, -1); rb_define_module_function(mCproton, "pn_inspect", _wrap_pn_inspect, -1); rb_define_const(mCproton, "PN_REFCOUNT", SWIG_From_int((int)((0x1)))); rb_define_module_function(mCproton, "pn_list", _wrap_pn_list, -1); rb_define_module_function(mCproton, "pn_list_size", _wrap_pn_list_size, -1); rb_define_module_function(mCproton, "pn_list_get", _wrap_pn_list_get, -1); rb_define_module_function(mCproton, "pn_list_set", _wrap_pn_list_set, -1); rb_define_module_function(mCproton, "pn_list_add", _wrap_pn_list_add, -1); rb_define_module_function(mCproton, "pn_list_index", _wrap_pn_list_index, -1); rb_define_module_function(mCproton, "pn_list_remove", _wrap_pn_list_remove, -1); rb_define_module_function(mCproton, "pn_list_del", _wrap_pn_list_del, -1); rb_define_module_function(mCproton, "pn_list_clear", _wrap_pn_list_clear, -1); rb_define_module_function(mCproton, "pn_list_iterator", _wrap_pn_list_iterator, -1); rb_define_const(mCproton, "PN_REFCOUNT_KEY", SWIG_From_int((int)((0x2)))); rb_define_const(mCproton, "PN_REFCOUNT_VALUE", SWIG_From_int((int)((0x4)))); rb_define_module_function(mCproton, "pn_map", _wrap_pn_map, -1); rb_define_module_function(mCproton, "pn_map_size", _wrap_pn_map_size, -1); rb_define_module_function(mCproton, "pn_map_put", _wrap_pn_map_put, -1); rb_define_module_function(mCproton, "pn_map_get", _wrap_pn_map_get, -1); rb_define_module_function(mCproton, "pn_map_del", _wrap_pn_map_del, -1); rb_define_module_function(mCproton, "pn_map_head", _wrap_pn_map_head, -1); rb_define_module_function(mCproton, "pn_map_next", _wrap_pn_map_next, -1); rb_define_module_function(mCproton, "pn_map_key", _wrap_pn_map_key, -1); rb_define_module_function(mCproton, "pn_map_value", _wrap_pn_map_value, -1); rb_define_module_function(mCproton, "pn_hash", _wrap_pn_hash, -1); rb_define_module_function(mCproton, "pn_hash_size", _wrap_pn_hash_size, -1); rb_define_module_function(mCproton, "pn_hash_put", _wrap_pn_hash_put, -1); rb_define_module_function(mCproton, "pn_hash_get", _wrap_pn_hash_get, -1); rb_define_module_function(mCproton, "pn_hash_del", _wrap_pn_hash_del, -1); rb_define_module_function(mCproton, "pn_hash_head", _wrap_pn_hash_head, -1); rb_define_module_function(mCproton, "pn_hash_next", _wrap_pn_hash_next, -1); rb_define_module_function(mCproton, "pn_hash_key", _wrap_pn_hash_key, -1); rb_define_module_function(mCproton, "pn_hash_value", _wrap_pn_hash_value, -1); rb_define_module_function(mCproton, "pn_string", _wrap_pn_string, -1); rb_define_module_function(mCproton, "pn_stringn", _wrap_pn_stringn, -1); rb_define_module_function(mCproton, "pn_string_get", _wrap_pn_string_get, -1); rb_define_module_function(mCproton, "pn_string_size", _wrap_pn_string_size, -1); rb_define_module_function(mCproton, "pn_string_set", _wrap_pn_string_set, -1); rb_define_module_function(mCproton, "pn_string_setn", _wrap_pn_string_setn, -1); rb_define_module_function(mCproton, "pn_string_put", _wrap_pn_string_put, -1); rb_define_module_function(mCproton, "pn_string_clear", _wrap_pn_string_clear, -1); rb_define_module_function(mCproton, "pn_string_format", _wrap_pn_string_format, -1); rb_define_module_function(mCproton, "pn_string_addf", _wrap_pn_string_addf, -1); rb_define_module_function(mCproton, "pn_string_grow", _wrap_pn_string_grow, -1); rb_define_module_function(mCproton, "pn_string_buffer", _wrap_pn_string_buffer, -1); rb_define_module_function(mCproton, "pn_string_capacity", _wrap_pn_string_capacity, -1); rb_define_module_function(mCproton, "pn_string_resize", _wrap_pn_string_resize, -1); rb_define_module_function(mCproton, "pn_string_copy", _wrap_pn_string_copy, -1); rb_define_module_function(mCproton, "pn_iterator", _wrap_pn_iterator, -1); rb_define_module_function(mCproton, "pn_iterator_start", _wrap_pn_iterator_start, -1); rb_define_module_function(mCproton, "pn_iterator_next", _wrap_pn_iterator_next, -1); rb_define_const(mCproton, "PROTON_ERROR_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_EOS", SWIG_From_int((int)((-1)))); rb_define_const(mCproton, "PN_ERR", SWIG_From_int((int)((-2)))); rb_define_const(mCproton, "PN_OVERFLOW", SWIG_From_int((int)((-3)))); rb_define_const(mCproton, "PN_UNDERFLOW", SWIG_From_int((int)((-4)))); rb_define_const(mCproton, "PN_STATE_ERR", SWIG_From_int((int)((-5)))); rb_define_const(mCproton, "PN_ARG_ERR", SWIG_From_int((int)((-6)))); rb_define_const(mCproton, "PN_TIMEOUT", SWIG_From_int((int)((-7)))); rb_define_const(mCproton, "PN_INTR", SWIG_From_int((int)((-8)))); rb_define_const(mCproton, "PN_INPROGRESS", SWIG_From_int((int)((-9)))); rb_define_module_function(mCproton, "pn_code", _wrap_pn_code, -1); rb_define_module_function(mCproton, "pn_error", _wrap_pn_error, -1); rb_define_module_function(mCproton, "pn_error_free", _wrap_pn_error_free, -1); rb_define_module_function(mCproton, "pn_error_clear", _wrap_pn_error_clear, -1); rb_define_module_function(mCproton, "pn_error_set", _wrap_pn_error_set, -1); rb_define_module_function(mCproton, "pn_error_code", _wrap_pn_error_code, -1); rb_define_module_function(mCproton, "pn_error_text", _wrap_pn_error_text, -1); rb_define_module_function(mCproton, "pn_error_copy", _wrap_pn_error_copy, -1); rb_define_const(mCproton, "PROTON_CONDITION_H", SWIG_From_int((int)(1))); rb_define_module_function(mCproton, "pn_condition_is_set", _wrap_pn_condition_is_set, -1); rb_define_module_function(mCproton, "pn_condition_clear", _wrap_pn_condition_clear, -1); rb_define_module_function(mCproton, "pn_condition_get_name", _wrap_pn_condition_get_name, -1); rb_define_module_function(mCproton, "pn_condition_set_name", _wrap_pn_condition_set_name, -1); rb_define_module_function(mCproton, "pn_condition_get_description", _wrap_pn_condition_get_description, -1); rb_define_module_function(mCproton, "pn_condition_set_description", _wrap_pn_condition_set_description, -1); rb_define_module_function(mCproton, "pn_condition_info", _wrap_pn_condition_info, -1); rb_define_module_function(mCproton, "pn_condition_is_redirect", _wrap_pn_condition_is_redirect, -1); rb_define_module_function(mCproton, "pn_condition_redirect_host", _wrap_pn_condition_redirect_host, -1); rb_define_module_function(mCproton, "pn_condition_redirect_port", _wrap_pn_condition_redirect_port, -1); rb_define_const(mCproton, "PROTON_CONNECTION_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_LOCAL_UNINIT", SWIG_From_int((int)((1)))); rb_define_const(mCproton, "PN_LOCAL_ACTIVE", SWIG_From_int((int)((2)))); rb_define_const(mCproton, "PN_LOCAL_CLOSED", SWIG_From_int((int)((4)))); rb_define_const(mCproton, "PN_REMOTE_UNINIT", SWIG_From_int((int)((8)))); rb_define_const(mCproton, "PN_REMOTE_ACTIVE", SWIG_From_int((int)((16)))); rb_define_const(mCproton, "PN_REMOTE_CLOSED", SWIG_From_int((int)((32)))); rb_define_const(mCproton, "PN_LOCAL_MASK", SWIG_From_int((int)(((1)|(2)|(4))))); rb_define_const(mCproton, "PN_REMOTE_MASK", SWIG_From_int((int)(((8)|(16)|(32))))); rb_define_module_function(mCproton, "pn_connection", _wrap_pn_connection, -1); rb_define_module_function(mCproton, "pn_connection_free", _wrap_pn_connection_free, -1); rb_define_module_function(mCproton, "pn_connection_error", _wrap_pn_connection_error, -1); rb_define_module_function(mCproton, "pn_connection_collect", _wrap_pn_connection_collect, -1); rb_define_module_function(mCproton, "pn_connection_get_context", _wrap_pn_connection_get_context, -1); rb_define_module_function(mCproton, "pn_connection_set_context", _wrap_pn_connection_set_context, -1); rb_define_module_function(mCproton, "pn_connection_state", _wrap_pn_connection_state, -1); rb_define_module_function(mCproton, "pn_connection_open", _wrap_pn_connection_open, -1); rb_define_module_function(mCproton, "pn_connection_close", _wrap_pn_connection_close, -1); rb_define_module_function(mCproton, "pn_connection_reset", _wrap_pn_connection_reset, -1); rb_define_module_function(mCproton, "pn_connection_condition", _wrap_pn_connection_condition, -1); rb_define_module_function(mCproton, "pn_connection_remote_condition", _wrap_pn_connection_remote_condition, -1); rb_define_module_function(mCproton, "pn_connection_get_container", _wrap_pn_connection_get_container, -1); rb_define_module_function(mCproton, "pn_connection_set_container", _wrap_pn_connection_set_container, -1); rb_define_module_function(mCproton, "pn_connection_get_hostname", _wrap_pn_connection_get_hostname, -1); rb_define_module_function(mCproton, "pn_connection_set_hostname", _wrap_pn_connection_set_hostname, -1); rb_define_module_function(mCproton, "pn_connection_remote_container", _wrap_pn_connection_remote_container, -1); rb_define_module_function(mCproton, "pn_connection_remote_hostname", _wrap_pn_connection_remote_hostname, -1); rb_define_module_function(mCproton, "pn_connection_offered_capabilities", _wrap_pn_connection_offered_capabilities, -1); rb_define_module_function(mCproton, "pn_connection_desired_capabilities", _wrap_pn_connection_desired_capabilities, -1); rb_define_module_function(mCproton, "pn_connection_properties", _wrap_pn_connection_properties, -1); rb_define_module_function(mCproton, "pn_connection_remote_offered_capabilities", _wrap_pn_connection_remote_offered_capabilities, -1); rb_define_module_function(mCproton, "pn_connection_remote_desired_capabilities", _wrap_pn_connection_remote_desired_capabilities, -1); rb_define_module_function(mCproton, "pn_connection_remote_properties", _wrap_pn_connection_remote_properties, -1); rb_define_module_function(mCproton, "pn_connection_transport", _wrap_pn_connection_transport, -1); rb_define_const(mCproton, "PROTON_SESSION_H", SWIG_From_int((int)(1))); rb_define_module_function(mCproton, "pn_session", _wrap_pn_session, -1); rb_define_module_function(mCproton, "pn_session_free", _wrap_pn_session_free, -1); rb_define_module_function(mCproton, "pn_session_get_context", _wrap_pn_session_get_context, -1); rb_define_module_function(mCproton, "pn_session_set_context", _wrap_pn_session_set_context, -1); rb_define_module_function(mCproton, "pn_session_state", _wrap_pn_session_state, -1); rb_define_module_function(mCproton, "pn_session_error", _wrap_pn_session_error, -1); rb_define_module_function(mCproton, "pn_session_condition", _wrap_pn_session_condition, -1); rb_define_module_function(mCproton, "pn_session_remote_condition", _wrap_pn_session_remote_condition, -1); rb_define_module_function(mCproton, "pn_session_connection", _wrap_pn_session_connection, -1); rb_define_module_function(mCproton, "pn_session_open", _wrap_pn_session_open, -1); rb_define_module_function(mCproton, "pn_session_close", _wrap_pn_session_close, -1); rb_define_module_function(mCproton, "pn_session_get_incoming_capacity", _wrap_pn_session_get_incoming_capacity, -1); rb_define_module_function(mCproton, "pn_session_set_incoming_capacity", _wrap_pn_session_set_incoming_capacity, -1); rb_define_module_function(mCproton, "pn_session_outgoing_bytes", _wrap_pn_session_outgoing_bytes, -1); rb_define_module_function(mCproton, "pn_session_incoming_bytes", _wrap_pn_session_incoming_bytes, -1); rb_define_module_function(mCproton, "pn_session_head", _wrap_pn_session_head, -1); rb_define_module_function(mCproton, "pn_session_next", _wrap_pn_session_next, -1); rb_define_const(mCproton, "PROTON_LINK_H", SWIG_From_int((int)(1))); rb_define_module_function(mCproton, "pn_sender", _wrap_pn_sender, -1); rb_define_module_function(mCproton, "pn_receiver", _wrap_pn_receiver, -1); rb_define_module_function(mCproton, "pn_link_free", _wrap_pn_link_free, -1); rb_define_module_function(mCproton, "pn_link_get_context", _wrap_pn_link_get_context, -1); rb_define_module_function(mCproton, "pn_link_set_context", _wrap_pn_link_set_context, -1); rb_define_module_function(mCproton, "pn_link_name", _wrap_pn_link_name, -1); rb_define_module_function(mCproton, "pn_link_is_sender", _wrap_pn_link_is_sender, -1); rb_define_module_function(mCproton, "pn_link_is_receiver", _wrap_pn_link_is_receiver, -1); rb_define_module_function(mCproton, "pn_link_state", _wrap_pn_link_state, -1); rb_define_module_function(mCproton, "pn_link_error", _wrap_pn_link_error, -1); rb_define_module_function(mCproton, "pn_link_condition", _wrap_pn_link_condition, -1); rb_define_module_function(mCproton, "pn_link_remote_condition", _wrap_pn_link_remote_condition, -1); rb_define_module_function(mCproton, "pn_link_session", _wrap_pn_link_session, -1); rb_define_module_function(mCproton, "pn_link_head", _wrap_pn_link_head, -1); rb_define_module_function(mCproton, "pn_link_next", _wrap_pn_link_next, -1); rb_define_module_function(mCproton, "pn_link_open", _wrap_pn_link_open, -1); rb_define_module_function(mCproton, "pn_link_close", _wrap_pn_link_close, -1); rb_define_module_function(mCproton, "pn_link_source", _wrap_pn_link_source, -1); rb_define_module_function(mCproton, "pn_link_target", _wrap_pn_link_target, -1); rb_define_module_function(mCproton, "pn_link_remote_source", _wrap_pn_link_remote_source, -1); rb_define_module_function(mCproton, "pn_link_remote_target", _wrap_pn_link_remote_target, -1); rb_define_module_function(mCproton, "pn_link_current", _wrap_pn_link_current, -1); rb_define_module_function(mCproton, "pn_link_advance", _wrap_pn_link_advance, -1); rb_define_module_function(mCproton, "pn_link_credit", _wrap_pn_link_credit, -1); rb_define_module_function(mCproton, "pn_link_queued", _wrap_pn_link_queued, -1); rb_define_module_function(mCproton, "pn_link_remote_credit", _wrap_pn_link_remote_credit, -1); rb_define_module_function(mCproton, "pn_link_get_drain", _wrap_pn_link_get_drain, -1); rb_define_module_function(mCproton, "pn_link_drained", _wrap_pn_link_drained, -1); rb_define_module_function(mCproton, "pn_link_available", _wrap_pn_link_available, -1); rb_define_const(mCproton, "PN_SND_UNSETTLED", SWIG_From_int((int)(PN_SND_UNSETTLED))); rb_define_const(mCproton, "PN_SND_SETTLED", SWIG_From_int((int)(PN_SND_SETTLED))); rb_define_const(mCproton, "PN_SND_MIXED", SWIG_From_int((int)(PN_SND_MIXED))); rb_define_const(mCproton, "PN_RCV_FIRST", SWIG_From_int((int)(PN_RCV_FIRST))); rb_define_const(mCproton, "PN_RCV_SECOND", SWIG_From_int((int)(PN_RCV_SECOND))); rb_define_module_function(mCproton, "pn_link_snd_settle_mode", _wrap_pn_link_snd_settle_mode, -1); rb_define_module_function(mCproton, "pn_link_rcv_settle_mode", _wrap_pn_link_rcv_settle_mode, -1); rb_define_module_function(mCproton, "pn_link_set_snd_settle_mode", _wrap_pn_link_set_snd_settle_mode, -1); rb_define_module_function(mCproton, "pn_link_set_rcv_settle_mode", _wrap_pn_link_set_rcv_settle_mode, -1); rb_define_module_function(mCproton, "pn_link_remote_snd_settle_mode", _wrap_pn_link_remote_snd_settle_mode, -1); rb_define_module_function(mCproton, "pn_link_remote_rcv_settle_mode", _wrap_pn_link_remote_rcv_settle_mode, -1); rb_define_module_function(mCproton, "pn_link_unsettled", _wrap_pn_link_unsettled, -1); rb_define_module_function(mCproton, "pn_unsettled_head", _wrap_pn_unsettled_head, -1); rb_define_module_function(mCproton, "pn_unsettled_next", _wrap_pn_unsettled_next, -1); rb_define_module_function(mCproton, "pn_link_offered", _wrap_pn_link_offered, -1); rb_define_module_function(mCproton, "pn_link_flow", _wrap_pn_link_flow, -1); rb_define_module_function(mCproton, "pn_link_drain", _wrap_pn_link_drain, -1); rb_define_module_function(mCproton, "pn_link_set_drain", _wrap_pn_link_set_drain, -1); rb_define_module_function(mCproton, "pn_link_draining", _wrap_pn_link_draining, -1); rb_define_const(mCproton, "PROTON_TERMINUS_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_UNSPECIFIED", SWIG_From_int((int)(PN_UNSPECIFIED))); rb_define_const(mCproton, "PN_SOURCE", SWIG_From_int((int)(PN_SOURCE))); rb_define_const(mCproton, "PN_TARGET", SWIG_From_int((int)(PN_TARGET))); rb_define_const(mCproton, "PN_COORDINATOR", SWIG_From_int((int)(PN_COORDINATOR))); rb_define_const(mCproton, "PN_NONDURABLE", SWIG_From_int((int)(PN_NONDURABLE))); rb_define_const(mCproton, "PN_CONFIGURATION", SWIG_From_int((int)(PN_CONFIGURATION))); rb_define_const(mCproton, "PN_DELIVERIES", SWIG_From_int((int)(PN_DELIVERIES))); rb_define_const(mCproton, "PN_LINK_CLOSE", SWIG_From_int((int)(PN_LINK_CLOSE))); rb_define_const(mCproton, "PN_SESSION_CLOSE", SWIG_From_int((int)(PN_SESSION_CLOSE))); rb_define_const(mCproton, "PN_CONNECTION_CLOSE", SWIG_From_int((int)(PN_CONNECTION_CLOSE))); rb_define_const(mCproton, "PN_NEVER", SWIG_From_int((int)(PN_NEVER))); rb_define_const(mCproton, "PN_DIST_MODE_UNSPECIFIED", SWIG_From_int((int)(PN_DIST_MODE_UNSPECIFIED))); rb_define_const(mCproton, "PN_DIST_MODE_COPY", SWIG_From_int((int)(PN_DIST_MODE_COPY))); rb_define_const(mCproton, "PN_DIST_MODE_MOVE", SWIG_From_int((int)(PN_DIST_MODE_MOVE))); rb_define_module_function(mCproton, "pn_terminus_get_type", _wrap_pn_terminus_get_type, -1); rb_define_module_function(mCproton, "pn_terminus_set_type", _wrap_pn_terminus_set_type, -1); rb_define_module_function(mCproton, "pn_terminus_get_address", _wrap_pn_terminus_get_address, -1); rb_define_module_function(mCproton, "pn_terminus_set_address", _wrap_pn_terminus_set_address, -1); rb_define_module_function(mCproton, "pn_terminus_get_distribution_mode", _wrap_pn_terminus_get_distribution_mode, -1); rb_define_module_function(mCproton, "pn_terminus_set_distribution_mode", _wrap_pn_terminus_set_distribution_mode, -1); rb_define_module_function(mCproton, "pn_terminus_get_durability", _wrap_pn_terminus_get_durability, -1); rb_define_module_function(mCproton, "pn_terminus_set_durability", _wrap_pn_terminus_set_durability, -1); rb_define_module_function(mCproton, "pn_terminus_get_expiry_policy", _wrap_pn_terminus_get_expiry_policy, -1); rb_define_module_function(mCproton, "pn_terminus_set_expiry_policy", _wrap_pn_terminus_set_expiry_policy, -1); rb_define_module_function(mCproton, "pn_terminus_get_timeout", _wrap_pn_terminus_get_timeout, -1); rb_define_module_function(mCproton, "pn_terminus_set_timeout", _wrap_pn_terminus_set_timeout, -1); rb_define_module_function(mCproton, "pn_terminus_is_dynamic", _wrap_pn_terminus_is_dynamic, -1); rb_define_module_function(mCproton, "pn_terminus_set_dynamic", _wrap_pn_terminus_set_dynamic, -1); rb_define_module_function(mCproton, "pn_terminus_properties", _wrap_pn_terminus_properties, -1); rb_define_module_function(mCproton, "pn_terminus_capabilities", _wrap_pn_terminus_capabilities, -1); rb_define_module_function(mCproton, "pn_terminus_outcomes", _wrap_pn_terminus_outcomes, -1); rb_define_module_function(mCproton, "pn_terminus_filter", _wrap_pn_terminus_filter, -1); rb_define_module_function(mCproton, "pn_terminus_copy", _wrap_pn_terminus_copy, -1); rb_define_const(mCproton, "PROTON_DELIVERY_H", SWIG_From_int((int)(1))); SwigClassPn_delivery_tag_t.klass = rb_define_class_under(mCproton, "Pn_delivery_tag_t", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_pn_delivery_tag_t, (void *) &SwigClassPn_delivery_tag_t); rb_define_alloc_func(SwigClassPn_delivery_tag_t.klass, _wrap_pn_delivery_tag_t_allocate); rb_define_method(SwigClassPn_delivery_tag_t.klass, "initialize", _wrap_new_pn_delivery_tag_t, -1); rb_define_method(SwigClassPn_delivery_tag_t.klass, "size=", _wrap_pn_delivery_tag_t_size_set, -1); rb_define_method(SwigClassPn_delivery_tag_t.klass, "size", _wrap_pn_delivery_tag_t_size_get, -1); rb_define_method(SwigClassPn_delivery_tag_t.klass, "bytes=", _wrap_pn_delivery_tag_t_bytes_set, -1); rb_define_method(SwigClassPn_delivery_tag_t.klass, "bytes", _wrap_pn_delivery_tag_t_bytes_get, -1); SwigClassPn_delivery_tag_t.mark = 0; SwigClassPn_delivery_tag_t.destroy = (void (*)(void *)) free_pn_delivery_tag_t; SwigClassPn_delivery_tag_t.trackObjects = 0; rb_define_module_function(mCproton, "pn_delivery_get_context", _wrap_pn_delivery_get_context, -1); rb_define_module_function(mCproton, "pn_delivery_set_context", _wrap_pn_delivery_set_context, -1); rb_define_module_function(mCproton, "pn_delivery_link", _wrap_pn_delivery_link, -1); rb_define_module_function(mCproton, "pn_delivery_local", _wrap_pn_delivery_local, -1); rb_define_module_function(mCproton, "pn_delivery_local_state", _wrap_pn_delivery_local_state, -1); rb_define_module_function(mCproton, "pn_delivery_remote", _wrap_pn_delivery_remote, -1); rb_define_module_function(mCproton, "pn_delivery_remote_state", _wrap_pn_delivery_remote_state, -1); rb_define_module_function(mCproton, "pn_delivery_settled", _wrap_pn_delivery_settled, -1); rb_define_module_function(mCproton, "pn_delivery_pending", _wrap_pn_delivery_pending, -1); rb_define_module_function(mCproton, "pn_delivery_partial", _wrap_pn_delivery_partial, -1); rb_define_module_function(mCproton, "pn_delivery_writable", _wrap_pn_delivery_writable, -1); rb_define_module_function(mCproton, "pn_delivery_readable", _wrap_pn_delivery_readable, -1); rb_define_module_function(mCproton, "pn_delivery_updated", _wrap_pn_delivery_updated, -1); rb_define_module_function(mCproton, "pn_delivery_update", _wrap_pn_delivery_update, -1); rb_define_module_function(mCproton, "pn_delivery_clear", _wrap_pn_delivery_clear, -1); rb_define_module_function(mCproton, "pn_delivery_settle", _wrap_pn_delivery_settle, -1); rb_define_module_function(mCproton, "pn_delivery_dump", _wrap_pn_delivery_dump, -1); rb_define_module_function(mCproton, "pn_delivery_buffered", _wrap_pn_delivery_buffered, -1); rb_define_module_function(mCproton, "pn_work_head", _wrap_pn_work_head, -1); rb_define_module_function(mCproton, "pn_work_next", _wrap_pn_work_next, -1); rb_define_const(mCproton, "PROTON_DISPOSITION_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_RECEIVED", SWIG_From_int((int)((0x0000000000000023)))); rb_define_const(mCproton, "PN_ACCEPTED", SWIG_From_int((int)((0x0000000000000024)))); rb_define_const(mCproton, "PN_REJECTED", SWIG_From_int((int)((0x0000000000000025)))); rb_define_const(mCproton, "PN_RELEASED", SWIG_From_int((int)((0x0000000000000026)))); rb_define_const(mCproton, "PN_MODIFIED", SWIG_From_int((int)((0x0000000000000027)))); rb_define_module_function(mCproton, "pn_disposition_type", _wrap_pn_disposition_type, -1); rb_define_module_function(mCproton, "pn_disposition_condition", _wrap_pn_disposition_condition, -1); rb_define_module_function(mCproton, "pn_disposition_data", _wrap_pn_disposition_data, -1); rb_define_module_function(mCproton, "pn_disposition_get_section_number", _wrap_pn_disposition_get_section_number, -1); rb_define_module_function(mCproton, "pn_disposition_set_section_number", _wrap_pn_disposition_set_section_number, -1); rb_define_module_function(mCproton, "pn_disposition_get_section_offset", _wrap_pn_disposition_get_section_offset, -1); rb_define_module_function(mCproton, "pn_disposition_set_section_offset", _wrap_pn_disposition_set_section_offset, -1); rb_define_module_function(mCproton, "pn_disposition_is_failed", _wrap_pn_disposition_is_failed, -1); rb_define_module_function(mCproton, "pn_disposition_set_failed", _wrap_pn_disposition_set_failed, -1); rb_define_module_function(mCproton, "pn_disposition_is_undeliverable", _wrap_pn_disposition_is_undeliverable, -1); rb_define_module_function(mCproton, "pn_disposition_set_undeliverable", _wrap_pn_disposition_set_undeliverable, -1); rb_define_module_function(mCproton, "pn_disposition_annotations", _wrap_pn_disposition_annotations, -1); rb_define_const(mCproton, "PROTON_TRANSPORT_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_TRACE_OFF", SWIG_From_int((int)((0)))); rb_define_const(mCproton, "PN_TRACE_RAW", SWIG_From_int((int)((1)))); rb_define_const(mCproton, "PN_TRACE_FRM", SWIG_From_int((int)((2)))); rb_define_const(mCproton, "PN_TRACE_DRV", SWIG_From_int((int)((4)))); rb_define_module_function(mCproton, "pn_transport", _wrap_pn_transport, -1); rb_define_module_function(mCproton, "pn_transport_free", _wrap_pn_transport_free, -1); rb_define_module_function(mCproton, "pn_transport_error", _wrap_pn_transport_error, -1); rb_define_module_function(mCproton, "pn_transport_bind", _wrap_pn_transport_bind, -1); rb_define_module_function(mCproton, "pn_transport_unbind", _wrap_pn_transport_unbind, -1); rb_define_module_function(mCproton, "pn_transport_trace", _wrap_pn_transport_trace, -1); rb_define_module_function(mCproton, "pn_transport_set_tracer", _wrap_pn_transport_set_tracer, -1); rb_define_module_function(mCproton, "pn_transport_get_tracer", _wrap_pn_transport_get_tracer, -1); rb_define_module_function(mCproton, "pn_transport_get_context", _wrap_pn_transport_get_context, -1); rb_define_module_function(mCproton, "pn_transport_set_context", _wrap_pn_transport_set_context, -1); rb_define_module_function(mCproton, "pn_transport_log", _wrap_pn_transport_log, -1); rb_define_module_function(mCproton, "pn_transport_logf", _wrap_pn_transport_logf, -1); rb_define_module_function(mCproton, "pn_transport_get_channel_max", _wrap_pn_transport_get_channel_max, -1); rb_define_module_function(mCproton, "pn_transport_set_channel_max", _wrap_pn_transport_set_channel_max, -1); rb_define_module_function(mCproton, "pn_transport_remote_channel_max", _wrap_pn_transport_remote_channel_max, -1); rb_define_module_function(mCproton, "pn_transport_get_max_frame", _wrap_pn_transport_get_max_frame, -1); rb_define_module_function(mCproton, "pn_transport_set_max_frame", _wrap_pn_transport_set_max_frame, -1); rb_define_module_function(mCproton, "pn_transport_get_remote_max_frame", _wrap_pn_transport_get_remote_max_frame, -1); rb_define_module_function(mCproton, "pn_transport_get_idle_timeout", _wrap_pn_transport_get_idle_timeout, -1); rb_define_module_function(mCproton, "pn_transport_set_idle_timeout", _wrap_pn_transport_set_idle_timeout, -1); rb_define_module_function(mCproton, "pn_transport_get_remote_idle_timeout", _wrap_pn_transport_get_remote_idle_timeout, -1); rb_define_module_function(mCproton, "pn_transport_capacity", _wrap_pn_transport_capacity, -1); rb_define_module_function(mCproton, "pn_transport_tail", _wrap_pn_transport_tail, -1); rb_define_module_function(mCproton, "pn_transport_push", _wrap_pn_transport_push, -1); rb_define_module_function(mCproton, "pn_transport_process", _wrap_pn_transport_process, -1); rb_define_module_function(mCproton, "pn_transport_close_tail", _wrap_pn_transport_close_tail, -1); rb_define_module_function(mCproton, "pn_transport_pending", _wrap_pn_transport_pending, -1); rb_define_module_function(mCproton, "pn_transport_head", _wrap_pn_transport_head, -1); rb_define_module_function(mCproton, "pn_transport_peek", _wrap_pn_transport_peek, -1); rb_define_module_function(mCproton, "pn_transport_pop", _wrap_pn_transport_pop, -1); rb_define_module_function(mCproton, "pn_transport_close_head", _wrap_pn_transport_close_head, -1); rb_define_module_function(mCproton, "pn_transport_quiesced", _wrap_pn_transport_quiesced, -1); rb_define_module_function(mCproton, "pn_transport_closed", _wrap_pn_transport_closed, -1); rb_define_module_function(mCproton, "pn_transport_tick", _wrap_pn_transport_tick, -1); rb_define_module_function(mCproton, "pn_transport_get_frames_output", _wrap_pn_transport_get_frames_output, -1); rb_define_module_function(mCproton, "pn_transport_get_frames_input", _wrap_pn_transport_get_frames_input, -1); rb_define_const(mCproton, "PROTON_EVENT_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_EVENT_CATEGORY_NONE", SWIG_From_int((int)(PN_EVENT_CATEGORY_NONE))); rb_define_const(mCproton, "PN_EVENT_CATEGORY_PROTOCOL", SWIG_From_int((int)(PN_EVENT_CATEGORY_PROTOCOL))); rb_define_const(mCproton, "PN_EVENT_CATEGORY_COUNT", SWIG_From_int((int)(PN_EVENT_CATEGORY_COUNT))); rb_define_const(mCproton, "PN_EVENT_NONE", SWIG_From_int((int)(PN_EVENT_NONE))); rb_define_const(mCproton, "PN_CONNECTION_REMOTE_STATE", SWIG_From_int((int)(PN_CONNECTION_REMOTE_STATE))); rb_define_const(mCproton, "PN_CONNECTION_LOCAL_STATE", SWIG_From_int((int)(PN_CONNECTION_LOCAL_STATE))); rb_define_const(mCproton, "PN_SESSION_REMOTE_STATE", SWIG_From_int((int)(PN_SESSION_REMOTE_STATE))); rb_define_const(mCproton, "PN_SESSION_LOCAL_STATE", SWIG_From_int((int)(PN_SESSION_LOCAL_STATE))); rb_define_const(mCproton, "PN_LINK_REMOTE_STATE", SWIG_From_int((int)(PN_LINK_REMOTE_STATE))); rb_define_const(mCproton, "PN_LINK_LOCAL_STATE", SWIG_From_int((int)(PN_LINK_LOCAL_STATE))); rb_define_const(mCproton, "PN_LINK_FLOW", SWIG_From_int((int)(PN_LINK_FLOW))); rb_define_const(mCproton, "PN_DELIVERY", SWIG_From_int((int)(PN_DELIVERY))); rb_define_const(mCproton, "PN_TRANSPORT", SWIG_From_int((int)(PN_TRANSPORT))); rb_define_module_function(mCproton, "pn_event_type_name", _wrap_pn_event_type_name, -1); rb_define_module_function(mCproton, "pn_collector", _wrap_pn_collector, -1); rb_define_module_function(mCproton, "pn_collector_free", _wrap_pn_collector_free, -1); rb_define_module_function(mCproton, "pn_collector_peek", _wrap_pn_collector_peek, -1); rb_define_module_function(mCproton, "pn_collector_pop", _wrap_pn_collector_pop, -1); rb_define_module_function(mCproton, "pn_event_type", _wrap_pn_event_type, -1); rb_define_module_function(mCproton, "pn_event_category", _wrap_pn_event_category, -1); rb_define_module_function(mCproton, "pn_event_connection", _wrap_pn_event_connection, -1); rb_define_module_function(mCproton, "pn_event_session", _wrap_pn_event_session, -1); rb_define_module_function(mCproton, "pn_event_link", _wrap_pn_event_link, -1); rb_define_module_function(mCproton, "pn_event_delivery", _wrap_pn_event_delivery, -1); rb_define_module_function(mCproton, "pn_event_transport", _wrap_pn_event_transport, -1); rb_define_const(mCproton, "PROTON_MESSAGE_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_DATA", SWIG_From_int((int)(PN_DATA))); rb_define_const(mCproton, "PN_TEXT", SWIG_From_int((int)(PN_TEXT))); rb_define_const(mCproton, "PN_AMQP", SWIG_From_int((int)(PN_AMQP))); rb_define_const(mCproton, "PN_JSON", SWIG_From_int((int)(PN_JSON))); rb_define_const(mCproton, "PN_DEFAULT_PRIORITY", SWIG_From_int((int)((4)))); rb_define_module_function(mCproton, "pn_message", _wrap_pn_message, -1); rb_define_module_function(mCproton, "pn_message_free", _wrap_pn_message_free, -1); rb_define_module_function(mCproton, "pn_message_clear", _wrap_pn_message_clear, -1); rb_define_module_function(mCproton, "pn_message_errno", _wrap_pn_message_errno, -1); rb_define_module_function(mCproton, "pn_message_error", _wrap_pn_message_error, -1); rb_define_module_function(mCproton, "pn_message_is_inferred", _wrap_pn_message_is_inferred, -1); rb_define_module_function(mCproton, "pn_message_set_inferred", _wrap_pn_message_set_inferred, -1); rb_define_module_function(mCproton, "pn_message_is_durable", _wrap_pn_message_is_durable, -1); rb_define_module_function(mCproton, "pn_message_set_durable", _wrap_pn_message_set_durable, -1); rb_define_module_function(mCproton, "pn_message_get_priority", _wrap_pn_message_get_priority, -1); rb_define_module_function(mCproton, "pn_message_set_priority", _wrap_pn_message_set_priority, -1); rb_define_module_function(mCproton, "pn_message_get_ttl", _wrap_pn_message_get_ttl, -1); rb_define_module_function(mCproton, "pn_message_set_ttl", _wrap_pn_message_set_ttl, -1); rb_define_module_function(mCproton, "pn_message_is_first_acquirer", _wrap_pn_message_is_first_acquirer, -1); rb_define_module_function(mCproton, "pn_message_set_first_acquirer", _wrap_pn_message_set_first_acquirer, -1); rb_define_module_function(mCproton, "pn_message_get_delivery_count", _wrap_pn_message_get_delivery_count, -1); rb_define_module_function(mCproton, "pn_message_set_delivery_count", _wrap_pn_message_set_delivery_count, -1); rb_define_module_function(mCproton, "pn_message_id", _wrap_pn_message_id, -1); rb_define_module_function(mCproton, "pn_message_get_id", _wrap_pn_message_get_id, -1); rb_define_module_function(mCproton, "pn_message_set_id", _wrap_pn_message_set_id, -1); rb_define_module_function(mCproton, "pn_message_get_user_id", _wrap_pn_message_get_user_id, -1); rb_define_module_function(mCproton, "pn_message_set_user_id", _wrap_pn_message_set_user_id, -1); rb_define_module_function(mCproton, "pn_message_get_address", _wrap_pn_message_get_address, -1); rb_define_module_function(mCproton, "pn_message_set_address", _wrap_pn_message_set_address, -1); rb_define_module_function(mCproton, "pn_message_get_subject", _wrap_pn_message_get_subject, -1); rb_define_module_function(mCproton, "pn_message_set_subject", _wrap_pn_message_set_subject, -1); rb_define_module_function(mCproton, "pn_message_get_reply_to", _wrap_pn_message_get_reply_to, -1); rb_define_module_function(mCproton, "pn_message_set_reply_to", _wrap_pn_message_set_reply_to, -1); rb_define_module_function(mCproton, "pn_message_correlation_id", _wrap_pn_message_correlation_id, -1); rb_define_module_function(mCproton, "pn_message_get_correlation_id", _wrap_pn_message_get_correlation_id, -1); rb_define_module_function(mCproton, "pn_message_set_correlation_id", _wrap_pn_message_set_correlation_id, -1); rb_define_module_function(mCproton, "pn_message_get_content_type", _wrap_pn_message_get_content_type, -1); rb_define_module_function(mCproton, "pn_message_set_content_type", _wrap_pn_message_set_content_type, -1); rb_define_module_function(mCproton, "pn_message_get_content_encoding", _wrap_pn_message_get_content_encoding, -1); rb_define_module_function(mCproton, "pn_message_set_content_encoding", _wrap_pn_message_set_content_encoding, -1); rb_define_module_function(mCproton, "pn_message_get_expiry_time", _wrap_pn_message_get_expiry_time, -1); rb_define_module_function(mCproton, "pn_message_set_expiry_time", _wrap_pn_message_set_expiry_time, -1); rb_define_module_function(mCproton, "pn_message_get_creation_time", _wrap_pn_message_get_creation_time, -1); rb_define_module_function(mCproton, "pn_message_set_creation_time", _wrap_pn_message_set_creation_time, -1); rb_define_module_function(mCproton, "pn_message_get_group_id", _wrap_pn_message_get_group_id, -1); rb_define_module_function(mCproton, "pn_message_set_group_id", _wrap_pn_message_set_group_id, -1); rb_define_module_function(mCproton, "pn_message_get_group_sequence", _wrap_pn_message_get_group_sequence, -1); rb_define_module_function(mCproton, "pn_message_set_group_sequence", _wrap_pn_message_set_group_sequence, -1); rb_define_module_function(mCproton, "pn_message_get_reply_to_group_id", _wrap_pn_message_get_reply_to_group_id, -1); rb_define_module_function(mCproton, "pn_message_set_reply_to_group_id", _wrap_pn_message_set_reply_to_group_id, -1); rb_define_module_function(mCproton, "pn_message_get_format", _wrap_pn_message_get_format, -1); rb_define_module_function(mCproton, "pn_message_set_format", _wrap_pn_message_set_format, -1); rb_define_module_function(mCproton, "pn_message_instructions", _wrap_pn_message_instructions, -1); rb_define_module_function(mCproton, "pn_message_annotations", _wrap_pn_message_annotations, -1); rb_define_module_function(mCproton, "pn_message_properties", _wrap_pn_message_properties, -1); rb_define_module_function(mCproton, "pn_message_body", _wrap_pn_message_body, -1); rb_define_module_function(mCproton, "pn_message_decode", _wrap_pn_message_decode, -1); rb_define_const(mCproton, "PROTON_SASL_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_SASL_NONE", SWIG_From_int((int)(PN_SASL_NONE))); rb_define_const(mCproton, "PN_SASL_OK", SWIG_From_int((int)(PN_SASL_OK))); rb_define_const(mCproton, "PN_SASL_AUTH", SWIG_From_int((int)(PN_SASL_AUTH))); rb_define_const(mCproton, "PN_SASL_SYS", SWIG_From_int((int)(PN_SASL_SYS))); rb_define_const(mCproton, "PN_SASL_PERM", SWIG_From_int((int)(PN_SASL_PERM))); rb_define_const(mCproton, "PN_SASL_TEMP", SWIG_From_int((int)(PN_SASL_TEMP))); rb_define_const(mCproton, "PN_SASL_CONF", SWIG_From_int((int)(PN_SASL_CONF))); rb_define_const(mCproton, "PN_SASL_IDLE", SWIG_From_int((int)(PN_SASL_IDLE))); rb_define_const(mCproton, "PN_SASL_STEP", SWIG_From_int((int)(PN_SASL_STEP))); rb_define_const(mCproton, "PN_SASL_PASS", SWIG_From_int((int)(PN_SASL_PASS))); rb_define_const(mCproton, "PN_SASL_FAIL", SWIG_From_int((int)(PN_SASL_FAIL))); rb_define_module_function(mCproton, "pn_sasl", _wrap_pn_sasl, -1); rb_define_module_function(mCproton, "pn_sasl_state", _wrap_pn_sasl_state, -1); rb_define_module_function(mCproton, "pn_sasl_mechanisms", _wrap_pn_sasl_mechanisms, -1); rb_define_module_function(mCproton, "pn_sasl_remote_mechanisms", _wrap_pn_sasl_remote_mechanisms, -1); rb_define_module_function(mCproton, "pn_sasl_client", _wrap_pn_sasl_client, -1); rb_define_module_function(mCproton, "pn_sasl_server", _wrap_pn_sasl_server, -1); rb_define_module_function(mCproton, "pn_sasl_plain", _wrap_pn_sasl_plain, -1); rb_define_module_function(mCproton, "pn_sasl_pending", _wrap_pn_sasl_pending, -1); rb_define_module_function(mCproton, "pn_sasl_recv", _wrap_pn_sasl_recv, -1); rb_define_module_function(mCproton, "pn_sasl_send", _wrap_pn_sasl_send, -1); rb_define_module_function(mCproton, "pn_sasl_done", _wrap_pn_sasl_done, -1); rb_define_module_function(mCproton, "pn_sasl_outcome", _wrap_pn_sasl_outcome, -1); rb_define_const(mCproton, "PROTON_DRIVER_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_CONNECTOR_WRITABLE", SWIG_From_int((int)(PN_CONNECTOR_WRITABLE))); rb_define_const(mCproton, "PN_CONNECTOR_READABLE", SWIG_From_int((int)(PN_CONNECTOR_READABLE))); rb_define_module_function(mCproton, "pn_driver", _wrap_pn_driver, -1); rb_define_module_function(mCproton, "pn_driver_errno", _wrap_pn_driver_errno, -1); rb_define_module_function(mCproton, "pn_driver_error", _wrap_pn_driver_error, -1); rb_define_module_function(mCproton, "pn_driver_trace", _wrap_pn_driver_trace, -1); rb_define_module_function(mCproton, "pn_driver_wakeup", _wrap_pn_driver_wakeup, -1); rb_define_module_function(mCproton, "pn_driver_wait", _wrap_pn_driver_wait, -1); rb_define_module_function(mCproton, "pn_driver_listener", _wrap_pn_driver_listener, -1); rb_define_module_function(mCproton, "pn_driver_connector", _wrap_pn_driver_connector, -1); rb_define_module_function(mCproton, "pn_driver_free", _wrap_pn_driver_free, -1); rb_define_module_function(mCproton, "pn_listener", _wrap_pn_listener, -1); rb_define_module_function(mCproton, "pn_listener_head", _wrap_pn_listener_head, -1); rb_define_module_function(mCproton, "pn_listener_next", _wrap_pn_listener_next, -1); rb_define_module_function(mCproton, "pn_listener_trace", _wrap_pn_listener_trace, -1); rb_define_module_function(mCproton, "pn_listener_accept", _wrap_pn_listener_accept, -1); rb_define_module_function(mCproton, "pn_listener_context", _wrap_pn_listener_context, -1); rb_define_module_function(mCproton, "pn_listener_set_context", _wrap_pn_listener_set_context, -1); rb_define_module_function(mCproton, "pn_listener_close", _wrap_pn_listener_close, -1); rb_define_module_function(mCproton, "pn_listener_free", _wrap_pn_listener_free, -1); rb_define_module_function(mCproton, "pn_connector", _wrap_pn_connector, -1); rb_define_module_function(mCproton, "pn_connector_head", _wrap_pn_connector_head, -1); rb_define_module_function(mCproton, "pn_connector_next", _wrap_pn_connector_next, -1); rb_define_module_function(mCproton, "pn_connector_trace", _wrap_pn_connector_trace, -1); rb_define_module_function(mCproton, "pn_connector_process", _wrap_pn_connector_process, -1); rb_define_module_function(mCproton, "pn_connector_listener", _wrap_pn_connector_listener, -1); rb_define_module_function(mCproton, "pn_connector_sasl", _wrap_pn_connector_sasl, -1); rb_define_module_function(mCproton, "pn_connector_connection", _wrap_pn_connector_connection, -1); rb_define_module_function(mCproton, "pn_connector_set_connection", _wrap_pn_connector_set_connection, -1); rb_define_module_function(mCproton, "pn_connector_context", _wrap_pn_connector_context, -1); rb_define_module_function(mCproton, "pn_connector_set_context", _wrap_pn_connector_set_context, -1); rb_define_module_function(mCproton, "pn_connector_name", _wrap_pn_connector_name, -1); rb_define_module_function(mCproton, "pn_connector_transport", _wrap_pn_connector_transport, -1); rb_define_module_function(mCproton, "pn_connector_close", _wrap_pn_connector_close, -1); rb_define_module_function(mCproton, "pn_connector_closed", _wrap_pn_connector_closed, -1); rb_define_module_function(mCproton, "pn_connector_free", _wrap_pn_connector_free, -1); rb_define_module_function(mCproton, "pn_connector_activate", _wrap_pn_connector_activate, -1); rb_define_module_function(mCproton, "pn_connector_activated", _wrap_pn_connector_activated, -1); rb_define_const(mCproton, "PROTON_DRIVER_H_EXTRAS", SWIG_From_int((int)(1))); rb_define_module_function(mCproton, "pn_listener_fd", _wrap_pn_listener_fd, -1); rb_define_module_function(mCproton, "pn_listener_get_fd", _wrap_pn_listener_get_fd, -1); rb_define_module_function(mCproton, "pn_connector_fd", _wrap_pn_connector_fd, -1); rb_define_module_function(mCproton, "pn_connector_get_fd", _wrap_pn_connector_get_fd, -1); rb_define_const(mCproton, "PROTON_MESSENGER_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_STATUS_UNKNOWN", SWIG_From_int((int)(PN_STATUS_UNKNOWN))); rb_define_const(mCproton, "PN_STATUS_PENDING", SWIG_From_int((int)(PN_STATUS_PENDING))); rb_define_const(mCproton, "PN_STATUS_ACCEPTED", SWIG_From_int((int)(PN_STATUS_ACCEPTED))); rb_define_const(mCproton, "PN_STATUS_REJECTED", SWIG_From_int((int)(PN_STATUS_REJECTED))); rb_define_const(mCproton, "PN_STATUS_RELEASED", SWIG_From_int((int)(PN_STATUS_RELEASED))); rb_define_const(mCproton, "PN_STATUS_MODIFIED", SWIG_From_int((int)(PN_STATUS_MODIFIED))); rb_define_const(mCproton, "PN_STATUS_ABORTED", SWIG_From_int((int)(PN_STATUS_ABORTED))); rb_define_const(mCproton, "PN_STATUS_SETTLED", SWIG_From_int((int)(PN_STATUS_SETTLED))); rb_define_module_function(mCproton, "pn_messenger", _wrap_pn_messenger, -1); rb_define_module_function(mCproton, "pn_messenger_name", _wrap_pn_messenger_name, -1); rb_define_module_function(mCproton, "pn_messenger_set_certificate", _wrap_pn_messenger_set_certificate, -1); rb_define_module_function(mCproton, "pn_messenger_get_certificate", _wrap_pn_messenger_get_certificate, -1); rb_define_module_function(mCproton, "pn_messenger_set_private_key", _wrap_pn_messenger_set_private_key, -1); rb_define_module_function(mCproton, "pn_messenger_get_private_key", _wrap_pn_messenger_get_private_key, -1); rb_define_module_function(mCproton, "pn_messenger_set_password", _wrap_pn_messenger_set_password, -1); rb_define_module_function(mCproton, "pn_messenger_get_password", _wrap_pn_messenger_get_password, -1); rb_define_module_function(mCproton, "pn_messenger_set_trusted_certificates", _wrap_pn_messenger_set_trusted_certificates, -1); rb_define_module_function(mCproton, "pn_messenger_get_trusted_certificates", _wrap_pn_messenger_get_trusted_certificates, -1); rb_define_module_function(mCproton, "pn_messenger_set_timeout", _wrap_pn_messenger_set_timeout, -1); rb_define_module_function(mCproton, "pn_messenger_get_timeout", _wrap_pn_messenger_get_timeout, -1); rb_define_module_function(mCproton, "pn_messenger_is_blocking", _wrap_pn_messenger_is_blocking, -1); rb_define_module_function(mCproton, "pn_messenger_set_blocking", _wrap_pn_messenger_set_blocking, -1); rb_define_module_function(mCproton, "pn_messenger_is_passive", _wrap_pn_messenger_is_passive, -1); rb_define_module_function(mCproton, "pn_messenger_set_passive", _wrap_pn_messenger_set_passive, -1); rb_define_module_function(mCproton, "pn_messenger_free", _wrap_pn_messenger_free, -1); rb_define_module_function(mCproton, "pn_messenger_errno", _wrap_pn_messenger_errno, -1); rb_define_module_function(mCproton, "pn_messenger_error", _wrap_pn_messenger_error, -1); rb_define_module_function(mCproton, "pn_messenger_get_outgoing_window", _wrap_pn_messenger_get_outgoing_window, -1); rb_define_module_function(mCproton, "pn_messenger_set_outgoing_window", _wrap_pn_messenger_set_outgoing_window, -1); rb_define_module_function(mCproton, "pn_messenger_get_incoming_window", _wrap_pn_messenger_get_incoming_window, -1); rb_define_module_function(mCproton, "pn_messenger_set_incoming_window", _wrap_pn_messenger_set_incoming_window, -1); rb_define_module_function(mCproton, "pn_messenger_start", _wrap_pn_messenger_start, -1); rb_define_module_function(mCproton, "pn_messenger_stop", _wrap_pn_messenger_stop, -1); rb_define_module_function(mCproton, "pn_messenger_stopped", _wrap_pn_messenger_stopped, -1); rb_define_module_function(mCproton, "pn_messenger_subscribe", _wrap_pn_messenger_subscribe, -1); rb_define_module_function(mCproton, "pn_subscription_get_context", _wrap_pn_subscription_get_context, -1); rb_define_module_function(mCproton, "pn_subscription_set_context", _wrap_pn_subscription_set_context, -1); rb_define_module_function(mCproton, "pn_subscription_address", _wrap_pn_subscription_address, -1); rb_define_module_function(mCproton, "pn_messenger_put", _wrap_pn_messenger_put, -1); rb_define_module_function(mCproton, "pn_messenger_status", _wrap_pn_messenger_status, -1); rb_define_module_function(mCproton, "pn_messenger_buffered", _wrap_pn_messenger_buffered, -1); rb_define_module_function(mCproton, "pn_messenger_settle", _wrap_pn_messenger_settle, -1); rb_define_module_function(mCproton, "pn_messenger_outgoing_tracker", _wrap_pn_messenger_outgoing_tracker, -1); rb_define_module_function(mCproton, "pn_messenger_work", _wrap_pn_messenger_work, -1); rb_define_module_function(mCproton, "pn_messenger_interrupt", _wrap_pn_messenger_interrupt, -1); rb_define_module_function(mCproton, "pn_messenger_send", _wrap_pn_messenger_send, -1); rb_define_module_function(mCproton, "pn_messenger_recv", _wrap_pn_messenger_recv, -1); rb_define_module_function(mCproton, "pn_messenger_receiving", _wrap_pn_messenger_receiving, -1); rb_define_module_function(mCproton, "pn_messenger_get", _wrap_pn_messenger_get, -1); rb_define_module_function(mCproton, "pn_messenger_incoming_tracker", _wrap_pn_messenger_incoming_tracker, -1); rb_define_module_function(mCproton, "pn_messenger_incoming_subscription", _wrap_pn_messenger_incoming_subscription, -1); rb_define_const(mCproton, "PN_CUMULATIVE", SWIG_From_int((int)((0x1)))); rb_define_module_function(mCproton, "pn_messenger_accept", _wrap_pn_messenger_accept, -1); rb_define_module_function(mCproton, "pn_messenger_reject", _wrap_pn_messenger_reject, -1); rb_define_module_function(mCproton, "pn_messenger_outgoing", _wrap_pn_messenger_outgoing, -1); rb_define_module_function(mCproton, "pn_messenger_incoming", _wrap_pn_messenger_incoming, -1); rb_define_module_function(mCproton, "pn_messenger_route", _wrap_pn_messenger_route, -1); rb_define_module_function(mCproton, "pn_messenger_rewrite", _wrap_pn_messenger_rewrite, -1); rb_define_module_function(mCproton, "pn_messenger_selectable", _wrap_pn_messenger_selectable, -1); rb_define_module_function(mCproton, "pn_messenger_deadline", _wrap_pn_messenger_deadline, -1); rb_define_const(mCproton, "PROTON_IO_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_INVALID_SOCKET", SWIG_From_int((int)((-1)))); rb_define_module_function(mCproton, "pn_io", _wrap_pn_io, -1); rb_define_module_function(mCproton, "pn_io_free", _wrap_pn_io_free, -1); rb_define_module_function(mCproton, "pn_io_error", _wrap_pn_io_error, -1); rb_define_module_function(mCproton, "pn_connect", _wrap_pn_connect, -1); rb_define_module_function(mCproton, "pn_listen", _wrap_pn_listen, -1); rb_define_module_function(mCproton, "pn_accept", _wrap_pn_accept, -1); rb_define_module_function(mCproton, "pn_close", _wrap_pn_close, -1); rb_define_module_function(mCproton, "pn_send", _wrap_pn_send, -1); rb_define_module_function(mCproton, "pn_recv", _wrap_pn_recv, -1); rb_define_module_function(mCproton, "pn_pipe", _wrap_pn_pipe, -1); rb_define_module_function(mCproton, "pn_read", _wrap_pn_read, -1); rb_define_module_function(mCproton, "pn_write", _wrap_pn_write, -1); rb_define_module_function(mCproton, "pn_wouldblock", _wrap_pn_wouldblock, -1); rb_define_const(mCproton, "PROTON_SELECTABLE_H", SWIG_From_int((int)(1))); rb_define_module_function(mCproton, "pn_selectables", _wrap_pn_selectables, -1); rb_define_module_function(mCproton, "pn_selectables_next", _wrap_pn_selectables_next, -1); rb_define_module_function(mCproton, "pn_selectables_free", _wrap_pn_selectables_free, -1); rb_define_module_function(mCproton, "pn_selectable_fd", _wrap_pn_selectable_fd, -1); rb_define_module_function(mCproton, "pn_selectable_capacity", _wrap_pn_selectable_capacity, -1); rb_define_module_function(mCproton, "pn_selectable_pending", _wrap_pn_selectable_pending, -1); rb_define_module_function(mCproton, "pn_selectable_deadline", _wrap_pn_selectable_deadline, -1); rb_define_module_function(mCproton, "pn_selectable_readable", _wrap_pn_selectable_readable, -1); rb_define_module_function(mCproton, "pn_selectable_writable", _wrap_pn_selectable_writable, -1); rb_define_module_function(mCproton, "pn_selectable_expired", _wrap_pn_selectable_expired, -1); rb_define_module_function(mCproton, "pn_selectable_is_registered", _wrap_pn_selectable_is_registered, -1); rb_define_module_function(mCproton, "pn_selectable_set_registered", _wrap_pn_selectable_set_registered, -1); rb_define_module_function(mCproton, "pn_selectable_is_terminal", _wrap_pn_selectable_is_terminal, -1); rb_define_module_function(mCproton, "pn_selectable_free", _wrap_pn_selectable_free, -1); rb_define_const(mCproton, "PROTON_SSL_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_SSL_MODE_CLIENT", SWIG_From_int((int)(PN_SSL_MODE_CLIENT))); rb_define_const(mCproton, "PN_SSL_MODE_SERVER", SWIG_From_int((int)(PN_SSL_MODE_SERVER))); rb_define_const(mCproton, "PN_SSL_RESUME_UNKNOWN", SWIG_From_int((int)(PN_SSL_RESUME_UNKNOWN))); rb_define_const(mCproton, "PN_SSL_RESUME_NEW", SWIG_From_int((int)(PN_SSL_RESUME_NEW))); rb_define_const(mCproton, "PN_SSL_RESUME_REUSED", SWIG_From_int((int)(PN_SSL_RESUME_REUSED))); rb_define_module_function(mCproton, "pn_ssl_domain", _wrap_pn_ssl_domain, -1); rb_define_module_function(mCproton, "pn_ssl_domain_free", _wrap_pn_ssl_domain_free, -1); rb_define_module_function(mCproton, "pn_ssl_domain_set_credentials", _wrap_pn_ssl_domain_set_credentials, -1); rb_define_module_function(mCproton, "pn_ssl_domain_set_trusted_ca_db", _wrap_pn_ssl_domain_set_trusted_ca_db, -1); rb_define_const(mCproton, "PN_SSL_VERIFY_NULL", SWIG_From_int((int)(PN_SSL_VERIFY_NULL))); rb_define_const(mCproton, "PN_SSL_VERIFY_PEER", SWIG_From_int((int)(PN_SSL_VERIFY_PEER))); rb_define_const(mCproton, "PN_SSL_ANONYMOUS_PEER", SWIG_From_int((int)(PN_SSL_ANONYMOUS_PEER))); rb_define_const(mCproton, "PN_SSL_VERIFY_PEER_NAME", SWIG_From_int((int)(PN_SSL_VERIFY_PEER_NAME))); rb_define_module_function(mCproton, "pn_ssl_domain_set_peer_authentication", _wrap_pn_ssl_domain_set_peer_authentication, -1); rb_define_module_function(mCproton, "pn_ssl_domain_allow_unsecured_client", _wrap_pn_ssl_domain_allow_unsecured_client, -1); rb_define_module_function(mCproton, "pn_ssl", _wrap_pn_ssl, -1); rb_define_module_function(mCproton, "pn_ssl_init", _wrap_pn_ssl_init, -1); rb_define_module_function(mCproton, "pn_ssl_resume_status", _wrap_pn_ssl_resume_status, -1); rb_define_module_function(mCproton, "pn_ssl_set_peer_hostname", _wrap_pn_ssl_set_peer_hostname, -1); rb_define_module_function(mCproton, "pn_ssl_get_peer_hostname", _wrap_pn_ssl_get_peer_hostname, -1); rb_define_const(mCproton, "PROTON_CODEC_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_NULL", SWIG_From_int((int)(PN_NULL))); rb_define_const(mCproton, "PN_BOOL", SWIG_From_int((int)(PN_BOOL))); rb_define_const(mCproton, "PN_UBYTE", SWIG_From_int((int)(PN_UBYTE))); rb_define_const(mCproton, "PN_BYTE", SWIG_From_int((int)(PN_BYTE))); rb_define_const(mCproton, "PN_USHORT", SWIG_From_int((int)(PN_USHORT))); rb_define_const(mCproton, "PN_SHORT", SWIG_From_int((int)(PN_SHORT))); rb_define_const(mCproton, "PN_UINT", SWIG_From_int((int)(PN_UINT))); rb_define_const(mCproton, "PN_INT", SWIG_From_int((int)(PN_INT))); rb_define_const(mCproton, "PN_CHAR", SWIG_From_int((int)(PN_CHAR))); rb_define_const(mCproton, "PN_ULONG", SWIG_From_int((int)(PN_ULONG))); rb_define_const(mCproton, "PN_LONG", SWIG_From_int((int)(PN_LONG))); rb_define_const(mCproton, "PN_TIMESTAMP", SWIG_From_int((int)(PN_TIMESTAMP))); rb_define_const(mCproton, "PN_FLOAT", SWIG_From_int((int)(PN_FLOAT))); rb_define_const(mCproton, "PN_DOUBLE", SWIG_From_int((int)(PN_DOUBLE))); rb_define_const(mCproton, "PN_DECIMAL32", SWIG_From_int((int)(PN_DECIMAL32))); rb_define_const(mCproton, "PN_DECIMAL64", SWIG_From_int((int)(PN_DECIMAL64))); rb_define_const(mCproton, "PN_DECIMAL128", SWIG_From_int((int)(PN_DECIMAL128))); rb_define_const(mCproton, "PN_UUID", SWIG_From_int((int)(PN_UUID))); rb_define_const(mCproton, "PN_BINARY", SWIG_From_int((int)(PN_BINARY))); rb_define_const(mCproton, "PN_STRING", SWIG_From_int((int)(PN_STRING))); rb_define_const(mCproton, "PN_SYMBOL", SWIG_From_int((int)(PN_SYMBOL))); rb_define_const(mCproton, "PN_DESCRIBED", SWIG_From_int((int)(PN_DESCRIBED))); rb_define_const(mCproton, "PN_ARRAY", SWIG_From_int((int)(PN_ARRAY))); rb_define_const(mCproton, "PN_LIST", SWIG_From_int((int)(PN_LIST))); rb_define_const(mCproton, "PN_MAP", SWIG_From_int((int)(PN_MAP))); rb_define_module_function(mCproton, "pn_type_name", _wrap_pn_type_name, -1); SwigClassPn_atom_t.klass = rb_define_class_under(mCproton, "Pn_atom_t", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_pn_atom_t, (void *) &SwigClassPn_atom_t); rb_define_alloc_func(SwigClassPn_atom_t.klass, _wrap_pn_atom_t_allocate); rb_define_method(SwigClassPn_atom_t.klass, "initialize", _wrap_new_pn_atom_t, -1); rb_define_method(SwigClassPn_atom_t.klass, "type=", _wrap_pn_atom_t_type_set, -1); rb_define_method(SwigClassPn_atom_t.klass, "type", _wrap_pn_atom_t_type_get, -1); rb_define_method(SwigClassPn_atom_t.klass, "u", _wrap_pn_atom_t_u_get, -1); SwigClassPn_atom_t.mark = 0; SwigClassPn_atom_t.destroy = (void (*)(void *)) free_pn_atom_t; SwigClassPn_atom_t.trackObjects = 0; SwigClassPn_atom_t_u.klass = rb_define_class_under(mCproton, "Pn_atom_t_u", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_pn_atom_t_u, (void *) &SwigClassPn_atom_t_u); rb_define_alloc_func(SwigClassPn_atom_t_u.klass, _wrap_pn_atom_t_u_allocate); rb_define_method(SwigClassPn_atom_t_u.klass, "initialize", _wrap_new_pn_atom_t_u, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_bool=", _wrap_pn_atom_t_u_as_bool_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_bool", _wrap_pn_atom_t_u_as_bool_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_ubyte=", _wrap_pn_atom_t_u_as_ubyte_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_ubyte", _wrap_pn_atom_t_u_as_ubyte_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_byte=", _wrap_pn_atom_t_u_as_byte_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_byte", _wrap_pn_atom_t_u_as_byte_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_ushort=", _wrap_pn_atom_t_u_as_ushort_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_ushort", _wrap_pn_atom_t_u_as_ushort_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_short=", _wrap_pn_atom_t_u_as_short_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_short", _wrap_pn_atom_t_u_as_short_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_uint=", _wrap_pn_atom_t_u_as_uint_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_uint", _wrap_pn_atom_t_u_as_uint_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_int=", _wrap_pn_atom_t_u_as_int_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_int", _wrap_pn_atom_t_u_as_int_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_char=", _wrap_pn_atom_t_u_as_char_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_char", _wrap_pn_atom_t_u_as_char_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_ulong=", _wrap_pn_atom_t_u_as_ulong_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_ulong", _wrap_pn_atom_t_u_as_ulong_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_long=", _wrap_pn_atom_t_u_as_long_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_long", _wrap_pn_atom_t_u_as_long_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_timestamp=", _wrap_pn_atom_t_u_as_timestamp_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_timestamp", _wrap_pn_atom_t_u_as_timestamp_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_float=", _wrap_pn_atom_t_u_as_float_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_float", _wrap_pn_atom_t_u_as_float_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_double=", _wrap_pn_atom_t_u_as_double_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_double", _wrap_pn_atom_t_u_as_double_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_decimal32=", _wrap_pn_atom_t_u_as_decimal32_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_decimal32", _wrap_pn_atom_t_u_as_decimal32_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_decimal64=", _wrap_pn_atom_t_u_as_decimal64_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_decimal64", _wrap_pn_atom_t_u_as_decimal64_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_decimal128=", _wrap_pn_atom_t_u_as_decimal128_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_decimal128", _wrap_pn_atom_t_u_as_decimal128_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_uuid=", _wrap_pn_atom_t_u_as_uuid_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_uuid", _wrap_pn_atom_t_u_as_uuid_get, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_bytes=", _wrap_pn_atom_t_u_as_bytes_set, -1); rb_define_method(SwigClassPn_atom_t_u.klass, "as_bytes", _wrap_pn_atom_t_u_as_bytes_get, -1); SwigClassPn_atom_t_u.mark = 0; SwigClassPn_atom_t_u.destroy = (void (*)(void *)) free_pn_atom_t_u; SwigClassPn_atom_t_u.trackObjects = 0; rb_define_module_function(mCproton, "pn_data", _wrap_pn_data, -1); rb_define_module_function(mCproton, "pn_data_free", _wrap_pn_data_free, -1); rb_define_module_function(mCproton, "pn_data_errno", _wrap_pn_data_errno, -1); rb_define_module_function(mCproton, "pn_data_error", _wrap_pn_data_error, -1); rb_define_module_function(mCproton, "pn_data_fill", _wrap_pn_data_fill, -1); rb_define_module_function(mCproton, "pn_data_scan", _wrap_pn_data_scan, -1); rb_define_module_function(mCproton, "pn_data_clear", _wrap_pn_data_clear, -1); rb_define_module_function(mCproton, "pn_data_size", _wrap_pn_data_size, -1); rb_define_module_function(mCproton, "pn_data_rewind", _wrap_pn_data_rewind, -1); rb_define_module_function(mCproton, "pn_data_next", _wrap_pn_data_next, -1); rb_define_module_function(mCproton, "pn_data_prev", _wrap_pn_data_prev, -1); rb_define_module_function(mCproton, "pn_data_enter", _wrap_pn_data_enter, -1); rb_define_module_function(mCproton, "pn_data_exit", _wrap_pn_data_exit, -1); rb_define_module_function(mCproton, "pn_data_lookup", _wrap_pn_data_lookup, -1); rb_define_module_function(mCproton, "pn_data_type", _wrap_pn_data_type, -1); rb_define_module_function(mCproton, "pn_data_print", _wrap_pn_data_print, -1); rb_define_module_function(mCproton, "pn_data_format", _wrap_pn_data_format, -1); rb_define_module_function(mCproton, "pn_data_encode", _wrap_pn_data_encode, -1); rb_define_module_function(mCproton, "pn_data_decode", _wrap_pn_data_decode, -1); rb_define_module_function(mCproton, "pn_data_put_list", _wrap_pn_data_put_list, -1); rb_define_module_function(mCproton, "pn_data_put_map", _wrap_pn_data_put_map, -1); rb_define_module_function(mCproton, "pn_data_put_array", _wrap_pn_data_put_array, -1); rb_define_module_function(mCproton, "pn_data_put_described", _wrap_pn_data_put_described, -1); rb_define_module_function(mCproton, "pn_data_put_null", _wrap_pn_data_put_null, -1); rb_define_module_function(mCproton, "pn_data_put_bool", _wrap_pn_data_put_bool, -1); rb_define_module_function(mCproton, "pn_data_put_ubyte", _wrap_pn_data_put_ubyte, -1); rb_define_module_function(mCproton, "pn_data_put_byte", _wrap_pn_data_put_byte, -1); rb_define_module_function(mCproton, "pn_data_put_ushort", _wrap_pn_data_put_ushort, -1); rb_define_module_function(mCproton, "pn_data_put_short", _wrap_pn_data_put_short, -1); rb_define_module_function(mCproton, "pn_data_put_uint", _wrap_pn_data_put_uint, -1); rb_define_module_function(mCproton, "pn_data_put_int", _wrap_pn_data_put_int, -1); rb_define_module_function(mCproton, "pn_data_put_char", _wrap_pn_data_put_char, -1); rb_define_module_function(mCproton, "pn_data_put_ulong", _wrap_pn_data_put_ulong, -1); rb_define_module_function(mCproton, "pn_data_put_long", _wrap_pn_data_put_long, -1); rb_define_module_function(mCproton, "pn_data_put_timestamp", _wrap_pn_data_put_timestamp, -1); rb_define_module_function(mCproton, "pn_data_put_float", _wrap_pn_data_put_float, -1); rb_define_module_function(mCproton, "pn_data_put_double", _wrap_pn_data_put_double, -1); rb_define_module_function(mCproton, "pn_data_put_decimal32", _wrap_pn_data_put_decimal32, -1); rb_define_module_function(mCproton, "pn_data_put_decimal64", _wrap_pn_data_put_decimal64, -1); rb_define_module_function(mCproton, "pn_data_put_decimal128", _wrap_pn_data_put_decimal128, -1); rb_define_module_function(mCproton, "pn_data_put_uuid", _wrap_pn_data_put_uuid, -1); rb_define_module_function(mCproton, "pn_data_put_binary", _wrap_pn_data_put_binary, -1); rb_define_module_function(mCproton, "pn_data_put_string", _wrap_pn_data_put_string, -1); rb_define_module_function(mCproton, "pn_data_put_symbol", _wrap_pn_data_put_symbol, -1); rb_define_module_function(mCproton, "pn_data_put_atom", _wrap_pn_data_put_atom, -1); rb_define_module_function(mCproton, "pn_data_get_list", _wrap_pn_data_get_list, -1); rb_define_module_function(mCproton, "pn_data_get_map", _wrap_pn_data_get_map, -1); rb_define_module_function(mCproton, "pn_data_get_array", _wrap_pn_data_get_array, -1); rb_define_module_function(mCproton, "pn_data_is_array_described", _wrap_pn_data_is_array_described, -1); rb_define_module_function(mCproton, "pn_data_get_array_type", _wrap_pn_data_get_array_type, -1); rb_define_module_function(mCproton, "pn_data_is_described", _wrap_pn_data_is_described, -1); rb_define_module_function(mCproton, "pn_data_is_null", _wrap_pn_data_is_null, -1); rb_define_module_function(mCproton, "pn_data_get_bool", _wrap_pn_data_get_bool, -1); rb_define_module_function(mCproton, "pn_data_get_ubyte", _wrap_pn_data_get_ubyte, -1); rb_define_module_function(mCproton, "pn_data_get_byte", _wrap_pn_data_get_byte, -1); rb_define_module_function(mCproton, "pn_data_get_ushort", _wrap_pn_data_get_ushort, -1); rb_define_module_function(mCproton, "pn_data_get_short", _wrap_pn_data_get_short, -1); rb_define_module_function(mCproton, "pn_data_get_uint", _wrap_pn_data_get_uint, -1); rb_define_module_function(mCproton, "pn_data_get_int", _wrap_pn_data_get_int, -1); rb_define_module_function(mCproton, "pn_data_get_char", _wrap_pn_data_get_char, -1); rb_define_module_function(mCproton, "pn_data_get_ulong", _wrap_pn_data_get_ulong, -1); rb_define_module_function(mCproton, "pn_data_get_long", _wrap_pn_data_get_long, -1); rb_define_module_function(mCproton, "pn_data_get_timestamp", _wrap_pn_data_get_timestamp, -1); rb_define_module_function(mCproton, "pn_data_get_float", _wrap_pn_data_get_float, -1); rb_define_module_function(mCproton, "pn_data_get_double", _wrap_pn_data_get_double, -1); rb_define_module_function(mCproton, "pn_data_get_decimal32", _wrap_pn_data_get_decimal32, -1); rb_define_module_function(mCproton, "pn_data_get_decimal64", _wrap_pn_data_get_decimal64, -1); rb_define_module_function(mCproton, "pn_data_get_decimal128", _wrap_pn_data_get_decimal128, -1); rb_define_module_function(mCproton, "pn_data_get_uuid", _wrap_pn_data_get_uuid, -1); rb_define_module_function(mCproton, "pn_data_get_binary", _wrap_pn_data_get_binary, -1); rb_define_module_function(mCproton, "pn_data_get_string", _wrap_pn_data_get_string, -1); rb_define_module_function(mCproton, "pn_data_get_symbol", _wrap_pn_data_get_symbol, -1); rb_define_module_function(mCproton, "pn_data_get_bytes", _wrap_pn_data_get_bytes, -1); rb_define_module_function(mCproton, "pn_data_get_atom", _wrap_pn_data_get_atom, -1); rb_define_module_function(mCproton, "pn_data_copy", _wrap_pn_data_copy, -1); rb_define_module_function(mCproton, "pn_data_append", _wrap_pn_data_append, -1); rb_define_module_function(mCproton, "pn_data_appendn", _wrap_pn_data_appendn, -1); rb_define_module_function(mCproton, "pn_data_narrow", _wrap_pn_data_narrow, -1); rb_define_module_function(mCproton, "pn_data_widen", _wrap_pn_data_widen, -1); rb_define_module_function(mCproton, "pn_data_point", _wrap_pn_data_point, -1); rb_define_module_function(mCproton, "pn_data_restore", _wrap_pn_data_restore, -1); rb_define_module_function(mCproton, "pn_data_dump", _wrap_pn_data_dump, -1); }