ext/cproton/cproton.c in qpid_proton-0.6 vs ext/cproton/cproton.c in qpid_proton-0.7
- old
+ new
@@ -1778,75 +1778,83 @@
/* -------- TYPES TABLE (BEGIN) -------- */
#define SWIGTYPE_p_char swig_types[0]
#define SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void swig_types[1]
-#define SWIGTYPE_p_f_p_void__uintptr_t swig_types[2]
-#define SWIGTYPE_p_f_p_void__void swig_types[3]
-#define SWIGTYPE_p_f_p_void_p_struct_pn_string_t__int swig_types[4]
-#define SWIGTYPE_p_f_p_void_p_void__intptr_t swig_types[5]
-#define SWIGTYPE_p_int swig_types[6]
-#define SWIGTYPE_p_intptr_t swig_types[7]
-#define SWIGTYPE_p_long swig_types[8]
-#define SWIGTYPE_p_long_long swig_types[9]
-#define SWIGTYPE_p_p_char swig_types[10]
-#define SWIGTYPE_p_pn_activate_criteria_t swig_types[11]
-#define SWIGTYPE_p_pn_atom_t swig_types[12]
-#define SWIGTYPE_p_pn_atom_t_u swig_types[13]
-#define SWIGTYPE_p_pn_bytes_t swig_types[14]
-#define SWIGTYPE_p_pn_class_t swig_types[15]
-#define SWIGTYPE_p_pn_condition_t swig_types[16]
-#define SWIGTYPE_p_pn_connection_t swig_types[17]
-#define SWIGTYPE_p_pn_connector_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_delivery_tag_t swig_types[22]
-#define SWIGTYPE_p_pn_disposition_t swig_types[23]
-#define SWIGTYPE_p_pn_distribution_mode_t swig_types[24]
-#define SWIGTYPE_p_pn_driver_t swig_types[25]
-#define SWIGTYPE_p_pn_durability_t swig_types[26]
-#define SWIGTYPE_p_pn_error_t swig_types[27]
-#define SWIGTYPE_p_pn_expiry_policy_t swig_types[28]
-#define SWIGTYPE_p_pn_format_t swig_types[29]
-#define SWIGTYPE_p_pn_hash_t swig_types[30]
-#define SWIGTYPE_p_pn_link_t swig_types[31]
-#define SWIGTYPE_p_pn_list_t swig_types[32]
-#define SWIGTYPE_p_pn_listener_t swig_types[33]
-#define SWIGTYPE_p_pn_map_t swig_types[34]
-#define SWIGTYPE_p_pn_message_t swig_types[35]
-#define SWIGTYPE_p_pn_messenger_t swig_types[36]
-#define SWIGTYPE_p_pn_rcv_settle_mode_t swig_types[37]
-#define SWIGTYPE_p_pn_sasl_outcome_t swig_types[38]
-#define SWIGTYPE_p_pn_sasl_state_t swig_types[39]
-#define SWIGTYPE_p_pn_sasl_t swig_types[40]
-#define SWIGTYPE_p_pn_session_t swig_types[41]
-#define SWIGTYPE_p_pn_snd_settle_mode_t swig_types[42]
-#define SWIGTYPE_p_pn_ssl_domain_t swig_types[43]
-#define SWIGTYPE_p_pn_ssl_mode_t swig_types[44]
-#define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[45]
-#define SWIGTYPE_p_pn_ssl_t swig_types[46]
-#define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[47]
-#define SWIGTYPE_p_pn_status_t swig_types[48]
-#define SWIGTYPE_p_pn_string_t swig_types[49]
-#define SWIGTYPE_p_pn_subscription_t swig_types[50]
-#define SWIGTYPE_p_pn_terminus_t swig_types[51]
-#define SWIGTYPE_p_pn_terminus_type_t swig_types[52]
-#define SWIGTYPE_p_pn_transport_t swig_types[53]
-#define SWIGTYPE_p_pn_type_t swig_types[54]
-#define SWIGTYPE_p_pn_uuid_t swig_types[55]
-#define SWIGTYPE_p_short swig_types[56]
-#define SWIGTYPE_p_signed_char swig_types[57]
-#define SWIGTYPE_p_uintptr_t swig_types[58]
-#define SWIGTYPE_p_unsigned_char swig_types[59]
-#define SWIGTYPE_p_unsigned_int swig_types[60]
-#define SWIGTYPE_p_unsigned_long swig_types[61]
-#define SWIGTYPE_p_unsigned_long_long swig_types[62]
-#define SWIGTYPE_p_unsigned_short swig_types[63]
-#define SWIGTYPE_p_void swig_types[64]
-static swig_type_info *swig_types[66];
-static swig_module_info swig_module = {swig_types, 65, 0, 0, 0, 0};
+#define SWIGTYPE_p_f_p_void__p_void swig_types[2]
+#define SWIGTYPE_p_f_p_void__uintptr_t swig_types[3]
+#define SWIGTYPE_p_f_p_void__void swig_types[4]
+#define SWIGTYPE_p_f_p_void_p_struct_pn_string_t__int swig_types[5]
+#define SWIGTYPE_p_f_p_void_p_void__intptr_t swig_types[6]
+#define SWIGTYPE_p_int swig_types[7]
+#define SWIGTYPE_p_intptr_t swig_types[8]
+#define SWIGTYPE_p_long swig_types[9]
+#define SWIGTYPE_p_long_long swig_types[10]
+#define SWIGTYPE_p_p_char swig_types[11]
+#define SWIGTYPE_p_pn_activate_criteria_t swig_types[12]
+#define SWIGTYPE_p_pn_atom_t swig_types[13]
+#define SWIGTYPE_p_pn_atom_t_u swig_types[14]
+#define SWIGTYPE_p_pn_bytes_t swig_types[15]
+#define SWIGTYPE_p_pn_class_t swig_types[16]
+#define SWIGTYPE_p_pn_collector_t swig_types[17]
+#define SWIGTYPE_p_pn_condition_t swig_types[18]
+#define SWIGTYPE_p_pn_connection_t swig_types[19]
+#define SWIGTYPE_p_pn_connector_t swig_types[20]
+#define SWIGTYPE_p_pn_data_t swig_types[21]
+#define SWIGTYPE_p_pn_decimal128_t swig_types[22]
+#define SWIGTYPE_p_pn_delivery_t swig_types[23]
+#define SWIGTYPE_p_pn_delivery_tag_t swig_types[24]
+#define SWIGTYPE_p_pn_disposition_t swig_types[25]
+#define SWIGTYPE_p_pn_distribution_mode_t swig_types[26]
+#define SWIGTYPE_p_pn_driver_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_category_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_format_t swig_types[34]
+#define SWIGTYPE_p_pn_hash_t swig_types[35]
+#define SWIGTYPE_p_pn_io_t swig_types[36]
+#define SWIGTYPE_p_pn_iterator_t swig_types[37]
+#define SWIGTYPE_p_pn_link_t swig_types[38]
+#define SWIGTYPE_p_pn_list_t swig_types[39]
+#define SWIGTYPE_p_pn_listener_t swig_types[40]
+#define SWIGTYPE_p_pn_map_t swig_types[41]
+#define SWIGTYPE_p_pn_message_t swig_types[42]
+#define SWIGTYPE_p_pn_messenger_t swig_types[43]
+#define SWIGTYPE_p_pn_rcv_settle_mode_t swig_types[44]
+#define SWIGTYPE_p_pn_sasl_outcome_t swig_types[45]
+#define SWIGTYPE_p_pn_sasl_state_t swig_types[46]
+#define SWIGTYPE_p_pn_sasl_t swig_types[47]
+#define SWIGTYPE_p_pn_selectable_t swig_types[48]
+#define SWIGTYPE_p_pn_session_t swig_types[49]
+#define SWIGTYPE_p_pn_snd_settle_mode_t swig_types[50]
+#define SWIGTYPE_p_pn_ssl_domain_t swig_types[51]
+#define SWIGTYPE_p_pn_ssl_mode_t swig_types[52]
+#define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[53]
+#define SWIGTYPE_p_pn_ssl_t swig_types[54]
+#define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[55]
+#define SWIGTYPE_p_pn_status_t swig_types[56]
+#define SWIGTYPE_p_pn_string_t swig_types[57]
+#define SWIGTYPE_p_pn_subscription_t swig_types[58]
+#define SWIGTYPE_p_pn_terminus_t swig_types[59]
+#define SWIGTYPE_p_pn_terminus_type_t swig_types[60]
+#define SWIGTYPE_p_pn_transport_t swig_types[61]
+#define SWIGTYPE_p_pn_type_t swig_types[62]
+#define SWIGTYPE_p_pn_uuid_t swig_types[63]
+#define SWIGTYPE_p_short swig_types[64]
+#define SWIGTYPE_p_signed_char swig_types[65]
+#define SWIGTYPE_p_uintptr_t swig_types[66]
+#define SWIGTYPE_p_unsigned_char swig_types[67]
+#define SWIGTYPE_p_unsigned_int swig_types[68]
+#define SWIGTYPE_p_unsigned_long swig_types[69]
+#define SWIGTYPE_p_unsigned_long_long swig_types[70]
+#define SWIGTYPE_p_unsigned_short swig_types[71]
+#define SWIGTYPE_p_void swig_types[72]
+static swig_type_info *swig_types[74];
+static swig_module_info swig_module = {swig_types, 73, 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) -------- */
@@ -2232,94 +2240,117 @@
}
return res;
}
+SWIGINTERN int
+SWIG_AsVal_bool (VALUE obj, bool *val)
+{
+ if (obj == Qtrue) {
+ if (val) *val = true;
+ return SWIG_OK;
+ } else if (obj == Qfalse) {
+ if (val) *val = false;
+ return SWIG_OK;
+ } else {
+ int res = 0;
+ if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
+ if (val) *val = res ? true : false;
+ return SWIG_OK;
+ }
+ }
+ return SWIG_TypeError;
+}
+
+
+SWIGINTERNINLINE VALUE
+SWIG_From_long_SS_long (long long value)
+{
+ return LL2NUM(value);
+}
+
+
+SWIGINTERNINLINE VALUE
+SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
+{
+ return ULL2NUM(value);
+}
+
+
/*@SWIG:/usr/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
-SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE *args)
+SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
{
VALUE obj = args[0];
VALUE type = TYPE(obj);
long long *res = (long long *)(args[1]);
- *res = type == T_FIXNUM ? NUM2LL(obj) : rb_big2ll(obj);
+ *res = type == T_FIXNUM ? NUM2ULL(obj) : rb_big2ull(obj);
return obj;
}
/*@SWIG@*/
SWIGINTERN int
-SWIG_AsVal_long_SS_long (VALUE obj, long long *val)
-{
+SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val)
+{
VALUE type = TYPE(obj);
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
- long long v;
+ unsigned long long v;
VALUE a[2];
a[0] = obj;
a[1] = (VALUE)(&v);
- if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
+ if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
if (val) *val = v;
return SWIG_OK;
}
}
return SWIG_TypeError;
}
-SWIGINTERNINLINE VALUE
-SWIG_From_long_SS_long (long long value)
-{
- return LL2NUM(value);
+SWIGINTERNINLINE VALUE
+SWIG_From_unsigned_SS_short (unsigned short value)
+{
+ return SWIG_From_unsigned_SS_long (value);
}
-SWIGINTERNINLINE VALUE
-SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
-{
- return ULL2NUM(value);
-}
-
-
SWIGINTERN int
-SWIG_AsVal_bool (VALUE obj, bool *val)
+SWIG_AsVal_unsigned_SS_short (VALUE obj, unsigned short *val)
{
- if (obj == Qtrue) {
- if (val) *val = true;
- return SWIG_OK;
- } else if (obj == Qfalse) {
- if (val) *val = false;
- return SWIG_OK;
- } else {
- int res = 0;
- if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
- if (val) *val = res ? true : false;
- return SWIG_OK;
+ unsigned long v;
+ int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
+ if (SWIG_IsOK(res)) {
+ if ((v > USHRT_MAX)) {
+ return SWIG_OverflowError;
+ } else {
+ if (val) *val = (unsigned short)(v);
}
}
- return SWIG_TypeError;
+ return res;
}
/*@SWIG:/usr/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
-SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
+SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE *args)
{
VALUE obj = args[0];
VALUE type = TYPE(obj);
long long *res = (long long *)(args[1]);
- *res = type == T_FIXNUM ? NUM2ULL(obj) : rb_big2ull(obj);
+ *res = type == T_FIXNUM ? NUM2LL(obj) : rb_big2ll(obj);
return obj;
}
/*@SWIG@*/
SWIGINTERN int
-SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val)
-{
+SWIG_AsVal_long_SS_long (VALUE obj, long long *val)
+{
VALUE type = TYPE(obj);
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
- unsigned long long v;
+ long long v;
VALUE a[2];
a[0] = obj;
a[1] = (VALUE)(&v);
- if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
+ if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
if (val) *val = v;
return SWIG_OK;
}
}
return SWIG_TypeError;
@@ -2393,33 +2424,10 @@
return SWIG_From_long (value);
}
SWIGINTERN int
-SWIG_AsVal_unsigned_SS_short (VALUE obj, unsigned short *val)
-{
- unsigned long v;
- int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
- if (SWIG_IsOK(res)) {
- if ((v > USHRT_MAX)) {
- return SWIG_OverflowError;
- } else {
- if (val) *val = (unsigned short)(v);
- }
- }
- return res;
-}
-
-
-SWIGINTERNINLINE VALUE
-SWIG_From_unsigned_SS_short (unsigned short value)
-{
- return SWIG_From_unsigned_SS_long (value);
-}
-
-
-SWIGINTERN int
SWIG_AsVal_short (VALUE obj, short *val)
{
long v;
int res = SWIG_AsVal_long (obj, &v);
if (SWIG_IsOK(res)) {
@@ -4537,10 +4545,60 @@
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_list_clear(int argc, VALUE *argv, VALUE self) {
+ pn_list_t *arg1 = (pn_list_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_clear", 1, argv[0] ));
+ }
+ arg1 = (pn_list_t *)(argp1);
+ pn_list_clear(arg1);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_list_iterator(int argc, VALUE *argv, VALUE self) {
+ pn_list_t *arg1 = (pn_list_t *) 0 ;
+ pn_iterator_t *arg2 = (pn_iterator_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ void *argp2 = 0 ;
+ int res2 = 0 ;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_iterator", 1, argv[0] ));
+ }
+ arg1 = (pn_list_t *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_iterator_t, 0 | 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_iterator_t *","pn_list_iterator", 2, argv[1] ));
+ }
+ arg2 = (pn_iterator_t *)(argp2);
+ pn_list_iterator(arg1,arg2);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_map(int argc, VALUE *argv, VALUE self) {
size_t arg1 ;
float arg2 ;
int arg3 ;
size_t val1 ;
@@ -5610,11 +5668,90 @@
fail:
return Qnil;
}
+SWIGINTERN VALUE
+_wrap_pn_iterator(int argc, VALUE *argv, VALUE self) {
+ pn_iterator_t *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 0) || (argc > 0)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
+ }
+ result = (pn_iterator_t *)pn_iterator();
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_iterator_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+SWIGINTERN VALUE
+_wrap_pn_iterator_start(int argc, VALUE *argv, VALUE self) {
+ pn_iterator_t *arg1 = (pn_iterator_t *) 0 ;
+ pn_iterator_next_t arg2 = (pn_iterator_next_t) 0 ;
+ size_t arg3 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ size_t val3 ;
+ int ecode3 = 0 ;
+ void *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 3) || (argc > 3)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_iterator_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_iterator_t *","pn_iterator_start", 1, argv[0] ));
+ }
+ arg1 = (pn_iterator_t *)(argp1);
+ {
+ int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_void__p_void);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "pn_iterator_next_t","pn_iterator_start", 2, argv[1] ));
+ }
+ }
+ ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
+ if (!SWIG_IsOK(ecode3)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_iterator_start", 3, argv[2] ));
+ }
+ arg3 = (size_t)(val3);
+ result = (void *)pn_iterator_start(arg1,arg2,arg3);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_iterator_next(int argc, VALUE *argv, VALUE self) {
+ pn_iterator_t *arg1 = (pn_iterator_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ void *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_iterator_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_iterator_t *","pn_iterator_next", 1, argv[0] ));
+ }
+ arg1 = (pn_iterator_t *)(argp1);
+ result = (void *)pn_iterator_next(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+
static int check_error(int x) {
static int values[] = { PN_EOS,PN_ERR,PN_OVERFLOW,PN_UNDERFLOW,PN_STATE_ERR,PN_ARG_ERR,PN_TIMEOUT };
static int size = sizeof(values);
int i,j;
for (i = 0, j = 0; i < size; i+=sizeof(int),j++) {
@@ -5872,2331 +6009,1847 @@
fail:
return Qnil;
}
-static swig_class SwigClassPn_delivery_tag_t;
-
-
-/*
- Document-method: Cproton::pn_delivery_tag_t.size
-
- call-seq:
- size -> size_t
-
-Size or Length of the pn_delivery_tag_t.
-*/
-
-/*
- Document-method: Cproton::pn_delivery_tag_t.size=
-
- call-seq:
- size=(x) -> size_t
-
-Size or Length of the pn_delivery_tag_t.
-*/
SWIGINTERN VALUE
-_wrap_pn_delivery_tag_t_size_set(int argc, VALUE *argv, VALUE self) {
- struct pn_delivery_tag_t *arg1 = (struct pn_delivery_tag_t *) 0 ;
- size_t arg2 ;
+_wrap_pn_error_copy(int argc, VALUE *argv, VALUE self) {
+ pn_error_t *arg1 = (pn_error_t *) 0 ;
+ pn_error_t *arg2 = (pn_error_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- size_t val2 ;
- int ecode2 = 0 ;
+ void *argp2 = 0 ;
+ int res2 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_delivery_tag_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_error_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct pn_delivery_tag_t *","size", 1, self ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_error_t *","pn_error_copy", 1, argv[0] ));
}
- arg1 = (struct pn_delivery_tag_t *)(argp1);
- ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","size", 2, argv[0] ));
- }
- arg2 = (size_t)(val2);
- if (arg1) (arg1)->size = arg2;
- return Qnil;
+ arg1 = (pn_error_t *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_error_t, 0 | 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_error_t *","pn_error_copy", 2, argv[1] ));
+ }
+ arg2 = (pn_error_t *)(argp2);
+ result = (int)pn_error_copy(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_delivery_tag_t_size_get(int argc, VALUE *argv, VALUE self) {
- struct pn_delivery_tag_t *arg1 = (struct pn_delivery_tag_t *) 0 ;
+_wrap_pn_condition_is_set(int argc, VALUE *argv, VALUE self) {
+ pn_condition_t *arg1 = (pn_condition_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- size_t result;
+ bool result;
VALUE vresult = Qnil;
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_delivery_tag_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct pn_delivery_tag_t *","size", 1, self ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_is_set", 1, argv[0] ));
}
- arg1 = (struct pn_delivery_tag_t *)(argp1);
- result = (size_t) ((arg1)->size);
- vresult = SWIG_From_size_t((size_t)(result));
+ arg1 = (pn_condition_t *)(argp1);
+ result = (bool)pn_condition_is_set(arg1);
+ vresult = SWIG_From_bool((bool)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_delivery_tag_t_bytes_set(int argc, VALUE *argv, VALUE self) {
- struct pn_delivery_tag_t *arg1 = (struct pn_delivery_tag_t *) 0 ;
- char *arg2 = (char *) 0 ;
+_wrap_pn_condition_clear(int argc, VALUE *argv, VALUE self) {
+ pn_condition_t *arg1 = (pn_condition_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_delivery_tag_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct pn_delivery_tag_t *","bytes", 1, self ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_clear", 1, argv[0] ));
}
- arg1 = (struct pn_delivery_tag_t *)(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","bytes", 2, argv[0] ));
- }
- arg2 = (char *)(buf2);
- if (arg2) {
- size_t size = strlen((const char *)((const char *)(arg2))) + 1;
- arg1->bytes = (char const *)(char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
- } else {
- arg1->bytes = 0;
- }
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ arg1 = (pn_condition_t *)(argp1);
+ pn_condition_clear(arg1);
return Qnil;
fail:
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_delivery_tag_t_bytes_get(int argc, VALUE *argv, VALUE self) {
- struct pn_delivery_tag_t *arg1 = (struct pn_delivery_tag_t *) 0 ;
+_wrap_pn_condition_get_name(int argc, VALUE *argv, VALUE self) {
+ pn_condition_t *arg1 = (pn_condition_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
char *result = 0 ;
VALUE vresult = Qnil;
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_delivery_tag_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct pn_delivery_tag_t *","bytes", 1, self ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_get_name", 1, argv[0] ));
}
- arg1 = (struct pn_delivery_tag_t *)(argp1);
- result = (char *) ((arg1)->bytes);
+ arg1 = (pn_condition_t *)(argp1);
+ result = (char *)pn_condition_get_name(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
-#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
-_wrap_pn_delivery_tag_t_allocate(VALUE self) {
-#else
- SWIGINTERN VALUE
- _wrap_pn_delivery_tag_t_allocate(int argc, VALUE *argv, VALUE self) {
-#endif
-
-
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_pn_delivery_tag_t);
-#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
- rb_obj_call_init(vresult, argc, argv);
-#endif
- return vresult;
- }
-
-
-SWIGINTERN VALUE
-_wrap_new_pn_delivery_tag_t(int argc, VALUE *argv, VALUE self) {
- struct pn_delivery_tag_t *result = 0 ;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- result = (struct pn_delivery_tag_t *)calloc(1, sizeof(struct pn_delivery_tag_t));
- DATA_PTR(self) = result;
- return self;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN void
-free_pn_delivery_tag_t(struct pn_delivery_tag_t *arg1) {
- free((char *) arg1);
-}
-
-SWIGINTERN VALUE
-_wrap_pn_connection(int argc, VALUE *argv, VALUE self) {
- pn_connection_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- result = (pn_connection_t *)pn_connection();
- SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
-
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_connection_state(int argc, VALUE *argv, VALUE self) {
- pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+_wrap_pn_condition_set_name(int argc, VALUE *argv, VALUE self) {
+ pn_condition_t *arg1 = (pn_condition_t *) 0 ;
+ char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_state_t result;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
+ int result;
VALUE vresult = Qnil;
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_state", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_set_name", 1, argv[0] ));
}
- arg1 = (pn_connection_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- result = (pn_state_t)pn_connection_state(arg1);
+ arg1 = (pn_condition_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_condition_set_name", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ result = (int)pn_condition_set_name(arg1,(char const *)arg2);
vresult = SWIG_From_int((int)(result));
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_error(int argc, VALUE *argv, VALUE self) {
- pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+_wrap_pn_condition_get_description(int argc, VALUE *argv, VALUE self) {
+ pn_condition_t *arg1 = (pn_condition_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_error_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_error", 1, argv[0] ));
- }
- arg1 = (pn_connection_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- result = (pn_error_t *)pn_connection_error(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_connection_get_container(int argc, VALUE *argv, VALUE self) {
- pn_connection_t *arg1 = (pn_connection_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
char *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_get_container", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_get_description", 1, argv[0] ));
}
- arg1 = (pn_connection_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- result = (char *)pn_connection_get_container(arg1);
+ arg1 = (pn_condition_t *)(argp1);
+ result = (char *)pn_condition_get_description(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_set_container(int argc, VALUE *argv, VALUE self) {
- pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+_wrap_pn_condition_set_description(int argc, VALUE *argv, VALUE self) {
+ pn_condition_t *arg1 = (pn_condition_t *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_container", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_set_description", 1, argv[0] ));
}
- arg1 = (pn_connection_t *)(argp1);
+ arg1 = (pn_condition_t *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_set_container", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_condition_set_description", 2, argv[1] ));
}
arg2 = (char *)(buf2);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- pn_connection_set_container(arg1,(char const *)arg2);
+ result = (int)pn_condition_set_description(arg1,(char const *)arg2);
+ vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
- return Qnil;
+ return vresult;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_get_hostname(int argc, VALUE *argv, VALUE self) {
- pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+_wrap_pn_condition_info(int argc, VALUE *argv, VALUE self) {
+ pn_condition_t *arg1 = (pn_condition_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- char *result = 0 ;
+ pn_data_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_get_hostname", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_info", 1, argv[0] ));
}
- arg1 = (pn_connection_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- result = (char *)pn_connection_get_hostname(arg1);
- vresult = SWIG_FromCharPtr((const char *)result);
+ arg1 = (pn_condition_t *)(argp1);
+ result = (pn_data_t *)pn_condition_info(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_set_hostname(int argc, VALUE *argv, VALUE self) {
- pn_connection_t *arg1 = (pn_connection_t *) 0 ;
- char *arg2 = (char *) 0 ;
+_wrap_pn_condition_is_redirect(int argc, VALUE *argv, VALUE self) {
+ pn_condition_t *arg1 = (pn_condition_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
+ bool result;
+ VALUE vresult = Qnil;
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ if ((argc < 1) || (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 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_hostname", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_is_redirect", 1, argv[0] ));
}
- arg1 = (pn_connection_t *)(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_set_hostname", 2, argv[1] ));
- }
- arg2 = (char *)(buf2);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- pn_connection_set_hostname(arg1,(char const *)arg2);
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
- return Qnil;
+ arg1 = (pn_condition_t *)(argp1);
+ result = (bool)pn_condition_is_redirect(arg1);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
fail:
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_remote_container(int argc, VALUE *argv, VALUE self) {
- pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+_wrap_pn_condition_redirect_host(int argc, VALUE *argv, VALUE self) {
+ pn_condition_t *arg1 = (pn_condition_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
char *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_container", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_redirect_host", 1, argv[0] ));
}
- arg1 = (pn_connection_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- result = (char *)pn_connection_remote_container(arg1);
+ arg1 = (pn_condition_t *)(argp1);
+ result = (char *)pn_condition_redirect_host(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_remote_hostname(int argc, VALUE *argv, VALUE self) {
- pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+_wrap_pn_condition_redirect_port(int argc, VALUE *argv, VALUE self) {
+ pn_condition_t *arg1 = (pn_condition_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- char *result = 0 ;
+ int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_hostname", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_redirect_port", 1, argv[0] ));
}
- arg1 = (pn_connection_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- result = (char *)pn_connection_remote_hostname(arg1);
- vresult = SWIG_FromCharPtr((const char *)result);
+ arg1 = (pn_condition_t *)(argp1);
+ result = (int)pn_condition_redirect_port(arg1);
+ vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_offered_capabilities(int argc, VALUE *argv, VALUE self) {
- pn_connection_t *arg1 = (pn_connection_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_data_t *result = 0 ;
+_wrap_pn_connection(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *result = 0 ;
VALUE vresult = Qnil;
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ if ((argc < 0) || (argc > 0)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_offered_capabilities", 1, argv[0] ));
- }
- arg1 = (pn_connection_t *)(argp1);
- result = (pn_data_t *)pn_connection_offered_capabilities(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
+ result = (pn_connection_t *)pn_connection();
+ SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
+
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_desired_capabilities(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_connection_free(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_data_t *result = 0 ;
- VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_desired_capabilities", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_free", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
- result = (pn_data_t *)pn_connection_desired_capabilities(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
- return vresult;
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ pn_connection_free(arg1);
+ return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_properties(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_connection_error(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_data_t *result = 0 ;
+ pn_error_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_properties", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_error", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
- result = (pn_data_t *)pn_connection_properties(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (pn_error_t *)pn_connection_error(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_remote_offered_capabilities(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_connection_collect(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+ pn_collector_t *arg2 = (pn_collector_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_data_t *result = 0 ;
- VALUE vresult = Qnil;
+ void *argp2 = 0 ;
+ int res2 = 0 ;
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_offered_capabilities", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_collect", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
- result = (pn_data_t *)pn_connection_remote_offered_capabilities(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
- return vresult;
+ res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_collector_t, 0 | 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_collector_t *","pn_connection_collect", 2, argv[1] ));
+ }
+ arg2 = (pn_collector_t *)(argp2);
+ pn_connection_collect(arg1,arg2);
+ return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_remote_desired_capabilities(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_connection_get_context(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_data_t *result = 0 ;
+ void *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_desired_capabilities", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_get_context", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
- result = (pn_data_t *)pn_connection_remote_desired_capabilities(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
+ result = (void *)pn_connection_get_context(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_remote_properties(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_connection_set_context(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+ void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_data_t *result = 0 ;
- VALUE vresult = Qnil;
+ int res2 ;
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_properties", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_context", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
- result = (pn_data_t *)pn_connection_remote_properties(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
- return vresult;
+ res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_connection_set_context", 2, argv[1] ));
+ }
+ pn_connection_set_context(arg1,arg2);
+ return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_work_head(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_connection_state(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_delivery_t *result = 0 ;
+ pn_state_t result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_work_head", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_state", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- result = (pn_delivery_t *)pn_work_head(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 );
+ result = (pn_state_t)pn_connection_state(arg1);
+ vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_work_next(int argc, VALUE *argv, VALUE self) {
- pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
+_wrap_pn_connection_open(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_delivery_t *result = 0 ;
- VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 );
+ 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_delivery_t *","pn_work_next", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_open", 1, argv[0] ));
}
- arg1 = (pn_delivery_t *)(argp1);
+ arg1 = (pn_connection_t *)(argp1);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- result = (pn_delivery_t *)pn_work_next(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 );
- return vresult;
+ pn_connection_open(arg1);
+ return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_connection_close(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_session_t *result = 0 ;
- VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_session", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_close", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- result = (pn_session_t *)pn_session(arg1);
- SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
-
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 | 0 );
- return vresult;
+ pn_connection_close(arg1);
+ return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session_get_incoming_capacity(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
+_wrap_pn_connection_reset(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- size_t result;
- VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
+ 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_session_t *","pn_session_get_incoming_capacity", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_reset", 1, argv[0] ));
}
- arg1 = (pn_session_t *)(argp1);
- result = (size_t)pn_session_get_incoming_capacity(arg1);
- vresult = SWIG_From_size_t((size_t)(result));
- return vresult;
+ arg1 = (pn_connection_t *)(argp1);
+ pn_connection_reset(arg1);
+ return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session_set_incoming_capacity(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
- size_t arg2 ;
+_wrap_pn_connection_condition(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- size_t val2 ;
- int ecode2 = 0 ;
+ pn_condition_t *result = 0 ;
+ VALUE vresult = Qnil;
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
+ 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_session_t *","pn_session_set_incoming_capacity", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_condition", 1, argv[0] ));
}
- arg1 = (pn_session_t *)(argp1);
- ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_session_set_incoming_capacity", 2, argv[1] ));
- }
- arg2 = (size_t)(val2);
- pn_session_set_incoming_capacity(arg1,arg2);
- return Qnil;
+ arg1 = (pn_connection_t *)(argp1);
+ result = (pn_condition_t *)pn_connection_condition(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session_outgoing_bytes(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
+_wrap_pn_connection_remote_condition(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- size_t result;
+ pn_condition_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
+ 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_session_t *","pn_session_outgoing_bytes", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_condition", 1, argv[0] ));
}
- arg1 = (pn_session_t *)(argp1);
- result = (size_t)pn_session_outgoing_bytes(arg1);
- vresult = SWIG_From_size_t((size_t)(result));
+ arg1 = (pn_connection_t *)(argp1);
+ result = (pn_condition_t *)pn_connection_remote_condition(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session_incoming_bytes(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
+_wrap_pn_connection_get_container(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- size_t result;
+ char *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
+ 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_session_t *","pn_session_incoming_bytes", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_get_container", 1, argv[0] ));
}
- arg1 = (pn_session_t *)(argp1);
- result = (size_t)pn_session_incoming_bytes(arg1);
- vresult = SWIG_From_size_t((size_t)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_transport(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *result = 0 ;
- VALUE vresult = Qnil;
+ arg1 = (pn_connection_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- result = (pn_transport_t *)pn_transport();
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ result = (char *)pn_connection_get_container(arg1);
+ vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_bind(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
- pn_connection_t *arg2 = (pn_connection_t *) 0 ;
+_wrap_pn_connection_set_container(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+ char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- int result;
- VALUE vresult = Qnil;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ 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_transport_t *","pn_transport_bind", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_container", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_connection_t, 0 | 0 );
+ arg1 = (pn_connection_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_connection_t *","pn_transport_bind", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_set_container", 2, argv[1] ));
}
- arg2 = (pn_connection_t *)(argp2);
- result = (int)pn_transport_bind(arg1,arg2);
- vresult = SWIG_From_int((int)(result));
- return vresult;
+ arg2 = (char *)(buf2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ pn_connection_set_container(arg1,(char const *)arg2);
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return Qnil;
fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_unbind(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_connection_get_hostname(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int result;
+ char *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ 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_transport_t *","pn_transport_unbind", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_get_hostname", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- result = (int)pn_transport_unbind(arg1);
- vresult = SWIG_From_int((int)(result));
+ arg1 = (pn_connection_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (char *)pn_connection_get_hostname(arg1);
+ vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session_head(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_connection_set_hostname(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
- pn_state_t arg2 ;
+ char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- pn_session_t *result = 0 ;
- VALUE vresult = Qnil;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_session_head", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_hostname", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_state_t","pn_session_head", 2, argv[1] ));
- }
- arg2 = (pn_state_t)(val2);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_set_hostname", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- result = (pn_session_t *)pn_session_head(arg1,arg2);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 | 0 );
- return vresult;
+ pn_connection_set_hostname(arg1,(char const *)arg2);
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return Qnil;
fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session_next(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
- pn_state_t arg2 ;
+_wrap_pn_connection_remote_container(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- pn_session_t *result = 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;
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
+ 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_session_t *","pn_session_next", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_container", 1, argv[0] ));
}
- arg1 = (pn_session_t *)(argp1);
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_state_t","pn_session_next", 2, argv[1] ));
- }
- arg2 = (pn_state_t)(val2);
+ arg1 = (pn_connection_t *)(argp1);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- result = (pn_session_t *)pn_session_next(arg1,arg2);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 | 0 );
+ result = (char *)pn_connection_remote_container(arg1);
+ vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_head(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_connection_remote_hostname(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
- pn_state_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- pn_link_t *result = 0 ;
+ char *result = 0 ;
VALUE vresult = Qnil;
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_link_head", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_hostname", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_state_t","pn_link_head", 2, argv[1] ));
- }
- arg2 = (pn_state_t)(val2);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- result = (pn_link_t *)pn_link_head(arg1,arg2);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_link_t, 0 | 0 );
+ result = (char *)pn_connection_remote_hostname(arg1);
+ vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_next(int argc, VALUE *argv, VALUE self) {
- pn_link_t *arg1 = (pn_link_t *) 0 ;
- pn_state_t arg2 ;
+_wrap_pn_connection_offered_capabilities(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- pn_link_t *result = 0 ;
+ pn_data_t *result = 0 ;
VALUE vresult = Qnil;
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
+ 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_link_t *","pn_link_next", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_offered_capabilities", 1, argv[0] ));
}
- arg1 = (pn_link_t *)(argp1);
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_state_t","pn_link_next", 2, argv[1] ));
- }
- arg2 = (pn_state_t)(val2);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- result = (pn_link_t *)pn_link_next(arg1,arg2);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_link_t, 0 | 0 );
+ arg1 = (pn_connection_t *)(argp1);
+ result = (pn_data_t *)pn_connection_offered_capabilities(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_reset(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_connection_desired_capabilities(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ pn_data_t *result = 0 ;
+ VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_reset", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_desired_capabilities", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
- pn_connection_reset(arg1);
- return Qnil;
+ result = (pn_data_t *)pn_connection_desired_capabilities(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
+ return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_open(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_connection_properties(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ pn_data_t *result = 0 ;
+ VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_open", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_properties", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- pn_connection_open(arg1);
- return Qnil;
+ result = (pn_data_t *)pn_connection_properties(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
+ return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_close(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_connection_remote_offered_capabilities(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ pn_data_t *result = 0 ;
+ VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_close", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_offered_capabilities", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- pn_connection_close(arg1);
- return Qnil;
+ result = (pn_data_t *)pn_connection_remote_offered_capabilities(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
+ return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_free(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_connection_remote_desired_capabilities(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ pn_data_t *result = 0 ;
+ VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_free", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_desired_capabilities", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- pn_connection_free(arg1);
- return Qnil;
+ result = (pn_data_t *)pn_connection_remote_desired_capabilities(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
+ return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_get_context(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_connection_remote_properties(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- void *result = 0 ;
+ pn_data_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_get_context", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_properties", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
- result = (void *)pn_connection_get_context(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ result = (pn_data_t *)pn_connection_remote_properties(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_set_context(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_connection_transport(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
- void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int res2 ;
+ pn_transport_t *result = 0 ;
+ VALUE vresult = Qnil;
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_context", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_transport", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_connection_set_context", 2, argv[1] ));
- }
- pn_connection_set_context(arg1,arg2);
- return Qnil;
+ result = (pn_transport_t *)pn_connection_transport(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_error(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_session(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_error_t *result = 0 ;
+ pn_session_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ 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_transport_t *","pn_transport_error", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_session", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
+ arg1 = (pn_connection_t *)(argp1);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- result = (pn_error_t *)pn_transport_error(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 );
+ result = (pn_session_t *)pn_session(arg1);
+ SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
+
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_capacity(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_session_free(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- ssize_t result;
- VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_capacity", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_free", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- result = (ssize_t)pn_transport_capacity(arg1);
- vresult = SWIG_From_int((int)(result));
- return vresult;
+ arg1 = (pn_session_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ pn_session_free(arg1);
+ return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_tail(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_session_get_context(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- char *result = 0 ;
+ void *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_tail", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_get_context", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- result = (char *)pn_transport_tail(arg1);
- vresult = SWIG_FromCharPtr((const char *)result);
+ arg1 = (pn_session_t *)(argp1);
+ result = (void *)pn_session_get_context(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_push(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
- char *arg2 = (char *) 0 ;
- size_t arg3 ;
+_wrap_pn_session_set_context(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
+ void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- size_t val3 ;
- int ecode3 = 0 ;
- int result;
- VALUE vresult = Qnil;
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_push", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_set_context", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ arg1 = (pn_session_t *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_transport_push", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_session_set_context", 2, argv[1] ));
}
- arg2 = (char *)(buf2);
- ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_transport_push", 3, argv[2] ));
- }
- arg3 = (size_t)(val3);
- result = (int)pn_transport_push(arg1,(char const *)arg2,arg3);
- vresult = SWIG_From_int((int)(result));
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
- return vresult;
+ pn_session_set_context(arg1,arg2);
+ return Qnil;
fail:
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_process(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
- size_t arg2 ;
+_wrap_pn_session_state(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- size_t val2 ;
- int ecode2 = 0 ;
- int result;
+ pn_state_t result;
VALUE vresult = Qnil;
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_process", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_state", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_transport_process", 2, argv[1] ));
- }
- arg2 = (size_t)(val2);
- result = (int)pn_transport_process(arg1,arg2);
+ arg1 = (pn_session_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (pn_state_t)pn_session_state(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_close_tail(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_session_error(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int result;
+ pn_error_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_close_tail", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_error", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- result = (int)pn_transport_close_tail(arg1);
- vresult = SWIG_From_int((int)(result));
+ arg1 = (pn_session_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (pn_error_t *)pn_session_error(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_pending(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_session_condition(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- ssize_t result;
+ pn_condition_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_pending", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_condition", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- result = (ssize_t)pn_transport_pending(arg1);
- vresult = SWIG_From_int((int)(result));
+ arg1 = (pn_session_t *)(argp1);
+ result = (pn_condition_t *)pn_session_condition(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_head(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_session_remote_condition(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- char *result = 0 ;
+ pn_condition_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_head", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_remote_condition", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- result = (char *)pn_transport_head(arg1);
- vresult = SWIG_FromCharPtr((const char *)result);
+ arg1 = (pn_session_t *)(argp1);
+ result = (pn_condition_t *)pn_session_remote_condition(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_peek(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
- char *arg2 = (char *) 0 ;
- size_t arg3 ;
+_wrap_pn_session_connection(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- size_t val3 ;
- int ecode3 = 0 ;
- int result;
+ pn_connection_t *result = 0 ;
VALUE vresult = Qnil;
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_peek", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_connection", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_transport_peek", 2, argv[1] ));
- }
- arg2 = (char *)(buf2);
- ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_transport_peek", 3, argv[2] ));
- }
- arg3 = (size_t)(val3);
- result = (int)pn_transport_peek(arg1,arg2,arg3);
- vresult = SWIG_From_int((int)(result));
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ arg1 = (pn_session_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (pn_connection_t *)pn_session_connection(arg1);
+ SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
+
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 | 0 );
return vresult;
fail:
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_pop(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
- size_t arg2 ;
+_wrap_pn_session_open(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- size_t val2 ;
- int ecode2 = 0 ;
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_pop", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_open", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_transport_pop", 2, argv[1] ));
- }
- arg2 = (size_t)(val2);
- pn_transport_pop(arg1,arg2);
+ arg1 = (pn_session_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ pn_session_open(arg1);
return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_close_head(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_session_close(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_close_head", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_close", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- result = (int)pn_transport_close_head(arg1);
- vresult = SWIG_From_int((int)(result));
- return vresult;
+ arg1 = (pn_session_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ pn_session_close(arg1);
+ return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_tick(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
- pn_timestamp_t arg2 ;
+_wrap_pn_session_get_incoming_capacity(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- long long val2 ;
- int ecode2 = 0 ;
- pn_timestamp_t result;
+ size_t result;
VALUE vresult = Qnil;
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_tick", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_get_incoming_capacity", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_timestamp_t","pn_transport_tick", 2, argv[1] ));
- }
- arg2 = (pn_timestamp_t)(val2);
- result = (pn_timestamp_t)pn_transport_tick(arg1,arg2);
- vresult = SWIG_From_long_SS_long((long long)(result));
+ arg1 = (pn_session_t *)(argp1);
+ result = (size_t)pn_session_get_incoming_capacity(arg1);
+ vresult = SWIG_From_size_t((size_t)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_trace(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
- pn_trace_t arg2 ;
+_wrap_pn_session_set_incoming_capacity(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
+ size_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int val2 ;
+ size_t val2 ;
int ecode2 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_trace", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_set_incoming_capacity", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
+ arg1 = (pn_session_t *)(argp1);
+ ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_trace_t","pn_transport_trace", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_session_set_incoming_capacity", 2, argv[1] ));
}
- arg2 = (pn_trace_t)(val2);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- pn_transport_trace(arg1,arg2);
+ arg2 = (size_t)(val2);
+ pn_session_set_incoming_capacity(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_set_tracer(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
- pn_tracer_t *arg2 = (pn_tracer_t *) 0 ;
+_wrap_pn_session_outgoing_bytes(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ size_t result;
+ VALUE vresult = Qnil;
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_tracer", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_outgoing_bytes", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- {
- int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void);
- if (!SWIG_IsOK(res)) {
- SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "pn_tracer_t *","pn_transport_set_tracer", 2, argv[1] ));
- }
- }
- pn_transport_set_tracer(arg1,arg2);
- return Qnil;
+ arg1 = (pn_session_t *)(argp1);
+ result = (size_t)pn_session_outgoing_bytes(arg1);
+ vresult = SWIG_From_size_t((size_t)(result));
+ return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_get_tracer(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_session_incoming_bytes(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_tracer_t *result = 0 ;
+ size_t result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_tracer", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_incoming_bytes", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- result = (pn_tracer_t *)pn_transport_get_tracer(arg1);
- vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void);
+ arg1 = (pn_session_t *)(argp1);
+ result = (size_t)pn_session_incoming_bytes(arg1);
+ vresult = SWIG_From_size_t((size_t)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_set_context(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
- void *arg2 = (void *) 0 ;
+_wrap_pn_session_head(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+ pn_state_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int res2 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ pn_session_t *result = 0 ;
+ VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ 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_transport_t *","pn_transport_set_context", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_session_head", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_transport_set_context", 2, argv[1] ));
- }
- pn_transport_set_context(arg1,arg2);
- return Qnil;
+ arg1 = (pn_connection_t *)(argp1);
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_state_t","pn_session_head", 2, argv[1] ));
+ }
+ arg2 = (pn_state_t)(val2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (pn_session_t *)pn_session_head(arg1,arg2);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 | 0 );
+ return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_get_context(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_session_next(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
+ pn_state_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
- void *result = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ pn_session_t *result = 0 ;
VALUE vresult = Qnil;
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_context", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_next", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- result = (void *)pn_transport_get_context(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ arg1 = (pn_session_t *)(argp1);
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_state_t","pn_session_next", 2, argv[1] ));
+ }
+ arg2 = (pn_state_t)(val2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (pn_session_t *)pn_session_next(arg1,arg2);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_log(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_sender(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
+ pn_link_t *result = 0 ;
+ VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_log", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_sender", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
+ arg1 = (pn_session_t *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_transport_log", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_sender", 2, argv[1] ));
}
arg2 = (char *)(buf2);
- pn_transport_log(arg1,(char const *)arg2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (pn_link_t *)pn_sender(arg1,(char const *)arg2);
+ SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
+
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_link_t, 0 | 0 );
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
- return Qnil;
+ return vresult;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_logf(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_receiver(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_t *) 0 ;
char *arg2 = (char *) 0 ;
- void *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
+ pn_link_t *result = 0 ;
+ VALUE vresult = Qnil;
- if (argc < 2) {
+ if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_logf", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_receiver", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
+ arg1 = (pn_session_t *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_transport_logf", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_receiver", 2, argv[1] ));
}
arg2 = (char *)(buf2);
- pn_transport_logf(arg1,(char const *)arg2,arg3);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (pn_link_t *)pn_receiver(arg1,(char const *)arg2);
+ SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
+
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_link_t, 0 | 0 );
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
- return Qnil;
+ return vresult;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_get_max_frame(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_link_free(int argc, VALUE *argv, VALUE self) {
+ pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- uint32_t result;
- VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_max_frame", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_free", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- result = (uint32_t)pn_transport_get_max_frame(arg1);
- vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_transport_set_max_frame(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
- uint32_t arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- unsigned long val2 ;
- int ecode2 = 0 ;
+ arg1 = (pn_link_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_max_frame", 1, argv[0] ));
- }
- arg1 = (pn_transport_t *)(argp1);
- ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","pn_transport_set_max_frame", 2, argv[1] ));
- }
- arg2 = (uint32_t)(val2);
- pn_transport_set_max_frame(arg1,arg2);
+ pn_link_free(arg1);
return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_get_remote_max_frame(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_link_get_context(int argc, VALUE *argv, VALUE self) {
+ pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- uint32_t result;
+ void *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_remote_max_frame", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_get_context", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- result = (uint32_t)pn_transport_get_remote_max_frame(arg1);
- vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ arg1 = (pn_link_t *)(argp1);
+ result = (void *)pn_link_get_context(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_get_idle_timeout(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_link_set_context(int argc, VALUE *argv, VALUE self) {
+ pn_link_t *arg1 = (pn_link_t *) 0 ;
+ void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_millis_t result;
- VALUE vresult = Qnil;
+ int res2 ;
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_idle_timeout", 1, argv[0] ));
- }
- arg1 = (pn_transport_t *)(argp1);
- result = (pn_millis_t)pn_transport_get_idle_timeout(arg1);
- vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_transport_set_idle_timeout(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
- pn_millis_t arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- unsigned long val2 ;
- int ecode2 = 0 ;
-
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_idle_timeout", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_set_context", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_millis_t","pn_transport_set_idle_timeout", 2, argv[1] ));
- }
- arg2 = (pn_millis_t)(val2);
- pn_transport_set_idle_timeout(arg1,arg2);
+ arg1 = (pn_link_t *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_link_set_context", 2, argv[1] ));
+ }
+ pn_link_set_context(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_get_remote_idle_timeout(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_link_name(int argc, VALUE *argv, VALUE self) {
+ pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_millis_t result;
+ char *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_remote_idle_timeout", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_name", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- result = (pn_millis_t)pn_transport_get_remote_idle_timeout(arg1);
- vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_transport_get_frames_output(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- uint64_t result;
- VALUE vresult = Qnil;
+ arg1 = (pn_link_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t const *","pn_transport_get_frames_output", 1, argv[0] ));
- }
- arg1 = (pn_transport_t *)(argp1);
- result = (uint64_t)pn_transport_get_frames_output((struct pn_transport_t const *)arg1);
- vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
+ result = (char *)pn_link_name(arg1);
+ vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_get_frames_input(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_link_is_sender(int argc, VALUE *argv, VALUE self) {
+ pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- uint64_t result;
+ bool result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t const *","pn_transport_get_frames_input", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_is_sender", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- result = (uint64_t)pn_transport_get_frames_input((struct pn_transport_t const *)arg1);
- vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
+ arg1 = (pn_link_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (bool)pn_link_is_sender(arg1);
+ vresult = SWIG_From_bool((bool)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_quiesced(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_link_is_receiver(int argc, VALUE *argv, VALUE self) {
+ pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_quiesced", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_is_receiver", 1, argv[0] ));
}
- arg1 = (pn_transport_t *)(argp1);
- result = (bool)pn_transport_quiesced(arg1);
+ arg1 = (pn_link_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (bool)pn_link_is_receiver(arg1);
vresult = SWIG_From_bool((bool)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_transport_free(int argc, VALUE *argv, VALUE self) {
- pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+_wrap_pn_link_state(int argc, VALUE *argv, VALUE self) {
+ pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_free", 1, argv[0] ));
- }
- arg1 = (pn_transport_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- pn_transport_free(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_session_state(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
pn_state_t result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_state", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_state", 1, argv[0] ));
}
- arg1 = (pn_session_t *)(argp1);
+ arg1 = (pn_link_t *)(argp1);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- result = (pn_state_t)pn_session_state(arg1);
+ result = (pn_state_t)pn_link_state(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session_error(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
+_wrap_pn_link_error(int argc, VALUE *argv, VALUE self) {
+ pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
pn_error_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_error", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_error", 1, argv[0] ));
}
- arg1 = (pn_session_t *)(argp1);
+ arg1 = (pn_link_t *)(argp1);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- result = (pn_error_t *)pn_session_error(arg1);
+ result = (pn_error_t *)pn_link_error(arg1);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session_connection(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
+_wrap_pn_link_condition(int argc, VALUE *argv, VALUE self) {
+ pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_connection_t *result = 0 ;
+ pn_condition_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_connection", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_condition", 1, argv[0] ));
}
- arg1 = (pn_session_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- result = (pn_connection_t *)pn_session_connection(arg1);
- SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
-
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 | 0 );
+ arg1 = (pn_link_t *)(argp1);
+ result = (pn_condition_t *)pn_link_condition(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session_open(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
+_wrap_pn_link_remote_condition(int argc, VALUE *argv, VALUE self) {
+ pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ pn_condition_t *result = 0 ;
+ VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_open", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_condition", 1, argv[0] ));
}
- arg1 = (pn_session_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- pn_session_open(arg1);
- return Qnil;
+ arg1 = (pn_link_t *)(argp1);
+ result = (pn_condition_t *)pn_link_remote_condition(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session_close(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
+_wrap_pn_link_session(int argc, VALUE *argv, VALUE self) {
+ pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ pn_session_t *result = 0 ;
+ VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_close", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_session", 1, argv[0] ));
}
- arg1 = (pn_session_t *)(argp1);
+ arg1 = (pn_link_t *)(argp1);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- pn_session_close(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_session_free(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
+ result = (pn_session_t *)pn_link_session(arg1);
+ SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_free", 1, argv[0] ));
- }
- arg1 = (pn_session_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- pn_session_free(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_session_get_context(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_get_context", 1, argv[0] ));
- }
- arg1 = (pn_session_t *)(argp1);
- result = (void *)pn_session_get_context(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session_set_context(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
- void *arg2 = (void *) 0 ;
+_wrap_pn_link_head(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+ pn_state_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int res2 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_set_context", 1, argv[0] ));
- }
- arg1 = (pn_session_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_session_set_context", 2, argv[1] ));
- }
- pn_session_set_context(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_sender(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
pn_link_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
+ 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_session_t *","pn_sender", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_link_head", 1, argv[0] ));
}
- arg1 = (pn_session_t *)(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_sender", 2, argv[1] ));
- }
- arg2 = (char *)(buf2);
+ arg1 = (pn_connection_t *)(argp1);
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_state_t","pn_link_head", 2, argv[1] ));
+ }
+ arg2 = (pn_state_t)(val2);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- result = (pn_link_t *)pn_sender(arg1,(char const *)arg2);
- SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
-
+ result = (pn_link_t *)pn_link_head(arg1,arg2);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_link_t, 0 | 0 );
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_receiver(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
- char *arg2 = (char *) 0 ;
+_wrap_pn_link_next(int argc, VALUE *argv, VALUE self) {
+ pn_link_t *arg1 = (pn_link_t *) 0 ;
+ pn_state_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
pn_link_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_receiver", 1, argv[0] ));
- }
- arg1 = (pn_session_t *)(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_receiver", 2, argv[1] ));
- }
- arg2 = (char *)(buf2);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- result = (pn_link_t *)pn_receiver(arg1,(char const *)arg2);
- SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
-
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_link_t, 0 | 0 );
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_link_name(int argc, VALUE *argv, VALUE self) {
- pn_link_t *arg1 = (pn_link_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_name", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_next", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_state_t","pn_link_next", 2, argv[1] ));
+ }
+ arg2 = (pn_state_t)(val2);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- result = (char *)pn_link_name(arg1);
- vresult = SWIG_FromCharPtr((const char *)result);
+ result = (pn_link_t *)pn_link_next(arg1,arg2);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_link_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_is_sender(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_open(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- bool result;
- VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_is_sender", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_open", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- result = (bool)pn_link_is_sender(arg1);
- vresult = SWIG_From_bool((bool)(result));
- return vresult;
-fail:
+ pn_link_open(arg1);
return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_link_is_receiver(int argc, VALUE *argv, VALUE self) {
- pn_link_t *arg1 = (pn_link_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_is_receiver", 1, argv[0] ));
- }
- arg1 = (pn_link_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- result = (bool)pn_link_is_receiver(arg1);
- vresult = SWIG_From_bool((bool)(result));
- return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_state(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_close(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_state_t result;
- VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_state", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_close", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- result = (pn_state_t)pn_link_state(arg1);
- vresult = SWIG_From_int((int)(result));
- return vresult;
-fail:
+ pn_link_close(arg1);
return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_link_error(int argc, VALUE *argv, VALUE self) {
- pn_link_t *arg1 = (pn_link_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_error_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_error", 1, argv[0] ));
- }
- arg1 = (pn_link_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- result = (pn_error_t *)pn_link_error(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 );
- return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_session(int argc, VALUE *argv, VALUE self) {
- pn_link_t *arg1 = (pn_link_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_session_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_session", 1, argv[0] ));
- }
- arg1 = (pn_link_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- result = (pn_session_t *)pn_link_session(arg1);
- SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
-
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
_wrap_pn_link_source(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
pn_terminus_t *result = 0 ;
@@ -8421,83 +8074,85 @@
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_available(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_get_drain(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int result;
+ bool result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_available", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_get_drain", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- result = (int)pn_link_available(arg1);
- vresult = SWIG_From_int((int)(result));
+ result = (bool)pn_link_get_drain(arg1);
+ vresult = SWIG_From_bool((bool)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_snd_settle_mode(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_drained(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_snd_settle_mode_t result;
+ int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_snd_settle_mode", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_drained", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- result = (pn_snd_settle_mode_t)pn_link_snd_settle_mode(arg1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (int)pn_link_drained(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_rcv_settle_mode(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_available(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_rcv_settle_mode_t result;
+ int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_rcv_settle_mode", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_available", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- result = (pn_rcv_settle_mode_t)pn_link_rcv_settle_mode(arg1);
+ result = (int)pn_link_available(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_remote_snd_settle_mode(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_snd_settle_mode(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
pn_snd_settle_mode_t result;
VALUE vresult = Qnil;
@@ -8505,23 +8160,23 @@
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_snd_settle_mode", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_snd_settle_mode", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- result = (pn_snd_settle_mode_t)pn_link_remote_snd_settle_mode(arg1);
+ result = (pn_snd_settle_mode_t)pn_link_snd_settle_mode(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_remote_rcv_settle_mode(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_rcv_settle_mode(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
pn_rcv_settle_mode_t result;
VALUE vresult = Qnil;
@@ -8529,14 +8184,14 @@
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_rcv_settle_mode", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_rcv_settle_mode", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- result = (pn_rcv_settle_mode_t)pn_link_remote_rcv_settle_mode(arg1);
+ result = (pn_rcv_settle_mode_t)pn_link_rcv_settle_mode(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
@@ -8599,232 +8254,136 @@
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_unsettled(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_remote_snd_settle_mode(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int result;
+ pn_snd_settle_mode_t result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_unsettled", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_snd_settle_mode", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- result = (int)pn_link_unsettled(arg1);
+ result = (pn_snd_settle_mode_t)pn_link_remote_snd_settle_mode(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_unsettled_head(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_remote_rcv_settle_mode(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_delivery_t *result = 0 ;
+ pn_rcv_settle_mode_t result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_unsettled_head", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_rcv_settle_mode", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- result = (pn_delivery_t *)pn_unsettled_head(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 );
+ result = (pn_rcv_settle_mode_t)pn_link_remote_rcv_settle_mode(arg1);
+ vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_unsettled_next(int argc, VALUE *argv, VALUE self) {
- pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
+_wrap_pn_link_unsettled(int argc, VALUE *argv, VALUE self) {
+ pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_delivery_t *result = 0 ;
+ 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_delivery_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_unsettled_next", 1, argv[0] ));
- }
- arg1 = (pn_delivery_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- result = (pn_delivery_t *)pn_unsettled_next(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_link_open(int argc, VALUE *argv, VALUE self) {
- pn_link_t *arg1 = (pn_link_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_open", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_unsettled", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- pn_link_open(arg1);
- return Qnil;
+ result = (int)pn_link_unsettled(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_close(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_unsettled_head(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ pn_delivery_t *result = 0 ;
+ VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_close", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_unsettled_head", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- pn_link_close(arg1);
- return Qnil;
+ result = (pn_delivery_t *)pn_unsettled_head(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 );
+ return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_free(int argc, VALUE *argv, VALUE self) {
- pn_link_t *arg1 = (pn_link_t *) 0 ;
+_wrap_pn_unsettled_next(int argc, VALUE *argv, VALUE self) {
+ pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ pn_delivery_t *result = 0 ;
+ VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_free", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_unsettled_next", 1, argv[0] ));
}
- arg1 = (pn_link_t *)(argp1);
+ arg1 = (pn_delivery_t *)(argp1);
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
- pn_link_free(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_link_get_context(int argc, VALUE *argv, VALUE self) {
- pn_link_t *arg1 = (pn_link_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_get_context", 1, argv[0] ));
- }
- arg1 = (pn_link_t *)(argp1);
- result = (void *)pn_link_get_context(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ result = (pn_delivery_t *)pn_unsettled_next(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_set_context(int argc, VALUE *argv, VALUE self) {
- pn_link_t *arg1 = (pn_link_t *) 0 ;
- void *arg2 = (void *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_set_context", 1, argv[0] ));
- }
- arg1 = (pn_link_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_link_set_context", 2, argv[1] ));
- }
- pn_link_set_context(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_link_get_drain(int argc, VALUE *argv, VALUE self) {
- pn_link_t *arg1 = (pn_link_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_get_drain", 1, argv[0] ));
- }
- arg1 = (pn_link_t *)(argp1);
- result = (bool)pn_link_get_drain(arg1);
- vresult = SWIG_From_bool((bool)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
_wrap_pn_link_offered(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -8850,36 +8409,10 @@
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_drained(int argc, VALUE *argv, VALUE self) {
- pn_link_t *arg1 = (pn_link_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_drained", 1, argv[0] ));
- }
- arg1 = (pn_link_t *)(argp1);
- SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
-
- result = (int)pn_link_drained(arg1);
- vresult = SWIG_From_int((int)(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
_wrap_pn_link_flow(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -9106,10 +8639,66 @@
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_terminus_get_distribution_mode(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_distribution_mode_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t const *","pn_terminus_get_distribution_mode", 1, argv[0] ));
+ }
+ arg1 = (pn_terminus_t *)(argp1);
+ result = (pn_distribution_mode_t)pn_terminus_get_distribution_mode((struct pn_terminus_t const *)arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_terminus_set_distribution_mode(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
+ pn_distribution_mode_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_set_distribution_mode", 1, argv[0] ));
+ }
+ arg1 = (pn_terminus_t *)(argp1);
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_distribution_mode_t","pn_terminus_set_distribution_mode", 2, argv[1] ));
+ }
+ arg2 = (pn_distribution_mode_t)(val2);
+ result = (int)pn_terminus_set_distribution_mode(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_terminus_get_durability(int argc, VALUE *argv, VALUE self) {
pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
pn_durability_t result;
@@ -9426,92 +9015,258 @@
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_terminus_get_distribution_mode(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_terminus_copy(int argc, VALUE *argv, VALUE self) {
pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
+ pn_terminus_t *arg2 = (pn_terminus_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_distribution_mode_t result;
+ void *argp2 = 0 ;
+ int res2 = 0 ;
+ int result;
VALUE vresult = Qnil;
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t const *","pn_terminus_get_distribution_mode", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_copy", 1, argv[0] ));
}
arg1 = (pn_terminus_t *)(argp1);
- result = (pn_distribution_mode_t)pn_terminus_get_distribution_mode((struct pn_terminus_t const *)arg1);
+ res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_terminus_t, 0 | 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_copy", 2, argv[1] ));
+ }
+ arg2 = (pn_terminus_t *)(argp2);
+ result = (int)pn_terminus_copy(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
+static swig_class SwigClassPn_delivery_tag_t;
+
+
+/*
+ Document-method: Cproton::pn_delivery_tag_t.size
+
+ call-seq:
+ size -> size_t
+
+Size or Length of the pn_delivery_tag_t.
+*/
+
+/*
+ Document-method: Cproton::pn_delivery_tag_t.size=
+
+ call-seq:
+ size=(x) -> size_t
+
+Size or Length of the pn_delivery_tag_t.
+*/
SWIGINTERN VALUE
-_wrap_pn_terminus_set_distribution_mode(int argc, VALUE *argv, VALUE self) {
- pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
- pn_distribution_mode_t arg2 ;
+_wrap_pn_delivery_tag_t_size_set(int argc, VALUE *argv, VALUE self) {
+ struct pn_delivery_tag_t *arg1 = (struct pn_delivery_tag_t *) 0 ;
+ size_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int val2 ;
+ size_t val2 ;
int ecode2 = 0 ;
- int result;
- VALUE vresult = Qnil;
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_delivery_tag_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_set_distribution_mode", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct pn_delivery_tag_t *","size", 1, self ));
}
- arg1 = (pn_terminus_t *)(argp1);
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
+ arg1 = (struct pn_delivery_tag_t *)(argp1);
+ ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_distribution_mode_t","pn_terminus_set_distribution_mode", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","size", 2, argv[0] ));
}
- arg2 = (pn_distribution_mode_t)(val2);
- result = (int)pn_terminus_set_distribution_mode(arg1,arg2);
- vresult = SWIG_From_int((int)(result));
+ arg2 = (size_t)(val2);
+ if (arg1) (arg1)->size = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_delivery_tag_t_size_get(int argc, VALUE *argv, VALUE self) {
+ struct pn_delivery_tag_t *arg1 = (struct pn_delivery_tag_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ size_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 0) || (argc > 0)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_delivery_tag_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct pn_delivery_tag_t *","size", 1, self ));
+ }
+ arg1 = (struct pn_delivery_tag_t *)(argp1);
+ result = (size_t) ((arg1)->size);
+ vresult = SWIG_From_size_t((size_t)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_terminus_copy(int argc, VALUE *argv, VALUE self) {
- pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
- pn_terminus_t *arg2 = (pn_terminus_t *) 0 ;
+_wrap_pn_delivery_tag_t_bytes_set(int argc, VALUE *argv, VALUE self) {
+ struct pn_delivery_tag_t *arg1 = (struct pn_delivery_tag_t *) 0 ;
+ char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- int result;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_delivery_tag_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct pn_delivery_tag_t *","bytes", 1, self ));
+ }
+ arg1 = (struct pn_delivery_tag_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","bytes", 2, argv[0] ));
+ }
+ arg2 = (char *)(buf2);
+ if (arg2) {
+ size_t size = strlen((const char *)((const char *)(arg2))) + 1;
+ arg1->bytes = (char const *)(char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
+ } else {
+ arg1->bytes = 0;
+ }
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return Qnil;
+fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_delivery_tag_t_bytes_get(int argc, VALUE *argv, VALUE self) {
+ struct pn_delivery_tag_t *arg1 = (struct pn_delivery_tag_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ char *result = 0 ;
VALUE vresult = Qnil;
+ if ((argc < 0) || (argc > 0)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_delivery_tag_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct pn_delivery_tag_t *","bytes", 1, self ));
+ }
+ arg1 = (struct pn_delivery_tag_t *)(argp1);
+ result = (char *) ((arg1)->bytes);
+ vresult = SWIG_FromCharPtr((const char *)result);
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
+SWIGINTERN VALUE
+_wrap_pn_delivery_tag_t_allocate(VALUE self) {
+#else
+ SWIGINTERN VALUE
+ _wrap_pn_delivery_tag_t_allocate(int argc, VALUE *argv, VALUE self) {
+#endif
+
+
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_pn_delivery_tag_t);
+#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
+ rb_obj_call_init(vresult, argc, argv);
+#endif
+ return vresult;
+ }
+
+
+SWIGINTERN VALUE
+_wrap_new_pn_delivery_tag_t(int argc, VALUE *argv, VALUE self) {
+ struct pn_delivery_tag_t *result = 0 ;
+
+ if ((argc < 0) || (argc > 0)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
+ }
+ result = (struct pn_delivery_tag_t *)calloc(1, sizeof(struct pn_delivery_tag_t));
+ DATA_PTR(self) = result;
+ return self;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN void
+free_pn_delivery_tag_t(struct pn_delivery_tag_t *arg1) {
+ free((char *) arg1);
+}
+
+SWIGINTERN VALUE
+_wrap_pn_delivery_get_context(int argc, VALUE *argv, VALUE self) {
+ pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ void *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_get_context", 1, argv[0] ));
+ }
+ arg1 = (pn_delivery_t *)(argp1);
+ result = (void *)pn_delivery_get_context(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_delivery_set_context(int argc, VALUE *argv, VALUE self) {
+ pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
+ void *arg2 = (void *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_copy", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_set_context", 1, argv[0] ));
}
- arg1 = (pn_terminus_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_terminus_t, 0 | 0 );
+ arg1 = (pn_delivery_t *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_copy", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_delivery_set_context", 2, argv[1] ));
}
- arg2 = (pn_terminus_t *)(argp2);
- result = (int)pn_terminus_copy(arg1,arg2);
- vresult = SWIG_From_int((int)(result));
- return vresult;
+ pn_delivery_set_context(arg1,arg2);
+ return Qnil;
fail:
return Qnil;
}
@@ -9892,78 +9647,79 @@
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_delivery_get_context(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_delivery_buffered(int argc, VALUE *argv, VALUE self) {
pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- void *result = 0 ;
+ bool result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_get_context", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_buffered", 1, argv[0] ));
}
arg1 = (pn_delivery_t *)(argp1);
- result = (void *)pn_delivery_get_context(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ result = (bool)pn_delivery_buffered(arg1);
+ vresult = SWIG_From_bool((bool)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_delivery_set_context(int argc, VALUE *argv, VALUE self) {
- pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
- void *arg2 = (void *) 0 ;
+_wrap_pn_work_head(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int res2 ;
+ pn_delivery_t *result = 0 ;
+ VALUE vresult = Qnil;
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 );
+ 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_delivery_t *","pn_delivery_set_context", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_work_head", 1, argv[0] ));
}
- arg1 = (pn_delivery_t *)(argp1);
- res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_delivery_set_context", 2, argv[1] ));
- }
- pn_delivery_set_context(arg1,arg2);
- return Qnil;
+ arg1 = (pn_connection_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (pn_delivery_t *)pn_work_head(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 );
+ return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_delivery_buffered(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_work_next(int argc, VALUE *argv, VALUE self) {
pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- bool result;
+ pn_delivery_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_buffered", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_work_next", 1, argv[0] ));
}
arg1 = (pn_delivery_t *)(argp1);
- result = (bool)pn_delivery_buffered(arg1);
- vresult = SWIG_From_bool((bool)(result));
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (pn_delivery_t *)pn_work_next(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
@@ -9991,10 +9747,34 @@
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_disposition_condition(int argc, VALUE *argv, VALUE self) {
+ pn_disposition_t *arg1 = (pn_disposition_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_condition_t *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_condition", 1, argv[0] ));
+ }
+ arg1 = (pn_disposition_t *)(argp1);
+ result = (pn_condition_t *)pn_disposition_condition(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_disposition_data(int argc, VALUE *argv, VALUE self) {
pn_disposition_t *arg1 = (pn_disposition_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
pn_data_t *result = 0 ;
@@ -10251,437 +10031,1257 @@
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_condition(int argc, VALUE *argv, VALUE self) {
- pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+_wrap_pn_transport(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 0) || (argc > 0)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
+ }
+ result = (pn_transport_t *)pn_transport();
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_free(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_condition_t *result = 0 ;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_free", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ pn_transport_free(arg1);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_error(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_error_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_condition", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_error", 1, argv[0] ));
}
- arg1 = (pn_connection_t *)(argp1);
- result = (pn_condition_t *)pn_connection_condition(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ arg1 = (pn_transport_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (pn_error_t *)pn_transport_error(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_connection_remote_condition(int argc, VALUE *argv, VALUE self) {
- pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+_wrap_pn_transport_bind(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ pn_connection_t *arg2 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_condition_t *result = 0 ;
+ void *argp2 = 0 ;
+ int res2 = 0 ;
+ int result;
VALUE vresult = Qnil;
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_bind", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_connection_t, 0 | 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_connection_t *","pn_transport_bind", 2, argv[1] ));
+ }
+ arg2 = (pn_connection_t *)(argp2);
+ result = (int)pn_transport_bind(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_unbind(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_remote_condition", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_unbind", 1, argv[0] ));
}
- arg1 = (pn_connection_t *)(argp1);
- result = (pn_condition_t *)pn_connection_remote_condition(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ arg1 = (pn_transport_t *)(argp1);
+ result = (int)pn_transport_unbind(arg1);
+ vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session_condition(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
+_wrap_pn_transport_trace(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ pn_trace_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_condition_t *result = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_trace", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_trace_t","pn_transport_trace", 2, argv[1] ));
+ }
+ arg2 = (pn_trace_t)(val2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ pn_transport_trace(arg1,arg2);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_set_tracer(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ pn_tracer_t arg2 = (pn_tracer_t) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_tracer", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ {
+ int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "pn_tracer_t","pn_transport_set_tracer", 2, argv[1] ));
+ }
+ }
+ pn_transport_set_tracer(arg1,arg2);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_get_tracer(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_tracer_t result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_condition", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_tracer", 1, argv[0] ));
}
- arg1 = (pn_session_t *)(argp1);
- result = (pn_condition_t *)pn_session_condition(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ arg1 = (pn_transport_t *)(argp1);
+ result = (pn_tracer_t)pn_transport_get_tracer(arg1);
+ vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void);
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session_remote_condition(int argc, VALUE *argv, VALUE self) {
- pn_session_t *arg1 = (pn_session_t *) 0 ;
+_wrap_pn_transport_get_context(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_condition_t *result = 0 ;
+ void *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_remote_condition", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_context", 1, argv[0] ));
}
- arg1 = (pn_session_t *)(argp1);
- result = (pn_condition_t *)pn_session_remote_condition(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ arg1 = (pn_transport_t *)(argp1);
+ result = (void *)pn_transport_get_context(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_condition(int argc, VALUE *argv, VALUE self) {
- pn_link_t *arg1 = (pn_link_t *) 0 ;
+_wrap_pn_transport_set_context(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_condition_t *result = 0 ;
+ int res2 ;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_context", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_transport_set_context", 2, argv[1] ));
+ }
+ pn_transport_set_context(arg1,arg2);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_log(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ char *arg2 = (char *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_log", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_transport_log", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ pn_transport_log(arg1,(char const *)arg2);
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return Qnil;
+fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_logf(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ char *arg2 = (char *) 0 ;
+ void *arg3 = 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
+
+ if (argc < 2) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_logf", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_transport_logf", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ pn_transport_logf(arg1,(char const *)arg2,arg3);
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return Qnil;
+fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_get_channel_max(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ uint16_t result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_condition", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_channel_max", 1, argv[0] ));
}
- arg1 = (pn_link_t *)(argp1);
- result = (pn_condition_t *)pn_link_condition(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ arg1 = (pn_transport_t *)(argp1);
+ result = (uint16_t)pn_transport_get_channel_max(arg1);
+ vresult = SWIG_From_unsigned_SS_short((unsigned short)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link_remote_condition(int argc, VALUE *argv, VALUE self) {
- pn_link_t *arg1 = (pn_link_t *) 0 ;
+_wrap_pn_transport_set_channel_max(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ uint16_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_condition_t *result = 0 ;
+ unsigned short val2 ;
+ int ecode2 = 0 ;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_channel_max", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","pn_transport_set_channel_max", 2, argv[1] ));
+ }
+ arg2 = (uint16_t)(val2);
+ pn_transport_set_channel_max(arg1,arg2);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_remote_channel_max(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ uint16_t result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_condition", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_remote_channel_max", 1, argv[0] ));
}
- arg1 = (pn_link_t *)(argp1);
- result = (pn_condition_t *)pn_link_remote_condition(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ arg1 = (pn_transport_t *)(argp1);
+ result = (uint16_t)pn_transport_remote_channel_max(arg1);
+ vresult = SWIG_From_unsigned_SS_short((unsigned short)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_disposition_condition(int argc, VALUE *argv, VALUE self) {
- pn_disposition_t *arg1 = (pn_disposition_t *) 0 ;
+_wrap_pn_transport_get_max_frame(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_condition_t *result = 0 ;
+ uint32_t result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_condition", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_max_frame", 1, argv[0] ));
}
- arg1 = (pn_disposition_t *)(argp1);
- result = (pn_condition_t *)pn_disposition_condition(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ arg1 = (pn_transport_t *)(argp1);
+ result = (uint32_t)pn_transport_get_max_frame(arg1);
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_condition_is_set(int argc, VALUE *argv, VALUE self) {
- pn_condition_t *arg1 = (pn_condition_t *) 0 ;
+_wrap_pn_transport_set_max_frame(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ uint32_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
- bool result;
+ unsigned long val2 ;
+ int ecode2 = 0 ;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_max_frame", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","pn_transport_set_max_frame", 2, argv[1] ));
+ }
+ arg2 = (uint32_t)(val2);
+ pn_transport_set_max_frame(arg1,arg2);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_get_remote_max_frame(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ uint32_t result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_is_set", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_remote_max_frame", 1, argv[0] ));
}
- arg1 = (pn_condition_t *)(argp1);
- result = (bool)pn_condition_is_set(arg1);
- vresult = SWIG_From_bool((bool)(result));
+ arg1 = (pn_transport_t *)(argp1);
+ result = (uint32_t)pn_transport_get_remote_max_frame(arg1);
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_condition_clear(int argc, VALUE *argv, VALUE self) {
- pn_condition_t *arg1 = (pn_condition_t *) 0 ;
+_wrap_pn_transport_get_idle_timeout(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ pn_millis_t result;
+ VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_clear", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_idle_timeout", 1, argv[0] ));
}
- arg1 = (pn_condition_t *)(argp1);
- pn_condition_clear(arg1);
+ arg1 = (pn_transport_t *)(argp1);
+ result = (pn_millis_t)pn_transport_get_idle_timeout(arg1);
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ return vresult;
+fail:
return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_set_idle_timeout(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ pn_millis_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned long val2 ;
+ int ecode2 = 0 ;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_idle_timeout", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_millis_t","pn_transport_set_idle_timeout", 2, argv[1] ));
+ }
+ arg2 = (pn_millis_t)(val2);
+ pn_transport_set_idle_timeout(arg1,arg2);
+ return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_condition_get_name(int argc, VALUE *argv, VALUE self) {
- pn_condition_t *arg1 = (pn_condition_t *) 0 ;
+_wrap_pn_transport_get_remote_idle_timeout(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ pn_millis_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_remote_idle_timeout", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ result = (pn_millis_t)pn_transport_get_remote_idle_timeout(arg1);
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_capacity(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ ssize_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_capacity", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ result = (ssize_t)pn_transport_capacity(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_tail(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
char *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_get_name", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_tail", 1, argv[0] ));
}
- arg1 = (pn_condition_t *)(argp1);
- result = (char *)pn_condition_get_name(arg1);
+ arg1 = (pn_transport_t *)(argp1);
+ result = (char *)pn_transport_tail(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_condition_set_name(int argc, VALUE *argv, VALUE self) {
- pn_condition_t *arg1 = (pn_condition_t *) 0 ;
+_wrap_pn_transport_push(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
char *arg2 = (char *) 0 ;
+ size_t arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
+ size_t val3 ;
+ int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ 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_condition_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_set_name", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_push", 1, argv[0] ));
}
- arg1 = (pn_condition_t *)(argp1);
+ arg1 = (pn_transport_t *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_condition_set_name", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_transport_push", 2, argv[1] ));
}
arg2 = (char *)(buf2);
- result = (int)pn_condition_set_name(arg1,(char const *)arg2);
+ ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
+ if (!SWIG_IsOK(ecode3)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_transport_push", 3, argv[2] ));
+ }
+ arg3 = (size_t)(val3);
+ result = (int)pn_transport_push(arg1,(char const *)arg2,arg3);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_condition_get_description(int argc, VALUE *argv, VALUE self) {
- pn_condition_t *arg1 = (pn_condition_t *) 0 ;
+_wrap_pn_transport_process(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ size_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ size_t val2 ;
+ int ecode2 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_process", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_transport_process", 2, argv[1] ));
+ }
+ arg2 = (size_t)(val2);
+ result = (int)pn_transport_process(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_close_tail(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_close_tail", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ result = (int)pn_transport_close_tail(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_pending(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ ssize_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_pending", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ result = (ssize_t)pn_transport_pending(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_head(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
char *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_get_description", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_head", 1, argv[0] ));
}
- arg1 = (pn_condition_t *)(argp1);
- result = (char *)pn_condition_get_description(arg1);
+ arg1 = (pn_transport_t *)(argp1);
+ result = (char *)pn_transport_head(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_condition_set_description(int argc, VALUE *argv, VALUE self) {
- pn_condition_t *arg1 = (pn_condition_t *) 0 ;
+_wrap_pn_transport_peek(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
char *arg2 = (char *) 0 ;
+ size_t arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
+ size_t val3 ;
+ int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ 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_condition_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_set_description", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_peek", 1, argv[0] ));
}
- arg1 = (pn_condition_t *)(argp1);
+ arg1 = (pn_transport_t *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_condition_set_description", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_transport_peek", 2, argv[1] ));
}
arg2 = (char *)(buf2);
- result = (int)pn_condition_set_description(arg1,(char const *)arg2);
+ ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
+ if (!SWIG_IsOK(ecode3)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_transport_peek", 3, argv[2] ));
+ }
+ arg3 = (size_t)(val3);
+ result = (int)pn_transport_peek(arg1,arg2,arg3);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_condition_info(int argc, VALUE *argv, VALUE self) {
- pn_condition_t *arg1 = (pn_condition_t *) 0 ;
+_wrap_pn_transport_pop(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ size_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
- pn_data_t *result = 0 ;
+ size_t val2 ;
+ int ecode2 = 0 ;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_pop", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_transport_pop", 2, argv[1] ));
+ }
+ arg2 = (size_t)(val2);
+ pn_transport_pop(arg1,arg2);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_close_head(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_info", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_close_head", 1, argv[0] ));
}
- arg1 = (pn_condition_t *)(argp1);
- result = (pn_data_t *)pn_condition_info(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
+ arg1 = (pn_transport_t *)(argp1);
+ result = (int)pn_transport_close_head(arg1);
+ vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_condition_is_redirect(int argc, VALUE *argv, VALUE self) {
- pn_condition_t *arg1 = (pn_condition_t *) 0 ;
+_wrap_pn_transport_quiesced(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_is_redirect", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_quiesced", 1, argv[0] ));
}
- arg1 = (pn_condition_t *)(argp1);
- result = (bool)pn_condition_is_redirect(arg1);
+ arg1 = (pn_transport_t *)(argp1);
+ result = (bool)pn_transport_quiesced(arg1);
vresult = SWIG_From_bool((bool)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_condition_redirect_host(int argc, VALUE *argv, VALUE self) {
- pn_condition_t *arg1 = (pn_condition_t *) 0 ;
+_wrap_pn_transport_closed(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- char *result = 0 ;
+ bool result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_redirect_host", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_closed", 1, argv[0] ));
}
- arg1 = (pn_condition_t *)(argp1);
- result = (char *)pn_condition_redirect_host(arg1);
+ arg1 = (pn_transport_t *)(argp1);
+ result = (bool)pn_transport_closed(arg1);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_tick(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ pn_timestamp_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ long long val2 ;
+ int ecode2 = 0 ;
+ pn_timestamp_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_tick", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_timestamp_t","pn_transport_tick", 2, argv[1] ));
+ }
+ arg2 = (pn_timestamp_t)(val2);
+ result = (pn_timestamp_t)pn_transport_tick(arg1,arg2);
+ vresult = SWIG_From_long_SS_long((long long)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_get_frames_output(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ uint64_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t const *","pn_transport_get_frames_output", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ result = (uint64_t)pn_transport_get_frames_output((struct pn_transport_t const *)arg1);
+ vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_transport_get_frames_input(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ uint64_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t const *","pn_transport_get_frames_input", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ result = (uint64_t)pn_transport_get_frames_input((struct pn_transport_t const *)arg1);
+ vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_event_type_name(int argc, VALUE *argv, VALUE self) {
+ pn_event_type_t arg1 ;
+ int val1 ;
+ int ecode1 = 0 ;
+ char *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ ecode1 = SWIG_AsVal_int(argv[0], &val1);
+ if (!SWIG_IsOK(ecode1)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "pn_event_type_t","pn_event_type_name", 1, argv[0] ));
+ }
+ arg1 = (pn_event_type_t)(val1);
+ result = (char *)pn_event_type_name(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_condition_redirect_port(int argc, VALUE *argv, VALUE self) {
- pn_condition_t *arg1 = (pn_condition_t *) 0 ;
+_wrap_pn_collector(int argc, VALUE *argv, VALUE self) {
+ pn_collector_t *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 0) || (argc > 0)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
+ }
+ result = (pn_collector_t *)pn_collector();
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_collector_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_collector_free(int argc, VALUE *argv, VALUE self) {
+ pn_collector_t *arg1 = (pn_collector_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int result;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_free", 1, argv[0] ));
+ }
+ arg1 = (pn_collector_t *)(argp1);
+ pn_collector_free(arg1);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_collector_peek(int argc, VALUE *argv, VALUE self) {
+ pn_collector_t *arg1 = (pn_collector_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_event_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
+ 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_condition_t *","pn_condition_redirect_port", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_peek", 1, argv[0] ));
}
- arg1 = (pn_condition_t *)(argp1);
- result = (int)pn_condition_redirect_port(arg1);
+ arg1 = (pn_collector_t *)(argp1);
+ result = (pn_event_t *)pn_collector_peek(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_collector_pop(int argc, VALUE *argv, VALUE self) {
+ pn_collector_t *arg1 = (pn_collector_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ bool result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_pop", 1, argv[0] ));
+ }
+ arg1 = (pn_collector_t *)(argp1);
+ result = (bool)pn_collector_pop(arg1);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_event_type(int argc, VALUE *argv, VALUE self) {
+ pn_event_t *arg1 = (pn_event_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_event_type_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_type", 1, argv[0] ));
+ }
+ arg1 = (pn_event_t *)(argp1);
+ result = (pn_event_type_t)pn_event_type(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_event_category(int argc, VALUE *argv, VALUE self) {
+ pn_event_t *arg1 = (pn_event_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_event_category_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_category", 1, argv[0] ));
+ }
+ arg1 = (pn_event_t *)(argp1);
+ result = (pn_event_category_t)pn_event_category(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_event_connection(int argc, VALUE *argv, VALUE self) {
+ pn_event_t *arg1 = (pn_event_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_connection_t *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_connection", 1, argv[0] ));
+ }
+ arg1 = (pn_event_t *)(argp1);
+ result = (pn_connection_t *)pn_event_connection(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_event_session(int argc, VALUE *argv, VALUE self) {
+ pn_event_t *arg1 = (pn_event_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_session_t *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_session", 1, argv[0] ));
+ }
+ arg1 = (pn_event_t *)(argp1);
+ result = (pn_session_t *)pn_event_session(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_event_link(int argc, VALUE *argv, VALUE self) {
+ pn_event_t *arg1 = (pn_event_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_link_t *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_link", 1, argv[0] ));
+ }
+ arg1 = (pn_event_t *)(argp1);
+ result = (pn_link_t *)pn_event_link(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_link_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_event_delivery(int argc, VALUE *argv, VALUE self) {
+ pn_event_t *arg1 = (pn_event_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_delivery_t *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_delivery", 1, argv[0] ));
+ }
+ arg1 = (pn_event_t *)(argp1);
+ result = (pn_delivery_t *)pn_event_delivery(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_event_transport(int argc, VALUE *argv, VALUE self) {
+ pn_event_t *arg1 = (pn_event_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_transport_t *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_transport", 1, argv[0] ));
+ }
+ arg1 = (pn_event_t *)(argp1);
+ result = (pn_transport_t *)pn_event_transport(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_transport_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_message(int argc, VALUE *argv, VALUE self) {
pn_message_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
@@ -13219,10 +13819,12 @@
arg1 = (pn_listener_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_listener_set_context", 2, argv[1] ));
}
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_listener_set_context(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
@@ -13530,11 +14132,11 @@
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_connector_set_connection", 2, argv[1] ));
}
arg2 = (pn_connection_t *)(argp2);
- SWIG_contract_assert((arg1!=NULL)&&(arg2!=NULL), "Contract violation: require: (arg1!=NULL)&&(arg2!=NULL)");
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
pn_connector_set_connection(arg1,arg2);
return Qnil;
fail:
return Qnil;
@@ -13814,10 +14416,34 @@
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_listener_get_fd(int argc, VALUE *argv, VALUE self) {
+ pn_listener_t *arg1 = (pn_listener_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_listener_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_listener_t *","pn_listener_get_fd", 1, argv[0] ));
+ }
+ arg1 = (pn_listener_t *)(argp1);
+ result = (pn_socket_t)pn_listener_get_fd(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_connector_fd(int argc, VALUE *argv, VALUE self) {
pn_driver_t *arg1 = (pn_driver_t *) 0 ;
pn_socket_t arg2 ;
void *arg3 = (void *) 0 ;
void *argp1 = 0 ;
@@ -13852,10 +14478,34 @@
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_connector_get_fd(int argc, VALUE *argv, VALUE self) {
+ pn_connector_t *arg1 = (pn_connector_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_connector_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_get_fd", 1, argv[0] ));
+ }
+ arg1 = (pn_connector_t *)(argp1);
+ result = (pn_socket_t)pn_connector_get_fd(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_messenger(int argc, VALUE *argv, VALUE self) {
char *arg1 = (char *) 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
@@ -14261,10 +14911,66 @@
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_messenger_is_passive(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ bool result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_is_passive", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ result = (bool)pn_messenger_is_passive(arg1);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_messenger_set_passive(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ bool arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ bool val2 ;
+ int ecode2 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_passive", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ ecode2 = SWIG_AsVal_bool(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_messenger_set_passive", 2, argv[1] ));
+ }
+ arg2 = (bool)(val2);
+ result = (int)pn_messenger_set_passive(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_messenger_free(int argc, VALUE *argv, VALUE self) {
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -15254,10 +15960,849 @@
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_messenger_selectable(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_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_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_selectable", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ result = (pn_selectable_t *)pn_messenger_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_messenger_deadline(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_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_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_deadline", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ result = (pn_timestamp_t)pn_messenger_deadline(arg1);
+ vresult = SWIG_From_long_SS_long((long long)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_io(int argc, VALUE *argv, VALUE self) {
+ pn_io_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_io_t *)pn_io();
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_io_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_io_free(int argc, VALUE *argv, VALUE self) {
+ pn_io_t *arg1 = (pn_io_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_io_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_io_free", 1, argv[0] ));
+ }
+ arg1 = (pn_io_t *)(argp1);
+ pn_io_free(arg1);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_io_error(int argc, VALUE *argv, VALUE self) {
+ pn_io_t *arg1 = (pn_io_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_io_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_io_error", 1, argv[0] ));
+ }
+ arg1 = (pn_io_t *)(argp1);
+ result = (pn_error_t *)pn_io_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_connect(int argc, VALUE *argv, VALUE self) {
+ pn_io_t *arg1 = (pn_io_t *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
+ int res3 ;
+ char *buf3 = 0 ;
+ int alloc3 = 0 ;
+ pn_socket_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 3) || (argc > 3)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_connect", 1, argv[0] ));
+ }
+ arg1 = (pn_io_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_connect", 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_connect", 3, argv[2] ));
+ }
+ arg3 = (char *)(buf3);
+ result = (pn_socket_t)pn_connect(arg1,(char const *)arg2,(char const *)arg3);
+ vresult = SWIG_From_int((int)(result));
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+ return vresult;
+fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_listen(int argc, VALUE *argv, VALUE self) {
+ pn_io_t *arg1 = (pn_io_t *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
+ int res3 ;
+ char *buf3 = 0 ;
+ int alloc3 = 0 ;
+ pn_socket_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 3) || (argc > 3)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_listen", 1, argv[0] ));
+ }
+ arg1 = (pn_io_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_listen", 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_listen", 3, argv[2] ));
+ }
+ arg3 = (char *)(buf3);
+ result = (pn_socket_t)pn_listen(arg1,(char const *)arg2,(char const *)arg3);
+ vresult = SWIG_From_int((int)(result));
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+ return vresult;
+fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_accept(int argc, VALUE *argv, VALUE self) {
+ pn_io_t *arg1 = (pn_io_t *) 0 ;
+ pn_socket_t arg2 ;
+ char *arg3 = (char *) 0 ;
+ size_t arg4 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ int res3 ;
+ char *buf3 = 0 ;
+ int alloc3 = 0 ;
+ size_t val4 ;
+ int ecode4 = 0 ;
+ pn_socket_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 4) || (argc > 4)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_accept", 1, argv[0] ));
+ }
+ arg1 = (pn_io_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_accept", 2, argv[1] ));
+ }
+ arg2 = (pn_socket_t)(val2);
+ res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","pn_accept", 3, argv[2] ));
+ }
+ arg3 = (char *)(buf3);
+ ecode4 = SWIG_AsVal_size_t(argv[3], &val4);
+ if (!SWIG_IsOK(ecode4)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","pn_accept", 4, argv[3] ));
+ }
+ arg4 = (size_t)(val4);
+ result = (pn_socket_t)pn_accept(arg1,arg2,arg3,arg4);
+ vresult = SWIG_From_int((int)(result));
+ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+ return vresult;
+fail:
+ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_close(int argc, VALUE *argv, VALUE self) {
+ pn_io_t *arg1 = (pn_io_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_io_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_close", 1, argv[0] ));
+ }
+ arg1 = (pn_io_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_close", 2, argv[1] ));
+ }
+ arg2 = (pn_socket_t)(val2);
+ pn_close(arg1,arg2);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_send(int argc, VALUE *argv, VALUE self) {
+ pn_io_t *arg1 = (pn_io_t *) 0 ;
+ pn_socket_t arg2 ;
+ void *arg3 = (void *) 0 ;
+ size_t arg4 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ int res3 ;
+ size_t val4 ;
+ int ecode4 = 0 ;
+ ssize_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 4) || (argc > 4)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_send", 1, argv[0] ));
+ }
+ arg1 = (pn_io_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_send", 2, argv[1] ));
+ }
+ arg2 = (pn_socket_t)(val2);
+ res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void const *","pn_send", 3, argv[2] ));
+ }
+ ecode4 = SWIG_AsVal_size_t(argv[3], &val4);
+ if (!SWIG_IsOK(ecode4)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","pn_send", 4, argv[3] ));
+ }
+ arg4 = (size_t)(val4);
+ result = (ssize_t)pn_send(arg1,arg2,(void const *)arg3,arg4);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_recv(int argc, VALUE *argv, VALUE self) {
+ pn_io_t *arg1 = (pn_io_t *) 0 ;
+ pn_socket_t arg2 ;
+ void *arg3 = (void *) 0 ;
+ size_t arg4 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ int res3 ;
+ size_t val4 ;
+ int ecode4 = 0 ;
+ ssize_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 4) || (argc > 4)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_recv", 1, argv[0] ));
+ }
+ arg1 = (pn_io_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_recv", 2, argv[1] ));
+ }
+ arg2 = (pn_socket_t)(val2);
+ res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_recv", 3, argv[2] ));
+ }
+ ecode4 = SWIG_AsVal_size_t(argv[3], &val4);
+ if (!SWIG_IsOK(ecode4)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","pn_recv", 4, argv[3] ));
+ }
+ arg4 = (size_t)(val4);
+ result = (ssize_t)pn_recv(arg1,arg2,arg3,arg4);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_pipe(int argc, VALUE *argv, VALUE self) {
+ pn_io_t *arg1 = (pn_io_t *) 0 ;
+ pn_socket_t *arg2 = (pn_socket_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ void *argp2 = 0 ;
+ int res2 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_pipe", 1, argv[0] ));
+ }
+ arg1 = (pn_io_t *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_socket_t *","pn_pipe", 2, argv[1] ));
+ }
+ arg2 = (pn_socket_t *)(argp2);
+ result = (int)pn_pipe(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_read(int argc, VALUE *argv, VALUE self) {
+ pn_io_t *arg1 = (pn_io_t *) 0 ;
+ pn_socket_t arg2 ;
+ void *arg3 = (void *) 0 ;
+ size_t arg4 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ int res3 ;
+ size_t val4 ;
+ int ecode4 = 0 ;
+ ssize_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 4) || (argc > 4)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_read", 1, argv[0] ));
+ }
+ arg1 = (pn_io_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_read", 2, argv[1] ));
+ }
+ arg2 = (pn_socket_t)(val2);
+ res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_read", 3, argv[2] ));
+ }
+ ecode4 = SWIG_AsVal_size_t(argv[3], &val4);
+ if (!SWIG_IsOK(ecode4)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","pn_read", 4, argv[3] ));
+ }
+ arg4 = (size_t)(val4);
+ result = (ssize_t)pn_read(arg1,arg2,arg3,arg4);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_write(int argc, VALUE *argv, VALUE self) {
+ pn_io_t *arg1 = (pn_io_t *) 0 ;
+ pn_socket_t arg2 ;
+ void *arg3 = (void *) 0 ;
+ size_t arg4 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ int res3 ;
+ size_t val4 ;
+ int ecode4 = 0 ;
+ ssize_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 4) || (argc > 4)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_write", 1, argv[0] ));
+ }
+ arg1 = (pn_io_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_write", 2, argv[1] ));
+ }
+ arg2 = (pn_socket_t)(val2);
+ res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void const *","pn_write", 3, argv[2] ));
+ }
+ ecode4 = SWIG_AsVal_size_t(argv[3], &val4);
+ if (!SWIG_IsOK(ecode4)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","pn_write", 4, argv[3] ));
+ }
+ arg4 = (size_t)(val4);
+ result = (ssize_t)pn_write(arg1,arg2,(void const *)arg3,arg4);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_wouldblock(int argc, VALUE *argv, VALUE self) {
+ pn_io_t *arg1 = (pn_io_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_io_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_wouldblock", 1, argv[0] ));
+ }
+ arg1 = (pn_io_t *)(argp1);
+ result = (bool)pn_wouldblock(arg1);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_selectables(int argc, VALUE *argv, VALUE self) {
+ pn_selectables_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_selectables_t *)pn_selectables();
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_iterator_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_selectables_next(int argc, VALUE *argv, VALUE self) {
+ pn_selectables_t *arg1 = (pn_selectables_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_iterator_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectables_t *","pn_selectables_next", 1, argv[0] ));
+ }
+ arg1 = (pn_selectables_t *)(argp1);
+ result = (pn_selectable_t *)pn_selectables_next(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_selectable_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_selectables_free(int argc, VALUE *argv, VALUE self) {
+ pn_selectables_t *arg1 = (pn_selectables_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_iterator_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectables_t *","pn_selectables_free", 1, argv[0] ));
+ }
+ arg1 = (pn_selectables_t *)(argp1);
+ pn_selectables_free(arg1);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_selectable_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_fd", 1, argv[0] ));
+ }
+ arg1 = (pn_selectable_t *)(argp1);
+ result = (pn_socket_t)pn_selectable_fd(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_selectable_capacity(int argc, VALUE *argv, VALUE self) {
+ pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ ssize_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_capacity", 1, argv[0] ));
+ }
+ arg1 = (pn_selectable_t *)(argp1);
+ result = (ssize_t)pn_selectable_capacity(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_selectable_pending(int argc, VALUE *argv, VALUE self) {
+ pn_selectable_t *arg1 = (pn_selectable_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ ssize_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_selectable_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectable_t *","pn_selectable_pending", 1, argv[0] ));
+ }
+ arg1 = (pn_selectable_t *)(argp1);
+ result = (ssize_t)pn_selectable_pending(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_selectable_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_deadline", 1, argv[0] ));
+ }
+ arg1 = (pn_selectable_t *)(argp1);
+ result = (pn_timestamp_t)pn_selectable_deadline(arg1);
+ vresult = SWIG_From_long_SS_long((long long)(result));
+ return vresult;
+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_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_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_ssl_domain(int argc, VALUE *argv, VALUE self) {
pn_ssl_mode_t arg1 ;
int val1 ;
int ecode1 = 0 ;
pn_ssl_domain_t *result = 0 ;
@@ -19168,11 +20713,12 @@
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_f_p_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_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_f_p_void__uintptr_t = {"_p_f_p_void__uintptr_t", "uintptr_t (*)(void *)", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_p_void__void = {"_p_f_p_void__void", "void (*)(void *)", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_p_void_p_struct_pn_string_t__int = {"_p_f_p_void_p_struct_pn_string_t__int", "int (*)(void *,struct pn_string_t *)|int (*)(void *,pn_string_t *)", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_p_void_p_void__intptr_t = {"_p_f_p_void_p_void__intptr_t", "intptr_t (*)(void *,void *)", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_int = {"_p_int", "int *|ssize_t *|pn_state_t *|pn_trace_t *|pn_socket_t *", 0, 0, (void*)0, 0};
@@ -19183,10 +20729,11 @@
static swig_type_info _swigt__p_pn_activate_criteria_t = {"_p_pn_activate_criteria_t", "enum pn_activate_criteria_t *|pn_activate_criteria_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_atom_t = {"_p_pn_atom_t", "pn_atom_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_atom_t_u = {"_p_pn_atom_t_u", "pn_atom_t_u *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_bytes_t = {"_p_pn_bytes_t", "pn_bytes_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_class_t = {"_p_pn_class_t", "pn_class_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_collector_t = {"_p_pn_collector_t", "struct pn_collector_t *|pn_collector_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_condition_t = {"_p_pn_condition_t", "struct pn_condition_t *|pn_condition_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_connection_t = {"_p_pn_connection_t", "struct pn_connection_t *|pn_connection_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_connector_t = {"_p_pn_connector_t", "struct pn_connector_t *|pn_connector_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_data_t = {"_p_pn_data_t", "struct pn_data_t *|pn_data_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_decimal128_t = {"_p_pn_decimal128_t", "pn_decimal128_t *", 0, 0, (void*)0, 0};
@@ -19195,23 +20742,29 @@
static swig_type_info _swigt__p_pn_disposition_t = {"_p_pn_disposition_t", "struct pn_disposition_t *|pn_disposition_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_distribution_mode_t = {"_p_pn_distribution_mode_t", "enum pn_distribution_mode_t *|pn_distribution_mode_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_driver_t = {"_p_pn_driver_t", "struct pn_driver_t *|pn_driver_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_durability_t = {"_p_pn_durability_t", "enum pn_durability_t *|pn_durability_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_error_t = {"_p_pn_error_t", "struct pn_error_t *|pn_error_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_event_category_t = {"_p_pn_event_category_t", "enum pn_event_category_t *|pn_event_category_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_format_t = {"_p_pn_format_t", "enum pn_format_t *|pn_format_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_hash_t = {"_p_pn_hash_t", "struct pn_hash_t *|pn_hash_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_io_t = {"_p_pn_io_t", "struct pn_io_t *|pn_io_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_iterator_t = {"_p_pn_iterator_t", "pn_selectables_t *|struct pn_iterator_t *|pn_iterator_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_link_t = {"_p_pn_link_t", "struct pn_link_t *|pn_link_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_list_t = {"_p_pn_list_t", "struct pn_list_t *|pn_list_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_listener_t = {"_p_pn_listener_t", "struct pn_listener_t *|pn_listener_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_map_t = {"_p_pn_map_t", "struct pn_map_t *|pn_map_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_message_t = {"_p_pn_message_t", "struct pn_message_t *|pn_message_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_messenger_t = {"_p_pn_messenger_t", "struct pn_messenger_t *|pn_messenger_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_rcv_settle_mode_t = {"_p_pn_rcv_settle_mode_t", "enum pn_rcv_settle_mode_t *|pn_rcv_settle_mode_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_sasl_outcome_t = {"_p_pn_sasl_outcome_t", "enum pn_sasl_outcome_t *|pn_sasl_outcome_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_sasl_state_t = {"_p_pn_sasl_state_t", "enum pn_sasl_state_t *|pn_sasl_state_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_sasl_t = {"_p_pn_sasl_t", "struct pn_sasl_t *|pn_sasl_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_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_domain_t = {"_p_pn_ssl_domain_t", "struct pn_ssl_domain_t *|pn_ssl_domain_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_ssl_mode_t = {"_p_pn_ssl_mode_t", "enum pn_ssl_mode_t *|pn_ssl_mode_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_ssl_resume_status_t = {"_p_pn_ssl_resume_status_t", "enum pn_ssl_resume_status_t *|pn_ssl_resume_status_t *", 0, 0, (void*)0, 0};
@@ -19236,10 +20789,11 @@
static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
static swig_type_info *swig_type_initial[] = {
&_swigt__p_char,
&_swigt__p_f_p_struct_pn_transport_t_p_q_const__char__void,
+ &_swigt__p_f_p_void__p_void,
&_swigt__p_f_p_void__uintptr_t,
&_swigt__p_f_p_void__void,
&_swigt__p_f_p_void_p_struct_pn_string_t__int,
&_swigt__p_f_p_void_p_void__intptr_t,
&_swigt__p_int,
@@ -19250,10 +20804,11 @@
&_swigt__p_pn_activate_criteria_t,
&_swigt__p_pn_atom_t,
&_swigt__p_pn_atom_t_u,
&_swigt__p_pn_bytes_t,
&_swigt__p_pn_class_t,
+ &_swigt__p_pn_collector_t,
&_swigt__p_pn_condition_t,
&_swigt__p_pn_connection_t,
&_swigt__p_pn_connector_t,
&_swigt__p_pn_data_t,
&_swigt__p_pn_decimal128_t,
@@ -19262,23 +20817,29 @@
&_swigt__p_pn_disposition_t,
&_swigt__p_pn_distribution_mode_t,
&_swigt__p_pn_driver_t,
&_swigt__p_pn_durability_t,
&_swigt__p_pn_error_t,
+ &_swigt__p_pn_event_category_t,
+ &_swigt__p_pn_event_t,
+ &_swigt__p_pn_event_type_t,
&_swigt__p_pn_expiry_policy_t,
&_swigt__p_pn_format_t,
&_swigt__p_pn_hash_t,
+ &_swigt__p_pn_io_t,
+ &_swigt__p_pn_iterator_t,
&_swigt__p_pn_link_t,
&_swigt__p_pn_list_t,
&_swigt__p_pn_listener_t,
&_swigt__p_pn_map_t,
&_swigt__p_pn_message_t,
&_swigt__p_pn_messenger_t,
&_swigt__p_pn_rcv_settle_mode_t,
&_swigt__p_pn_sasl_outcome_t,
&_swigt__p_pn_sasl_state_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_domain_t,
&_swigt__p_pn_ssl_mode_t,
&_swigt__p_pn_ssl_resume_status_t,
@@ -19303,10 +20864,11 @@
&_swigt__p_void,
};
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_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_f_p_void__uintptr_t[] = { {&_swigt__p_f_p_void__uintptr_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_void__void[] = { {&_swigt__p_f_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_void_p_struct_pn_string_t__int[] = { {&_swigt__p_f_p_void_p_struct_pn_string_t__int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_void_p_void__intptr_t[] = { {&_swigt__p_f_p_void_p_void__intptr_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
@@ -19317,10 +20879,11 @@
static swig_cast_info _swigc__p_pn_activate_criteria_t[] = { {&_swigt__p_pn_activate_criteria_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_atom_t[] = { {&_swigt__p_pn_atom_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_atom_t_u[] = { {&_swigt__p_pn_atom_t_u, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_bytes_t[] = { {&_swigt__p_pn_bytes_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_class_t[] = { {&_swigt__p_pn_class_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_collector_t[] = { {&_swigt__p_pn_collector_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_condition_t[] = { {&_swigt__p_pn_condition_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_connection_t[] = { {&_swigt__p_pn_connection_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_connector_t[] = { {&_swigt__p_pn_connector_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_data_t[] = { {&_swigt__p_pn_data_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_decimal128_t[] = { {&_swigt__p_pn_decimal128_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -19329,23 +20892,29 @@
static swig_cast_info _swigc__p_pn_disposition_t[] = { {&_swigt__p_pn_disposition_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_distribution_mode_t[] = { {&_swigt__p_pn_distribution_mode_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_driver_t[] = { {&_swigt__p_pn_driver_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_durability_t[] = { {&_swigt__p_pn_durability_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_error_t[] = { {&_swigt__p_pn_error_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_event_category_t[] = { {&_swigt__p_pn_event_category_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_event_t[] = { {&_swigt__p_pn_event_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_event_type_t[] = { {&_swigt__p_pn_event_type_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_expiry_policy_t[] = { {&_swigt__p_pn_expiry_policy_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_format_t[] = { {&_swigt__p_pn_format_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_hash_t[] = { {&_swigt__p_pn_hash_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_io_t[] = { {&_swigt__p_pn_io_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_iterator_t[] = { {&_swigt__p_pn_iterator_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_link_t[] = { {&_swigt__p_pn_link_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_list_t[] = { {&_swigt__p_pn_list_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_listener_t[] = { {&_swigt__p_pn_listener_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_map_t[] = { {&_swigt__p_pn_map_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_message_t[] = { {&_swigt__p_pn_message_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_messenger_t[] = { {&_swigt__p_pn_messenger_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_rcv_settle_mode_t[] = { {&_swigt__p_pn_rcv_settle_mode_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_sasl_outcome_t[] = { {&_swigt__p_pn_sasl_outcome_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_sasl_state_t[] = { {&_swigt__p_pn_sasl_state_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_sasl_t[] = { {&_swigt__p_pn_sasl_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_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_domain_t[] = { {&_swigt__p_pn_ssl_domain_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_ssl_mode_t[] = { {&_swigt__p_pn_ssl_mode_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_ssl_resume_status_t[] = { {&_swigt__p_pn_ssl_resume_status_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -19370,10 +20939,11 @@
static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info *swig_cast_initial[] = {
_swigc__p_char,
_swigc__p_f_p_struct_pn_transport_t_p_q_const__char__void,
+ _swigc__p_f_p_void__p_void,
_swigc__p_f_p_void__uintptr_t,
_swigc__p_f_p_void__void,
_swigc__p_f_p_void_p_struct_pn_string_t__int,
_swigc__p_f_p_void_p_void__intptr_t,
_swigc__p_int,
@@ -19384,10 +20954,11 @@
_swigc__p_pn_activate_criteria_t,
_swigc__p_pn_atom_t,
_swigc__p_pn_atom_t_u,
_swigc__p_pn_bytes_t,
_swigc__p_pn_class_t,
+ _swigc__p_pn_collector_t,
_swigc__p_pn_condition_t,
_swigc__p_pn_connection_t,
_swigc__p_pn_connector_t,
_swigc__p_pn_data_t,
_swigc__p_pn_decimal128_t,
@@ -19396,23 +20967,29 @@
_swigc__p_pn_disposition_t,
_swigc__p_pn_distribution_mode_t,
_swigc__p_pn_driver_t,
_swigc__p_pn_durability_t,
_swigc__p_pn_error_t,
+ _swigc__p_pn_event_category_t,
+ _swigc__p_pn_event_t,
+ _swigc__p_pn_event_type_t,
_swigc__p_pn_expiry_policy_t,
_swigc__p_pn_format_t,
_swigc__p_pn_hash_t,
+ _swigc__p_pn_io_t,
+ _swigc__p_pn_iterator_t,
_swigc__p_pn_link_t,
_swigc__p_pn_list_t,
_swigc__p_pn_listener_t,
_swigc__p_pn_map_t,
_swigc__p_pn_message_t,
_swigc__p_pn_messenger_t,
_swigc__p_pn_rcv_settle_mode_t,
_swigc__p_pn_sasl_outcome_t,
_swigc__p_pn_sasl_state_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_domain_t,
_swigc__p_pn_ssl_mode_t,
_swigc__p_pn_ssl_resume_status_t,
@@ -19787,10 +21364,12 @@
rb_define_module_function(mCproton, "pn_list_set", _wrap_pn_list_set, -1);
rb_define_module_function(mCproton, "pn_list_add", _wrap_pn_list_add, -1);
rb_define_module_function(mCproton, "pn_list_index", _wrap_pn_list_index, -1);
rb_define_module_function(mCproton, "pn_list_remove", _wrap_pn_list_remove, -1);
rb_define_module_function(mCproton, "pn_list_del", _wrap_pn_list_del, -1);
+ rb_define_module_function(mCproton, "pn_list_clear", _wrap_pn_list_clear, -1);
+ rb_define_module_function(mCproton, "pn_list_iterator", _wrap_pn_list_iterator, -1);
rb_define_const(mCproton, "PN_REFCOUNT_KEY", SWIG_From_int((int)((0x2))));
rb_define_const(mCproton, "PN_REFCOUNT_VALUE", SWIG_From_int((int)((0x4))));
rb_define_module_function(mCproton, "pn_map", _wrap_pn_map, -1);
rb_define_module_function(mCproton, "pn_map_size", _wrap_pn_map_size, -1);
rb_define_module_function(mCproton, "pn_map_put", _wrap_pn_map_put, -1);
@@ -19822,10 +21401,13 @@
rb_define_module_function(mCproton, "pn_string_grow", _wrap_pn_string_grow, -1);
rb_define_module_function(mCproton, "pn_string_buffer", _wrap_pn_string_buffer, -1);
rb_define_module_function(mCproton, "pn_string_capacity", _wrap_pn_string_capacity, -1);
rb_define_module_function(mCproton, "pn_string_resize", _wrap_pn_string_resize, -1);
rb_define_module_function(mCproton, "pn_string_copy", _wrap_pn_string_copy, -1);
+ rb_define_module_function(mCproton, "pn_iterator", _wrap_pn_iterator, -1);
+ rb_define_module_function(mCproton, "pn_iterator_start", _wrap_pn_iterator_start, -1);
+ rb_define_module_function(mCproton, "pn_iterator_next", _wrap_pn_iterator_next, -1);
rb_define_const(mCproton, "PROTON_ERROR_H", SWIG_From_int((int)(1)));
rb_define_const(mCproton, "PN_EOS", SWIG_From_int((int)((-1))));
rb_define_const(mCproton, "PN_ERR", SWIG_From_int((int)((-2))));
rb_define_const(mCproton, "PN_OVERFLOW", SWIG_From_int((int)((-3))));
rb_define_const(mCproton, "PN_UNDERFLOW", SWIG_From_int((int)((-4))));
@@ -19839,62 +21421,43 @@
rb_define_module_function(mCproton, "pn_error_free", _wrap_pn_error_free, -1);
rb_define_module_function(mCproton, "pn_error_clear", _wrap_pn_error_clear, -1);
rb_define_module_function(mCproton, "pn_error_set", _wrap_pn_error_set, -1);
rb_define_module_function(mCproton, "pn_error_code", _wrap_pn_error_code, -1);
rb_define_module_function(mCproton, "pn_error_text", _wrap_pn_error_text, -1);
- rb_define_const(mCproton, "PROTON_ENGINE_H", SWIG_From_int((int)(1)));
- rb_define_const(mCproton, "PN_UNSPECIFIED", SWIG_From_int((int)(PN_UNSPECIFIED)));
- rb_define_const(mCproton, "PN_SOURCE", SWIG_From_int((int)(PN_SOURCE)));
- rb_define_const(mCproton, "PN_TARGET", SWIG_From_int((int)(PN_TARGET)));
- rb_define_const(mCproton, "PN_COORDINATOR", SWIG_From_int((int)(PN_COORDINATOR)));
- rb_define_const(mCproton, "PN_NONDURABLE", SWIG_From_int((int)(PN_NONDURABLE)));
- rb_define_const(mCproton, "PN_CONFIGURATION", SWIG_From_int((int)(PN_CONFIGURATION)));
- rb_define_const(mCproton, "PN_DELIVERIES", SWIG_From_int((int)(PN_DELIVERIES)));
- rb_define_const(mCproton, "PN_LINK_CLOSE", SWIG_From_int((int)(PN_LINK_CLOSE)));
- rb_define_const(mCproton, "PN_SESSION_CLOSE", SWIG_From_int((int)(PN_SESSION_CLOSE)));
- rb_define_const(mCproton, "PN_CONNECTION_CLOSE", SWIG_From_int((int)(PN_CONNECTION_CLOSE)));
- rb_define_const(mCproton, "PN_NEVER", SWIG_From_int((int)(PN_NEVER)));
- rb_define_const(mCproton, "PN_DIST_MODE_UNSPECIFIED", SWIG_From_int((int)(PN_DIST_MODE_UNSPECIFIED)));
- rb_define_const(mCproton, "PN_DIST_MODE_COPY", SWIG_From_int((int)(PN_DIST_MODE_COPY)));
- rb_define_const(mCproton, "PN_DIST_MODE_MOVE", SWIG_From_int((int)(PN_DIST_MODE_MOVE)));
- rb_define_const(mCproton, "PN_SND_UNSETTLED", SWIG_From_int((int)(PN_SND_UNSETTLED)));
- rb_define_const(mCproton, "PN_SND_SETTLED", SWIG_From_int((int)(PN_SND_SETTLED)));
- rb_define_const(mCproton, "PN_SND_MIXED", SWIG_From_int((int)(PN_SND_MIXED)));
- rb_define_const(mCproton, "PN_RCV_FIRST", SWIG_From_int((int)(PN_RCV_FIRST)));
- rb_define_const(mCproton, "PN_RCV_SECOND", SWIG_From_int((int)(PN_RCV_SECOND)));
-
- SwigClassPn_delivery_tag_t.klass = rb_define_class_under(mCproton, "Pn_delivery_tag_t", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_pn_delivery_tag_t, (void *) &SwigClassPn_delivery_tag_t);
- rb_define_alloc_func(SwigClassPn_delivery_tag_t.klass, _wrap_pn_delivery_tag_t_allocate);
- rb_define_method(SwigClassPn_delivery_tag_t.klass, "initialize", _wrap_new_pn_delivery_tag_t, -1);
- rb_define_method(SwigClassPn_delivery_tag_t.klass, "size=", _wrap_pn_delivery_tag_t_size_set, -1);
- rb_define_method(SwigClassPn_delivery_tag_t.klass, "size", _wrap_pn_delivery_tag_t_size_get, -1);
- rb_define_method(SwigClassPn_delivery_tag_t.klass, "bytes=", _wrap_pn_delivery_tag_t_bytes_set, -1);
- rb_define_method(SwigClassPn_delivery_tag_t.klass, "bytes", _wrap_pn_delivery_tag_t_bytes_get, -1);
- SwigClassPn_delivery_tag_t.mark = 0;
- SwigClassPn_delivery_tag_t.destroy = (void (*)(void *)) free_pn_delivery_tag_t;
- SwigClassPn_delivery_tag_t.trackObjects = 0;
+ rb_define_module_function(mCproton, "pn_error_copy", _wrap_pn_error_copy, -1);
+ rb_define_const(mCproton, "PROTON_CONDITION_H", SWIG_From_int((int)(1)));
+ rb_define_module_function(mCproton, "pn_condition_is_set", _wrap_pn_condition_is_set, -1);
+ rb_define_module_function(mCproton, "pn_condition_clear", _wrap_pn_condition_clear, -1);
+ rb_define_module_function(mCproton, "pn_condition_get_name", _wrap_pn_condition_get_name, -1);
+ rb_define_module_function(mCproton, "pn_condition_set_name", _wrap_pn_condition_set_name, -1);
+ rb_define_module_function(mCproton, "pn_condition_get_description", _wrap_pn_condition_get_description, -1);
+ rb_define_module_function(mCproton, "pn_condition_set_description", _wrap_pn_condition_set_description, -1);
+ rb_define_module_function(mCproton, "pn_condition_info", _wrap_pn_condition_info, -1);
+ rb_define_module_function(mCproton, "pn_condition_is_redirect", _wrap_pn_condition_is_redirect, -1);
+ rb_define_module_function(mCproton, "pn_condition_redirect_host", _wrap_pn_condition_redirect_host, -1);
+ rb_define_module_function(mCproton, "pn_condition_redirect_port", _wrap_pn_condition_redirect_port, -1);
+ rb_define_const(mCproton, "PROTON_CONNECTION_H", SWIG_From_int((int)(1)));
rb_define_const(mCproton, "PN_LOCAL_UNINIT", SWIG_From_int((int)((1))));
rb_define_const(mCproton, "PN_LOCAL_ACTIVE", SWIG_From_int((int)((2))));
rb_define_const(mCproton, "PN_LOCAL_CLOSED", SWIG_From_int((int)((4))));
rb_define_const(mCproton, "PN_REMOTE_UNINIT", SWIG_From_int((int)((8))));
rb_define_const(mCproton, "PN_REMOTE_ACTIVE", SWIG_From_int((int)((16))));
rb_define_const(mCproton, "PN_REMOTE_CLOSED", SWIG_From_int((int)((32))));
rb_define_const(mCproton, "PN_LOCAL_MASK", SWIG_From_int((int)(((1)|(2)|(4)))));
rb_define_const(mCproton, "PN_REMOTE_MASK", SWIG_From_int((int)(((8)|(16)|(32)))));
- rb_define_const(mCproton, "PN_RECEIVED", SWIG_From_int((int)((0x0000000000000023))));
- rb_define_const(mCproton, "PN_ACCEPTED", SWIG_From_int((int)((0x0000000000000024))));
- rb_define_const(mCproton, "PN_REJECTED", SWIG_From_int((int)((0x0000000000000025))));
- rb_define_const(mCproton, "PN_RELEASED", SWIG_From_int((int)((0x0000000000000026))));
- rb_define_const(mCproton, "PN_MODIFIED", SWIG_From_int((int)((0x0000000000000027))));
- rb_define_const(mCproton, "PN_TRACE_OFF", SWIG_From_int((int)((0))));
- rb_define_const(mCproton, "PN_TRACE_RAW", SWIG_From_int((int)((1))));
- rb_define_const(mCproton, "PN_TRACE_FRM", SWIG_From_int((int)((2))));
- rb_define_const(mCproton, "PN_TRACE_DRV", SWIG_From_int((int)((4))));
rb_define_module_function(mCproton, "pn_connection", _wrap_pn_connection, -1);
- rb_define_module_function(mCproton, "pn_connection_state", _wrap_pn_connection_state, -1);
+ rb_define_module_function(mCproton, "pn_connection_free", _wrap_pn_connection_free, -1);
rb_define_module_function(mCproton, "pn_connection_error", _wrap_pn_connection_error, -1);
+ rb_define_module_function(mCproton, "pn_connection_collect", _wrap_pn_connection_collect, -1);
+ rb_define_module_function(mCproton, "pn_connection_get_context", _wrap_pn_connection_get_context, -1);
+ rb_define_module_function(mCproton, "pn_connection_set_context", _wrap_pn_connection_set_context, -1);
+ rb_define_module_function(mCproton, "pn_connection_state", _wrap_pn_connection_state, -1);
+ rb_define_module_function(mCproton, "pn_connection_open", _wrap_pn_connection_open, -1);
+ rb_define_module_function(mCproton, "pn_connection_close", _wrap_pn_connection_close, -1);
+ rb_define_module_function(mCproton, "pn_connection_reset", _wrap_pn_connection_reset, -1);
+ rb_define_module_function(mCproton, "pn_connection_condition", _wrap_pn_connection_condition, -1);
+ rb_define_module_function(mCproton, "pn_connection_remote_condition", _wrap_pn_connection_remote_condition, -1);
rb_define_module_function(mCproton, "pn_connection_get_container", _wrap_pn_connection_get_container, -1);
rb_define_module_function(mCproton, "pn_connection_set_container", _wrap_pn_connection_set_container, -1);
rb_define_module_function(mCproton, "pn_connection_get_hostname", _wrap_pn_connection_get_hostname, -1);
rb_define_module_function(mCproton, "pn_connection_set_hostname", _wrap_pn_connection_set_hostname, -1);
rb_define_module_function(mCproton, "pn_connection_remote_container", _wrap_pn_connection_remote_container, -1);
@@ -19903,110 +21466,99 @@
rb_define_module_function(mCproton, "pn_connection_desired_capabilities", _wrap_pn_connection_desired_capabilities, -1);
rb_define_module_function(mCproton, "pn_connection_properties", _wrap_pn_connection_properties, -1);
rb_define_module_function(mCproton, "pn_connection_remote_offered_capabilities", _wrap_pn_connection_remote_offered_capabilities, -1);
rb_define_module_function(mCproton, "pn_connection_remote_desired_capabilities", _wrap_pn_connection_remote_desired_capabilities, -1);
rb_define_module_function(mCproton, "pn_connection_remote_properties", _wrap_pn_connection_remote_properties, -1);
- rb_define_module_function(mCproton, "pn_work_head", _wrap_pn_work_head, -1);
- rb_define_module_function(mCproton, "pn_work_next", _wrap_pn_work_next, -1);
+ rb_define_module_function(mCproton, "pn_connection_transport", _wrap_pn_connection_transport, -1);
+ rb_define_const(mCproton, "PROTON_SESSION_H", SWIG_From_int((int)(1)));
rb_define_module_function(mCproton, "pn_session", _wrap_pn_session, -1);
+ rb_define_module_function(mCproton, "pn_session_free", _wrap_pn_session_free, -1);
+ rb_define_module_function(mCproton, "pn_session_get_context", _wrap_pn_session_get_context, -1);
+ rb_define_module_function(mCproton, "pn_session_set_context", _wrap_pn_session_set_context, -1);
+ rb_define_module_function(mCproton, "pn_session_state", _wrap_pn_session_state, -1);
+ rb_define_module_function(mCproton, "pn_session_error", _wrap_pn_session_error, -1);
+ rb_define_module_function(mCproton, "pn_session_condition", _wrap_pn_session_condition, -1);
+ rb_define_module_function(mCproton, "pn_session_remote_condition", _wrap_pn_session_remote_condition, -1);
+ rb_define_module_function(mCproton, "pn_session_connection", _wrap_pn_session_connection, -1);
+ rb_define_module_function(mCproton, "pn_session_open", _wrap_pn_session_open, -1);
+ rb_define_module_function(mCproton, "pn_session_close", _wrap_pn_session_close, -1);
rb_define_module_function(mCproton, "pn_session_get_incoming_capacity", _wrap_pn_session_get_incoming_capacity, -1);
rb_define_module_function(mCproton, "pn_session_set_incoming_capacity", _wrap_pn_session_set_incoming_capacity, -1);
rb_define_module_function(mCproton, "pn_session_outgoing_bytes", _wrap_pn_session_outgoing_bytes, -1);
rb_define_module_function(mCproton, "pn_session_incoming_bytes", _wrap_pn_session_incoming_bytes, -1);
- rb_define_module_function(mCproton, "pn_transport", _wrap_pn_transport, -1);
- rb_define_module_function(mCproton, "pn_transport_bind", _wrap_pn_transport_bind, -1);
- rb_define_module_function(mCproton, "pn_transport_unbind", _wrap_pn_transport_unbind, -1);
rb_define_module_function(mCproton, "pn_session_head", _wrap_pn_session_head, -1);
rb_define_module_function(mCproton, "pn_session_next", _wrap_pn_session_next, -1);
- rb_define_module_function(mCproton, "pn_link_head", _wrap_pn_link_head, -1);
- rb_define_module_function(mCproton, "pn_link_next", _wrap_pn_link_next, -1);
- rb_define_module_function(mCproton, "pn_connection_reset", _wrap_pn_connection_reset, -1);
- rb_define_module_function(mCproton, "pn_connection_open", _wrap_pn_connection_open, -1);
- rb_define_module_function(mCproton, "pn_connection_close", _wrap_pn_connection_close, -1);
- rb_define_module_function(mCproton, "pn_connection_free", _wrap_pn_connection_free, -1);
- rb_define_module_function(mCproton, "pn_connection_get_context", _wrap_pn_connection_get_context, -1);
- rb_define_module_function(mCproton, "pn_connection_set_context", _wrap_pn_connection_set_context, -1);
- rb_define_module_function(mCproton, "pn_transport_error", _wrap_pn_transport_error, -1);
- rb_define_module_function(mCproton, "pn_transport_capacity", _wrap_pn_transport_capacity, -1);
- rb_define_module_function(mCproton, "pn_transport_tail", _wrap_pn_transport_tail, -1);
- rb_define_module_function(mCproton, "pn_transport_push", _wrap_pn_transport_push, -1);
- rb_define_module_function(mCproton, "pn_transport_process", _wrap_pn_transport_process, -1);
- rb_define_module_function(mCproton, "pn_transport_close_tail", _wrap_pn_transport_close_tail, -1);
- rb_define_module_function(mCproton, "pn_transport_pending", _wrap_pn_transport_pending, -1);
- rb_define_module_function(mCproton, "pn_transport_head", _wrap_pn_transport_head, -1);
- rb_define_module_function(mCproton, "pn_transport_peek", _wrap_pn_transport_peek, -1);
- rb_define_module_function(mCproton, "pn_transport_pop", _wrap_pn_transport_pop, -1);
- rb_define_module_function(mCproton, "pn_transport_close_head", _wrap_pn_transport_close_head, -1);
- rb_define_module_function(mCproton, "pn_transport_tick", _wrap_pn_transport_tick, -1);
- rb_define_module_function(mCproton, "pn_transport_trace", _wrap_pn_transport_trace, -1);
- rb_define_module_function(mCproton, "pn_transport_set_tracer", _wrap_pn_transport_set_tracer, -1);
- rb_define_module_function(mCproton, "pn_transport_get_tracer", _wrap_pn_transport_get_tracer, -1);
- rb_define_module_function(mCproton, "pn_transport_set_context", _wrap_pn_transport_set_context, -1);
- rb_define_module_function(mCproton, "pn_transport_get_context", _wrap_pn_transport_get_context, -1);
- rb_define_module_function(mCproton, "pn_transport_log", _wrap_pn_transport_log, -1);
- rb_define_module_function(mCproton, "pn_transport_logf", _wrap_pn_transport_logf, -1);
- rb_define_module_function(mCproton, "pn_transport_get_max_frame", _wrap_pn_transport_get_max_frame, -1);
- rb_define_module_function(mCproton, "pn_transport_set_max_frame", _wrap_pn_transport_set_max_frame, -1);
- rb_define_module_function(mCproton, "pn_transport_get_remote_max_frame", _wrap_pn_transport_get_remote_max_frame, -1);
- rb_define_module_function(mCproton, "pn_transport_get_idle_timeout", _wrap_pn_transport_get_idle_timeout, -1);
- rb_define_module_function(mCproton, "pn_transport_set_idle_timeout", _wrap_pn_transport_set_idle_timeout, -1);
- rb_define_module_function(mCproton, "pn_transport_get_remote_idle_timeout", _wrap_pn_transport_get_remote_idle_timeout, -1);
- rb_define_module_function(mCproton, "pn_transport_get_frames_output", _wrap_pn_transport_get_frames_output, -1);
- rb_define_module_function(mCproton, "pn_transport_get_frames_input", _wrap_pn_transport_get_frames_input, -1);
- rb_define_module_function(mCproton, "pn_transport_quiesced", _wrap_pn_transport_quiesced, -1);
- rb_define_module_function(mCproton, "pn_transport_free", _wrap_pn_transport_free, -1);
- rb_define_module_function(mCproton, "pn_session_state", _wrap_pn_session_state, -1);
- rb_define_module_function(mCproton, "pn_session_error", _wrap_pn_session_error, -1);
- rb_define_module_function(mCproton, "pn_session_connection", _wrap_pn_session_connection, -1);
- rb_define_module_function(mCproton, "pn_session_open", _wrap_pn_session_open, -1);
- rb_define_module_function(mCproton, "pn_session_close", _wrap_pn_session_close, -1);
- rb_define_module_function(mCproton, "pn_session_free", _wrap_pn_session_free, -1);
- rb_define_module_function(mCproton, "pn_session_get_context", _wrap_pn_session_get_context, -1);
- rb_define_module_function(mCproton, "pn_session_set_context", _wrap_pn_session_set_context, -1);
+ rb_define_const(mCproton, "PROTON_LINK_H", SWIG_From_int((int)(1)));
rb_define_module_function(mCproton, "pn_sender", _wrap_pn_sender, -1);
rb_define_module_function(mCproton, "pn_receiver", _wrap_pn_receiver, -1);
+ rb_define_module_function(mCproton, "pn_link_free", _wrap_pn_link_free, -1);
+ rb_define_module_function(mCproton, "pn_link_get_context", _wrap_pn_link_get_context, -1);
+ rb_define_module_function(mCproton, "pn_link_set_context", _wrap_pn_link_set_context, -1);
rb_define_module_function(mCproton, "pn_link_name", _wrap_pn_link_name, -1);
rb_define_module_function(mCproton, "pn_link_is_sender", _wrap_pn_link_is_sender, -1);
rb_define_module_function(mCproton, "pn_link_is_receiver", _wrap_pn_link_is_receiver, -1);
rb_define_module_function(mCproton, "pn_link_state", _wrap_pn_link_state, -1);
rb_define_module_function(mCproton, "pn_link_error", _wrap_pn_link_error, -1);
+ rb_define_module_function(mCproton, "pn_link_condition", _wrap_pn_link_condition, -1);
+ rb_define_module_function(mCproton, "pn_link_remote_condition", _wrap_pn_link_remote_condition, -1);
rb_define_module_function(mCproton, "pn_link_session", _wrap_pn_link_session, -1);
+ rb_define_module_function(mCproton, "pn_link_head", _wrap_pn_link_head, -1);
+ rb_define_module_function(mCproton, "pn_link_next", _wrap_pn_link_next, -1);
+ rb_define_module_function(mCproton, "pn_link_open", _wrap_pn_link_open, -1);
+ rb_define_module_function(mCproton, "pn_link_close", _wrap_pn_link_close, -1);
rb_define_module_function(mCproton, "pn_link_source", _wrap_pn_link_source, -1);
rb_define_module_function(mCproton, "pn_link_target", _wrap_pn_link_target, -1);
rb_define_module_function(mCproton, "pn_link_remote_source", _wrap_pn_link_remote_source, -1);
rb_define_module_function(mCproton, "pn_link_remote_target", _wrap_pn_link_remote_target, -1);
rb_define_module_function(mCproton, "pn_link_current", _wrap_pn_link_current, -1);
rb_define_module_function(mCproton, "pn_link_advance", _wrap_pn_link_advance, -1);
rb_define_module_function(mCproton, "pn_link_credit", _wrap_pn_link_credit, -1);
rb_define_module_function(mCproton, "pn_link_queued", _wrap_pn_link_queued, -1);
rb_define_module_function(mCproton, "pn_link_remote_credit", _wrap_pn_link_remote_credit, -1);
+ rb_define_module_function(mCproton, "pn_link_get_drain", _wrap_pn_link_get_drain, -1);
+ rb_define_module_function(mCproton, "pn_link_drained", _wrap_pn_link_drained, -1);
rb_define_module_function(mCproton, "pn_link_available", _wrap_pn_link_available, -1);
+ rb_define_const(mCproton, "PN_SND_UNSETTLED", SWIG_From_int((int)(PN_SND_UNSETTLED)));
+ rb_define_const(mCproton, "PN_SND_SETTLED", SWIG_From_int((int)(PN_SND_SETTLED)));
+ rb_define_const(mCproton, "PN_SND_MIXED", SWIG_From_int((int)(PN_SND_MIXED)));
+ rb_define_const(mCproton, "PN_RCV_FIRST", SWIG_From_int((int)(PN_RCV_FIRST)));
+ rb_define_const(mCproton, "PN_RCV_SECOND", SWIG_From_int((int)(PN_RCV_SECOND)));
rb_define_module_function(mCproton, "pn_link_snd_settle_mode", _wrap_pn_link_snd_settle_mode, -1);
rb_define_module_function(mCproton, "pn_link_rcv_settle_mode", _wrap_pn_link_rcv_settle_mode, -1);
- rb_define_module_function(mCproton, "pn_link_remote_snd_settle_mode", _wrap_pn_link_remote_snd_settle_mode, -1);
- rb_define_module_function(mCproton, "pn_link_remote_rcv_settle_mode", _wrap_pn_link_remote_rcv_settle_mode, -1);
rb_define_module_function(mCproton, "pn_link_set_snd_settle_mode", _wrap_pn_link_set_snd_settle_mode, -1);
rb_define_module_function(mCproton, "pn_link_set_rcv_settle_mode", _wrap_pn_link_set_rcv_settle_mode, -1);
+ rb_define_module_function(mCproton, "pn_link_remote_snd_settle_mode", _wrap_pn_link_remote_snd_settle_mode, -1);
+ rb_define_module_function(mCproton, "pn_link_remote_rcv_settle_mode", _wrap_pn_link_remote_rcv_settle_mode, -1);
rb_define_module_function(mCproton, "pn_link_unsettled", _wrap_pn_link_unsettled, -1);
rb_define_module_function(mCproton, "pn_unsettled_head", _wrap_pn_unsettled_head, -1);
rb_define_module_function(mCproton, "pn_unsettled_next", _wrap_pn_unsettled_next, -1);
- rb_define_module_function(mCproton, "pn_link_open", _wrap_pn_link_open, -1);
- rb_define_module_function(mCproton, "pn_link_close", _wrap_pn_link_close, -1);
- rb_define_module_function(mCproton, "pn_link_free", _wrap_pn_link_free, -1);
- rb_define_module_function(mCproton, "pn_link_get_context", _wrap_pn_link_get_context, -1);
- rb_define_module_function(mCproton, "pn_link_set_context", _wrap_pn_link_set_context, -1);
- rb_define_module_function(mCproton, "pn_link_get_drain", _wrap_pn_link_get_drain, -1);
rb_define_module_function(mCproton, "pn_link_offered", _wrap_pn_link_offered, -1);
- rb_define_module_function(mCproton, "pn_link_drained", _wrap_pn_link_drained, -1);
rb_define_module_function(mCproton, "pn_link_flow", _wrap_pn_link_flow, -1);
rb_define_module_function(mCproton, "pn_link_drain", _wrap_pn_link_drain, -1);
rb_define_module_function(mCproton, "pn_link_set_drain", _wrap_pn_link_set_drain, -1);
rb_define_module_function(mCproton, "pn_link_draining", _wrap_pn_link_draining, -1);
+ rb_define_const(mCproton, "PROTON_TERMINUS_H", SWIG_From_int((int)(1)));
+ rb_define_const(mCproton, "PN_UNSPECIFIED", SWIG_From_int((int)(PN_UNSPECIFIED)));
+ rb_define_const(mCproton, "PN_SOURCE", SWIG_From_int((int)(PN_SOURCE)));
+ rb_define_const(mCproton, "PN_TARGET", SWIG_From_int((int)(PN_TARGET)));
+ rb_define_const(mCproton, "PN_COORDINATOR", SWIG_From_int((int)(PN_COORDINATOR)));
+ rb_define_const(mCproton, "PN_NONDURABLE", SWIG_From_int((int)(PN_NONDURABLE)));
+ rb_define_const(mCproton, "PN_CONFIGURATION", SWIG_From_int((int)(PN_CONFIGURATION)));
+ rb_define_const(mCproton, "PN_DELIVERIES", SWIG_From_int((int)(PN_DELIVERIES)));
+ rb_define_const(mCproton, "PN_LINK_CLOSE", SWIG_From_int((int)(PN_LINK_CLOSE)));
+ rb_define_const(mCproton, "PN_SESSION_CLOSE", SWIG_From_int((int)(PN_SESSION_CLOSE)));
+ rb_define_const(mCproton, "PN_CONNECTION_CLOSE", SWIG_From_int((int)(PN_CONNECTION_CLOSE)));
+ rb_define_const(mCproton, "PN_NEVER", SWIG_From_int((int)(PN_NEVER)));
+ rb_define_const(mCproton, "PN_DIST_MODE_UNSPECIFIED", SWIG_From_int((int)(PN_DIST_MODE_UNSPECIFIED)));
+ rb_define_const(mCproton, "PN_DIST_MODE_COPY", SWIG_From_int((int)(PN_DIST_MODE_COPY)));
+ rb_define_const(mCproton, "PN_DIST_MODE_MOVE", SWIG_From_int((int)(PN_DIST_MODE_MOVE)));
rb_define_module_function(mCproton, "pn_terminus_get_type", _wrap_pn_terminus_get_type, -1);
rb_define_module_function(mCproton, "pn_terminus_set_type", _wrap_pn_terminus_set_type, -1);
rb_define_module_function(mCproton, "pn_terminus_get_address", _wrap_pn_terminus_get_address, -1);
rb_define_module_function(mCproton, "pn_terminus_set_address", _wrap_pn_terminus_set_address, -1);
+ rb_define_module_function(mCproton, "pn_terminus_get_distribution_mode", _wrap_pn_terminus_get_distribution_mode, -1);
+ rb_define_module_function(mCproton, "pn_terminus_set_distribution_mode", _wrap_pn_terminus_set_distribution_mode, -1);
rb_define_module_function(mCproton, "pn_terminus_get_durability", _wrap_pn_terminus_get_durability, -1);
rb_define_module_function(mCproton, "pn_terminus_set_durability", _wrap_pn_terminus_set_durability, -1);
rb_define_module_function(mCproton, "pn_terminus_get_expiry_policy", _wrap_pn_terminus_get_expiry_policy, -1);
rb_define_module_function(mCproton, "pn_terminus_set_expiry_policy", _wrap_pn_terminus_set_expiry_policy, -1);
rb_define_module_function(mCproton, "pn_terminus_get_timeout", _wrap_pn_terminus_get_timeout, -1);
@@ -20015,13 +21567,26 @@
rb_define_module_function(mCproton, "pn_terminus_set_dynamic", _wrap_pn_terminus_set_dynamic, -1);
rb_define_module_function(mCproton, "pn_terminus_properties", _wrap_pn_terminus_properties, -1);
rb_define_module_function(mCproton, "pn_terminus_capabilities", _wrap_pn_terminus_capabilities, -1);
rb_define_module_function(mCproton, "pn_terminus_outcomes", _wrap_pn_terminus_outcomes, -1);
rb_define_module_function(mCproton, "pn_terminus_filter", _wrap_pn_terminus_filter, -1);
- rb_define_module_function(mCproton, "pn_terminus_get_distribution_mode", _wrap_pn_terminus_get_distribution_mode, -1);
- rb_define_module_function(mCproton, "pn_terminus_set_distribution_mode", _wrap_pn_terminus_set_distribution_mode, -1);
rb_define_module_function(mCproton, "pn_terminus_copy", _wrap_pn_terminus_copy, -1);
+ rb_define_const(mCproton, "PROTON_DELIVERY_H", SWIG_From_int((int)(1)));
+
+ SwigClassPn_delivery_tag_t.klass = rb_define_class_under(mCproton, "Pn_delivery_tag_t", rb_cObject);
+ SWIG_TypeClientData(SWIGTYPE_p_pn_delivery_tag_t, (void *) &SwigClassPn_delivery_tag_t);
+ rb_define_alloc_func(SwigClassPn_delivery_tag_t.klass, _wrap_pn_delivery_tag_t_allocate);
+ rb_define_method(SwigClassPn_delivery_tag_t.klass, "initialize", _wrap_new_pn_delivery_tag_t, -1);
+ rb_define_method(SwigClassPn_delivery_tag_t.klass, "size=", _wrap_pn_delivery_tag_t_size_set, -1);
+ rb_define_method(SwigClassPn_delivery_tag_t.klass, "size", _wrap_pn_delivery_tag_t_size_get, -1);
+ rb_define_method(SwigClassPn_delivery_tag_t.klass, "bytes=", _wrap_pn_delivery_tag_t_bytes_set, -1);
+ rb_define_method(SwigClassPn_delivery_tag_t.klass, "bytes", _wrap_pn_delivery_tag_t_bytes_get, -1);
+ SwigClassPn_delivery_tag_t.mark = 0;
+ SwigClassPn_delivery_tag_t.destroy = (void (*)(void *)) free_pn_delivery_tag_t;
+ SwigClassPn_delivery_tag_t.trackObjects = 0;
+ rb_define_module_function(mCproton, "pn_delivery_get_context", _wrap_pn_delivery_get_context, -1);
+ rb_define_module_function(mCproton, "pn_delivery_set_context", _wrap_pn_delivery_set_context, -1);
rb_define_module_function(mCproton, "pn_delivery_link", _wrap_pn_delivery_link, -1);
rb_define_module_function(mCproton, "pn_delivery_local", _wrap_pn_delivery_local, -1);
rb_define_module_function(mCproton, "pn_delivery_local_state", _wrap_pn_delivery_local_state, -1);
rb_define_module_function(mCproton, "pn_delivery_remote", _wrap_pn_delivery_remote, -1);
rb_define_module_function(mCproton, "pn_delivery_remote_state", _wrap_pn_delivery_remote_state, -1);
@@ -20033,41 +21598,98 @@
rb_define_module_function(mCproton, "pn_delivery_updated", _wrap_pn_delivery_updated, -1);
rb_define_module_function(mCproton, "pn_delivery_update", _wrap_pn_delivery_update, -1);
rb_define_module_function(mCproton, "pn_delivery_clear", _wrap_pn_delivery_clear, -1);
rb_define_module_function(mCproton, "pn_delivery_settle", _wrap_pn_delivery_settle, -1);
rb_define_module_function(mCproton, "pn_delivery_dump", _wrap_pn_delivery_dump, -1);
- rb_define_module_function(mCproton, "pn_delivery_get_context", _wrap_pn_delivery_get_context, -1);
- rb_define_module_function(mCproton, "pn_delivery_set_context", _wrap_pn_delivery_set_context, -1);
rb_define_module_function(mCproton, "pn_delivery_buffered", _wrap_pn_delivery_buffered, -1);
+ rb_define_module_function(mCproton, "pn_work_head", _wrap_pn_work_head, -1);
+ rb_define_module_function(mCproton, "pn_work_next", _wrap_pn_work_next, -1);
+ rb_define_const(mCproton, "PROTON_DISPOSITION_H", SWIG_From_int((int)(1)));
+ rb_define_const(mCproton, "PN_RECEIVED", SWIG_From_int((int)((0x0000000000000023))));
+ rb_define_const(mCproton, "PN_ACCEPTED", SWIG_From_int((int)((0x0000000000000024))));
+ rb_define_const(mCproton, "PN_REJECTED", SWIG_From_int((int)((0x0000000000000025))));
+ rb_define_const(mCproton, "PN_RELEASED", SWIG_From_int((int)((0x0000000000000026))));
+ rb_define_const(mCproton, "PN_MODIFIED", SWIG_From_int((int)((0x0000000000000027))));
rb_define_module_function(mCproton, "pn_disposition_type", _wrap_pn_disposition_type, -1);
+ rb_define_module_function(mCproton, "pn_disposition_condition", _wrap_pn_disposition_condition, -1);
rb_define_module_function(mCproton, "pn_disposition_data", _wrap_pn_disposition_data, -1);
rb_define_module_function(mCproton, "pn_disposition_get_section_number", _wrap_pn_disposition_get_section_number, -1);
rb_define_module_function(mCproton, "pn_disposition_set_section_number", _wrap_pn_disposition_set_section_number, -1);
rb_define_module_function(mCproton, "pn_disposition_get_section_offset", _wrap_pn_disposition_get_section_offset, -1);
rb_define_module_function(mCproton, "pn_disposition_set_section_offset", _wrap_pn_disposition_set_section_offset, -1);
rb_define_module_function(mCproton, "pn_disposition_is_failed", _wrap_pn_disposition_is_failed, -1);
rb_define_module_function(mCproton, "pn_disposition_set_failed", _wrap_pn_disposition_set_failed, -1);
rb_define_module_function(mCproton, "pn_disposition_is_undeliverable", _wrap_pn_disposition_is_undeliverable, -1);
rb_define_module_function(mCproton, "pn_disposition_set_undeliverable", _wrap_pn_disposition_set_undeliverable, -1);
rb_define_module_function(mCproton, "pn_disposition_annotations", _wrap_pn_disposition_annotations, -1);
- rb_define_module_function(mCproton, "pn_connection_condition", _wrap_pn_connection_condition, -1);
- rb_define_module_function(mCproton, "pn_connection_remote_condition", _wrap_pn_connection_remote_condition, -1);
- rb_define_module_function(mCproton, "pn_session_condition", _wrap_pn_session_condition, -1);
- rb_define_module_function(mCproton, "pn_session_remote_condition", _wrap_pn_session_remote_condition, -1);
- rb_define_module_function(mCproton, "pn_link_condition", _wrap_pn_link_condition, -1);
- rb_define_module_function(mCproton, "pn_link_remote_condition", _wrap_pn_link_remote_condition, -1);
- rb_define_module_function(mCproton, "pn_disposition_condition", _wrap_pn_disposition_condition, -1);
- rb_define_module_function(mCproton, "pn_condition_is_set", _wrap_pn_condition_is_set, -1);
- rb_define_module_function(mCproton, "pn_condition_clear", _wrap_pn_condition_clear, -1);
- rb_define_module_function(mCproton, "pn_condition_get_name", _wrap_pn_condition_get_name, -1);
- rb_define_module_function(mCproton, "pn_condition_set_name", _wrap_pn_condition_set_name, -1);
- rb_define_module_function(mCproton, "pn_condition_get_description", _wrap_pn_condition_get_description, -1);
- rb_define_module_function(mCproton, "pn_condition_set_description", _wrap_pn_condition_set_description, -1);
- rb_define_module_function(mCproton, "pn_condition_info", _wrap_pn_condition_info, -1);
- rb_define_module_function(mCproton, "pn_condition_is_redirect", _wrap_pn_condition_is_redirect, -1);
- rb_define_module_function(mCproton, "pn_condition_redirect_host", _wrap_pn_condition_redirect_host, -1);
- rb_define_module_function(mCproton, "pn_condition_redirect_port", _wrap_pn_condition_redirect_port, -1);
+ rb_define_const(mCproton, "PROTON_TRANSPORT_H", SWIG_From_int((int)(1)));
+ rb_define_const(mCproton, "PN_TRACE_OFF", SWIG_From_int((int)((0))));
+ rb_define_const(mCproton, "PN_TRACE_RAW", SWIG_From_int((int)((1))));
+ rb_define_const(mCproton, "PN_TRACE_FRM", SWIG_From_int((int)((2))));
+ rb_define_const(mCproton, "PN_TRACE_DRV", SWIG_From_int((int)((4))));
+ rb_define_module_function(mCproton, "pn_transport", _wrap_pn_transport, -1);
+ rb_define_module_function(mCproton, "pn_transport_free", _wrap_pn_transport_free, -1);
+ rb_define_module_function(mCproton, "pn_transport_error", _wrap_pn_transport_error, -1);
+ rb_define_module_function(mCproton, "pn_transport_bind", _wrap_pn_transport_bind, -1);
+ rb_define_module_function(mCproton, "pn_transport_unbind", _wrap_pn_transport_unbind, -1);
+ rb_define_module_function(mCproton, "pn_transport_trace", _wrap_pn_transport_trace, -1);
+ rb_define_module_function(mCproton, "pn_transport_set_tracer", _wrap_pn_transport_set_tracer, -1);
+ rb_define_module_function(mCproton, "pn_transport_get_tracer", _wrap_pn_transport_get_tracer, -1);
+ rb_define_module_function(mCproton, "pn_transport_get_context", _wrap_pn_transport_get_context, -1);
+ rb_define_module_function(mCproton, "pn_transport_set_context", _wrap_pn_transport_set_context, -1);
+ rb_define_module_function(mCproton, "pn_transport_log", _wrap_pn_transport_log, -1);
+ rb_define_module_function(mCproton, "pn_transport_logf", _wrap_pn_transport_logf, -1);
+ rb_define_module_function(mCproton, "pn_transport_get_channel_max", _wrap_pn_transport_get_channel_max, -1);
+ rb_define_module_function(mCproton, "pn_transport_set_channel_max", _wrap_pn_transport_set_channel_max, -1);
+ rb_define_module_function(mCproton, "pn_transport_remote_channel_max", _wrap_pn_transport_remote_channel_max, -1);
+ rb_define_module_function(mCproton, "pn_transport_get_max_frame", _wrap_pn_transport_get_max_frame, -1);
+ rb_define_module_function(mCproton, "pn_transport_set_max_frame", _wrap_pn_transport_set_max_frame, -1);
+ rb_define_module_function(mCproton, "pn_transport_get_remote_max_frame", _wrap_pn_transport_get_remote_max_frame, -1);
+ rb_define_module_function(mCproton, "pn_transport_get_idle_timeout", _wrap_pn_transport_get_idle_timeout, -1);
+ rb_define_module_function(mCproton, "pn_transport_set_idle_timeout", _wrap_pn_transport_set_idle_timeout, -1);
+ rb_define_module_function(mCproton, "pn_transport_get_remote_idle_timeout", _wrap_pn_transport_get_remote_idle_timeout, -1);
+ rb_define_module_function(mCproton, "pn_transport_capacity", _wrap_pn_transport_capacity, -1);
+ rb_define_module_function(mCproton, "pn_transport_tail", _wrap_pn_transport_tail, -1);
+ rb_define_module_function(mCproton, "pn_transport_push", _wrap_pn_transport_push, -1);
+ rb_define_module_function(mCproton, "pn_transport_process", _wrap_pn_transport_process, -1);
+ rb_define_module_function(mCproton, "pn_transport_close_tail", _wrap_pn_transport_close_tail, -1);
+ rb_define_module_function(mCproton, "pn_transport_pending", _wrap_pn_transport_pending, -1);
+ rb_define_module_function(mCproton, "pn_transport_head", _wrap_pn_transport_head, -1);
+ rb_define_module_function(mCproton, "pn_transport_peek", _wrap_pn_transport_peek, -1);
+ rb_define_module_function(mCproton, "pn_transport_pop", _wrap_pn_transport_pop, -1);
+ rb_define_module_function(mCproton, "pn_transport_close_head", _wrap_pn_transport_close_head, -1);
+ rb_define_module_function(mCproton, "pn_transport_quiesced", _wrap_pn_transport_quiesced, -1);
+ rb_define_module_function(mCproton, "pn_transport_closed", _wrap_pn_transport_closed, -1);
+ rb_define_module_function(mCproton, "pn_transport_tick", _wrap_pn_transport_tick, -1);
+ rb_define_module_function(mCproton, "pn_transport_get_frames_output", _wrap_pn_transport_get_frames_output, -1);
+ rb_define_module_function(mCproton, "pn_transport_get_frames_input", _wrap_pn_transport_get_frames_input, -1);
+ rb_define_const(mCproton, "PROTON_EVENT_H", SWIG_From_int((int)(1)));
+ rb_define_const(mCproton, "PN_EVENT_CATEGORY_NONE", SWIG_From_int((int)(PN_EVENT_CATEGORY_NONE)));
+ rb_define_const(mCproton, "PN_EVENT_CATEGORY_PROTOCOL", SWIG_From_int((int)(PN_EVENT_CATEGORY_PROTOCOL)));
+ rb_define_const(mCproton, "PN_EVENT_CATEGORY_COUNT", SWIG_From_int((int)(PN_EVENT_CATEGORY_COUNT)));
+ rb_define_const(mCproton, "PN_EVENT_NONE", SWIG_From_int((int)(PN_EVENT_NONE)));
+ rb_define_const(mCproton, "PN_CONNECTION_REMOTE_STATE", SWIG_From_int((int)(PN_CONNECTION_REMOTE_STATE)));
+ rb_define_const(mCproton, "PN_CONNECTION_LOCAL_STATE", SWIG_From_int((int)(PN_CONNECTION_LOCAL_STATE)));
+ rb_define_const(mCproton, "PN_SESSION_REMOTE_STATE", SWIG_From_int((int)(PN_SESSION_REMOTE_STATE)));
+ rb_define_const(mCproton, "PN_SESSION_LOCAL_STATE", SWIG_From_int((int)(PN_SESSION_LOCAL_STATE)));
+ rb_define_const(mCproton, "PN_LINK_REMOTE_STATE", SWIG_From_int((int)(PN_LINK_REMOTE_STATE)));
+ rb_define_const(mCproton, "PN_LINK_LOCAL_STATE", SWIG_From_int((int)(PN_LINK_LOCAL_STATE)));
+ rb_define_const(mCproton, "PN_LINK_FLOW", SWIG_From_int((int)(PN_LINK_FLOW)));
+ rb_define_const(mCproton, "PN_DELIVERY", SWIG_From_int((int)(PN_DELIVERY)));
+ rb_define_const(mCproton, "PN_TRANSPORT", SWIG_From_int((int)(PN_TRANSPORT)));
+ rb_define_module_function(mCproton, "pn_event_type_name", _wrap_pn_event_type_name, -1);
+ rb_define_module_function(mCproton, "pn_collector", _wrap_pn_collector, -1);
+ rb_define_module_function(mCproton, "pn_collector_free", _wrap_pn_collector_free, -1);
+ rb_define_module_function(mCproton, "pn_collector_peek", _wrap_pn_collector_peek, -1);
+ rb_define_module_function(mCproton, "pn_collector_pop", _wrap_pn_collector_pop, -1);
+ rb_define_module_function(mCproton, "pn_event_type", _wrap_pn_event_type, -1);
+ rb_define_module_function(mCproton, "pn_event_category", _wrap_pn_event_category, -1);
+ rb_define_module_function(mCproton, "pn_event_connection", _wrap_pn_event_connection, -1);
+ rb_define_module_function(mCproton, "pn_event_session", _wrap_pn_event_session, -1);
+ rb_define_module_function(mCproton, "pn_event_link", _wrap_pn_event_link, -1);
+ rb_define_module_function(mCproton, "pn_event_delivery", _wrap_pn_event_delivery, -1);
+ rb_define_module_function(mCproton, "pn_event_transport", _wrap_pn_event_transport, -1);
rb_define_const(mCproton, "PROTON_MESSAGE_H", SWIG_From_int((int)(1)));
rb_define_const(mCproton, "PN_DATA", SWIG_From_int((int)(PN_DATA)));
rb_define_const(mCproton, "PN_TEXT", SWIG_From_int((int)(PN_TEXT)));
rb_define_const(mCproton, "PN_AMQP", SWIG_From_int((int)(PN_AMQP)));
rb_define_const(mCproton, "PN_JSON", SWIG_From_int((int)(PN_JSON)));
@@ -20187,11 +21809,13 @@
rb_define_module_function(mCproton, "pn_connector_free", _wrap_pn_connector_free, -1);
rb_define_module_function(mCproton, "pn_connector_activate", _wrap_pn_connector_activate, -1);
rb_define_module_function(mCproton, "pn_connector_activated", _wrap_pn_connector_activated, -1);
rb_define_const(mCproton, "PROTON_DRIVER_H_EXTRAS", SWIG_From_int((int)(1)));
rb_define_module_function(mCproton, "pn_listener_fd", _wrap_pn_listener_fd, -1);
+ rb_define_module_function(mCproton, "pn_listener_get_fd", _wrap_pn_listener_get_fd, -1);
rb_define_module_function(mCproton, "pn_connector_fd", _wrap_pn_connector_fd, -1);
+ rb_define_module_function(mCproton, "pn_connector_get_fd", _wrap_pn_connector_get_fd, -1);
rb_define_const(mCproton, "PROTON_MESSENGER_H", SWIG_From_int((int)(1)));
rb_define_const(mCproton, "PN_STATUS_UNKNOWN", SWIG_From_int((int)(PN_STATUS_UNKNOWN)));
rb_define_const(mCproton, "PN_STATUS_PENDING", SWIG_From_int((int)(PN_STATUS_PENDING)));
rb_define_const(mCproton, "PN_STATUS_ACCEPTED", SWIG_From_int((int)(PN_STATUS_ACCEPTED)));
rb_define_const(mCproton, "PN_STATUS_REJECTED", SWIG_From_int((int)(PN_STATUS_REJECTED)));
@@ -20211,10 +21835,12 @@
rb_define_module_function(mCproton, "pn_messenger_get_trusted_certificates", _wrap_pn_messenger_get_trusted_certificates, -1);
rb_define_module_function(mCproton, "pn_messenger_set_timeout", _wrap_pn_messenger_set_timeout, -1);
rb_define_module_function(mCproton, "pn_messenger_get_timeout", _wrap_pn_messenger_get_timeout, -1);
rb_define_module_function(mCproton, "pn_messenger_is_blocking", _wrap_pn_messenger_is_blocking, -1);
rb_define_module_function(mCproton, "pn_messenger_set_blocking", _wrap_pn_messenger_set_blocking, -1);
+ rb_define_module_function(mCproton, "pn_messenger_is_passive", _wrap_pn_messenger_is_passive, -1);
+ rb_define_module_function(mCproton, "pn_messenger_set_passive", _wrap_pn_messenger_set_passive, -1);
rb_define_module_function(mCproton, "pn_messenger_free", _wrap_pn_messenger_free, -1);
rb_define_module_function(mCproton, "pn_messenger_errno", _wrap_pn_messenger_errno, -1);
rb_define_module_function(mCproton, "pn_messenger_error", _wrap_pn_messenger_error, -1);
rb_define_module_function(mCproton, "pn_messenger_get_outgoing_window", _wrap_pn_messenger_get_outgoing_window, -1);
rb_define_module_function(mCproton, "pn_messenger_set_outgoing_window", _wrap_pn_messenger_set_outgoing_window, -1);
@@ -20245,9 +21871,41 @@
rb_define_module_function(mCproton, "pn_messenger_reject", _wrap_pn_messenger_reject, -1);
rb_define_module_function(mCproton, "pn_messenger_outgoing", _wrap_pn_messenger_outgoing, -1);
rb_define_module_function(mCproton, "pn_messenger_incoming", _wrap_pn_messenger_incoming, -1);
rb_define_module_function(mCproton, "pn_messenger_route", _wrap_pn_messenger_route, -1);
rb_define_module_function(mCproton, "pn_messenger_rewrite", _wrap_pn_messenger_rewrite, -1);
+ rb_define_module_function(mCproton, "pn_messenger_selectable", _wrap_pn_messenger_selectable, -1);
+ rb_define_module_function(mCproton, "pn_messenger_deadline", _wrap_pn_messenger_deadline, -1);
+ rb_define_const(mCproton, "PROTON_IO_H", SWIG_From_int((int)(1)));
+ rb_define_const(mCproton, "PN_INVALID_SOCKET", SWIG_From_int((int)((-1))));
+ rb_define_module_function(mCproton, "pn_io", _wrap_pn_io, -1);
+ rb_define_module_function(mCproton, "pn_io_free", _wrap_pn_io_free, -1);
+ rb_define_module_function(mCproton, "pn_io_error", _wrap_pn_io_error, -1);
+ rb_define_module_function(mCproton, "pn_connect", _wrap_pn_connect, -1);
+ rb_define_module_function(mCproton, "pn_listen", _wrap_pn_listen, -1);
+ rb_define_module_function(mCproton, "pn_accept", _wrap_pn_accept, -1);
+ rb_define_module_function(mCproton, "pn_close", _wrap_pn_close, -1);
+ rb_define_module_function(mCproton, "pn_send", _wrap_pn_send, -1);
+ rb_define_module_function(mCproton, "pn_recv", _wrap_pn_recv, -1);
+ rb_define_module_function(mCproton, "pn_pipe", _wrap_pn_pipe, -1);
+ rb_define_module_function(mCproton, "pn_read", _wrap_pn_read, -1);
+ rb_define_module_function(mCproton, "pn_write", _wrap_pn_write, -1);
+ rb_define_module_function(mCproton, "pn_wouldblock", _wrap_pn_wouldblock, -1);
+ rb_define_const(mCproton, "PROTON_SELECTABLE_H", SWIG_From_int((int)(1)));
+ rb_define_module_function(mCproton, "pn_selectables", _wrap_pn_selectables, -1);
+ rb_define_module_function(mCproton, "pn_selectables_next", _wrap_pn_selectables_next, -1);
+ rb_define_module_function(mCproton, "pn_selectables_free", _wrap_pn_selectables_free, -1);
+ rb_define_module_function(mCproton, "pn_selectable_fd", _wrap_pn_selectable_fd, -1);
+ rb_define_module_function(mCproton, "pn_selectable_capacity", _wrap_pn_selectable_capacity, -1);
+ rb_define_module_function(mCproton, "pn_selectable_pending", _wrap_pn_selectable_pending, -1);
+ rb_define_module_function(mCproton, "pn_selectable_deadline", _wrap_pn_selectable_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_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_free", _wrap_pn_selectable_free, -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)));