/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 4.0.1 * * 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. * ----------------------------------------------------------------------------- */ #ifndef SWIGRUBY #define SWIGRUBY #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 defined(__GNUC__) # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif # 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 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 #endif /* Intel's compiler complains if a variable which was never initialised is * cast to void, which is a common idiom which we use to indicate that we * are aware a variable isn't used. So we just silence that warning. * See: https://github.com/swig/swig/issues/192 for more discussion. */ #ifdef __INTEL_COMPILER # pragma warning disable 592 #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 defined(__GNUC__) # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif # 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 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 #endif /* Intel's compiler complains if a variable which was never initialised is * cast to void, which is a common idiom which we use to indicate that we * are aware a variable isn't used. So we just silence that warning. * See: https://github.com/swig/swig/issues/192 for more discussion. */ #ifdef __INTEL_COMPILER # pragma warning disable 592 #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 #define SWIG_POINTER_NO_NULL 0x4 /* 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) { size_t l = 0; size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { r = i - 1; } else { break; } } else if (compare > 0) { l = i + 1; } } else { break; /* should never happen */ } } while (l <= r); } iter = iter->next; } while (iter != end); return 0; } /* 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 { 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"; const unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } /* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { char d = *(c++); unsigned char uu; if ((d >= '0') && (d <= '9')) uu = (unsigned char)((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = (unsigned char)((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (unsigned char)(d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (unsigned char)(d - ('a'-10)); else return (char *) 0; *u = uu; } return c; } /* 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 #ifndef RTYPEDDATA_P # define RTYPEDDATA_P(x) (TYPE(x) != T_DATA) #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(). */ #if defined(__cplusplus) && !defined(RB_METHOD_DEFINITION_DECL) # define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f) # define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f) # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f) # define VOID_ANYARGS_FUNC(f) ((void (*)(ANYARGS))(f)) # define INT_ANYARGS_FUNC(f) ((int (*)(ANYARGS))(f)) #else # define PROTECTFUNC(f) (f) # define VALUEFUNC(f) (f) # define VOIDFUNC(f) (f) # define VOID_ANYARGS_FUNC(f) (f) # define INT_ANYARGS_FUNC(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 #if !defined(ST_DATA_T_DEFINED) /* Needs to be explicitly included for Ruby 1.8 and earlier */ #include #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 hash table to store Trackings from C/C++ structs to Ruby Objects. */ static st_table* swig_ruby_trackings = NULL; static VALUE swig_ruby_trackings_count(ID id, VALUE *var) { return SWIG2NUM(swig_ruby_trackings->num_entries); } /* Setup a hash table to store Trackings */ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) { /* Create a 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. */ VALUE trackings_value = Qnil; /* change the variable name so that we can mix modules compiled with older SWIG's - this used to be called "@__trackings__" */ ID trackings_id = rb_intern( "@__safetrackings__" ); VALUE verbose = rb_gv_get("VERBOSE"); rb_gv_set("VERBOSE", Qfalse); trackings_value = rb_ivar_get( _mSWIG, trackings_id ); rb_gv_set("VERBOSE", verbose); /* The trick here is that we have to store the hash table pointer in a Ruby variable. We do not want Ruby's GC to treat this pointer as a Ruby object, so we convert it to a Ruby numeric value. */ if (trackings_value == Qnil) { /* No, it hasn't. Create one ourselves */ swig_ruby_trackings = st_init_numtable(); rb_ivar_set( _mSWIG, trackings_id, SWIG2NUM(swig_ruby_trackings) ); } else { swig_ruby_trackings = (st_table*)NUM2SWIG(trackings_value); } rb_define_virtual_variable("SWIG_TRACKINGS_COUNT", VALUEFUNC(swig_ruby_trackings_count), VOID_ANYARGS_FUNC((rb_gvar_setter_t*)NULL)); } /* Add a Tracking from a C/C++ struct to a Ruby object */ SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) { /* Store the mapping to the global hash table. */ st_insert(swig_ruby_trackings, (st_data_t)ptr, object); } /* Get the Ruby object that owns the specified C/C++ struct */ SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) { /* Now lookup the value stored in the global hash table */ VALUE value; if (st_lookup(swig_ruby_trackings, (st_data_t)ptr, &value)) { return value; } else { return Qnil; } } /* 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) { /* Delete the object from the hash table */ st_delete(swig_ruby_trackings, (st_data_t *)&ptr, NULL); } /* 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) { // object might have the T_ZOMBIE type, but that's just // because the GC has flagged it as such for a deferred // destruction. Until then, it's still a T_DATA object. DATA_PTR(object) = 0; } } /* This is a helper method that iterates over all the trackings passing the C++ object pointer and its related Ruby object to the passed callback function. */ /* Proxy method to abstract the internal trackings datatype */ static int swig_ruby_internal_iterate_callback(st_data_t ptr, st_data_t obj, st_data_t meth) { ((void (*) (void *, VALUE))meth)((void *)ptr, (VALUE)obj); return ST_CONTINUE; } SWIGRUNTIME void SWIG_RubyIterateTrackings( void(*meth)(void* ptr, VALUE obj) ) { st_foreach(swig_ruby_trackings, INT_ANYARGS_FUNC(swig_ruby_internal_iterate_callback), (st_data_t)meth); } #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 swig_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) { 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"); } 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; assert(type); 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 struct { void (*datafree)(void *); int own; } swig_ruby_owntype; SWIGRUNTIME swig_ruby_owntype SWIG_Ruby_AcquirePtr(VALUE obj, swig_ruby_owntype own) { swig_ruby_owntype oldown = {0, 0}; if (TYPE(obj) == T_DATA && !RTYPEDDATA_P(obj)) { oldown.datafree = RDATA(obj)->dfree; RDATA(obj)->dfree = own.datafree; } return oldown; } /* Convert a pointer value */ SWIGRUNTIME int SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, swig_ruby_owntype *own) { char *c; swig_cast_info *tc; void *vptr = 0; /* Grab the pointer */ if (NIL_P(obj)) { if (ptr) *ptr = 0; return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK; } else { if (TYPE(obj) != T_DATA || (TYPE(obj) == T_DATA && RTYPEDDATA_P(obj))) { return SWIG_ERROR; } Data_Get_Struct(obj, void, vptr); } if (own) { own->datafree = RDATA(obj)->dfree; own->own = 0; } /* 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; } } } if ((c = SWIG_MangleStr(obj)) == NULL) { return SWIG_ERROR; } tc = SWIG_TypeCheck(c, ty); if (!tc) { return SWIG_ERROR; } else { if (ptr) { if (tc->type == ty) { *ptr = vptr; } else { int newmemory = 0; *ptr = SWIG_TypeCast(tc, vptr, &newmemory); if (newmemory == SWIG_CAST_NEW_MEMORY) { assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ if (own) own->own = own->own | SWIG_CAST_NEW_MEMORY; } } } } } else { if (ptr) *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 pointer 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_Pn_rbkey_t swig_types[0] #define SWIGTYPE_p_Pni_rbhandler_t swig_types[1] #define SWIGTYPE_p_char swig_types[2] #define SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void swig_types[3] #define SWIGTYPE_p_f_p_void__p_void swig_types[4] #define SWIGTYPE_p_int swig_types[5] #define SWIGTYPE_p_intptr_t swig_types[6] #define SWIGTYPE_p_long swig_types[7] #define SWIGTYPE_p_long_long swig_types[8] #define SWIGTYPE_p_p_char swig_types[9] #define SWIGTYPE_p_p_pn_connection_driver_t swig_types[10] #define SWIGTYPE_p_pn_atom_t swig_types[11] #define SWIGTYPE_p_pn_bytes_t swig_types[12] #define SWIGTYPE_p_pn_cid_t swig_types[13] #define SWIGTYPE_p_pn_class_t swig_types[14] #define SWIGTYPE_p_pn_collector_t swig_types[15] #define SWIGTYPE_p_pn_condition_t swig_types[16] #define SWIGTYPE_p_pn_connection_driver_t swig_types[17] #define SWIGTYPE_p_pn_connection_t swig_types[18] #define SWIGTYPE_p_pn_data_t swig_types[19] #define SWIGTYPE_p_pn_decimal128_t swig_types[20] #define SWIGTYPE_p_pn_delivery_t swig_types[21] #define SWIGTYPE_p_pn_disposition_t swig_types[22] #define SWIGTYPE_p_pn_distribution_mode_t swig_types[23] #define SWIGTYPE_p_pn_durability_t swig_types[24] #define SWIGTYPE_p_pn_error_t swig_types[25] #define SWIGTYPE_p_pn_event_t swig_types[26] #define SWIGTYPE_p_pn_event_type_t swig_types[27] #define SWIGTYPE_p_pn_expiry_policy_t swig_types[28] #define SWIGTYPE_p_pn_handler_t swig_types[29] #define SWIGTYPE_p_pn_hash_t swig_types[30] #define SWIGTYPE_p_pn_iterator_t swig_types[31] #define SWIGTYPE_p_pn_link_t swig_types[32] #define SWIGTYPE_p_pn_list_t swig_types[33] #define SWIGTYPE_p_pn_listener_t swig_types[34] #define SWIGTYPE_p_pn_logger_t swig_types[35] #define SWIGTYPE_p_pn_map_t swig_types[36] #define SWIGTYPE_p_pn_message_t swig_types[37] #define SWIGTYPE_p_pn_messenger_t swig_types[38] #define SWIGTYPE_p_pn_proactor_t swig_types[39] #define SWIGTYPE_p_pn_raw_connection_t swig_types[40] #define SWIGTYPE_p_pn_rcv_settle_mode_t swig_types[41] #define SWIGTYPE_p_pn_record_t swig_types[42] #define SWIGTYPE_p_pn_rwbytes_t swig_types[43] #define SWIGTYPE_p_pn_sasl_outcome_t swig_types[44] #define SWIGTYPE_p_pn_sasl_t swig_types[45] #define SWIGTYPE_p_pn_session_t swig_types[46] #define SWIGTYPE_p_pn_snd_settle_mode_t swig_types[47] #define SWIGTYPE_p_pn_ssl_cert_subject_subfield swig_types[48] #define SWIGTYPE_p_pn_ssl_domain_t swig_types[49] #define SWIGTYPE_p_pn_ssl_hash_alg swig_types[50] #define SWIGTYPE_p_pn_ssl_mode_t swig_types[51] #define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[52] #define SWIGTYPE_p_pn_ssl_t swig_types[53] #define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[54] #define SWIGTYPE_p_pn_string_t swig_types[55] #define SWIGTYPE_p_pn_terminus_t swig_types[56] #define SWIGTYPE_p_pn_terminus_type_t swig_types[57] #define SWIGTYPE_p_pn_transport_t swig_types[58] #define SWIGTYPE_p_pn_type_t swig_types[59] #define SWIGTYPE_p_pn_url_t swig_types[60] #define SWIGTYPE_p_pn_uuid_t swig_types[61] #define SWIGTYPE_p_short swig_types[62] #define SWIGTYPE_p_signed_char swig_types[63] #define SWIGTYPE_p_unsigned_char swig_types[64] #define SWIGTYPE_p_unsigned_int swig_types[65] #define SWIGTYPE_p_unsigned_long swig_types[66] #define SWIGTYPE_p_unsigned_long_long swig_types[67] #define SWIGTYPE_p_unsigned_short swig_types[68] #define SWIGTYPE_p_void swig_types[69] static swig_type_info *swig_types[71]; static swig_module_info swig_module = {swig_types, 70, 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 0x040001 #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)) #define PN_USE_DEPRECATED_API 1 #include #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 VALUE SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2)) { return Qnil; } /*@SWIG:/usr/share/swig/4.0.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE arg) { VALUE *args = (VALUE *)arg; 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(VALUEFUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } #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 #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE) # define SWIG_LONG_LONG_AVAILABLE #endif #ifdef SWIG_LONG_LONG_AVAILABLE /*@SWIG:/usr/share/swig/4.0.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE arg) { VALUE *args = (VALUE *)arg; 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(VALUEFUNC(SWIG_AUX_NUM2ULL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } #endif SWIGINTERNINLINE int SWIG_AsVal_size_t (VALUE obj, size_t *val) { int res = SWIG_TypeError; #ifdef SWIG_LONG_LONG_AVAILABLE if (sizeof(size_t) <= sizeof(unsigned long)) { #endif unsigned long v; res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); if (SWIG_IsOK(res) && val) *val = (size_t)(v); #ifdef SWIG_LONG_LONG_AVAILABLE } else if (sizeof(size_t) <= sizeof(unsigned long long)) { unsigned long long v; res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0); if (SWIG_IsOK(res) && val) *val = (size_t)(v); } #endif return res; } 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(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; } 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; } } #define SWIG_From_long LONG2NUM SWIGINTERNINLINE VALUE SWIG_From_int (int value) { return SWIG_From_long (value); } 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; } int wrap_pn_transport_peek(pn_transport_t *transport, char *OUTPUT, size_t *OUTPUT_SIZE) { ssize_t sz = pn_transport_peek(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.start, tag.size); } 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; } #if defined(RUBY_USE_rb_thread_call_without_gvl) #include typedef void *non_blocking_return_t; #define RB_BLOCKING_CALL (VALUE)rb_thread_call_without_gvl #elif defined(RUBY_USE_rb_thread_blocking_region) typedef VALUE non_blocking_return_t; #define RB_BLOCKING_CALL rb_thread_blocking_region #endif #if defined(RB_BLOCKING_CALL) static non_blocking_return_t pn_messenger_send_no_gvl(void *args) { VALUE result = Qnil; pn_messenger_t *messenger = (pn_messenger_t *)((void **)args)[0]; int *limit = (int *)((void **)args)[1]; int rc = pn_messenger_send(messenger, *limit); result = INT2NUM(rc); return (non_blocking_return_t )result; } static non_blocking_return_t pn_messenger_recv_no_gvl(void *args) { VALUE result = Qnil; pn_messenger_t *messenger = (pn_messenger_t *)((void **)args)[0]; int *limit = (int *)((void **)args)[1]; int rc = pn_messenger_recv(messenger, *limit); result = INT2NUM(rc); return (non_blocking_return_t )result; } static non_blocking_return_t pn_messenger_work_no_gvl(void *args) { VALUE result = Qnil; pn_messenger_t *messenger = (pn_messenger_t *)((void **)args)[0]; int *timeout = (int *)((void **)args)[1]; int rc = pn_messenger_work(messenger, *timeout); result = INT2NUM(rc); return (non_blocking_return_t )result; } #endif int wrap_pn_messenger_send(pn_messenger_t *messenger, int limit) { int result = 0; #if defined(RB_BLOCKING_CALL) // only release the gil if we're blocking if(pn_messenger_is_blocking(messenger)) { VALUE rc; void* args[2]; args[0] = messenger; args[1] = &limit; rc = RB_BLOCKING_CALL(pn_messenger_send_no_gvl, &args, RUBY_UBF_PROCESS, NULL); if(RTEST(rc)) { result = FIX2INT(rc); } } #else // !defined(RB_BLOCKING_CALL) result = pn_messenger_send(messenger, limit); #endif // defined(RB_BLOCKING_CALL) return result; } int wrap_pn_messenger_recv(pn_messenger_t *messenger, int limit) { int result = 0; #if defined(RB_BLOCKING_CALL) // only release the gil if we're blocking if(pn_messenger_is_blocking(messenger)) { VALUE rc; void* args[2]; args[0] = messenger; args[1] = &limit; rc = RB_BLOCKING_CALL(pn_messenger_recv_no_gvl, &args, RUBY_UBF_PROCESS, NULL); if(RTEST(rc)) { result = FIX2INT(rc); } } else { result = pn_messenger_recv(messenger, limit); } #else // !defined(RB_BLOCKING_CALL) result = pn_messenger_recv(messenger, limit); #endif // defined(RB_BLOCKING_CALL) return result; } int wrap_pn_messenger_work(pn_messenger_t *messenger, int timeout) { int result = 0; #if defined(RB_BLOCKING_CALL) // only release the gil if we're blocking if(timeout) { VALUE rc; void* args[2]; args[0] = messenger; args[1] = &timeout; rc = RB_BLOCKING_CALL(pn_messenger_work_no_gvl, &args, RUBY_UBF_PROCESS, NULL); if(RTEST(rc)) { result = FIX2INT(rc); } } else { result = pn_messenger_work(messenger, timeout); } #else result = pn_messenger_work(messenger, timeout); #endif return result; } /*@SWIG:/usr/share/swig/4.0.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg) { VALUE *args = (VALUE *)arg; 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(VALUEFUNC(SWIG_AUX_NUM2LONG), (VALUE)a, VALUEFUNC(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; } typedef struct Pn_rbkey_t { void *registry; char *method; char *key_value; } Pn_rbkey_t; void Pn_rbkey_initialize(void *vp_rbkey) { Pn_rbkey_t *rbkey = (Pn_rbkey_t*)vp_rbkey; assert(rbkey); rbkey->registry = NULL; rbkey->method = NULL; rbkey->key_value = NULL; } void Pn_rbkey_finalize(void *vp_rbkey) { Pn_rbkey_t *rbkey = (Pn_rbkey_t*)vp_rbkey; if(rbkey && rbkey->registry && rbkey->method && rbkey->key_value) { rb_funcall((VALUE )rbkey->registry, rb_intern(rbkey->method), 1, rb_str_new2(rbkey->key_value)); } if(rbkey->key_value) { free(rbkey->key_value); rbkey->key_value = NULL; } } /* NOTE: no macro or preprocessor definitions in %inline sections */ #define CID_Pn_rbkey CID_pn_void #define Pn_rbkey_inspect NULL #define Pn_rbkey_compare NULL #define Pn_rbkey_hashcode NULL pn_class_t* Pn_rbkey__class(void) { static pn_class_t clazz = PN_CLASS(Pn_rbkey); return &clazz; } Pn_rbkey_t *Pn_rbkey_new(void) { return (Pn_rbkey_t *) pn_class_new(Pn_rbkey__class(), sizeof(Pn_rbkey_t)); } Pn_rbkey_t *Pn_rbkey_new(void); void Pn_rbkey_set_registry(Pn_rbkey_t *rbkey, void *registry) { assert(rbkey); rbkey->registry = registry; } void *Pn_rbkey_get_registry(Pn_rbkey_t *rbkey) { assert(rbkey); return rbkey->registry; } void Pn_rbkey_set_method(Pn_rbkey_t *rbkey, char *method) { assert(rbkey); rbkey->method = method; } char *Pn_rbkey_get_method(Pn_rbkey_t *rbkey) { assert(rbkey); return rbkey->method; } void Pn_rbkey_set_key_value(Pn_rbkey_t *rbkey, char *key_value) { assert(rbkey); rbkey->key_value = malloc(strlen(key_value) + 1); strncpy(rbkey->key_value, key_value, strlen(key_value) + 1); } char *Pn_rbkey_get_key_value(Pn_rbkey_t *rbkey) { assert(rbkey); return rbkey->key_value; } Pn_rbkey_t *pni_void2rbkey(void *object) { return (Pn_rbkey_t *)object; } VALUE pn_void2rb(void *object) { return (VALUE )object; } void *pn_rb2void(VALUE object) { return (void *)object; } VALUE pni_address_of(void *object) { return ULL2NUM((unsigned long )object); } VALUE pni_ruby_get_proton_module() { VALUE mQpid = rb_define_module("Qpid"); return rb_define_module_under(mQpid, "Proton"); } void pni_ruby_add_to_registry(VALUE key, VALUE value) { VALUE result = rb_funcall(pni_ruby_get_proton_module(), rb_intern("add_to_registry"), 2, key, value); } VALUE pni_ruby_get_from_registry(VALUE key) { return rb_funcall(pni_ruby_get_proton_module(), rb_intern("get_from_registry"), 1, key); } void pni_ruby_delete_from_registry(VALUE stored_key) { rb_funcall(pni_ruby_get_proton_module(), rb_intern("delete_from_registry"), 1, stored_key); } typedef struct { VALUE handler_key; } Pni_rbhandler_t; static Pni_rbhandler_t *pni_rbhandler(pn_handler_t *handler) { return (Pni_rbhandler_t *) pn_handler_mem(handler); } static void pni_rbdispatch(pn_handler_t *handler, pn_event_t *event, pn_event_type_t type) { Pni_rbhandler_t *rbh = pni_rbhandler(handler); VALUE rbhandler = pni_ruby_get_from_registry(rbh->handler_key); rb_funcall(rbhandler, rb_intern("dispatch"), 2, SWIG_NewPointerObj(event, SWIGTYPE_p_pn_event_t, 0), INT2FIX(type)); } static void pni_rbhandler_finalize(pn_handler_t *handler) { Pni_rbhandler_t *rbh = pni_rbhandler(handler); pni_ruby_delete_from_registry(rbh->handler_key); } pn_handler_t *pn_rbhandler(VALUE handler) { pn_handler_t *chandler = pn_handler_new(pni_rbdispatch, sizeof(Pni_rbhandler_t), pni_rbhandler_finalize); Pni_rbhandler_t *rhy = pni_rbhandler(chandler); VALUE ruby_key = rb_class_new_instance(0, NULL, rb_cObject); pni_ruby_add_to_registry(ruby_key, handler); rhy->handler_key = ruby_key; return chandler; } /* Helpers for working with pn_connection_driver_t */ size_t pni_connection_driver_read_size(pn_connection_driver_t* d) { return pn_connection_driver_read_buffer(d).size; } size_t pni_connection_driver_write_size(pn_connection_driver_t* d) { return pn_connection_driver_write_buffer(d).size; } pn_connection_t *pni_connection_driver_connection(pn_connection_driver_t* d) { return d->connection; } pn_transport_t *pni_connection_driver_transport(pn_connection_driver_t* d) { return d->transport; } size_t pni_connection_driver_read_copy(pn_connection_driver_t* d, char *STRING, size_t LENGTH ) { pn_rwbytes_t rbuf = pn_connection_driver_read_buffer(d); size_t n = LENGTH < rbuf.size ? LENGTH : rbuf.size; memcpy(rbuf.start, STRING, n); pn_connection_driver_read_done(d, n); return n; } pn_connection_driver_t *pni_connection_driver() { pn_connection_driver_t *d = (pn_connection_driver_t*)malloc(sizeof(*d)); if (pn_connection_driver_init(d, NULL, NULL) != 0) { free(d); return NULL; } return d; } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_long (unsigned long value) { return ULONG2NUM(value); } #ifdef SWIG_LONG_LONG_AVAILABLE SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_long_SS_long (unsigned long long value) { return ULL2NUM(value); } #endif SWIGINTERNINLINE VALUE SWIG_From_size_t (size_t value) { #ifdef SWIG_LONG_LONG_AVAILABLE if (sizeof(size_t) <= sizeof(unsigned long)) { #endif return SWIG_From_unsigned_SS_long ((unsigned long)(value)); #ifdef SWIG_LONG_LONG_AVAILABLE } else { /* assume sizeof(size_t) <= sizeof(unsigned long long) */ return SWIG_From_unsigned_SS_long_SS_long ((unsigned long long)(value)); } #endif } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_int (unsigned int value) { return SWIG_From_unsigned_SS_long (value); } #include #include /* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */ #ifndef SWIG_isfinite /* isfinite() is a macro for C99 */ # if defined(isfinite) # define SWIG_isfinite(X) (isfinite(X)) # elif defined(__cplusplus) && __cplusplus >= 201103L /* Use a template so that this works whether isfinite() is std::isfinite() or * in the global namespace. The reality seems to vary between compiler * versions. * * Make sure namespace std exists to avoid compiler warnings. * * extern "C++" is required as this fragment can end up inside an extern "C" { } block */ namespace std { } extern "C++" template inline int SWIG_isfinite_func(T x) { using namespace std; return isfinite(x); } # define SWIG_isfinite(X) (SWIG_isfinite_func(X)) # elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)) # define SWIG_isfinite(X) (__builtin_isfinite(X)) # elif defined(__clang__) && defined(__has_builtin) # if __has_builtin(__builtin_isfinite) # define SWIG_isfinite(X) (__builtin_isfinite(X)) # endif # elif defined(_MSC_VER) # define SWIG_isfinite(X) (_finite(X)) # elif defined(__sun) && defined(__SVR4) # include # 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/4.0.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE arg) { VALUE *args = (VALUE *)arg; VALUE obj = args[0]; VALUE type = TYPE(obj); double *res = (double *)(args[1]); *res = NUM2DBL(obj); (void)type; 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(VALUEFUNC(SWIG_AUX_NUM2DBL), (VALUE)a, VALUEFUNC(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_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; } #ifdef SWIG_LONG_LONG_AVAILABLE /*@SWIG:/usr/share/swig/4.0.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE arg) { VALUE *args = (VALUE *)arg; 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(VALUEFUNC(SWIG_AUX_NUM2LL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } #endif #ifdef SWIG_LONG_LONG_AVAILABLE SWIGINTERNINLINE VALUE SWIG_From_long_SS_long (long long value) { return LL2NUM(value); } #endif /* assume the binding does the incref in the wrapper */ pn_event_t* pn_event_copy(pn_event_t *evt) { return evt; } 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; } 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; } 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_signed_SS_char (signed char value) { return SWIG_From_long (value); } 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); } pn_connection_t *pn_cast_pn_connection(void *x) { return (pn_connection_t *) x; } pn_session_t *pn_cast_pn_session(void *x) { return (pn_session_t *) x; } pn_link_t *pn_cast_pn_link(void *x) { return (pn_link_t *) x; } pn_delivery_t *pn_cast_pn_delivery(void *x) { return (pn_delivery_t *) x; } pn_transport_t *pn_cast_pn_transport(void *x) { return (pn_transport_t *) x; } #include 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 *)calloc(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_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 *)calloc(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 *)calloc(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_transport_peek(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_peek", 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_peek", 2, argv[1] )); } buff2= (char *)calloc(n2+1, sizeof(char)); arg2 = (char *)(buff2); size2 = (size_t)(n2); arg3 = &size2; result = (int)wrap_pn_transport_peek(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_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 *)calloc(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 *)calloc(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; } 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 *","wrap_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","wrap_pn_messenger_send", 2, argv[1] )); } arg2 = (int)(val2); result = (int)wrap_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 *","wrap_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","wrap_pn_messenger_recv", 2, argv[1] )); } arg2 = (int)(val2); result = (int)wrap_pn_messenger_recv(arg1,arg2); vresult = SWIG_From_int((int)(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 *","wrap_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","wrap_pn_messenger_work", 2, argv[1] )); } arg2 = (int)(val2); result = (int)wrap_pn_messenger_work(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Pn_rbkey__class(int argc, VALUE *argv, VALUE self) { pn_class_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_class_t *)Pn_rbkey__class(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_class_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Pn_rbkey_new(int argc, VALUE *argv, VALUE self) { Pn_rbkey_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_rbkey_t *)Pn_rbkey_new(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Pn_rbkey_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Pn_rbkey_set_registry(int argc, VALUE *argv, VALUE self) { Pn_rbkey_t *arg1 = (Pn_rbkey_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_rbkey_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Pn_rbkey_t *","Pn_rbkey_set_registry", 1, argv[0] )); } arg1 = (Pn_rbkey_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_rbkey_set_registry", 2, argv[1] )); } Pn_rbkey_set_registry(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_Pn_rbkey_get_registry(int argc, VALUE *argv, VALUE self) { Pn_rbkey_t *arg1 = (Pn_rbkey_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_rbkey_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Pn_rbkey_t *","Pn_rbkey_get_registry", 1, argv[0] )); } arg1 = (Pn_rbkey_t *)(argp1); result = (void *)Pn_rbkey_get_registry(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Pn_rbkey_set_method(int argc, VALUE *argv, VALUE self) { Pn_rbkey_t *arg1 = (Pn_rbkey_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_rbkey_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Pn_rbkey_t *","Pn_rbkey_set_method", 1, argv[0] )); } arg1 = (Pn_rbkey_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_rbkey_set_method", 2, argv[1] )); } arg2 = (char *)(buf2); Pn_rbkey_set_method(arg1,arg2); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_Pn_rbkey_get_method(int argc, VALUE *argv, VALUE self) { Pn_rbkey_t *arg1 = (Pn_rbkey_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_rbkey_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Pn_rbkey_t *","Pn_rbkey_get_method", 1, argv[0] )); } arg1 = (Pn_rbkey_t *)(argp1); result = (char *)Pn_rbkey_get_method(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Pn_rbkey_set_key_value(int argc, VALUE *argv, VALUE self) { Pn_rbkey_t *arg1 = (Pn_rbkey_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_rbkey_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Pn_rbkey_t *","Pn_rbkey_set_key_value", 1, argv[0] )); } arg1 = (Pn_rbkey_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_rbkey_set_key_value", 2, argv[1] )); } arg2 = (char *)(buf2); Pn_rbkey_set_key_value(arg1,arg2); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_Pn_rbkey_get_key_value(int argc, VALUE *argv, VALUE self) { Pn_rbkey_t *arg1 = (Pn_rbkey_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_rbkey_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Pn_rbkey_t *","Pn_rbkey_get_key_value", 1, argv[0] )); } arg1 = (Pn_rbkey_t *)(argp1); result = (char *)Pn_rbkey_get_key_value(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pni_void2rbkey(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; int res1 ; Pn_rbkey_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 *","pni_void2rbkey", 1, argv[0] )); } result = (Pn_rbkey_t *)pni_void2rbkey(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Pn_rbkey_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_void2rb(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; int res1 ; VALUE 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_void2rb", 1, argv[0] )); } result = (VALUE)pn_void2rb(arg1); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_rb2void(int argc, VALUE *argv, VALUE self) { VALUE arg1 = (VALUE) 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; } arg1 = argv[0]; result = (void *)pn_rb2void(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pni_address_of(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; int res1 ; VALUE 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 *","pni_address_of", 1, argv[0] )); } result = (VALUE)pni_address_of(arg1); vresult = result; return vresult; fail: 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 ; 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_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_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_ssl_get_peer_hostname", 2, argv[1] )); } buff2= (char *)calloc(n2+1, sizeof(char)); arg2 = (char *)(buff2); size2 = (size_t)(n2); arg3 = &size2; result = (int)pn_ssl_get_peer_hostname(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_pni_ruby_get_proton_module(int argc, VALUE *argv, VALUE self) { VALUE result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (VALUE)pni_ruby_get_proton_module(); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pni_ruby_add_to_registry(int argc, VALUE *argv, VALUE self) { VALUE arg1 = (VALUE) 0 ; VALUE arg2 = (VALUE) 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } arg1 = argv[0]; arg2 = argv[1]; pni_ruby_add_to_registry(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pni_ruby_get_from_registry(int argc, VALUE *argv, VALUE self) { VALUE arg1 = (VALUE) 0 ; VALUE result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } arg1 = argv[0]; result = (VALUE)pni_ruby_get_from_registry(arg1); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pni_ruby_delete_from_registry(int argc, VALUE *argv, VALUE self) { VALUE arg1 = (VALUE) 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } arg1 = argv[0]; pni_ruby_delete_from_registry(arg1); return Qnil; fail: return Qnil; } static swig_class SwigClassPni_rbhandler_t; SWIGINTERN VALUE _wrap_Pni_rbhandler_t_handler_key_set(int argc, VALUE *argv, VALUE self) { Pni_rbhandler_t *arg1 = (Pni_rbhandler_t *) 0 ; VALUE arg2 = (VALUE) 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_Pni_rbhandler_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Pni_rbhandler_t *","handler_key", 1, self )); } arg1 = (Pni_rbhandler_t *)(argp1); arg2 = argv[0]; if (arg1) (arg1)->handler_key = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_Pni_rbhandler_t_handler_key_get(int argc, VALUE *argv, VALUE self) { Pni_rbhandler_t *arg1 = (Pni_rbhandler_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE 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_Pni_rbhandler_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Pni_rbhandler_t *","handler_key", 1, self )); } arg1 = (Pni_rbhandler_t *)(argp1); result = (VALUE) ((arg1)->handler_key); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_Pni_rbhandler_t_allocate(VALUE self) #else _wrap_Pni_rbhandler_t_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Pni_rbhandler_t); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_Pni_rbhandler_t(int argc, VALUE *argv, VALUE self) { Pni_rbhandler_t *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (Pni_rbhandler_t *)calloc(1, sizeof(Pni_rbhandler_t)); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_Pni_rbhandler_t(void *self) { Pni_rbhandler_t *arg1 = (Pni_rbhandler_t *)self; free((char *) arg1); } SWIGINTERN VALUE _wrap_pni_rbhandler(int argc, VALUE *argv, VALUE self) { pn_handler_t *arg1 = (pn_handler_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; Pni_rbhandler_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_handler_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_handler_t *","pni_rbhandler", 1, argv[0] )); } arg1 = (pn_handler_t *)(argp1); result = (Pni_rbhandler_t *)pni_rbhandler(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Pni_rbhandler_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pni_rbdispatch(int argc, VALUE *argv, VALUE self) { pn_handler_t *arg1 = (pn_handler_t *) 0 ; pn_event_t *arg2 = (pn_event_t *) 0 ; pn_event_type_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 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_handler_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_handler_t *","pni_rbdispatch", 1, argv[0] )); } arg1 = (pn_handler_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_event_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_event_t *","pni_rbdispatch", 2, argv[1] )); } arg2 = (pn_event_t *)(argp2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "pn_event_type_t","pni_rbdispatch", 3, argv[2] )); } arg3 = (pn_event_type_t)(val3); pni_rbdispatch(arg1,arg2,arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pni_rbhandler_finalize(int argc, VALUE *argv, VALUE self) { pn_handler_t *arg1 = (pn_handler_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_handler_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_handler_t *","pni_rbhandler_finalize", 1, argv[0] )); } arg1 = (pn_handler_t *)(argp1); pni_rbhandler_finalize(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_rbhandler(int argc, VALUE *argv, VALUE self) { VALUE arg1 = (VALUE) 0 ; pn_handler_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } arg1 = argv[0]; result = (pn_handler_t *)pn_rbhandler(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_handler_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pni_connection_driver_read_size(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pni_connection_driver_read_size", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); result = (size_t)pni_connection_driver_read_size(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pni_connection_driver_write_size(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pni_connection_driver_write_size", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); result = (size_t)pni_connection_driver_write_size(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pni_connection_driver_connection(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pni_connection_driver_connection", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); result = (pn_connection_t *)pni_connection_driver_connection(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pni_connection_driver_transport(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_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_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pni_connection_driver_transport", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); result = (pn_transport_t *)pni_connection_driver_transport(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_transport_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pni_connection_driver_read_copy(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_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 ; size_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pni_connection_driver_read_copy", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, &size2, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pni_connection_driver_read_copy", 2, argv[1] )); } arg2 = (char *)(buf2); arg3 = (size_t)(size2 - 1); result = (size_t)pni_connection_driver_read_copy(arg1,arg2,arg3); vresult = SWIG_From_size_t((size_t)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pni_connection_driver(int argc, VALUE *argv, VALUE self) { pn_connection_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_connection_driver_t *)pni_connection_driver(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_driver_t, 0 | 0 ); return vresult; fail: return Qnil; } 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 const *","pn_bytes", 2, argv[1] )); } arg2 = (char *)(buf2); result = pn_bytes(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; } SWIGINTERN VALUE _wrap_pn_bytes_null_get(VALUE self) { VALUE _val; _val = SWIG_NewPointerObj(SWIG_as_voidptr(&pn_bytes_null), SWIGTYPE_p_pn_bytes_t, 0 ); return _val; } SWIGINTERN VALUE _wrap_pn_rwbytes(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_rwbytes_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_rwbytes", 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_rwbytes", 2, argv[1] )); } arg2 = (char *)(buf2); result = pn_rwbytes(arg1,arg2); vresult = SWIG_NewPointerObj((pn_rwbytes_t *)memcpy((pn_rwbytes_t *)calloc(1,sizeof(pn_rwbytes_t)),&result,sizeof(pn_rwbytes_t)), SWIGTYPE_p_pn_rwbytes_t, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_pn_rwbytes_null_get(VALUE self) { VALUE _val; _val = SWIG_NewPointerObj(SWIG_as_voidptr(&pn_rwbytes_null), SWIGTYPE_p_pn_rwbytes_t, 0 ); return _val; } SWIGINTERN VALUE _wrap_PN_OBJECT_get(VALUE self) { VALUE _val; _val = SWIG_NewPointerObj(SWIG_as_voidptr(PN_OBJECT), SWIGTYPE_p_pn_class_t, 0 ); return _val; } SWIGINTERN VALUE _wrap_PN_VOID_get(VALUE self) { VALUE _val; _val = SWIG_NewPointerObj(SWIG_as_voidptr(PN_VOID), SWIGTYPE_p_pn_class_t, 0 ); return _val; } SWIGINTERN VALUE _wrap_PN_WEAKREF_get(VALUE self) { VALUE _val; _val = SWIG_NewPointerObj(SWIG_as_voidptr(PN_WEAKREF), SWIGTYPE_p_pn_class_t, 0 ); return _val; } SWIGINTERN VALUE _wrap_pn_class_id(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_cid_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_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_id", 1, argv[0] )); } arg1 = (pn_class_t *)(argp1); result = (pn_cid_t)pn_class_id((struct pn_class_t const *)arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_name(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_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_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_name", 1, argv[0] )); } arg1 = (pn_class_t *)(argp1); result = (char *)pn_class_name((struct pn_class_t const *)arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_new(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t 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_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_new", 1, argv[0] )); } arg1 = (pn_class_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_class_new", 2, argv[1] )); } arg2 = (size_t)(val2); result = (void *)pn_class_new((struct pn_class_t const *)arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_incref(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_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_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_incref", 1, argv[0] )); } arg1 = (pn_class_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_class_incref", 2, argv[1] )); } result = (void *)pn_class_incref((struct pn_class_t const *)arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_refcount(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_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_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_refcount", 1, argv[0] )); } arg1 = (pn_class_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_class_refcount", 2, argv[1] )); } result = (int)pn_class_refcount((struct pn_class_t const *)arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_decref(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_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_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_decref", 1, argv[0] )); } arg1 = (pn_class_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_class_decref", 2, argv[1] )); } result = (int)pn_class_decref((struct pn_class_t const *)arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_free(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_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_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_free", 1, argv[0] )); } arg1 = (pn_class_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_class_free", 2, argv[1] )); } pn_class_free((struct pn_class_t const *)arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_reify(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; pn_class_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_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_reify", 1, argv[0] )); } arg1 = (pn_class_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_class_reify", 2, argv[1] )); } result = (pn_class_t *)pn_class_reify((struct pn_class_t const *)arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_class_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_hashcode(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; 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_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_hashcode", 1, argv[0] )); } arg1 = (pn_class_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_class_hashcode", 2, argv[1] )); } result = (uintptr_t)pn_class_hashcode((struct pn_class_t const *)arg1,arg2); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_compare(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void *arg2 = (void *) 0 ; void *arg3 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; int res3 ; intptr_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_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_compare", 1, argv[0] )); } arg1 = (pn_class_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_class_compare", 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_class_compare", 3, argv[2] )); } result = pn_class_compare((struct pn_class_t const *)arg1,arg2,arg3); vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)calloc(1,sizeof(intptr_t)),&result,sizeof(intptr_t)), SWIGTYPE_p_intptr_t, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_equals(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void *arg2 = (void *) 0 ; void *arg3 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; int res3 ; bool 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_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_equals", 1, argv[0] )); } arg1 = (pn_class_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_class_equals", 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_class_equals", 3, argv[2] )); } result = (bool)pn_class_equals((struct pn_class_t const *)arg1,arg2,arg3); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_class_inspect(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; void *arg2 = (void *) 0 ; pn_string_t *arg3 = (pn_string_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; 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_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_inspect", 1, argv[0] )); } arg1 = (pn_class_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_class_inspect", 2, argv[1] )); } res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_pn_string_t, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "pn_string_t *","pn_class_inspect", 3, argv[2] )); } arg3 = (pn_string_t *)(argp3); result = (int)pn_class_inspect((struct pn_class_t const *)arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_void_new(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t 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_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_void_new", 1, argv[0] )); } arg1 = (pn_class_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_void_new", 2, argv[1] )); } arg2 = (size_t)(val2); result = (void *)pn_void_new((struct pn_class_t const *)arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_void_incref(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_void_incref", 1, argv[0] )); } pn_void_incref(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_void_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_void_decref", 1, argv[0] )); } pn_void_decref(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_void_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_void_refcount", 1, argv[0] )); } result = (int)pn_void_refcount(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_void_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_void_hashcode", 1, argv[0] )); } result = (uintptr_t)pn_void_hashcode(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_void_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_void_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_void_compare", 2, argv[1] )); } result = pn_void_compare(arg1,arg2); vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)calloc(1,sizeof(intptr_t)),&result,sizeof(intptr_t)), SWIGTYPE_p_intptr_t, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_void_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_void_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_void_inspect", 2, argv[1] )); } arg2 = (pn_string_t *)(argp2); result = (int)pn_void_inspect(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_object_new(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t 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_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_object_new", 1, argv[0] )); } arg1 = (pn_class_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_object_new", 2, argv[1] )); } arg2 = (size_t)(val2); result = (void *)pn_object_new((struct pn_class_t const *)arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_object_reify(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_object_reify", 1, argv[0] )); } result = (pn_class_t *)pn_object_reify(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_class_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_object_incref(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_object_incref", 1, argv[0] )); } pn_object_incref(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_object_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_object_refcount", 1, argv[0] )); } result = (int)pn_object_refcount(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_object_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_object_decref", 1, argv[0] )); } pn_object_decref(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_object_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_object_free", 1, argv[0] )); } pn_object_free(arg1); 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 ; 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_decref", 1, argv[0] )); } result = (int)pn_decref(arg1); vresult = SWIG_From_int((int)(result)); return vresult; 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_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 = (uintptr_t)pn_hashcode(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); 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 *)calloc(1,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) { pn_class_t *arg1 = (pn_class_t *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t 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; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_list", 1, argv[0] )); } arg1 = (pn_class_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_list", 2, argv[1] )); } arg2 = (size_t)(val2); result = (pn_list_t *)pn_list((struct pn_class_t const *)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_pop(int argc, VALUE *argv, VALUE self) { pn_list_t *arg1 = (pn_list_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_list_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_pop", 1, argv[0] )); } arg1 = (pn_list_t *)(argp1); result = (void *)pn_list_pop(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); 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_list_minpush(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 ; 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_minpush", 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_minpush", 2, argv[1] )); } pn_list_minpush(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_list_minpop(int argc, VALUE *argv, VALUE self) { pn_list_t *arg1 = (pn_list_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_list_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_minpop", 1, argv[0] )); } arg1 = (pn_list_t *)(argp1); result = (void *)pn_list_minpop(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_map(int argc, VALUE *argv, VALUE self) { pn_class_t *arg1 = (pn_class_t *) 0 ; pn_class_t *arg2 = (pn_class_t *) 0 ; size_t arg3 ; float arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; pn_map_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_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_map", 1, argv[0] )); } arg1 = (pn_class_t *)(argp1); 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 const *","pn_map", 2, argv[1] )); } arg2 = (pn_class_t *)(argp2); ecode3 = SWIG_AsVal_size_t(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_map", 3, argv[2] )); } arg3 = (size_t)(val3); ecode4 = SWIG_AsVal_float(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "float","pn_map", 4, argv[3] )); } arg4 = (float)(val4); result = (pn_map_t *)pn_map((struct pn_class_t const *)arg1,(struct pn_class_t const *)arg2,arg3,arg4); 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_handle_t)pn_map_head(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); 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 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long val2 ; int ecode2 = 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); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_next", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (pn_handle_t)pn_map_next(arg1,(void const *)arg2); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); 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 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long 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_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); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_key", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (void *)pn_map_key(arg1,(void const *)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 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long 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_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); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_value", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (void *)pn_map_value(arg1,(void const *)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) { pn_class_t *arg1 = (pn_class_t *) 0 ; size_t arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; float 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; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_hash", 1, argv[0] )); } arg1 = (pn_class_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_hash", 2, argv[1] )); } arg2 = (size_t)(val2); ecode3 = SWIG_AsVal_float(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "float","pn_hash", 3, argv[2] )); } arg3 = (float)(val3); result = (pn_hash_t *)pn_hash((struct pn_class_t const *)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 ; unsigned long long val2 ; int ecode2 = 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); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_put", 2, argv[1] )); } arg2 = (uintptr_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_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 ; unsigned long long 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_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); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_get", 2, argv[1] )); } arg2 = (uintptr_t)(val2); 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 ; 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_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); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_del", 2, argv[1] )); } arg2 = (uintptr_t)(val2); 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_handle_t)pn_hash_head(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); 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 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long val2 ; int ecode2 = 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); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_next", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (pn_handle_t)pn_hash_next(arg1,(void const *)arg2); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); 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 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long val2 ; int ecode2 = 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); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_key", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (uintptr_t)pn_hash_key(arg1,(void const *)arg2); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); 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 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long 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_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); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_value", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (void *)pn_hash_value(arg1,(void const *)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; } SWIGINTERN VALUE _wrap_pn_record(int argc, VALUE *argv, VALUE self) { pn_record_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_record_t *)pn_record(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_record_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_record_def(int argc, VALUE *argv, VALUE self) { pn_record_t *arg1 = (pn_record_t *) 0 ; pn_handle_t arg2 = (pn_handle_t) 0 ; pn_class_t *arg3 = (pn_class_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 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_record_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_def", 1, argv[0] )); } arg1 = (pn_record_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( "", "pn_handle_t","pn_record_def", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "pn_class_t const *","pn_record_def", 3, argv[2] )); } arg3 = (pn_class_t *)(argp3); pn_record_def(arg1,(void const *)arg2,(struct pn_class_t const *)arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_record_has(int argc, VALUE *argv, VALUE self) { pn_record_t *arg1 = (pn_record_t *) 0 ; pn_handle_t arg2 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned 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_record_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_has", 1, argv[0] )); } arg1 = (pn_record_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( "", "pn_handle_t","pn_record_has", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (bool)pn_record_has(arg1,(void const *)arg2); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_record_get(int argc, VALUE *argv, VALUE self) { pn_record_t *arg1 = (pn_record_t *) 0 ; pn_handle_t arg2 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long 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_record_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_get", 1, argv[0] )); } arg1 = (pn_record_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( "", "pn_handle_t","pn_record_get", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (void *)pn_record_get(arg1,(void const *)arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_record_set(int argc, VALUE *argv, VALUE self) { pn_record_t *arg1 = (pn_record_t *) 0 ; pn_handle_t arg2 = (pn_handle_t) 0 ; void *arg3 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long 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_record_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_set", 1, argv[0] )); } arg1 = (pn_record_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( "", "pn_handle_t","pn_record_set", 2, argv[1] )); } arg2 = (pn_handle_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_record_set", 3, argv[2] )); } pn_record_set(arg1,(void const *)arg2,arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_record_clear(int argc, VALUE *argv, VALUE self) { pn_record_t *arg1 = (pn_record_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_record_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_clear", 1, argv[0] )); } arg1 = (pn_record_t *)(argp1); pn_record_clear(arg1); return Qnil; 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_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; } 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_condition_copy(int argc, VALUE *argv, VALUE self) { pn_condition_t *arg1 = (pn_condition_t *) 0 ; pn_condition_t *arg2 = (pn_condition_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_condition_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_copy", 1, argv[0] )); } arg1 = (pn_condition_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_condition_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_copy", 2, argv[1] )); } arg2 = (pn_condition_t *)(argp2); result = (int)pn_condition_copy(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_condition(int argc, VALUE *argv, VALUE self) { pn_condition_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_condition_t *)pn_condition(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_condition_free(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_free", 1, argv[0] )); } arg1 = (pn_condition_t *)(argp1); pn_condition_free(arg1); return Qnil; 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_release(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_release", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); pn_connection_release(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_collector(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_collector_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_collector", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); result = (pn_collector_t *)pn_connection_collector(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_collector_t, 0 | 0 ); return vresult; 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_attachments(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_record_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_attachments", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); result = (pn_record_t *)pn_connection_attachments(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_record_t, 0 | 0 ); return vresult; 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_set_user(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_user", 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_user", 2, argv[1] )); } arg2 = (char *)(buf2); pn_connection_set_user(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_set_password(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_password", 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_password", 2, argv[1] )); } arg2 = (char *)(buf2); pn_connection_set_password(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_set_authorization(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_authorization", 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_authorization", 2, argv[1] )); } arg2 = (char *)(buf2); pn_connection_set_authorization(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_user(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_user", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); result = (char *)pn_connection_get_user(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_get_authorization(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_authorization", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); result = (char *)pn_connection_get_authorization(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: 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); 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_attachments(int argc, VALUE *argv, VALUE self) { pn_session_t *arg1 = (pn_session_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_record_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_attachments", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); result = (pn_record_t *)pn_session_attachments(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_record_t, 0 | 0 ); return vresult; 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_get_outgoing_window(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_outgoing_window", 1, argv[0] )); } arg1 = (pn_session_t *)(argp1); result = (size_t)pn_session_get_outgoing_window(arg1); vresult = SWIG_From_size_t((size_t)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_session_set_outgoing_window(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_outgoing_window", 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_outgoing_window", 2, argv[1] )); } arg2 = (size_t)(val2); pn_session_set_outgoing_window(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_attachments(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_record_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_attachments", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (pn_record_t *)pn_link_attachments(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_record_t, 0 | 0 ); return vresult; 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_detach(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_detach", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); pn_link_detach(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_link_max_message_size(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_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_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_max_message_size", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (uint64_t)pn_link_max_message_size(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_set_max_message_size(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_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_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_set_max_message_size", 1, argv[0] )); } arg1 = (pn_link_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_link_set_max_message_size", 2, argv[1] )); } arg2 = (uint64_t)(val2); pn_link_set_max_message_size(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_remote_max_message_size(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_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_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_max_message_size", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (uint64_t)pn_link_remote_max_message_size(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_link_properties(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_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_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_properties", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (pn_data_t *)pn_link_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_link_remote_properties(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_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_link_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_properties", 1, argv[0] )); } arg1 = (pn_link_t *)(argp1); result = (pn_data_t *)pn_link_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_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_has_expiry_policy(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 const *","pn_terminus_has_expiry_policy", 1, argv[0] )); } arg1 = (pn_terminus_t *)(argp1); result = (bool)pn_terminus_has_expiry_policy((struct pn_terminus_t const *)arg1); vresult = SWIG_From_bool((bool)(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; } SWIGINTERN VALUE _wrap_pn_dtag(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_delivery_tag_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_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","pn_dtag", 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_dtag", 2, argv[1] )); } arg2 = (size_t)(val2); result = pn_dtag((char const *)arg1,arg2); { vresult = rb_str_new((&result)->start, (&result)->size); } if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); return vresult; fail: if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); return Qnil; } 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_attachments(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_record_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_attachments", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); result = (pn_record_t *)pn_delivery_attachments(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_record_t, 0 | 0 ); return vresult; 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_aborted(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_aborted", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); result = (bool)pn_delivery_aborted(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_current(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_current", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); result = (bool)pn_delivery_current(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_delivery_abort(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_abort", 1, argv[0] )); } arg1 = (pn_delivery_t *)(argp1); pn_delivery_abort(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_type_name(int argc, VALUE *argv, VALUE self) { uint64_t arg1 ; unsigned long long 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_unsigned_SS_long_SS_long(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","pn_disposition_type_name", 1, argv[0] )); } arg1 = (uint64_t)(val1); result = (char *)pn_disposition_type_name(arg1); vresult = SWIG_FromCharPtr((const char *)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_set_server(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_set_server", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); pn_transport_set_server(arg1); return Qnil; 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_get_user(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_get_user", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (char *)pn_transport_get_user(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_require_auth(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_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_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_require_auth", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_transport_require_auth", 2, argv[1] )); } arg2 = (bool)(val2); pn_transport_require_auth(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_is_authenticated(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_is_authenticated", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (bool)pn_transport_is_authenticated(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_require_encryption(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_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_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_require_encryption", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_transport_require_encryption", 2, argv[1] )); } arg2 = (bool)(val2); pn_transport_require_encryption(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_is_encrypted(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_is_encrypted", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (bool)pn_transport_is_encrypted(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_condition(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_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_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_condition", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (pn_condition_t *)pn_transport_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_transport_logger(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_logger_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_logger", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (pn_logger_t *)pn_transport_logger(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_logger_t, 0 | 0 ); return vresult; 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_attachments(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_record_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_attachments", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (pn_record_t *)pn_transport_attachments(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_record_t, 0 | 0 ); return vresult; 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 ; 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_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); result = (int)pn_transport_set_channel_max(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; 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 ; 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_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 = (ssize_t)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_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_head_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_head_closed", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (bool)pn_transport_head_closed(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_transport_tail_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_tail_closed", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (bool)pn_transport_tail_closed(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 ; int64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long long val2 ; int ecode2 = 0 ; int64_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( "", "int64_t","pn_transport_tick", 2, argv[1] )); } arg2 = (int64_t)(val2); result = (int64_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_transport_connection(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_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_transport_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_connection", 1, argv[0] )); } arg1 = (pn_transport_t *)(argp1); result = (pn_connection_t *)pn_transport_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_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_release(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_release", 1, argv[0] )); } arg1 = (pn_collector_t *)(argp1); pn_collector_release(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_collector_drain(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_drain", 1, argv[0] )); } arg1 = (pn_collector_t *)(argp1); pn_collector_drain(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_collector_put(int argc, VALUE *argv, VALUE self) { pn_collector_t *arg1 = (pn_collector_t *) 0 ; pn_class_t *arg2 = (pn_class_t *) 0 ; void *arg3 = (void *) 0 ; pn_event_type_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 ; int val4 ; int ecode4 = 0 ; pn_event_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_collector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_put", 1, argv[0] )); } arg1 = (pn_collector_t *)(argp1); 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 const *","pn_collector_put", 2, argv[1] )); } arg2 = (pn_class_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_collector_put", 3, argv[2] )); } ecode4 = SWIG_AsVal_int(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "pn_event_type_t","pn_collector_put", 4, argv[3] )); } arg4 = (pn_event_type_t)(val4); result = (pn_event_t *)pn_collector_put(arg1,(struct pn_class_t const *)arg2,arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_t, 0 | 0 ); return vresult; 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_collector_next(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_next", 1, argv[0] )); } arg1 = (pn_collector_t *)(argp1); result = (pn_event_t *)pn_collector_next(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_prev(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_prev", 1, argv[0] )); } arg1 = (pn_collector_t *)(argp1); result = (pn_event_t *)pn_collector_prev(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_more(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_more", 1, argv[0] )); } arg1 = (pn_collector_t *)(argp1); result = (bool)pn_collector_more(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_class(int argc, VALUE *argv, VALUE self) { pn_event_t *arg1 = (pn_event_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; 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], &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_class", 1, argv[0] )); } arg1 = (pn_event_t *)(argp1); result = (pn_class_t *)pn_event_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_event_context(int argc, VALUE *argv, VALUE self) { pn_event_t *arg1 = (pn_event_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_event_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_context", 1, argv[0] )); } arg1 = (pn_event_t *)(argp1); result = (void *)pn_event_context(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); 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_event_attachments(int argc, VALUE *argv, VALUE self) { pn_event_t *arg1 = (pn_event_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_record_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_attachments", 1, argv[0] )); } arg1 = (pn_event_t *)(argp1); result = (pn_record_t *)pn_event_attachments(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_record_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_event_condition(int argc, VALUE *argv, VALUE self) { pn_event_t *arg1 = (pn_event_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; struct 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_event_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_condition", 1, argv[0] )); } arg1 = (pn_event_t *)(argp1); result = (struct pn_condition_t *)pn_event_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_event_copy(int argc, VALUE *argv, VALUE self) { pn_event_t *arg1 = (pn_event_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_event_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_copy", 1, argv[0] )); } arg1 = (pn_event_t *)(argp1); result = (pn_event_t *)pn_event_copy(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_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; default: 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; default: 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_unsigned_SS_long((unsigned 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 ; 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_group_sequence", 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_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_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), "Contract violation: require: (arg1!=NULL)"); 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_message_encode2(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; pn_rwbytes_t *arg2 = (pn_rwbytes_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 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_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_encode2", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_rwbytes_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_rwbytes_t *","pn_message_encode2", 2, argv[1] )); } arg2 = (pn_rwbytes_t *)(argp2); result = (ssize_t)pn_message_encode2(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_send(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_t *) 0 ; pn_link_t *arg2 = (pn_link_t *) 0 ; pn_rwbytes_t *arg3 = (pn_rwbytes_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 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_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_send", 1, argv[0] )); } arg1 = (pn_message_t *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_link_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_link_t *","pn_message_send", 2, argv[1] )); } arg2 = (pn_link_t *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_pn_rwbytes_t, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "pn_rwbytes_t *","pn_message_send", 3, argv[2] )); } arg3 = (pn_rwbytes_t *)(argp3); result = (ssize_t)pn_message_send(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_message_data(int argc, VALUE *argv, VALUE self) { pn_message_t *arg1 = (pn_message_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_message_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_data", 1, argv[0] )); } arg1 = (pn_message_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_message_data", 2, argv[1] )); } arg2 = (pn_data_t *)(argp2); result = (int)pn_message_data(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: 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_extended(int argc, VALUE *argv, VALUE self) { bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (bool)pn_sasl_extended(); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: 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_sasl_get_user(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_get_user", 1, argv[0] )); } arg1 = (pn_sasl_t *)(argp1); result = (char *)pn_sasl_get_user(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl_get_authorization(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_get_authorization", 1, argv[0] )); } arg1 = (pn_sasl_t *)(argp1); result = (char *)pn_sasl_get_authorization(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl_get_mech(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_get_mech", 1, argv[0] )); } arg1 = (pn_sasl_t *)(argp1); result = (char *)pn_sasl_get_mech(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl_allowed_mechs(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_allowed_mechs", 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_allowed_mechs", 2, argv[1] )); } arg2 = (char *)(buf2); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_sasl_allowed_mechs(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_set_allow_insecure_mechs(int argc, VALUE *argv, VALUE self) { pn_sasl_t *arg1 = (pn_sasl_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_sasl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_set_allow_insecure_mechs", 1, argv[0] )); } arg1 = (pn_sasl_t *)(argp1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_sasl_set_allow_insecure_mechs", 2, argv[1] )); } arg2 = (bool)(val2); pn_sasl_set_allow_insecure_mechs(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl_get_allow_insecure_mechs(int argc, VALUE *argv, VALUE self) { pn_sasl_t *arg1 = (pn_sasl_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_sasl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_get_allow_insecure_mechs", 1, argv[0] )); } arg1 = (pn_sasl_t *)(argp1); result = (bool)pn_sasl_get_allow_insecure_mechs(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_sasl_config_name(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_config_name", 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_config_name", 2, argv[1] )); } arg2 = (char *)(buf2); pn_sasl_config_name(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_config_path(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_config_path", 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_config_path", 2, argv[1] )); } arg2 = (char *)(buf2); pn_sasl_config_path(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_ssl_present(int argc, VALUE *argv, VALUE self) { bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (bool)pn_ssl_present(); vresult = SWIG_From_bool((bool)(result)); return vresult; 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_set_protocols(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_protocols", 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_protocols", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)pn_ssl_domain_set_protocols(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_ciphers(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_ciphers", 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_ciphers", 2, argv[1] )); } arg2 = (char *)(buf2); result = (int)pn_ssl_domain_set_ciphers(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_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_get_ssf(int argc, VALUE *argv, VALUE self) { pn_ssl_t *arg1 = (pn_ssl_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_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_get_ssf", 1, argv[0] )); } arg1 = (pn_ssl_t *)(argp1); result = (int)pn_ssl_get_ssf(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: 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_remote_subject(int argc, VALUE *argv, VALUE self) { pn_ssl_t *arg1 = (pn_ssl_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_ssl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_get_remote_subject", 1, argv[0] )); } arg1 = (pn_ssl_t *)(argp1); result = (char *)pn_ssl_get_remote_subject(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_ssl_get_cert_fingerprint(int argc, VALUE *argv, VALUE self) { pn_ssl_t *arg1 = (pn_ssl_t *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; pn_ssl_hash_alg arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 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_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_get_cert_fingerprint", 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_cert_fingerprint", 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_ssl_get_cert_fingerprint", 3, argv[2] )); } arg3 = (size_t)(val3); ecode4 = SWIG_AsVal_int(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "pn_ssl_hash_alg","pn_ssl_get_cert_fingerprint", 4, argv[3] )); } arg4 = (pn_ssl_hash_alg)(val4); result = (int)pn_ssl_get_cert_fingerprint(arg1,arg2,arg3,arg4); 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_remote_subject_subfield(int argc, VALUE *argv, VALUE self) { pn_ssl_t *arg1 = (pn_ssl_t *) 0 ; pn_ssl_cert_subject_subfield arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; char *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_ssl_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_get_remote_subject_subfield", 1, argv[0] )); } arg1 = (pn_ssl_t *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_ssl_cert_subject_subfield","pn_ssl_get_remote_subject_subfield", 2, argv[1] )); } arg2 = (pn_ssl_cert_subject_subfield)(val2); result = (char *)pn_ssl_get_remote_subject_subfield(arg1,arg2); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: 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; } 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_encoded_size(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_encoded_size", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (ssize_t)pn_data_encoded_size(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: 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 = NUM2UINT(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 = NUM2ULL(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_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 = UINT2NUM(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_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_handle_t)pn_data_point(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); 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 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned 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_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); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_data_restore", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (bool)pn_data_restore(arg1,(void const *)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; } SWIGINTERN VALUE _wrap_pn_cast_pn_connection(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; int res1 ; 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],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_cast_pn_connection", 1, argv[0] )); } result = (pn_connection_t *)pn_cast_pn_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_cast_pn_session(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; int res1 ; 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],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_cast_pn_session", 1, argv[0] )); } result = (pn_session_t *)pn_cast_pn_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_cast_pn_link(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; int res1 ; 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],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_cast_pn_link", 1, argv[0] )); } result = (pn_link_t *)pn_cast_pn_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_cast_pn_delivery(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; int res1 ; 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],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_cast_pn_delivery", 1, argv[0] )); } result = (pn_delivery_t *)pn_cast_pn_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_cast_pn_transport(int argc, VALUE *argv, VALUE self) { void *arg1 = (void *) 0 ; int res1 ; 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],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_cast_pn_transport", 1, argv[0] )); } result = (pn_transport_t *)pn_cast_pn_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_connection_driver_init(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ; pn_connection_t *arg2 = (pn_connection_t *) 0 ; pn_transport_t *arg3 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_init", 1, argv[0] )); } arg1 = (pn_connection_driver_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_connection_driver_init", 2, argv[1] )); } arg2 = (pn_connection_t *)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_pn_transport_t, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "pn_transport_t *","pn_connection_driver_init", 3, argv[2] )); } arg3 = (pn_transport_t *)(argp3); result = (int)pn_connection_driver_init(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_driver_bind(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_bind", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); result = (int)pn_connection_driver_bind(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_driver_destroy(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_destroy", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); pn_connection_driver_destroy(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_driver_release_connection(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_release_connection", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); result = (pn_connection_t *)pn_connection_driver_release_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_connection_driver_read_buffer(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_rwbytes_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_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_read_buffer", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); result = pn_connection_driver_read_buffer(arg1); vresult = SWIG_NewPointerObj((pn_rwbytes_t *)memcpy((pn_rwbytes_t *)calloc(1,sizeof(pn_rwbytes_t)),&result,sizeof(pn_rwbytes_t)), SWIGTYPE_p_pn_rwbytes_t, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_driver_read_done(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_read_done", 1, argv[0] )); } arg1 = (pn_connection_driver_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_connection_driver_read_done", 2, argv[1] )); } arg2 = (size_t)(val2); pn_connection_driver_read_done(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_driver_read_close(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_read_close", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); pn_connection_driver_read_close(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_driver_read_closed(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_read_closed", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); result = (bool)pn_connection_driver_read_closed(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_driver_write_buffer(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_write_buffer", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); result = pn_connection_driver_write_buffer(arg1); { vresult = rb_str_new((&result)->start, (&result)->size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_driver_write_done(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_write_done", 1, argv[0] )); } arg1 = (pn_connection_driver_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_connection_driver_write_done", 2, argv[1] )); } arg2 = (size_t)(val2); pn_connection_driver_write_done(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_driver_write_close(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_write_close", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); pn_connection_driver_write_close(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_driver_write_closed(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_write_closed", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); result = (bool)pn_connection_driver_write_closed(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_driver_close(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_close", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); pn_connection_driver_close(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_driver_next_event(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_next_event", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); result = (pn_event_t *)pn_connection_driver_next_event(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_driver_has_event(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_has_event", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); result = (bool)pn_connection_driver_has_event(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_driver_finished(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_finished", 1, argv[0] )); } arg1 = (pn_connection_driver_t *)(argp1); result = (bool)pn_connection_driver_finished(arg1); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_connection_driver_errorf(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; void *arg4 = 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) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_errorf", 1, argv[0] )); } arg1 = (pn_connection_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_connection_driver_errorf", 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_connection_driver_errorf", 3, argv[2] )); } arg3 = (char *)(buf3); pn_connection_driver_errorf(arg1,(char const *)arg2,(char const *)arg3,arg4); 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_connection_driver_log(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_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_driver_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_log", 1, argv[0] )); } arg1 = (pn_connection_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_connection_driver_log", 2, argv[1] )); } arg2 = (char *)(buf2); pn_connection_driver_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_connection_driver_ptr(int argc, VALUE *argv, VALUE self) { pn_connection_t *arg1 = (pn_connection_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_connection_driver_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_driver_ptr", 1, argv[0] )); } arg1 = (pn_connection_t *)(argp1); result = (pn_connection_driver_t **)pn_connection_driver_ptr(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_pn_connection_driver_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_url(int argc, VALUE *argv, VALUE self) { pn_url_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_url_t *)pn_url(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_url_t, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_url_parse(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; pn_url_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_url_parse", 1, argv[0] )); } arg1 = (char *)(buf1); result = (pn_url_t *)pn_url_parse((char const *)arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_url_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_url_free(int argc, VALUE *argv, VALUE self) { pn_url_t *arg1 = (pn_url_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_url_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_free", 1, argv[0] )); } arg1 = (pn_url_t *)(argp1); pn_url_free(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_url_clear(int argc, VALUE *argv, VALUE self) { pn_url_t *arg1 = (pn_url_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_url_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_clear", 1, argv[0] )); } arg1 = (pn_url_t *)(argp1); pn_url_clear(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_url_str(int argc, VALUE *argv, VALUE self) { pn_url_t *arg1 = (pn_url_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_url_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_str", 1, argv[0] )); } arg1 = (pn_url_t *)(argp1); result = (char *)pn_url_str(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_url_get_scheme(int argc, VALUE *argv, VALUE self) { pn_url_t *arg1 = (pn_url_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_url_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_get_scheme", 1, argv[0] )); } arg1 = (pn_url_t *)(argp1); result = (char *)pn_url_get_scheme(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_url_get_username(int argc, VALUE *argv, VALUE self) { pn_url_t *arg1 = (pn_url_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_url_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_get_username", 1, argv[0] )); } arg1 = (pn_url_t *)(argp1); result = (char *)pn_url_get_username(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_url_get_password(int argc, VALUE *argv, VALUE self) { pn_url_t *arg1 = (pn_url_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_url_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_get_password", 1, argv[0] )); } arg1 = (pn_url_t *)(argp1); result = (char *)pn_url_get_password(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_url_get_host(int argc, VALUE *argv, VALUE self) { pn_url_t *arg1 = (pn_url_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_url_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_get_host", 1, argv[0] )); } arg1 = (pn_url_t *)(argp1); result = (char *)pn_url_get_host(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_url_get_port(int argc, VALUE *argv, VALUE self) { pn_url_t *arg1 = (pn_url_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_url_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_get_port", 1, argv[0] )); } arg1 = (pn_url_t *)(argp1); result = (char *)pn_url_get_port(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_url_get_path(int argc, VALUE *argv, VALUE self) { pn_url_t *arg1 = (pn_url_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_url_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_get_path", 1, argv[0] )); } arg1 = (pn_url_t *)(argp1); result = (char *)pn_url_get_path(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pn_url_set_scheme(int argc, VALUE *argv, VALUE self) { pn_url_t *arg1 = (pn_url_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_url_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_set_scheme", 1, argv[0] )); } arg1 = (pn_url_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_url_set_scheme", 2, argv[1] )); } arg2 = (char *)(buf2); pn_url_set_scheme(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_url_set_username(int argc, VALUE *argv, VALUE self) { pn_url_t *arg1 = (pn_url_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_url_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_set_username", 1, argv[0] )); } arg1 = (pn_url_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_url_set_username", 2, argv[1] )); } arg2 = (char *)(buf2); pn_url_set_username(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_url_set_password(int argc, VALUE *argv, VALUE self) { pn_url_t *arg1 = (pn_url_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_url_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_set_password", 1, argv[0] )); } arg1 = (pn_url_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_url_set_password", 2, argv[1] )); } arg2 = (char *)(buf2); pn_url_set_password(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_url_set_host(int argc, VALUE *argv, VALUE self) { pn_url_t *arg1 = (pn_url_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_url_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_set_host", 1, argv[0] )); } arg1 = (pn_url_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_url_set_host", 2, argv[1] )); } arg2 = (char *)(buf2); pn_url_set_host(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_url_set_port(int argc, VALUE *argv, VALUE self) { pn_url_t *arg1 = (pn_url_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_url_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_set_port", 1, argv[0] )); } arg1 = (pn_url_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_url_set_port", 2, argv[1] )); } arg2 = (char *)(buf2); pn_url_set_port(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_url_set_path(int argc, VALUE *argv, VALUE self) { pn_url_t *arg1 = (pn_url_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_url_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_set_path", 1, argv[0] )); } arg1 = (pn_url_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_url_set_path", 2, argv[1] )); } arg2 = (char *)(buf2); pn_url_set_path(arg1,(char const *)arg2); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static swig_type_info _swigt__p_Pn_rbkey_t = {"_p_Pn_rbkey_t", "Pn_rbkey_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Pni_rbhandler_t = {"_p_Pni_rbhandler_t", "Pni_rbhandler_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_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_int = {"_p_int", "int *|ssize_t *|pn_state_t *|pn_trace_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 *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_long_long = {"_p_long_long", "int64_t *|long long *|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_p_pn_connection_driver_t = {"_p_p_pn_connection_driver_t", "struct pn_connection_driver_t **|pn_connection_driver_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_bytes_t = {"_p_pn_bytes_t", "struct pn_bytes_t *|pn_bytes_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_cid_t = {"_p_pn_cid_t", "enum pn_cid_t *|pn_cid_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_class_t = {"_p_pn_class_t", "struct 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_driver_t = {"_p_pn_connection_driver_t", "struct pn_connection_driver_t *|pn_connection_driver_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_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_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_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_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_handler_t = {"_p_pn_handler_t", "struct pn_handler_t *|pn_handler_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_iterator_t = {"_p_pn_iterator_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_logger_t = {"_p_pn_logger_t", "pn_logger_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", "pn_messenger_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_proactor_t = {"_p_pn_proactor_t", "struct pn_proactor_t *|pn_proactor_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_raw_connection_t = {"_p_pn_raw_connection_t", "struct pn_raw_connection_t *|pn_raw_connection_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_record_t = {"_p_pn_record_t", "struct pn_record_t *|pn_record_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_rwbytes_t = {"_p_pn_rwbytes_t", "struct pn_rwbytes_t *|pn_rwbytes_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_t = {"_p_pn_sasl_t", "struct pn_sasl_t *|pn_sasl_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_cert_subject_subfield = {"_p_pn_ssl_cert_subject_subfield", "enum pn_ssl_cert_subject_subfield *|pn_ssl_cert_subject_subfield *", 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_hash_alg = {"_p_pn_ssl_hash_alg", "enum pn_ssl_hash_alg *|pn_ssl_hash_alg *", 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_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_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_url_t = {"_p_pn_url_t", "struct pn_url_t *|pn_url_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_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 *|pn_sequence_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "uintptr_t *|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_Pn_rbkey_t, &_swigt__p_Pni_rbhandler_t, &_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_int, &_swigt__p_intptr_t, &_swigt__p_long, &_swigt__p_long_long, &_swigt__p_p_char, &_swigt__p_p_pn_connection_driver_t, &_swigt__p_pn_atom_t, &_swigt__p_pn_bytes_t, &_swigt__p_pn_cid_t, &_swigt__p_pn_class_t, &_swigt__p_pn_collector_t, &_swigt__p_pn_condition_t, &_swigt__p_pn_connection_driver_t, &_swigt__p_pn_connection_t, &_swigt__p_pn_data_t, &_swigt__p_pn_decimal128_t, &_swigt__p_pn_delivery_t, &_swigt__p_pn_disposition_t, &_swigt__p_pn_distribution_mode_t, &_swigt__p_pn_durability_t, &_swigt__p_pn_error_t, &_swigt__p_pn_event_t, &_swigt__p_pn_event_type_t, &_swigt__p_pn_expiry_policy_t, &_swigt__p_pn_handler_t, &_swigt__p_pn_hash_t, &_swigt__p_pn_iterator_t, &_swigt__p_pn_link_t, &_swigt__p_pn_list_t, &_swigt__p_pn_listener_t, &_swigt__p_pn_logger_t, &_swigt__p_pn_map_t, &_swigt__p_pn_message_t, &_swigt__p_pn_messenger_t, &_swigt__p_pn_proactor_t, &_swigt__p_pn_raw_connection_t, &_swigt__p_pn_rcv_settle_mode_t, &_swigt__p_pn_record_t, &_swigt__p_pn_rwbytes_t, &_swigt__p_pn_sasl_outcome_t, &_swigt__p_pn_sasl_t, &_swigt__p_pn_session_t, &_swigt__p_pn_snd_settle_mode_t, &_swigt__p_pn_ssl_cert_subject_subfield, &_swigt__p_pn_ssl_domain_t, &_swigt__p_pn_ssl_hash_alg, &_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_string_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_url_t, &_swigt__p_pn_uuid_t, &_swigt__p_short, &_swigt__p_signed_char, &_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_Pn_rbkey_t[] = { {&_swigt__p_Pn_rbkey_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_Pni_rbhandler_t[] = { {&_swigt__p_Pni_rbhandler_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_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_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_p_pn_connection_driver_t[] = { {&_swigt__p_p_pn_connection_driver_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_bytes_t[] = { {&_swigt__p_pn_bytes_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_cid_t[] = { {&_swigt__p_pn_cid_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_driver_t[] = { {&_swigt__p_pn_connection_driver_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_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_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_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_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_handler_t[] = { {&_swigt__p_pn_handler_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_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_logger_t[] = { {&_swigt__p_pn_logger_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_proactor_t[] = { {&_swigt__p_pn_proactor_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_raw_connection_t[] = { {&_swigt__p_pn_raw_connection_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_record_t[] = { {&_swigt__p_pn_record_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_rwbytes_t[] = { {&_swigt__p_pn_rwbytes_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_t[] = { {&_swigt__p_pn_sasl_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_cert_subject_subfield[] = { {&_swigt__p_pn_ssl_cert_subject_subfield, 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_hash_alg[] = { {&_swigt__p_pn_ssl_hash_alg, 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_string_t[] = { {&_swigt__p_pn_string_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_url_t[] = { {&_swigt__p_pn_url_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_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_Pn_rbkey_t, _swigc__p_Pni_rbhandler_t, _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_int, _swigc__p_intptr_t, _swigc__p_long, _swigc__p_long_long, _swigc__p_p_char, _swigc__p_p_pn_connection_driver_t, _swigc__p_pn_atom_t, _swigc__p_pn_bytes_t, _swigc__p_pn_cid_t, _swigc__p_pn_class_t, _swigc__p_pn_collector_t, _swigc__p_pn_condition_t, _swigc__p_pn_connection_driver_t, _swigc__p_pn_connection_t, _swigc__p_pn_data_t, _swigc__p_pn_decimal128_t, _swigc__p_pn_delivery_t, _swigc__p_pn_disposition_t, _swigc__p_pn_distribution_mode_t, _swigc__p_pn_durability_t, _swigc__p_pn_error_t, _swigc__p_pn_event_t, _swigc__p_pn_event_type_t, _swigc__p_pn_expiry_policy_t, _swigc__p_pn_handler_t, _swigc__p_pn_hash_t, _swigc__p_pn_iterator_t, _swigc__p_pn_link_t, _swigc__p_pn_list_t, _swigc__p_pn_listener_t, _swigc__p_pn_logger_t, _swigc__p_pn_map_t, _swigc__p_pn_message_t, _swigc__p_pn_messenger_t, _swigc__p_pn_proactor_t, _swigc__p_pn_raw_connection_t, _swigc__p_pn_rcv_settle_mode_t, _swigc__p_pn_record_t, _swigc__p_pn_rwbytes_t, _swigc__p_pn_sasl_outcome_t, _swigc__p_pn_sasl_t, _swigc__p_pn_session_t, _swigc__p_pn_snd_settle_mode_t, _swigc__p_pn_ssl_cert_subject_subfield, _swigc__p_pn_ssl_domain_t, _swigc__p_pn_ssl_hash_alg, _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_string_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_url_t, _swigc__p_pn_uuid_t, _swigc__p_short, _swigc__p_signed_char, _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 statically to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a * two-dimensional array. Each row corresponds to a type (there are the same * number of rows as there are in the swig_type_initial array). Each entry in * a column is one of the swig_cast_info structures for that type. * The cast_initial array is actually an array of arrays, because each row has * a variable number of columns. So to actually build the cast linked list, * we find the array of casts associated with the type, and loop through it * adding the casts to the list. The one last trick we need to do is making * sure the type pointer in the swig_cast_info struct is correct. * * First off, we lookup the cast->type name to see if it is already loaded. * There are three cases to handle: * 1) If the cast->type has already been loaded AND the type we are adding * casting info to has not been loaded (it is in this module), THEN we * replace the cast->type pointer with the type pointer that has already * been loaded. * 2) If BOTH types (the one we are adding casting info to, and the * cast->type) are loaded, THEN the cast info has already been loaded by * the previous module so we just ignore it. * 3) Finally, if cast->type has not already been loaded, then we add that * swig_cast_info to the linked list (because the cast->type) pointer will * be correct. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #if 0 } /* c-mode */ #endif #endif #if 0 #define SWIGRUNTIME_DEBUG #endif SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; int init; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; swig_module.next = &swig_module; init = 1; } else { init = 0; } /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); if (!module_head) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ iter=module_head; do { if (iter==&swig_module) { /* Our module is already in the list, so there's nothing more to do. */ return; } iter=iter->next; } while (iter!= module_head); /* otherwise we must add our module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } /* When multiple interpreters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ if (init == 0) return; /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %lu\n", (unsigned long)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 %lu %s\n", (unsigned long)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 %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name); while (cast->type) { printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); cast++; ++j; } printf("---- Total casts: %d\n",j); } printf("**** SWIG_InitializeModule: Cast List ******\n"); #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_encode", _wrap_pn_message_encode, -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_transport_peek", _wrap_pn_transport_peek, -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_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_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_work", _wrap_pn_messenger_work, -1); rb_define_module_function(mCproton, "Pn_rbkey__class", _wrap_Pn_rbkey__class, -1); rb_define_module_function(mCproton, "Pn_rbkey_new", _wrap_Pn_rbkey_new, -1); rb_define_module_function(mCproton, "Pn_rbkey_set_registry", _wrap_Pn_rbkey_set_registry, -1); rb_define_module_function(mCproton, "Pn_rbkey_get_registry", _wrap_Pn_rbkey_get_registry, -1); rb_define_module_function(mCproton, "Pn_rbkey_set_method", _wrap_Pn_rbkey_set_method, -1); rb_define_module_function(mCproton, "Pn_rbkey_get_method", _wrap_Pn_rbkey_get_method, -1); rb_define_module_function(mCproton, "Pn_rbkey_set_key_value", _wrap_Pn_rbkey_set_key_value, -1); rb_define_module_function(mCproton, "Pn_rbkey_get_key_value", _wrap_Pn_rbkey_get_key_value, -1); rb_define_module_function(mCproton, "pni_void2rbkey", _wrap_pni_void2rbkey, -1); rb_define_module_function(mCproton, "pn_void2rb", _wrap_pn_void2rb, -1); rb_define_module_function(mCproton, "pn_rb2void", _wrap_pn_rb2void, -1); rb_define_module_function(mCproton, "pni_address_of", _wrap_pni_address_of, -1); rb_define_module_function(mCproton, "pn_ssl_get_peer_hostname", _wrap_pn_ssl_get_peer_hostname, -1); rb_define_module_function(mCproton, "pni_ruby_get_proton_module", _wrap_pni_ruby_get_proton_module, -1); rb_define_module_function(mCproton, "pni_ruby_add_to_registry", _wrap_pni_ruby_add_to_registry, -1); rb_define_module_function(mCproton, "pni_ruby_get_from_registry", _wrap_pni_ruby_get_from_registry, -1); rb_define_module_function(mCproton, "pni_ruby_delete_from_registry", _wrap_pni_ruby_delete_from_registry, -1); SwigClassPni_rbhandler_t.klass = rb_define_class_under(mCproton, "Pni_rbhandler_t", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_Pni_rbhandler_t, (void *) &SwigClassPni_rbhandler_t); rb_define_alloc_func(SwigClassPni_rbhandler_t.klass, _wrap_Pni_rbhandler_t_allocate); rb_define_method(SwigClassPni_rbhandler_t.klass, "initialize", _wrap_new_Pni_rbhandler_t, -1); rb_define_method(SwigClassPni_rbhandler_t.klass, "handler_key=", _wrap_Pni_rbhandler_t_handler_key_set, -1); rb_define_method(SwigClassPni_rbhandler_t.klass, "handler_key", _wrap_Pni_rbhandler_t_handler_key_get, -1); SwigClassPni_rbhandler_t.mark = 0; SwigClassPni_rbhandler_t.destroy = (void (*)(void *)) free_Pni_rbhandler_t; SwigClassPni_rbhandler_t.trackObjects = 0; rb_define_module_function(mCproton, "pni_rbhandler", _wrap_pni_rbhandler, -1); rb_define_module_function(mCproton, "pni_rbdispatch", _wrap_pni_rbdispatch, -1); rb_define_module_function(mCproton, "pni_rbhandler_finalize", _wrap_pni_rbhandler_finalize, -1); rb_define_module_function(mCproton, "pn_rbhandler", _wrap_pn_rbhandler, -1); rb_define_module_function(mCproton, "pni_connection_driver_read_size", _wrap_pni_connection_driver_read_size, -1); rb_define_module_function(mCproton, "pni_connection_driver_write_size", _wrap_pni_connection_driver_write_size, -1); rb_define_module_function(mCproton, "pni_connection_driver_connection", _wrap_pni_connection_driver_connection, -1); rb_define_module_function(mCproton, "pni_connection_driver_transport", _wrap_pni_connection_driver_transport, -1); rb_define_module_function(mCproton, "pni_connection_driver_read_copy", _wrap_pni_connection_driver_read_copy, -1); rb_define_module_function(mCproton, "pni_connection_driver", _wrap_pni_connection_driver, -1); rb_define_const(mCproton, "PROTON_IMPORT_EXPORT_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_VERSION_MAJOR", SWIG_From_int((int)(0))); rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(34))); rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(0))); rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_MILLIS_MAX", SWIG_From_unsigned_SS_int((unsigned int)((~0U)))); rb_define_module_function(mCproton, "pn_bytes", _wrap_pn_bytes, -1); rb_define_singleton_method(mCproton, "pn_bytes_null", _wrap_pn_bytes_null_get, 0); rb_define_module_function(mCproton, "pn_rwbytes", _wrap_pn_rwbytes, -1); rb_define_singleton_method(mCproton, "pn_rwbytes_null", _wrap_pn_rwbytes_null_get, 0); rb_define_const(mCproton, "PROTON_OBJECT_H", SWIG_From_int((int)(1))); rb_define_singleton_method(mCproton, "PN_OBJECT", _wrap_PN_OBJECT_get, 0); rb_define_singleton_method(mCproton, "PN_VOID", _wrap_PN_VOID_get, 0); rb_define_singleton_method(mCproton, "PN_WEAKREF", _wrap_PN_WEAKREF_get, 0); rb_define_module_function(mCproton, "pn_class_id", _wrap_pn_class_id, -1); rb_define_module_function(mCproton, "pn_class_name", _wrap_pn_class_name, -1); rb_define_module_function(mCproton, "pn_class_new", _wrap_pn_class_new, -1); rb_define_module_function(mCproton, "pn_class_incref", _wrap_pn_class_incref, -1); rb_define_module_function(mCproton, "pn_class_refcount", _wrap_pn_class_refcount, -1); rb_define_module_function(mCproton, "pn_class_decref", _wrap_pn_class_decref, -1); rb_define_module_function(mCproton, "pn_class_free", _wrap_pn_class_free, -1); rb_define_module_function(mCproton, "pn_class_reify", _wrap_pn_class_reify, -1); rb_define_module_function(mCproton, "pn_class_hashcode", _wrap_pn_class_hashcode, -1); rb_define_module_function(mCproton, "pn_class_compare", _wrap_pn_class_compare, -1); rb_define_module_function(mCproton, "pn_class_equals", _wrap_pn_class_equals, -1); rb_define_module_function(mCproton, "pn_class_inspect", _wrap_pn_class_inspect, -1); rb_define_module_function(mCproton, "pn_void_new", _wrap_pn_void_new, -1); rb_define_module_function(mCproton, "pn_void_incref", _wrap_pn_void_incref, -1); rb_define_module_function(mCproton, "pn_void_decref", _wrap_pn_void_decref, -1); rb_define_module_function(mCproton, "pn_void_refcount", _wrap_pn_void_refcount, -1); rb_define_module_function(mCproton, "pn_void_hashcode", _wrap_pn_void_hashcode, -1); rb_define_module_function(mCproton, "pn_void_compare", _wrap_pn_void_compare, -1); rb_define_module_function(mCproton, "pn_void_inspect", _wrap_pn_void_inspect, -1); rb_define_module_function(mCproton, "pn_object_new", _wrap_pn_object_new, -1); rb_define_module_function(mCproton, "pn_object_reify", _wrap_pn_object_reify, -1); rb_define_module_function(mCproton, "pn_object_incref", _wrap_pn_object_incref, -1); rb_define_module_function(mCproton, "pn_object_refcount", _wrap_pn_object_refcount, -1); rb_define_module_function(mCproton, "pn_object_decref", _wrap_pn_object_decref, -1); rb_define_module_function(mCproton, "pn_object_free", _wrap_pn_object_free, -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_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_pop", _wrap_pn_list_pop, -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_module_function(mCproton, "pn_list_minpush", _wrap_pn_list_minpush, -1); rb_define_module_function(mCproton, "pn_list_minpop", _wrap_pn_list_minpop, -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_module_function(mCproton, "pn_record", _wrap_pn_record, -1); rb_define_module_function(mCproton, "pn_record_def", _wrap_pn_record_def, -1); rb_define_module_function(mCproton, "pn_record_has", _wrap_pn_record_has, -1); rb_define_module_function(mCproton, "pn_record_get", _wrap_pn_record_get, -1); rb_define_module_function(mCproton, "pn_record_set", _wrap_pn_record_set, -1); rb_define_module_function(mCproton, "pn_record_clear", _wrap_pn_record_clear, -1); rb_define_const(mCproton, "PROTON_ERROR_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_OK", SWIG_From_int((int)((0)))); 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_const(mCproton, "PN_OUT_OF_MEMORY", SWIG_From_int((int)((-10)))); rb_define_const(mCproton, "PN_ABORTED", SWIG_From_int((int)((-11)))); 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_module_function(mCproton, "pn_condition_copy", _wrap_pn_condition_copy, -1); rb_define_module_function(mCproton, "pn_condition", _wrap_pn_condition, -1); rb_define_module_function(mCproton, "pn_condition_free", _wrap_pn_condition_free, -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_release", _wrap_pn_connection_release, -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_collector", _wrap_pn_connection_collector, -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_attachments", _wrap_pn_connection_attachments, -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_set_user", _wrap_pn_connection_set_user, -1); rb_define_module_function(mCproton, "pn_connection_set_password", _wrap_pn_connection_set_password, -1); rb_define_module_function(mCproton, "pn_connection_set_authorization", _wrap_pn_connection_set_authorization, -1); rb_define_module_function(mCproton, "pn_connection_get_user", _wrap_pn_connection_get_user, -1); rb_define_module_function(mCproton, "pn_connection_get_authorization", _wrap_pn_connection_get_authorization, -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_attachments", _wrap_pn_session_attachments, -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_get_outgoing_window", _wrap_pn_session_get_outgoing_window, -1); rb_define_module_function(mCproton, "pn_session_set_outgoing_window", _wrap_pn_session_set_outgoing_window, -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_attachments", _wrap_pn_link_attachments, -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_detach", _wrap_pn_link_detach, -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_module_function(mCproton, "pn_link_max_message_size", _wrap_pn_link_max_message_size, -1); rb_define_module_function(mCproton, "pn_link_set_max_message_size", _wrap_pn_link_set_max_message_size, -1); rb_define_module_function(mCproton, "pn_link_remote_max_message_size", _wrap_pn_link_remote_max_message_size, -1); rb_define_module_function(mCproton, "pn_link_properties", _wrap_pn_link_properties, -1); rb_define_module_function(mCproton, "pn_link_remote_properties", _wrap_pn_link_remote_properties, -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_EXPIRE_WITH_LINK", SWIG_From_int((int)(PN_EXPIRE_WITH_LINK))); rb_define_const(mCproton, "PN_EXPIRE_WITH_SESSION", SWIG_From_int((int)(PN_EXPIRE_WITH_SESSION))); rb_define_const(mCproton, "PN_EXPIRE_WITH_CONNECTION", SWIG_From_int((int)(PN_EXPIRE_WITH_CONNECTION))); rb_define_const(mCproton, "PN_EXPIRE_NEVER", SWIG_From_int((int)(PN_EXPIRE_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_has_expiry_policy", _wrap_pn_terminus_has_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))); rb_define_module_function(mCproton, "pn_dtag", _wrap_pn_dtag, -1); 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_attachments", _wrap_pn_delivery_attachments, -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_aborted", _wrap_pn_delivery_aborted, -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_current", _wrap_pn_delivery_current, -1); rb_define_module_function(mCproton, "pn_delivery_abort", _wrap_pn_delivery_abort, -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_type_name", _wrap_pn_disposition_type_name, -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_const(mCproton, "PN_TRACE_EVT", SWIG_From_int((int)((8)))); rb_define_module_function(mCproton, "pn_transport", _wrap_pn_transport, -1); rb_define_module_function(mCproton, "pn_transport_set_server", _wrap_pn_transport_set_server, -1); rb_define_module_function(mCproton, "pn_transport_free", _wrap_pn_transport_free, -1); rb_define_module_function(mCproton, "pn_transport_get_user", _wrap_pn_transport_get_user, -1); rb_define_module_function(mCproton, "pn_transport_require_auth", _wrap_pn_transport_require_auth, -1); rb_define_module_function(mCproton, "pn_transport_is_authenticated", _wrap_pn_transport_is_authenticated, -1); rb_define_module_function(mCproton, "pn_transport_require_encryption", _wrap_pn_transport_require_encryption, -1); rb_define_module_function(mCproton, "pn_transport_is_encrypted", _wrap_pn_transport_is_encrypted, -1); rb_define_module_function(mCproton, "pn_transport_condition", _wrap_pn_transport_condition, -1); rb_define_module_function(mCproton, "pn_transport_logger", _wrap_pn_transport_logger, -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_attachments", _wrap_pn_transport_attachments, -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_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_head_closed", _wrap_pn_transport_head_closed, -1); rb_define_module_function(mCproton, "pn_transport_tail_closed", _wrap_pn_transport_tail_closed, -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_module_function(mCproton, "pn_transport_connection", _wrap_pn_transport_connection, -1); rb_define_const(mCproton, "PROTON_EVENT_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_EVENT_NONE", SWIG_From_int((int)(PN_EVENT_NONE))); rb_define_const(mCproton, "PN_REACTOR_INIT", SWIG_From_int((int)(PN_REACTOR_INIT))); rb_define_const(mCproton, "PN_REACTOR_QUIESCED", SWIG_From_int((int)(PN_REACTOR_QUIESCED))); rb_define_const(mCproton, "PN_REACTOR_FINAL", SWIG_From_int((int)(PN_REACTOR_FINAL))); rb_define_const(mCproton, "PN_TIMER_TASK", SWIG_From_int((int)(PN_TIMER_TASK))); rb_define_const(mCproton, "PN_CONNECTION_INIT", SWIG_From_int((int)(PN_CONNECTION_INIT))); rb_define_const(mCproton, "PN_CONNECTION_BOUND", SWIG_From_int((int)(PN_CONNECTION_BOUND))); rb_define_const(mCproton, "PN_CONNECTION_UNBOUND", SWIG_From_int((int)(PN_CONNECTION_UNBOUND))); rb_define_const(mCproton, "PN_CONNECTION_LOCAL_OPEN", SWIG_From_int((int)(PN_CONNECTION_LOCAL_OPEN))); rb_define_const(mCproton, "PN_CONNECTION_REMOTE_OPEN", SWIG_From_int((int)(PN_CONNECTION_REMOTE_OPEN))); rb_define_const(mCproton, "PN_CONNECTION_LOCAL_CLOSE", SWIG_From_int((int)(PN_CONNECTION_LOCAL_CLOSE))); rb_define_const(mCproton, "PN_CONNECTION_REMOTE_CLOSE", SWIG_From_int((int)(PN_CONNECTION_REMOTE_CLOSE))); rb_define_const(mCproton, "PN_CONNECTION_FINAL", SWIG_From_int((int)(PN_CONNECTION_FINAL))); rb_define_const(mCproton, "PN_SESSION_INIT", SWIG_From_int((int)(PN_SESSION_INIT))); rb_define_const(mCproton, "PN_SESSION_LOCAL_OPEN", SWIG_From_int((int)(PN_SESSION_LOCAL_OPEN))); rb_define_const(mCproton, "PN_SESSION_REMOTE_OPEN", SWIG_From_int((int)(PN_SESSION_REMOTE_OPEN))); rb_define_const(mCproton, "PN_SESSION_LOCAL_CLOSE", SWIG_From_int((int)(PN_SESSION_LOCAL_CLOSE))); rb_define_const(mCproton, "PN_SESSION_REMOTE_CLOSE", SWIG_From_int((int)(PN_SESSION_REMOTE_CLOSE))); rb_define_const(mCproton, "PN_SESSION_FINAL", SWIG_From_int((int)(PN_SESSION_FINAL))); rb_define_const(mCproton, "PN_LINK_INIT", SWIG_From_int((int)(PN_LINK_INIT))); rb_define_const(mCproton, "PN_LINK_LOCAL_OPEN", SWIG_From_int((int)(PN_LINK_LOCAL_OPEN))); rb_define_const(mCproton, "PN_LINK_REMOTE_OPEN", SWIG_From_int((int)(PN_LINK_REMOTE_OPEN))); rb_define_const(mCproton, "PN_LINK_LOCAL_CLOSE", SWIG_From_int((int)(PN_LINK_LOCAL_CLOSE))); rb_define_const(mCproton, "PN_LINK_REMOTE_CLOSE", SWIG_From_int((int)(PN_LINK_REMOTE_CLOSE))); rb_define_const(mCproton, "PN_LINK_LOCAL_DETACH", SWIG_From_int((int)(PN_LINK_LOCAL_DETACH))); rb_define_const(mCproton, "PN_LINK_REMOTE_DETACH", SWIG_From_int((int)(PN_LINK_REMOTE_DETACH))); rb_define_const(mCproton, "PN_LINK_FLOW", SWIG_From_int((int)(PN_LINK_FLOW))); rb_define_const(mCproton, "PN_LINK_FINAL", SWIG_From_int((int)(PN_LINK_FINAL))); 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_const(mCproton, "PN_TRANSPORT_AUTHENTICATED", SWIG_From_int((int)(PN_TRANSPORT_AUTHENTICATED))); rb_define_const(mCproton, "PN_TRANSPORT_ERROR", SWIG_From_int((int)(PN_TRANSPORT_ERROR))); rb_define_const(mCproton, "PN_TRANSPORT_HEAD_CLOSED", SWIG_From_int((int)(PN_TRANSPORT_HEAD_CLOSED))); rb_define_const(mCproton, "PN_TRANSPORT_TAIL_CLOSED", SWIG_From_int((int)(PN_TRANSPORT_TAIL_CLOSED))); rb_define_const(mCproton, "PN_TRANSPORT_CLOSED", SWIG_From_int((int)(PN_TRANSPORT_CLOSED))); rb_define_const(mCproton, "PN_SELECTABLE_INIT", SWIG_From_int((int)(PN_SELECTABLE_INIT))); rb_define_const(mCproton, "PN_SELECTABLE_UPDATED", SWIG_From_int((int)(PN_SELECTABLE_UPDATED))); rb_define_const(mCproton, "PN_SELECTABLE_READABLE", SWIG_From_int((int)(PN_SELECTABLE_READABLE))); rb_define_const(mCproton, "PN_SELECTABLE_WRITABLE", SWIG_From_int((int)(PN_SELECTABLE_WRITABLE))); rb_define_const(mCproton, "PN_SELECTABLE_ERROR", SWIG_From_int((int)(PN_SELECTABLE_ERROR))); rb_define_const(mCproton, "PN_SELECTABLE_EXPIRED", SWIG_From_int((int)(PN_SELECTABLE_EXPIRED))); rb_define_const(mCproton, "PN_SELECTABLE_FINAL", SWIG_From_int((int)(PN_SELECTABLE_FINAL))); rb_define_const(mCproton, "PN_CONNECTION_WAKE", SWIG_From_int((int)(PN_CONNECTION_WAKE))); rb_define_const(mCproton, "PN_LISTENER_ACCEPT", SWIG_From_int((int)(PN_LISTENER_ACCEPT))); rb_define_const(mCproton, "PN_LISTENER_CLOSE", SWIG_From_int((int)(PN_LISTENER_CLOSE))); rb_define_const(mCproton, "PN_PROACTOR_INTERRUPT", SWIG_From_int((int)(PN_PROACTOR_INTERRUPT))); rb_define_const(mCproton, "PN_PROACTOR_TIMEOUT", SWIG_From_int((int)(PN_PROACTOR_TIMEOUT))); rb_define_const(mCproton, "PN_PROACTOR_INACTIVE", SWIG_From_int((int)(PN_PROACTOR_INACTIVE))); rb_define_const(mCproton, "PN_LISTENER_OPEN", SWIG_From_int((int)(PN_LISTENER_OPEN))); rb_define_const(mCproton, "PN_RAW_CONNECTION_CONNECTED", SWIG_From_int((int)(PN_RAW_CONNECTION_CONNECTED))); rb_define_const(mCproton, "PN_RAW_CONNECTION_CLOSED_READ", SWIG_From_int((int)(PN_RAW_CONNECTION_CLOSED_READ))); rb_define_const(mCproton, "PN_RAW_CONNECTION_CLOSED_WRITE", SWIG_From_int((int)(PN_RAW_CONNECTION_CLOSED_WRITE))); rb_define_const(mCproton, "PN_RAW_CONNECTION_DISCONNECTED", SWIG_From_int((int)(PN_RAW_CONNECTION_DISCONNECTED))); rb_define_const(mCproton, "PN_RAW_CONNECTION_NEED_READ_BUFFERS", SWIG_From_int((int)(PN_RAW_CONNECTION_NEED_READ_BUFFERS))); rb_define_const(mCproton, "PN_RAW_CONNECTION_NEED_WRITE_BUFFERS", SWIG_From_int((int)(PN_RAW_CONNECTION_NEED_WRITE_BUFFERS))); rb_define_const(mCproton, "PN_RAW_CONNECTION_READ", SWIG_From_int((int)(PN_RAW_CONNECTION_READ))); rb_define_const(mCproton, "PN_RAW_CONNECTION_WRITTEN", SWIG_From_int((int)(PN_RAW_CONNECTION_WRITTEN))); rb_define_const(mCproton, "PN_RAW_CONNECTION_WAKE", SWIG_From_int((int)(PN_RAW_CONNECTION_WAKE))); rb_define_const(mCproton, "PN_RAW_CONNECTION_DRAIN_BUFFERS", SWIG_From_int((int)(PN_RAW_CONNECTION_DRAIN_BUFFERS))); 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_release", _wrap_pn_collector_release, -1); rb_define_module_function(mCproton, "pn_collector_drain", _wrap_pn_collector_drain, -1); rb_define_module_function(mCproton, "pn_collector_put", _wrap_pn_collector_put, -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_collector_next", _wrap_pn_collector_next, -1); rb_define_module_function(mCproton, "pn_collector_prev", _wrap_pn_collector_prev, -1); rb_define_module_function(mCproton, "pn_collector_more", _wrap_pn_collector_more, -1); rb_define_module_function(mCproton, "pn_event_type", _wrap_pn_event_type, -1); rb_define_module_function(mCproton, "pn_event_class", _wrap_pn_event_class, -1); rb_define_module_function(mCproton, "pn_event_context", _wrap_pn_event_context, -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_module_function(mCproton, "pn_event_attachments", _wrap_pn_event_attachments, -1); rb_define_module_function(mCproton, "pn_event_condition", _wrap_pn_event_condition, -1); rb_define_module_function(mCproton, "pn_event_copy", _wrap_pn_event_copy, -1); rb_define_const(mCproton, "PROTON_MESSAGE_H", SWIG_From_int((int)(1))); 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_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_module_function(mCproton, "pn_message_encode2", _wrap_pn_message_encode2, -1); rb_define_module_function(mCproton, "pn_message_send", _wrap_pn_message_send, -1); rb_define_module_function(mCproton, "pn_message_data", _wrap_pn_message_data, -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_module_function(mCproton, "pn_sasl", _wrap_pn_sasl, -1); rb_define_module_function(mCproton, "pn_sasl_extended", _wrap_pn_sasl_extended, -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_module_function(mCproton, "pn_sasl_get_user", _wrap_pn_sasl_get_user, -1); rb_define_module_function(mCproton, "pn_sasl_get_authorization", _wrap_pn_sasl_get_authorization, -1); rb_define_module_function(mCproton, "pn_sasl_get_mech", _wrap_pn_sasl_get_mech, -1); rb_define_module_function(mCproton, "pn_sasl_allowed_mechs", _wrap_pn_sasl_allowed_mechs, -1); rb_define_module_function(mCproton, "pn_sasl_set_allow_insecure_mechs", _wrap_pn_sasl_set_allow_insecure_mechs, -1); rb_define_module_function(mCproton, "pn_sasl_get_allow_insecure_mechs", _wrap_pn_sasl_get_allow_insecure_mechs, -1); rb_define_module_function(mCproton, "pn_sasl_config_name", _wrap_pn_sasl_config_name, -1); rb_define_module_function(mCproton, "pn_sasl_config_path", _wrap_pn_sasl_config_path, -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_present", _wrap_pn_ssl_present, -1); 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_set_protocols", _wrap_pn_ssl_domain_set_protocols, -1); rb_define_module_function(mCproton, "pn_ssl_domain_set_ciphers", _wrap_pn_ssl_domain_set_ciphers, -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_get_ssf", _wrap_pn_ssl_get_ssf, -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_remote_subject", _wrap_pn_ssl_get_remote_subject, -1); rb_define_const(mCproton, "PN_SSL_CERT_SUBJECT_COUNTRY_NAME", SWIG_From_int((int)(PN_SSL_CERT_SUBJECT_COUNTRY_NAME))); rb_define_const(mCproton, "PN_SSL_CERT_SUBJECT_STATE_OR_PROVINCE", SWIG_From_int((int)(PN_SSL_CERT_SUBJECT_STATE_OR_PROVINCE))); rb_define_const(mCproton, "PN_SSL_CERT_SUBJECT_CITY_OR_LOCALITY", SWIG_From_int((int)(PN_SSL_CERT_SUBJECT_CITY_OR_LOCALITY))); rb_define_const(mCproton, "PN_SSL_CERT_SUBJECT_ORGANIZATION_NAME", SWIG_From_int((int)(PN_SSL_CERT_SUBJECT_ORGANIZATION_NAME))); rb_define_const(mCproton, "PN_SSL_CERT_SUBJECT_ORGANIZATION_UNIT", SWIG_From_int((int)(PN_SSL_CERT_SUBJECT_ORGANIZATION_UNIT))); rb_define_const(mCproton, "PN_SSL_CERT_SUBJECT_COMMON_NAME", SWIG_From_int((int)(PN_SSL_CERT_SUBJECT_COMMON_NAME))); rb_define_const(mCproton, "PN_SSL_SHA1", SWIG_From_int((int)(PN_SSL_SHA1))); rb_define_const(mCproton, "PN_SSL_SHA256", SWIG_From_int((int)(PN_SSL_SHA256))); rb_define_const(mCproton, "PN_SSL_SHA512", SWIG_From_int((int)(PN_SSL_SHA512))); rb_define_const(mCproton, "PN_SSL_MD5", SWIG_From_int((int)(PN_SSL_MD5))); rb_define_module_function(mCproton, "pn_ssl_get_cert_fingerprint", _wrap_pn_ssl_get_cert_fingerprint, -1); rb_define_module_function(mCproton, "pn_ssl_get_remote_subject_subfield", _wrap_pn_ssl_get_remote_subject_subfield, -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_const(mCproton, "PN_INVALID", SWIG_From_int((int)(PN_INVALID))); rb_define_module_function(mCproton, "pn_type_name", _wrap_pn_type_name, -1); 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_encoded_size", _wrap_pn_data_encoded_size, -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_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_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); rb_define_module_function(mCproton, "pn_cast_pn_connection", _wrap_pn_cast_pn_connection, -1); rb_define_module_function(mCproton, "pn_cast_pn_session", _wrap_pn_cast_pn_session, -1); rb_define_module_function(mCproton, "pn_cast_pn_link", _wrap_pn_cast_pn_link, -1); rb_define_module_function(mCproton, "pn_cast_pn_delivery", _wrap_pn_cast_pn_delivery, -1); rb_define_module_function(mCproton, "pn_cast_pn_transport", _wrap_pn_cast_pn_transport, -1); rb_define_const(mCproton, "PROTON_CONNECTION_DRIVER_H", SWIG_From_int((int)(1))); rb_define_module_function(mCproton, "pn_connection_driver_init", _wrap_pn_connection_driver_init, -1); rb_define_module_function(mCproton, "pn_connection_driver_bind", _wrap_pn_connection_driver_bind, -1); rb_define_module_function(mCproton, "pn_connection_driver_destroy", _wrap_pn_connection_driver_destroy, -1); rb_define_module_function(mCproton, "pn_connection_driver_release_connection", _wrap_pn_connection_driver_release_connection, -1); rb_define_module_function(mCproton, "pn_connection_driver_read_buffer", _wrap_pn_connection_driver_read_buffer, -1); rb_define_module_function(mCproton, "pn_connection_driver_read_done", _wrap_pn_connection_driver_read_done, -1); rb_define_module_function(mCproton, "pn_connection_driver_read_close", _wrap_pn_connection_driver_read_close, -1); rb_define_module_function(mCproton, "pn_connection_driver_read_closed", _wrap_pn_connection_driver_read_closed, -1); rb_define_module_function(mCproton, "pn_connection_driver_write_buffer", _wrap_pn_connection_driver_write_buffer, -1); rb_define_module_function(mCproton, "pn_connection_driver_write_done", _wrap_pn_connection_driver_write_done, -1); rb_define_module_function(mCproton, "pn_connection_driver_write_close", _wrap_pn_connection_driver_write_close, -1); rb_define_module_function(mCproton, "pn_connection_driver_write_closed", _wrap_pn_connection_driver_write_closed, -1); rb_define_module_function(mCproton, "pn_connection_driver_close", _wrap_pn_connection_driver_close, -1); rb_define_module_function(mCproton, "pn_connection_driver_next_event", _wrap_pn_connection_driver_next_event, -1); rb_define_module_function(mCproton, "pn_connection_driver_has_event", _wrap_pn_connection_driver_has_event, -1); rb_define_module_function(mCproton, "pn_connection_driver_finished", _wrap_pn_connection_driver_finished, -1); rb_define_module_function(mCproton, "pn_connection_driver_errorf", _wrap_pn_connection_driver_errorf, -1); rb_define_module_function(mCproton, "pn_connection_driver_log", _wrap_pn_connection_driver_log, -1); rb_define_module_function(mCproton, "pn_connection_driver_ptr", _wrap_pn_connection_driver_ptr, -1); rb_define_const(mCproton, "PROTON_CID_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "CID_pn_object", SWIG_From_int((int)(CID_pn_object))); rb_define_const(mCproton, "CID_pn_void", SWIG_From_int((int)(CID_pn_void))); rb_define_const(mCproton, "CID_pn_weakref", SWIG_From_int((int)(CID_pn_weakref))); rb_define_const(mCproton, "CID_pn_string", SWIG_From_int((int)(CID_pn_string))); rb_define_const(mCproton, "CID_pn_list", SWIG_From_int((int)(CID_pn_list))); rb_define_const(mCproton, "CID_pn_map", SWIG_From_int((int)(CID_pn_map))); rb_define_const(mCproton, "CID_pn_hash", SWIG_From_int((int)(CID_pn_hash))); rb_define_const(mCproton, "CID_pn_record", SWIG_From_int((int)(CID_pn_record))); rb_define_const(mCproton, "CID_pn_collector", SWIG_From_int((int)(CID_pn_collector))); rb_define_const(mCproton, "CID_pn_event", SWIG_From_int((int)(CID_pn_event))); rb_define_const(mCproton, "CID_pn_buffer", SWIG_From_int((int)(CID_pn_buffer))); rb_define_const(mCproton, "CID_pn_error", SWIG_From_int((int)(CID_pn_error))); rb_define_const(mCproton, "CID_pn_data", SWIG_From_int((int)(CID_pn_data))); rb_define_const(mCproton, "CID_pn_connection", SWIG_From_int((int)(CID_pn_connection))); rb_define_const(mCproton, "CID_pn_session", SWIG_From_int((int)(CID_pn_session))); rb_define_const(mCproton, "CID_pn_link", SWIG_From_int((int)(CID_pn_link))); rb_define_const(mCproton, "CID_pn_delivery", SWIG_From_int((int)(CID_pn_delivery))); rb_define_const(mCproton, "CID_pn_transport", SWIG_From_int((int)(CID_pn_transport))); rb_define_const(mCproton, "CID_pn_message", SWIG_From_int((int)(CID_pn_message))); rb_define_const(mCproton, "CID_pn_reactor", SWIG_From_int((int)(CID_pn_reactor))); rb_define_const(mCproton, "CID_pn_handler", SWIG_From_int((int)(CID_pn_handler))); rb_define_const(mCproton, "CID_pn_timer", SWIG_From_int((int)(CID_pn_timer))); rb_define_const(mCproton, "CID_pn_task", SWIG_From_int((int)(CID_pn_task))); rb_define_const(mCproton, "CID_pn_io", SWIG_From_int((int)(CID_pn_io))); rb_define_const(mCproton, "CID_pn_selector", SWIG_From_int((int)(CID_pn_selector))); rb_define_const(mCproton, "CID_pn_selectable", SWIG_From_int((int)(CID_pn_selectable))); rb_define_const(mCproton, "CID_pn_url", SWIG_From_int((int)(CID_pn_url))); rb_define_const(mCproton, "CID_pn_strdup", SWIG_From_int((int)(CID_pn_strdup))); rb_define_const(mCproton, "CID_pn_listener", SWIG_From_int((int)(CID_pn_listener))); rb_define_const(mCproton, "CID_pn_proactor", SWIG_From_int((int)(CID_pn_proactor))); rb_define_const(mCproton, "CID_pn_listener_socket", SWIG_From_int((int)(CID_pn_listener_socket))); rb_define_const(mCproton, "CID_pn_raw_connection", SWIG_From_int((int)(CID_pn_raw_connection))); rb_define_const(mCproton, "PROTON_URL_H", SWIG_From_int((int)(1))); rb_define_module_function(mCproton, "pn_url", _wrap_pn_url, -1); rb_define_module_function(mCproton, "pn_url_parse", _wrap_pn_url_parse, -1); rb_define_module_function(mCproton, "pn_url_free", _wrap_pn_url_free, -1); rb_define_module_function(mCproton, "pn_url_clear", _wrap_pn_url_clear, -1); rb_define_module_function(mCproton, "pn_url_str", _wrap_pn_url_str, -1); rb_define_module_function(mCproton, "pn_url_get_scheme", _wrap_pn_url_get_scheme, -1); rb_define_module_function(mCproton, "pn_url_get_username", _wrap_pn_url_get_username, -1); rb_define_module_function(mCproton, "pn_url_get_password", _wrap_pn_url_get_password, -1); rb_define_module_function(mCproton, "pn_url_get_host", _wrap_pn_url_get_host, -1); rb_define_module_function(mCproton, "pn_url_get_port", _wrap_pn_url_get_port, -1); rb_define_module_function(mCproton, "pn_url_get_path", _wrap_pn_url_get_path, -1); rb_define_module_function(mCproton, "pn_url_set_scheme", _wrap_pn_url_set_scheme, -1); rb_define_module_function(mCproton, "pn_url_set_username", _wrap_pn_url_set_username, -1); rb_define_module_function(mCproton, "pn_url_set_password", _wrap_pn_url_set_password, -1); rb_define_module_function(mCproton, "pn_url_set_host", _wrap_pn_url_set_host, -1); rb_define_module_function(mCproton, "pn_url_set_port", _wrap_pn_url_set_port, -1); rb_define_module_function(mCproton, "pn_url_set_path", _wrap_pn_url_set_path, -1); }