ext/cproton/cproton.c in qpid_proton-0.27.1 vs ext/cproton/cproton.c in qpid_proton-0.28.0
- old
+ new
@@ -1801,86 +1801,78 @@
/* -------- TYPES TABLE (BEGIN) -------- */
#define SWIGTYPE_p_Pn_rbkey_t swig_types[0]
#define SWIGTYPE_p_Pni_rbhandler_t swig_types[1]
#define SWIGTYPE_p_char swig_types[2]
-#define SWIGTYPE_p_f_p_struct_pn_handler_t__void swig_types[3]
-#define SWIGTYPE_p_f_p_struct_pn_handler_t_p_struct_pn_event_t_enum_pn_event_type_t__void swig_types[4]
-#define SWIGTYPE_p_f_p_struct_pn_selectable_t__void swig_types[5]
-#define SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void swig_types[6]
-#define SWIGTYPE_p_f_p_void__p_void swig_types[7]
-#define SWIGTYPE_p_int swig_types[8]
-#define SWIGTYPE_p_intptr_t swig_types[9]
-#define SWIGTYPE_p_long swig_types[10]
-#define SWIGTYPE_p_long_long swig_types[11]
-#define SWIGTYPE_p_p_char swig_types[12]
-#define SWIGTYPE_p_p_pn_connection_driver_t swig_types[13]
-#define SWIGTYPE_p_pn_acceptor_t swig_types[14]
-#define SWIGTYPE_p_pn_atom_t swig_types[15]
-#define SWIGTYPE_p_pn_bytes_t swig_types[16]
-#define SWIGTYPE_p_pn_cid_t swig_types[17]
-#define SWIGTYPE_p_pn_class_t swig_types[18]
-#define SWIGTYPE_p_pn_collector_t swig_types[19]
-#define SWIGTYPE_p_pn_condition_t swig_types[20]
-#define SWIGTYPE_p_pn_connection_driver_t swig_types[21]
-#define SWIGTYPE_p_pn_connection_t swig_types[22]
-#define SWIGTYPE_p_pn_data_t swig_types[23]
-#define SWIGTYPE_p_pn_decimal128_t swig_types[24]
-#define SWIGTYPE_p_pn_delivery_t swig_types[25]
-#define SWIGTYPE_p_pn_disposition_t swig_types[26]
-#define SWIGTYPE_p_pn_distribution_mode_t swig_types[27]
-#define SWIGTYPE_p_pn_durability_t swig_types[28]
-#define SWIGTYPE_p_pn_error_t swig_types[29]
-#define SWIGTYPE_p_pn_event_batch_t swig_types[30]
-#define SWIGTYPE_p_pn_event_t swig_types[31]
-#define SWIGTYPE_p_pn_event_type_t swig_types[32]
-#define SWIGTYPE_p_pn_expiry_policy_t swig_types[33]
-#define SWIGTYPE_p_pn_handler_t swig_types[34]
-#define SWIGTYPE_p_pn_hash_t swig_types[35]
-#define SWIGTYPE_p_pn_iterator_t swig_types[36]
-#define SWIGTYPE_p_pn_link_t swig_types[37]
-#define SWIGTYPE_p_pn_list_t swig_types[38]
-#define SWIGTYPE_p_pn_listener_t swig_types[39]
-#define SWIGTYPE_p_pn_map_t swig_types[40]
-#define SWIGTYPE_p_pn_message_t swig_types[41]
-#define SWIGTYPE_p_pn_messenger_t swig_types[42]
-#define SWIGTYPE_p_pn_proactor_t swig_types[43]
-#define SWIGTYPE_p_pn_rcv_settle_mode_t swig_types[44]
-#define SWIGTYPE_p_pn_reactor_t swig_types[45]
-#define SWIGTYPE_p_pn_record_t swig_types[46]
-#define SWIGTYPE_p_pn_rwbytes_t swig_types[47]
-#define SWIGTYPE_p_pn_sasl_outcome_t swig_types[48]
-#define SWIGTYPE_p_pn_sasl_t swig_types[49]
-#define SWIGTYPE_p_pn_selectable_t swig_types[50]
-#define SWIGTYPE_p_pn_session_t swig_types[51]
-#define SWIGTYPE_p_pn_snd_settle_mode_t swig_types[52]
-#define SWIGTYPE_p_pn_ssl_cert_subject_subfield swig_types[53]
-#define SWIGTYPE_p_pn_ssl_domain_t swig_types[54]
-#define SWIGTYPE_p_pn_ssl_hash_alg swig_types[55]
-#define SWIGTYPE_p_pn_ssl_mode_t swig_types[56]
-#define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[57]
-#define SWIGTYPE_p_pn_ssl_t swig_types[58]
-#define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[59]
-#define SWIGTYPE_p_pn_string_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 SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void swig_types[3]
+#define SWIGTYPE_p_f_p_void__p_void swig_types[4]
+#define SWIGTYPE_p_int swig_types[5]
+#define SWIGTYPE_p_intptr_t swig_types[6]
+#define SWIGTYPE_p_long swig_types[7]
+#define SWIGTYPE_p_long_long swig_types[8]
+#define SWIGTYPE_p_p_char swig_types[9]
+#define SWIGTYPE_p_p_pn_connection_driver_t swig_types[10]
+#define SWIGTYPE_p_pn_atom_t swig_types[11]
+#define SWIGTYPE_p_pn_bytes_t swig_types[12]
+#define SWIGTYPE_p_pn_cid_t swig_types[13]
+#define SWIGTYPE_p_pn_class_t swig_types[14]
+#define SWIGTYPE_p_pn_collector_t swig_types[15]
+#define SWIGTYPE_p_pn_condition_t swig_types[16]
+#define SWIGTYPE_p_pn_connection_driver_t swig_types[17]
+#define SWIGTYPE_p_pn_connection_t swig_types[18]
+#define SWIGTYPE_p_pn_data_t swig_types[19]
+#define SWIGTYPE_p_pn_decimal128_t swig_types[20]
+#define SWIGTYPE_p_pn_delivery_t swig_types[21]
+#define SWIGTYPE_p_pn_disposition_t swig_types[22]
+#define SWIGTYPE_p_pn_distribution_mode_t swig_types[23]
+#define SWIGTYPE_p_pn_durability_t swig_types[24]
+#define SWIGTYPE_p_pn_error_t swig_types[25]
+#define SWIGTYPE_p_pn_event_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_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) -------- */
@@ -2826,13 +2818,10 @@
pn_connection_t *pn_cast_pn_connection(void *x) { return (pn_connection_t *) x; }
pn_session_t *pn_cast_pn_session(void *x) { return (pn_session_t *) x; }
pn_link_t *pn_cast_pn_link(void *x) { return (pn_link_t *) x; }
pn_delivery_t *pn_cast_pn_delivery(void *x) { return (pn_delivery_t *) x; }
pn_transport_t *pn_cast_pn_transport(void *x) { return (pn_transport_t *) x; }
- pn_reactor_t *pn_cast_pn_reactor(void *x) { return (pn_reactor_t *) x; }
- pn_task_t *pn_cast_pn_task(void *x) { return (pn_task_t *) x; }
- pn_selectable_t *pn_cast_pn_selectable(void *x) { return (pn_selectable_t *) x; }
#include <proton/connection_driver.h>
SWIGINTERN VALUE
@@ -15217,683 +15206,10 @@
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_selectable(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- result = (pn_selectable_t *)pn_selectable();
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_on_readable(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void (*arg2)(pn_selectable_t *) = (void (*)(pn_selectable_t *)) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_on_readable", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- {
- int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_pn_selectable_t__void);
- if (!SWIG_IsOK(res)) {
- SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(pn_selectable_t *)","pn_selectable_on_readable", 2, argv[1] ));
- }
- }
- pn_selectable_on_readable(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_on_writable(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void (*arg2)(pn_selectable_t *) = (void (*)(pn_selectable_t *)) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_on_writable", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- {
- int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_pn_selectable_t__void);
- if (!SWIG_IsOK(res)) {
- SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(pn_selectable_t *)","pn_selectable_on_writable", 2, argv[1] ));
- }
- }
- pn_selectable_on_writable(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_on_expired(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void (*arg2)(pn_selectable_t *) = (void (*)(pn_selectable_t *)) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_on_expired", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- {
- int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_pn_selectable_t__void);
- if (!SWIG_IsOK(res)) {
- SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(pn_selectable_t *)","pn_selectable_on_expired", 2, argv[1] ));
- }
- }
- pn_selectable_on_expired(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_on_error(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void (*arg2)(pn_selectable_t *) = (void (*)(pn_selectable_t *)) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_on_error", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- {
- int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_pn_selectable_t__void);
- if (!SWIG_IsOK(res)) {
- SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(pn_selectable_t *)","pn_selectable_on_error", 2, argv[1] ));
- }
- }
- pn_selectable_on_error(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_on_release(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void (*arg2)(pn_selectable_t *) = (void (*)(pn_selectable_t *)) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_on_release", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- {
- int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_pn_selectable_t__void);
- if (!SWIG_IsOK(res)) {
- SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(pn_selectable_t *)","pn_selectable_on_release", 2, argv[1] ));
- }
- }
- pn_selectable_on_release(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_on_finalize(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void (*arg2)(pn_selectable_t *) = (void (*)(pn_selectable_t *)) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_on_finalize", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- {
- int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_pn_selectable_t__void);
- if (!SWIG_IsOK(res)) {
- SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(pn_selectable_t *)","pn_selectable_on_finalize", 2, argv[1] ));
- }
- }
- pn_selectable_on_finalize(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_attachments(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_record_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_attachments", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- result = (pn_record_t *)pn_selectable_attachments(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_record_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_get_fd(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_socket_t result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_get_fd", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- result = (pn_socket_t)pn_selectable_get_fd(arg1);
- vresult = SWIG_From_int((int)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_set_fd(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- pn_socket_t arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_set_fd", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_socket_t","pn_selectable_set_fd", 2, argv[1] ));
- }
- arg2 = (pn_socket_t)(val2);
- pn_selectable_set_fd(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_is_reading(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_is_reading", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- result = (bool)pn_selectable_is_reading(arg1);
- vresult = SWIG_From_bool((bool)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_set_reading(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- bool arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- bool val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_set_reading", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- ecode2 = SWIG_AsVal_bool(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_selectable_set_reading", 2, argv[1] ));
- }
- arg2 = (bool)(val2);
- pn_selectable_set_reading(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_is_writing(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_is_writing", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- result = (bool)pn_selectable_is_writing(arg1);
- vresult = SWIG_From_bool((bool)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_set_writing(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- bool arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- bool val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_set_writing", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- ecode2 = SWIG_AsVal_bool(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_selectable_set_writing", 2, argv[1] ));
- }
- arg2 = (bool)(val2);
- pn_selectable_set_writing(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_get_deadline(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_timestamp_t result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_get_deadline", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- result = (pn_timestamp_t)pn_selectable_get_deadline(arg1);
- vresult = SWIG_From_long_SS_long((long long)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_set_deadline(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- pn_timestamp_t arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- 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_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_set_deadline", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_timestamp_t","pn_selectable_set_deadline", 2, argv[1] ));
- }
- arg2 = (pn_timestamp_t)(val2);
- pn_selectable_set_deadline(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_readable(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_readable", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- pn_selectable_readable(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_writable(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_writable", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- pn_selectable_writable(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_error(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_error", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- pn_selectable_error(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_expired(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_expired", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- pn_selectable_expired(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_is_registered(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_is_registered", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- result = (bool)pn_selectable_is_registered(arg1);
- vresult = SWIG_From_bool((bool)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_set_registered(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- bool arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- bool val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_set_registered", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- ecode2 = SWIG_AsVal_bool(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_selectable_set_registered", 2, argv[1] ));
- }
- arg2 = (bool)(val2);
- pn_selectable_set_registered(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_is_terminal(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_is_terminal", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- result = (bool)pn_selectable_is_terminal(arg1);
- vresult = SWIG_From_bool((bool)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_terminate(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_terminate", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- pn_selectable_terminate(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_release(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_release", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- pn_selectable_release(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_free(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_free", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- pn_selectable_free(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectable_collect(int argc, VALUE *argv, VALUE self) {
- pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
- pn_collector_t *arg2 = (pn_collector_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_collect", 1, argv[0] ));
- }
- arg1 = (pn_selectable_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_collector_t, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_collector_t *","pn_selectable_collect", 2, argv[1] ));
- }
- arg2 = (pn_collector_t *)(argp2);
- pn_selectable_collect(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
_wrap_pn_ssl_present(int argc, VALUE *argv, VALUE self) {
bool result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
@@ -18844,76 +18160,10 @@
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_cast_pn_reactor(int argc, VALUE *argv, VALUE self) {
- void *arg1 = (void *) 0 ;
- int res1 ;
- pn_reactor_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_cast_pn_reactor", 1, argv[0] ));
- }
- result = (pn_reactor_t *)pn_cast_pn_reactor(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_cast_pn_task(int argc, VALUE *argv, VALUE self) {
- void *arg1 = (void *) 0 ;
- int res1 ;
- pn_task_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_cast_pn_task", 1, argv[0] ));
- }
- result = (pn_task_t *)pn_cast_pn_task(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_task_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_cast_pn_selectable(int argc, VALUE *argv, VALUE self) {
- void *arg1 = (void *) 0 ;
- int res1 ;
- pn_selectable_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_cast_pn_selectable", 1, argv[0] ));
- }
- result = (pn_selectable_t *)pn_cast_pn_selectable(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
_wrap_pn_connection_driver_init(int argc, VALUE *argv, VALUE self) {
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
pn_connection_t *arg2 = (pn_connection_t *) 0 ;
pn_transport_t *arg3 = (pn_transport_t *) 0 ;
void *argp1 = 0 ;
@@ -19434,1476 +18684,10 @@
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_handler(int argc, VALUE *argv, VALUE self) {
- void (*arg1)(pn_handler_t *,pn_event_t *,pn_event_type_t) = (void (*)(pn_handler_t *,pn_event_t *,pn_event_type_t)) 0 ;
- pn_handler_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg1), SWIGTYPE_p_f_p_struct_pn_handler_t_p_struct_pn_event_t_enum_pn_event_type_t__void);
- if (!SWIG_IsOK(res)) {
- SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(pn_handler_t *,pn_event_t *,pn_event_type_t)","pn_handler", 1, argv[0] ));
- }
- }
- result = (pn_handler_t *)pn_handler(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_handler_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_handler_new(int argc, VALUE *argv, VALUE self) {
- void (*arg1)(pn_handler_t *,pn_event_t *,pn_event_type_t) = (void (*)(pn_handler_t *,pn_event_t *,pn_event_type_t)) 0 ;
- size_t arg2 ;
- void (*arg3)(pn_handler_t *) = (void (*)(pn_handler_t *)) 0 ;
- size_t val2 ;
- int ecode2 = 0 ;
- pn_handler_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- {
- int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg1), SWIGTYPE_p_f_p_struct_pn_handler_t_p_struct_pn_event_t_enum_pn_event_type_t__void);
- if (!SWIG_IsOK(res)) {
- SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(pn_handler_t *,pn_event_t *,pn_event_type_t)","pn_handler_new", 1, argv[0] ));
- }
- }
- ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_handler_new", 2, argv[1] ));
- }
- arg2 = (size_t)(val2);
- {
- int res = SWIG_ConvertFunctionPtr(argv[2], (void**)(&arg3), SWIGTYPE_p_f_p_struct_pn_handler_t__void);
- if (!SWIG_IsOK(res)) {
- SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(pn_handler_t *)","pn_handler_new", 3, argv[2] ));
- }
- }
- result = (pn_handler_t *)pn_handler_new(arg1,arg2,arg3);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_handler_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_handler_free(int argc, VALUE *argv, VALUE self) {
- pn_handler_t *arg1 = (pn_handler_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_handler_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_handler_t *","pn_handler_free", 1, argv[0] ));
- }
- arg1 = (pn_handler_t *)(argp1);
- pn_handler_free(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_handler_mem(int argc, VALUE *argv, VALUE self) {
- pn_handler_t *arg1 = (pn_handler_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_handler_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_handler_t *","pn_handler_mem", 1, argv[0] ));
- }
- arg1 = (pn_handler_t *)(argp1);
- result = (void *)pn_handler_mem(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_handler_add(int argc, VALUE *argv, VALUE self) {
- pn_handler_t *arg1 = (pn_handler_t *) 0 ;
- pn_handler_t *arg2 = (pn_handler_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_handler_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_handler_t *","pn_handler_add", 1, argv[0] ));
- }
- arg1 = (pn_handler_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_handler_t, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handler_t *","pn_handler_add", 2, argv[1] ));
- }
- arg2 = (pn_handler_t *)(argp2);
- pn_handler_add(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_handler_clear(int argc, VALUE *argv, VALUE self) {
- pn_handler_t *arg1 = (pn_handler_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_handler_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_handler_t *","pn_handler_clear", 1, argv[0] ));
- }
- arg1 = (pn_handler_t *)(argp1);
- pn_handler_clear(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_handler_dispatch(int argc, VALUE *argv, VALUE self) {
- pn_handler_t *arg1 = (pn_handler_t *) 0 ;
- pn_event_t *arg2 = (pn_event_t *) 0 ;
- pn_event_type_t arg3 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_handler_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_handler_t *","pn_handler_dispatch", 1, argv[0] ));
- }
- arg1 = (pn_handler_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_event_t, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_event_t *","pn_handler_dispatch", 2, argv[1] ));
- }
- arg2 = (pn_event_t *)(argp2);
- ecode3 = SWIG_AsVal_int(argv[2], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "pn_event_type_t","pn_handler_dispatch", 3, argv[2] ));
- }
- arg3 = (pn_event_type_t)(val3);
- pn_handler_dispatch(arg1,arg2,arg3);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- result = (pn_reactor_t *)pn_reactor();
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_attachments(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_record_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_attachments", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- result = (pn_record_t *)pn_reactor_attachments(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_record_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_get_timeout(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_millis_t result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_get_timeout", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- result = (pn_millis_t)pn_reactor_get_timeout(arg1);
- vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_set_timeout(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- pn_millis_t arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- unsigned long val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_set_timeout", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_millis_t","pn_reactor_set_timeout", 2, argv[1] ));
- }
- arg2 = (pn_millis_t)(val2);
- pn_reactor_set_timeout(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_mark(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_timestamp_t result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_mark", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- result = (pn_timestamp_t)pn_reactor_mark(arg1);
- vresult = SWIG_From_long_SS_long((long long)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_now(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_timestamp_t result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_now", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- result = (pn_timestamp_t)pn_reactor_now(arg1);
- vresult = SWIG_From_long_SS_long((long long)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_yield(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_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_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_yield", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- pn_reactor_yield(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_free(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_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_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_free", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- pn_reactor_free(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_collector(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_collector_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_collector", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- result = (pn_collector_t *)pn_reactor_collector(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_collector_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_get_global_handler(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_handler_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_get_global_handler", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- result = (pn_handler_t *)pn_reactor_get_global_handler(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_handler_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_set_global_handler(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- pn_handler_t *arg2 = (pn_handler_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_set_global_handler", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_handler_t, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handler_t *","pn_reactor_set_global_handler", 2, argv[1] ));
- }
- arg2 = (pn_handler_t *)(argp2);
- pn_reactor_set_global_handler(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_get_handler(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_handler_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_get_handler", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- result = (pn_handler_t *)pn_reactor_get_handler(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_handler_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_set_handler(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- pn_handler_t *arg2 = (pn_handler_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_set_handler", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_handler_t, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handler_t *","pn_reactor_set_handler", 2, argv[1] ));
- }
- arg2 = (pn_handler_t *)(argp2);
- pn_reactor_set_handler(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_children(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_list_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_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_children", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- result = (pn_list_t *)pn_reactor_children(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_list_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_selectable(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_selectable_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_selectable", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- result = (pn_selectable_t *)pn_reactor_selectable(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_update(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- pn_selectable_t *arg2 = (pn_selectable_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_update", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_reactor_update", 2, argv[1] ));
- }
- arg2 = (pn_selectable_t *)(argp2);
- pn_reactor_update(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_acceptor(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- pn_handler_t *arg4 = (pn_handler_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- void *argp4 = 0 ;
- int res4 = 0 ;
- pn_acceptor_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_acceptor", 1, argv[0] ));
- }
- arg1 = (pn_reactor_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_reactor_acceptor", 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_reactor_acceptor", 3, argv[2] ));
- }
- arg3 = (char *)(buf3);
- res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_pn_handler_t, 0 | 0 );
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "pn_handler_t *","pn_reactor_acceptor", 4, argv[3] ));
- }
- arg4 = (pn_handler_t *)(argp4);
- result = (pn_acceptor_t *)pn_reactor_acceptor(arg1,(char const *)arg2,(char const *)arg3,arg4);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_acceptor_t, 0 | 0 );
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
- if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
- if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_error(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_error_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_error", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- result = (pn_error_t *)pn_reactor_error(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_connection_to_host(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- pn_handler_t *arg4 = (pn_handler_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- void *argp4 = 0 ;
- int res4 = 0 ;
- pn_connection_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_connection_to_host", 1, argv[0] ));
- }
- arg1 = (pn_reactor_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_reactor_connection_to_host", 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_reactor_connection_to_host", 3, argv[2] ));
- }
- arg3 = (char *)(buf3);
- res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_pn_handler_t, 0 | 0 );
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "pn_handler_t *","pn_reactor_connection_to_host", 4, argv[3] ));
- }
- arg4 = (pn_handler_t *)(argp4);
- result = (pn_connection_t *)pn_reactor_connection_to_host(arg1,(char const *)arg2,(char const *)arg3,arg4);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 | 0 );
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
- if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
- if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_connection(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- pn_handler_t *arg2 = (pn_handler_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- pn_connection_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_connection", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_handler_t, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handler_t *","pn_reactor_connection", 2, argv[1] ));
- }
- arg2 = (pn_handler_t *)(argp2);
- result = (pn_connection_t *)pn_reactor_connection(arg1,arg2);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_set_connection_host(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- pn_connection_t *arg2 = (pn_connection_t *) 0 ;
- char *arg3 = (char *) 0 ;
- char *arg4 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- int res4 ;
- char *buf4 = 0 ;
- int alloc4 = 0 ;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_set_connection_host", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_connection_t, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_connection_t *","pn_reactor_set_connection_host", 2, argv[1] ));
- }
- arg2 = (pn_connection_t *)(argp2);
- res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_reactor_set_connection_host", 3, argv[2] ));
- }
- arg3 = (char *)(buf3);
- res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","pn_reactor_set_connection_host", 4, argv[3] ));
- }
- arg4 = (char *)(buf4);
- pn_reactor_set_connection_host(arg1,arg2,(char const *)arg3,(char const *)arg4);
- if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
- if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
- return Qnil;
-fail:
- if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
- if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_get_connection_address(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- pn_connection_t *arg2 = (pn_connection_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_get_connection_address", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_connection_t, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_connection_t *","pn_reactor_get_connection_address", 2, argv[1] ));
- }
- arg2 = (pn_connection_t *)(argp2);
- result = (char *)pn_reactor_get_connection_address(arg1,arg2);
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_wakeup(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_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_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_wakeup", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- result = (int)pn_reactor_wakeup(arg1);
- vresult = SWIG_From_int((int)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_start(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_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_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_start", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- pn_reactor_start(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_quiesced(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_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_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_quiesced", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- result = (bool)pn_reactor_quiesced(arg1);
- vresult = SWIG_From_bool((bool)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_process(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_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_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_process", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- result = (bool)pn_reactor_process(arg1);
- vresult = SWIG_From_bool((bool)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_stop(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_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_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_stop", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- pn_reactor_stop(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_run(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_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_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_run", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- pn_reactor_run(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_reactor_schedule(int argc, VALUE *argv, VALUE self) {
- pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
- int arg2 ;
- pn_handler_t *arg3 = (pn_handler_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- pn_task_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_schedule", 1, argv[0] ));
- }
- arg1 = (pn_reactor_t *)(argp1);
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_reactor_schedule", 2, argv[1] ));
- }
- arg2 = (int)(val2);
- res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_pn_handler_t, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "pn_handler_t *","pn_reactor_schedule", 3, argv[2] ));
- }
- arg3 = (pn_handler_t *)(argp3);
- result = (pn_task_t *)pn_reactor_schedule(arg1,arg2,arg3);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_task_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_acceptor_set_ssl_domain(int argc, VALUE *argv, VALUE self) {
- pn_acceptor_t *arg1 = (pn_acceptor_t *) 0 ;
- pn_ssl_domain_t *arg2 = (pn_ssl_domain_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_acceptor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_acceptor_t *","pn_acceptor_set_ssl_domain", 1, argv[0] ));
- }
- arg1 = (pn_acceptor_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_ssl_domain_t, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_ssl_domain_t *","pn_acceptor_set_ssl_domain", 2, argv[1] ));
- }
- arg2 = (pn_ssl_domain_t *)(argp2);
- pn_acceptor_set_ssl_domain(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_acceptor_close(int argc, VALUE *argv, VALUE self) {
- pn_acceptor_t *arg1 = (pn_acceptor_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_acceptor_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_acceptor_t *","pn_acceptor_close", 1, argv[0] ));
- }
- arg1 = (pn_acceptor_t *)(argp1);
- pn_acceptor_close(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_connection_acceptor(int argc, VALUE *argv, VALUE self) {
- pn_connection_t *arg1 = (pn_connection_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_acceptor_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_acceptor", 1, argv[0] ));
- }
- arg1 = (pn_connection_t *)(argp1);
- result = (pn_acceptor_t *)pn_connection_acceptor(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_acceptor_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_timer(int argc, VALUE *argv, VALUE self) {
- pn_collector_t *arg1 = (pn_collector_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_timer_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_timer", 1, argv[0] ));
- }
- arg1 = (pn_collector_t *)(argp1);
- result = (pn_timer_t *)pn_timer(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_timer_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_timer_deadline(int argc, VALUE *argv, VALUE self) {
- pn_timer_t *arg1 = (pn_timer_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_timestamp_t result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_timer_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_timer_t *","pn_timer_deadline", 1, argv[0] ));
- }
- arg1 = (pn_timer_t *)(argp1);
- result = (pn_timestamp_t)pn_timer_deadline(arg1);
- vresult = SWIG_From_long_SS_long((long long)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_timer_tick(int argc, VALUE *argv, VALUE self) {
- pn_timer_t *arg1 = (pn_timer_t *) 0 ;
- pn_timestamp_t arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- 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_timer_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_timer_t *","pn_timer_tick", 1, argv[0] ));
- }
- arg1 = (pn_timer_t *)(argp1);
- ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_timestamp_t","pn_timer_tick", 2, argv[1] ));
- }
- arg2 = (pn_timestamp_t)(val2);
- pn_timer_tick(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_timer_schedule(int argc, VALUE *argv, VALUE self) {
- pn_timer_t *arg1 = (pn_timer_t *) 0 ;
- pn_timestamp_t arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- long long val2 ;
- int ecode2 = 0 ;
- pn_task_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_timer_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_timer_t *","pn_timer_schedule", 1, argv[0] ));
- }
- arg1 = (pn_timer_t *)(argp1);
- ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_timestamp_t","pn_timer_schedule", 2, argv[1] ));
- }
- arg2 = (pn_timestamp_t)(val2);
- result = (pn_task_t *)pn_timer_schedule(arg1,arg2);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_task_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_timer_tasks(int argc, VALUE *argv, VALUE self) {
- pn_timer_t *arg1 = (pn_timer_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_timer_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_timer_t *","pn_timer_tasks", 1, argv[0] ));
- }
- arg1 = (pn_timer_t *)(argp1);
- result = (int)pn_timer_tasks(arg1);
- vresult = SWIG_From_int((int)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_task_attachments(int argc, VALUE *argv, VALUE self) {
- pn_task_t *arg1 = (pn_task_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_record_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_task_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_task_t *","pn_task_attachments", 1, argv[0] ));
- }
- arg1 = (pn_task_t *)(argp1);
- result = (pn_record_t *)pn_task_attachments(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_record_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_task_cancel(int argc, VALUE *argv, VALUE self) {
- pn_task_t *arg1 = (pn_task_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_task_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_task_t *","pn_task_cancel", 1, argv[0] ));
- }
- arg1 = (pn_task_t *)(argp1);
- pn_task_cancel(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_class_reactor(int argc, VALUE *argv, VALUE self) {
- pn_class_t *arg1 = (pn_class_t *) 0 ;
- void *arg2 = (void *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- pn_reactor_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_reactor", 1, argv[0] ));
- }
- arg1 = (pn_class_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_reactor", 2, argv[1] ));
- }
- result = (pn_reactor_t *)pn_class_reactor((struct pn_class_t const *)arg1,arg2);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_object_reactor(int argc, VALUE *argv, VALUE self) {
- void *arg1 = (void *) 0 ;
- int res1 ;
- pn_reactor_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_object_reactor", 1, argv[0] ));
- }
- result = (pn_reactor_t *)pn_object_reactor(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_event_reactor(int argc, VALUE *argv, VALUE self) {
- pn_event_t *arg1 = (pn_event_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_reactor_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_reactor", 1, argv[0] ));
- }
- arg1 = (pn_event_t *)(argp1);
- result = (pn_reactor_t *)pn_event_reactor(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_reactor_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_record_get_handler(int argc, VALUE *argv, VALUE self) {
- pn_record_t *arg1 = (pn_record_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_handler_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_record_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_get_handler", 1, argv[0] ));
- }
- arg1 = (pn_record_t *)(argp1);
- result = (pn_handler_t *)pn_record_get_handler(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_handler_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_record_set_handler(int argc, VALUE *argv, VALUE self) {
- pn_record_t *arg1 = (pn_record_t *) 0 ;
- pn_handler_t *arg2 = (pn_handler_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_record_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_set_handler", 1, argv[0] ));
- }
- arg1 = (pn_record_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_handler_t, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_handler_t *","pn_record_set_handler", 2, argv[1] ));
- }
- arg2 = (pn_handler_t *)(argp2);
- pn_record_set_handler(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_event_root(int argc, VALUE *argv, VALUE self) {
- pn_event_t *arg1 = (pn_event_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_handler_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- 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_root", 1, argv[0] ));
- }
- arg1 = (pn_event_t *)(argp1);
- result = (pn_handler_t *)pn_event_root(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_handler_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_handshaker(int argc, VALUE *argv, VALUE self) {
- pn_handshaker_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- result = (pn_handshaker_t *)pn_handshaker();
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_handler_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_iohandler(int argc, VALUE *argv, VALUE self) {
- pn_iohandler_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- result = (pn_iohandler_t *)pn_iohandler();
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_handler_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_flowcontroller(int argc, VALUE *argv, VALUE self) {
- int arg1 ;
- int val1 ;
- int ecode1 = 0 ;
- pn_flowcontroller_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- ecode1 = SWIG_AsVal_int(argv[0], &val1);
- if (!SWIG_IsOK(ecode1)) {
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pn_flowcontroller", 1, argv[0] ));
- }
- arg1 = (int)(val1);
- result = (pn_flowcontroller_t *)pn_flowcontroller(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_handler_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
_wrap_pn_url(int argc, VALUE *argv, VALUE self) {
pn_url_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
@@ -21350,22 +19134,18 @@
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
static swig_type_info _swigt__p_Pn_rbkey_t = {"_p_Pn_rbkey_t", "Pn_rbkey_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Pni_rbhandler_t = {"_p_Pni_rbhandler_t", "Pni_rbhandler_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_f_p_struct_pn_handler_t__void = {"_p_f_p_struct_pn_handler_t__void", "void (*)(struct pn_handler_t *)|void (*)(pn_handler_t *)", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_f_p_struct_pn_handler_t_p_struct_pn_event_t_enum_pn_event_type_t__void = {"_p_f_p_struct_pn_handler_t_p_struct_pn_event_t_enum_pn_event_type_t__void", "void (*)(struct pn_handler_t *,struct pn_event_t *,enum pn_event_type_t)|void (*)(pn_handler_t *,pn_event_t *,pn_event_type_t)", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_f_p_struct_pn_selectable_t__void = {"_p_f_p_struct_pn_selectable_t__void", "void (*)(struct pn_selectable_t *)|void (*)(pn_selectable_t *)", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_p_struct_pn_transport_t_p_q_const__char__void = {"_p_f_p_struct_pn_transport_t_p_q_const__char__void", "void (*)(struct pn_transport_t *,char const *)|pn_tracer_t", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_p_void__p_void = {"_p_f_p_void__p_void", "void *(*)(void *)|pn_iterator_next_t", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_int = {"_p_int", "int *|ssize_t *|pn_state_t *|pn_trace_t *|pn_socket_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_int = {"_p_int", "int *|ssize_t *|pn_state_t *|pn_trace_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_intptr_t = {"_p_intptr_t", "intptr_t *|pn_shandle_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_long = {"_p_long", "int32_t *|long *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_long_long = {"_p_long_long", "int64_t *|long long *|pn_timestamp_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_pn_connection_driver_t = {"_p_p_pn_connection_driver_t", "struct pn_connection_driver_t **|pn_connection_driver_t **", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_pn_acceptor_t = {"_p_pn_acceptor_t", "struct pn_acceptor_t *|pn_acceptor_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_atom_t = {"_p_pn_atom_t", "pn_atom_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_bytes_t = {"_p_pn_bytes_t", "struct pn_bytes_t *|pn_bytes_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_cid_t = {"_p_pn_cid_t", "enum pn_cid_t *|pn_cid_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_class_t = {"_p_pn_class_t", "struct pn_class_t *|pn_class_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_collector_t = {"_p_pn_collector_t", "struct pn_collector_t *|pn_collector_t *", 0, 0, (void*)0, 0};
@@ -21381,41 +19161,37 @@
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", "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_handler_t = {"_p_pn_handler_t", "struct pn_handler_t *|pn_handler_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_hash_t = {"_p_pn_hash_t", "struct pn_hash_t *|pn_hash_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_iterator_t = {"_p_pn_iterator_t", "struct pn_iterator_t *|pn_iterator_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_link_t = {"_p_pn_link_t", "struct pn_link_t *|pn_link_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_list_t = {"_p_pn_list_t", "struct pn_list_t *|pn_list_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_listener_t = {"_p_pn_listener_t", "struct pn_listener_t *|pn_listener_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_map_t = {"_p_pn_map_t", "struct pn_map_t *|pn_map_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_message_t = {"_p_pn_message_t", "struct pn_message_t *|pn_message_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_messenger_t = {"_p_pn_messenger_t", "pn_messenger_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_proactor_t = {"_p_pn_proactor_t", "struct pn_proactor_t *|pn_proactor_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_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};
static swig_type_info _swigt__p_pn_sasl_t = {"_p_pn_sasl_t", "struct pn_sasl_t *|pn_sasl_t *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_pn_selectable_t = {"_p_pn_selectable_t", "struct pn_selectable_t *|pn_selectable_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_session_t = {"_p_pn_session_t", "struct pn_session_t *|pn_session_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_snd_settle_mode_t = {"_p_pn_snd_settle_mode_t", "enum pn_snd_settle_mode_t *|pn_snd_settle_mode_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_ssl_cert_subject_subfield = {"_p_pn_ssl_cert_subject_subfield", "enum pn_ssl_cert_subject_subfield *|pn_ssl_cert_subject_subfield *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_ssl_domain_t = {"_p_pn_ssl_domain_t", "struct pn_ssl_domain_t *|pn_ssl_domain_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_ssl_hash_alg = {"_p_pn_ssl_hash_alg", "enum pn_ssl_hash_alg *|pn_ssl_hash_alg *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_ssl_mode_t = {"_p_pn_ssl_mode_t", "enum pn_ssl_mode_t *|pn_ssl_mode_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_ssl_resume_status_t = {"_p_pn_ssl_resume_status_t", "enum pn_ssl_resume_status_t *|pn_ssl_resume_status_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_ssl_t = {"_p_pn_ssl_t", "struct pn_ssl_t *|pn_ssl_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_ssl_verify_mode_t = {"_p_pn_ssl_verify_mode_t", "enum pn_ssl_verify_mode_t *|pn_ssl_verify_mode_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_string_t = {"_p_pn_string_t", "struct pn_string_t *|pn_string_t *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_pn_task_t = {"_p_pn_task_t", "struct pn_task_t *|pn_task_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_timer_t = {"_p_pn_timer_t", "struct pn_timer_t *|pn_timer_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_transport_t = {"_p_pn_transport_t", "struct pn_transport_t *|pn_transport_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_type_t = {"_p_pn_type_t", "enum pn_type_t *|pn_type_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_url_t = {"_p_pn_url_t", "struct pn_url_t *|pn_url_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_uuid_t = {"_p_pn_uuid_t", "pn_uuid_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_short = {"_p_short", "short *|int16_t *", 0, 0, (void*)0, 0};
@@ -21429,22 +19205,18 @@
static swig_type_info *swig_type_initial[] = {
&_swigt__p_Pn_rbkey_t,
&_swigt__p_Pni_rbhandler_t,
&_swigt__p_char,
- &_swigt__p_f_p_struct_pn_handler_t__void,
- &_swigt__p_f_p_struct_pn_handler_t_p_struct_pn_event_t_enum_pn_event_type_t__void,
- &_swigt__p_f_p_struct_pn_selectable_t__void,
&_swigt__p_f_p_struct_pn_transport_t_p_q_const__char__void,
&_swigt__p_f_p_void__p_void,
&_swigt__p_int,
&_swigt__p_intptr_t,
&_swigt__p_long,
&_swigt__p_long_long,
&_swigt__p_p_char,
&_swigt__p_p_pn_connection_driver_t,
- &_swigt__p_pn_acceptor_t,
&_swigt__p_pn_atom_t,
&_swigt__p_pn_bytes_t,
&_swigt__p_pn_cid_t,
&_swigt__p_pn_class_t,
&_swigt__p_pn_collector_t,
@@ -21471,30 +19243,26 @@
&_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,
&_swigt__p_pn_sasl_t,
- &_swigt__p_pn_selectable_t,
&_swigt__p_pn_session_t,
&_swigt__p_pn_snd_settle_mode_t,
&_swigt__p_pn_ssl_cert_subject_subfield,
&_swigt__p_pn_ssl_domain_t,
&_swigt__p_pn_ssl_hash_alg,
&_swigt__p_pn_ssl_mode_t,
&_swigt__p_pn_ssl_resume_status_t,
&_swigt__p_pn_ssl_t,
&_swigt__p_pn_ssl_verify_mode_t,
&_swigt__p_pn_string_t,
- &_swigt__p_pn_task_t,
&_swigt__p_pn_terminus_t,
&_swigt__p_pn_terminus_type_t,
- &_swigt__p_pn_timer_t,
&_swigt__p_pn_transport_t,
&_swigt__p_pn_type_t,
&_swigt__p_pn_url_t,
&_swigt__p_pn_uuid_t,
&_swigt__p_short,
@@ -21508,22 +19276,18 @@
};
static swig_cast_info _swigc__p_Pn_rbkey_t[] = { {&_swigt__p_Pn_rbkey_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Pni_rbhandler_t[] = { {&_swigt__p_Pni_rbhandler_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_f_p_struct_pn_handler_t__void[] = { {&_swigt__p_f_p_struct_pn_handler_t__void, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_f_p_struct_pn_handler_t_p_struct_pn_event_t_enum_pn_event_type_t__void[] = { {&_swigt__p_f_p_struct_pn_handler_t_p_struct_pn_event_t_enum_pn_event_type_t__void, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_f_p_struct_pn_selectable_t__void[] = { {&_swigt__p_f_p_struct_pn_selectable_t__void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_struct_pn_transport_t_p_q_const__char__void[] = { {&_swigt__p_f_p_struct_pn_transport_t_p_q_const__char__void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_void__p_void[] = { {&_swigt__p_f_p_void__p_void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_intptr_t[] = { {&_swigt__p_intptr_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_pn_connection_driver_t[] = { {&_swigt__p_p_pn_connection_driver_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_pn_acceptor_t[] = { {&_swigt__p_pn_acceptor_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_atom_t[] = { {&_swigt__p_pn_atom_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_bytes_t[] = { {&_swigt__p_pn_bytes_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_cid_t[] = { {&_swigt__p_pn_cid_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_class_t[] = { {&_swigt__p_pn_class_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_collector_t[] = { {&_swigt__p_pn_collector_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -21550,30 +19314,26 @@
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}};
static swig_cast_info _swigc__p_pn_sasl_t[] = { {&_swigt__p_pn_sasl_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_pn_selectable_t[] = { {&_swigt__p_pn_selectable_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_session_t[] = { {&_swigt__p_pn_session_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_snd_settle_mode_t[] = { {&_swigt__p_pn_snd_settle_mode_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_ssl_cert_subject_subfield[] = { {&_swigt__p_pn_ssl_cert_subject_subfield, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_ssl_domain_t[] = { {&_swigt__p_pn_ssl_domain_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_ssl_hash_alg[] = { {&_swigt__p_pn_ssl_hash_alg, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_ssl_mode_t[] = { {&_swigt__p_pn_ssl_mode_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_ssl_resume_status_t[] = { {&_swigt__p_pn_ssl_resume_status_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_ssl_t[] = { {&_swigt__p_pn_ssl_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_ssl_verify_mode_t[] = { {&_swigt__p_pn_ssl_verify_mode_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_string_t[] = { {&_swigt__p_pn_string_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_pn_task_t[] = { {&_swigt__p_pn_task_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_timer_t[] = { {&_swigt__p_pn_timer_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_transport_t[] = { {&_swigt__p_pn_transport_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_type_t[] = { {&_swigt__p_pn_type_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_url_t[] = { {&_swigt__p_pn_url_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_uuid_t[] = { {&_swigt__p_pn_uuid_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
@@ -21587,22 +19347,18 @@
static swig_cast_info *swig_cast_initial[] = {
_swigc__p_Pn_rbkey_t,
_swigc__p_Pni_rbhandler_t,
_swigc__p_char,
- _swigc__p_f_p_struct_pn_handler_t__void,
- _swigc__p_f_p_struct_pn_handler_t_p_struct_pn_event_t_enum_pn_event_type_t__void,
- _swigc__p_f_p_struct_pn_selectable_t__void,
_swigc__p_f_p_struct_pn_transport_t_p_q_const__char__void,
_swigc__p_f_p_void__p_void,
_swigc__p_int,
_swigc__p_intptr_t,
_swigc__p_long,
_swigc__p_long_long,
_swigc__p_p_char,
_swigc__p_p_pn_connection_driver_t,
- _swigc__p_pn_acceptor_t,
_swigc__p_pn_atom_t,
_swigc__p_pn_bytes_t,
_swigc__p_pn_cid_t,
_swigc__p_pn_class_t,
_swigc__p_pn_collector_t,
@@ -21629,30 +19385,26 @@
_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,
_swigc__p_pn_sasl_t,
- _swigc__p_pn_selectable_t,
_swigc__p_pn_session_t,
_swigc__p_pn_snd_settle_mode_t,
_swigc__p_pn_ssl_cert_subject_subfield,
_swigc__p_pn_ssl_domain_t,
_swigc__p_pn_ssl_hash_alg,
_swigc__p_pn_ssl_mode_t,
_swigc__p_pn_ssl_resume_status_t,
_swigc__p_pn_ssl_t,
_swigc__p_pn_ssl_verify_mode_t,
_swigc__p_pn_string_t,
- _swigc__p_pn_task_t,
_swigc__p_pn_terminus_t,
_swigc__p_pn_terminus_type_t,
- _swigc__p_pn_timer_t,
_swigc__p_pn_transport_t,
_swigc__p_pn_type_t,
_swigc__p_pn_url_t,
_swigc__p_pn_uuid_t,
_swigc__p_short,
@@ -21967,12 +19719,12 @@
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)(27)));
- rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(1)));
+ rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(28)));
+ rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(0)));
rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1)));
rb_define_const(mCproton, "PN_MILLIS_MAX", SWIG_From_unsigned_SS_int((unsigned int)((~0U))));
rb_define_module_function(mCproton, "pn_bytes", _wrap_pn_bytes, -1);
rb_define_singleton_method(mCproton, "pn_bytes_null", _wrap_pn_bytes_null_get, 0);
rb_define_module_function(mCproton, "pn_rwbytes", _wrap_pn_rwbytes, -1);
@@ -22499,39 +20251,10 @@
rb_define_module_function(mCproton, "pn_sasl_allowed_mechs", _wrap_pn_sasl_allowed_mechs, -1);
rb_define_module_function(mCproton, "pn_sasl_set_allow_insecure_mechs", _wrap_pn_sasl_set_allow_insecure_mechs, -1);
rb_define_module_function(mCproton, "pn_sasl_get_allow_insecure_mechs", _wrap_pn_sasl_get_allow_insecure_mechs, -1);
rb_define_module_function(mCproton, "pn_sasl_config_name", _wrap_pn_sasl_config_name, -1);
rb_define_module_function(mCproton, "pn_sasl_config_path", _wrap_pn_sasl_config_path, -1);
- rb_define_const(mCproton, "PROTON_SELECTABLE_H", SWIG_From_int((int)(1)));
- rb_define_const(mCproton, "PN_INVALID_SOCKET", SWIG_From_int((int)((-1))));
- rb_define_module_function(mCproton, "pn_selectable", _wrap_pn_selectable, -1);
- rb_define_module_function(mCproton, "pn_selectable_on_readable", _wrap_pn_selectable_on_readable, -1);
- rb_define_module_function(mCproton, "pn_selectable_on_writable", _wrap_pn_selectable_on_writable, -1);
- rb_define_module_function(mCproton, "pn_selectable_on_expired", _wrap_pn_selectable_on_expired, -1);
- rb_define_module_function(mCproton, "pn_selectable_on_error", _wrap_pn_selectable_on_error, -1);
- rb_define_module_function(mCproton, "pn_selectable_on_release", _wrap_pn_selectable_on_release, -1);
- rb_define_module_function(mCproton, "pn_selectable_on_finalize", _wrap_pn_selectable_on_finalize, -1);
- rb_define_module_function(mCproton, "pn_selectable_attachments", _wrap_pn_selectable_attachments, -1);
- rb_define_module_function(mCproton, "pn_selectable_get_fd", _wrap_pn_selectable_get_fd, -1);
- rb_define_module_function(mCproton, "pn_selectable_set_fd", _wrap_pn_selectable_set_fd, -1);
- rb_define_module_function(mCproton, "pn_selectable_is_reading", _wrap_pn_selectable_is_reading, -1);
- rb_define_module_function(mCproton, "pn_selectable_set_reading", _wrap_pn_selectable_set_reading, -1);
- rb_define_module_function(mCproton, "pn_selectable_is_writing", _wrap_pn_selectable_is_writing, -1);
- rb_define_module_function(mCproton, "pn_selectable_set_writing", _wrap_pn_selectable_set_writing, -1);
- rb_define_module_function(mCproton, "pn_selectable_get_deadline", _wrap_pn_selectable_get_deadline, -1);
- rb_define_module_function(mCproton, "pn_selectable_set_deadline", _wrap_pn_selectable_set_deadline, -1);
- rb_define_module_function(mCproton, "pn_selectable_readable", _wrap_pn_selectable_readable, -1);
- rb_define_module_function(mCproton, "pn_selectable_writable", _wrap_pn_selectable_writable, -1);
- rb_define_module_function(mCproton, "pn_selectable_error", _wrap_pn_selectable_error, -1);
- rb_define_module_function(mCproton, "pn_selectable_expired", _wrap_pn_selectable_expired, -1);
- rb_define_module_function(mCproton, "pn_selectable_is_registered", _wrap_pn_selectable_is_registered, -1);
- rb_define_module_function(mCproton, "pn_selectable_set_registered", _wrap_pn_selectable_set_registered, -1);
- rb_define_module_function(mCproton, "pn_selectable_is_terminal", _wrap_pn_selectable_is_terminal, -1);
- rb_define_module_function(mCproton, "pn_selectable_terminate", _wrap_pn_selectable_terminate, -1);
- rb_define_module_function(mCproton, "pn_selectable_release", _wrap_pn_selectable_release, -1);
- rb_define_module_function(mCproton, "pn_selectable_free", _wrap_pn_selectable_free, -1);
- rb_define_module_function(mCproton, "pn_selectable_collect", _wrap_pn_selectable_collect, -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)));
@@ -22679,13 +20402,10 @@
rb_define_module_function(mCproton, "pn_cast_pn_connection", _wrap_pn_cast_pn_connection, -1);
rb_define_module_function(mCproton, "pn_cast_pn_session", _wrap_pn_cast_pn_session, -1);
rb_define_module_function(mCproton, "pn_cast_pn_link", _wrap_pn_cast_pn_link, -1);
rb_define_module_function(mCproton, "pn_cast_pn_delivery", _wrap_pn_cast_pn_delivery, -1);
rb_define_module_function(mCproton, "pn_cast_pn_transport", _wrap_pn_cast_pn_transport, -1);
- rb_define_module_function(mCproton, "pn_cast_pn_reactor", _wrap_pn_cast_pn_reactor, -1);
- rb_define_module_function(mCproton, "pn_cast_pn_task", _wrap_pn_cast_pn_task, -1);
- rb_define_module_function(mCproton, "pn_cast_pn_selectable", _wrap_pn_cast_pn_selectable, -1);
rb_define_const(mCproton, "PROTON_CONNECTION_DRIVER_H", SWIG_From_int((int)(1)));
rb_define_module_function(mCproton, "pn_connection_driver_init", _wrap_pn_connection_driver_init, -1);
rb_define_module_function(mCproton, "pn_connection_driver_bind", _wrap_pn_connection_driver_bind, -1);
rb_define_module_function(mCproton, "pn_connection_driver_destroy", _wrap_pn_connection_driver_destroy, -1);
rb_define_module_function(mCproton, "pn_connection_driver_release_connection", _wrap_pn_connection_driver_release_connection, -1);
@@ -22703,66 +20423,9 @@
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_REACTOR_H", SWIG_From_int((int)(1)));
- rb_define_module_function(mCproton, "pn_handler", _wrap_pn_handler, -1);
- rb_define_module_function(mCproton, "pn_handler_new", _wrap_pn_handler_new, -1);
- rb_define_module_function(mCproton, "pn_handler_free", _wrap_pn_handler_free, -1);
- rb_define_module_function(mCproton, "pn_handler_mem", _wrap_pn_handler_mem, -1);
- rb_define_module_function(mCproton, "pn_handler_add", _wrap_pn_handler_add, -1);
- rb_define_module_function(mCproton, "pn_handler_clear", _wrap_pn_handler_clear, -1);
- rb_define_module_function(mCproton, "pn_handler_dispatch", _wrap_pn_handler_dispatch, -1);
- rb_define_module_function(mCproton, "pn_reactor", _wrap_pn_reactor, -1);
- rb_define_module_function(mCproton, "pn_reactor_attachments", _wrap_pn_reactor_attachments, -1);
- rb_define_module_function(mCproton, "pn_reactor_get_timeout", _wrap_pn_reactor_get_timeout, -1);
- rb_define_module_function(mCproton, "pn_reactor_set_timeout", _wrap_pn_reactor_set_timeout, -1);
- rb_define_module_function(mCproton, "pn_reactor_mark", _wrap_pn_reactor_mark, -1);
- rb_define_module_function(mCproton, "pn_reactor_now", _wrap_pn_reactor_now, -1);
- rb_define_module_function(mCproton, "pn_reactor_yield", _wrap_pn_reactor_yield, -1);
- rb_define_module_function(mCproton, "pn_reactor_free", _wrap_pn_reactor_free, -1);
- rb_define_module_function(mCproton, "pn_reactor_collector", _wrap_pn_reactor_collector, -1);
- rb_define_module_function(mCproton, "pn_reactor_get_global_handler", _wrap_pn_reactor_get_global_handler, -1);
- rb_define_module_function(mCproton, "pn_reactor_set_global_handler", _wrap_pn_reactor_set_global_handler, -1);
- rb_define_module_function(mCproton, "pn_reactor_get_handler", _wrap_pn_reactor_get_handler, -1);
- rb_define_module_function(mCproton, "pn_reactor_set_handler", _wrap_pn_reactor_set_handler, -1);
- rb_define_module_function(mCproton, "pn_reactor_children", _wrap_pn_reactor_children, -1);
- rb_define_module_function(mCproton, "pn_reactor_selectable", _wrap_pn_reactor_selectable, -1);
- rb_define_module_function(mCproton, "pn_reactor_update", _wrap_pn_reactor_update, -1);
- rb_define_module_function(mCproton, "pn_reactor_acceptor", _wrap_pn_reactor_acceptor, -1);
- rb_define_module_function(mCproton, "pn_reactor_error", _wrap_pn_reactor_error, -1);
- rb_define_module_function(mCproton, "pn_reactor_connection_to_host", _wrap_pn_reactor_connection_to_host, -1);
- rb_define_module_function(mCproton, "pn_reactor_connection", _wrap_pn_reactor_connection, -1);
- rb_define_module_function(mCproton, "pn_reactor_set_connection_host", _wrap_pn_reactor_set_connection_host, -1);
- rb_define_module_function(mCproton, "pn_reactor_get_connection_address", _wrap_pn_reactor_get_connection_address, -1);
- rb_define_module_function(mCproton, "pn_reactor_wakeup", _wrap_pn_reactor_wakeup, -1);
- rb_define_module_function(mCproton, "pn_reactor_start", _wrap_pn_reactor_start, -1);
- rb_define_module_function(mCproton, "pn_reactor_quiesced", _wrap_pn_reactor_quiesced, -1);
- rb_define_module_function(mCproton, "pn_reactor_process", _wrap_pn_reactor_process, -1);
- rb_define_module_function(mCproton, "pn_reactor_stop", _wrap_pn_reactor_stop, -1);
- rb_define_module_function(mCproton, "pn_reactor_run", _wrap_pn_reactor_run, -1);
- rb_define_module_function(mCproton, "pn_reactor_schedule", _wrap_pn_reactor_schedule, -1);
- rb_define_module_function(mCproton, "pn_acceptor_set_ssl_domain", _wrap_pn_acceptor_set_ssl_domain, -1);
- rb_define_module_function(mCproton, "pn_acceptor_close", _wrap_pn_acceptor_close, -1);
- rb_define_module_function(mCproton, "pn_connection_acceptor", _wrap_pn_connection_acceptor, -1);
- rb_define_module_function(mCproton, "pn_timer", _wrap_pn_timer, -1);
- rb_define_module_function(mCproton, "pn_timer_deadline", _wrap_pn_timer_deadline, -1);
- rb_define_module_function(mCproton, "pn_timer_tick", _wrap_pn_timer_tick, -1);
- rb_define_module_function(mCproton, "pn_timer_schedule", _wrap_pn_timer_schedule, -1);
- rb_define_module_function(mCproton, "pn_timer_tasks", _wrap_pn_timer_tasks, -1);
- rb_define_module_function(mCproton, "pn_task_attachments", _wrap_pn_task_attachments, -1);
- rb_define_module_function(mCproton, "pn_task_cancel", _wrap_pn_task_cancel, -1);
- rb_define_module_function(mCproton, "pn_class_reactor", _wrap_pn_class_reactor, -1);
- rb_define_module_function(mCproton, "pn_object_reactor", _wrap_pn_object_reactor, -1);
- rb_define_module_function(mCproton, "pn_event_reactor", _wrap_pn_event_reactor, -1);
- rb_define_module_function(mCproton, "pn_record_get_handler", _wrap_pn_record_get_handler, -1);
- rb_define_module_function(mCproton, "pn_record_set_handler", _wrap_pn_record_set_handler, -1);
- rb_define_module_function(mCproton, "pn_event_root", _wrap_pn_event_root, -1);
- rb_define_const(mCproton, "PROTON_HANDLERS_H", SWIG_From_int((int)(1)));
- rb_define_module_function(mCproton, "pn_handshaker", _wrap_pn_handshaker, -1);
- rb_define_module_function(mCproton, "pn_iohandler", _wrap_pn_iohandler, -1);
- rb_define_module_function(mCproton, "pn_flowcontroller", _wrap_pn_flowcontroller, -1);
rb_define_const(mCproton, "PROTON_CID_H", SWIG_From_int((int)(1)));
rb_define_const(mCproton, "CID_pn_object", SWIG_From_int((int)(CID_pn_object)));
rb_define_const(mCproton, "CID_pn_void", SWIG_From_int((int)(CID_pn_void)));
rb_define_const(mCproton, "CID_pn_weakref", SWIG_From_int((int)(CID_pn_weakref)));
rb_define_const(mCproton, "CID_pn_string", SWIG_From_int((int)(CID_pn_string)));