ext/cproton/cproton.c in qpid_proton-0.17.0 vs ext/cproton/cproton.c in qpid_proton-0.18.0

- old
+ new

@@ -1,8 +1,8 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 3.0.12 + * Version 3.0.11 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. @@ -1835,50 +1835,52 @@ #define SWIGTYPE_p_pn_handler_t swig_types[32] #define SWIGTYPE_p_pn_hash_t swig_types[33] #define SWIGTYPE_p_pn_iterator_t swig_types[34] #define SWIGTYPE_p_pn_link_t swig_types[35] #define SWIGTYPE_p_pn_list_t swig_types[36] -#define SWIGTYPE_p_pn_map_t swig_types[37] -#define SWIGTYPE_p_pn_message_t swig_types[38] -#define SWIGTYPE_p_pn_messenger_t swig_types[39] -#define SWIGTYPE_p_pn_rcv_settle_mode_t swig_types[40] -#define SWIGTYPE_p_pn_reactor_t swig_types[41] -#define SWIGTYPE_p_pn_record_t swig_types[42] -#define SWIGTYPE_p_pn_rwbytes_t swig_types[43] -#define SWIGTYPE_p_pn_sasl_outcome_t swig_types[44] -#define SWIGTYPE_p_pn_sasl_t swig_types[45] -#define SWIGTYPE_p_pn_selectable_t swig_types[46] -#define SWIGTYPE_p_pn_session_t swig_types[47] -#define SWIGTYPE_p_pn_snd_settle_mode_t swig_types[48] -#define SWIGTYPE_p_pn_ssl_cert_subject_subfield swig_types[49] -#define SWIGTYPE_p_pn_ssl_domain_t swig_types[50] -#define SWIGTYPE_p_pn_ssl_hash_alg swig_types[51] -#define SWIGTYPE_p_pn_ssl_mode_t swig_types[52] -#define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[53] -#define SWIGTYPE_p_pn_ssl_t swig_types[54] -#define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[55] -#define SWIGTYPE_p_pn_status_t swig_types[56] -#define SWIGTYPE_p_pn_string_t swig_types[57] -#define SWIGTYPE_p_pn_subscription_t swig_types[58] -#define SWIGTYPE_p_pn_task_t swig_types[59] -#define SWIGTYPE_p_pn_terminus_t swig_types[60] -#define SWIGTYPE_p_pn_terminus_type_t swig_types[61] -#define SWIGTYPE_p_pn_timer_t swig_types[62] -#define SWIGTYPE_p_pn_transport_t swig_types[63] -#define SWIGTYPE_p_pn_type_t swig_types[64] -#define SWIGTYPE_p_pn_url_t swig_types[65] -#define SWIGTYPE_p_pn_uuid_t swig_types[66] -#define SWIGTYPE_p_short swig_types[67] -#define SWIGTYPE_p_signed_char swig_types[68] -#define SWIGTYPE_p_unsigned_char swig_types[69] -#define SWIGTYPE_p_unsigned_int swig_types[70] -#define SWIGTYPE_p_unsigned_long swig_types[71] -#define SWIGTYPE_p_unsigned_long_long swig_types[72] -#define SWIGTYPE_p_unsigned_short swig_types[73] -#define SWIGTYPE_p_void swig_types[74] -static swig_type_info *swig_types[76]; -static swig_module_info swig_module = {swig_types, 75, 0, 0, 0, 0}; +#define SWIGTYPE_p_pn_listener_t swig_types[37] +#define SWIGTYPE_p_pn_map_t swig_types[38] +#define SWIGTYPE_p_pn_message_t swig_types[39] +#define SWIGTYPE_p_pn_messenger_t swig_types[40] +#define SWIGTYPE_p_pn_proactor_t swig_types[41] +#define SWIGTYPE_p_pn_rcv_settle_mode_t swig_types[42] +#define SWIGTYPE_p_pn_reactor_t swig_types[43] +#define SWIGTYPE_p_pn_record_t swig_types[44] +#define SWIGTYPE_p_pn_rwbytes_t swig_types[45] +#define SWIGTYPE_p_pn_sasl_outcome_t swig_types[46] +#define SWIGTYPE_p_pn_sasl_t swig_types[47] +#define SWIGTYPE_p_pn_selectable_t swig_types[48] +#define SWIGTYPE_p_pn_session_t swig_types[49] +#define SWIGTYPE_p_pn_snd_settle_mode_t swig_types[50] +#define SWIGTYPE_p_pn_ssl_cert_subject_subfield swig_types[51] +#define SWIGTYPE_p_pn_ssl_domain_t swig_types[52] +#define SWIGTYPE_p_pn_ssl_hash_alg swig_types[53] +#define SWIGTYPE_p_pn_ssl_mode_t swig_types[54] +#define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[55] +#define SWIGTYPE_p_pn_ssl_t swig_types[56] +#define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[57] +#define SWIGTYPE_p_pn_status_t swig_types[58] +#define SWIGTYPE_p_pn_string_t swig_types[59] +#define SWIGTYPE_p_pn_subscription_t swig_types[60] +#define SWIGTYPE_p_pn_task_t swig_types[61] +#define SWIGTYPE_p_pn_terminus_t swig_types[62] +#define SWIGTYPE_p_pn_terminus_type_t swig_types[63] +#define SWIGTYPE_p_pn_timer_t swig_types[64] +#define SWIGTYPE_p_pn_transport_t swig_types[65] +#define SWIGTYPE_p_pn_type_t swig_types[66] +#define SWIGTYPE_p_pn_url_t swig_types[67] +#define SWIGTYPE_p_pn_uuid_t swig_types[68] +#define SWIGTYPE_p_short swig_types[69] +#define SWIGTYPE_p_signed_char swig_types[70] +#define SWIGTYPE_p_unsigned_char swig_types[71] +#define SWIGTYPE_p_unsigned_int swig_types[72] +#define SWIGTYPE_p_unsigned_long swig_types[73] +#define SWIGTYPE_p_unsigned_long_long swig_types[74] +#define SWIGTYPE_p_unsigned_short swig_types[75] +#define SWIGTYPE_p_void swig_types[76] +static swig_type_info *swig_types[78]; +static swig_module_info swig_module = {swig_types, 77, 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) -------- */ @@ -1889,11 +1891,11 @@ #define SWIG_RUBY_THREAD_BEGIN_BLOCK #define SWIG_RUBY_THREAD_END_BLOCK -#define SWIGVERSION 0x030012 +#define SWIGVERSION 0x030011 #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)) @@ -1921,11 +1923,11 @@ { return Qnil; } -/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ +/*@SWIG:/usr/share/swig/3.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); unsigned long *res = (unsigned long *)(args[1]); @@ -1966,11 +1968,11 @@ # define SWIG_LONG_LONG_AVAILABLE #endif #ifdef SWIG_LONG_LONG_AVAILABLE -/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ +/*@SWIG:/usr/share/swig/3.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); long long *res = (long long *)(args[1]); @@ -2295,11 +2297,11 @@ return result; } -/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ +/*@SWIG:/usr/share/swig/3.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); long *res = (long *)(args[1]); @@ -2541,15 +2543,13 @@ /* Use a template so that this works whether isfinite() is std::isfinite() or * in the global namespace. The reality seems to vary between compiler * versions. * * Make sure namespace std exists to avoid compiler warnings. - * - * extern "C++" is required as this fragment can end up inside an extern "C" { } block */ namespace std { } -extern "C++" template<typename T> +template<typename T> inline int SWIG_isfinite_func(T x) { using namespace std; return isfinite(x); } # define SWIG_isfinite(X) (SWIG_isfinite_func(X)) @@ -2568,11 +2568,11 @@ #else # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX)) #endif -/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ +/*@SWIG:/usr/share/swig/3.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); double *res = (double *)(args[1]); @@ -2657,11 +2657,11 @@ return res; } #ifdef SWIG_LONG_LONG_AVAILABLE -/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ +/*@SWIG:/usr/share/swig/3.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); long long *res = (long long *)(args[1]); @@ -3927,11 +3927,11 @@ SWIGINTERN VALUE _wrap_pn_rwbytes_null_get(VALUE self) { VALUE _val; - _val = SWIG_NewPointerObj(SWIG_as_voidptr(&pn_rwbytes_null), SWIGTYPE_p_pn_bytes_t, 0 ); + _val = SWIG_NewPointerObj(SWIG_as_voidptr(&pn_rwbytes_null), SWIGTYPE_p_pn_rwbytes_t, 0 ); return _val; } SWIGINTERN VALUE @@ -5434,11 +5434,11 @@ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_next", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); - result = (pn_handle_t)pn_map_next(arg1,arg2); + result = (pn_handle_t)pn_map_next(arg1,(void const *)arg2); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } @@ -5466,11 +5466,11 @@ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_key", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); - result = (void *)pn_map_key(arg1,arg2); + result = (void *)pn_map_key(arg1,(void const *)arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } @@ -5498,11 +5498,11 @@ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_value", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); - result = (void *)pn_map_value(arg1,arg2); + result = (void *)pn_map_value(arg1,(void const *)arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } @@ -5717,11 +5717,11 @@ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_next", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); - result = (pn_handle_t)pn_hash_next(arg1,arg2); + result = (pn_handle_t)pn_hash_next(arg1,(void const *)arg2); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } @@ -5749,11 +5749,11 @@ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_key", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); - result = (uintptr_t)pn_hash_key(arg1,arg2); + result = (uintptr_t)pn_hash_key(arg1,(void const *)arg2); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } @@ -5781,11 +5781,11 @@ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_value", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); - result = (void *)pn_hash_value(arg1,arg2); + result = (void *)pn_hash_value(arg1,(void const *)arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } @@ -6374,11 +6374,11 @@ res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_pn_class_t, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "pn_class_t const *","pn_record_def", 3, argv[2] )); } arg3 = (pn_class_t *)(argp3); - pn_record_def(arg1,arg2,(struct pn_class_t const *)arg3); + pn_record_def(arg1,(void const *)arg2,(struct pn_class_t const *)arg3); return Qnil; fail: return Qnil; } @@ -6405,11 +6405,11 @@ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_record_has", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); - result = (bool)pn_record_has(arg1,arg2); + result = (bool)pn_record_has(arg1,(void const *)arg2); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } @@ -6437,11 +6437,11 @@ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_record_get", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); - result = (void *)pn_record_get(arg1,arg2); + result = (void *)pn_record_get(arg1,(void const *)arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } @@ -6473,11 +6473,11 @@ arg2 = (pn_handle_t)(val2); res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_record_set", 3, argv[2] )); } - pn_record_set(arg1,arg2,arg3); + pn_record_set(arg1,(void const *)arg2,arg3); return Qnil; fail: return Qnil; } @@ -10516,10 +10516,34 @@ return Qnil; } SWIGINTERN VALUE +_wrap_pn_delivery_aborted(int argc, VALUE *argv, VALUE self) { + pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_aborted", 1, argv[0] )); + } + arg1 = (pn_delivery_t *)(argp1); + result = (bool)pn_delivery_aborted(arg1); + vresult = SWIG_From_bool((bool)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE _wrap_pn_delivery_writable(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; @@ -10670,10 +10694,31 @@ return Qnil; } SWIGINTERN VALUE +_wrap_pn_delivery_abort(int argc, VALUE *argv, VALUE self) { + pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_abort", 1, argv[0] )); + } + arg1 = (pn_delivery_t *)(argp1); + pn_delivery_abort(arg1); + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE _wrap_pn_delivery_settle(int argc, VALUE *argv, VALUE self) { pn_delivery_t *arg1 = (pn_delivery_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -10816,10 +10861,34 @@ return Qnil; } SWIGINTERN VALUE +_wrap_pn_disposition_type_name(int argc, VALUE *argv, VALUE self) { + uint64_t arg1 ; + unsigned long long val1 ; + int ecode1 = 0 ; + char *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","pn_disposition_type_name", 1, argv[0] )); + } + arg1 = (uint64_t)(val1); + result = (char *)pn_disposition_type_name(arg1); + vresult = SWIG_FromCharPtr((const char *)result); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE _wrap_pn_disposition_condition(int argc, VALUE *argv, VALUE self) { pn_disposition_t *arg1 = (pn_disposition_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_condition_t *result = 0 ; @@ -12125,10 +12194,58 @@ return Qnil; } SWIGINTERN VALUE +_wrap_pn_transport_head_closed(int argc, VALUE *argv, VALUE self) { + pn_transport_t *arg1 = (pn_transport_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_head_closed", 1, argv[0] )); + } + arg1 = (pn_transport_t *)(argp1); + result = (bool)pn_transport_head_closed(arg1); + vresult = SWIG_From_bool((bool)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_pn_transport_tail_closed(int argc, VALUE *argv, VALUE self) { + pn_transport_t *arg1 = (pn_transport_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_tail_closed", 1, argv[0] )); + } + arg1 = (pn_transport_t *)(argp1); + result = (bool)pn_transport_tail_closed(arg1); + vresult = SWIG_From_bool((bool)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE _wrap_pn_transport_closed(int argc, VALUE *argv, VALUE self) { pn_transport_t *arg1 = (pn_transport_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; @@ -12335,10 +12452,31 @@ return Qnil; } SWIGINTERN VALUE +_wrap_pn_collector_drain(int argc, VALUE *argv, VALUE self) { + pn_collector_t *arg1 = (pn_collector_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_drain", 1, argv[0] )); + } + arg1 = (pn_collector_t *)(argp1); + pn_collector_drain(arg1); + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE _wrap_pn_collector_put(int argc, VALUE *argv, VALUE self) { pn_collector_t *arg1 = (pn_collector_t *) 0 ; pn_class_t *arg2 = (pn_class_t *) 0 ; void *arg3 = (void *) 0 ; pn_event_type_t arg4 ; @@ -12717,10 +12855,34 @@ return Qnil; } SWIGINTERN VALUE +_wrap_pn_event_condition(int argc, VALUE *argv, VALUE self) { + pn_event_t *arg1 = (pn_event_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + struct pn_condition_t *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_condition", 1, argv[0] )); + } + arg1 = (pn_event_t *)(argp1); + result = (struct pn_condition_t *)pn_event_condition(arg1); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE _wrap_pn_event_batch_next(int argc, VALUE *argv, VALUE self) { pn_event_batch_t *arg1 = (pn_event_batch_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_event_t *result = 0 ; @@ -17465,10 +17627,45 @@ return Qnil; } SWIGINTERN VALUE +_wrap_pn_ssl_domain_set_ciphers(int argc, VALUE *argv, VALUE self) { + pn_ssl_domain_t *arg1 = (pn_ssl_domain_t *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_domain_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_domain_t *","pn_ssl_domain_set_ciphers", 1, argv[0] )); + } + arg1 = (pn_ssl_domain_t *)(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_ssl_domain_set_ciphers", 2, argv[1] )); + } + arg2 = (char *)(buf2); + result = (int)pn_ssl_domain_set_ciphers(arg1,(char const *)arg2); + vresult = SWIG_From_int((int)(result)); + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return Qnil; +} + + +SWIGINTERN VALUE _wrap_pn_ssl_domain_allow_unsecured_client(int argc, VALUE *argv, VALUE self) { pn_ssl_domain_t *arg1 = (pn_ssl_domain_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; @@ -20013,11 +20210,11 @@ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_data_restore", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); - result = (bool)pn_data_restore(arg1,arg2); + result = (bool)pn_data_restore(arg1,(void const *)arg2); vresult = SWIG_From_bool((bool)(result)); return vresult; fail: return Qnil; } @@ -22169,13 +22366,15 @@ static swig_type_info _swigt__p_pn_handler_t = {"_p_pn_handler_t", "pn_handshaker_t *|struct pn_handler_t *|pn_flowcontroller_t *|pn_handler_t *|pn_iohandler_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_hash_t = {"_p_pn_hash_t", "struct pn_hash_t *|pn_hash_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_iterator_t = {"_p_pn_iterator_t", "pn_selectables_t *|struct pn_iterator_t *|pn_iterator_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_link_t = {"_p_pn_link_t", "struct pn_link_t *|pn_link_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_list_t = {"_p_pn_list_t", "struct pn_list_t *|pn_list_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_pn_listener_t = {"_p_pn_listener_t", "struct pn_listener_t *|pn_listener_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_map_t = {"_p_pn_map_t", "struct pn_map_t *|pn_map_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_message_t = {"_p_pn_message_t", "struct pn_message_t *|pn_message_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_messenger_t = {"_p_pn_messenger_t", "struct pn_messenger_t *|pn_messenger_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_pn_proactor_t = {"_p_pn_proactor_t", "struct pn_proactor_t *|pn_proactor_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_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_reactor_t = {"_p_pn_reactor_t", "struct pn_reactor_t *|pn_reactor_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_record_t = {"_p_pn_record_t", "struct pn_record_t *|pn_record_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_rwbytes_t = {"_p_pn_rwbytes_t", "struct pn_rwbytes_t *|pn_rwbytes_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_sasl_outcome_t = {"_p_pn_sasl_outcome_t", "enum pn_sasl_outcome_t *|pn_sasl_outcome_t *", 0, 0, (void*)0, 0}; @@ -22246,13 +22445,15 @@ &_swigt__p_pn_handler_t, &_swigt__p_pn_hash_t, &_swigt__p_pn_iterator_t, &_swigt__p_pn_link_t, &_swigt__p_pn_list_t, + &_swigt__p_pn_listener_t, &_swigt__p_pn_map_t, &_swigt__p_pn_message_t, &_swigt__p_pn_messenger_t, + &_swigt__p_pn_proactor_t, &_swigt__p_pn_rcv_settle_mode_t, &_swigt__p_pn_reactor_t, &_swigt__p_pn_record_t, &_swigt__p_pn_rwbytes_t, &_swigt__p_pn_sasl_outcome_t, @@ -22323,13 +22524,15 @@ static swig_cast_info _swigc__p_pn_handler_t[] = { {&_swigt__p_pn_handler_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_hash_t[] = { {&_swigt__p_pn_hash_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_iterator_t[] = { {&_swigt__p_pn_iterator_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_link_t[] = { {&_swigt__p_pn_link_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_list_t[] = { {&_swigt__p_pn_list_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_pn_listener_t[] = { {&_swigt__p_pn_listener_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_map_t[] = { {&_swigt__p_pn_map_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_message_t[] = { {&_swigt__p_pn_message_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_messenger_t[] = { {&_swigt__p_pn_messenger_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_pn_proactor_t[] = { {&_swigt__p_pn_proactor_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_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_reactor_t[] = { {&_swigt__p_pn_reactor_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_record_t[] = { {&_swigt__p_pn_record_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_rwbytes_t[] = { {&_swigt__p_pn_rwbytes_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_sasl_outcome_t[] = { {&_swigt__p_pn_sasl_outcome_t, 0, 0, 0},{0, 0, 0, 0}}; @@ -22400,13 +22603,15 @@ _swigc__p_pn_handler_t, _swigc__p_pn_hash_t, _swigc__p_pn_iterator_t, _swigc__p_pn_link_t, _swigc__p_pn_list_t, + _swigc__p_pn_listener_t, _swigc__p_pn_map_t, _swigc__p_pn_message_t, _swigc__p_pn_messenger_t, + _swigc__p_pn_proactor_t, _swigc__p_pn_rcv_settle_mode_t, _swigc__p_pn_reactor_t, _swigc__p_pn_record_t, _swigc__p_pn_rwbytes_t, _swigc__p_pn_sasl_outcome_t, @@ -22738,11 +22943,11 @@ rb_define_module_function(mCproton, "pni_rbdispatch", _wrap_pni_rbdispatch, -1); rb_define_module_function(mCproton, "pni_rbhandler_finalize", _wrap_pni_rbhandler_finalize, -1); rb_define_module_function(mCproton, "pn_rbhandler", _wrap_pn_rbhandler, -1); rb_define_const(mCproton, "PROTON_IMPORT_EXPORT_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_VERSION_MAJOR", SWIG_From_int((int)(0))); - rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(17))); + rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(18))); rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(0))); rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_MILLIS_MAX", SWIG_From_unsigned_SS_int((unsigned int)((~0U)))); rb_define_module_function(mCproton, "pn_bytes", _wrap_pn_bytes, -1); rb_define_singleton_method(mCproton, "pn_bytes_null", _wrap_pn_bytes_null_get, 0); @@ -22854,10 +23059,11 @@ rb_define_const(mCproton, "PN_ARG_ERR", SWIG_From_int((int)((-6)))); rb_define_const(mCproton, "PN_TIMEOUT", SWIG_From_int((int)((-7)))); rb_define_const(mCproton, "PN_INTR", SWIG_From_int((int)((-8)))); rb_define_const(mCproton, "PN_INPROGRESS", SWIG_From_int((int)((-9)))); rb_define_const(mCproton, "PN_OUT_OF_MEMORY", SWIG_From_int((int)((-10)))); + rb_define_const(mCproton, "PN_ABORTED", SWIG_From_int((int)((-11)))); rb_define_module_function(mCproton, "pn_code", _wrap_pn_code, -1); rb_define_module_function(mCproton, "pn_error", _wrap_pn_error, -1); rb_define_module_function(mCproton, "pn_error_free", _wrap_pn_error_free, -1); rb_define_module_function(mCproton, "pn_error_clear", _wrap_pn_error_clear, -1); rb_define_module_function(mCproton, "pn_error_set", _wrap_pn_error_set, -1); @@ -23038,16 +23244,18 @@ rb_define_module_function(mCproton, "pn_delivery_remote", _wrap_pn_delivery_remote, -1); rb_define_module_function(mCproton, "pn_delivery_remote_state", _wrap_pn_delivery_remote_state, -1); rb_define_module_function(mCproton, "pn_delivery_settled", _wrap_pn_delivery_settled, -1); rb_define_module_function(mCproton, "pn_delivery_pending", _wrap_pn_delivery_pending, -1); rb_define_module_function(mCproton, "pn_delivery_partial", _wrap_pn_delivery_partial, -1); + rb_define_module_function(mCproton, "pn_delivery_aborted", _wrap_pn_delivery_aborted, -1); rb_define_module_function(mCproton, "pn_delivery_writable", _wrap_pn_delivery_writable, -1); rb_define_module_function(mCproton, "pn_delivery_readable", _wrap_pn_delivery_readable, -1); rb_define_module_function(mCproton, "pn_delivery_updated", _wrap_pn_delivery_updated, -1); rb_define_module_function(mCproton, "pn_delivery_update", _wrap_pn_delivery_update, -1); rb_define_module_function(mCproton, "pn_delivery_clear", _wrap_pn_delivery_clear, -1); rb_define_module_function(mCproton, "pn_delivery_current", _wrap_pn_delivery_current, -1); + rb_define_module_function(mCproton, "pn_delivery_abort", _wrap_pn_delivery_abort, -1); rb_define_module_function(mCproton, "pn_delivery_settle", _wrap_pn_delivery_settle, -1); rb_define_module_function(mCproton, "pn_delivery_dump", _wrap_pn_delivery_dump, -1); rb_define_module_function(mCproton, "pn_delivery_buffered", _wrap_pn_delivery_buffered, -1); rb_define_module_function(mCproton, "pn_work_head", _wrap_pn_work_head, -1); rb_define_module_function(mCproton, "pn_work_next", _wrap_pn_work_next, -1); @@ -23056,10 +23264,11 @@ rb_define_const(mCproton, "PN_ACCEPTED", SWIG_From_int((int)((0x0000000000000024)))); rb_define_const(mCproton, "PN_REJECTED", SWIG_From_int((int)((0x0000000000000025)))); rb_define_const(mCproton, "PN_RELEASED", SWIG_From_int((int)((0x0000000000000026)))); rb_define_const(mCproton, "PN_MODIFIED", SWIG_From_int((int)((0x0000000000000027)))); rb_define_module_function(mCproton, "pn_disposition_type", _wrap_pn_disposition_type, -1); + rb_define_module_function(mCproton, "pn_disposition_type_name", _wrap_pn_disposition_type_name, -1); rb_define_module_function(mCproton, "pn_disposition_condition", _wrap_pn_disposition_condition, -1); rb_define_module_function(mCproton, "pn_disposition_data", _wrap_pn_disposition_data, -1); rb_define_module_function(mCproton, "pn_disposition_get_section_number", _wrap_pn_disposition_get_section_number, -1); rb_define_module_function(mCproton, "pn_disposition_set_section_number", _wrap_pn_disposition_set_section_number, -1); rb_define_module_function(mCproton, "pn_disposition_get_section_offset", _wrap_pn_disposition_get_section_offset, -1); @@ -23112,10 +23321,12 @@ rb_define_module_function(mCproton, "pn_transport_pending", _wrap_pn_transport_pending, -1); rb_define_module_function(mCproton, "pn_transport_head", _wrap_pn_transport_head, -1); rb_define_module_function(mCproton, "pn_transport_pop", _wrap_pn_transport_pop, -1); rb_define_module_function(mCproton, "pn_transport_close_head", _wrap_pn_transport_close_head, -1); rb_define_module_function(mCproton, "pn_transport_quiesced", _wrap_pn_transport_quiesced, -1); + rb_define_module_function(mCproton, "pn_transport_head_closed", _wrap_pn_transport_head_closed, -1); + rb_define_module_function(mCproton, "pn_transport_tail_closed", _wrap_pn_transport_tail_closed, -1); rb_define_module_function(mCproton, "pn_transport_closed", _wrap_pn_transport_closed, -1); rb_define_module_function(mCproton, "pn_transport_tick", _wrap_pn_transport_tick, -1); rb_define_module_function(mCproton, "pn_transport_get_frames_output", _wrap_pn_transport_get_frames_output, -1); rb_define_module_function(mCproton, "pn_transport_get_frames_input", _wrap_pn_transport_get_frames_input, -1); rb_define_module_function(mCproton, "pn_transport_connection", _wrap_pn_transport_connection, -1); @@ -23151,13 +23362,11 @@ rb_define_const(mCproton, "PN_DELIVERY", SWIG_From_int((int)(PN_DELIVERY))); rb_define_const(mCproton, "PN_TRANSPORT", SWIG_From_int((int)(PN_TRANSPORT))); rb_define_const(mCproton, "PN_TRANSPORT_AUTHENTICATED", SWIG_From_int((int)(PN_TRANSPORT_AUTHENTICATED))); rb_define_const(mCproton, "PN_TRANSPORT_ERROR", SWIG_From_int((int)(PN_TRANSPORT_ERROR))); rb_define_const(mCproton, "PN_TRANSPORT_HEAD_CLOSED", SWIG_From_int((int)(PN_TRANSPORT_HEAD_CLOSED))); - rb_define_const(mCproton, "PN_TRANSPORT_WRITE_CLOSED", SWIG_From_int((int)(PN_TRANSPORT_WRITE_CLOSED))); rb_define_const(mCproton, "PN_TRANSPORT_TAIL_CLOSED", SWIG_From_int((int)(PN_TRANSPORT_TAIL_CLOSED))); - rb_define_const(mCproton, "PN_TRANSPORT_READ_CLOSED", SWIG_From_int((int)(PN_TRANSPORT_READ_CLOSED))); rb_define_const(mCproton, "PN_TRANSPORT_CLOSED", SWIG_From_int((int)(PN_TRANSPORT_CLOSED))); rb_define_const(mCproton, "PN_SELECTABLE_INIT", SWIG_From_int((int)(PN_SELECTABLE_INIT))); rb_define_const(mCproton, "PN_SELECTABLE_UPDATED", SWIG_From_int((int)(PN_SELECTABLE_UPDATED))); rb_define_const(mCproton, "PN_SELECTABLE_READABLE", SWIG_From_int((int)(PN_SELECTABLE_READABLE))); rb_define_const(mCproton, "PN_SELECTABLE_WRITABLE", SWIG_From_int((int)(PN_SELECTABLE_WRITABLE))); @@ -23168,14 +23377,16 @@ rb_define_const(mCproton, "PN_LISTENER_ACCEPT", SWIG_From_int((int)(PN_LISTENER_ACCEPT))); rb_define_const(mCproton, "PN_LISTENER_CLOSE", SWIG_From_int((int)(PN_LISTENER_CLOSE))); rb_define_const(mCproton, "PN_PROACTOR_INTERRUPT", SWIG_From_int((int)(PN_PROACTOR_INTERRUPT))); rb_define_const(mCproton, "PN_PROACTOR_TIMEOUT", SWIG_From_int((int)(PN_PROACTOR_TIMEOUT))); rb_define_const(mCproton, "PN_PROACTOR_INACTIVE", SWIG_From_int((int)(PN_PROACTOR_INACTIVE))); + rb_define_const(mCproton, "PN_LISTENER_OPEN", SWIG_From_int((int)(PN_LISTENER_OPEN))); rb_define_module_function(mCproton, "pn_event_type_name", _wrap_pn_event_type_name, -1); rb_define_module_function(mCproton, "pn_collector", _wrap_pn_collector, -1); rb_define_module_function(mCproton, "pn_collector_free", _wrap_pn_collector_free, -1); rb_define_module_function(mCproton, "pn_collector_release", _wrap_pn_collector_release, -1); + rb_define_module_function(mCproton, "pn_collector_drain", _wrap_pn_collector_drain, -1); rb_define_module_function(mCproton, "pn_collector_put", _wrap_pn_collector_put, -1); rb_define_module_function(mCproton, "pn_collector_peek", _wrap_pn_collector_peek, -1); rb_define_module_function(mCproton, "pn_collector_pop", _wrap_pn_collector_pop, -1); rb_define_module_function(mCproton, "pn_collector_next", _wrap_pn_collector_next, -1); rb_define_module_function(mCproton, "pn_collector_prev", _wrap_pn_collector_prev, -1); @@ -23187,10 +23398,11 @@ rb_define_module_function(mCproton, "pn_event_session", _wrap_pn_event_session, -1); rb_define_module_function(mCproton, "pn_event_link", _wrap_pn_event_link, -1); rb_define_module_function(mCproton, "pn_event_delivery", _wrap_pn_event_delivery, -1); rb_define_module_function(mCproton, "pn_event_transport", _wrap_pn_event_transport, -1); rb_define_module_function(mCproton, "pn_event_attachments", _wrap_pn_event_attachments, -1); + rb_define_module_function(mCproton, "pn_event_condition", _wrap_pn_event_condition, -1); rb_define_module_function(mCproton, "pn_event_batch_next", _wrap_pn_event_batch_next, -1); rb_define_module_function(mCproton, "pn_event_copy", _wrap_pn_event_copy, -1); rb_define_const(mCproton, "PROTON_MESSAGE_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_DEFAULT_PRIORITY", SWIG_From_int((int)((4)))); rb_define_module_function(mCproton, "pn_message", _wrap_pn_message, -1); @@ -23379,9 +23591,10 @@ rb_define_const(mCproton, "PN_SSL_VERIFY_NULL", SWIG_From_int((int)(PN_SSL_VERIFY_NULL))); rb_define_const(mCproton, "PN_SSL_VERIFY_PEER", SWIG_From_int((int)(PN_SSL_VERIFY_PEER))); rb_define_const(mCproton, "PN_SSL_ANONYMOUS_PEER", SWIG_From_int((int)(PN_SSL_ANONYMOUS_PEER))); rb_define_const(mCproton, "PN_SSL_VERIFY_PEER_NAME", SWIG_From_int((int)(PN_SSL_VERIFY_PEER_NAME))); rb_define_module_function(mCproton, "pn_ssl_domain_set_peer_authentication", _wrap_pn_ssl_domain_set_peer_authentication, -1); + rb_define_module_function(mCproton, "pn_ssl_domain_set_ciphers", _wrap_pn_ssl_domain_set_ciphers, -1); rb_define_module_function(mCproton, "pn_ssl_domain_allow_unsecured_client", _wrap_pn_ssl_domain_allow_unsecured_client, -1); rb_define_module_function(mCproton, "pn_ssl", _wrap_pn_ssl, -1); rb_define_module_function(mCproton, "pn_ssl_init", _wrap_pn_ssl_init, -1); rb_define_module_function(mCproton, "pn_ssl_get_ssf", _wrap_pn_ssl_get_ssf, -1); rb_define_module_function(mCproton, "pn_ssl_resume_status", _wrap_pn_ssl_resume_status, -1);