ext/cproton/cproton.c in qpid_proton-0.30.0 vs ext/cproton/cproton.c in qpid_proton-0.31.0

- old
+ new

@@ -1824,56 +1824,55 @@ #define SWIGTYPE_p_pn_delivery_t swig_types[21] #define SWIGTYPE_p_pn_disposition_t swig_types[22] #define SWIGTYPE_p_pn_distribution_mode_t swig_types[23] #define SWIGTYPE_p_pn_durability_t swig_types[24] #define SWIGTYPE_p_pn_error_t swig_types[25] -#define SWIGTYPE_p_pn_event_batch_t swig_types[26] -#define SWIGTYPE_p_pn_event_t swig_types[27] -#define SWIGTYPE_p_pn_event_type_t swig_types[28] -#define SWIGTYPE_p_pn_expiry_policy_t swig_types[29] -#define SWIGTYPE_p_pn_handler_t swig_types[30] -#define SWIGTYPE_p_pn_hash_t swig_types[31] -#define SWIGTYPE_p_pn_iterator_t swig_types[32] -#define SWIGTYPE_p_pn_link_t swig_types[33] -#define SWIGTYPE_p_pn_list_t swig_types[34] -#define SWIGTYPE_p_pn_listener_t swig_types[35] -#define SWIGTYPE_p_pn_logger_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_proactor_t swig_types[40] -#define SWIGTYPE_p_pn_rcv_settle_mode_t swig_types[41] -#define SWIGTYPE_p_pn_record_t swig_types[42] -#define SWIGTYPE_p_pn_rwbytes_t swig_types[43] -#define SWIGTYPE_p_pn_sasl_outcome_t swig_types[44] -#define SWIGTYPE_p_pn_sasl_t swig_types[45] -#define SWIGTYPE_p_pn_session_t swig_types[46] -#define SWIGTYPE_p_pn_snd_settle_mode_t swig_types[47] -#define SWIGTYPE_p_pn_ssl_cert_subject_subfield swig_types[48] -#define SWIGTYPE_p_pn_ssl_domain_t swig_types[49] -#define SWIGTYPE_p_pn_ssl_hash_alg swig_types[50] -#define SWIGTYPE_p_pn_ssl_mode_t swig_types[51] -#define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[52] -#define SWIGTYPE_p_pn_ssl_t swig_types[53] -#define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[54] -#define SWIGTYPE_p_pn_string_t swig_types[55] -#define SWIGTYPE_p_pn_terminus_t swig_types[56] -#define SWIGTYPE_p_pn_terminus_type_t swig_types[57] -#define SWIGTYPE_p_pn_transport_t swig_types[58] -#define SWIGTYPE_p_pn_type_t swig_types[59] -#define SWIGTYPE_p_pn_url_t swig_types[60] -#define SWIGTYPE_p_pn_uuid_t swig_types[61] -#define SWIGTYPE_p_short swig_types[62] -#define SWIGTYPE_p_signed_char swig_types[63] -#define SWIGTYPE_p_unsigned_char swig_types[64] -#define SWIGTYPE_p_unsigned_int swig_types[65] -#define SWIGTYPE_p_unsigned_long swig_types[66] -#define SWIGTYPE_p_unsigned_long_long swig_types[67] -#define SWIGTYPE_p_unsigned_short swig_types[68] -#define SWIGTYPE_p_void swig_types[69] -static swig_type_info *swig_types[71]; -static swig_module_info swig_module = {swig_types, 70, 0, 0, 0, 0}; +#define SWIGTYPE_p_pn_event_t swig_types[26] +#define SWIGTYPE_p_pn_event_type_t swig_types[27] +#define SWIGTYPE_p_pn_expiry_policy_t swig_types[28] +#define SWIGTYPE_p_pn_handler_t swig_types[29] +#define SWIGTYPE_p_pn_hash_t swig_types[30] +#define SWIGTYPE_p_pn_iterator_t swig_types[31] +#define SWIGTYPE_p_pn_link_t swig_types[32] +#define SWIGTYPE_p_pn_list_t swig_types[33] +#define SWIGTYPE_p_pn_listener_t swig_types[34] +#define SWIGTYPE_p_pn_logger_t swig_types[35] +#define SWIGTYPE_p_pn_map_t swig_types[36] +#define SWIGTYPE_p_pn_message_t swig_types[37] +#define SWIGTYPE_p_pn_messenger_t swig_types[38] +#define SWIGTYPE_p_pn_proactor_t swig_types[39] +#define SWIGTYPE_p_pn_rcv_settle_mode_t swig_types[40] +#define SWIGTYPE_p_pn_record_t swig_types[41] +#define SWIGTYPE_p_pn_rwbytes_t swig_types[42] +#define SWIGTYPE_p_pn_sasl_outcome_t swig_types[43] +#define SWIGTYPE_p_pn_sasl_t swig_types[44] +#define SWIGTYPE_p_pn_session_t swig_types[45] +#define SWIGTYPE_p_pn_snd_settle_mode_t swig_types[46] +#define SWIGTYPE_p_pn_ssl_cert_subject_subfield swig_types[47] +#define SWIGTYPE_p_pn_ssl_domain_t swig_types[48] +#define SWIGTYPE_p_pn_ssl_hash_alg swig_types[49] +#define SWIGTYPE_p_pn_ssl_mode_t swig_types[50] +#define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[51] +#define SWIGTYPE_p_pn_ssl_t swig_types[52] +#define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[53] +#define SWIGTYPE_p_pn_string_t swig_types[54] +#define SWIGTYPE_p_pn_terminus_t swig_types[55] +#define SWIGTYPE_p_pn_terminus_type_t swig_types[56] +#define SWIGTYPE_p_pn_transport_t swig_types[57] +#define SWIGTYPE_p_pn_type_t swig_types[58] +#define SWIGTYPE_p_pn_url_t swig_types[59] +#define SWIGTYPE_p_pn_uuid_t swig_types[60] +#define SWIGTYPE_p_short swig_types[61] +#define SWIGTYPE_p_signed_char swig_types[62] +#define SWIGTYPE_p_unsigned_char swig_types[63] +#define SWIGTYPE_p_unsigned_int swig_types[64] +#define SWIGTYPE_p_unsigned_long swig_types[65] +#define SWIGTYPE_p_unsigned_long_long swig_types[66] +#define SWIGTYPE_p_unsigned_short swig_types[67] +#define SWIGTYPE_p_void swig_types[68] +static swig_type_info *swig_types[70]; +static swig_module_info swig_module = {swig_types, 69, 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) -------- */ @@ -13112,34 +13111,10 @@ 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 ; - VALUE vresult = Qnil; - - if ((argc < 1) || (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_batch_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_batch_t *","pn_event_batch_next", 1, argv[0] )); - } - arg1 = (pn_event_batch_t *)(argp1); - result = (pn_event_t *)pn_event_batch_next(arg1); - vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_t, 0 | 0 ); - return vresult; -fail: - return Qnil; -} - - -SWIGINTERN VALUE _wrap_pn_event_copy(int argc, VALUE *argv, VALUE self) { pn_event_t *arg1 = (pn_event_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; pn_event_t *result = 0 ; @@ -18629,34 +18604,10 @@ return Qnil; } SWIGINTERN VALUE -_wrap_pn_event_batch_connection_driver(int argc, VALUE *argv, VALUE self) { - pn_event_batch_t *arg1 = (pn_event_batch_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - pn_connection_driver_t *result = 0 ; - VALUE vresult = Qnil; - - if ((argc < 1) || (argc > 1)) { - rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; - } - res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_batch_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_batch_t *","pn_event_batch_connection_driver", 1, argv[0] )); - } - arg1 = (pn_event_batch_t *)(argp1); - result = (pn_connection_driver_t *)pn_event_batch_connection_driver(arg1); - vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_driver_t, 0 | 0 ); - return vresult; -fail: - return Qnil; -} - - -SWIGINTERN VALUE _wrap_pn_connection_driver_log(int argc, VALUE *argv, VALUE self) { pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -19182,11 +19133,10 @@ static swig_type_info _swigt__p_pn_delivery_t = {"_p_pn_delivery_t", "struct pn_delivery_t *|pn_delivery_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_disposition_t = {"_p_pn_disposition_t", "struct pn_disposition_t *|pn_disposition_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_distribution_mode_t = {"_p_pn_distribution_mode_t", "enum pn_distribution_mode_t *|pn_distribution_mode_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_durability_t = {"_p_pn_durability_t", "enum pn_durability_t *|pn_durability_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_error_t = {"_p_pn_error_t", "struct pn_error_t *|pn_error_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_pn_event_batch_t = {"_p_pn_event_batch_t", "struct pn_event_batch_t *|pn_event_batch_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_event_t = {"_p_pn_event_t", "struct pn_event_t *|pn_event_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_event_type_t = {"_p_pn_event_type_t", "enum pn_event_type_t *|pn_event_type_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_expiry_policy_t = {"_p_pn_expiry_policy_t", "enum pn_expiry_policy_t *|pn_expiry_policy_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_handler_t = {"_p_pn_handler_t", "struct pn_handler_t *|pn_handler_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_pn_hash_t = {"_p_pn_hash_t", "struct pn_hash_t *|pn_hash_t *", 0, 0, (void*)0, 0}; @@ -19254,11 +19204,10 @@ &_swigt__p_pn_delivery_t, &_swigt__p_pn_disposition_t, &_swigt__p_pn_distribution_mode_t, &_swigt__p_pn_durability_t, &_swigt__p_pn_error_t, - &_swigt__p_pn_event_batch_t, &_swigt__p_pn_event_t, &_swigt__p_pn_event_type_t, &_swigt__p_pn_expiry_policy_t, &_swigt__p_pn_handler_t, &_swigt__p_pn_hash_t, @@ -19326,11 +19275,10 @@ static swig_cast_info _swigc__p_pn_delivery_t[] = { {&_swigt__p_pn_delivery_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_disposition_t[] = { {&_swigt__p_pn_disposition_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_distribution_mode_t[] = { {&_swigt__p_pn_distribution_mode_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_durability_t[] = { {&_swigt__p_pn_durability_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_error_t[] = { {&_swigt__p_pn_error_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_pn_event_batch_t[] = { {&_swigt__p_pn_event_batch_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_event_t[] = { {&_swigt__p_pn_event_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_event_type_t[] = { {&_swigt__p_pn_event_type_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_expiry_policy_t[] = { {&_swigt__p_pn_expiry_policy_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_handler_t[] = { {&_swigt__p_pn_handler_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_pn_hash_t[] = { {&_swigt__p_pn_hash_t, 0, 0, 0},{0, 0, 0, 0}}; @@ -19398,11 +19346,10 @@ _swigc__p_pn_delivery_t, _swigc__p_pn_disposition_t, _swigc__p_pn_distribution_mode_t, _swigc__p_pn_durability_t, _swigc__p_pn_error_t, - _swigc__p_pn_event_batch_t, _swigc__p_pn_event_t, _swigc__p_pn_event_type_t, _swigc__p_pn_expiry_policy_t, _swigc__p_pn_handler_t, _swigc__p_pn_hash_t, @@ -19748,11 +19695,11 @@ rb_define_module_function(mCproton, "pni_connection_driver_transport", _wrap_pni_connection_driver_transport, -1); rb_define_module_function(mCproton, "pni_connection_driver_read_copy", _wrap_pni_connection_driver_read_copy, -1); rb_define_module_function(mCproton, "pni_connection_driver", _wrap_pni_connection_driver, -1); rb_define_const(mCproton, "PROTON_IMPORT_EXPORT_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "PN_VERSION_MAJOR", SWIG_From_int((int)(0))); - rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(30))); + rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(31))); 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); @@ -20206,11 +20153,10 @@ 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); rb_define_module_function(mCproton, "pn_message_free", _wrap_pn_message_free, -1); @@ -20450,10 +20396,9 @@ rb_define_module_function(mCproton, "pn_connection_driver_close", _wrap_pn_connection_driver_close, -1); rb_define_module_function(mCproton, "pn_connection_driver_next_event", _wrap_pn_connection_driver_next_event, -1); rb_define_module_function(mCproton, "pn_connection_driver_has_event", _wrap_pn_connection_driver_has_event, -1); rb_define_module_function(mCproton, "pn_connection_driver_finished", _wrap_pn_connection_driver_finished, -1); rb_define_module_function(mCproton, "pn_connection_driver_errorf", _wrap_pn_connection_driver_errorf, -1); - rb_define_module_function(mCproton, "pn_event_batch_connection_driver", _wrap_pn_event_batch_connection_driver, -1); rb_define_module_function(mCproton, "pn_connection_driver_log", _wrap_pn_connection_driver_log, -1); rb_define_module_function(mCproton, "pn_connection_driver_ptr", _wrap_pn_connection_driver_ptr, -1); rb_define_const(mCproton, "PROTON_CID_H", SWIG_From_int((int)(1))); rb_define_const(mCproton, "CID_pn_object", SWIG_From_int((int)(CID_pn_object))); rb_define_const(mCproton, "CID_pn_void", SWIG_From_int((int)(CID_pn_void)));