ext/cproton/cproton.c in qpid_proton-0.4 vs ext/cproton/cproton.c in qpid_proton-0.5

- old
+ new

@@ -1,8 +1,8 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.8 + * Version 2.0.10 * * 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. @@ -396,11 +396,11 @@ } SWIGINTERNINLINE int SWIG_CheckState(int r) { return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ -# define SWIG_AddCast +# define SWIG_AddCast(r) (r) # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif #include <string.h> @@ -460,47 +460,36 @@ return (int)((l1 - f1) - (l2 - f2)); } /* Check type equivalence in a name list like <name1>|<name2>|... - Return 0 if not equal, 1 if equal + Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int -SWIG_TypeEquiv(const char *nb, const char *tb) { - int equiv = 0; +SWIG_TypeCmp(const char *nb, const char *tb) { + int equiv = 1; const char* te = tb + strlen(tb); const char* ne = nb; - while (!equiv && *ne) { + while (equiv != 0 && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } - equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + equiv = SWIG_TypeNameComp(nb, ne, tb, te); if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like <name1>|<name2>|... - Return 0 if equal, -1 if nb < tb, 1 if nb > tb + Return 0 if not equal, 1 if equal */ SWIGRUNTIME int -SWIG_TypeCompare(const char *nb, const char *tb) { - int equiv = 0; - const char* te = tb + strlen(tb); - const char* ne = nb; - while (!equiv && *ne) { - for (nb = ne; *ne; ++ne) { - if (*ne == '|') break; - } - equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; - if (*ne) ++ne; - } - return equiv; +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) { @@ -1372,11 +1361,11 @@ #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type) /* Runtime API */ -#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule() +#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule(clientdata) #define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer) /* Error manipulation */ @@ -1708,11 +1697,11 @@ type_error: return SWIG_ERROR; } SWIGRUNTIME swig_module_info * -SWIG_Ruby_GetModule(void) +SWIG_Ruby_GetModule(void *SWIGUNUSEDPARM(clientdata)) { VALUE pointer; swig_module_info *ret = 0; VALUE verbose = rb_gv_get("VERBOSE"); @@ -1748,11 +1737,11 @@ } */ SWIGINTERN int SWIG_Ruby_isCallable( VALUE proc ) { - if ( rb_respond_to( proc, swig_call_id ) == Qtrue ) + if ( rb_respond_to( proc, swig_call_id ) ) return 1; return 0; } /* This function can be used to check the arity (number of arguments) @@ -1761,11 +1750,11 @@ 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 ) == Qtrue ) + 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; @@ -1788,61 +1777,75 @@ /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_p_char swig_types[0] -#define SWIGTYPE_p_int swig_types[1] -#define SWIGTYPE_p_long swig_types[2] -#define SWIGTYPE_p_long_long swig_types[3] -#define SWIGTYPE_p_p_char swig_types[4] -#define SWIGTYPE_p_pn_accept_mode_t swig_types[5] -#define SWIGTYPE_p_pn_activate_criteria_t swig_types[6] -#define SWIGTYPE_p_pn_atom_t swig_types[7] -#define SWIGTYPE_p_pn_atom_t_u swig_types[8] -#define SWIGTYPE_p_pn_bytes_t swig_types[9] -#define SWIGTYPE_p_pn_condition_t swig_types[10] -#define SWIGTYPE_p_pn_connection_t swig_types[11] -#define SWIGTYPE_p_pn_connector_t swig_types[12] -#define SWIGTYPE_p_pn_data_t swig_types[13] -#define SWIGTYPE_p_pn_decimal128_t swig_types[14] -#define SWIGTYPE_p_pn_delivery_t swig_types[15] -#define SWIGTYPE_p_pn_delivery_tag_t swig_types[16] -#define SWIGTYPE_p_pn_disposition_t swig_types[17] -#define SWIGTYPE_p_pn_driver_t swig_types[18] -#define SWIGTYPE_p_pn_durability_t swig_types[19] -#define SWIGTYPE_p_pn_error_t swig_types[20] -#define SWIGTYPE_p_pn_expiry_policy_t swig_types[21] -#define SWIGTYPE_p_pn_format_t swig_types[22] -#define SWIGTYPE_p_pn_link_t swig_types[23] -#define SWIGTYPE_p_pn_listener_t swig_types[24] -#define SWIGTYPE_p_pn_message_t swig_types[25] -#define SWIGTYPE_p_pn_messenger_t swig_types[26] -#define SWIGTYPE_p_pn_sasl_outcome_t swig_types[27] -#define SWIGTYPE_p_pn_sasl_state_t swig_types[28] -#define SWIGTYPE_p_pn_sasl_t swig_types[29] -#define SWIGTYPE_p_pn_session_t swig_types[30] -#define SWIGTYPE_p_pn_ssl_domain_t swig_types[31] -#define SWIGTYPE_p_pn_ssl_mode_t swig_types[32] -#define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[33] -#define SWIGTYPE_p_pn_ssl_t swig_types[34] -#define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[35] -#define SWIGTYPE_p_pn_status_t swig_types[36] -#define SWIGTYPE_p_pn_subscription_t swig_types[37] -#define SWIGTYPE_p_pn_terminus_t swig_types[38] -#define SWIGTYPE_p_pn_terminus_type_t swig_types[39] -#define SWIGTYPE_p_pn_transport_t swig_types[40] -#define SWIGTYPE_p_pn_type_t swig_types[41] -#define SWIGTYPE_p_pn_uuid_t swig_types[42] -#define SWIGTYPE_p_short swig_types[43] -#define SWIGTYPE_p_signed_char swig_types[44] -#define SWIGTYPE_p_unsigned_char swig_types[45] -#define SWIGTYPE_p_unsigned_int swig_types[46] -#define SWIGTYPE_p_unsigned_long swig_types[47] -#define SWIGTYPE_p_unsigned_long_long swig_types[48] -#define SWIGTYPE_p_unsigned_short swig_types[49] -static swig_type_info *swig_types[51]; -static swig_module_info swig_module = {swig_types, 50, 0, 0, 0, 0}; +#define SWIGTYPE_p_f_p_void__uintptr_t swig_types[1] +#define SWIGTYPE_p_f_p_void__void swig_types[2] +#define SWIGTYPE_p_f_p_void_p_struct_pn_string_t__int swig_types[3] +#define SWIGTYPE_p_f_p_void_p_void__intptr_t 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_pn_activate_criteria_t swig_types[10] +#define SWIGTYPE_p_pn_atom_t swig_types[11] +#define SWIGTYPE_p_pn_atom_t_u swig_types[12] +#define SWIGTYPE_p_pn_bytes_t swig_types[13] +#define SWIGTYPE_p_pn_class_t swig_types[14] +#define SWIGTYPE_p_pn_condition_t swig_types[15] +#define SWIGTYPE_p_pn_connection_t swig_types[16] +#define SWIGTYPE_p_pn_connector_t swig_types[17] +#define SWIGTYPE_p_pn_data_t swig_types[18] +#define SWIGTYPE_p_pn_decimal128_t swig_types[19] +#define SWIGTYPE_p_pn_delivery_t swig_types[20] +#define SWIGTYPE_p_pn_delivery_tag_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_driver_t swig_types[24] +#define SWIGTYPE_p_pn_durability_t swig_types[25] +#define SWIGTYPE_p_pn_error_t swig_types[26] +#define SWIGTYPE_p_pn_expiry_policy_t swig_types[27] +#define SWIGTYPE_p_pn_format_t swig_types[28] +#define SWIGTYPE_p_pn_hash_t swig_types[29] +#define SWIGTYPE_p_pn_link_t swig_types[30] +#define SWIGTYPE_p_pn_list_t swig_types[31] +#define SWIGTYPE_p_pn_listener_t swig_types[32] +#define SWIGTYPE_p_pn_map_t swig_types[33] +#define SWIGTYPE_p_pn_message_t swig_types[34] +#define SWIGTYPE_p_pn_messenger_t swig_types[35] +#define SWIGTYPE_p_pn_rcv_settle_mode_t swig_types[36] +#define SWIGTYPE_p_pn_sasl_outcome_t swig_types[37] +#define SWIGTYPE_p_pn_sasl_state_t swig_types[38] +#define SWIGTYPE_p_pn_sasl_t swig_types[39] +#define SWIGTYPE_p_pn_session_t swig_types[40] +#define SWIGTYPE_p_pn_snd_settle_mode_t swig_types[41] +#define SWIGTYPE_p_pn_ssl_domain_t swig_types[42] +#define SWIGTYPE_p_pn_ssl_mode_t swig_types[43] +#define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[44] +#define SWIGTYPE_p_pn_ssl_t swig_types[45] +#define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[46] +#define SWIGTYPE_p_pn_status_t swig_types[47] +#define SWIGTYPE_p_pn_string_t swig_types[48] +#define SWIGTYPE_p_pn_subscription_t swig_types[49] +#define SWIGTYPE_p_pn_terminus_t swig_types[50] +#define SWIGTYPE_p_pn_terminus_type_t swig_types[51] +#define SWIGTYPE_p_pn_transport_t swig_types[52] +#define SWIGTYPE_p_pn_type_t swig_types[53] +#define SWIGTYPE_p_pn_uuid_t swig_types[54] +#define SWIGTYPE_p_short swig_types[55] +#define SWIGTYPE_p_signed_char swig_types[56] +#define SWIGTYPE_p_uintptr_t swig_types[57] +#define SWIGTYPE_p_unsigned_char swig_types[58] +#define SWIGTYPE_p_unsigned_int swig_types[59] +#define SWIGTYPE_p_unsigned_long swig_types[60] +#define SWIGTYPE_p_unsigned_long_long swig_types[61] +#define SWIGTYPE_p_unsigned_short swig_types[62] +#define SWIGTYPE_p_void swig_types[63] +static swig_type_info *swig_types[65]; +static swig_module_info swig_module = {swig_types, 64, 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) -------- */ @@ -1853,11 +1856,11 @@ #define SWIG_RUBY_THREAD_BEGIN_BLOCK #define SWIG_RUBY_THREAD_END_BLOCK -#define SWIGVERSION 0x020008 +#define SWIGVERSION 0x020010 #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)) @@ -1897,15 +1900,11 @@ SWIGINTERN int SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc) { if (TYPE(obj) == T_STRING) { - #if defined(StringValuePtr) char *cstr = StringValuePtr(obj); - #else - char *cstr = STR2CSTR(obj); - #endif size_t size = RSTRING_LEN(obj) + 1; if (cptr) { if (alloc) { if (*alloc == SWIG_NEWOBJ) { *cptr = (char *)memcpy((char *)malloc((size)*sizeof(char)), cstr, sizeof(char)*(size)); @@ -1941,11 +1940,11 @@ { return Qnil; } -/*@SWIG:/usr/share/swig/2.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ +/*@SWIG:/usr/share/swig/2.0.10/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); unsigned long *res = (unsigned long *)(args[1]); @@ -2115,11 +2114,11 @@ { return SWIG_From_unsigned_SS_long ((unsigned long)(value)); } -/*@SWIG:/usr/share/swig/2.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ +/*@SWIG:/usr/share/swig/2.0.10/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); long *res = (long *)(args[1]); @@ -2160,11 +2159,59 @@ } return res; } -/*@SWIG:/usr/share/swig/2.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ +#include <float.h> + + +/*@SWIG:/usr/share/swig/2.0.10/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ +SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args) +{ + VALUE obj = args[0]; + VALUE type = TYPE(obj); + double *res = (double *)(args[1]); + *res = NUM2DBL(obj); + return obj; +} +/*@SWIG@*/ + +SWIGINTERN int +SWIG_AsVal_double (VALUE obj, double *val) +{ + VALUE type = TYPE(obj); + if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) { + double v; + VALUE a[2]; + a[0] = obj; + a[1] = (VALUE)(&v); + if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { + if (val) *val = v; + return SWIG_OK; + } + } + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_float (VALUE obj, float *val) +{ + double v; + int res = SWIG_AsVal_double (obj, &v); + if (SWIG_IsOK(res)) { + if ((v < -FLT_MAX || v > FLT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = (float)(v); + } + } + return res; +} + + +/*@SWIG:/usr/share/swig/2.0.10/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); long long *res = (long long *)(args[1]); @@ -2223,10 +2270,39 @@ } return SWIG_TypeError; } +/*@SWIG:/usr/share/swig/2.0.10/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ +SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args) +{ + VALUE obj = args[0]; + VALUE type = TYPE(obj); + long long *res = (long long *)(args[1]); + *res = type == T_FIXNUM ? NUM2ULL(obj) : rb_big2ull(obj); + return obj; +} +/*@SWIG@*/ + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val) +{ + VALUE type = TYPE(obj); + if ((type == T_FIXNUM) || (type == T_BIGNUM)) { + unsigned long long v; + VALUE a[2]; + a[0] = obj; + a[1] = (VALUE)(&v); + if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { + if (val) *val = v; + return SWIG_OK; + } + } + return SWIG_TypeError; +} + + SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_char (unsigned char value) { return SWIG_From_unsigned_SS_long (value); } @@ -2338,87 +2414,10 @@ { return SWIG_From_long (value); } -/*@SWIG:/usr/share/swig/2.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ -SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args) -{ - VALUE obj = args[0]; - VALUE type = TYPE(obj); - long long *res = (long long *)(args[1]); - *res = type == T_FIXNUM ? NUM2ULL(obj) : rb_big2ull(obj); - return obj; -} -/*@SWIG@*/ - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val) -{ - VALUE type = TYPE(obj); - if ((type == T_FIXNUM) || (type == T_BIGNUM)) { - unsigned long long v; - VALUE a[2]; - a[0] = obj; - a[1] = (VALUE)(&v); - if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { - if (val) *val = v; - return SWIG_OK; - } - } - return SWIG_TypeError; -} - - -#include <float.h> - - -/*@SWIG:/usr/share/swig/2.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ -SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args) -{ - VALUE obj = args[0]; - VALUE type = TYPE(obj); - double *res = (double *)(args[1]); - *res = NUM2DBL(obj); - return obj; -} -/*@SWIG@*/ - -SWIGINTERN int -SWIG_AsVal_double (VALUE obj, double *val) -{ - VALUE type = TYPE(obj); - if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) { - double v; - VALUE a[2]; - a[0] = obj; - a[1] = (VALUE)(&v); - if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { - if (val) *val = v; - return SWIG_OK; - } - } - return SWIG_TypeError; -} - - -SWIGINTERN int -SWIG_AsVal_float (VALUE obj, float *val) -{ - double v; - int res = SWIG_AsVal_double (obj, &v); - if (SWIG_IsOK(res)) { - if ((v < -FLT_MAX || v > FLT_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = (float)(v); - } - } - return res; -} - - #define SWIG_From_double rb_float_new SWIGINTERNINLINE VALUE SWIG_From_float (float value) @@ -3656,11 +3655,1844 @@ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } +static swig_class SwigClassPn_class_t; +SWIGINTERN VALUE +_wrap_pn_class_t_finalize_set(int argc, VALUE *argv, VALUE self) { + pn_class_t *arg1 = (pn_class_t *) 0 ; + void (*arg2)(void *) = (void (*)(void *)) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","finalize", 1, self )); + } + arg1 = (pn_class_t *)(argp1); + { + int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_void__void); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(void *)","finalize", 2, argv[0] )); + } + } + if (arg1) (arg1)->finalize = arg2; + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_class_t_finalize_get(int argc, VALUE *argv, VALUE self) { + pn_class_t *arg1 = (pn_class_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void (*result)(void *) = 0 ; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","finalize", 1, self )); + } + arg1 = (pn_class_t *)(argp1); + result = (void (*)(void *)) ((arg1)->finalize); + vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__void); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_class_t_hashcode_set(int argc, VALUE *argv, VALUE self) { + pn_class_t *arg1 = (pn_class_t *) 0 ; + uintptr_t (*arg2)(void *) = (uintptr_t (*)(void *)) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","hashcode", 1, self )); + } + arg1 = (pn_class_t *)(argp1); + { + int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_void__uintptr_t); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "uintptr_t (*)(void *)","hashcode", 2, argv[0] )); + } + } + if (arg1) (arg1)->hashcode = arg2; + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_class_t_hashcode_get(int argc, VALUE *argv, VALUE self) { + pn_class_t *arg1 = (pn_class_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + uintptr_t (*result)(void *) = 0 ; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","hashcode", 1, self )); + } + arg1 = (pn_class_t *)(argp1); + result = (uintptr_t (*)(void *)) ((arg1)->hashcode); + vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__uintptr_t); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_class_t_compare_set(int argc, VALUE *argv, VALUE self) { + pn_class_t *arg1 = (pn_class_t *) 0 ; + intptr_t (*arg2)(void *,void *) = (intptr_t (*)(void *,void *)) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","compare", 1, self )); + } + arg1 = (pn_class_t *)(argp1); + { + int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_void_p_void__intptr_t); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "intptr_t (*)(void *,void *)","compare", 2, argv[0] )); + } + } + if (arg1) (arg1)->compare = arg2; + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_class_t_compare_get(int argc, VALUE *argv, VALUE self) { + pn_class_t *arg1 = (pn_class_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + intptr_t (*result)(void *,void *) = 0 ; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","compare", 1, self )); + } + arg1 = (pn_class_t *)(argp1); + result = (intptr_t (*)(void *,void *)) ((arg1)->compare); + vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_void__intptr_t); + return vresult; +fail: + return Qnil; +} + + + +/* + Document-method: Cproton::pn_class_t.inspect + + call-seq: + inspect(arg2, arg3) -> int (*)(void *,pn_string_t *) + +Inspect class and its contents. +*/ + +/* + Document-method: Cproton::pn_class_t.inspect= + + call-seq: + inspect=(x) -> int (*)(void *,pn_string_t *) + +Inspect class and its contents. +*/ +SWIGINTERN VALUE +_wrap_pn_class_t_inspect_set(int argc, VALUE *argv, VALUE self) { + pn_class_t *arg1 = (pn_class_t *) 0 ; + int (*arg2)(void *,pn_string_t *) = (int (*)(void *,pn_string_t *)) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","inspect", 1, self )); + } + arg1 = (pn_class_t *)(argp1); + { + int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_void_p_struct_pn_string_t__int); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "int (*)(void *,pn_string_t *)","inspect", 2, argv[0] )); + } + } + if (arg1) (arg1)->inspect = arg2; + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_class_t_inspect_get(int argc, VALUE *argv, VALUE self) { + pn_class_t *arg1 = (pn_class_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int (*result)(void *,pn_string_t *) = 0 ; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","inspect", 1, self )); + } + arg1 = (pn_class_t *)(argp1); + result = (int (*)(void *,pn_string_t *)) ((arg1)->inspect); + vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_p_struct_pn_string_t__int); + return vresult; +fail: + return Qnil; +} + + +#ifdef HAVE_RB_DEFINE_ALLOC_FUNC +SWIGINTERN VALUE +_wrap_pn_class_t_allocate(VALUE self) { +#else + SWIGINTERN VALUE + _wrap_pn_class_t_allocate(int argc, VALUE *argv, VALUE self) { +#endif + + + VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_pn_class_t); +#ifndef HAVE_RB_DEFINE_ALLOC_FUNC + rb_obj_call_init(vresult, argc, argv); +#endif + return vresult; + } + + +SWIGINTERN VALUE +_wrap_new_pn_class_t(int argc, VALUE *argv, VALUE self) { + pn_class_t *result = 0 ; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + result = (pn_class_t *)calloc(1, sizeof(pn_class_t)); + DATA_PTR(self) = result; + return self; +fail: + return Qnil; +} + + +SWIGINTERN void +free_pn_class_t(pn_class_t *arg1) { + free((char *) arg1); +} + +SWIGINTERN VALUE +_wrap_pn_new(int argc, VALUE *argv, VALUE self) { + size_t arg1 ; + pn_class_t *arg2 = (pn_class_t *) 0 ; + size_t val1 ; + int ecode1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + ecode1 = SWIG_AsVal_size_t(argv[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","pn_new", 1, argv[0] )); + } + arg1 = (size_t)(val1); + res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_class_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_class_t *","pn_new", 2, argv[1] )); + } + arg2 = (pn_class_t *)(argp2); + result = (void *)pn_new(arg1,arg2); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_incref(int argc, VALUE *argv, VALUE self) { + void *arg1 = (void *) 0 ; + int res1 ; + void *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_incref", 1, argv[0] )); + } + result = (void *)pn_incref(arg1); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_decref(int argc, VALUE *argv, VALUE self) { + void *arg1 = (void *) 0 ; + int res1 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_decref", 1, argv[0] )); + } + pn_decref(arg1); + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_refcount(int argc, VALUE *argv, VALUE self) { + void *arg1 = (void *) 0 ; + int res1 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_refcount", 1, argv[0] )); + } + result = (int)pn_refcount(arg1); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_free(int argc, VALUE *argv, VALUE self) { + void *arg1 = (void *) 0 ; + int res1 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_free", 1, argv[0] )); + } + pn_free(arg1); + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_class(int argc, VALUE *argv, VALUE self) { + void *arg1 = (void *) 0 ; + int res1 ; + pn_class_t *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_class", 1, argv[0] )); + } + result = (pn_class_t *)pn_class(arg1); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_class_t, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_hashcode(int argc, VALUE *argv, VALUE self) { + void *arg1 = (void *) 0 ; + int res1 ; + uintptr_t result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_hashcode", 1, argv[0] )); + } + result = pn_hashcode(arg1); + vresult = SWIG_NewPointerObj((uintptr_t *)memcpy((uintptr_t *)malloc(sizeof(uintptr_t)),&result,sizeof(uintptr_t)), SWIGTYPE_p_uintptr_t, SWIG_POINTER_OWN | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_compare(int argc, VALUE *argv, VALUE self) { + void *arg1 = (void *) 0 ; + void *arg2 = (void *) 0 ; + int res1 ; + int res2 ; + intptr_t result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_compare", 1, argv[0] )); + } + res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_compare", 2, argv[1] )); + } + result = pn_compare(arg1,arg2); + vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)malloc(sizeof(intptr_t)),&result,sizeof(intptr_t)), SWIGTYPE_p_intptr_t, SWIG_POINTER_OWN | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_equals(int argc, VALUE *argv, VALUE self) { + void *arg1 = (void *) 0 ; + void *arg2 = (void *) 0 ; + int res1 ; + int res2 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_equals", 1, argv[0] )); + } + res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_equals", 2, argv[1] )); + } + result = (bool)pn_equals(arg1,arg2); + vresult = SWIG_From_bool((bool)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_inspect(int argc, VALUE *argv, VALUE self) { + void *arg1 = (void *) 0 ; + pn_string_t *arg2 = (pn_string_t *) 0 ; + int res1 ; + void *argp2 = 0 ; + int res2 = 0 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_inspect", 1, argv[0] )); + } + res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_string_t *","pn_inspect", 2, argv[1] )); + } + arg2 = (pn_string_t *)(argp2); + result = (int)pn_inspect(arg1,arg2); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_list(int argc, VALUE *argv, VALUE self) { + size_t arg1 ; + int arg2 ; + size_t val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + pn_list_t *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + ecode1 = SWIG_AsVal_size_t(argv[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","pn_list", 1, argv[0] )); + } + arg1 = (size_t)(val1); + ecode2 = SWIG_AsVal_int(argv[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_list", 2, argv[1] )); + } + arg2 = (int)(val2); + result = (pn_list_t *)pn_list(arg1,arg2); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_list_t, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_list_size(int argc, VALUE *argv, VALUE self) { + pn_list_t *arg1 = (pn_list_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_size", 1, argv[0] )); + } + arg1 = (pn_list_t *)(argp1); + result = (size_t)pn_list_size(arg1); + vresult = SWIG_From_size_t((size_t)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_list_get(int argc, VALUE *argv, VALUE self) { + pn_list_t *arg1 = (pn_list_t *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + void *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_get", 1, argv[0] )); + } + arg1 = (pn_list_t *)(argp1); + ecode2 = SWIG_AsVal_int(argv[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_list_get", 2, argv[1] )); + } + arg2 = (int)(val2); + result = (void *)pn_list_get(arg1,arg2); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_list_set(int argc, VALUE *argv, VALUE self) { + pn_list_t *arg1 = (pn_list_t *) 0 ; + int arg2 ; + void *arg3 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + + if ((argc < 3) || (argc > 3)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_set", 1, argv[0] )); + } + arg1 = (pn_list_t *)(argp1); + ecode2 = SWIG_AsVal_int(argv[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_list_set", 2, argv[1] )); + } + arg2 = (int)(val2); + res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_list_set", 3, argv[2] )); + } + pn_list_set(arg1,arg2,arg3); + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_list_add(int argc, VALUE *argv, VALUE self) { + pn_list_t *arg1 = (pn_list_t *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_add", 1, argv[0] )); + } + arg1 = (pn_list_t *)(argp1); + res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_list_add", 2, argv[1] )); + } + result = (int)pn_list_add(arg1,arg2); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_list_index(int argc, VALUE *argv, VALUE self) { + pn_list_t *arg1 = (pn_list_t *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + ssize_t result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_index", 1, argv[0] )); + } + arg1 = (pn_list_t *)(argp1); + res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_list_index", 2, argv[1] )); + } + result = (ssize_t)pn_list_index(arg1,arg2); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_list_remove(int argc, VALUE *argv, VALUE self) { + pn_list_t *arg1 = (pn_list_t *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_remove", 1, argv[0] )); + } + arg1 = (pn_list_t *)(argp1); + res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_list_remove", 2, argv[1] )); + } + result = (bool)pn_list_remove(arg1,arg2); + vresult = SWIG_From_bool((bool)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_list_del(int argc, VALUE *argv, VALUE self) { + pn_list_t *arg1 = (pn_list_t *) 0 ; + int arg2 ; + int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + + if ((argc < 3) || (argc > 3)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_del", 1, argv[0] )); + } + arg1 = (pn_list_t *)(argp1); + ecode2 = SWIG_AsVal_int(argv[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_list_del", 2, argv[1] )); + } + arg2 = (int)(val2); + ecode3 = SWIG_AsVal_int(argv[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","pn_list_del", 3, argv[2] )); + } + arg3 = (int)(val3); + pn_list_del(arg1,arg2,arg3); + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_map(int argc, VALUE *argv, VALUE self) { + size_t arg1 ; + float arg2 ; + int arg3 ; + size_t val1 ; + int ecode1 = 0 ; + float val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + pn_map_t *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 3) || (argc > 3)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; + } + ecode1 = SWIG_AsVal_size_t(argv[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","pn_map", 1, argv[0] )); + } + arg1 = (size_t)(val1); + ecode2 = SWIG_AsVal_float(argv[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","pn_map", 2, argv[1] )); + } + arg2 = (float)(val2); + ecode3 = SWIG_AsVal_int(argv[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","pn_map", 3, argv[2] )); + } + arg3 = (int)(val3); + result = (pn_map_t *)pn_map(arg1,arg2,arg3); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_map_t, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_map_size(int argc, VALUE *argv, VALUE self) { + pn_map_t *arg1 = (pn_map_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_size", 1, argv[0] )); + } + arg1 = (pn_map_t *)(argp1); + result = (size_t)pn_map_size(arg1); + vresult = SWIG_From_size_t((size_t)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_map_put(int argc, VALUE *argv, VALUE self) { + pn_map_t *arg1 = (pn_map_t *) 0 ; + void *arg2 = (void *) 0 ; + void *arg3 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + int res3 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 3) || (argc > 3)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_put", 1, argv[0] )); + } + arg1 = (pn_map_t *)(argp1); + res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_map_put", 2, argv[1] )); + } + res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_map_put", 3, argv[2] )); + } + result = (int)pn_map_put(arg1,arg2,arg3); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_map_get(int argc, VALUE *argv, VALUE self) { + pn_map_t *arg1 = (pn_map_t *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + void *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_get", 1, argv[0] )); + } + arg1 = (pn_map_t *)(argp1); + res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_map_get", 2, argv[1] )); + } + result = (void *)pn_map_get(arg1,arg2); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_map_del(int argc, VALUE *argv, VALUE self) { + pn_map_t *arg1 = (pn_map_t *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_del", 1, argv[0] )); + } + arg1 = (pn_map_t *)(argp1); + res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_map_del", 2, argv[1] )); + } + pn_map_del(arg1,arg2); + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_map_head(int argc, VALUE *argv, VALUE self) { + pn_map_t *arg1 = (pn_map_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + pn_handle_t result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_head", 1, argv[0] )); + } + arg1 = (pn_map_t *)(argp1); + result = pn_map_head(arg1); + vresult = SWIG_NewPointerObj((pn_handle_t *)memcpy((pn_handle_t *)malloc(sizeof(pn_handle_t)),&result,sizeof(pn_handle_t)), SWIGTYPE_p_uintptr_t, SWIG_POINTER_OWN | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_map_next(int argc, VALUE *argv, VALUE self) { + pn_map_t *arg1 = (pn_map_t *) 0 ; + pn_handle_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + pn_handle_t result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_next", 1, argv[0] )); + } + arg1 = (pn_map_t *)(argp1); + { + res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_next", 2, argv[1] )); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_handle_t","pn_map_next", 2, argv[1])); + } else { + arg2 = *((pn_handle_t *)(argp2)); + } + } + result = pn_map_next(arg1,arg2); + vresult = SWIG_NewPointerObj((pn_handle_t *)memcpy((pn_handle_t *)malloc(sizeof(pn_handle_t)),&result,sizeof(pn_handle_t)), SWIGTYPE_p_uintptr_t, SWIG_POINTER_OWN | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_map_key(int argc, VALUE *argv, VALUE self) { + pn_map_t *arg1 = (pn_map_t *) 0 ; + pn_handle_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + void *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_key", 1, argv[0] )); + } + arg1 = (pn_map_t *)(argp1); + { + res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_key", 2, argv[1] )); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_handle_t","pn_map_key", 2, argv[1])); + } else { + arg2 = *((pn_handle_t *)(argp2)); + } + } + result = (void *)pn_map_key(arg1,arg2); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_map_value(int argc, VALUE *argv, VALUE self) { + pn_map_t *arg1 = (pn_map_t *) 0 ; + pn_handle_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + void *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_value", 1, argv[0] )); + } + arg1 = (pn_map_t *)(argp1); + { + res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_value", 2, argv[1] )); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_handle_t","pn_map_value", 2, argv[1])); + } else { + arg2 = *((pn_handle_t *)(argp2)); + } + } + result = (void *)pn_map_value(arg1,arg2); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_hash(int argc, VALUE *argv, VALUE self) { + size_t arg1 ; + float arg2 ; + int arg3 ; + size_t val1 ; + int ecode1 = 0 ; + float val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + pn_hash_t *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 3) || (argc > 3)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; + } + ecode1 = SWIG_AsVal_size_t(argv[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","pn_hash", 1, argv[0] )); + } + arg1 = (size_t)(val1); + ecode2 = SWIG_AsVal_float(argv[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","pn_hash", 2, argv[1] )); + } + arg2 = (float)(val2); + ecode3 = SWIG_AsVal_int(argv[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","pn_hash", 3, argv[2] )); + } + arg3 = (int)(val3); + result = (pn_hash_t *)pn_hash(arg1,arg2,arg3); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_hash_t, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_hash_size(int argc, VALUE *argv, VALUE self) { + pn_hash_t *arg1 = (pn_hash_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_size", 1, argv[0] )); + } + arg1 = (pn_hash_t *)(argp1); + result = (size_t)pn_hash_size(arg1); + vresult = SWIG_From_size_t((size_t)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_hash_put(int argc, VALUE *argv, VALUE self) { + pn_hash_t *arg1 = (pn_hash_t *) 0 ; + uintptr_t arg2 ; + void *arg3 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + int res3 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 3) || (argc > 3)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_put", 1, argv[0] )); + } + arg1 = (pn_hash_t *)(argp1); + { + res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_put", 2, argv[1] )); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uintptr_t","pn_hash_put", 2, argv[1])); + } else { + arg2 = *((uintptr_t *)(argp2)); + } + } + res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_hash_put", 3, argv[2] )); + } + result = (int)pn_hash_put(arg1,arg2,arg3); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_hash_get(int argc, VALUE *argv, VALUE self) { + pn_hash_t *arg1 = (pn_hash_t *) 0 ; + uintptr_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + void *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_get", 1, argv[0] )); + } + arg1 = (pn_hash_t *)(argp1); + { + res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_get", 2, argv[1] )); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uintptr_t","pn_hash_get", 2, argv[1])); + } else { + arg2 = *((uintptr_t *)(argp2)); + } + } + result = (void *)pn_hash_get(arg1,arg2); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_hash_del(int argc, VALUE *argv, VALUE self) { + pn_hash_t *arg1 = (pn_hash_t *) 0 ; + uintptr_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_del", 1, argv[0] )); + } + arg1 = (pn_hash_t *)(argp1); + { + res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_del", 2, argv[1] )); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uintptr_t","pn_hash_del", 2, argv[1])); + } else { + arg2 = *((uintptr_t *)(argp2)); + } + } + pn_hash_del(arg1,arg2); + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_hash_head(int argc, VALUE *argv, VALUE self) { + pn_hash_t *arg1 = (pn_hash_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + pn_handle_t result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_head", 1, argv[0] )); + } + arg1 = (pn_hash_t *)(argp1); + result = pn_hash_head(arg1); + vresult = SWIG_NewPointerObj((pn_handle_t *)memcpy((pn_handle_t *)malloc(sizeof(pn_handle_t)),&result,sizeof(pn_handle_t)), SWIGTYPE_p_uintptr_t, SWIG_POINTER_OWN | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_hash_next(int argc, VALUE *argv, VALUE self) { + pn_hash_t *arg1 = (pn_hash_t *) 0 ; + pn_handle_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + pn_handle_t result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_next", 1, argv[0] )); + } + arg1 = (pn_hash_t *)(argp1); + { + res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_next", 2, argv[1] )); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_handle_t","pn_hash_next", 2, argv[1])); + } else { + arg2 = *((pn_handle_t *)(argp2)); + } + } + result = pn_hash_next(arg1,arg2); + vresult = SWIG_NewPointerObj((pn_handle_t *)memcpy((pn_handle_t *)malloc(sizeof(pn_handle_t)),&result,sizeof(pn_handle_t)), SWIGTYPE_p_uintptr_t, SWIG_POINTER_OWN | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_hash_key(int argc, VALUE *argv, VALUE self) { + pn_hash_t *arg1 = (pn_hash_t *) 0 ; + pn_handle_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + uintptr_t result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_key", 1, argv[0] )); + } + arg1 = (pn_hash_t *)(argp1); + { + res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_key", 2, argv[1] )); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_handle_t","pn_hash_key", 2, argv[1])); + } else { + arg2 = *((pn_handle_t *)(argp2)); + } + } + result = pn_hash_key(arg1,arg2); + vresult = SWIG_NewPointerObj((uintptr_t *)memcpy((uintptr_t *)malloc(sizeof(uintptr_t)),&result,sizeof(uintptr_t)), SWIGTYPE_p_uintptr_t, SWIG_POINTER_OWN | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_hash_value(int argc, VALUE *argv, VALUE self) { + pn_hash_t *arg1 = (pn_hash_t *) 0 ; + pn_handle_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + void *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_value", 1, argv[0] )); + } + arg1 = (pn_hash_t *)(argp1); + { + res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_value", 2, argv[1] )); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_handle_t","pn_hash_value", 2, argv[1])); + } else { + arg2 = *((pn_handle_t *)(argp2)); + } + } + result = (void *)pn_hash_value(arg1,arg2); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_string(int argc, VALUE *argv, VALUE self) { + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + pn_string_t *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","pn_string", 1, argv[0] )); + } + arg1 = (char *)(buf1); + result = (pn_string_t *)pn_string((char const *)arg1); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); + return vresult; +fail: + if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_stringn(int argc, VALUE *argv, VALUE self) { + char *arg1 = (char *) 0 ; + size_t arg2 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + pn_string_t *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","pn_stringn", 1, argv[0] )); + } + arg1 = (char *)(buf1); + ecode2 = SWIG_AsVal_size_t(argv[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_stringn", 2, argv[1] )); + } + arg2 = (size_t)(val2); + result = (pn_string_t *)pn_stringn((char const *)arg1,arg2); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); + return vresult; +fail: + if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_string_get(int argc, VALUE *argv, VALUE self) { + pn_string_t *arg1 = (pn_string_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + char *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_get", 1, argv[0] )); + } + arg1 = (pn_string_t *)(argp1); + result = (char *)pn_string_get(arg1); + vresult = SWIG_FromCharPtr((const char *)result); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_string_size(int argc, VALUE *argv, VALUE self) { + pn_string_t *arg1 = (pn_string_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_size", 1, argv[0] )); + } + arg1 = (pn_string_t *)(argp1); + result = (size_t)pn_string_size(arg1); + vresult = SWIG_From_size_t((size_t)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_string_set(int argc, VALUE *argv, VALUE self) { + pn_string_t *arg1 = (pn_string_t *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_set", 1, argv[0] )); + } + arg1 = (pn_string_t *)(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_string_set", 2, argv[1] )); + } + arg2 = (char *)(buf2); + result = (int)pn_string_set(arg1,(char const *)arg2); + vresult = SWIG_From_int((int)(result)); + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_string_setn(int argc, VALUE *argv, VALUE self) { + pn_string_t *arg1 = (pn_string_t *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 3) || (argc > 3)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_setn", 1, argv[0] )); + } + arg1 = (pn_string_t *)(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_string_setn", 2, argv[1] )); + } + arg2 = (char *)(buf2); + ecode3 = SWIG_AsVal_size_t(argv[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_string_setn", 3, argv[2] )); + } + arg3 = (size_t)(val3); + result = (int)pn_string_setn(arg1,(char const *)arg2,arg3); + vresult = SWIG_From_int((int)(result)); + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_string_put(int argc, VALUE *argv, VALUE self) { + pn_string_t *arg1 = (pn_string_t *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + ssize_t result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_put", 1, argv[0] )); + } + arg1 = (pn_string_t *)(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_string_put", 2, argv[1] )); + } + arg2 = (char *)(buf2); + result = (ssize_t)pn_string_put(arg1,arg2); + vresult = SWIG_From_int((int)(result)); + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_string_clear(int argc, VALUE *argv, VALUE self) { + pn_string_t *arg1 = (pn_string_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_clear", 1, argv[0] )); + } + arg1 = (pn_string_t *)(argp1); + pn_string_clear(arg1); + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_string_format(int argc, VALUE *argv, VALUE self) { + pn_string_t *arg1 = (pn_string_t *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int result; + VALUE vresult = Qnil; + + if (argc < 2) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_format", 1, argv[0] )); + } + arg1 = (pn_string_t *)(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_string_format", 2, argv[1] )); + } + arg2 = (char *)(buf2); + result = (int)pn_string_format(arg1,(char const *)arg2,arg3); + vresult = SWIG_From_int((int)(result)); + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_string_addf(int argc, VALUE *argv, VALUE self) { + pn_string_t *arg1 = (pn_string_t *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int result; + VALUE vresult = Qnil; + + if (argc < 2) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_addf", 1, argv[0] )); + } + arg1 = (pn_string_t *)(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_string_addf", 2, argv[1] )); + } + arg2 = (char *)(buf2); + result = (int)pn_string_addf(arg1,(char const *)arg2,arg3); + vresult = SWIG_From_int((int)(result)); + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_string_grow(int argc, VALUE *argv, VALUE self) { + pn_string_t *arg1 = (pn_string_t *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_grow", 1, argv[0] )); + } + arg1 = (pn_string_t *)(argp1); + ecode2 = SWIG_AsVal_size_t(argv[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_string_grow", 2, argv[1] )); + } + arg2 = (size_t)(val2); + result = (int)pn_string_grow(arg1,arg2); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_string_buffer(int argc, VALUE *argv, VALUE self) { + pn_string_t *arg1 = (pn_string_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + char *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_buffer", 1, argv[0] )); + } + arg1 = (pn_string_t *)(argp1); + result = (char *)pn_string_buffer(arg1); + vresult = SWIG_FromCharPtr((const char *)result); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_string_capacity(int argc, VALUE *argv, VALUE self) { + pn_string_t *arg1 = (pn_string_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_capacity", 1, argv[0] )); + } + arg1 = (pn_string_t *)(argp1); + result = (size_t)pn_string_capacity(arg1); + vresult = SWIG_From_size_t((size_t)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_string_resize(int argc, VALUE *argv, VALUE self) { + pn_string_t *arg1 = (pn_string_t *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_resize", 1, argv[0] )); + } + arg1 = (pn_string_t *)(argp1); + ecode2 = SWIG_AsVal_size_t(argv[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_string_resize", 2, argv[1] )); + } + arg2 = (size_t)(val2); + result = (int)pn_string_resize(arg1,arg2); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_string_copy(int argc, VALUE *argv, VALUE self) { + pn_string_t *arg1 = (pn_string_t *) 0 ; + pn_string_t *arg2 = (pn_string_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_copy", 1, argv[0] )); + } + arg1 = (pn_string_t *)(argp1); + res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_string_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_copy", 2, argv[1] )); + } + arg2 = (pn_string_t *)(argp2); + result = (int)pn_string_copy(arg1,arg2); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + + 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++) { @@ -4382,10 +6214,34 @@ 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 ; @@ -4430,10 +6286,34 @@ 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_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 ; @@ -4510,10 +6390,111 @@ return Qnil; } SWIGINTERN VALUE +_wrap_pn_session_get_incoming_capacity(int argc, VALUE *argv, VALUE self) { + pn_session_t *arg1 = (pn_session_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_get_incoming_capacity", 1, argv[0] )); + } + arg1 = (pn_session_t *)(argp1); + result = (size_t)pn_session_get_incoming_capacity(arg1); + vresult = SWIG_From_size_t((size_t)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_session_set_incoming_capacity(int argc, VALUE *argv, VALUE self) { + pn_session_t *arg1 = (pn_session_t *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_set_incoming_capacity", 1, argv[0] )); + } + arg1 = (pn_session_t *)(argp1); + ecode2 = SWIG_AsVal_size_t(argv[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_session_set_incoming_capacity", 2, argv[1] )); + } + arg2 = (size_t)(val2); + pn_session_set_incoming_capacity(arg1,arg2); + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_session_outgoing_bytes(int argc, VALUE *argv, VALUE self) { + pn_session_t *arg1 = (pn_session_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_outgoing_bytes", 1, argv[0] )); + } + arg1 = (pn_session_t *)(argp1); + result = (size_t)pn_session_outgoing_bytes(arg1); + vresult = SWIG_From_size_t((size_t)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_session_incoming_bytes(int argc, VALUE *argv, VALUE self) { + pn_session_t *arg1 = (pn_session_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_incoming_bytes", 1, argv[0] )); + } + arg1 = (pn_session_t *)(argp1); + result = (size_t)pn_session_incoming_bytes(arg1); + vresult = SWIG_From_size_t((size_t)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE _wrap_pn_transport(int argc, VALUE *argv, VALUE self) { pn_transport_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4824,13 +6805,11 @@ 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 = (VALUE) result; - } + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } @@ -4839,21 +6818,23 @@ _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); - { - arg2 = (void *) argv[1]; + 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; @@ -4935,10 +6916,53 @@ SWIGINTERN VALUE _wrap_pn_transport_push(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 3) || (argc > 3)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_push", 1, argv[0] )); + } + arg1 = (pn_transport_t *)(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_transport_push", 2, argv[1] )); + } + arg2 = (char *)(buf2); + ecode3 = SWIG_AsVal_size_t(argv[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_transport_push", 3, argv[2] )); + } + arg3 = (size_t)(val3); + result = (int)pn_transport_push(arg1,(char const *)arg2,arg3); + vresult = SWIG_From_int((int)(result)); + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_transport_process(int argc, VALUE *argv, VALUE self) { + pn_transport_t *arg1 = (pn_transport_t *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; @@ -4948,19 +6972,19 @@ if ((argc < 2) || (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_push", 1, argv[0] )); + 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_push", 2, argv[1] )); + 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_push(arg1,arg2); + result = (int)pn_transport_process(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } @@ -5037,10 +7061,53 @@ return Qnil; } SWIGINTERN VALUE +_wrap_pn_transport_peek(int argc, VALUE *argv, VALUE self) { + pn_transport_t *arg1 = (pn_transport_t *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 3) || (argc > 3)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_peek", 1, argv[0] )); + } + arg1 = (pn_transport_t *)(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_transport_peek", 2, argv[1] )); + } + arg2 = (char *)(buf2); + ecode3 = SWIG_AsVal_size_t(argv[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_transport_peek", 3, argv[2] )); + } + arg3 = (size_t)(val3); + result = (int)pn_transport_peek(arg1,arg2,arg3); + vresult = SWIG_From_int((int)(result)); + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return Qnil; +} + + +SWIGINTERN VALUE _wrap_pn_transport_pop(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; @@ -5567,13 +7634,11 @@ 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 = (VALUE) result; - } + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } @@ -5582,21 +7647,23 @@ _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); - { - arg2 = (void *) argv[1]; + 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; @@ -6066,10 +8133,164 @@ 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_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_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_unsettled(int argc, VALUE *argv, VALUE self) { pn_link_t *arg1 = (pn_link_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; @@ -6229,13 +8450,11 @@ 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 = (VALUE) result; - } + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } @@ -6244,21 +8463,23 @@ _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); - { - arg2 = (void *) argv[1]; + 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; @@ -6813,10 +9034,66 @@ 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_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 ; @@ -6871,15 +9148,39 @@ 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 ; - pn_disposition_t result; + uint64_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } @@ -6888,24 +9189,48 @@ 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 = (pn_disposition_t)pn_delivery_local_state(arg1); - vresult = SWIG_From_int((int)(result)); + 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 ; - pn_disposition_t result; + uint64_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } @@ -6914,12 +9239,12 @@ 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 = (pn_disposition_t)pn_delivery_remote_state(arg1); - vresult = SWIG_From_int((int)(result)); + 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; } @@ -7079,31 +9404,29 @@ SWIGINTERN VALUE _wrap_pn_delivery_update(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; - pn_disposition_t arg2 ; + uint64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; + 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_int(argv[1], &val2); + 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_disposition_t","pn_delivery_update", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","pn_delivery_update", 2, argv[1] )); } - arg2 = (pn_disposition_t)(val2); - SWIG_contract_assert((arg1!=NULL)&&(check_disposition(arg2)), "Contract violation: require: (arg1!=NULL)&&(check_disposition(arg2))"); - + arg2 = (uint64_t)(val2); pn_delivery_update(arg1,arg2); return Qnil; fail: return Qnil; } @@ -7193,13 +9516,11 @@ 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 = (VALUE) result; - } + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } @@ -7208,30 +9529,316 @@ _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); - { - arg2 = (void *) argv[1]; + 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_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_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_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 ; @@ -7372,10 +9979,34 @@ 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_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; @@ -7723,11 +10354,11 @@ 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 ; - char *result = 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; } @@ -7736,12 +10367,12 @@ 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 = (char *)pn_message_error(arg1); - vresult = SWIG_FromCharPtr((const char *)result); + 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; } @@ -9979,10 +12610,11 @@ char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; + int res4 ; pn_listener_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; @@ -10000,12 +12632,13 @@ res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_listener", 3, argv[2] )); } arg3 = (char *)(buf3); - { - arg4 = (void *) argv[3]; + res4 = SWIG_ConvertPtr(argv[3],SWIG_as_voidptrptr(&arg4), 0, 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","pn_listener", 4, argv[3] )); } SWIG_contract_assert((arg1!=NULL)&&(arg2!=NULL)&&(arg3!=NULL), "Contract violation: require: (arg1!=NULL)&&(arg2!=NULL)&&(arg3!=NULL)"); result = (pn_listener_t *)pn_listener(arg1,(char const *)arg2,(char const *)arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_listener_t, 0 | 0 ); @@ -10143,13 +12776,11 @@ } arg1 = (pn_listener_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (void *)pn_listener_context(arg1); - { - vresult = (VALUE) result; - } + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } @@ -10158,21 +12789,23 @@ _wrap_pn_listener_set_context(int argc, VALUE *argv, VALUE self) { pn_listener_t *arg1 = (pn_listener_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_listener_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_listener_t *","pn_listener_set_context", 1, argv[0] )); } arg1 = (pn_listener_t *)(argp1); - { - arg2 = (void *) argv[1]; + res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_listener_set_context", 2, argv[1] )); } pn_listener_set_context(arg1,arg2); return Qnil; fail: return Qnil; @@ -10237,10 +12870,11 @@ char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; + int res4 ; pn_connector_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; @@ -10258,12 +12892,13 @@ res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_connector", 3, argv[2] )); } arg3 = (char *)(buf3); - { - arg4 = (void *) argv[3]; + res4 = SWIG_ConvertPtr(argv[3],SWIG_as_voidptrptr(&arg4), 0, 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","pn_connector", 4, argv[3] )); } SWIG_contract_assert((arg1!=NULL)&&(arg2!=NULL)&&(arg3!=NULL), "Contract violation: require: (arg1!=NULL)&&(arg2!=NULL)&&(arg3!=NULL)"); result = (pn_connector_t *)pn_connector(arg1,(char const *)arg2,(char const *)arg3,arg4); SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)"); @@ -10507,13 +13142,11 @@ } arg1 = (pn_connector_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); result = (void *)pn_connector_context(arg1); - { - vresult = (VALUE) result; - } + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } @@ -10522,21 +13155,23 @@ _wrap_pn_connector_set_context(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_set_context", 1, argv[0] )); } arg1 = (pn_connector_t *)(argp1); - { - arg2 = (void *) argv[1]; + res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_connector_set_context", 2, argv[1] )); } SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); pn_connector_set_context(arg1,arg2); return Qnil; @@ -10544,10 +13179,34 @@ return Qnil; } SWIGINTERN VALUE +_wrap_pn_connector_name(int argc, VALUE *argv, VALUE self) { + pn_connector_t *arg1 = (pn_connector_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + char *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t const *","pn_connector_name", 1, argv[0] )); + } + arg1 = (pn_connector_t *)(argp1); + result = (char *)pn_connector_name((struct pn_connector_t const *)arg1); + vresult = SWIG_FromCharPtr((const char *)result); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE _wrap_pn_connector_transport(int argc, VALUE *argv, VALUE self) { pn_connector_t *arg1 = (pn_connector_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_transport_t *result = 0 ; @@ -10709,10 +13368,11 @@ void *arg3 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + int res3 ; pn_listener_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; @@ -10725,12 +13385,13 @@ ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_socket_t","pn_listener_fd", 2, argv[1] )); } arg2 = (pn_socket_t)(val2); - { - arg3 = (void *) argv[2]; + res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_listener_fd", 3, argv[2] )); } result = (pn_listener_t *)pn_listener_fd(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_listener_t, 0 | 0 ); return vresult; fail: @@ -10745,10 +13406,11 @@ void *arg3 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; + int res3 ; pn_connector_t *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; @@ -10761,12 +13423,13 @@ ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_socket_t","pn_connector_fd", 2, argv[1] )); } arg2 = (pn_socket_t)(val2); - { - arg3 = (void *) argv[2]; + res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_connector_fd", 3, argv[2] )); } result = (pn_connector_t *)pn_connector_fd(arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connector_t, 0 | 0 ); return vresult; fail: @@ -11126,134 +13789,134 @@ return Qnil; } SWIGINTERN VALUE -_wrap_pn_messenger_free(int argc, VALUE *argv, VALUE self) { +_wrap_pn_messenger_is_blocking(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + bool result; + VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_free", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_is_blocking", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); - SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); - - pn_messenger_free(arg1); - return Qnil; + result = (bool)pn_messenger_is_blocking(arg1); + vresult = SWIG_From_bool((bool)(result)); + return vresult; fail: return Qnil; } SWIGINTERN VALUE -_wrap_pn_messenger_errno(int argc, VALUE *argv, VALUE self) { +_wrap_pn_messenger_set_blocking(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; + bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; int result; VALUE vresult = Qnil; - if ((argc < 1) || (argc > 1)) { - rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_errno", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_blocking", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); - SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); - - result = (int)pn_messenger_errno(arg1); + ecode2 = SWIG_AsVal_bool(argv[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_messenger_set_blocking", 2, argv[1] )); + } + arg2 = (bool)(val2); + result = (int)pn_messenger_set_blocking(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE -_wrap_pn_messenger_error(int argc, VALUE *argv, VALUE self) { +_wrap_pn_messenger_free(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - char *result = 0 ; - VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_error", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_free", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); - result = (char *)pn_messenger_error(arg1); - vresult = SWIG_FromCharPtr((const char *)result); - return vresult; + pn_messenger_free(arg1); + return Qnil; fail: return Qnil; } SWIGINTERN VALUE -_wrap_pn_messenger_get_accept_mode(int argc, VALUE *argv, VALUE self) { +_wrap_pn_messenger_errno(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - pn_accept_mode_t result; + int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_accept_mode", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_errno", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); - result = (pn_accept_mode_t)pn_messenger_get_accept_mode(arg1); + SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); + + result = (int)pn_messenger_errno(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE -_wrap_pn_messenger_set_accept_mode(int argc, VALUE *argv, VALUE self) { +_wrap_pn_messenger_error(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; - pn_accept_mode_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int result; + pn_error_t *result = 0 ; VALUE vresult = Qnil; - if ((argc < 2) || (argc > 2)) { - rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_accept_mode", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_error", 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( "", "pn_accept_mode_t","pn_messenger_set_accept_mode", 2, argv[1] )); - } - arg2 = (pn_accept_mode_t)(val2); - result = (int)pn_messenger_set_accept_mode(arg1,arg2); - vresult = SWIG_From_int((int)(result)); + SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); + + result = (pn_error_t *)pn_messenger_error(arg1); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 ); return vresult; fail: return Qnil; } @@ -11421,10 +14084,34 @@ return Qnil; } SWIGINTERN VALUE +_wrap_pn_messenger_stopped(int argc, VALUE *argv, VALUE self) { + pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_stopped", 1, argv[0] )); + } + arg1 = (pn_messenger_t *)(argp1); + result = (bool)pn_messenger_stopped(arg1); + vresult = SWIG_From_bool((bool)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE _wrap_pn_messenger_subscribe(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -11474,13 +14161,11 @@ if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_subscription_t *","pn_subscription_get_context", 1, argv[0] )); } arg1 = (pn_subscription_t *)(argp1); result = (void *)pn_subscription_get_context(arg1); - { - vresult = (VALUE) result; - } + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } @@ -11489,21 +14174,23 @@ _wrap_pn_subscription_set_context(int argc, VALUE *argv, VALUE self) { pn_subscription_t *arg1 = (pn_subscription_t *) 0 ; void *arg2 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_subscription_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_subscription_t *","pn_subscription_set_context", 1, argv[0] )); } arg1 = (pn_subscription_t *)(argp1); - { - arg2 = (void *) argv[1]; + res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_subscription_set_context", 2, argv[1] )); } pn_subscription_set_context(arg1,arg2); return Qnil; fail: return Qnil; @@ -11639,28 +14326,90 @@ return Qnil; } SWIGINTERN VALUE -_wrap_pn_messenger_send(int argc, VALUE *argv, VALUE self) { +_wrap_pn_messenger_work(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; + int arg2 ; void *argp1 = 0 ; int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; int result; VALUE vresult = Qnil; + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_work", 1, argv[0] )); + } + arg1 = (pn_messenger_t *)(argp1); + ecode2 = SWIG_AsVal_int(argv[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_messenger_work", 2, argv[1] )); + } + arg2 = (int)(val2); + result = (int)pn_messenger_work(arg1,arg2); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_messenger_interrupt(int argc, VALUE *argv, VALUE self) { + pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int result; + VALUE vresult = Qnil; + if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_send", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_interrupt", 1, argv[0] )); } arg1 = (pn_messenger_t *)(argp1); - SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)"); + result = (int)pn_messenger_interrupt(arg1); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_messenger_send(int argc, VALUE *argv, VALUE self) { + pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int result; + VALUE vresult = Qnil; - result = (int)pn_messenger_send(arg1); + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_send", 1, argv[0] )); + } + arg1 = (pn_messenger_t *)(argp1); + ecode2 = SWIG_AsVal_int(argv[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_messenger_send", 2, argv[1] )); + } + arg2 = (int)(val2); + result = (int)pn_messenger_send(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } @@ -11699,10 +14448,34 @@ return Qnil; } SWIGINTERN VALUE +_wrap_pn_messenger_receiving(int argc, VALUE *argv, VALUE self) { + pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_receiving", 1, argv[0] )); + } + arg1 = (pn_messenger_t *)(argp1); + result = (int)pn_messenger_receiving(arg1); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE _wrap_pn_messenger_get(int argc, VALUE *argv, VALUE self) { pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; pn_message_t *arg2 = (pn_message_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -11917,10 +14690,102 @@ return Qnil; } SWIGINTERN VALUE +_wrap_pn_messenger_route(int argc, VALUE *argv, VALUE self) { + pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 3) || (argc > 3)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_route", 1, argv[0] )); + } + arg1 = (pn_messenger_t *)(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_messenger_route", 2, argv[1] )); + } + arg2 = (char *)(buf2); + res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_messenger_route", 3, argv[2] )); + } + arg3 = (char *)(buf3); + result = (int)pn_messenger_route(arg1,(char const *)arg2,(char const *)arg3); + vresult = SWIG_From_int((int)(result)); + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_messenger_rewrite(int argc, VALUE *argv, VALUE self) { + pn_messenger_t *arg1 = (pn_messenger_t *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 3) || (argc > 3)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_rewrite", 1, argv[0] )); + } + arg1 = (pn_messenger_t *)(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_messenger_rewrite", 2, argv[1] )); + } + arg2 = (char *)(buf2); + res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_messenger_rewrite", 3, argv[2] )); + } + arg3 = (char *)(buf3); + result = (int)pn_messenger_rewrite(arg1,(char const *)arg2,(char const *)arg3); + vresult = SWIG_From_int((int)(result)); + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); + return Qnil; +} + + +SWIGINTERN VALUE _wrap_pn_ssl_domain(int argc, VALUE *argv, VALUE self) { pn_ssl_mode_t arg1 ; int val1 ; int ecode1 = 0 ; pn_ssl_domain_t *result = 0 ; @@ -13799,10 +16664,45 @@ 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; @@ -15763,10 +18663,72 @@ return Qnil; } SWIGINTERN VALUE +_wrap_pn_data_point(int argc, VALUE *argv, VALUE self) { + pn_data_t *arg1 = (pn_data_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + pn_handle_t result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_point", 1, argv[0] )); + } + arg1 = (pn_data_t *)(argp1); + result = pn_data_point(arg1); + vresult = SWIG_NewPointerObj((pn_handle_t *)memcpy((pn_handle_t *)malloc(sizeof(pn_handle_t)),&result,sizeof(pn_handle_t)), SWIGTYPE_p_uintptr_t, SWIG_POINTER_OWN | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_data_restore(int argc, VALUE *argv, VALUE self) { + pn_data_t *arg1 = (pn_data_t *) 0 ; + pn_handle_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_restore", 1, argv[0] )); + } + arg1 = (pn_data_t *)(argp1); + { + res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uintptr_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handle_t","pn_data_restore", 2, argv[1] )); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_handle_t","pn_data_restore", 2, argv[1])); + } else { + arg2 = *((pn_handle_t *)(argp2)); + } + } + result = (bool)pn_data_restore(arg1,arg2); + vresult = SWIG_From_bool((bool)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE _wrap_pn_data_dump(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -15787,215 +18749,271 @@ /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_p_void__uintptr_t = {"_p_f_p_void__uintptr_t", "uintptr_t (*)(void *)", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_p_void__void = {"_p_f_p_void__void", "void (*)(void *)", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_p_void_p_struct_pn_string_t__int = {"_p_f_p_void_p_struct_pn_string_t__int", "int (*)(void *,struct pn_string_t *)|int (*)(void *,pn_string_t *)", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_p_void_p_void__intptr_t = {"_p_f_p_void_p_void__intptr_t", "intptr_t (*)(void *,void *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_int = {"_p_int", "int *|ssize_t *|pn_state_t *|pn_trace_t *|pn_socket_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_intptr_t = {"_p_intptr_t", "intptr_t *|pn_shandle_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_long = {"_p_long", "int32_t *|long *|pn_sequence_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_long_long = {"_p_long_long", "int64_t *|long long *|pn_tracker_t *|pn_timestamp_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_pn_accept_mode_t = {"_p_pn_accept_mode_t", "enum pn_accept_mode_t *|pn_accept_mode_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_activate_criteria_t = {"_p_pn_activate_criteria_t", "enum pn_activate_criteria_t *|pn_activate_criteria_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_atom_t = {"_p_pn_atom_t", "pn_atom_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_atom_t_u = {"_p_pn_atom_t_u", "pn_atom_t_u *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_bytes_t = {"_p_pn_bytes_t", "pn_bytes_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_pn_class_t = {"_p_pn_class_t", "pn_class_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_condition_t = {"_p_pn_condition_t", "struct pn_condition_t *|pn_condition_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_connection_t = {"_p_pn_connection_t", "struct pn_connection_t *|pn_connection_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_connector_t = {"_p_pn_connector_t", "struct pn_connector_t *|pn_connector_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_data_t = {"_p_pn_data_t", "struct pn_data_t *|pn_data_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_decimal128_t = {"_p_pn_decimal128_t", "pn_decimal128_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_delivery_t = {"_p_pn_delivery_t", "struct pn_delivery_t *|pn_delivery_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_delivery_tag_t = {"_p_pn_delivery_tag_t", "struct pn_delivery_tag_t *|pn_delivery_tag_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_pn_disposition_t = {"_p_pn_disposition_t", "enum pn_disposition_t *|pn_disposition_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_pn_disposition_t = {"_p_pn_disposition_t", "struct pn_disposition_t *|pn_disposition_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_pn_distribution_mode_t = {"_p_pn_distribution_mode_t", "enum pn_distribution_mode_t *|pn_distribution_mode_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_driver_t = {"_p_pn_driver_t", "struct pn_driver_t *|pn_driver_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_durability_t = {"_p_pn_durability_t", "enum pn_durability_t *|pn_durability_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_error_t = {"_p_pn_error_t", "struct pn_error_t *|pn_error_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_expiry_policy_t = {"_p_pn_expiry_policy_t", "enum pn_expiry_policy_t *|pn_expiry_policy_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_format_t = {"_p_pn_format_t", "enum pn_format_t *|pn_format_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_pn_hash_t = {"_p_pn_hash_t", "struct pn_hash_t *|pn_hash_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_link_t = {"_p_pn_link_t", "struct pn_link_t *|pn_link_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_pn_list_t = {"_p_pn_list_t", "struct pn_list_t *|pn_list_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_listener_t = {"_p_pn_listener_t", "struct pn_listener_t *|pn_listener_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_pn_map_t = {"_p_pn_map_t", "struct pn_map_t *|pn_map_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_message_t = {"_p_pn_message_t", "struct pn_message_t *|pn_message_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_messenger_t = {"_p_pn_messenger_t", "struct pn_messenger_t *|pn_messenger_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_pn_rcv_settle_mode_t = {"_p_pn_rcv_settle_mode_t", "enum pn_rcv_settle_mode_t *|pn_rcv_settle_mode_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_sasl_outcome_t = {"_p_pn_sasl_outcome_t", "enum pn_sasl_outcome_t *|pn_sasl_outcome_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_sasl_state_t = {"_p_pn_sasl_state_t", "enum pn_sasl_state_t *|pn_sasl_state_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_sasl_t = {"_p_pn_sasl_t", "struct pn_sasl_t *|pn_sasl_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_session_t = {"_p_pn_session_t", "struct pn_session_t *|pn_session_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_pn_snd_settle_mode_t = {"_p_pn_snd_settle_mode_t", "enum pn_snd_settle_mode_t *|pn_snd_settle_mode_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_ssl_domain_t = {"_p_pn_ssl_domain_t", "struct pn_ssl_domain_t *|pn_ssl_domain_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_ssl_mode_t = {"_p_pn_ssl_mode_t", "enum pn_ssl_mode_t *|pn_ssl_mode_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_ssl_resume_status_t = {"_p_pn_ssl_resume_status_t", "enum pn_ssl_resume_status_t *|pn_ssl_resume_status_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_ssl_t = {"_p_pn_ssl_t", "struct pn_ssl_t *|pn_ssl_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_ssl_verify_mode_t = {"_p_pn_ssl_verify_mode_t", "enum pn_ssl_verify_mode_t *|pn_ssl_verify_mode_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_status_t = {"_p_pn_status_t", "enum pn_status_t *|pn_status_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_pn_string_t = {"_p_pn_string_t", "struct pn_string_t *|pn_string_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_subscription_t = {"_p_pn_subscription_t", "struct pn_subscription_t *|pn_subscription_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_terminus_t = {"_p_pn_terminus_t", "struct pn_terminus_t *|pn_terminus_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_terminus_type_t = {"_p_pn_terminus_type_t", "enum pn_terminus_type_t *|pn_terminus_type_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_transport_t = {"_p_pn_transport_t", "struct pn_transport_t *|pn_transport_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_type_t = {"_p_pn_type_t", "enum pn_type_t *|pn_type_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_uuid_t = {"_p_pn_uuid_t", "pn_uuid_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_short = {"_p_short", "short *|int16_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|int8_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_uintptr_t = {"_p_uintptr_t", "uintptr_t *|pn_handle_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uint8_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "size_t *|unsigned int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "pn_seconds_t *|pn_decimal32_t *|uint32_t *|unsigned long *|pn_millis_t *|pn_char_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "pn_decimal64_t *|uint64_t *|unsigned long long *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|uint16_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__p_char, + &_swigt__p_f_p_void__uintptr_t, + &_swigt__p_f_p_void__void, + &_swigt__p_f_p_void_p_struct_pn_string_t__int, + &_swigt__p_f_p_void_p_void__intptr_t, &_swigt__p_int, + &_swigt__p_intptr_t, &_swigt__p_long, &_swigt__p_long_long, &_swigt__p_p_char, - &_swigt__p_pn_accept_mode_t, &_swigt__p_pn_activate_criteria_t, &_swigt__p_pn_atom_t, &_swigt__p_pn_atom_t_u, &_swigt__p_pn_bytes_t, + &_swigt__p_pn_class_t, &_swigt__p_pn_condition_t, &_swigt__p_pn_connection_t, &_swigt__p_pn_connector_t, &_swigt__p_pn_data_t, &_swigt__p_pn_decimal128_t, &_swigt__p_pn_delivery_t, &_swigt__p_pn_delivery_tag_t, &_swigt__p_pn_disposition_t, + &_swigt__p_pn_distribution_mode_t, &_swigt__p_pn_driver_t, &_swigt__p_pn_durability_t, &_swigt__p_pn_error_t, &_swigt__p_pn_expiry_policy_t, &_swigt__p_pn_format_t, + &_swigt__p_pn_hash_t, &_swigt__p_pn_link_t, + &_swigt__p_pn_list_t, &_swigt__p_pn_listener_t, + &_swigt__p_pn_map_t, &_swigt__p_pn_message_t, &_swigt__p_pn_messenger_t, + &_swigt__p_pn_rcv_settle_mode_t, &_swigt__p_pn_sasl_outcome_t, &_swigt__p_pn_sasl_state_t, &_swigt__p_pn_sasl_t, &_swigt__p_pn_session_t, + &_swigt__p_pn_snd_settle_mode_t, &_swigt__p_pn_ssl_domain_t, &_swigt__p_pn_ssl_mode_t, &_swigt__p_pn_ssl_resume_status_t, &_swigt__p_pn_ssl_t, &_swigt__p_pn_ssl_verify_mode_t, &_swigt__p_pn_status_t, + &_swigt__p_pn_string_t, &_swigt__p_pn_subscription_t, &_swigt__p_pn_terminus_t, &_swigt__p_pn_terminus_type_t, &_swigt__p_pn_transport_t, &_swigt__p_pn_type_t, &_swigt__p_pn_uuid_t, &_swigt__p_short, &_swigt__p_signed_char, + &_swigt__p_uintptr_t, &_swigt__p_unsigned_char, &_swigt__p_unsigned_int, &_swigt__p_unsigned_long, &_swigt__p_unsigned_long_long, &_swigt__p_unsigned_short, + &_swigt__p_void, }; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_p_void__uintptr_t[] = { {&_swigt__p_f_p_void__uintptr_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_p_void__void[] = { {&_swigt__p_f_p_void__void, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_p_void_p_struct_pn_string_t__int[] = { {&_swigt__p_f_p_void_p_struct_pn_string_t__int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_p_void_p_void__intptr_t[] = { {&_swigt__p_f_p_void_p_void__intptr_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_intptr_t[] = { {&_swigt__p_intptr_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_pn_accept_mode_t[] = { {&_swigt__p_pn_accept_mode_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_activate_criteria_t[] = { {&_swigt__p_pn_activate_criteria_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_atom_t[] = { {&_swigt__p_pn_atom_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_atom_t_u[] = { {&_swigt__p_pn_atom_t_u, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_bytes_t[] = { {&_swigt__p_pn_bytes_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_pn_class_t[] = { {&_swigt__p_pn_class_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_condition_t[] = { {&_swigt__p_pn_condition_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_connection_t[] = { {&_swigt__p_pn_connection_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_connector_t[] = { {&_swigt__p_pn_connector_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_data_t[] = { {&_swigt__p_pn_data_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_decimal128_t[] = { {&_swigt__p_pn_decimal128_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_delivery_t[] = { {&_swigt__p_pn_delivery_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_delivery_tag_t[] = { {&_swigt__p_pn_delivery_tag_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_disposition_t[] = { {&_swigt__p_pn_disposition_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_pn_distribution_mode_t[] = { {&_swigt__p_pn_distribution_mode_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_driver_t[] = { {&_swigt__p_pn_driver_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_durability_t[] = { {&_swigt__p_pn_durability_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_error_t[] = { {&_swigt__p_pn_error_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_expiry_policy_t[] = { {&_swigt__p_pn_expiry_policy_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_format_t[] = { {&_swigt__p_pn_format_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_pn_hash_t[] = { {&_swigt__p_pn_hash_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_link_t[] = { {&_swigt__p_pn_link_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_pn_list_t[] = { {&_swigt__p_pn_list_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_listener_t[] = { {&_swigt__p_pn_listener_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_pn_map_t[] = { {&_swigt__p_pn_map_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_message_t[] = { {&_swigt__p_pn_message_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_messenger_t[] = { {&_swigt__p_pn_messenger_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_pn_rcv_settle_mode_t[] = { {&_swigt__p_pn_rcv_settle_mode_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_sasl_outcome_t[] = { {&_swigt__p_pn_sasl_outcome_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_sasl_state_t[] = { {&_swigt__p_pn_sasl_state_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_sasl_t[] = { {&_swigt__p_pn_sasl_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_session_t[] = { {&_swigt__p_pn_session_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_pn_snd_settle_mode_t[] = { {&_swigt__p_pn_snd_settle_mode_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_ssl_domain_t[] = { {&_swigt__p_pn_ssl_domain_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_ssl_mode_t[] = { {&_swigt__p_pn_ssl_mode_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_ssl_resume_status_t[] = { {&_swigt__p_pn_ssl_resume_status_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_ssl_t[] = { {&_swigt__p_pn_ssl_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_ssl_verify_mode_t[] = { {&_swigt__p_pn_ssl_verify_mode_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_status_t[] = { {&_swigt__p_pn_status_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_pn_string_t[] = { {&_swigt__p_pn_string_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_subscription_t[] = { {&_swigt__p_pn_subscription_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_terminus_t[] = { {&_swigt__p_pn_terminus_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_terminus_type_t[] = { {&_swigt__p_pn_terminus_type_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_transport_t[] = { {&_swigt__p_pn_transport_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_type_t[] = { {&_swigt__p_pn_type_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_uuid_t[] = { {&_swigt__p_pn_uuid_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_uintptr_t[] = { {&_swigt__p_uintptr_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_long_long[] = { {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__p_char, + _swigc__p_f_p_void__uintptr_t, + _swigc__p_f_p_void__void, + _swigc__p_f_p_void_p_struct_pn_string_t__int, + _swigc__p_f_p_void_p_void__intptr_t, _swigc__p_int, + _swigc__p_intptr_t, _swigc__p_long, _swigc__p_long_long, _swigc__p_p_char, - _swigc__p_pn_accept_mode_t, _swigc__p_pn_activate_criteria_t, _swigc__p_pn_atom_t, _swigc__p_pn_atom_t_u, _swigc__p_pn_bytes_t, + _swigc__p_pn_class_t, _swigc__p_pn_condition_t, _swigc__p_pn_connection_t, _swigc__p_pn_connector_t, _swigc__p_pn_data_t, _swigc__p_pn_decimal128_t, _swigc__p_pn_delivery_t, _swigc__p_pn_delivery_tag_t, _swigc__p_pn_disposition_t, + _swigc__p_pn_distribution_mode_t, _swigc__p_pn_driver_t, _swigc__p_pn_durability_t, _swigc__p_pn_error_t, _swigc__p_pn_expiry_policy_t, _swigc__p_pn_format_t, + _swigc__p_pn_hash_t, _swigc__p_pn_link_t, + _swigc__p_pn_list_t, _swigc__p_pn_listener_t, + _swigc__p_pn_map_t, _swigc__p_pn_message_t, _swigc__p_pn_messenger_t, + _swigc__p_pn_rcv_settle_mode_t, _swigc__p_pn_sasl_outcome_t, _swigc__p_pn_sasl_state_t, _swigc__p_pn_sasl_t, _swigc__p_pn_session_t, + _swigc__p_pn_snd_settle_mode_t, _swigc__p_pn_ssl_domain_t, _swigc__p_pn_ssl_mode_t, _swigc__p_pn_ssl_resume_status_t, _swigc__p_pn_ssl_t, _swigc__p_pn_ssl_verify_mode_t, _swigc__p_pn_status_t, + _swigc__p_pn_string_t, _swigc__p_pn_subscription_t, _swigc__p_pn_terminus_t, _swigc__p_pn_terminus_type_t, _swigc__p_pn_transport_t, _swigc__p_pn_type_t, _swigc__p_pn_uuid_t, _swigc__p_short, _swigc__p_signed_char, + _swigc__p_uintptr_t, _swigc__p_unsigned_char, _swigc__p_unsigned_int, _swigc__p_unsigned_long, _swigc__p_unsigned_long_long, _swigc__p_unsigned_short, + _swigc__p_void, }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ @@ -16055,11 +19073,10 @@ SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; int found, init; - (void *)clientdata; /* 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; @@ -16307,19 +19324,91 @@ SwigClassPn_bytes_t.mark = 0; SwigClassPn_bytes_t.destroy = (void (*)(void *)) free_pn_bytes_t; SwigClassPn_bytes_t.trackObjects = 0; rb_define_module_function(mCproton, "pn_bytes", _wrap_pn_bytes, -1); rb_define_module_function(mCproton, "pn_bytes_dup", _wrap_pn_bytes_dup, -1); + rb_define_const(mCproton, "PROTON_OBJECT_H", SWIG_From_int((int)(1))); + + SwigClassPn_class_t.klass = rb_define_class_under(mCproton, "Pn_class_t", rb_cObject); + SWIG_TypeClientData(SWIGTYPE_p_pn_class_t, (void *) &SwigClassPn_class_t); + rb_define_alloc_func(SwigClassPn_class_t.klass, _wrap_pn_class_t_allocate); + rb_define_method(SwigClassPn_class_t.klass, "initialize", _wrap_new_pn_class_t, -1); + rb_define_method(SwigClassPn_class_t.klass, "finalize=", _wrap_pn_class_t_finalize_set, -1); + rb_define_method(SwigClassPn_class_t.klass, "finalize", _wrap_pn_class_t_finalize_get, -1); + rb_define_method(SwigClassPn_class_t.klass, "hashcode=", _wrap_pn_class_t_hashcode_set, -1); + rb_define_method(SwigClassPn_class_t.klass, "hashcode", _wrap_pn_class_t_hashcode_get, -1); + rb_define_method(SwigClassPn_class_t.klass, "compare=", _wrap_pn_class_t_compare_set, -1); + rb_define_method(SwigClassPn_class_t.klass, "compare", _wrap_pn_class_t_compare_get, -1); + rb_define_method(SwigClassPn_class_t.klass, "inspect=", _wrap_pn_class_t_inspect_set, -1); + rb_define_method(SwigClassPn_class_t.klass, "inspect", _wrap_pn_class_t_inspect_get, -1); + SwigClassPn_class_t.mark = 0; + SwigClassPn_class_t.destroy = (void (*)(void *)) free_pn_class_t; + SwigClassPn_class_t.trackObjects = 0; + rb_define_module_function(mCproton, "pn_new", _wrap_pn_new, -1); + rb_define_module_function(mCproton, "pn_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_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_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_const(mCproton, "PROTON_ERROR_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_EOS", SWIG_From_int((int)((-1)))); rb_define_const(mCproton, "PN_ERR", SWIG_From_int((int)((-2)))); rb_define_const(mCproton, "PN_OVERFLOW", SWIG_From_int((int)((-3)))); rb_define_const(mCproton, "PN_UNDERFLOW", SWIG_From_int((int)((-4)))); rb_define_const(mCproton, "PN_STATE_ERR", SWIG_From_int((int)((-5)))); rb_define_const(mCproton, "PN_ARG_ERR", SWIG_From_int((int)((-6)))); rb_define_const(mCproton, "PN_TIMEOUT", SWIG_From_int((int)((-7)))); rb_define_const(mCproton, "PN_INTR", SWIG_From_int((int)((-8)))); + rb_define_const(mCproton, "PN_INPROGRESS", SWIG_From_int((int)((-9)))); rb_define_module_function(mCproton, "pn_code", _wrap_pn_code, -1); rb_define_module_function(mCproton, "pn_error", _wrap_pn_error, -1); rb_define_module_function(mCproton, "pn_error_free", _wrap_pn_error_free, -1); rb_define_module_function(mCproton, "pn_error_clear", _wrap_pn_error_clear, -1); rb_define_module_function(mCproton, "pn_error_set", _wrap_pn_error_set, -1); @@ -16335,10 +19424,18 @@ rb_define_const(mCproton, "PN_DELIVERIES", SWIG_From_int((int)(PN_DELIVERIES))); rb_define_const(mCproton, "PN_LINK_CLOSE", SWIG_From_int((int)(PN_LINK_CLOSE))); rb_define_const(mCproton, "PN_SESSION_CLOSE", SWIG_From_int((int)(PN_SESSION_CLOSE))); rb_define_const(mCproton, "PN_CONNECTION_CLOSE", SWIG_From_int((int)(PN_CONNECTION_CLOSE))); rb_define_const(mCproton, "PN_NEVER", SWIG_From_int((int)(PN_NEVER))); + rb_define_const(mCproton, "PN_DIST_MODE_UNSPECIFIED", SWIG_From_int((int)(PN_DIST_MODE_UNSPECIFIED))); + rb_define_const(mCproton, "PN_DIST_MODE_COPY", SWIG_From_int((int)(PN_DIST_MODE_COPY))); + rb_define_const(mCproton, "PN_DIST_MODE_MOVE", SWIG_From_int((int)(PN_DIST_MODE_MOVE))); + rb_define_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))); SwigClassPn_delivery_tag_t.klass = rb_define_class_under(mCproton, "Pn_delivery_tag_t", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_pn_delivery_tag_t, (void *) &SwigClassPn_delivery_tag_t); rb_define_alloc_func(SwigClassPn_delivery_tag_t.klass, _wrap_pn_delivery_tag_t_allocate); rb_define_method(SwigClassPn_delivery_tag_t.klass, "initialize", _wrap_new_pn_delivery_tag_t, -1); @@ -16355,20 +19452,19 @@ 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_const(mCproton, "PN_RECEIVED", SWIG_From_int((int)(PN_RECEIVED))); - rb_define_const(mCproton, "PN_ACCEPTED", SWIG_From_int((int)(PN_ACCEPTED))); - rb_define_const(mCproton, "PN_REJECTED", SWIG_From_int((int)(PN_REJECTED))); - rb_define_const(mCproton, "PN_RELEASED", SWIG_From_int((int)(PN_RELEASED))); - rb_define_const(mCproton, "PN_MODIFIED", SWIG_From_int((int)(PN_MODIFIED))); + 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_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_SESSION_WINDOW", SWIG_From_int((int)((1024)))); rb_define_module_function(mCproton, "pn_connection", _wrap_pn_connection, -1); rb_define_module_function(mCproton, "pn_connection_state", _wrap_pn_connection_state, -1); rb_define_module_function(mCproton, "pn_connection_error", _wrap_pn_connection_error, -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); @@ -16376,15 +19472,21 @@ 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_work_head", _wrap_pn_work_head, -1); rb_define_module_function(mCproton, "pn_work_next", _wrap_pn_work_next, -1); rb_define_module_function(mCproton, "pn_session", _wrap_pn_session, -1); + rb_define_module_function(mCproton, "pn_session_get_incoming_capacity", _wrap_pn_session_get_incoming_capacity, -1); + rb_define_module_function(mCproton, "pn_session_set_incoming_capacity", _wrap_pn_session_set_incoming_capacity, -1); + rb_define_module_function(mCproton, "pn_session_outgoing_bytes", _wrap_pn_session_outgoing_bytes, -1); + rb_define_module_function(mCproton, "pn_session_incoming_bytes", _wrap_pn_session_incoming_bytes, -1); rb_define_module_function(mCproton, "pn_transport", _wrap_pn_transport, -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_session_head", _wrap_pn_session_head, -1); rb_define_module_function(mCproton, "pn_session_next", _wrap_pn_session_next, -1); @@ -16398,13 +19500,15 @@ rb_define_module_function(mCproton, "pn_connection_set_context", _wrap_pn_connection_set_context, -1); rb_define_module_function(mCproton, "pn_transport_error", _wrap_pn_transport_error, -1); rb_define_module_function(mCproton, "pn_transport_capacity", _wrap_pn_transport_capacity, -1); rb_define_module_function(mCproton, "pn_transport_tail", _wrap_pn_transport_tail, -1); rb_define_module_function(mCproton, "pn_transport_push", _wrap_pn_transport_push, -1); + rb_define_module_function(mCproton, "pn_transport_process", _wrap_pn_transport_process, -1); rb_define_module_function(mCproton, "pn_transport_close_tail", _wrap_pn_transport_close_tail, -1); rb_define_module_function(mCproton, "pn_transport_pending", _wrap_pn_transport_pending, -1); rb_define_module_function(mCproton, "pn_transport_head", _wrap_pn_transport_head, -1); + rb_define_module_function(mCproton, "pn_transport_peek", _wrap_pn_transport_peek, -1); rb_define_module_function(mCproton, "pn_transport_pop", _wrap_pn_transport_pop, -1); rb_define_module_function(mCproton, "pn_transport_close_head", _wrap_pn_transport_close_head, -1); rb_define_module_function(mCproton, "pn_transport_tick", _wrap_pn_transport_tick, -1); rb_define_module_function(mCproton, "pn_transport_trace", _wrap_pn_transport_trace, -1); rb_define_module_function(mCproton, "pn_transport_get_max_frame", _wrap_pn_transport_get_max_frame, -1); @@ -16440,10 +19544,16 @@ 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_available", _wrap_pn_link_available, -1); + 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_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_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_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_open", _wrap_pn_link_open, -1); rb_define_module_function(mCproton, "pn_link_close", _wrap_pn_link_close, -1); @@ -16468,13 +19578,17 @@ 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_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_copy", _wrap_pn_terminus_copy, -1); rb_define_module_function(mCproton, "pn_delivery_link", _wrap_pn_delivery_link, -1); + rb_define_module_function(mCproton, "pn_delivery_local", _wrap_pn_delivery_local, -1); rb_define_module_function(mCproton, "pn_delivery_local_state", _wrap_pn_delivery_local_state, -1); + rb_define_module_function(mCproton, "pn_delivery_remote", _wrap_pn_delivery_remote, -1); rb_define_module_function(mCproton, "pn_delivery_remote_state", _wrap_pn_delivery_remote_state, -1); rb_define_module_function(mCproton, "pn_delivery_settled", _wrap_pn_delivery_settled, -1); rb_define_module_function(mCproton, "pn_delivery_pending", _wrap_pn_delivery_pending, -1); rb_define_module_function(mCproton, "pn_delivery_partial", _wrap_pn_delivery_partial, -1); rb_define_module_function(mCproton, "pn_delivery_writable", _wrap_pn_delivery_writable, -1); @@ -16484,16 +19598,28 @@ rb_define_module_function(mCproton, "pn_delivery_clear", _wrap_pn_delivery_clear, -1); rb_define_module_function(mCproton, "pn_delivery_settle", _wrap_pn_delivery_settle, -1); rb_define_module_function(mCproton, "pn_delivery_dump", _wrap_pn_delivery_dump, -1); rb_define_module_function(mCproton, "pn_delivery_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_disposition_type", _wrap_pn_disposition_type, -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_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_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_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_disposition_condition", _wrap_pn_disposition_condition, -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); @@ -16614,26 +19740,26 @@ rb_define_module_function(mCproton, "pn_connector_sasl", _wrap_pn_connector_sasl, -1); rb_define_module_function(mCproton, "pn_connector_connection", _wrap_pn_connector_connection, -1); rb_define_module_function(mCproton, "pn_connector_set_connection", _wrap_pn_connector_set_connection, -1); rb_define_module_function(mCproton, "pn_connector_context", _wrap_pn_connector_context, -1); rb_define_module_function(mCproton, "pn_connector_set_context", _wrap_pn_connector_set_context, -1); + rb_define_module_function(mCproton, "pn_connector_name", _wrap_pn_connector_name, -1); rb_define_module_function(mCproton, "pn_connector_transport", _wrap_pn_connector_transport, -1); rb_define_module_function(mCproton, "pn_connector_close", _wrap_pn_connector_close, -1); rb_define_module_function(mCproton, "pn_connector_closed", _wrap_pn_connector_closed, -1); rb_define_module_function(mCproton, "pn_connector_free", _wrap_pn_connector_free, -1); rb_define_module_function(mCproton, "pn_connector_activate", _wrap_pn_connector_activate, -1); rb_define_module_function(mCproton, "pn_connector_activated", _wrap_pn_connector_activated, -1); rb_define_const(mCproton, "PROTON_DRIVER_H_EXTRAS", SWIG_From_int((int)(1))); rb_define_module_function(mCproton, "pn_listener_fd", _wrap_pn_listener_fd, -1); rb_define_module_function(mCproton, "pn_connector_fd", _wrap_pn_connector_fd, -1); rb_define_const(mCproton, "PROTON_MESSENGER_H", SWIG_From_int((int)(1))); - rb_define_const(mCproton, "PN_ACCEPT_MODE_AUTO", SWIG_From_int((int)(PN_ACCEPT_MODE_AUTO))); - rb_define_const(mCproton, "PN_ACCEPT_MODE_MANUAL", SWIG_From_int((int)(PN_ACCEPT_MODE_MANUAL))); rb_define_const(mCproton, "PN_STATUS_UNKNOWN", SWIG_From_int((int)(PN_STATUS_UNKNOWN))); rb_define_const(mCproton, "PN_STATUS_PENDING", SWIG_From_int((int)(PN_STATUS_PENDING))); rb_define_const(mCproton, "PN_STATUS_ACCEPTED", SWIG_From_int((int)(PN_STATUS_ACCEPTED))); rb_define_const(mCproton, "PN_STATUS_REJECTED", SWIG_From_int((int)(PN_STATUS_REJECTED))); + rb_define_const(mCproton, "PN_STATUS_MODIFIED", SWIG_From_int((int)(PN_STATUS_MODIFIED))); rb_define_module_function(mCproton, "pn_messenger", _wrap_pn_messenger, -1); rb_define_module_function(mCproton, "pn_messenger_name", _wrap_pn_messenger_name, -1); rb_define_module_function(mCproton, "pn_messenger_set_certificate", _wrap_pn_messenger_set_certificate, -1); rb_define_module_function(mCproton, "pn_messenger_get_certificate", _wrap_pn_messenger_get_certificate, -1); rb_define_module_function(mCproton, "pn_messenger_set_private_key", _wrap_pn_messenger_set_private_key, -1); @@ -16642,38 +19768,44 @@ rb_define_module_function(mCproton, "pn_messenger_get_password", _wrap_pn_messenger_get_password, -1); rb_define_module_function(mCproton, "pn_messenger_set_trusted_certificates", _wrap_pn_messenger_set_trusted_certificates, -1); rb_define_module_function(mCproton, "pn_messenger_get_trusted_certificates", _wrap_pn_messenger_get_trusted_certificates, -1); rb_define_module_function(mCproton, "pn_messenger_set_timeout", _wrap_pn_messenger_set_timeout, -1); rb_define_module_function(mCproton, "pn_messenger_get_timeout", _wrap_pn_messenger_get_timeout, -1); + rb_define_module_function(mCproton, "pn_messenger_is_blocking", _wrap_pn_messenger_is_blocking, -1); + rb_define_module_function(mCproton, "pn_messenger_set_blocking", _wrap_pn_messenger_set_blocking, -1); rb_define_module_function(mCproton, "pn_messenger_free", _wrap_pn_messenger_free, -1); rb_define_module_function(mCproton, "pn_messenger_errno", _wrap_pn_messenger_errno, -1); rb_define_module_function(mCproton, "pn_messenger_error", _wrap_pn_messenger_error, -1); - rb_define_module_function(mCproton, "pn_messenger_get_accept_mode", _wrap_pn_messenger_get_accept_mode, -1); - rb_define_module_function(mCproton, "pn_messenger_set_accept_mode", _wrap_pn_messenger_set_accept_mode, -1); rb_define_module_function(mCproton, "pn_messenger_get_outgoing_window", _wrap_pn_messenger_get_outgoing_window, -1); rb_define_module_function(mCproton, "pn_messenger_set_outgoing_window", _wrap_pn_messenger_set_outgoing_window, -1); rb_define_module_function(mCproton, "pn_messenger_get_incoming_window", _wrap_pn_messenger_get_incoming_window, -1); rb_define_module_function(mCproton, "pn_messenger_set_incoming_window", _wrap_pn_messenger_set_incoming_window, -1); rb_define_module_function(mCproton, "pn_messenger_start", _wrap_pn_messenger_start, -1); rb_define_module_function(mCproton, "pn_messenger_stop", _wrap_pn_messenger_stop, -1); + rb_define_module_function(mCproton, "pn_messenger_stopped", _wrap_pn_messenger_stopped, -1); rb_define_module_function(mCproton, "pn_messenger_subscribe", _wrap_pn_messenger_subscribe, -1); rb_define_module_function(mCproton, "pn_subscription_get_context", _wrap_pn_subscription_get_context, -1); rb_define_module_function(mCproton, "pn_subscription_set_context", _wrap_pn_subscription_set_context, -1); rb_define_module_function(mCproton, "pn_messenger_put", _wrap_pn_messenger_put, -1); rb_define_module_function(mCproton, "pn_messenger_status", _wrap_pn_messenger_status, -1); rb_define_module_function(mCproton, "pn_messenger_settle", _wrap_pn_messenger_settle, -1); rb_define_module_function(mCproton, "pn_messenger_outgoing_tracker", _wrap_pn_messenger_outgoing_tracker, -1); + rb_define_module_function(mCproton, "pn_messenger_work", _wrap_pn_messenger_work, -1); + rb_define_module_function(mCproton, "pn_messenger_interrupt", _wrap_pn_messenger_interrupt, -1); rb_define_module_function(mCproton, "pn_messenger_send", _wrap_pn_messenger_send, -1); rb_define_module_function(mCproton, "pn_messenger_recv", _wrap_pn_messenger_recv, -1); + rb_define_module_function(mCproton, "pn_messenger_receiving", _wrap_pn_messenger_receiving, -1); rb_define_module_function(mCproton, "pn_messenger_get", _wrap_pn_messenger_get, -1); rb_define_module_function(mCproton, "pn_messenger_incoming_tracker", _wrap_pn_messenger_incoming_tracker, -1); rb_define_module_function(mCproton, "pn_messenger_incoming_subscription", _wrap_pn_messenger_incoming_subscription, -1); rb_define_const(mCproton, "PN_CUMULATIVE", SWIG_From_int((int)((0x1)))); rb_define_module_function(mCproton, "pn_messenger_accept", _wrap_pn_messenger_accept, -1); rb_define_module_function(mCproton, "pn_messenger_reject", _wrap_pn_messenger_reject, -1); rb_define_module_function(mCproton, "pn_messenger_outgoing", _wrap_pn_messenger_outgoing, -1); rb_define_module_function(mCproton, "pn_messenger_incoming", _wrap_pn_messenger_incoming, -1); + rb_define_module_function(mCproton, "pn_messenger_route", _wrap_pn_messenger_route, -1); + rb_define_module_function(mCproton, "pn_messenger_rewrite", _wrap_pn_messenger_rewrite, -1); rb_define_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))); @@ -16788,10 +19920,11 @@ rb_define_module_function(mCproton, "pn_data_rewind", _wrap_pn_data_rewind, -1); rb_define_module_function(mCproton, "pn_data_next", _wrap_pn_data_next, -1); rb_define_module_function(mCproton, "pn_data_prev", _wrap_pn_data_prev, -1); rb_define_module_function(mCproton, "pn_data_enter", _wrap_pn_data_enter, -1); rb_define_module_function(mCproton, "pn_data_exit", _wrap_pn_data_exit, -1); + rb_define_module_function(mCproton, "pn_data_lookup", _wrap_pn_data_lookup, -1); rb_define_module_function(mCproton, "pn_data_type", _wrap_pn_data_type, -1); rb_define_module_function(mCproton, "pn_data_print", _wrap_pn_data_print, -1); rb_define_module_function(mCproton, "pn_data_format", _wrap_pn_data_format, -1); rb_define_module_function(mCproton, "pn_data_encode", _wrap_pn_data_encode, -1); rb_define_module_function(mCproton, "pn_data_decode", _wrap_pn_data_decode, -1); @@ -16853,8 +19986,10 @@ 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); }