ext/cproton/cproton.c in qpid_proton-0.0.1 vs ext/cproton/cproton.c in qpid_proton-0.3
- old
+ new
@@ -1,8 +1,8 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
+ * Version 2.0.8
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
* changes to this file unless you know what you are doing--modify the SWIG
* interface file instead.
@@ -1789,36 +1789,58 @@
/* -------- TYPES TABLE (BEGIN) -------- */
#define SWIGTYPE_p_char swig_types[0]
#define SWIGTYPE_p_int swig_types[1]
-#define SWIGTYPE_p_p_char swig_types[2]
-#define SWIGTYPE_p_pn_atom_t swig_types[3]
-#define SWIGTYPE_p_pn_bytes_t swig_types[4]
-#define SWIGTYPE_p_pn_connection_t swig_types[5]
-#define SWIGTYPE_p_pn_connector_t swig_types[6]
-#define SWIGTYPE_p_pn_delivery_t swig_types[7]
-#define SWIGTYPE_p_pn_delivery_tag_t swig_types[8]
-#define SWIGTYPE_p_pn_disposition_t swig_types[9]
-#define SWIGTYPE_p_pn_driver_t swig_types[10]
-#define SWIGTYPE_p_pn_error_t swig_types[11]
-#define SWIGTYPE_p_pn_format_t swig_types[12]
-#define SWIGTYPE_p_pn_link_t swig_types[13]
-#define SWIGTYPE_p_pn_listener_t swig_types[14]
-#define SWIGTYPE_p_pn_message_t swig_types[15]
-#define SWIGTYPE_p_pn_messenger_t swig_types[16]
-#define SWIGTYPE_p_pn_sasl_outcome_t swig_types[17]
-#define SWIGTYPE_p_pn_sasl_state_t swig_types[18]
-#define SWIGTYPE_p_pn_sasl_t swig_types[19]
-#define SWIGTYPE_p_pn_session_t swig_types[20]
-#define SWIGTYPE_p_pn_transport_t swig_types[21]
-#define SWIGTYPE_p_time_t swig_types[22]
-#define SWIGTYPE_p_unsigned_char swig_types[23]
-#define SWIGTYPE_p_unsigned_int swig_types[24]
-#define SWIGTYPE_p_unsigned_long swig_types[25]
-static swig_type_info *swig_types[27];
-static swig_module_info swig_module = {swig_types, 26, 0, 0, 0, 0};
+#define SWIGTYPE_p_long_long swig_types[2]
+#define SWIGTYPE_p_p_char swig_types[3]
+#define SWIGTYPE_p_pn_accept_mode_t swig_types[4]
+#define SWIGTYPE_p_pn_activate_criteria_t swig_types[5]
+#define SWIGTYPE_p_pn_atom_t swig_types[6]
+#define SWIGTYPE_p_pn_atom_t_u swig_types[7]
+#define SWIGTYPE_p_pn_bytes_t swig_types[8]
+#define SWIGTYPE_p_pn_condition_t swig_types[9]
+#define SWIGTYPE_p_pn_connection_t swig_types[10]
+#define SWIGTYPE_p_pn_connector_t swig_types[11]
+#define SWIGTYPE_p_pn_data_t swig_types[12]
+#define SWIGTYPE_p_pn_decimal128_t swig_types[13]
+#define SWIGTYPE_p_pn_delivery_t swig_types[14]
+#define SWIGTYPE_p_pn_delivery_tag_t swig_types[15]
+#define SWIGTYPE_p_pn_disposition_t swig_types[16]
+#define SWIGTYPE_p_pn_driver_t swig_types[17]
+#define SWIGTYPE_p_pn_durability_t swig_types[18]
+#define SWIGTYPE_p_pn_error_t swig_types[19]
+#define SWIGTYPE_p_pn_expiry_policy_t swig_types[20]
+#define SWIGTYPE_p_pn_format_t swig_types[21]
+#define SWIGTYPE_p_pn_link_t swig_types[22]
+#define SWIGTYPE_p_pn_listener_t swig_types[23]
+#define SWIGTYPE_p_pn_message_t swig_types[24]
+#define SWIGTYPE_p_pn_messenger_t swig_types[25]
+#define SWIGTYPE_p_pn_sasl_outcome_t swig_types[26]
+#define SWIGTYPE_p_pn_sasl_state_t swig_types[27]
+#define SWIGTYPE_p_pn_sasl_t swig_types[28]
+#define SWIGTYPE_p_pn_session_t swig_types[29]
+#define SWIGTYPE_p_pn_ssl_domain_t swig_types[30]
+#define SWIGTYPE_p_pn_ssl_mode_t swig_types[31]
+#define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[32]
+#define SWIGTYPE_p_pn_ssl_t swig_types[33]
+#define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[34]
+#define SWIGTYPE_p_pn_status_t swig_types[35]
+#define SWIGTYPE_p_pn_subscription_t swig_types[36]
+#define SWIGTYPE_p_pn_terminus_t swig_types[37]
+#define SWIGTYPE_p_pn_terminus_type_t swig_types[38]
+#define SWIGTYPE_p_pn_transport_t swig_types[39]
+#define SWIGTYPE_p_pn_type_t swig_types[40]
+#define SWIGTYPE_p_pn_uuid_t swig_types[41]
+#define SWIGTYPE_p_short swig_types[42]
+#define SWIGTYPE_p_signed_char swig_types[43]
+#define SWIGTYPE_p_unsigned_char swig_types[44]
+#define SWIGTYPE_p_unsigned_int swig_types[45]
+#define SWIGTYPE_p_unsigned_long swig_types[46]
+#define SWIGTYPE_p_unsigned_short swig_types[47]
+static swig_type_info *swig_types[49];
+static swig_module_info swig_module = {swig_types, 48, 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) -------- */
@@ -1829,11 +1851,11 @@
#define SWIG_RUBY_THREAD_BEGIN_BLOCK
#define SWIG_RUBY_THREAD_END_BLOCK
-#define SWIGVERSION 0x020007
+#define SWIGVERSION 0x020008
#define SWIG_VERSION SWIGVERSION
#define SWIG_as_voidptr(a) (void *)((const void *)(a))
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
@@ -1842,10 +1864,11 @@
#include <proton/engine.h>
#include <proton/message.h>
#include <proton/sasl.h>
#include <proton/driver.h>
#include <proton/messenger.h>
+#include <proton/ssl.h>
#if !defined(RSTRING_LEN)
# define RSTRING_LEN(x) (RSTRING(X)->len)
# define RSTRING_PTR(x) (RSTRING(x)->ptr)
@@ -1911,11 +1934,11 @@
{
return Qnil;
}
-/*@SWIG:/usr/share/swig/2.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
+/*@SWIG:/usr/share/swig/2.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
{
VALUE obj = args[0];
VALUE type = TYPE(obj);
unsigned long *res = (unsigned long *)(args[1]);
@@ -1987,23 +2010,23 @@
return Qnil;
}
}
- int wrap_pn_recv(pn_link_t *link, char *OUTPUT, size_t *OUTPUT_SIZE) {
- ssize_t sz = pn_recv(link, OUTPUT, *OUTPUT_SIZE);
+ int wrap_pn_link_recv(pn_link_t *link, char *OUTPUT, size_t *OUTPUT_SIZE) {
+ ssize_t sz = pn_link_recv(link, OUTPUT, *OUTPUT_SIZE);
if (sz >= 0) {
*OUTPUT_SIZE = sz;
} else {
*OUTPUT_SIZE = 0;
}
return sz;
}
- int wrap_pn_output(pn_transport_t *transport, char *OUTPUT, size_t *OUTPUT_SIZE) {
- ssize_t sz = pn_output(transport, OUTPUT, *OUTPUT_SIZE);
+ int wrap_pn_transport_output(pn_transport_t *transport, char *OUTPUT, size_t *OUTPUT_SIZE) {
+ ssize_t sz = pn_transport_output(transport, OUTPUT, *OUTPUT_SIZE);
if (sz >= 0) {
*OUTPUT_SIZE = sz;
} else {
*OUTPUT_SIZE = 0;
}
@@ -2033,11 +2056,49 @@
}
return sz;
}
+SWIGINTERNINLINE VALUE
+SWIG_FromCharPtr(const char *cptr)
+{
+ return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
+}
+
+
SWIGINTERNINLINE VALUE
+SWIG_From_bool (bool value)
+{
+ return value ? Qtrue : Qfalse;
+}
+
+
+SWIGINTERN int
+SWIG_AsCharArray(VALUE obj, char *val, size_t size)
+{
+ char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
+ int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
+ if (SWIG_IsOK(res)) {
+ if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
+ if (csize <= size) {
+ if (val) {
+ if (csize) memcpy(val, cptr, csize*sizeof(char));
+ if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
+ }
+ if (alloc == SWIG_NEWOBJ) {
+ free((char*)cptr);
+ res = SWIG_DelNewMask(res);
+ }
+ return res;
+ }
+ if (alloc == SWIG_NEWOBJ) free((char*)cptr);
+ }
+ return SWIG_TypeError;
+}
+
+
+SWIGINTERNINLINE VALUE
SWIG_From_unsigned_SS_long (unsigned long value)
{
return ULONG2NUM(value);
}
@@ -2047,18 +2108,11 @@
{
return SWIG_From_unsigned_SS_long ((unsigned long)(value));
}
-SWIGINTERNINLINE VALUE
-SWIG_FromCharPtr(const char *cptr)
-{
- return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
-}
-
-
-/*@SWIG:/usr/share/swig/2.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
+/*@SWIG:/usr/share/swig/2.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
{
VALUE obj = args[0];
VALUE type = TYPE(obj);
long *res = (long *)(args[1]);
@@ -2099,14 +2153,66 @@
}
return res;
}
+/*@SWIG:/usr/share/swig/2.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
+SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE *args)
+{
+ VALUE obj = args[0];
+ VALUE type = TYPE(obj);
+ long long *res = (long long *)(args[1]);
+ *res = type == T_FIXNUM ? NUM2LL(obj) : rb_big2ll(obj);
+ return obj;
+}
+/*@SWIG@*/
+
+SWIGINTERN int
+SWIG_AsVal_long_SS_long (VALUE obj, long long *val)
+{
+ VALUE type = TYPE(obj);
+ if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
+ 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 (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_bool (bool value)
+SWIG_From_unsigned_SS_int (unsigned int value)
+{
+ return SWIG_From_unsigned_SS_long (value);
+}
+
+
+SWIGINTERN int
+SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
{
- return value ? Qtrue : Qfalse;
+ unsigned long v;
+ int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
+ if (SWIG_IsOK(res)) {
+ if ((v > UINT_MAX)) {
+ return SWIG_OverflowError;
+ } else {
+ if (val) *val = (unsigned int)(v);
+ }
+ }
+ return res;
}
SWIGINTERN int
SWIG_AsVal_bool (VALUE obj, bool *val)
@@ -2148,33 +2254,160 @@
}
}
return res;
}
+typedef union {
+ bool as_bool;
+ uint8_t as_ubyte;
+ int8_t as_byte;
+ uint16_t as_ushort;
+ int16_t as_short;
+ uint32_t as_uint;
+ int32_t as_int;
+ pn_char_t as_char;
+ uint64_t as_ulong;
+ int64_t as_long;
+ pn_timestamp_t as_timestamp;
+ float as_float;
+ double as_double;
+ pn_decimal32_t as_decimal32;
+ pn_decimal64_t as_decimal64;
+ pn_decimal128_t as_decimal128;
+ pn_uuid_t as_uuid;
+ pn_bytes_t as_bytes;
+ size_t as_count;
+} pn_atom_t_u;
+
+
+SWIGINTERN int
+SWIG_AsVal_signed_SS_char (VALUE obj, signed char *val)
+{
+ long v;
+ int res = SWIG_AsVal_long (obj, &v);
+ if (SWIG_IsOK(res)) {
+ if ((v < SCHAR_MIN || v > SCHAR_MAX)) {
+ return SWIG_OverflowError;
+ } else {
+ if (val) *val = (signed char)(v);
+ }
+ }
+ return res;
+}
+
+
SWIGINTERNINLINE VALUE
-SWIG_From_unsigned_SS_int (unsigned int value)
+SWIG_From_signed_SS_char (signed char value)
{
- return SWIG_From_unsigned_SS_long (value);
+ return SWIG_From_long (value);
}
SWIGINTERN int
-SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
+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 > UINT_MAX)) {
+ if ((v > USHRT_MAX)) {
return SWIG_OverflowError;
} else {
- if (val) *val = (unsigned int)(v);
+ 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)) {
+ if ((v < SHRT_MIN || v > SHRT_MAX)) {
+ return SWIG_OverflowError;
+ } else {
+ if (val) *val = (short)(v);
+ }
+ }
+ return res;
+}
+
+
+SWIGINTERNINLINE VALUE
+SWIG_From_short (short value)
+{
+ return SWIG_From_long (value);
+}
+
+
+#include <float.h>
+
+
+/*@SWIG:/usr/share/swig/2.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
+SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
+{
+ VALUE obj = args[0];
+ VALUE type = TYPE(obj);
+ double *res = (double *)(args[1]);
+ *res = NUM2DBL(obj);
+ return obj;
+}
+/*@SWIG@*/
+
+SWIGINTERN int
+SWIG_AsVal_double (VALUE obj, double *val)
+{
+ VALUE type = TYPE(obj);
+ if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) {
+ double v;
+ VALUE a[2];
+ a[0] = obj;
+ a[1] = (VALUE)(&v);
+ if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
+ if (val) *val = v;
+ return SWIG_OK;
+ }
+ }
+ return SWIG_TypeError;
+}
+
+
+SWIGINTERN int
+SWIG_AsVal_float (VALUE obj, float *val)
+{
+ double v;
+ int res = SWIG_AsVal_double (obj, &v);
+ if (SWIG_IsOK(res)) {
+ if ((v < -FLT_MAX || v > FLT_MAX)) {
+ return SWIG_OverflowError;
+ } else {
+ if (val) *val = (float)(v);
+ }
+ }
+ return res;
+}
+
+
+ #define SWIG_From_double rb_float_new
+
+
+SWIGINTERNINLINE VALUE
+SWIG_From_float (float value)
+{
+ return SWIG_From_double (value);
+}
+
SWIGINTERN VALUE
_wrap_pn_message_load(int argc, VALUE *argv, VALUE self) {
pn_message_t *arg1 = (pn_message_t *) 0 ;
char *arg2 = (char *) 0 ;
size_t arg3 ;
@@ -2608,11 +2841,11 @@
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_send(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_send(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
char *arg2 = (char *) 0 ;
size_t arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -2626,31 +2859,31 @@
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_send", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_send", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, &size2, &alloc2);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_send", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_link_send", 2, argv[1] ));
}
arg2 = (char *)(buf2);
arg3 = (size_t)(size2 - 1);
- result = (ssize_t)pn_send(arg1,arg2,arg3);
+ result = (ssize_t)pn_link_send(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_recv(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_recv(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
char *arg2 = (char *) 0 ;
size_t *arg3 = (size_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -2664,22 +2897,22 @@
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 *","wrap_pn_recv", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","wrap_pn_link_recv", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
res2 = SWIG_AsVal_size_t (argv[1], &n2);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","wrap_pn_recv", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","wrap_pn_link_recv", 2, argv[1] ));
}
buff2= (char *)malloc((n2+1)*sizeof(char));
arg2 = (char *)(buff2);
size2 = (size_t)(n2);
arg3 = &size2;
- result = (int)wrap_pn_recv(arg1,arg2,arg3);
+ result = (int)wrap_pn_link_recv(arg1,arg2,arg3);
vresult = SWIG_From_int((int)(result));
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3));
if (buff2) free((char*)buff2);
return vresult;
fail:
@@ -2687,11 +2920,11 @@
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_input(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_transport_input(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 ;
@@ -2705,31 +2938,31 @@
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_input", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_input", 1, argv[0] ));
}
arg1 = (pn_transport_t *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, &size2, &alloc2);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_input", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_transport_input", 2, argv[1] ));
}
arg2 = (char *)(buf2);
arg3 = (size_t)(size2 - 1);
- result = (ssize_t)pn_input(arg1,arg2,arg3);
+ result = (ssize_t)pn_transport_input(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_output(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_transport_output(int argc, VALUE *argv, VALUE self) {
pn_transport_t *arg1 = (pn_transport_t *) 0 ;
char *arg2 = (char *) 0 ;
size_t *arg3 = (size_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -2743,22 +2976,22 @@
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 *","wrap_pn_output", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","wrap_pn_transport_output", 1, argv[0] ));
}
arg1 = (pn_transport_t *)(argp1);
res2 = SWIG_AsVal_size_t (argv[1], &n2);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","wrap_pn_output", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","wrap_pn_transport_output", 2, argv[1] ));
}
buff2= (char *)malloc((n2+1)*sizeof(char));
arg2 = (char *)(buff2);
size2 = (size_t)(n2);
arg3 = &size2;
- result = (int)wrap_pn_output(arg1,arg2,arg3);
+ result = (int)wrap_pn_transport_output(arg1,arg2,arg3);
vresult = SWIG_From_int((int)(result));
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3));
if (buff2) free((char*)buff2);
return vresult;
fail:
@@ -2881,10 +3114,286 @@
if (buff3) free((char*)buff3);
return Qnil;
}
+SWIGINTERN VALUE
+_wrap_pn_ssl_get_cipher_name(int argc, VALUE *argv, VALUE self) {
+ pn_ssl_t *arg1 = (pn_ssl_t *) 0 ;
+ char *arg2 = (char *) 0 ;
+ size_t arg3 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ size_t size2 ;
+ char *buff2 = 0 ;
+ bool result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_get_cipher_name", 1, argv[0] ));
+ }
+ arg1 = (pn_ssl_t *)(argp1);
+ res2 = SWIG_AsVal_size_t (argv[1], &size2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t MAX_OUTPUT_SIZE)","pn_ssl_get_cipher_name", 2, argv[1] ));
+ }
+ buff2= (char *)malloc((size2+1)*sizeof(char));
+ arg3 = (size_t)(size2);
+ arg2 = (char *)(buff2);
+ result = (bool)pn_ssl_get_cipher_name(arg1,arg2,arg3);
+ vresult = SWIG_From_bool((bool)(result));
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtr(arg2));
+ if (buff2) free((char*)buff2);
+ return vresult;
+fail:
+ if (buff2) free((char*)buff2);
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_ssl_get_protocol_name(int argc, VALUE *argv, VALUE self) {
+ pn_ssl_t *arg1 = (pn_ssl_t *) 0 ;
+ char *arg2 = (char *) 0 ;
+ size_t arg3 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ size_t size2 ;
+ char *buff2 = 0 ;
+ bool result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_get_protocol_name", 1, argv[0] ));
+ }
+ arg1 = (pn_ssl_t *)(argp1);
+ res2 = SWIG_AsVal_size_t (argv[1], &size2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t MAX_OUTPUT_SIZE)","pn_ssl_get_protocol_name", 2, argv[1] ));
+ }
+ buff2= (char *)malloc((size2+1)*sizeof(char));
+ arg3 = (size_t)(size2);
+ arg2 = (char *)(buff2);
+ result = (bool)pn_ssl_get_protocol_name(arg1,arg2,arg3);
+ vresult = SWIG_From_bool((bool)(result));
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtr(arg2));
+ if (buff2) free((char*)buff2);
+ return vresult;
+fail:
+ if (buff2) free((char*)buff2);
+ return Qnil;
+}
+
+
+static swig_class SwigClassPn_decimal128_t;
+
+SWIGINTERN VALUE
+_wrap_pn_decimal128_t_bytes_set(int argc, VALUE *argv, VALUE self) {
+ pn_decimal128_t *arg1 = (pn_decimal128_t *) 0 ;
+ char *arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ char temp2[16] ;
+ int res2 ;
+
+ 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_decimal128_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_decimal128_t *","bytes", 1, self ));
+ }
+ arg1 = (pn_decimal128_t *)(argp1);
+ res2 = SWIG_AsCharArray(argv[0], temp2, 16);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","bytes", 2, argv[0] ));
+ }
+ arg2 = (char *)(temp2);
+ if (arg2) memcpy(arg1->bytes,arg2,16*sizeof(char));
+ else memset(arg1->bytes,0,16*sizeof(char));
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_decimal128_t_bytes_get(int argc, VALUE *argv, VALUE self) {
+ pn_decimal128_t *arg1 = (pn_decimal128_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_decimal128_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_decimal128_t *","bytes", 1, self ));
+ }
+ arg1 = (pn_decimal128_t *)(argp1);
+ result = (char *)(char *) ((arg1)->bytes);
+ {
+ size_t size = 16;
+
+ while (size && (result[size - 1] == '\0')) --size;
+
+ vresult = SWIG_FromCharPtrAndSize(result, size);
+ }
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
+SWIGINTERN VALUE
+_wrap_pn_decimal128_t_allocate(VALUE self) {
+#else
+ SWIGINTERN VALUE
+ _wrap_pn_decimal128_t_allocate(int argc, VALUE *argv, VALUE self) {
+#endif
+
+
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_pn_decimal128_t);
+#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
+ rb_obj_call_init(vresult, argc, argv);
+#endif
+ return vresult;
+ }
+
+
+SWIGINTERN VALUE
+_wrap_new_pn_decimal128_t(int argc, VALUE *argv, VALUE self) {
+ pn_decimal128_t *result = 0 ;
+
+ if ((argc < 0) || (argc > 0)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
+ }
+ result = (pn_decimal128_t *)calloc(1, sizeof(pn_decimal128_t));
+ DATA_PTR(self) = result;
+ return self;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN void
+free_pn_decimal128_t(pn_decimal128_t *arg1) {
+ free((char *) arg1);
+}
+
+static swig_class SwigClassPn_uuid_t;
+
+SWIGINTERN VALUE
+_wrap_pn_uuid_t_bytes_set(int argc, VALUE *argv, VALUE self) {
+ pn_uuid_t *arg1 = (pn_uuid_t *) 0 ;
+ char *arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ char temp2[16] ;
+ int res2 ;
+
+ 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_uuid_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_uuid_t *","bytes", 1, self ));
+ }
+ arg1 = (pn_uuid_t *)(argp1);
+ res2 = SWIG_AsCharArray(argv[0], temp2, 16);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","bytes", 2, argv[0] ));
+ }
+ arg2 = (char *)(temp2);
+ if (arg2) memcpy(arg1->bytes,arg2,16*sizeof(char));
+ else memset(arg1->bytes,0,16*sizeof(char));
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_uuid_t_bytes_get(int argc, VALUE *argv, VALUE self) {
+ pn_uuid_t *arg1 = (pn_uuid_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_uuid_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_uuid_t *","bytes", 1, self ));
+ }
+ arg1 = (pn_uuid_t *)(argp1);
+ result = (char *)(char *) ((arg1)->bytes);
+ {
+ size_t size = 16;
+
+ while (size && (result[size - 1] == '\0')) --size;
+
+ vresult = SWIG_FromCharPtrAndSize(result, size);
+ }
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
+SWIGINTERN VALUE
+_wrap_pn_uuid_t_allocate(VALUE self) {
+#else
+ SWIGINTERN VALUE
+ _wrap_pn_uuid_t_allocate(int argc, VALUE *argv, VALUE self) {
+#endif
+
+
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_pn_uuid_t);
+#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
+ rb_obj_call_init(vresult, argc, argv);
+#endif
+ return vresult;
+ }
+
+
+SWIGINTERN VALUE
+_wrap_new_pn_uuid_t(int argc, VALUE *argv, VALUE self) {
+ pn_uuid_t *result = 0 ;
+
+ if ((argc < 0) || (argc > 0)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
+ }
+ result = (pn_uuid_t *)calloc(1, sizeof(pn_uuid_t));
+ DATA_PTR(self) = result;
+ return self;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN void
+free_pn_uuid_t(pn_uuid_t *arg1) {
+ free((char *) arg1);
+}
+
static swig_class SwigClassPn_bytes_t;
/*
Document-method: Cproton::pn_bytes_t.size
@@ -3127,10 +3636,87 @@
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
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++) {
+ if (x == values[j]) return 1;
+ }
+ return 0;
+}
+
+
+static int check_state(int x) {
+ static int values[] = { PN_LOCAL_UNINIT,PN_LOCAL_ACTIVE,PN_LOCAL_CLOSED,PN_REMOTE_UNINIT,PN_REMOTE_ACTIVE,PN_REMOTE_CLOSED };
+ static int size = sizeof(values);
+ int i,j;
+ for (i = 0, j = 0; i < size; i+=sizeof(int),j++) {
+ if (x == values[j]) return 1;
+ }
+ return 0;
+}
+
+
+static int check_disposition(int x) {
+ static int values[] = { 0,PN_RECEIVED,PN_ACCEPTED,PN_REJECTED,PN_RELEASED,PN_MODIFIED };
+ static int size = sizeof(values);
+ int i,j;
+ for (i = 0, j = 0; i < size; i+=sizeof(int),j++) {
+ if (x == values[j]) return 1;
+ }
+ return 0;
+}
+
+
+static int check_trace(int x) {
+ static int values[] = { PN_TRACE_OFF,PN_TRACE_RAW,PN_TRACE_FRM,PN_TRACE_DRV };
+ static int size = sizeof(values);
+ int i,j;
+ for (i = 0, j = 0; i < size; i+=sizeof(int),j++) {
+ if (x == values[j]) return 1;
+ }
+ return 0;
+}
+
+
+static int check_format(int x) {
+ static int values[] = { PN_DATA,PN_TEXT,PN_AMQP,PN_JSON };
+ static int size = sizeof(values);
+ int i,j;
+ for (i = 0, j = 0; i < size; i+=sizeof(int),j++) {
+ if (x == values[j]) return 1;
+ }
+ return 0;
+}
+
+
+static int check_sasl_outcome(int x) {
+ static int values[] = { PN_SASL_NONE,PN_SASL_OK,PN_SASL_AUTH,PN_SASL_SYS,PN_SASL_PERM,PN_SASL_TEMP };
+ static int size = sizeof(values);
+ int i,j;
+ for (i = 0, j = 0; i < size; i+=sizeof(int),j++) {
+ if (x == values[j]) return 1;
+ }
+ return 0;
+}
+
+
+static int check_sasl_state(int x) {
+ static int values[] = { PN_SASL_CONF,PN_SASL_IDLE,PN_SASL_STEP,PN_SASL_PASS,PN_SASL_FAIL };
+ static int size = sizeof(values);
+ int i,j;
+ for (i = 0, j = 0; i < size; i+=sizeof(int),j++) {
+ if (x == values[j]) return 1;
+ }
+ return 0;
+}
+
SWIGINTERN VALUE
_wrap_pn_code(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
@@ -3143,10 +3729,12 @@
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pn_code", 1, argv[0] ));
}
arg1 = (int)(val1);
+ SWIG_contract_assert((check_error(arg1)), "Contract violation: require: (check_error(arg1))");
+
result = (char *)pn_code(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
@@ -3160,10 +3748,12 @@
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (pn_error_t *)pn_error();
+ SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
@@ -3181,10 +3771,12 @@
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( "", "pn_error_t *","pn_error_free", 1, argv[0] ));
}
arg1 = (pn_error_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_error_free(arg1);
return Qnil;
fail:
return Qnil;
}
@@ -3202,10 +3794,12 @@
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( "", "pn_error_t *","pn_error_clear", 1, argv[0] ));
}
arg1 = (pn_error_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_error_clear(arg1);
return Qnil;
fail:
return Qnil;
}
@@ -3242,10 +3836,12 @@
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_error_set", 3, argv[2] ));
}
arg3 = (char *)(buf3);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_error_set(arg1,arg2,(char const *)arg3);
vresult = SWIG_From_int((int)(result));
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
return vresult;
fail:
@@ -3253,10 +3849,45 @@
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_error_from_errno(int argc, VALUE *argv, VALUE self) {
+ pn_error_t *arg1 = (pn_error_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_error_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_error_t *","pn_error_from_errno", 1, argv[0] ));
+ }
+ arg1 = (pn_error_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_error_from_errno", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ result = (int)pn_error_from_errno(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_error_code(int argc, VALUE *argv, VALUE self) {
pn_error_t *arg1 = (pn_error_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int result;
@@ -3268,10 +3899,12 @@
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( "", "pn_error_t *","pn_error_code", 1, argv[0] ));
}
arg1 = (pn_error_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_error_code(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -3292,10 +3925,12 @@
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( "", "pn_error_t *","pn_error_text", 1, argv[0] ));
}
arg1 = (pn_error_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (char *)pn_error_text(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
@@ -3480,10 +4115,12 @@
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;
}
@@ -3503,10 +4140,12 @@
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_state", 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);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -3527,20 +4166,22 @@
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_container(int argc, VALUE *argv, VALUE self) {
+_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;
@@ -3548,14 +4189,16 @@
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_container", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_get_container", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
- result = (char *)pn_connection_container(arg1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (char *)pn_connection_get_container(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
@@ -3582,21 +4225,23 @@
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] ));
}
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_connection_hostname(int argc, VALUE *argv, VALUE self) {
+_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 ;
char *result = 0 ;
VALUE vresult = Qnil;
@@ -3604,14 +4249,16 @@
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_hostname", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_get_hostname", 1, argv[0] ));
}
arg1 = (pn_connection_t *)(argp1);
- result = (char *)pn_connection_hostname(arg1);
+ 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;
}
@@ -3638,10 +4285,12 @@
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;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
@@ -3663,10 +4312,12 @@
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_container", 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);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
@@ -3687,19 +4338,117 @@
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_hostname", 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);
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 ;
+ 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_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 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_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_desired_capabilities", 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;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_connection_remote_offered_capabilities(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_data_t *result = 0 ;
+ 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_offered_capabilities", 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;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_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_remote_desired_capabilities", 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 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_work_head(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
pn_delivery_t *result = 0 ;
@@ -3711,10 +4460,12 @@
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] ));
}
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;
@@ -3735,10 +4486,12 @@
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_work_next", 1, argv[0] ));
}
arg1 = (pn_delivery_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;
fail:
return Qnil;
@@ -3759,36 +4512,88 @@
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] ));
}
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;
fail:
return Qnil;
}
SWIGINTERN VALUE
_wrap_pn_transport(int argc, VALUE *argv, VALUE self) {
- pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+ 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_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_transport_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_transport", 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_transport_t *)pn_transport(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_transport_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;
}
@@ -3815,10 +4620,12 @@
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;
@@ -3847,10 +4654,12 @@
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;
@@ -3879,10 +4688,12 @@
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 );
return vresult;
fail:
return Qnil;
@@ -3911,19 +4722,42 @@
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 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_connection_reset(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_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_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] ));
+ }
+ arg1 = (pn_connection_t *)(argp1);
+ pn_connection_reset(arg1);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_connection_open(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -3933,10 +4767,12 @@
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] ));
}
arg1 = (pn_connection_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_connection_open(arg1);
return Qnil;
fail:
return Qnil;
}
@@ -3954,10 +4790,12 @@
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] ));
}
arg1 = (pn_connection_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_connection_close(arg1);
return Qnil;
fail:
return Qnil;
}
@@ -3975,18 +4813,71 @@
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] ));
}
arg1 = (pn_connection_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_connection_free(arg1);
return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
+_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 ;
+ 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_get_context", 1, argv[0] ));
+ }
+ arg1 = (pn_connection_t *)(argp1);
+ result = (void *)pn_connection_get_context(arg1);
+ {
+ vresult = (VALUE) result;
+ }
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_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 ;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_context", 1, argv[0] ));
+ }
+ arg1 = (pn_connection_t *)(argp1);
+ {
+ arg2 = (void *) argv[1];
+ }
+ pn_connection_set_context(arg1,arg2);
+ 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 ;
@@ -3998,58 +4889,54 @@
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_error", 1, argv[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_tick(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_transport_tick(int argc, VALUE *argv, VALUE self) {
pn_transport_t *arg1 = (pn_transport_t *) 0 ;
- time_t arg2 ;
+ pn_timestamp_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
- void *argp2 ;
- int res2 = 0 ;
- time_t result;
+ 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_tick", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_tick", 1, argv[0] ));
}
arg1 = (pn_transport_t *)(argp1);
- {
- res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_time_t, 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "time_t","pn_tick", 2, argv[1] ));
- }
- if (!argp2) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "time_t","pn_tick", 2, argv[1]));
- } else {
- arg2 = *((time_t *)(argp2));
- }
- }
- result = pn_tick(arg1,arg2);
- vresult = SWIG_NewPointerObj((time_t *)memcpy((time_t *)malloc(sizeof(time_t)),&result,sizeof(time_t)), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0 );
+ 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_trace(int argc, VALUE *argv, VALUE self) {
+_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 ;
int val2 ;
@@ -4058,26 +4945,230 @@
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_trace", 1, argv[0] ));
+ 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_trace", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_trace_t","pn_transport_trace", 2, argv[1] ));
}
arg2 = (pn_trace_t)(val2);
- pn_trace(arg1,arg2);
+ 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_get_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_transport_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] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ result = (uint32_t)pn_transport_get_max_frame(arg1);
+ vresult = SWIG_From_unsigned_SS_int((unsigned int)(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 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_set_max_frame", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_int(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_transport_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] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ result = (uint32_t)pn_transport_get_remote_max_frame(arg1);
+ vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
+ 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 ;
+ 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_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_int((unsigned int)(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 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_set_idle_timeout", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_int(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_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_int((unsigned int)(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((unsigned 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((unsigned long)(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 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -4087,10 +5178,12 @@
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;
}
@@ -4110,10 +5203,12 @@
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_state", 1, argv[0] ));
}
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;
@@ -4134,171 +5229,242 @@
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_error", 1, argv[0] ));
}
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_sender(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_session_connection(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 ;
+ pn_connection_t *result = 0 ;
VALUE vresult = Qnil;
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ 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_sender", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_connection", 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);
- result = (pn_link_t *)pn_sender(arg1,(char const *)arg2);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_link_t, 0 | 0 );
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ 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_receiver(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_session_open(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;
+ 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_receiver", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_open", 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);
- result = (pn_link_t *)pn_receiver(arg1,(char const *)arg2);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_link_t, 0 | 0 );
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
- return vresult;
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ pn_session_open(arg1);
+ return Qnil;
fail:
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_get_connection(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_session_close(int argc, VALUE *argv, VALUE self) {
pn_session_t *arg1 = (pn_session_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_session_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_get_connection", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_close", 1, argv[0] ));
}
arg1 = (pn_session_t *)(argp1);
- result = (pn_connection_t *)pn_get_connection(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 | 0 );
- return vresult;
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ pn_session_close(arg1);
+ return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session_open(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_session_free(int argc, VALUE *argv, VALUE self) {
pn_session_t *arg1 = (pn_session_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_session_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_session_t *","pn_session_free", 1, argv[0] ));
}
arg1 = (pn_session_t *)(argp1);
- pn_session_open(arg1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ pn_session_free(arg1);
return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session_close(int argc, VALUE *argv, VALUE self) {
+_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_close", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_get_context", 1, argv[0] ));
}
arg1 = (pn_session_t *)(argp1);
- pn_session_close(arg1);
+ result = (void *)pn_session_get_context(arg1);
+ {
+ vresult = (VALUE) result;
+ }
+ 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 ;
+ 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_session_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_set_context", 1, argv[0] ));
+ }
+ arg1 = (pn_session_t *)(argp1);
+ {
+ arg2 = (void *) argv[1];
+ }
+ pn_session_set_context(arg1,arg2);
+ return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_session_free(int argc, VALUE *argv, VALUE self) {
+_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 < 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_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] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_sender", 1, argv[0] ));
}
arg1 = (pn_session_t *)(argp1);
- pn_session_free(arg1);
+ 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);
+ 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 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 ;
+ 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_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
@@ -4315,20 +5481,22 @@
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] ));
}
arg1 = (pn_link_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (char *)pn_link_name(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_is_sender(int argc, VALUE *argv, VALUE self) {
+_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 ;
bool result;
VALUE vresult = Qnil;
@@ -4336,23 +5504,25 @@
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_is_sender", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_is_sender", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- result = (bool)pn_is_sender(arg1);
+ 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_is_receiver(int argc, VALUE *argv, VALUE self) {
+_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;
@@ -4360,14 +5530,16 @@
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_is_receiver", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_is_receiver", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- result = (bool)pn_is_receiver(arg1);
+ 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;
}
@@ -4387,10 +5559,12 @@
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] ));
}
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:
return Qnil;
@@ -4411,20 +5585,22 @@
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_get_session(int argc, VALUE *argv, VALUE self) {
+_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;
@@ -4432,231 +5608,205 @@
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_get_session", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_session", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- result = (pn_session_t *)pn_get_session(arg1);
+ 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_target(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_source(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- char *result = 0 ;
+ pn_terminus_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_target", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_source", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- result = (char *)pn_target(arg1);
- vresult = SWIG_FromCharPtr((const char *)result);
+ result = (pn_terminus_t *)pn_link_source(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_terminus_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_source(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_target(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- char *result = 0 ;
+ pn_terminus_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_source", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_target", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- result = (char *)pn_source(arg1);
- vresult = SWIG_FromCharPtr((const char *)result);
+ result = (pn_terminus_t *)pn_link_target(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_terminus_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_set_source(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_remote_source(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
- char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
+ pn_terminus_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 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_set_source", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_source", 1, argv[0] ));
}
arg1 = (pn_link_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_set_source", 2, argv[1] ));
- }
- arg2 = (char *)(buf2);
- pn_set_source(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_set_target(int argc, VALUE *argv, VALUE self) {
- pn_link_t *arg1 = (pn_link_t *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
+ 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_link_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_set_target", 1, argv[0] ));
- }
- arg1 = (pn_link_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_set_target", 2, argv[1] ));
- }
- arg2 = (char *)(buf2);
- pn_set_target(arg1,(char const *)arg2);
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
- return Qnil;
+ result = (pn_terminus_t *)pn_link_remote_source(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_terminus_t, 0 | 0 );
+ return vresult;
fail:
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_remote_source(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_remote_target(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- char *result = 0 ;
+ pn_terminus_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_remote_source", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_target", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- result = (char *)pn_remote_source(arg1);
- vresult = SWIG_FromCharPtr((const char *)result);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (pn_terminus_t *)pn_link_remote_target(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_terminus_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_remote_target(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_current(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- char *result = 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_remote_target", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_current", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- result = (char *)pn_remote_target(arg1);
- vresult = SWIG_FromCharPtr((const char *)result);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (pn_delivery_t *)pn_link_current(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_current(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_advance(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 ;
+ 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_current", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_advance", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- result = (pn_delivery_t *)pn_current(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 | 0 );
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (bool)pn_link_advance(arg1);
+ vresult = SWIG_From_bool((bool)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_advance(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_credit(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- bool 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_advance", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_credit", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- result = (bool)pn_advance(arg1);
- vresult = SWIG_From_bool((bool)(result));
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (int)pn_link_credit(arg1);
+ vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_credit(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_queued(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;
@@ -4664,23 +5814,25 @@
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_credit", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_queued", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- result = (int)pn_credit(arg1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (int)pn_link_queued(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_queued(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 ;
int result;
VALUE vresult = Qnil;
@@ -4688,23 +5840,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_queued", 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 = (int)pn_queued(arg1);
+ result = (int)pn_link_available(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_unsettled(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_unsettled(int argc, VALUE *argv, VALUE self) {
pn_link_t *arg1 = (pn_link_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int result;
VALUE vresult = Qnil;
@@ -4712,14 +5864,16 @@
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", 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);
- result = (int)pn_unsettled(arg1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (int)pn_link_unsettled(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
@@ -4739,10 +5893,12 @@
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] ));
}
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 );
return vresult;
fail:
return Qnil;
@@ -4763,10 +5919,12 @@
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;
@@ -4785,10 +5943,12 @@
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] ));
}
arg1 = (pn_link_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_link_open(arg1);
return Qnil;
fail:
return Qnil;
}
@@ -4806,10 +5966,12 @@
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] ));
}
arg1 = (pn_link_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_link_close(arg1);
return Qnil;
fail:
return Qnil;
}
@@ -4827,40 +5989,72 @@
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_free", 1, argv[0] ));
}
arg1 = (pn_link_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_drained(int argc, VALUE *argv, VALUE self) {
+_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_drained", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_get_context", 1, argv[0] ));
}
arg1 = (pn_link_t *)(argp1);
- pn_drained(arg1);
+ result = (void *)pn_link_get_context(arg1);
+ {
+ vresult = (VALUE) result;
+ }
+ 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 ;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_set_context", 1, argv[0] ));
+ }
+ arg1 = (pn_link_t *)(argp1);
+ {
+ arg2 = (void *) argv[1];
+ }
+ pn_link_set_context(arg1,arg2);
+ return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_flow(int argc, VALUE *argv, VALUE self) {
+_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 ;
int val2 ;
@@ -4869,28 +6063,51 @@
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_flow", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_offered", 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( "", "int","pn_flow", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_link_offered", 2, argv[1] ));
}
arg2 = (int)(val2);
- pn_flow(arg1,arg2);
+ pn_link_offered(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_drain(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 ;
+
+ 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)");
+
+ pn_link_drained(arg1);
+ return Qnil;
+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 ;
int val2 ;
int ecode2 = 0 ;
@@ -4898,27 +6115,527 @@
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_drain", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_flow", 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( "", "int","pn_drain", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_link_flow", 2, argv[1] ));
}
arg2 = (int)(val2);
- pn_drain(arg1,arg2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ pn_link_flow(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_link(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_link_drain(int argc, VALUE *argv, VALUE self) {
+ pn_link_t *arg1 = (pn_link_t *) 0 ;
+ int arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_drain", 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( "", "int","pn_link_drain", 2, argv[1] ));
+ }
+ arg2 = (int)(val2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ pn_link_drain(arg1,arg2);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_terminus_get_type(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_terminus_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_terminus_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_get_type", 1, argv[0] ));
+ }
+ arg1 = (pn_terminus_t *)(argp1);
+ result = (pn_terminus_type_t)pn_terminus_get_type(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_terminus_set_type(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
+ pn_terminus_type_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_type", 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_terminus_type_t","pn_terminus_set_type", 2, argv[1] ));
+ }
+ arg2 = (pn_terminus_type_t)(val2);
+ result = (int)pn_terminus_set_type(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_terminus_get_address(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_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_terminus_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_get_address", 1, argv[0] ));
+ }
+ arg1 = (pn_terminus_t *)(argp1);
+ result = (char *)pn_terminus_get_address(arg1);
+ vresult = SWIG_FromCharPtr((const char *)result);
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_terminus_set_address(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_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_terminus_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_set_address", 1, argv[0] ));
+ }
+ arg1 = (pn_terminus_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_terminus_set_address", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ result = (int)pn_terminus_set_address(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_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;
+ 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 *","pn_terminus_get_durability", 1, argv[0] ));
+ }
+ arg1 = (pn_terminus_t *)(argp1);
+ result = (pn_durability_t)pn_terminus_get_durability(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_terminus_set_durability(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
+ pn_durability_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_durability", 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_durability_t","pn_terminus_set_durability", 2, argv[1] ));
+ }
+ arg2 = (pn_durability_t)(val2);
+ result = (int)pn_terminus_set_durability(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_terminus_get_expiry_policy(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_expiry_policy_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 *","pn_terminus_get_expiry_policy", 1, argv[0] ));
+ }
+ arg1 = (pn_terminus_t *)(argp1);
+ result = (pn_expiry_policy_t)pn_terminus_get_expiry_policy(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_terminus_set_expiry_policy(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
+ pn_expiry_policy_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_expiry_policy", 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_expiry_policy_t","pn_terminus_set_expiry_policy", 2, argv[1] ));
+ }
+ arg2 = (pn_expiry_policy_t)(val2);
+ result = (int)pn_terminus_set_expiry_policy(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_terminus_get_timeout(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_seconds_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 *","pn_terminus_get_timeout", 1, argv[0] ));
+ }
+ arg1 = (pn_terminus_t *)(argp1);
+ result = (pn_seconds_t)pn_terminus_get_timeout(arg1);
+ vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_terminus_set_timeout(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
+ pn_seconds_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned 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_timeout", 1, argv[0] ));
+ }
+ arg1 = (pn_terminus_t *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_seconds_t","pn_terminus_set_timeout", 2, argv[1] ));
+ }
+ arg2 = (pn_seconds_t)(val2);
+ result = (int)pn_terminus_set_timeout(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_terminus_is_dynamic(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_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_terminus_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_is_dynamic", 1, argv[0] ));
+ }
+ arg1 = (pn_terminus_t *)(argp1);
+ result = (bool)pn_terminus_is_dynamic(arg1);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_terminus_set_dynamic(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_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_terminus_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_set_dynamic", 1, argv[0] ));
+ }
+ arg1 = (pn_terminus_t *)(argp1);
+ ecode2 = SWIG_AsVal_bool(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_terminus_set_dynamic", 2, argv[1] ));
+ }
+ arg2 = (bool)(val2);
+ result = (int)pn_terminus_set_dynamic(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_terminus_properties(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_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_terminus_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_properties", 1, argv[0] ));
+ }
+ arg1 = (pn_terminus_t *)(argp1);
+ result = (pn_data_t *)pn_terminus_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_terminus_capabilities(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_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_terminus_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_capabilities", 1, argv[0] ));
+ }
+ arg1 = (pn_terminus_t *)(argp1);
+ result = (pn_data_t *)pn_terminus_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_terminus_outcomes(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_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_terminus_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_outcomes", 1, argv[0] ));
+ }
+ arg1 = (pn_terminus_t *)(argp1);
+ result = (pn_data_t *)pn_terminus_outcomes(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_terminus_filter(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_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_terminus_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_filter", 1, argv[0] ));
+ }
+ arg1 = (pn_terminus_t *)(argp1);
+ result = (pn_data_t *)pn_terminus_filter(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_terminus_copy(int argc, VALUE *argv, VALUE self) {
+ pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
+ pn_terminus_t *arg2 = (pn_terminus_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ 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_terminus_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] ));
+ }
+ arg1 = (pn_terminus_t *)(argp1);
+ 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;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_delivery_link(int argc, VALUE *argv, VALUE self) {
pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
pn_link_t *result = 0 ;
VALUE vresult = Qnil;
@@ -4926,71 +6643,77 @@
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_link", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_link", 1, argv[0] ));
}
arg1 = (pn_delivery_t *)(argp1);
- result = (pn_link_t *)pn_link(arg1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (pn_link_t *)pn_delivery_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_local_disposition(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_delivery_local_state(int argc, VALUE *argv, VALUE self) {
pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int result;
+ pn_disposition_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_delivery_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_local_disposition", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_local_state", 1, argv[0] ));
}
arg1 = (pn_delivery_t *)(argp1);
- result = (int)pn_local_disposition(arg1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (pn_disposition_t)pn_delivery_local_state(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_remote_disposition(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_delivery_remote_state(int argc, VALUE *argv, VALUE self) {
pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int result;
+ pn_disposition_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_delivery_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_remote_disposition", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_remote_state", 1, argv[0] ));
}
arg1 = (pn_delivery_t *)(argp1);
- result = (int)pn_remote_disposition(arg1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (pn_disposition_t)pn_delivery_remote_state(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_remote_settled(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_delivery_settled(int argc, VALUE *argv, VALUE self) {
pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool result;
VALUE vresult = Qnil;
@@ -4998,23 +6721,25 @@
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_remote_settled", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_settled", 1, argv[0] ));
}
arg1 = (pn_delivery_t *)(argp1);
- result = (bool)pn_remote_settled(arg1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (bool)pn_delivery_settled(arg1);
vresult = SWIG_From_bool((bool)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_pending(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_delivery_pending(int argc, VALUE *argv, VALUE self) {
pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
size_t result;
VALUE vresult = Qnil;
@@ -5022,23 +6747,25 @@
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_pending", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_pending", 1, argv[0] ));
}
arg1 = (pn_delivery_t *)(argp1);
- result = (size_t)pn_pending(arg1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (size_t)pn_delivery_pending(arg1);
vresult = SWIG_From_size_t((size_t)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_writable(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_delivery_partial(int argc, VALUE *argv, VALUE self) {
pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool result;
VALUE vresult = Qnil;
@@ -5046,23 +6773,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_delivery_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_writable", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_partial", 1, argv[0] ));
}
arg1 = (pn_delivery_t *)(argp1);
- result = (bool)pn_writable(arg1);
+ result = (bool)pn_delivery_partial(arg1);
vresult = SWIG_From_bool((bool)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_readable(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_delivery_writable(int argc, VALUE *argv, VALUE self) {
pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool result;
VALUE vresult = Qnil;
@@ -5070,23 +6797,25 @@
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_readable", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_writable", 1, argv[0] ));
}
arg1 = (pn_delivery_t *)(argp1);
- result = (bool)pn_readable(arg1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (bool)pn_delivery_writable(arg1);
vresult = SWIG_From_bool((bool)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_updated(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_delivery_readable(int argc, VALUE *argv, VALUE self) {
pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool result;
VALUE vresult = Qnil;
@@ -5094,44 +6823,51 @@
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_updated", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_readable", 1, argv[0] ));
}
arg1 = (pn_delivery_t *)(argp1);
- result = (bool)pn_updated(arg1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (bool)pn_delivery_readable(arg1);
vresult = SWIG_From_bool((bool)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_clear(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_delivery_updated(int argc, VALUE *argv, VALUE self) {
pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ bool result;
+ VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_clear", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_updated", 1, argv[0] ));
}
arg1 = (pn_delivery_t *)(argp1);
- pn_clear(arg1);
- return Qnil;
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (bool)pn_delivery_updated(arg1);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_disposition(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_delivery_update(int argc, VALUE *argv, VALUE self) {
pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
pn_disposition_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
@@ -5140,47 +6876,74 @@
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_disposition", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_update", 1, argv[0] ));
}
arg1 = (pn_delivery_t *)(argp1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_disposition_t","pn_disposition", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_disposition_t","pn_delivery_update", 2, argv[1] ));
}
arg2 = (pn_disposition_t)(val2);
- pn_disposition(arg1,arg2);
+ SWIG_contract_assert((arg1!=NULL)&&(check_disposition(arg2)), "Contract violation: require: (arg1!=NULL)&&(check_disposition(arg2))");
+
+ pn_delivery_update(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_settle(int argc, VALUE *argv, VALUE self) {
+_wrap_pn_delivery_clear(int argc, VALUE *argv, VALUE self) {
pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_settle", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_clear", 1, argv[0] ));
}
arg1 = (pn_delivery_t *)(argp1);
- pn_settle(arg1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ pn_delivery_clear(arg1);
return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_delivery_settle(int argc, VALUE *argv, VALUE self) {
+ pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+
+ 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_settle", 1, argv[0] ));
+ }
+ arg1 = (pn_delivery_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ pn_delivery_settle(arg1);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_delivery_dump(int argc, VALUE *argv, VALUE self) {
pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -5190,18 +6953,474 @@
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_dump", 1, argv[0] ));
}
arg1 = (pn_delivery_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_delivery_dump(arg1);
return Qnil;
fail:
return Qnil;
}
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 = (VALUE) 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 ;
+ 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_delivery_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_set_context", 1, argv[0] ));
+ }
+ arg1 = (pn_delivery_t *)(argp1);
+ {
+ arg2 = (void *) argv[1];
+ }
+ pn_delivery_set_context(arg1,arg2);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_connection_condition(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_condition_t *result = 0 ;
+ 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_condition", 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 );
+ 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 ;
+ 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_connection_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] ));
+ }
+ 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_condition(int argc, VALUE *argv, VALUE self) {
+ pn_session_t *arg1 = (pn_session_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 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_condition", 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 );
+ 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 ;
+ 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 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_remote_condition", 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 );
+ 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 ;
+ 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_link_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] ));
+ }
+ 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_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_link_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] ));
+ }
+ 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_condition_is_set(int argc, VALUE *argv, VALUE self) {
+ pn_condition_t *arg1 = (pn_condition_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ bool result;
+ 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 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_is_set", 1, argv[0] ));
+ }
+ 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_condition_clear(int argc, VALUE *argv, VALUE self) {
+ pn_condition_t *arg1 = (pn_condition_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_condition_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] ));
+ }
+ arg1 = (pn_condition_t *)(argp1);
+ pn_condition_clear(arg1);
+ 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 ;
+ 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 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_get_name", 1, argv[0] ));
+ }
+ arg1 = (pn_condition_t *)(argp1);
+ result = (char *)pn_condition_get_name(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 ;
+ 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_condition_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] ));
+ }
+ 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_condition_get_description(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_condition_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] ));
+ }
+ 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_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_condition_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] ));
+ }
+ 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_description", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ result = (int)pn_condition_set_description(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_condition_info(int argc, VALUE *argv, VALUE self) {
+ pn_condition_t *arg1 = (pn_condition_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_condition_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] ));
+ }
+ 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_condition_is_redirect(int argc, VALUE *argv, VALUE self) {
+ pn_condition_t *arg1 = (pn_condition_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 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_is_redirect", 1, argv[0] ));
+ }
+ arg1 = (pn_condition_t *)(argp1);
+ result = (bool)pn_condition_is_redirect(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 ;
+ 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 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_redirect_host", 1, argv[0] ));
+ }
+ 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_condition_redirect_port(int argc, VALUE *argv, VALUE self) {
+ pn_condition_t *arg1 = (pn_condition_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 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_redirect_port", 1, argv[0] ));
+ }
+ 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_message(int argc, VALUE *argv, VALUE self) {
pn_message_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
@@ -5227,10 +7446,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_free", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_message_free(arg1);
return Qnil;
fail:
return Qnil;
}
@@ -5248,10 +7469,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_clear", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_message_clear(arg1);
return Qnil;
fail:
return Qnil;
}
@@ -5271,10 +7494,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_errno", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_errno(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -5295,19 +7520,77 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_error", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (char *)pn_message_error(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_message_is_inferred(int argc, VALUE *argv, VALUE self) {
+ pn_message_t *arg1 = (pn_message_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_message_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_is_inferred", 1, argv[0] ));
+ }
+ arg1 = (pn_message_t *)(argp1);
+ result = (bool)pn_message_is_inferred(arg1);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_message_set_inferred(int argc, VALUE *argv, VALUE self) {
+ pn_message_t *arg1 = (pn_message_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_message_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_inferred", 1, argv[0] ));
+ }
+ arg1 = (pn_message_t *)(argp1);
+ ecode2 = SWIG_AsVal_bool(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_message_set_inferred", 2, argv[1] ));
+ }
+ arg2 = (bool)(val2);
+ result = (int)pn_message_set_inferred(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_message_is_durable(int argc, VALUE *argv, VALUE self) {
pn_message_t *arg1 = (pn_message_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool result;
@@ -5319,10 +7602,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_is_durable", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (bool)pn_message_is_durable(arg1);
vresult = SWIG_From_bool((bool)(result));
return vresult;
fail:
return Qnil;
@@ -5351,10 +7636,12 @@
ecode2 = SWIG_AsVal_bool(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_message_set_durable", 2, argv[1] ));
}
arg2 = (bool)(val2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_durable(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -5375,10 +7662,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_priority", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (uint8_t)pn_message_get_priority(arg1);
vresult = SWIG_From_unsigned_SS_char((unsigned char)(result));
return vresult;
fail:
return Qnil;
@@ -5407,10 +7696,12 @@
ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","pn_message_set_priority", 2, argv[1] ));
}
arg2 = (uint8_t)(val2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_priority(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -5431,10 +7722,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_ttl", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (pn_millis_t)pn_message_get_ttl(arg1);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
return vresult;
fail:
return Qnil;
@@ -5463,10 +7756,12 @@
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_millis_t","pn_message_set_ttl", 2, argv[1] ));
}
arg2 = (pn_millis_t)(val2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_ttl(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -5487,10 +7782,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_is_first_acquirer", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (bool)pn_message_is_first_acquirer(arg1);
vresult = SWIG_From_bool((bool)(result));
return vresult;
fail:
return Qnil;
@@ -5519,10 +7816,12 @@
ecode2 = SWIG_AsVal_bool(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_message_set_first_acquirer", 2, argv[1] ));
}
arg2 = (bool)(val2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_first_acquirer(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -5543,10 +7842,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_delivery_count", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (uint32_t)pn_message_get_delivery_count(arg1);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
return vresult;
fail:
return Qnil;
@@ -5575,19 +7876,45 @@
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","pn_message_set_delivery_count", 2, argv[1] ));
}
arg2 = (uint32_t)(val2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_delivery_count(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_message_id(int argc, VALUE *argv, VALUE self) {
+ pn_message_t *arg1 = (pn_message_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_message_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_id", 1, argv[0] ));
+ }
+ arg1 = (pn_message_t *)(argp1);
+ result = (pn_data_t *)pn_message_id(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_message_get_id(int argc, VALUE *argv, VALUE self) {
pn_message_t *arg1 = (pn_message_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
pn_atom_t result;
@@ -5599,12 +7926,69 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_id", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = pn_message_get_id(arg1);
- vresult = SWIG_NewPointerObj((pn_atom_t *)memcpy((pn_atom_t *)malloc(sizeof(pn_atom_t)),&result,sizeof(pn_atom_t)), SWIGTYPE_p_pn_atom_t, SWIG_POINTER_OWN | 0 );
+ {
+ switch((&result)->type)
+ {
+ case PN_NULL:
+ vresult = Qnil;
+ break;
+
+ case PN_BOOL:
+ vresult = (&result)->u.as_bool ? Qtrue : Qfalse;
+ break;
+
+ case PN_BYTE:
+ vresult = INT2NUM((&result)->u.as_byte);
+ break;
+
+ case PN_UBYTE:
+ vresult = UINT2NUM((&result)->u.as_ubyte);
+ break;
+
+ case PN_SHORT:
+ vresult = INT2NUM((&result)->u.as_short);
+ break;
+
+ case PN_USHORT:
+ vresult = UINT2NUM((&result)->u.as_ushort);
+ break;
+
+ case PN_INT:
+ vresult = INT2NUM((&result)->u.as_int);
+ break;
+
+ case PN_UINT:
+ vresult = UINT2NUM((&result)->u.as_uint);
+ break;
+
+ case PN_LONG:
+ vresult = LL2NUM((&result)->u.as_long);
+ break;
+
+ case PN_ULONG:
+ vresult = ULL2NUM((&result)->u.as_ulong);
+ break;
+
+ case PN_FLOAT:
+ vresult = rb_float_new((&result)->u.as_float);
+ break;
+
+ case PN_DOUBLE:
+ vresult = rb_float_new((&result)->u.as_double);
+ break;
+
+ case PN_STRING:
+ vresult = rb_str_new((&result)->u.as_bytes.start, (&result)->u.as_bytes.size);
+ break;
+ }
+ }
return vresult;
fail:
return Qnil;
}
@@ -5613,12 +7997,10 @@
_wrap_pn_message_set_id(int argc, VALUE *argv, VALUE self) {
pn_message_t *arg1 = (pn_message_t *) 0 ;
pn_atom_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
- void *argp2 ;
- 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;
@@ -5627,20 +8009,61 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_id", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
{
- res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_pn_atom_t, 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_atom_t","pn_message_set_id", 2, argv[1] ));
- }
- if (!argp2) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_atom_t","pn_message_set_id", 2, argv[1]));
- } else {
- arg2 = *((pn_atom_t *)(argp2));
+ if (argv[1] == Qnil)
+ {
+ (&arg2)->type = PN_NULL;
}
+ else
+ {
+ switch(TYPE(argv[1]))
+ {
+ case T_TRUE:
+ (&arg2)->type = PN_BOOL;
+ (&arg2)->u.as_bool = true;
+ break;
+
+ case T_FALSE:
+ (&arg2)->type = PN_BOOL;
+ (&arg2)->u.as_bool = false;
+ break;
+
+ case T_FLOAT:
+ (&arg2)->type = PN_FLOAT;
+ (&arg2)->u.as_float = NUM2DBL(argv[1]);
+ break;
+
+ case T_STRING:
+ (&arg2)->type = PN_STRING;
+ (&arg2)->u.as_bytes.start = RSTRING_PTR(argv[1]);
+ if ((&arg2)->u.as_bytes.start)
+ {
+ (&arg2)->u.as_bytes.size = RSTRING_LEN(argv[1]);
+ }
+ else
+ {
+ (&arg2)->u.as_bytes.size = 0;
+ }
+ break;
+
+ case T_FIXNUM:
+ (&arg2)->type = PN_INT;
+ (&arg2)->u.as_int = FIX2LONG(argv[1]);
+ break;
+
+ case T_BIGNUM:
+ (&arg2)->type = PN_LONG;
+ (&arg2)->u.as_long = NUM2LL(argv[1]);
+ break;
+
+ }
+ }
}
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_id(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -5661,10 +8084,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_user_id", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = pn_message_get_user_id(arg1);
{
vresult = rb_str_new((&result)->start, (&result)->size);
}
return vresult;
@@ -5700,10 +8125,12 @@
return NULL;
}
(&arg2)->size = RSTRING_LEN(argv[1]);
}
}
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_user_id(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -5724,10 +8151,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_address", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (char *)pn_message_get_address(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
@@ -5757,10 +8186,12 @@
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_message_set_address", 2, argv[1] ));
}
arg2 = (char *)(buf2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_address(arg1,(char const *)arg2);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
@@ -5783,10 +8214,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_subject", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (char *)pn_message_get_subject(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
@@ -5816,10 +8249,12 @@
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_message_set_subject", 2, argv[1] ));
}
arg2 = (char *)(buf2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_subject(arg1,(char const *)arg2);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
@@ -5842,10 +8277,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_reply_to", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (char *)pn_message_get_reply_to(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
@@ -5875,10 +8312,12 @@
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_message_set_reply_to", 2, argv[1] ));
}
arg2 = (char *)(buf2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_reply_to(arg1,(char const *)arg2);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
@@ -5886,10 +8325,34 @@
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_message_correlation_id(int argc, VALUE *argv, VALUE self) {
+ pn_message_t *arg1 = (pn_message_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_message_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_correlation_id", 1, argv[0] ));
+ }
+ arg1 = (pn_message_t *)(argp1);
+ result = (pn_data_t *)pn_message_correlation_id(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_message_get_correlation_id(int argc, VALUE *argv, VALUE self) {
pn_message_t *arg1 = (pn_message_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
pn_atom_t result;
@@ -5901,12 +8364,69 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_correlation_id", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = pn_message_get_correlation_id(arg1);
- vresult = SWIG_NewPointerObj((pn_atom_t *)memcpy((pn_atom_t *)malloc(sizeof(pn_atom_t)),&result,sizeof(pn_atom_t)), SWIGTYPE_p_pn_atom_t, SWIG_POINTER_OWN | 0 );
+ {
+ switch((&result)->type)
+ {
+ case PN_NULL:
+ vresult = Qnil;
+ break;
+
+ case PN_BOOL:
+ vresult = (&result)->u.as_bool ? Qtrue : Qfalse;
+ break;
+
+ case PN_BYTE:
+ vresult = INT2NUM((&result)->u.as_byte);
+ break;
+
+ case PN_UBYTE:
+ vresult = UINT2NUM((&result)->u.as_ubyte);
+ break;
+
+ case PN_SHORT:
+ vresult = INT2NUM((&result)->u.as_short);
+ break;
+
+ case PN_USHORT:
+ vresult = UINT2NUM((&result)->u.as_ushort);
+ break;
+
+ case PN_INT:
+ vresult = INT2NUM((&result)->u.as_int);
+ break;
+
+ case PN_UINT:
+ vresult = UINT2NUM((&result)->u.as_uint);
+ break;
+
+ case PN_LONG:
+ vresult = LL2NUM((&result)->u.as_long);
+ break;
+
+ case PN_ULONG:
+ vresult = ULL2NUM((&result)->u.as_ulong);
+ break;
+
+ case PN_FLOAT:
+ vresult = rb_float_new((&result)->u.as_float);
+ break;
+
+ case PN_DOUBLE:
+ vresult = rb_float_new((&result)->u.as_double);
+ break;
+
+ case PN_STRING:
+ vresult = rb_str_new((&result)->u.as_bytes.start, (&result)->u.as_bytes.size);
+ break;
+ }
+ }
return vresult;
fail:
return Qnil;
}
@@ -5915,12 +8435,10 @@
_wrap_pn_message_set_correlation_id(int argc, VALUE *argv, VALUE self) {
pn_message_t *arg1 = (pn_message_t *) 0 ;
pn_atom_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
- void *argp2 ;
- 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;
@@ -5929,20 +8447,61 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_correlation_id", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
{
- res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_pn_atom_t, 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_atom_t","pn_message_set_correlation_id", 2, argv[1] ));
- }
- if (!argp2) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_atom_t","pn_message_set_correlation_id", 2, argv[1]));
- } else {
- arg2 = *((pn_atom_t *)(argp2));
+ if (argv[1] == Qnil)
+ {
+ (&arg2)->type = PN_NULL;
}
+ else
+ {
+ switch(TYPE(argv[1]))
+ {
+ case T_TRUE:
+ (&arg2)->type = PN_BOOL;
+ (&arg2)->u.as_bool = true;
+ break;
+
+ case T_FALSE:
+ (&arg2)->type = PN_BOOL;
+ (&arg2)->u.as_bool = false;
+ break;
+
+ case T_FLOAT:
+ (&arg2)->type = PN_FLOAT;
+ (&arg2)->u.as_float = NUM2DBL(argv[1]);
+ break;
+
+ case T_STRING:
+ (&arg2)->type = PN_STRING;
+ (&arg2)->u.as_bytes.start = RSTRING_PTR(argv[1]);
+ if ((&arg2)->u.as_bytes.start)
+ {
+ (&arg2)->u.as_bytes.size = RSTRING_LEN(argv[1]);
+ }
+ else
+ {
+ (&arg2)->u.as_bytes.size = 0;
+ }
+ break;
+
+ case T_FIXNUM:
+ (&arg2)->type = PN_INT;
+ (&arg2)->u.as_int = FIX2LONG(argv[1]);
+ break;
+
+ case T_BIGNUM:
+ (&arg2)->type = PN_LONG;
+ (&arg2)->u.as_long = NUM2LL(argv[1]);
+ break;
+
+ }
+ }
}
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_correlation_id(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -5963,10 +8522,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_content_type", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (char *)pn_message_get_content_type(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
@@ -5996,10 +8557,12 @@
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_message_set_content_type", 2, argv[1] ));
}
arg2 = (char *)(buf2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_content_type(arg1,(char const *)arg2);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
@@ -6022,10 +8585,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_content_encoding", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (char *)pn_message_get_content_encoding(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
@@ -6055,10 +8620,12 @@
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_message_set_content_encoding", 2, argv[1] ));
}
arg2 = (char *)(buf2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_content_encoding(arg1,(char const *)arg2);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
@@ -6081,12 +8648,14 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_expiry_time", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (pn_timestamp_t)pn_message_get_expiry_time(arg1);
- vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ vresult = SWIG_From_long_SS_long((long long)(result));
return vresult;
fail:
return Qnil;
}
@@ -6095,11 +8664,11 @@
_wrap_pn_message_set_expiry_time(int argc, VALUE *argv, VALUE self) {
pn_message_t *arg1 = (pn_message_t *) 0 ;
pn_timestamp_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
- unsigned long val2 ;
+ long long val2 ;
int ecode2 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
@@ -6108,15 +8677,17 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_expiry_time", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
- ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
+ 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_message_set_expiry_time", 2, argv[1] ));
}
arg2 = (pn_timestamp_t)(val2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_expiry_time(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -6137,12 +8708,14 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_creation_time", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (pn_timestamp_t)pn_message_get_creation_time(arg1);
- vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ vresult = SWIG_From_long_SS_long((long long)(result));
return vresult;
fail:
return Qnil;
}
@@ -6151,11 +8724,11 @@
_wrap_pn_message_set_creation_time(int argc, VALUE *argv, VALUE self) {
pn_message_t *arg1 = (pn_message_t *) 0 ;
pn_timestamp_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
- unsigned long val2 ;
+ long long val2 ;
int ecode2 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
@@ -6164,15 +8737,17 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_creation_time", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
- ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
+ 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_message_set_creation_time", 2, argv[1] ));
}
arg2 = (pn_timestamp_t)(val2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_creation_time(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -6193,10 +8768,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_group_id", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (char *)pn_message_get_group_id(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
@@ -6226,10 +8803,12 @@
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_message_set_group_id", 2, argv[1] ));
}
arg2 = (char *)(buf2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_group_id(arg1,(char const *)arg2);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
@@ -6252,10 +8831,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_group_sequence", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (pn_sequence_t)pn_message_get_group_sequence(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -6284,10 +8865,12 @@
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_sequence_t","pn_message_set_group_sequence", 2, argv[1] ));
}
arg2 = (pn_sequence_t)(val2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_group_sequence(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -6308,10 +8891,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_reply_to_group_id", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (char *)pn_message_get_reply_to_group_id(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
@@ -6341,10 +8926,12 @@
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_message_set_reply_to_group_id", 2, argv[1] ));
}
arg2 = (char *)(buf2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_message_set_reply_to_group_id(arg1,(char const *)arg2);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
@@ -6367,11 +8954,15 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_get_format", 1, argv[0] ));
}
arg1 = (pn_message_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (pn_format_t)pn_message_get_format(arg1);
+ SWIG_contract_assert((check_format(result)), "Contract violation: ensure: (check_format(result))");
+
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
@@ -6399,19 +8990,117 @@
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_format_t","pn_message_set_format", 2, argv[1] ));
}
arg2 = (pn_format_t)(val2);
+ SWIG_contract_assert((arg1!=NULL)&&(check_format(arg2)), "Contract violation: require: (arg1!=NULL)&&(check_format(arg2))");
+
result = (int)pn_message_set_format(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_message_instructions(int argc, VALUE *argv, VALUE self) {
+ pn_message_t *arg1 = (pn_message_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_message_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_instructions", 1, argv[0] ));
+ }
+ arg1 = (pn_message_t *)(argp1);
+ result = (pn_data_t *)pn_message_instructions(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_message_annotations(int argc, VALUE *argv, VALUE self) {
+ pn_message_t *arg1 = (pn_message_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_message_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_annotations", 1, argv[0] ));
+ }
+ arg1 = (pn_message_t *)(argp1);
+ result = (pn_data_t *)pn_message_annotations(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_message_properties(int argc, VALUE *argv, VALUE self) {
+ pn_message_t *arg1 = (pn_message_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_message_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_properties", 1, argv[0] ));
+ }
+ arg1 = (pn_message_t *)(argp1);
+ result = (pn_data_t *)pn_message_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_message_body(int argc, VALUE *argv, VALUE self) {
+ pn_message_t *arg1 = (pn_message_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_message_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_body", 1, argv[0] ));
+ }
+ arg1 = (pn_message_t *)(argp1);
+ result = (pn_data_t *)pn_message_body(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_message_decode(int argc, VALUE *argv, VALUE self) {
pn_message_t *arg1 = (pn_message_t *) 0 ;
char *arg2 = (char *) 0 ;
size_t arg3 ;
void *argp1 = 0 ;
@@ -6440,10 +9129,12 @@
ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_message_decode", 3, argv[2] ));
}
arg3 = (size_t)(val3);
+ SWIG_contract_assert((arg1!=NULL)&&(arg3>=0), "Contract violation: require: (arg1!=NULL)&&(arg3>=0)");
+
result = (int)pn_message_decode(arg1,(char const *)arg2,arg3);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
@@ -6452,17 +9143,25 @@
}
SWIGINTERN VALUE
_wrap_pn_sasl(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
pn_sasl_t *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;
}
- result = (pn_sasl_t *)pn_sasl();
+ 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_sasl", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ result = (pn_sasl_t *)pn_sasl(arg1);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_sasl_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
@@ -6482,11 +9181,15 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_state", 1, argv[0] ));
}
arg1 = (pn_sasl_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (pn_sasl_state_t)pn_sasl_state(arg1);
+ SWIG_contract_assert((check_sasl_state(result)), "Contract violation: ensure: (check_sasl_state(result))");
+
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
@@ -6513,10 +9216,12 @@
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_sasl_mechanisms", 2, argv[1] ));
}
arg2 = (char *)(buf2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_sasl_mechanisms(arg1,(char const *)arg2);
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
@@ -6538,10 +9243,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_remote_mechanisms", 1, argv[0] ));
}
arg1 = (pn_sasl_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (char *)pn_sasl_remote_mechanisms(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
@@ -6560,10 +9267,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_client", 1, argv[0] ));
}
arg1 = (pn_sasl_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_sasl_client(arg1);
return Qnil;
fail:
return Qnil;
}
@@ -6581,10 +9290,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_server", 1, argv[0] ));
}
arg1 = (pn_sasl_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_sasl_server(arg1);
return Qnil;
fail:
return Qnil;
}
@@ -6620,10 +9331,12 @@
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_sasl_plain", 3, argv[2] ));
}
arg3 = (char *)(buf3);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_sasl_plain(arg1,(char const *)arg2,(char const *)arg3);
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
return Qnil;
fail:
@@ -6647,10 +9360,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_pending", 1, argv[0] ));
}
arg1 = (pn_sasl_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (size_t)pn_sasl_pending(arg1);
vresult = SWIG_From_size_t((size_t)(result));
return vresult;
fail:
return Qnil;
@@ -6688,10 +9403,12 @@
ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_sasl_recv", 3, argv[2] ));
}
arg3 = (size_t)(val3);
+ SWIG_contract_assert((arg1!=NULL)&&(arg2!=NULL)&&(arg3>0), "Contract violation: require: (arg1!=NULL)&&(arg2!=NULL)&&(arg3>0)");
+
result = (ssize_t)pn_sasl_recv(arg1,arg2,arg3);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
@@ -6731,10 +9448,12 @@
ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_sasl_send", 3, argv[2] ));
}
arg3 = (size_t)(val3);
+ SWIG_contract_assert((arg1!=NULL)&&(arg2!=NULL)&&(arg3>0), "Contract violation: require: (arg1!=NULL)&&(arg2!=NULL)&&(arg3>0)");
+
result = (ssize_t)pn_sasl_send(arg1,(char const *)arg2,arg3);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
@@ -6763,10 +9482,12 @@
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_sasl_outcome_t","pn_sasl_done", 2, argv[1] ));
}
arg2 = (pn_sasl_outcome_t)(val2);
+ SWIG_contract_assert((arg1!=NULL)&&(check_sasl_outcome(arg2)), "Contract violation: require: (arg1!=NULL)&&(check_sasl_outcome(arg2))");
+
pn_sasl_done(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
@@ -6786,164 +9507,82 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_outcome", 1, argv[0] ));
}
arg1 = (pn_sasl_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (pn_sasl_outcome_t)pn_sasl_outcome(arg1);
+ SWIG_contract_assert((check_sasl_outcome(result)), "Contract violation: ensure: (check_sasl_outcome(result))");
+
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_sasl_input(int argc, VALUE *argv, VALUE self) {
- pn_sasl_t *arg1 = (pn_sasl_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 ;
- ssize_t result;
+_wrap_pn_driver(int argc, VALUE *argv, VALUE self) {
+ pn_driver_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 < 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_sasl_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_input", 1, argv[0] ));
- }
- arg1 = (pn_sasl_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_sasl_input", 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_sasl_input", 3, argv[2] ));
- }
- arg3 = (size_t)(val3);
- result = (ssize_t)pn_sasl_input(arg1,arg2,arg3);
- vresult = SWIG_From_int((int)(result));
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ result = (pn_driver_t *)pn_driver();
+ SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
+
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_driver_t, 0 | 0 );
return vresult;
fail:
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_sasl_output(int argc, VALUE *argv, VALUE self) {
- pn_sasl_t *arg1 = (pn_sasl_t *) 0 ;
- char *arg2 = (char *) 0 ;
- size_t arg3 ;
+_wrap_pn_driver_errno(int argc, VALUE *argv, VALUE self) {
+ pn_driver_t *arg1 = (pn_driver_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- size_t val3 ;
- int ecode3 = 0 ;
- ssize_t result;
+ 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 < 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_sasl_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_output", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_driver_errno", 1, argv[0] ));
}
- arg1 = (pn_sasl_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_sasl_output", 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_sasl_output", 3, argv[2] ));
- }
- arg3 = (size_t)(val3);
- result = (ssize_t)pn_sasl_output(arg1,arg2,arg3);
+ arg1 = (pn_driver_t *)(argp1);
+ result = (int)pn_driver_errno(arg1);
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_sasl_trace(int argc, VALUE *argv, VALUE self) {
- pn_sasl_t *arg1 = (pn_sasl_t *) 0 ;
- pn_trace_t arg2 ;
+_wrap_pn_driver_error(int argc, VALUE *argv, VALUE self) {
+ pn_driver_t *arg1 = (pn_driver_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
+ char *result = 0 ;
+ VALUE vresult = Qnil;
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_trace", 1, argv[0] ));
- }
- arg1 = (pn_sasl_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_sasl_trace", 2, argv[1] ));
- }
- arg2 = (pn_trace_t)(val2);
- pn_sasl_trace(arg1,arg2);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_sasl_free(int argc, VALUE *argv, VALUE self) {
- pn_sasl_t *arg1 = (pn_sasl_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_sasl_t, 0 | 0 );
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_free", 1, argv[0] ));
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_driver_error", 1, argv[0] ));
}
- arg1 = (pn_sasl_t *)(argp1);
- pn_sasl_free(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_driver(int argc, VALUE *argv, VALUE self) {
- pn_driver_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_driver_t *)pn_driver();
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_driver_t, 0 | 0 );
+ arg1 = (pn_driver_t *)(argp1);
+ result = (char *)pn_driver_error(arg1);
+ vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
@@ -6968,10 +9607,12 @@
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_trace_t","pn_driver_trace", 2, argv[1] ));
}
arg2 = (pn_trace_t)(val2);
+ SWIG_contract_assert((arg1!=NULL)&&(check_trace(arg2)), "Contract violation: require: (arg1!=NULL)&&(check_trace(arg2))");
+
pn_driver_trace(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
@@ -6980,21 +9621,26 @@
SWIGINTERN VALUE
_wrap_pn_driver_wakeup(int argc, VALUE *argv, VALUE self) {
pn_driver_t *arg1 = (pn_driver_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_driver_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_driver_wakeup", 1, argv[0] ));
}
arg1 = (pn_driver_t *)(argp1);
- pn_driver_wakeup(arg1);
- return Qnil;
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
+ result = (int)pn_driver_wakeup(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
fail:
return Qnil;
}
@@ -7004,10 +9650,12 @@
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 );
@@ -7018,12 +9666,15 @@
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_driver_wait", 2, argv[1] ));
}
arg2 = (int)(val2);
- pn_driver_wait(arg1,arg2);
- return Qnil;
+ SWIG_contract_assert((arg1!=NULL)&&(arg2>=-1), "Contract violation: require: (arg1!=NULL)&&(arg2>=-1)");
+
+ result = (int)pn_driver_wait(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
fail:
return Qnil;
}
@@ -7041,10 +9692,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_driver_listener", 1, argv[0] ));
}
arg1 = (pn_driver_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (pn_listener_t *)pn_driver_listener(arg1);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_listener_t, 0 | 0 );
return vresult;
fail:
return Qnil;
@@ -7065,10 +9718,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_driver_connector", 1, argv[0] ));
}
arg1 = (pn_driver_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (pn_connector_t *)pn_driver_connector(arg1);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connector_t, 0 | 0 );
return vresult;
fail:
return Qnil;
@@ -7087,10 +9742,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_driver_free", 1, argv[0] ));
}
arg1 = (pn_driver_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_driver_free(arg1);
return Qnil;
fail:
return Qnil;
}
@@ -7132,10 +9789,12 @@
}
arg3 = (char *)(buf3);
{
arg4 = (void *) argv[3];
}
+ SWIG_contract_assert((arg1!=NULL)&&(arg2!=NULL)&&(arg3!=NULL), "Contract violation: require: (arg1!=NULL)&&(arg2!=NULL)&&(arg3!=NULL)");
+
result = (pn_listener_t *)pn_listener(arg1,(char const *)arg2,(char const *)arg3,arg4);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_listener_t, 0 | 0 );
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
return vresult;
@@ -7172,19 +9831,69 @@
}
arg2 = (int)(val2);
{
arg3 = (void *) argv[2];
}
+ SWIG_contract_assert((arg1!=NULL)&&(arg2>=0), "Contract violation: require: (arg1!=NULL)&&(arg2>=0)");
+
result = (pn_listener_t *)pn_listener_fd(arg1,arg2,arg3);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_listener_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_listener_head(int argc, VALUE *argv, VALUE self) {
+ pn_driver_t *arg1 = (pn_driver_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_listener_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_driver_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_listener_head", 1, argv[0] ));
+ }
+ arg1 = (pn_driver_t *)(argp1);
+ result = (pn_listener_t *)pn_listener_head(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_listener_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_listener_next(int argc, VALUE *argv, VALUE self) {
+ pn_listener_t *arg1 = (pn_listener_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_listener_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_listener_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_listener_t *","pn_listener_next", 1, argv[0] ));
+ }
+ arg1 = (pn_listener_t *)(argp1);
+ result = (pn_listener_t *)pn_listener_next(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_listener_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_listener_trace(int argc, VALUE *argv, VALUE self) {
pn_listener_t *arg1 = (pn_listener_t *) 0 ;
pn_trace_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -7202,10 +9911,12 @@
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_trace_t","pn_listener_trace", 2, argv[1] ));
}
arg2 = (pn_trace_t)(val2);
+ SWIG_contract_assert((arg1!=NULL)&&(check_trace(arg2)), "Contract violation: require: (arg1!=NULL)&&(check_trace(arg2))");
+
pn_listener_trace(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
@@ -7225,11 +9936,15 @@
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_accept", 1, argv[0] ));
}
arg1 = (pn_listener_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (pn_connector_t *)pn_listener_accept(arg1);
+ SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connector_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
@@ -7249,10 +9964,12 @@
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_context", 1, argv[0] ));
}
arg1 = (pn_listener_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (void *)pn_listener_context(arg1);
{
vresult = (VALUE) result;
}
return vresult;
@@ -7260,10 +9977,35 @@
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_listener_set_context(int argc, VALUE *argv, VALUE self) {
+ pn_listener_t *arg1 = (pn_listener_t *) 0 ;
+ void *arg2 = (void *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_listener_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_listener_t *","pn_listener_set_context", 1, argv[0] ));
+ }
+ arg1 = (pn_listener_t *)(argp1);
+ {
+ arg2 = (void *) argv[1];
+ }
+ pn_listener_set_context(arg1,arg2);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_listener_close(int argc, VALUE *argv, VALUE self) {
pn_listener_t *arg1 = (pn_listener_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -7273,10 +10015,12 @@
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_close", 1, argv[0] ));
}
arg1 = (pn_listener_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_listener_close(arg1);
return Qnil;
fail:
return Qnil;
}
@@ -7294,10 +10038,12 @@
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_free", 1, argv[0] ));
}
arg1 = (pn_listener_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_listener_free(arg1);
return Qnil;
fail:
return Qnil;
}
@@ -7339,11 +10085,15 @@
}
arg3 = (char *)(buf3);
{
arg4 = (void *) argv[3];
}
+ SWIG_contract_assert((arg1!=NULL)&&(arg2!=NULL)&&(arg3!=NULL), "Contract violation: require: (arg1!=NULL)&&(arg2!=NULL)&&(arg3!=NULL)");
+
result = (pn_connector_t *)pn_connector(arg1,(char const *)arg2,(char const *)arg3,arg4);
+ SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connector_t, 0 | 0 );
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
return vresult;
fail:
@@ -7379,19 +10129,71 @@
}
arg2 = (int)(val2);
{
arg3 = (void *) argv[2];
}
+ SWIG_contract_assert((arg1!=NULL)&&(arg2>=0), "Contract violation: require: (arg1!=NULL)&&(arg2>=0)");
+
result = (pn_connector_t *)pn_connector_fd(arg1,arg2,arg3);
+ SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connector_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_connector_head(int argc, VALUE *argv, VALUE self) {
+ pn_driver_t *arg1 = (pn_driver_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_connector_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_driver_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_connector_head", 1, argv[0] ));
+ }
+ arg1 = (pn_driver_t *)(argp1);
+ result = (pn_connector_t *)pn_connector_head(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connector_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_connector_next(int argc, VALUE *argv, VALUE self) {
+ pn_connector_t *arg1 = (pn_connector_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_connector_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_connector_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_next", 1, argv[0] ));
+ }
+ arg1 = (pn_connector_t *)(argp1);
+ result = (pn_connector_t *)pn_connector_next(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connector_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_connector_trace(int argc, VALUE *argv, VALUE self) {
pn_connector_t *arg1 = (pn_connector_t *) 0 ;
pn_trace_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -7409,10 +10211,12 @@
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_trace_t","pn_connector_trace", 2, argv[1] ));
}
arg2 = (pn_trace_t)(val2);
+ SWIG_contract_assert((arg1!=NULL)&&(check_trace(arg2)), "Contract violation: require: (arg1!=NULL)&&(check_trace(arg2))");
+
pn_connector_trace(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
@@ -7430,10 +10234,12 @@
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_process", 1, argv[0] ));
}
arg1 = (pn_connector_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_connector_process(arg1);
return Qnil;
fail:
return Qnil;
}
@@ -7453,10 +10259,12 @@
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_listener", 1, argv[0] ));
}
arg1 = (pn_connector_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (pn_listener_t *)pn_connector_listener(arg1);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_listener_t, 0 | 0 );
return vresult;
fail:
return Qnil;
@@ -7477,10 +10285,12 @@
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_sasl", 1, argv[0] ));
}
arg1 = (pn_connector_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (pn_sasl_t *)pn_connector_sasl(arg1);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_sasl_t, 0 | 0 );
return vresult;
fail:
return Qnil;
@@ -7501,10 +10311,12 @@
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_connection", 1, argv[0] ));
}
arg1 = (pn_connector_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (pn_connection_t *)pn_connector_connection(arg1);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 | 0 );
return vresult;
fail:
return Qnil;
@@ -7531,10 +10343,12 @@
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)");
+
pn_connector_set_connection(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
@@ -7554,10 +10368,12 @@
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_context", 1, argv[0] ));
}
arg1 = (pn_connector_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (void *)pn_connector_context(arg1);
{
vresult = (VALUE) result;
}
return vresult;
@@ -7582,18 +10398,44 @@
}
arg1 = (pn_connector_t *)(argp1);
{
arg2 = (void *) argv[1];
}
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_connector_set_context(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_connector_transport(int argc, VALUE *argv, VALUE self) {
+ pn_connector_t *arg1 = (pn_connector_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_transport_t *result = 0 ;
+ 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_transport", 1, argv[0] ));
+ }
+ arg1 = (pn_connector_t *)(argp1);
+ result = (pn_transport_t *)pn_connector_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_connector_close(int argc, VALUE *argv, VALUE self) {
pn_connector_t *arg1 = (pn_connector_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -7603,10 +10445,12 @@
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_close", 1, argv[0] ));
}
arg1 = (pn_connector_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_connector_close(arg1);
return Qnil;
fail:
return Qnil;
}
@@ -7626,10 +10470,12 @@
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_closed", 1, argv[0] ));
}
arg1 = (pn_connector_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (bool)pn_connector_closed(arg1);
vresult = SWIG_From_bool((bool)(result));
return vresult;
fail:
return Qnil;
@@ -7648,18 +10494,81 @@
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_free", 1, argv[0] ));
}
arg1 = (pn_connector_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_connector_free(arg1);
return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_connector_activate(int argc, VALUE *argv, VALUE self) {
+ pn_connector_t *arg1 = (pn_connector_t *) 0 ;
+ pn_activate_criteria_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_connector_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_activate", 1, argv[0] ));
+ }
+ arg1 = (pn_connector_t *)(argp1);
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_activate_criteria_t","pn_connector_activate", 2, argv[1] ));
+ }
+ arg2 = (pn_activate_criteria_t)(val2);
+ pn_connector_activate(arg1,arg2);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_connector_activated(int argc, VALUE *argv, VALUE self) {
+ pn_connector_t *arg1 = (pn_connector_t *) 0 ;
+ pn_activate_criteria_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ bool result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connector_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connector_t *","pn_connector_activated", 1, argv[0] ));
+ }
+ arg1 = (pn_connector_t *)(argp1);
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_activate_criteria_t","pn_connector_activated", 2, argv[1] ));
+ }
+ arg2 = (pn_activate_criteria_t)(val2);
+ result = (bool)pn_connector_activated(arg1,arg2);
+ vresult = SWIG_From_bool((bool)(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 ;
@@ -7673,10 +10582,12 @@
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","pn_messenger", 1, argv[0] ));
}
arg1 = (char *)(buf1);
result = (pn_messenger_t *)pn_messenger((char const *)arg1);
+ SWIG_contract_assert((pn_message!=NULL), "Contract violation: ensure: (pn_message!=NULL)");
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_messenger_t, 0 | 0 );
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
return vresult;
fail:
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
@@ -7698,19 +10609,259 @@
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_name", 1, argv[0] ));
}
arg1 = (pn_messenger_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (char *)pn_messenger_name(arg1);
+ SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
+
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_messenger_set_certificate(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_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_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_certificate", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_messenger_set_certificate", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ result = (int)pn_messenger_set_certificate(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_messenger_get_certificate(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ char *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_certificate", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ result = (char *)pn_messenger_get_certificate(arg1);
+ vresult = SWIG_FromCharPtr((const char *)result);
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_messenger_set_private_key(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_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_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_private_key", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_messenger_set_private_key", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ result = (int)pn_messenger_set_private_key(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_messenger_get_private_key(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ char *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_private_key", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ result = (char *)pn_messenger_get_private_key(arg1);
+ vresult = SWIG_FromCharPtr((const char *)result);
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_messenger_set_password(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_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_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_password", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_messenger_set_password", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ result = (int)pn_messenger_set_password(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_messenger_get_password(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ char *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_password", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ result = (char *)pn_messenger_get_password(arg1);
+ vresult = SWIG_FromCharPtr((const char *)result);
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_messenger_set_trusted_certificates(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_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_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_trusted_certificates", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_messenger_set_trusted_certificates", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ result = (int)pn_messenger_set_trusted_certificates(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_messenger_get_trusted_certificates(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ char *result = 0 ;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_trusted_certificates", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ result = (char *)pn_messenger_get_trusted_certificates(arg1);
+ vresult = SWIG_FromCharPtr((const char *)result);
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_messenger_set_timeout(int argc, VALUE *argv, VALUE self) {
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -7730,10 +10881,12 @@
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_messenger_set_timeout", 2, argv[1] ));
}
arg2 = (int)(val2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_messenger_set_timeout(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -7754,10 +10907,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_timeout", 1, argv[0] ));
}
arg1 = (pn_messenger_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_messenger_get_timeout(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -7776,10 +10931,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_free", 1, argv[0] ));
}
arg1 = (pn_messenger_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
pn_messenger_free(arg1);
return Qnil;
fail:
return Qnil;
}
@@ -7799,10 +10956,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_errno", 1, argv[0] ));
}
arg1 = (pn_messenger_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_messenger_errno(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -7823,19 +10982,189 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_error", 1, argv[0] ));
}
arg1 = (pn_messenger_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (char *)pn_messenger_error(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_messenger_get_accept_mode(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_accept_mode_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_accept_mode", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ result = (pn_accept_mode_t)pn_messenger_get_accept_mode(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_messenger_set_accept_mode(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ pn_accept_mode_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ int result;
+ 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_accept_mode", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_accept_mode_t","pn_messenger_set_accept_mode", 2, argv[1] ));
+ }
+ arg2 = (pn_accept_mode_t)(val2);
+ result = (int)pn_messenger_set_accept_mode(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_messenger_get_outgoing_window(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_outgoing_window", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ result = (int)pn_messenger_get_outgoing_window(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_messenger_set_outgoing_window(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ int arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_outgoing_window", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_messenger_set_outgoing_window", 2, argv[1] ));
+ }
+ arg2 = (int)(val2);
+ result = (int)pn_messenger_set_outgoing_window(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_messenger_get_incoming_window(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_incoming_window", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ result = (int)pn_messenger_get_incoming_window(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_messenger_set_incoming_window(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ int arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_incoming_window", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_messenger_set_incoming_window", 2, argv[1] ));
+ }
+ arg2 = (int)(val2);
+ result = (int)pn_messenger_set_incoming_window(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_messenger_start(int argc, VALUE *argv, VALUE self) {
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int result;
@@ -7847,10 +11176,12 @@
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_start", 1, argv[0] ));
}
arg1 = (pn_messenger_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_messenger_start(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -7871,10 +11202,12 @@
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_stop", 1, argv[0] ));
}
arg1 = (pn_messenger_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_messenger_stop(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -7888,11 +11221,11 @@
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
- int result;
+ pn_subscription_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
@@ -7904,21 +11237,74 @@
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_messenger_subscribe", 2, argv[1] ));
}
arg2 = (char *)(buf2);
- result = (int)pn_messenger_subscribe(arg1,(char const *)arg2);
- vresult = SWIG_From_int((int)(result));
+ SWIG_contract_assert((arg1!=NULL)&&(arg2!=NULL), "Contract violation: require: (arg1!=NULL)&&(arg2!=NULL)");
+
+ result = (pn_subscription_t *)pn_messenger_subscribe(arg1,(char const *)arg2);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_subscription_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_subscription_get_context(int argc, VALUE *argv, VALUE self) {
+ pn_subscription_t *arg1 = (pn_subscription_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_subscription_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_subscription_t *","pn_subscription_get_context", 1, argv[0] ));
+ }
+ arg1 = (pn_subscription_t *)(argp1);
+ result = (void *)pn_subscription_get_context(arg1);
+ {
+ vresult = (VALUE) result;
+ }
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_subscription_set_context(int argc, VALUE *argv, VALUE self) {
+ pn_subscription_t *arg1 = (pn_subscription_t *) 0 ;
+ void *arg2 = (void *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_subscription_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_subscription_t *","pn_subscription_set_context", 1, argv[0] ));
+ }
+ arg1 = (pn_subscription_t *)(argp1);
+ {
+ arg2 = (void *) argv[1];
+ }
+ pn_subscription_set_context(arg1,arg2);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_messenger_put(int argc, VALUE *argv, VALUE self) {
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
pn_message_t *arg2 = (pn_message_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -7938,19 +11324,117 @@
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_message_t *","pn_messenger_put", 2, argv[1] ));
}
arg2 = (pn_message_t *)(argp2);
+ SWIG_contract_assert((arg1!=NULL)&&(arg2!=NULL), "Contract violation: require: (arg1!=NULL)&&(arg2!=NULL)");
+
result = (int)pn_messenger_put(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_messenger_status(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ pn_tracker_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ long long val2 ;
+ int ecode2 = 0 ;
+ pn_status_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_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_status", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_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_tracker_t","pn_messenger_status", 2, argv[1] ));
+ }
+ arg2 = (pn_tracker_t)(val2);
+ result = (pn_status_t)pn_messenger_status(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_messenger_settle(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ pn_tracker_t arg2 ;
+ int arg3 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ long long val2 ;
+ int ecode2 = 0 ;
+ int val3 ;
+ int ecode3 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 3) || (argc > 3)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_settle", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_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_tracker_t","pn_messenger_settle", 2, argv[1] ));
+ }
+ arg2 = (pn_tracker_t)(val2);
+ ecode3 = SWIG_AsVal_int(argv[2], &val3);
+ if (!SWIG_IsOK(ecode3)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","pn_messenger_settle", 3, argv[2] ));
+ }
+ arg3 = (int)(val3);
+ result = (int)pn_messenger_settle(arg1,arg2,arg3);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_messenger_outgoing_tracker(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_tracker_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_outgoing_tracker", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ result = (pn_tracker_t)pn_messenger_outgoing_tracker(arg1);
+ vresult = SWIG_From_long_SS_long((long long)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_messenger_send(int argc, VALUE *argv, VALUE self) {
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int result;
@@ -7962,10 +11446,12 @@
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_send", 1, argv[0] ));
}
arg1 = (pn_messenger_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_messenger_send(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -7994,10 +11480,12 @@
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_messenger_recv", 2, argv[1] ));
}
arg2 = (int)(val2);
+ SWIG_contract_assert((arg1!=NULL)&&(arg2>=0), "Contract violation: require: (arg1!=NULL)&&(arg2>=0)");
+
result = (int)pn_messenger_recv(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
@@ -8026,19 +11514,149 @@
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_message_t, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_message_t *","pn_messenger_get", 2, argv[1] ));
}
arg2 = (pn_message_t *)(argp2);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_messenger_get(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_messenger_incoming_tracker(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_tracker_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_incoming_tracker", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ result = (pn_tracker_t)pn_messenger_incoming_tracker(arg1);
+ vresult = SWIG_From_long_SS_long((long long)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_messenger_incoming_subscription(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_subscription_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_incoming_subscription", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_t *)(argp1);
+ result = (pn_subscription_t *)pn_messenger_incoming_subscription(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_subscription_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_messenger_accept(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ pn_tracker_t arg2 ;
+ int arg3 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ long long val2 ;
+ int ecode2 = 0 ;
+ int val3 ;
+ int ecode3 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 3) || (argc > 3)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_accept", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_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_tracker_t","pn_messenger_accept", 2, argv[1] ));
+ }
+ arg2 = (pn_tracker_t)(val2);
+ ecode3 = SWIG_AsVal_int(argv[2], &val3);
+ if (!SWIG_IsOK(ecode3)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","pn_messenger_accept", 3, argv[2] ));
+ }
+ arg3 = (int)(val3);
+ result = (int)pn_messenger_accept(arg1,arg2,arg3);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_messenger_reject(int argc, VALUE *argv, VALUE self) {
+ pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
+ pn_tracker_t arg2 ;
+ int arg3 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ long long val2 ;
+ int ecode2 = 0 ;
+ int val3 ;
+ int ecode3 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 3) || (argc > 3)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_reject", 1, argv[0] ));
+ }
+ arg1 = (pn_messenger_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_tracker_t","pn_messenger_reject", 2, argv[1] ));
+ }
+ arg2 = (pn_tracker_t)(val2);
+ ecode3 = SWIG_AsVal_int(argv[2], &val3);
+ if (!SWIG_IsOK(ecode3)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","pn_messenger_reject", 3, argv[2] ));
+ }
+ arg3 = (int)(val3);
+ result = (int)pn_messenger_reject(arg1,arg2,arg3);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_messenger_outgoing(int argc, VALUE *argv, VALUE self) {
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int result;
@@ -8050,11 +11668,15 @@
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_outgoing", 1, argv[0] ));
}
arg1 = (pn_messenger_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_messenger_outgoing(arg1);
+ SWIG_contract_assert((result>=0), "Contract violation: ensure: (result>=0)");
+
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
@@ -8074,131 +11696,4066 @@
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_incoming", 1, argv[0] ));
}
arg1 = (pn_messenger_t *)(argp1);
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
+
result = (int)pn_messenger_incoming(arg1);
+ SWIG_contract_assert((result>=0), "Contract violation: ensure: (result>=0)");
+
vresult = SWIG_From_int((int)(result));
return vresult;
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 ;
+ 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_ssl_mode_t","pn_ssl_domain", 1, argv[0] ));
+ }
+ arg1 = (pn_ssl_mode_t)(val1);
+ result = (pn_ssl_domain_t *)pn_ssl_domain(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_ssl_domain_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+SWIGINTERN VALUE
+_wrap_pn_ssl_domain_free(int argc, VALUE *argv, VALUE self) {
+ pn_ssl_domain_t *arg1 = (pn_ssl_domain_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_ssl_domain_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_domain_t *","pn_ssl_domain_free", 1, argv[0] ));
+ }
+ arg1 = (pn_ssl_domain_t *)(argp1);
+ pn_ssl_domain_free(arg1);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_ssl_domain_set_credentials(int argc, VALUE *argv, VALUE self) {
+ pn_ssl_domain_t *arg1 = (pn_ssl_domain_t *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *arg3 = (char *) 0 ;
+ char *arg4 = (char *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
+ int res3 ;
+ char *buf3 = 0 ;
+ int alloc3 = 0 ;
+ int res4 ;
+ char *buf4 = 0 ;
+ int alloc4 = 0 ;
+ int 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_ssl_domain_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_domain_t *","pn_ssl_domain_set_credentials", 1, argv[0] ));
+ }
+ arg1 = (pn_ssl_domain_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_ssl_domain_set_credentials", 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_ssl_domain_set_credentials", 3, argv[2] ));
+ }
+ arg3 = (char *)(buf3);
+ res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
+ if (!SWIG_IsOK(res4)) {
+ SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","pn_ssl_domain_set_credentials", 4, argv[3] ));
+ }
+ arg4 = (char *)(buf4);
+ result = (int)pn_ssl_domain_set_credentials(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
+ vresult = SWIG_From_int((int)(result));
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+ return vresult;
+fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
+ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_ssl_domain_set_trusted_ca_db(int argc, VALUE *argv, VALUE self) {
+ pn_ssl_domain_t *arg1 = (pn_ssl_domain_t *) 0 ;
+ char *arg2 = (char *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_domain_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_domain_t *","pn_ssl_domain_set_trusted_ca_db", 1, argv[0] ));
+ }
+ arg1 = (pn_ssl_domain_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_ssl_domain_set_trusted_ca_db", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ result = (int)pn_ssl_domain_set_trusted_ca_db(arg1,(char const *)arg2);
+ vresult = SWIG_From_int((int)(result));
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return vresult;
+fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_ssl_domain_set_peer_authentication(int argc, VALUE *argv, VALUE self) {
+ pn_ssl_domain_t *arg1 = (pn_ssl_domain_t *) 0 ;
+ pn_ssl_verify_mode_t arg2 ;
+ char *arg3 = (char *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ int res3 ;
+ char *buf3 = 0 ;
+ int alloc3 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 3) || (argc > 3)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_domain_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_domain_t *","pn_ssl_domain_set_peer_authentication", 1, argv[0] ));
+ }
+ arg1 = (pn_ssl_domain_t *)(argp1);
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_ssl_verify_mode_t","pn_ssl_domain_set_peer_authentication", 2, argv[1] ));
+ }
+ arg2 = (pn_ssl_verify_mode_t)(val2);
+ res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_ssl_domain_set_peer_authentication", 3, argv[2] ));
+ }
+ arg3 = (char *)(buf3);
+ result = (int)pn_ssl_domain_set_peer_authentication(arg1,arg2,(char const *)arg3);
+ 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_ssl_domain_allow_unsecured_client(int argc, VALUE *argv, VALUE self) {
+ pn_ssl_domain_t *arg1 = (pn_ssl_domain_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int result;
+ 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_ssl_domain_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_domain_t *","pn_ssl_domain_allow_unsecured_client", 1, argv[0] ));
+ }
+ arg1 = (pn_ssl_domain_t *)(argp1);
+ result = (int)pn_ssl_domain_allow_unsecured_client(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_ssl(int argc, VALUE *argv, VALUE self) {
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_ssl_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 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_ssl", 1, argv[0] ));
+ }
+ arg1 = (pn_transport_t *)(argp1);
+ result = (pn_ssl_t *)pn_ssl(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_ssl_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_ssl_init(int argc, VALUE *argv, VALUE self) {
+ pn_ssl_t *arg1 = (pn_ssl_t *) 0 ;
+ pn_ssl_domain_t *arg2 = (pn_ssl_domain_t *) 0 ;
+ char *arg3 = (char *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ void *argp2 = 0 ;
+ int res2 = 0 ;
+ int res3 ;
+ char *buf3 = 0 ;
+ int alloc3 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 3) || (argc > 3)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_init", 1, argv[0] ));
+ }
+ arg1 = (pn_ssl_t *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_ssl_domain_t, 0 | 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_ssl_domain_t *","pn_ssl_init", 2, argv[1] ));
+ }
+ arg2 = (pn_ssl_domain_t *)(argp2);
+ res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_ssl_init", 3, argv[2] ));
+ }
+ arg3 = (char *)(buf3);
+ result = (int)pn_ssl_init(arg1,arg2,(char const *)arg3);
+ 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_ssl_resume_status(int argc, VALUE *argv, VALUE self) {
+ pn_ssl_t *arg1 = (pn_ssl_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_ssl_resume_status_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_ssl_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_resume_status", 1, argv[0] ));
+ }
+ arg1 = (pn_ssl_t *)(argp1);
+ result = (pn_ssl_resume_status_t)pn_ssl_resume_status(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_ssl_set_peer_hostname(int argc, VALUE *argv, VALUE self) {
+ pn_ssl_t *arg1 = (pn_ssl_t *) 0 ;
+ char *arg2 = (char *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_set_peer_hostname", 1, argv[0] ));
+ }
+ arg1 = (pn_ssl_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_ssl_set_peer_hostname", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ result = (int)pn_ssl_set_peer_hostname(arg1,(char const *)arg2);
+ vresult = SWIG_From_int((int)(result));
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return vresult;
+fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_ssl_get_peer_hostname(int argc, VALUE *argv, VALUE self) {
+ pn_ssl_t *arg1 = (pn_ssl_t *) 0 ;
+ char *arg2 = (char *) 0 ;
+ size_t *arg3 = (size_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
+ void *argp3 = 0 ;
+ int res3 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 3) || (argc > 3)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_get_peer_hostname", 1, argv[0] ));
+ }
+ arg1 = (pn_ssl_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_ssl_get_peer_hostname", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_unsigned_int, 0 | 0 );
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "size_t *","pn_ssl_get_peer_hostname", 3, argv[2] ));
+ }
+ arg3 = (size_t *)(argp3);
+ result = (int)pn_ssl_get_peer_hostname(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;
+}
+
+
+static swig_class SwigClassPn_atom_t;
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_type_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t *arg1 = (pn_atom_t *) 0 ;
+ pn_type_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 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_atom_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t *","type", 1, self ));
+ }
+ arg1 = (pn_atom_t *)(argp1);
+ ecode2 = SWIG_AsVal_int(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_type_t","type", 2, argv[0] ));
+ }
+ arg2 = (pn_type_t)(val2);
+ if (arg1) (arg1)->type = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_type_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t *arg1 = (pn_atom_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_type_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_atom_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t *","type", 1, self ));
+ }
+ arg1 = (pn_atom_t *)(argp1);
+ result = (pn_type_t) ((arg1)->type);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t *arg1 = (pn_atom_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_atom_t_u *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_atom_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t *","u", 1, self ));
+ }
+ arg1 = (pn_atom_t *)(argp1);
+ result = (pn_atom_t_u *)& ((arg1)->u);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_atom_t_u, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
+SWIGINTERN VALUE
+_wrap_pn_atom_t_allocate(VALUE self) {
+#else
+ SWIGINTERN VALUE
+ _wrap_pn_atom_t_allocate(int argc, VALUE *argv, VALUE self) {
+#endif
+
+
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_pn_atom_t);
+#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
+ rb_obj_call_init(vresult, argc, argv);
+#endif
+ return vresult;
+ }
+
+
+SWIGINTERN VALUE
+_wrap_new_pn_atom_t(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t *result = 0 ;
+
+ if ((argc < 0) || (argc > 0)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
+ }
+ result = (pn_atom_t *)calloc(1, sizeof(pn_atom_t));
+ DATA_PTR(self) = result;
+ return self;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN void
+free_pn_atom_t(pn_atom_t *arg1) {
+ free((char *) arg1);
+}
+
+static swig_class SwigClassPn_atom_t_u;
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_bool_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ bool arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ bool val2 ;
+ int ecode2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_bool", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ ecode2 = SWIG_AsVal_bool(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","as_bool", 2, argv[0] ));
+ }
+ arg2 = (bool)(val2);
+ if (arg1) (arg1)->as_bool = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_bool_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ bool 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_bool", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (bool) ((arg1)->as_bool);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_ubyte_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ uint8_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned char val2 ;
+ int ecode2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ubyte", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","as_ubyte", 2, argv[0] ));
+ }
+ arg2 = (uint8_t)(val2);
+ if (arg1) (arg1)->as_ubyte = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_ubyte_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ uint8_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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ubyte", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (uint8_t) ((arg1)->as_ubyte);
+ vresult = SWIG_From_unsigned_SS_char((unsigned char)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_byte_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ int8_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ signed char val2 ;
+ int ecode2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_byte", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ ecode2 = SWIG_AsVal_signed_SS_char(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int8_t","as_byte", 2, argv[0] ));
+ }
+ arg2 = (int8_t)(val2);
+ if (arg1) (arg1)->as_byte = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_byte_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int8_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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_byte", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (int8_t) ((arg1)->as_byte);
+ vresult = SWIG_From_signed_SS_char((signed char)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_ushort_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ uint16_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned short val2 ;
+ int ecode2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ushort", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","as_ushort", 2, argv[0] ));
+ }
+ arg2 = (uint16_t)(val2);
+ if (arg1) (arg1)->as_ushort = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_ushort_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ uint16_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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ushort", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (uint16_t) ((arg1)->as_ushort);
+ vresult = SWIG_From_unsigned_SS_short((unsigned short)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_short_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ int16_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ short val2 ;
+ int ecode2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_short", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ ecode2 = SWIG_AsVal_short(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int16_t","as_short", 2, argv[0] ));
+ }
+ arg2 = (int16_t)(val2);
+ if (arg1) (arg1)->as_short = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_short_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int16_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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_short", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (int16_t) ((arg1)->as_short);
+ vresult = SWIG_From_short((short)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_uint_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ uint32_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned int val2 ;
+ int ecode2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_uint", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","as_uint", 2, argv[0] ));
+ }
+ arg2 = (uint32_t)(val2);
+ if (arg1) (arg1)->as_uint = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_uint_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ uint32_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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_uint", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (uint32_t) ((arg1)->as_uint);
+ vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_int_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ int32_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_int", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ ecode2 = SWIG_AsVal_int(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int32_t","as_int", 2, argv[0] ));
+ }
+ arg2 = (int32_t)(val2);
+ if (arg1) (arg1)->as_int = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_int_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int32_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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_int", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (int32_t) ((arg1)->as_int);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_char_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ pn_char_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned int val2 ;
+ int ecode2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_char", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_char_t","as_char", 2, argv[0] ));
+ }
+ arg2 = (pn_char_t)(val2);
+ if (arg1) (arg1)->as_char = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_char_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_char_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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_char", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (pn_char_t) ((arg1)->as_char);
+ vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_ulong_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ uint64_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned long val2 ;
+ int ecode2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ulong", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","as_ulong", 2, argv[0] ));
+ }
+ arg2 = (uint64_t)(val2);
+ if (arg1) (arg1)->as_ulong = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_ulong_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ uint64_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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ulong", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (uint64_t) ((arg1)->as_ulong);
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_long_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ int64_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ long long val2 ;
+ int ecode2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_long", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int64_t","as_long", 2, argv[0] ));
+ }
+ arg2 = (int64_t)(val2);
+ if (arg1) (arg1)->as_long = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_long_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int64_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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_long", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (int64_t) ((arg1)->as_long);
+ vresult = SWIG_From_long_SS_long((long long)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_timestamp_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ pn_timestamp_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ long long val2 ;
+ int ecode2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_timestamp", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_timestamp_t","as_timestamp", 2, argv[0] ));
+ }
+ arg2 = (pn_timestamp_t)(val2);
+ if (arg1) (arg1)->as_timestamp = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_timestamp_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_timestamp_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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_timestamp", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (pn_timestamp_t) ((arg1)->as_timestamp);
+ vresult = SWIG_From_long_SS_long((long long)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_float_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ float arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ float val2 ;
+ int ecode2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_float", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ ecode2 = SWIG_AsVal_float(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","as_float", 2, argv[0] ));
+ }
+ arg2 = (float)(val2);
+ if (arg1) (arg1)->as_float = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_float_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ float 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_float", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (float) ((arg1)->as_float);
+ vresult = SWIG_From_float((float)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_double_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ double arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ double val2 ;
+ int ecode2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_double", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ ecode2 = SWIG_AsVal_double(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","as_double", 2, argv[0] ));
+ }
+ arg2 = (double)(val2);
+ if (arg1) (arg1)->as_double = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_double_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ double 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_double", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (double) ((arg1)->as_double);
+ vresult = SWIG_From_double((double)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_decimal32_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ pn_decimal32_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned int val2 ;
+ int ecode2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal32", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_decimal32_t","as_decimal32", 2, argv[0] ));
+ }
+ arg2 = (pn_decimal32_t)(val2);
+ if (arg1) (arg1)->as_decimal32 = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_decimal32_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_decimal32_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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal32", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (pn_decimal32_t) ((arg1)->as_decimal32);
+ vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_decimal64_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ pn_decimal64_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned long val2 ;
+ int ecode2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal64", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_decimal64_t","as_decimal64", 2, argv[0] ));
+ }
+ arg2 = (pn_decimal64_t)(val2);
+ if (arg1) (arg1)->as_decimal64 = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_decimal64_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_decimal64_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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal64", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (pn_decimal64_t) ((arg1)->as_decimal64);
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_decimal128_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ pn_decimal128_t *arg2 = (pn_decimal128_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ void *argp2 = 0 ;
+ int res2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal128", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_pn_decimal128_t, 0 | 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_decimal128_t *","as_decimal128", 2, argv[0] ));
+ }
+ arg2 = (pn_decimal128_t *)(argp2);
+ if (arg1) (arg1)->as_decimal128 = *arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_decimal128_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_decimal128_t *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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal128", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (pn_decimal128_t *)& ((arg1)->as_decimal128);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_decimal128_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_uuid_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ pn_uuid_t *arg2 = (pn_uuid_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ void *argp2 = 0 ;
+ int res2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_uuid", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_pn_uuid_t, 0 | 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_uuid_t *","as_uuid", 2, argv[0] ));
+ }
+ arg2 = (pn_uuid_t *)(argp2);
+ if (arg1) (arg1)->as_uuid = *arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_uuid_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_uuid_t *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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_uuid", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (pn_uuid_t *)& ((arg1)->as_uuid);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_uuid_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_bytes_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ pn_bytes_t *arg2 = (pn_bytes_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ void *argp2 = 0 ;
+ int res2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_bytes", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_pn_bytes_t, 0 | 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_bytes_t *","as_bytes", 2, argv[0] ));
+ }
+ arg2 = (pn_bytes_t *)(argp2);
+ if (arg1) (arg1)->as_bytes = *arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_bytes_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_bytes_t *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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_bytes", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (pn_bytes_t *)& ((arg1)->as_bytes);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_bytes_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_count_set(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
+ size_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ size_t val2 ;
+ int ecode2 = 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_count", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","as_count", 2, argv[0] ));
+ }
+ arg2 = (size_t)(val2);
+ if (arg1) (arg1)->as_count = arg2;
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_as_count_get(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *arg1 = (pn_atom_t_u *) 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_atom_t_u, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_count", 1, self ));
+ }
+ arg1 = (pn_atom_t_u *)(argp1);
+ result = (size_t) ((arg1)->as_count);
+ vresult = SWIG_From_size_t((size_t)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
+SWIGINTERN VALUE
+_wrap_pn_atom_t_u_allocate(VALUE self) {
+#else
+ SWIGINTERN VALUE
+ _wrap_pn_atom_t_u_allocate(int argc, VALUE *argv, VALUE self) {
+#endif
+
+
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_pn_atom_t_u);
+#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
+ rb_obj_call_init(vresult, argc, argv);
+#endif
+ return vresult;
+ }
+
+
+SWIGINTERN VALUE
+_wrap_new_pn_atom_t_u(int argc, VALUE *argv, VALUE self) {
+ pn_atom_t_u *result = 0 ;
+
+ if ((argc < 0) || (argc > 0)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
+ }
+ result = (pn_atom_t_u *)calloc(1, sizeof(pn_atom_t_u));
+ DATA_PTR(self) = result;
+ return self;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN void
+free_pn_atom_t_u(pn_atom_t_u *arg1) {
+ free((char *) arg1);
+}
+
+SWIGINTERN VALUE
+_wrap_pn_data(int argc, VALUE *argv, VALUE self) {
+ size_t arg1 ;
+ size_t val1 ;
+ int ecode1 = 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;
+ }
+ ecode1 = SWIG_AsVal_size_t(argv[0], &val1);
+ if (!SWIG_IsOK(ecode1)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","pn_data", 1, argv[0] ));
+ }
+ arg1 = (size_t)(val1);
+ result = (pn_data_t *)pn_data(arg1);
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_free(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_free", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ pn_data_free(arg1);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_errno(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_errno", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (int)pn_data_errno(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_error(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_error", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (char *)pn_data_error(arg1);
+ vresult = SWIG_FromCharPtr((const char *)result);
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_fill(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ char *arg2 = (char *) 0 ;
+ void *arg3 = 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if (argc < 2) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_fill", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_data_fill", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ result = (int)pn_data_fill(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_data_scan(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ char *arg2 = (char *) 0 ;
+ void *arg3 = 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if (argc < 2) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_scan", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_data_scan", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ result = (int)pn_data_scan(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_data_clear(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_clear", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ pn_data_clear(arg1);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_size(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_size", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (size_t)pn_data_size(arg1);
+ vresult = SWIG_From_size_t((size_t)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_rewind(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_rewind", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ pn_data_rewind(arg1);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_next(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_next", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (bool)pn_data_next(arg1);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_prev(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_prev", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (bool)pn_data_prev(arg1);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_enter(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_enter", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (bool)pn_data_enter(arg1);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_exit(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_exit", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (bool)pn_data_exit(arg1);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_type(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_type_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_type", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (pn_type_t)pn_data_type(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_print(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_print", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (int)pn_data_print(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_format(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ char *arg2 = (char *) 0 ;
+ size_t *arg3 = (size_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
+ void *argp3 = 0 ;
+ int res3 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 3) || (argc > 3)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_format", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_data_format", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_unsigned_int, 0 | 0 );
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "size_t *","pn_data_format", 3, argv[2] ));
+ }
+ arg3 = (size_t *)(argp3);
+ result = (int)pn_data_format(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_data_encode(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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 ;
+ ssize_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_encode", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_data_encode", 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_data_encode", 3, argv[2] ));
+ }
+ arg3 = (size_t)(val3);
+ result = (ssize_t)pn_data_encode(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_data_decode(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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 ;
+ ssize_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_decode", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_data_decode", 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_data_decode", 3, argv[2] ));
+ }
+ arg3 = (size_t)(val3);
+ result = (ssize_t)pn_data_decode(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_data_put_list(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_list", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (int)pn_data_put_list(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_map(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_map", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (int)pn_data_put_map(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_array(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ bool arg2 ;
+ pn_type_t arg3 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ bool val2 ;
+ int ecode2 = 0 ;
+ int val3 ;
+ int ecode3 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 3) || (argc > 3)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_array", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ ecode2 = SWIG_AsVal_bool(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_data_put_array", 2, argv[1] ));
+ }
+ arg2 = (bool)(val2);
+ ecode3 = SWIG_AsVal_int(argv[2], &val3);
+ if (!SWIG_IsOK(ecode3)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "pn_type_t","pn_data_put_array", 3, argv[2] ));
+ }
+ arg3 = (pn_type_t)(val3);
+ result = (int)pn_data_put_array(arg1,arg2,arg3);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_described(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_described", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (int)pn_data_put_described(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_null(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_null", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (int)pn_data_put_null(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_bool(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_bool", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ ecode2 = SWIG_AsVal_bool(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_data_put_bool", 2, argv[1] ));
+ }
+ arg2 = (bool)(val2);
+ result = (int)pn_data_put_bool(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_ubyte(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ uint8_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned char 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_ubyte", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","pn_data_put_ubyte", 2, argv[1] ));
+ }
+ arg2 = (uint8_t)(val2);
+ result = (int)pn_data_put_ubyte(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_byte(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ int8_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ signed char 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_byte", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ ecode2 = SWIG_AsVal_signed_SS_char(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int8_t","pn_data_put_byte", 2, argv[1] ));
+ }
+ arg2 = (int8_t)(val2);
+ result = (int)pn_data_put_byte(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_ushort(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ uint16_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned short 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_ushort", 1, argv[0] ));
+ }
+ arg1 = (pn_data_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_data_put_ushort", 2, argv[1] ));
+ }
+ arg2 = (uint16_t)(val2);
+ result = (int)pn_data_put_ushort(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_short(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ int16_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ short 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_short", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ ecode2 = SWIG_AsVal_short(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int16_t","pn_data_put_short", 2, argv[1] ));
+ }
+ arg2 = (int16_t)(val2);
+ result = (int)pn_data_put_short(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_uint(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ uint32_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_uint", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","pn_data_put_uint", 2, argv[1] ));
+ }
+ arg2 = (uint32_t)(val2);
+ result = (int)pn_data_put_uint(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_int(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ int32_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_int", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int32_t","pn_data_put_int", 2, argv[1] ));
+ }
+ arg2 = (int32_t)(val2);
+ result = (int)pn_data_put_int(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_char(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ pn_char_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_char", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_char_t","pn_data_put_char", 2, argv[1] ));
+ }
+ arg2 = (pn_char_t)(val2);
+ result = (int)pn_data_put_char(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_ulong(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ uint64_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned long 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_ulong", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","pn_data_put_ulong", 2, argv[1] ));
+ }
+ arg2 = (uint64_t)(val2);
+ result = (int)pn_data_put_ulong(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_long(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ int64_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ long long 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_long", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int64_t","pn_data_put_long", 2, argv[1] ));
+ }
+ arg2 = (int64_t)(val2);
+ result = (int)pn_data_put_long(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_timestamp(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ pn_timestamp_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ long long 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_timestamp", 1, argv[0] ));
+ }
+ arg1 = (pn_data_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_data_put_timestamp", 2, argv[1] ));
+ }
+ arg2 = (pn_timestamp_t)(val2);
+ result = (int)pn_data_put_timestamp(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_float(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ float arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ float 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_float", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ ecode2 = SWIG_AsVal_float(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","pn_data_put_float", 2, argv[1] ));
+ }
+ arg2 = (float)(val2);
+ result = (int)pn_data_put_float(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_double(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ double arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ double 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_double", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ ecode2 = SWIG_AsVal_double(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","pn_data_put_double", 2, argv[1] ));
+ }
+ arg2 = (double)(val2);
+ result = (int)pn_data_put_double(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_decimal32(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ pn_decimal32_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_decimal32", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_decimal32_t","pn_data_put_decimal32", 2, argv[1] ));
+ }
+ arg2 = (pn_decimal32_t)(val2);
+ result = (int)pn_data_put_decimal32(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_decimal64(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ pn_decimal64_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned long 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_decimal64", 1, argv[0] ));
+ }
+ arg1 = (pn_data_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_decimal64_t","pn_data_put_decimal64", 2, argv[1] ));
+ }
+ arg2 = (pn_decimal64_t)(val2);
+ result = (int)pn_data_put_decimal64(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_decimal128(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ pn_decimal128_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ void *argp2 ;
+ 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_decimal128", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ {
+ res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_pn_decimal128_t, 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_decimal128_t","pn_data_put_decimal128", 2, argv[1] ));
+ }
+ if (!argp2) {
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_decimal128_t","pn_data_put_decimal128", 2, argv[1]));
+ } else {
+ arg2 = *((pn_decimal128_t *)(argp2));
+ }
+ }
+ result = (int)pn_data_put_decimal128(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_uuid(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ pn_uuid_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ void *argp2 ;
+ 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_uuid", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ {
+ res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_pn_uuid_t, 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_uuid_t","pn_data_put_uuid", 2, argv[1] ));
+ }
+ if (!argp2) {
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_uuid_t","pn_data_put_uuid", 2, argv[1]));
+ } else {
+ arg2 = *((pn_uuid_t *)(argp2));
+ }
+ }
+ result = (int)pn_data_put_uuid(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_binary(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ pn_bytes_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_binary", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ {
+ if (argv[1] == Qnil) {
+ (&arg2)->start = NULL;
+ (&arg2)->size = 0;
+ } else {
+ (&arg2)->start = RSTRING_PTR(argv[1]);
+ if (!(&arg2)->start) {
+ return NULL;
+ }
+ (&arg2)->size = RSTRING_LEN(argv[1]);
+ }
+ }
+ result = (int)pn_data_put_binary(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_string(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ pn_bytes_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_string", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ {
+ if (argv[1] == Qnil) {
+ (&arg2)->start = NULL;
+ (&arg2)->size = 0;
+ } else {
+ (&arg2)->start = RSTRING_PTR(argv[1]);
+ if (!(&arg2)->start) {
+ return NULL;
+ }
+ (&arg2)->size = RSTRING_LEN(argv[1]);
+ }
+ }
+ result = (int)pn_data_put_string(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_symbol(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ pn_bytes_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_symbol", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ {
+ if (argv[1] == Qnil) {
+ (&arg2)->start = NULL;
+ (&arg2)->size = 0;
+ } else {
+ (&arg2)->start = RSTRING_PTR(argv[1]);
+ if (!(&arg2)->start) {
+ return NULL;
+ }
+ (&arg2)->size = RSTRING_LEN(argv[1]);
+ }
+ }
+ result = (int)pn_data_put_symbol(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_put_atom(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ pn_atom_t arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_atom", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ {
+ if (argv[1] == Qnil)
+ {
+ (&arg2)->type = PN_NULL;
+ }
+ else
+ {
+ switch(TYPE(argv[1]))
+ {
+ case T_TRUE:
+ (&arg2)->type = PN_BOOL;
+ (&arg2)->u.as_bool = true;
+ break;
+
+ case T_FALSE:
+ (&arg2)->type = PN_BOOL;
+ (&arg2)->u.as_bool = false;
+ break;
+
+ case T_FLOAT:
+ (&arg2)->type = PN_FLOAT;
+ (&arg2)->u.as_float = NUM2DBL(argv[1]);
+ break;
+
+ case T_STRING:
+ (&arg2)->type = PN_STRING;
+ (&arg2)->u.as_bytes.start = RSTRING_PTR(argv[1]);
+ if ((&arg2)->u.as_bytes.start)
+ {
+ (&arg2)->u.as_bytes.size = RSTRING_LEN(argv[1]);
+ }
+ else
+ {
+ (&arg2)->u.as_bytes.size = 0;
+ }
+ break;
+
+ case T_FIXNUM:
+ (&arg2)->type = PN_INT;
+ (&arg2)->u.as_int = FIX2LONG(argv[1]);
+ break;
+
+ case T_BIGNUM:
+ (&arg2)->type = PN_LONG;
+ (&arg2)->u.as_long = NUM2LL(argv[1]);
+ break;
+
+ }
+ }
+ }
+ result = (int)pn_data_put_atom(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_list(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_list", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (size_t)pn_data_get_list(arg1);
+ vresult = SWIG_From_size_t((size_t)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_map(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_map", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (size_t)pn_data_get_map(arg1);
+ vresult = SWIG_From_size_t((size_t)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_array(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_array", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (size_t)pn_data_get_array(arg1);
+ vresult = SWIG_From_size_t((size_t)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_is_array_described(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_is_array_described", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (bool)pn_data_is_array_described(arg1);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_array_type(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_type_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_array_type", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (pn_type_t)pn_data_get_array_type(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_is_described(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_is_described", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (bool)pn_data_is_described(arg1);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_is_null(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_is_null", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (bool)pn_data_is_null(arg1);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_bool(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_bool", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (bool)pn_data_get_bool(arg1);
+ vresult = SWIG_From_bool((bool)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_ubyte(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ uint8_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_ubyte", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (uint8_t)pn_data_get_ubyte(arg1);
+ vresult = SWIG_From_unsigned_SS_char((unsigned char)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_byte(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int8_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_byte", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (int8_t)pn_data_get_byte(arg1);
+ vresult = SWIG_From_signed_SS_char((signed char)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_ushort(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_ushort", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (uint16_t)pn_data_get_ushort(arg1);
+ vresult = SWIG_From_unsigned_SS_short((unsigned short)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_short(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int16_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_short", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (int16_t)pn_data_get_short(arg1);
+ vresult = SWIG_From_short((short)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_uint(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_uint", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (uint32_t)pn_data_get_uint(arg1);
+ vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_int(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int32_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_int", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (int32_t)pn_data_get_int(arg1);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_char(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_char_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_char", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (pn_char_t)pn_data_get_char(arg1);
+ vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_ulong(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_ulong", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (uint64_t)pn_data_get_ulong(arg1);
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_long(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int64_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_long", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (int64_t)pn_data_get_long(arg1);
+ vresult = SWIG_From_long_SS_long((long long)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_timestamp(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_timestamp", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (pn_timestamp_t)pn_data_get_timestamp(arg1);
+ vresult = SWIG_From_long_SS_long((long long)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_float(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ float result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_float", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (float)pn_data_get_float(arg1);
+ vresult = SWIG_From_float((float)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_double(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ double result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_double", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (double)pn_data_get_double(arg1);
+ vresult = SWIG_From_double((double)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_decimal32(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_decimal32_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_decimal32", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (pn_decimal32_t)pn_data_get_decimal32(arg1);
+ vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_decimal64(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_decimal64_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_decimal64", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = (pn_decimal64_t)pn_data_get_decimal64(arg1);
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_decimal128(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_decimal128_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_decimal128", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = pn_data_get_decimal128(arg1);
+ vresult = SWIG_NewPointerObj((pn_decimal128_t *)memcpy((pn_decimal128_t *)malloc(sizeof(pn_decimal128_t)),&result,sizeof(pn_decimal128_t)), SWIGTYPE_p_pn_decimal128_t, SWIG_POINTER_OWN | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_uuid(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_uuid_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_uuid", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = pn_data_get_uuid(arg1);
+ vresult = SWIG_NewPointerObj((pn_uuid_t *)memcpy((pn_uuid_t *)malloc(sizeof(pn_uuid_t)),&result,sizeof(pn_uuid_t)), SWIGTYPE_p_pn_uuid_t, SWIG_POINTER_OWN | 0 );
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_binary(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_bytes_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_binary", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = pn_data_get_binary(arg1);
+ {
+ vresult = rb_str_new((&result)->start, (&result)->size);
+ }
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_string(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_bytes_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_string", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = pn_data_get_string(arg1);
+ {
+ vresult = rb_str_new((&result)->start, (&result)->size);
+ }
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_symbol(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_bytes_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_symbol", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = pn_data_get_symbol(arg1);
+ {
+ vresult = rb_str_new((&result)->start, (&result)->size);
+ }
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_bytes(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_bytes_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_bytes", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = pn_data_get_bytes(arg1);
+ {
+ vresult = rb_str_new((&result)->start, (&result)->size);
+ }
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_get_atom(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ pn_atom_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_get_atom", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ result = pn_data_get_atom(arg1);
+ {
+ switch((&result)->type)
+ {
+ case PN_NULL:
+ vresult = Qnil;
+ break;
+
+ case PN_BOOL:
+ vresult = (&result)->u.as_bool ? Qtrue : Qfalse;
+ break;
+
+ case PN_BYTE:
+ vresult = INT2NUM((&result)->u.as_byte);
+ break;
+
+ case PN_UBYTE:
+ vresult = UINT2NUM((&result)->u.as_ubyte);
+ break;
+
+ case PN_SHORT:
+ vresult = INT2NUM((&result)->u.as_short);
+ break;
+
+ case PN_USHORT:
+ vresult = UINT2NUM((&result)->u.as_ushort);
+ break;
+
+ case PN_INT:
+ vresult = INT2NUM((&result)->u.as_int);
+ break;
+
+ case PN_UINT:
+ vresult = UINT2NUM((&result)->u.as_uint);
+ break;
+
+ case PN_LONG:
+ vresult = LL2NUM((&result)->u.as_long);
+ break;
+
+ case PN_ULONG:
+ vresult = ULL2NUM((&result)->u.as_ulong);
+ break;
+
+ case PN_FLOAT:
+ vresult = rb_float_new((&result)->u.as_float);
+ break;
+
+ case PN_DOUBLE:
+ vresult = rb_float_new((&result)->u.as_double);
+ break;
+
+ case PN_STRING:
+ vresult = rb_str_new((&result)->u.as_bytes.start, (&result)->u.as_bytes.size);
+ break;
+ }
+ }
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_copy(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ pn_data_t *arg2 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_copy", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_copy", 2, argv[1] ));
+ }
+ arg2 = (pn_data_t *)(argp2);
+ result = (int)pn_data_copy(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_append(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ pn_data_t *arg2 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_append", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_append", 2, argv[1] ));
+ }
+ arg2 = (pn_data_t *)(argp2);
+ result = (int)pn_data_append(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_appendn(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ pn_data_t *arg2 = (pn_data_t *) 0 ;
+ int arg3 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ void *argp2 = 0 ;
+ int res2 = 0 ;
+ int val3 ;
+ int ecode3 = 0 ;
+ int result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 3) || (argc > 3)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_appendn", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_appendn", 2, argv[1] ));
+ }
+ arg2 = (pn_data_t *)(argp2);
+ ecode3 = SWIG_AsVal_int(argv[2], &val3);
+ if (!SWIG_IsOK(ecode3)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","pn_data_appendn", 3, argv[2] ));
+ }
+ arg3 = (int)(val3);
+ result = (int)pn_data_appendn(arg1,arg2,arg3);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_narrow(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_narrow", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ pn_data_narrow(arg1);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_widen(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_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_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_widen", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ pn_data_widen(arg1);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
+_wrap_pn_data_dump(int argc, VALUE *argv, VALUE self) {
+ pn_data_t *arg1 = (pn_data_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+
+ if ((argc < 1) || (argc > 1)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_dump", 1, argv[0] ));
+ }
+ arg1 = (pn_data_t *)(argp1);
+ pn_data_dump(arg1);
+ return Qnil;
+fail:
+ return Qnil;
+}
+
+
+
/* -------- 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_int = {"_p_int", "int *|ssize_t *|int32_t *|pn_state_t *|pn_trace_t *|pn_sequence_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_long_long = {"_p_long_long", "int64_t *|long long *|pn_tracker_t *|pn_timestamp_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_accept_mode_t = {"_p_pn_accept_mode_t", "enum pn_accept_mode_t *|pn_accept_mode_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_activate_criteria_t = {"_p_pn_activate_criteria_t", "enum pn_activate_criteria_t *|pn_activate_criteria_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_atom_t = {"_p_pn_atom_t", "pn_atom_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_atom_t_u = {"_p_pn_atom_t_u", "pn_atom_t_u *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_bytes_t = {"_p_pn_bytes_t", "pn_bytes_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_condition_t = {"_p_pn_condition_t", "struct pn_condition_t *|pn_condition_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_connection_t = {"_p_pn_connection_t", "struct pn_connection_t *|pn_connection_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_connector_t = {"_p_pn_connector_t", "struct pn_connector_t *|pn_connector_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_data_t = {"_p_pn_data_t", "struct pn_data_t *|pn_data_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_decimal128_t = {"_p_pn_decimal128_t", "pn_decimal128_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_delivery_t = {"_p_pn_delivery_t", "struct pn_delivery_t *|pn_delivery_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_delivery_tag_t = {"_p_pn_delivery_tag_t", "struct pn_delivery_tag_t *|pn_delivery_tag_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_disposition_t = {"_p_pn_disposition_t", "enum pn_disposition_t *|pn_disposition_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_driver_t = {"_p_pn_driver_t", "struct pn_driver_t *|pn_driver_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_durability_t = {"_p_pn_durability_t", "enum pn_durability_t *|pn_durability_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_error_t = {"_p_pn_error_t", "struct pn_error_t *|pn_error_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_expiry_policy_t = {"_p_pn_expiry_policy_t", "enum pn_expiry_policy_t *|pn_expiry_policy_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_format_t = {"_p_pn_format_t", "enum pn_format_t *|pn_format_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_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_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_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_sasl_outcome_t = {"_p_pn_sasl_outcome_t", "enum pn_sasl_outcome_t *|pn_sasl_outcome_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_sasl_state_t = {"_p_pn_sasl_state_t", "enum pn_sasl_state_t *|pn_sasl_state_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_sasl_t = {"_p_pn_sasl_t", "struct pn_sasl_t *|pn_sasl_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_session_t = {"_p_pn_session_t", "struct pn_session_t *|pn_session_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_ssl_domain_t = {"_p_pn_ssl_domain_t", "struct pn_ssl_domain_t *|pn_ssl_domain_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_ssl_mode_t = {"_p_pn_ssl_mode_t", "enum pn_ssl_mode_t *|pn_ssl_mode_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_ssl_resume_status_t = {"_p_pn_ssl_resume_status_t", "enum pn_ssl_resume_status_t *|pn_ssl_resume_status_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_ssl_t = {"_p_pn_ssl_t", "struct pn_ssl_t *|pn_ssl_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_ssl_verify_mode_t = {"_p_pn_ssl_verify_mode_t", "enum pn_ssl_verify_mode_t *|pn_ssl_verify_mode_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_status_t = {"_p_pn_status_t", "enum pn_status_t *|pn_status_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_subscription_t = {"_p_pn_subscription_t", "struct pn_subscription_t *|pn_subscription_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_terminus_t = {"_p_pn_terminus_t", "struct pn_terminus_t *|pn_terminus_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_terminus_type_t = {"_p_pn_terminus_type_t", "enum pn_terminus_type_t *|pn_terminus_type_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_transport_t = {"_p_pn_transport_t", "struct pn_transport_t *|pn_transport_t *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_time_t = {"_p_time_t", "time_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_type_t = {"_p_pn_type_t", "enum pn_type_t *|pn_type_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_uuid_t = {"_p_pn_uuid_t", "pn_uuid_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_short = {"_p_short", "short *|int16_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|int8_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uint8_t *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "size_t *|uint32_t *|unsigned int *|pn_millis_t *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "uint64_t *|unsigned long *|pn_timestamp_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "pn_seconds_t *|pn_decimal32_t *|size_t *|uint32_t *|unsigned int *|pn_millis_t *|pn_char_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "pn_decimal64_t *|uint64_t *|unsigned long *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|uint16_t *", 0, 0, (void*)0, 0};
static swig_type_info *swig_type_initial[] = {
&_swigt__p_char,
&_swigt__p_int,
+ &_swigt__p_long_long,
&_swigt__p_p_char,
+ &_swigt__p_pn_accept_mode_t,
+ &_swigt__p_pn_activate_criteria_t,
&_swigt__p_pn_atom_t,
+ &_swigt__p_pn_atom_t_u,
&_swigt__p_pn_bytes_t,
+ &_swigt__p_pn_condition_t,
&_swigt__p_pn_connection_t,
&_swigt__p_pn_connector_t,
+ &_swigt__p_pn_data_t,
+ &_swigt__p_pn_decimal128_t,
&_swigt__p_pn_delivery_t,
&_swigt__p_pn_delivery_tag_t,
&_swigt__p_pn_disposition_t,
&_swigt__p_pn_driver_t,
+ &_swigt__p_pn_durability_t,
&_swigt__p_pn_error_t,
+ &_swigt__p_pn_expiry_policy_t,
&_swigt__p_pn_format_t,
&_swigt__p_pn_link_t,
&_swigt__p_pn_listener_t,
&_swigt__p_pn_message_t,
&_swigt__p_pn_messenger_t,
&_swigt__p_pn_sasl_outcome_t,
&_swigt__p_pn_sasl_state_t,
&_swigt__p_pn_sasl_t,
&_swigt__p_pn_session_t,
+ &_swigt__p_pn_ssl_domain_t,
+ &_swigt__p_pn_ssl_mode_t,
+ &_swigt__p_pn_ssl_resume_status_t,
+ &_swigt__p_pn_ssl_t,
+ &_swigt__p_pn_ssl_verify_mode_t,
+ &_swigt__p_pn_status_t,
+ &_swigt__p_pn_subscription_t,
+ &_swigt__p_pn_terminus_t,
+ &_swigt__p_pn_terminus_type_t,
&_swigt__p_pn_transport_t,
- &_swigt__p_time_t,
+ &_swigt__p_pn_type_t,
+ &_swigt__p_pn_uuid_t,
+ &_swigt__p_short,
+ &_swigt__p_signed_char,
&_swigt__p_unsigned_char,
&_swigt__p_unsigned_int,
&_swigt__p_unsigned_long,
+ &_swigt__p_unsigned_short,
};
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_accept_mode_t[] = { {&_swigt__p_pn_accept_mode_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_activate_criteria_t[] = { {&_swigt__p_pn_activate_criteria_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_atom_t[] = { {&_swigt__p_pn_atom_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_atom_t_u[] = { {&_swigt__p_pn_atom_t_u, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_bytes_t[] = { {&_swigt__p_pn_bytes_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_condition_t[] = { {&_swigt__p_pn_condition_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_connection_t[] = { {&_swigt__p_pn_connection_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_connector_t[] = { {&_swigt__p_pn_connector_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_data_t[] = { {&_swigt__p_pn_data_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_decimal128_t[] = { {&_swigt__p_pn_decimal128_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_delivery_t[] = { {&_swigt__p_pn_delivery_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_delivery_tag_t[] = { {&_swigt__p_pn_delivery_tag_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_disposition_t[] = { {&_swigt__p_pn_disposition_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_driver_t[] = { {&_swigt__p_pn_driver_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_durability_t[] = { {&_swigt__p_pn_durability_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_error_t[] = { {&_swigt__p_pn_error_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_expiry_policy_t[] = { {&_swigt__p_pn_expiry_policy_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_format_t[] = { {&_swigt__p_pn_format_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_link_t[] = { {&_swigt__p_pn_link_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_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_sasl_outcome_t[] = { {&_swigt__p_pn_sasl_outcome_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_sasl_state_t[] = { {&_swigt__p_pn_sasl_state_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_sasl_t[] = { {&_swigt__p_pn_sasl_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_session_t[] = { {&_swigt__p_pn_session_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_ssl_domain_t[] = { {&_swigt__p_pn_ssl_domain_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_ssl_mode_t[] = { {&_swigt__p_pn_ssl_mode_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_ssl_resume_status_t[] = { {&_swigt__p_pn_ssl_resume_status_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_ssl_t[] = { {&_swigt__p_pn_ssl_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_ssl_verify_mode_t[] = { {&_swigt__p_pn_ssl_verify_mode_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_status_t[] = { {&_swigt__p_pn_status_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_subscription_t[] = { {&_swigt__p_pn_subscription_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_terminus_t[] = { {&_swigt__p_pn_terminus_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_terminus_type_t[] = { {&_swigt__p_pn_terminus_type_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pn_transport_t[] = { {&_swigt__p_pn_transport_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_time_t[] = { {&_swigt__p_time_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_type_t[] = { {&_swigt__p_pn_type_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pn_uuid_t[] = { {&_swigt__p_pn_uuid_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info *swig_cast_initial[] = {
_swigc__p_char,
_swigc__p_int,
+ _swigc__p_long_long,
_swigc__p_p_char,
+ _swigc__p_pn_accept_mode_t,
+ _swigc__p_pn_activate_criteria_t,
_swigc__p_pn_atom_t,
+ _swigc__p_pn_atom_t_u,
_swigc__p_pn_bytes_t,
+ _swigc__p_pn_condition_t,
_swigc__p_pn_connection_t,
_swigc__p_pn_connector_t,
+ _swigc__p_pn_data_t,
+ _swigc__p_pn_decimal128_t,
_swigc__p_pn_delivery_t,
_swigc__p_pn_delivery_tag_t,
_swigc__p_pn_disposition_t,
_swigc__p_pn_driver_t,
+ _swigc__p_pn_durability_t,
_swigc__p_pn_error_t,
+ _swigc__p_pn_expiry_policy_t,
_swigc__p_pn_format_t,
_swigc__p_pn_link_t,
_swigc__p_pn_listener_t,
_swigc__p_pn_message_t,
_swigc__p_pn_messenger_t,
_swigc__p_pn_sasl_outcome_t,
_swigc__p_pn_sasl_state_t,
_swigc__p_pn_sasl_t,
_swigc__p_pn_session_t,
+ _swigc__p_pn_ssl_domain_t,
+ _swigc__p_pn_ssl_mode_t,
+ _swigc__p_pn_ssl_resume_status_t,
+ _swigc__p_pn_ssl_t,
+ _swigc__p_pn_ssl_verify_mode_t,
+ _swigc__p_pn_status_t,
+ _swigc__p_pn_subscription_t,
+ _swigc__p_pn_terminus_t,
+ _swigc__p_pn_terminus_type_t,
_swigc__p_pn_transport_t,
- _swigc__p_time_t,
+ _swigc__p_pn_type_t,
+ _swigc__p_pn_uuid_t,
+ _swigc__p_short,
+ _swigc__p_signed_char,
_swigc__p_unsigned_char,
_swigc__p_unsigned_int,
_swigc__p_unsigned_long,
+ _swigc__p_unsigned_short,
};
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
@@ -8258,13 +15815,12 @@
SWIGRUNTIME void
SWIG_InitializeModule(void *clientdata) {
size_t i;
swig_module_info *module_head, *iter;
int found, init;
+ (void *)clientdata;
- clientdata = clientdata;
-
/* check to see if the circular list has been setup, if not, set it up */
if (swig_module.next==0) {
/* Initialize the swig_module */
swig_module.type_initial = swig_type_initial;
swig_module.cast_initial = swig_cast_initial;
@@ -8466,19 +16022,41 @@
rb_define_module_function(mCproton, "pn_message_save", _wrap_pn_message_save, -1);
rb_define_module_function(mCproton, "pn_message_save_data", _wrap_pn_message_save_data, -1);
rb_define_module_function(mCproton, "pn_message_save_text", _wrap_pn_message_save_text, -1);
rb_define_module_function(mCproton, "pn_message_save_amqp", _wrap_pn_message_save_amqp, -1);
rb_define_module_function(mCproton, "pn_message_save_json", _wrap_pn_message_save_json, -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_input", _wrap_pn_input, -1);
- rb_define_module_function(mCproton, "pn_output", _wrap_pn_output, -1);
+ rb_define_module_function(mCproton, "pn_link_send", _wrap_pn_link_send, -1);
+ rb_define_module_function(mCproton, "pn_link_recv", _wrap_pn_link_recv, -1);
+ rb_define_module_function(mCproton, "pn_transport_input", _wrap_pn_transport_input, -1);
+ rb_define_module_function(mCproton, "pn_transport_output", _wrap_pn_transport_output, -1);
rb_define_module_function(mCproton, "pn_delivery", _wrap_pn_delivery, -1);
rb_define_module_function(mCproton, "pn_delivery_tag", _wrap_pn_delivery_tag, -1);
rb_define_module_function(mCproton, "pn_message_data", _wrap_pn_message_data, -1);
+ rb_define_module_function(mCproton, "pn_ssl_get_cipher_name", _wrap_pn_ssl_get_cipher_name, -1);
+ rb_define_module_function(mCproton, "pn_ssl_get_protocol_name", _wrap_pn_ssl_get_protocol_name, -1);
rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1)));
+ SwigClassPn_decimal128_t.klass = rb_define_class_under(mCproton, "Pn_decimal128_t", rb_cObject);
+ SWIG_TypeClientData(SWIGTYPE_p_pn_decimal128_t, (void *) &SwigClassPn_decimal128_t);
+ rb_define_alloc_func(SwigClassPn_decimal128_t.klass, _wrap_pn_decimal128_t_allocate);
+ rb_define_method(SwigClassPn_decimal128_t.klass, "initialize", _wrap_new_pn_decimal128_t, -1);
+ rb_define_method(SwigClassPn_decimal128_t.klass, "bytes=", _wrap_pn_decimal128_t_bytes_set, -1);
+ rb_define_method(SwigClassPn_decimal128_t.klass, "bytes", _wrap_pn_decimal128_t_bytes_get, -1);
+ SwigClassPn_decimal128_t.mark = 0;
+ SwigClassPn_decimal128_t.destroy = (void (*)(void *)) free_pn_decimal128_t;
+ SwigClassPn_decimal128_t.trackObjects = 0;
+
+ SwigClassPn_uuid_t.klass = rb_define_class_under(mCproton, "Pn_uuid_t", rb_cObject);
+ SWIG_TypeClientData(SWIGTYPE_p_pn_uuid_t, (void *) &SwigClassPn_uuid_t);
+ rb_define_alloc_func(SwigClassPn_uuid_t.klass, _wrap_pn_uuid_t_allocate);
+ rb_define_method(SwigClassPn_uuid_t.klass, "initialize", _wrap_new_pn_uuid_t, -1);
+ rb_define_method(SwigClassPn_uuid_t.klass, "bytes=", _wrap_pn_uuid_t_bytes_set, -1);
+ rb_define_method(SwigClassPn_uuid_t.klass, "bytes", _wrap_pn_uuid_t_bytes_get, -1);
+ SwigClassPn_uuid_t.mark = 0;
+ SwigClassPn_uuid_t.destroy = (void (*)(void *)) free_pn_uuid_t;
+ SwigClassPn_uuid_t.trackObjects = 0;
+
SwigClassPn_bytes_t.klass = rb_define_class_under(mCproton, "Pn_bytes_t", rb_cObject);
SWIG_TypeClientData(SWIGTYPE_p_pn_bytes_t, (void *) &SwigClassPn_bytes_t);
rb_define_alloc_func(SwigClassPn_bytes_t.klass, _wrap_pn_bytes_t_allocate);
rb_define_method(SwigClassPn_bytes_t.klass, "initialize", _wrap_new_pn_bytes_t, -1);
rb_define_method(SwigClassPn_bytes_t.klass, "size=", _wrap_pn_bytes_t_size_set, -1);
@@ -8496,18 +16074,31 @@
rb_define_const(mCproton, "PN_OVERFLOW", SWIG_From_int((int)((-3))));
rb_define_const(mCproton, "PN_UNDERFLOW", SWIG_From_int((int)((-4))));
rb_define_const(mCproton, "PN_STATE_ERR", SWIG_From_int((int)((-5))));
rb_define_const(mCproton, "PN_ARG_ERR", SWIG_From_int((int)((-6))));
rb_define_const(mCproton, "PN_TIMEOUT", SWIG_From_int((int)((-7))));
+ rb_define_const(mCproton, "PN_INTR", SWIG_From_int((int)((-8))));
rb_define_module_function(mCproton, "pn_code", _wrap_pn_code, -1);
rb_define_module_function(mCproton, "pn_error", _wrap_pn_error, -1);
rb_define_module_function(mCproton, "pn_error_free", _wrap_pn_error_free, -1);
rb_define_module_function(mCproton, "pn_error_clear", _wrap_pn_error_clear, -1);
rb_define_module_function(mCproton, "pn_error_set", _wrap_pn_error_set, -1);
+ rb_define_module_function(mCproton, "pn_error_from_errno", _wrap_pn_error_from_errno, -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)));
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);
@@ -8537,76 +16128,133 @@
rb_define_const(mCproton, "PN_TRACE_DRV", SWIG_From_int((int)((4))));
rb_define_const(mCproton, "PN_SESSION_WINDOW", SWIG_From_int((int)((1024))));
rb_define_module_function(mCproton, "pn_connection", _wrap_pn_connection, -1);
rb_define_module_function(mCproton, "pn_connection_state", _wrap_pn_connection_state, -1);
rb_define_module_function(mCproton, "pn_connection_error", _wrap_pn_connection_error, -1);
- rb_define_module_function(mCproton, "pn_connection_container", _wrap_pn_connection_container, -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_hostname", _wrap_pn_connection_hostname, -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);
rb_define_module_function(mCproton, "pn_connection_remote_hostname", _wrap_pn_connection_remote_hostname, -1);
+ rb_define_module_function(mCproton, "pn_connection_offered_capabilities", _wrap_pn_connection_offered_capabilities, -1);
+ rb_define_module_function(mCproton, "pn_connection_desired_capabilities", _wrap_pn_connection_desired_capabilities, -1);
+ rb_define_module_function(mCproton, "pn_connection_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_work_head", _wrap_pn_work_head, -1);
rb_define_module_function(mCproton, "pn_work_next", _wrap_pn_work_next, -1);
rb_define_module_function(mCproton, "pn_session", _wrap_pn_session, -1);
rb_define_module_function(mCproton, "pn_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_tick", _wrap_pn_tick, -1);
- rb_define_module_function(mCproton, "pn_trace", _wrap_pn_trace, -1);
+ rb_define_module_function(mCproton, "pn_transport_tick", _wrap_pn_transport_tick, -1);
+ rb_define_module_function(mCproton, "pn_transport_trace", _wrap_pn_transport_trace, -1);
+ rb_define_module_function(mCproton, "pn_transport_get_max_frame", _wrap_pn_transport_get_max_frame, -1);
+ 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_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_sender", _wrap_pn_sender, -1);
- rb_define_module_function(mCproton, "pn_receiver", _wrap_pn_receiver, -1);
- rb_define_module_function(mCproton, "pn_get_connection", _wrap_pn_get_connection, -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_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_name", _wrap_pn_link_name, -1);
- rb_define_module_function(mCproton, "pn_is_sender", _wrap_pn_is_sender, -1);
- rb_define_module_function(mCproton, "pn_is_receiver", _wrap_pn_is_receiver, -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_get_session", _wrap_pn_get_session, -1);
- rb_define_module_function(mCproton, "pn_target", _wrap_pn_target, -1);
- rb_define_module_function(mCproton, "pn_source", _wrap_pn_source, -1);
- rb_define_module_function(mCproton, "pn_set_source", _wrap_pn_set_source, -1);
- rb_define_module_function(mCproton, "pn_set_target", _wrap_pn_set_target, -1);
- rb_define_module_function(mCproton, "pn_remote_source", _wrap_pn_remote_source, -1);
- rb_define_module_function(mCproton, "pn_remote_target", _wrap_pn_remote_target, -1);
- rb_define_module_function(mCproton, "pn_current", _wrap_pn_current, -1);
- rb_define_module_function(mCproton, "pn_advance", _wrap_pn_advance, -1);
- rb_define_module_function(mCproton, "pn_credit", _wrap_pn_credit, -1);
- rb_define_module_function(mCproton, "pn_queued", _wrap_pn_queued, -1);
- rb_define_module_function(mCproton, "pn_unsettled", _wrap_pn_unsettled, -1);
+ rb_define_module_function(mCproton, "pn_link_session", _wrap_pn_link_session, -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_available", _wrap_pn_link_available, -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_drained", _wrap_pn_drained, -1);
- rb_define_module_function(mCproton, "pn_flow", _wrap_pn_flow, -1);
- rb_define_module_function(mCproton, "pn_drain", _wrap_pn_drain, -1);
- rb_define_module_function(mCproton, "pn_link", _wrap_pn_link, -1);
- rb_define_module_function(mCproton, "pn_local_disposition", _wrap_pn_local_disposition, -1);
- rb_define_module_function(mCproton, "pn_remote_disposition", _wrap_pn_remote_disposition, -1);
- rb_define_module_function(mCproton, "pn_remote_settled", _wrap_pn_remote_settled, -1);
- rb_define_module_function(mCproton, "pn_pending", _wrap_pn_pending, -1);
- rb_define_module_function(mCproton, "pn_writable", _wrap_pn_writable, -1);
- rb_define_module_function(mCproton, "pn_readable", _wrap_pn_readable, -1);
- rb_define_module_function(mCproton, "pn_updated", _wrap_pn_updated, -1);
- rb_define_module_function(mCproton, "pn_clear", _wrap_pn_clear, -1);
- rb_define_module_function(mCproton, "pn_disposition", _wrap_pn_disposition, -1);
- rb_define_module_function(mCproton, "pn_settle", _wrap_pn_settle, -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_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_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_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);
+ rb_define_module_function(mCproton, "pn_terminus_set_timeout", _wrap_pn_terminus_set_timeout, -1);
+ rb_define_module_function(mCproton, "pn_terminus_is_dynamic", _wrap_pn_terminus_is_dynamic, -1);
+ 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_copy", _wrap_pn_terminus_copy, -1);
+ rb_define_module_function(mCproton, "pn_delivery_link", _wrap_pn_delivery_link, -1);
+ rb_define_module_function(mCproton, "pn_delivery_local_state", _wrap_pn_delivery_local_state, -1);
+ rb_define_module_function(mCproton, "pn_delivery_remote_state", _wrap_pn_delivery_remote_state, -1);
+ rb_define_module_function(mCproton, "pn_delivery_settled", _wrap_pn_delivery_settled, -1);
+ rb_define_module_function(mCproton, "pn_delivery_pending", _wrap_pn_delivery_pending, -1);
+ rb_define_module_function(mCproton, "pn_delivery_partial", _wrap_pn_delivery_partial, -1);
+ rb_define_module_function(mCproton, "pn_delivery_writable", _wrap_pn_delivery_writable, -1);
+ rb_define_module_function(mCproton, "pn_delivery_readable", _wrap_pn_delivery_readable, -1);
+ rb_define_module_function(mCproton, "pn_delivery_updated", _wrap_pn_delivery_updated, -1);
+ rb_define_module_function(mCproton, "pn_delivery_update", _wrap_pn_delivery_update, -1);
+ rb_define_module_function(mCproton, "pn_delivery_clear", _wrap_pn_delivery_clear, -1);
+ rb_define_module_function(mCproton, "pn_delivery_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_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_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_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)));
@@ -8614,30 +16262,34 @@
rb_define_module_function(mCproton, "pn_message", _wrap_pn_message, -1);
rb_define_module_function(mCproton, "pn_message_free", _wrap_pn_message_free, -1);
rb_define_module_function(mCproton, "pn_message_clear", _wrap_pn_message_clear, -1);
rb_define_module_function(mCproton, "pn_message_errno", _wrap_pn_message_errno, -1);
rb_define_module_function(mCproton, "pn_message_error", _wrap_pn_message_error, -1);
+ rb_define_module_function(mCproton, "pn_message_is_inferred", _wrap_pn_message_is_inferred, -1);
+ rb_define_module_function(mCproton, "pn_message_set_inferred", _wrap_pn_message_set_inferred, -1);
rb_define_module_function(mCproton, "pn_message_is_durable", _wrap_pn_message_is_durable, -1);
rb_define_module_function(mCproton, "pn_message_set_durable", _wrap_pn_message_set_durable, -1);
rb_define_module_function(mCproton, "pn_message_get_priority", _wrap_pn_message_get_priority, -1);
rb_define_module_function(mCproton, "pn_message_set_priority", _wrap_pn_message_set_priority, -1);
rb_define_module_function(mCproton, "pn_message_get_ttl", _wrap_pn_message_get_ttl, -1);
rb_define_module_function(mCproton, "pn_message_set_ttl", _wrap_pn_message_set_ttl, -1);
rb_define_module_function(mCproton, "pn_message_is_first_acquirer", _wrap_pn_message_is_first_acquirer, -1);
rb_define_module_function(mCproton, "pn_message_set_first_acquirer", _wrap_pn_message_set_first_acquirer, -1);
rb_define_module_function(mCproton, "pn_message_get_delivery_count", _wrap_pn_message_get_delivery_count, -1);
rb_define_module_function(mCproton, "pn_message_set_delivery_count", _wrap_pn_message_set_delivery_count, -1);
+ rb_define_module_function(mCproton, "pn_message_id", _wrap_pn_message_id, -1);
rb_define_module_function(mCproton, "pn_message_get_id", _wrap_pn_message_get_id, -1);
rb_define_module_function(mCproton, "pn_message_set_id", _wrap_pn_message_set_id, -1);
rb_define_module_function(mCproton, "pn_message_get_user_id", _wrap_pn_message_get_user_id, -1);
rb_define_module_function(mCproton, "pn_message_set_user_id", _wrap_pn_message_set_user_id, -1);
rb_define_module_function(mCproton, "pn_message_get_address", _wrap_pn_message_get_address, -1);
rb_define_module_function(mCproton, "pn_message_set_address", _wrap_pn_message_set_address, -1);
rb_define_module_function(mCproton, "pn_message_get_subject", _wrap_pn_message_get_subject, -1);
rb_define_module_function(mCproton, "pn_message_set_subject", _wrap_pn_message_set_subject, -1);
rb_define_module_function(mCproton, "pn_message_get_reply_to", _wrap_pn_message_get_reply_to, -1);
rb_define_module_function(mCproton, "pn_message_set_reply_to", _wrap_pn_message_set_reply_to, -1);
+ rb_define_module_function(mCproton, "pn_message_correlation_id", _wrap_pn_message_correlation_id, -1);
rb_define_module_function(mCproton, "pn_message_get_correlation_id", _wrap_pn_message_get_correlation_id, -1);
rb_define_module_function(mCproton, "pn_message_set_correlation_id", _wrap_pn_message_set_correlation_id, -1);
rb_define_module_function(mCproton, "pn_message_get_content_type", _wrap_pn_message_get_content_type, -1);
rb_define_module_function(mCproton, "pn_message_set_content_type", _wrap_pn_message_set_content_type, -1);
rb_define_module_function(mCproton, "pn_message_get_content_encoding", _wrap_pn_message_get_content_encoding, -1);
@@ -8652,10 +16304,14 @@
rb_define_module_function(mCproton, "pn_message_set_group_sequence", _wrap_pn_message_set_group_sequence, -1);
rb_define_module_function(mCproton, "pn_message_get_reply_to_group_id", _wrap_pn_message_get_reply_to_group_id, -1);
rb_define_module_function(mCproton, "pn_message_set_reply_to_group_id", _wrap_pn_message_set_reply_to_group_id, -1);
rb_define_module_function(mCproton, "pn_message_get_format", _wrap_pn_message_get_format, -1);
rb_define_module_function(mCproton, "pn_message_set_format", _wrap_pn_message_set_format, -1);
+ rb_define_module_function(mCproton, "pn_message_instructions", _wrap_pn_message_instructions, -1);
+ rb_define_module_function(mCproton, "pn_message_annotations", _wrap_pn_message_annotations, -1);
+ rb_define_module_function(mCproton, "pn_message_properties", _wrap_pn_message_properties, -1);
+ rb_define_module_function(mCproton, "pn_message_body", _wrap_pn_message_body, -1);
rb_define_module_function(mCproton, "pn_message_decode", _wrap_pn_message_decode, -1);
rb_define_const(mCproton, "PROTON_SASL_H", SWIG_From_int((int)(1)));
rb_define_const(mCproton, "PN_SASL_NONE", SWIG_From_int((int)(PN_SASL_NONE)));
rb_define_const(mCproton, "PN_SASL_OK", SWIG_From_int((int)(PN_SASL_OK)));
rb_define_const(mCproton, "PN_SASL_AUTH", SWIG_From_int((int)(PN_SASL_AUTH)));
@@ -8677,56 +16333,277 @@
rb_define_module_function(mCproton, "pn_sasl_pending", _wrap_pn_sasl_pending, -1);
rb_define_module_function(mCproton, "pn_sasl_recv", _wrap_pn_sasl_recv, -1);
rb_define_module_function(mCproton, "pn_sasl_send", _wrap_pn_sasl_send, -1);
rb_define_module_function(mCproton, "pn_sasl_done", _wrap_pn_sasl_done, -1);
rb_define_module_function(mCproton, "pn_sasl_outcome", _wrap_pn_sasl_outcome, -1);
- rb_define_module_function(mCproton, "pn_sasl_input", _wrap_pn_sasl_input, -1);
- rb_define_module_function(mCproton, "pn_sasl_output", _wrap_pn_sasl_output, -1);
- rb_define_module_function(mCproton, "pn_sasl_trace", _wrap_pn_sasl_trace, -1);
- rb_define_module_function(mCproton, "pn_sasl_free", _wrap_pn_sasl_free, -1);
rb_define_const(mCproton, "PROTON_DRIVER_H", SWIG_From_int((int)(1)));
+ rb_define_const(mCproton, "PN_CONNECTOR_WRITABLE", SWIG_From_int((int)(PN_CONNECTOR_WRITABLE)));
+ rb_define_const(mCproton, "PN_CONNECTOR_READABLE", SWIG_From_int((int)(PN_CONNECTOR_READABLE)));
rb_define_module_function(mCproton, "pn_driver", _wrap_pn_driver, -1);
+ rb_define_module_function(mCproton, "pn_driver_errno", _wrap_pn_driver_errno, -1);
+ rb_define_module_function(mCproton, "pn_driver_error", _wrap_pn_driver_error, -1);
rb_define_module_function(mCproton, "pn_driver_trace", _wrap_pn_driver_trace, -1);
rb_define_module_function(mCproton, "pn_driver_wakeup", _wrap_pn_driver_wakeup, -1);
rb_define_module_function(mCproton, "pn_driver_wait", _wrap_pn_driver_wait, -1);
rb_define_module_function(mCproton, "pn_driver_listener", _wrap_pn_driver_listener, -1);
rb_define_module_function(mCproton, "pn_driver_connector", _wrap_pn_driver_connector, -1);
rb_define_module_function(mCproton, "pn_driver_free", _wrap_pn_driver_free, -1);
rb_define_module_function(mCproton, "pn_listener", _wrap_pn_listener, -1);
rb_define_module_function(mCproton, "pn_listener_fd", _wrap_pn_listener_fd, -1);
+ rb_define_module_function(mCproton, "pn_listener_head", _wrap_pn_listener_head, -1);
+ rb_define_module_function(mCproton, "pn_listener_next", _wrap_pn_listener_next, -1);
rb_define_module_function(mCproton, "pn_listener_trace", _wrap_pn_listener_trace, -1);
rb_define_module_function(mCproton, "pn_listener_accept", _wrap_pn_listener_accept, -1);
rb_define_module_function(mCproton, "pn_listener_context", _wrap_pn_listener_context, -1);
+ rb_define_module_function(mCproton, "pn_listener_set_context", _wrap_pn_listener_set_context, -1);
rb_define_module_function(mCproton, "pn_listener_close", _wrap_pn_listener_close, -1);
rb_define_module_function(mCproton, "pn_listener_free", _wrap_pn_listener_free, -1);
rb_define_module_function(mCproton, "pn_connector", _wrap_pn_connector, -1);
rb_define_module_function(mCproton, "pn_connector_fd", _wrap_pn_connector_fd, -1);
+ rb_define_module_function(mCproton, "pn_connector_head", _wrap_pn_connector_head, -1);
+ rb_define_module_function(mCproton, "pn_connector_next", _wrap_pn_connector_next, -1);
rb_define_module_function(mCproton, "pn_connector_trace", _wrap_pn_connector_trace, -1);
rb_define_module_function(mCproton, "pn_connector_process", _wrap_pn_connector_process, -1);
rb_define_module_function(mCproton, "pn_connector_listener", _wrap_pn_connector_listener, -1);
rb_define_module_function(mCproton, "pn_connector_sasl", _wrap_pn_connector_sasl, -1);
rb_define_module_function(mCproton, "pn_connector_connection", _wrap_pn_connector_connection, -1);
rb_define_module_function(mCproton, "pn_connector_set_connection", _wrap_pn_connector_set_connection, -1);
rb_define_module_function(mCproton, "pn_connector_context", _wrap_pn_connector_context, -1);
rb_define_module_function(mCproton, "pn_connector_set_context", _wrap_pn_connector_set_context, -1);
+ rb_define_module_function(mCproton, "pn_connector_transport", _wrap_pn_connector_transport, -1);
rb_define_module_function(mCproton, "pn_connector_close", _wrap_pn_connector_close, -1);
rb_define_module_function(mCproton, "pn_connector_closed", _wrap_pn_connector_closed, -1);
rb_define_module_function(mCproton, "pn_connector_free", _wrap_pn_connector_free, -1);
+ rb_define_module_function(mCproton, "pn_connector_activate", _wrap_pn_connector_activate, -1);
+ rb_define_module_function(mCproton, "pn_connector_activated", _wrap_pn_connector_activated, -1);
rb_define_const(mCproton, "PROTON_MESSENGER_H", SWIG_From_int((int)(1)));
+ rb_define_const(mCproton, "PN_ACCEPT_MODE_AUTO", SWIG_From_int((int)(PN_ACCEPT_MODE_AUTO)));
+ rb_define_const(mCproton, "PN_ACCEPT_MODE_MANUAL", SWIG_From_int((int)(PN_ACCEPT_MODE_MANUAL)));
+ rb_define_const(mCproton, "PN_STATUS_UNKNOWN", SWIG_From_int((int)(PN_STATUS_UNKNOWN)));
+ rb_define_const(mCproton, "PN_STATUS_PENDING", SWIG_From_int((int)(PN_STATUS_PENDING)));
+ rb_define_const(mCproton, "PN_STATUS_ACCEPTED", SWIG_From_int((int)(PN_STATUS_ACCEPTED)));
+ rb_define_const(mCproton, "PN_STATUS_REJECTED", SWIG_From_int((int)(PN_STATUS_REJECTED)));
rb_define_module_function(mCproton, "pn_messenger", _wrap_pn_messenger, -1);
rb_define_module_function(mCproton, "pn_messenger_name", _wrap_pn_messenger_name, -1);
+ rb_define_module_function(mCproton, "pn_messenger_set_certificate", _wrap_pn_messenger_set_certificate, -1);
+ rb_define_module_function(mCproton, "pn_messenger_get_certificate", _wrap_pn_messenger_get_certificate, -1);
+ rb_define_module_function(mCproton, "pn_messenger_set_private_key", _wrap_pn_messenger_set_private_key, -1);
+ rb_define_module_function(mCproton, "pn_messenger_get_private_key", _wrap_pn_messenger_get_private_key, -1);
+ rb_define_module_function(mCproton, "pn_messenger_set_password", _wrap_pn_messenger_set_password, -1);
+ rb_define_module_function(mCproton, "pn_messenger_get_password", _wrap_pn_messenger_get_password, -1);
+ rb_define_module_function(mCproton, "pn_messenger_set_trusted_certificates", _wrap_pn_messenger_set_trusted_certificates, -1);
+ rb_define_module_function(mCproton, "pn_messenger_get_trusted_certificates", _wrap_pn_messenger_get_trusted_certificates, -1);
rb_define_module_function(mCproton, "pn_messenger_set_timeout", _wrap_pn_messenger_set_timeout, -1);
rb_define_module_function(mCproton, "pn_messenger_get_timeout", _wrap_pn_messenger_get_timeout, -1);
rb_define_module_function(mCproton, "pn_messenger_free", _wrap_pn_messenger_free, -1);
rb_define_module_function(mCproton, "pn_messenger_errno", _wrap_pn_messenger_errno, -1);
rb_define_module_function(mCproton, "pn_messenger_error", _wrap_pn_messenger_error, -1);
+ rb_define_module_function(mCproton, "pn_messenger_get_accept_mode", _wrap_pn_messenger_get_accept_mode, -1);
+ rb_define_module_function(mCproton, "pn_messenger_set_accept_mode", _wrap_pn_messenger_set_accept_mode, -1);
+ rb_define_module_function(mCproton, "pn_messenger_get_outgoing_window", _wrap_pn_messenger_get_outgoing_window, -1);
+ rb_define_module_function(mCproton, "pn_messenger_set_outgoing_window", _wrap_pn_messenger_set_outgoing_window, -1);
+ rb_define_module_function(mCproton, "pn_messenger_get_incoming_window", _wrap_pn_messenger_get_incoming_window, -1);
+ rb_define_module_function(mCproton, "pn_messenger_set_incoming_window", _wrap_pn_messenger_set_incoming_window, -1);
rb_define_module_function(mCproton, "pn_messenger_start", _wrap_pn_messenger_start, -1);
rb_define_module_function(mCproton, "pn_messenger_stop", _wrap_pn_messenger_stop, -1);
rb_define_module_function(mCproton, "pn_messenger_subscribe", _wrap_pn_messenger_subscribe, -1);
+ rb_define_module_function(mCproton, "pn_subscription_get_context", _wrap_pn_subscription_get_context, -1);
+ rb_define_module_function(mCproton, "pn_subscription_set_context", _wrap_pn_subscription_set_context, -1);
rb_define_module_function(mCproton, "pn_messenger_put", _wrap_pn_messenger_put, -1);
+ rb_define_module_function(mCproton, "pn_messenger_status", _wrap_pn_messenger_status, -1);
+ rb_define_module_function(mCproton, "pn_messenger_settle", _wrap_pn_messenger_settle, -1);
+ rb_define_module_function(mCproton, "pn_messenger_outgoing_tracker", _wrap_pn_messenger_outgoing_tracker, -1);
rb_define_module_function(mCproton, "pn_messenger_send", _wrap_pn_messenger_send, -1);
rb_define_module_function(mCproton, "pn_messenger_recv", _wrap_pn_messenger_recv, -1);
rb_define_module_function(mCproton, "pn_messenger_get", _wrap_pn_messenger_get, -1);
+ rb_define_module_function(mCproton, "pn_messenger_incoming_tracker", _wrap_pn_messenger_incoming_tracker, -1);
+ rb_define_module_function(mCproton, "pn_messenger_incoming_subscription", _wrap_pn_messenger_incoming_subscription, -1);
+ rb_define_const(mCproton, "PN_CUMULATIVE", SWIG_From_int((int)((0x1))));
+ rb_define_module_function(mCproton, "pn_messenger_accept", _wrap_pn_messenger_accept, -1);
+ rb_define_module_function(mCproton, "pn_messenger_reject", _wrap_pn_messenger_reject, -1);
rb_define_module_function(mCproton, "pn_messenger_outgoing", _wrap_pn_messenger_outgoing, -1);
rb_define_module_function(mCproton, "pn_messenger_incoming", _wrap_pn_messenger_incoming, -1);
+ rb_define_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)));
+ rb_define_const(mCproton, "PN_SSL_RESUME_REUSED", SWIG_From_int((int)(PN_SSL_RESUME_REUSED)));
+ rb_define_module_function(mCproton, "pn_ssl_domain", _wrap_pn_ssl_domain, -1);
+ rb_define_module_function(mCproton, "pn_ssl_domain_free", _wrap_pn_ssl_domain_free, -1);
+ rb_define_module_function(mCproton, "pn_ssl_domain_set_credentials", _wrap_pn_ssl_domain_set_credentials, -1);
+ rb_define_module_function(mCproton, "pn_ssl_domain_set_trusted_ca_db", _wrap_pn_ssl_domain_set_trusted_ca_db, -1);
+ rb_define_const(mCproton, "PN_SSL_VERIFY_NULL", SWIG_From_int((int)(PN_SSL_VERIFY_NULL)));
+ rb_define_const(mCproton, "PN_SSL_VERIFY_PEER", SWIG_From_int((int)(PN_SSL_VERIFY_PEER)));
+ rb_define_const(mCproton, "PN_SSL_ANONYMOUS_PEER", SWIG_From_int((int)(PN_SSL_ANONYMOUS_PEER)));
+ rb_define_const(mCproton, "PN_SSL_VERIFY_PEER_NAME", SWIG_From_int((int)(PN_SSL_VERIFY_PEER_NAME)));
+ rb_define_module_function(mCproton, "pn_ssl_domain_set_peer_authentication", _wrap_pn_ssl_domain_set_peer_authentication, -1);
+ rb_define_module_function(mCproton, "pn_ssl_domain_allow_unsecured_client", _wrap_pn_ssl_domain_allow_unsecured_client, -1);
+ rb_define_module_function(mCproton, "pn_ssl", _wrap_pn_ssl, -1);
+ rb_define_module_function(mCproton, "pn_ssl_init", _wrap_pn_ssl_init, -1);
+ rb_define_module_function(mCproton, "pn_ssl_resume_status", _wrap_pn_ssl_resume_status, -1);
+ rb_define_module_function(mCproton, "pn_ssl_set_peer_hostname", _wrap_pn_ssl_set_peer_hostname, -1);
+ rb_define_module_function(mCproton, "pn_ssl_get_peer_hostname", _wrap_pn_ssl_get_peer_hostname, -1);
+ rb_define_const(mCproton, "PROTON_CODEC_H", SWIG_From_int((int)(1)));
+ rb_define_const(mCproton, "PN_NULL", SWIG_From_int((int)(PN_NULL)));
+ rb_define_const(mCproton, "PN_BOOL", SWIG_From_int((int)(PN_BOOL)));
+ rb_define_const(mCproton, "PN_UBYTE", SWIG_From_int((int)(PN_UBYTE)));
+ rb_define_const(mCproton, "PN_BYTE", SWIG_From_int((int)(PN_BYTE)));
+ rb_define_const(mCproton, "PN_USHORT", SWIG_From_int((int)(PN_USHORT)));
+ rb_define_const(mCproton, "PN_SHORT", SWIG_From_int((int)(PN_SHORT)));
+ rb_define_const(mCproton, "PN_UINT", SWIG_From_int((int)(PN_UINT)));
+ rb_define_const(mCproton, "PN_INT", SWIG_From_int((int)(PN_INT)));
+ rb_define_const(mCproton, "PN_CHAR", SWIG_From_int((int)(PN_CHAR)));
+ rb_define_const(mCproton, "PN_ULONG", SWIG_From_int((int)(PN_ULONG)));
+ rb_define_const(mCproton, "PN_LONG", SWIG_From_int((int)(PN_LONG)));
+ rb_define_const(mCproton, "PN_TIMESTAMP", SWIG_From_int((int)(PN_TIMESTAMP)));
+ rb_define_const(mCproton, "PN_FLOAT", SWIG_From_int((int)(PN_FLOAT)));
+ rb_define_const(mCproton, "PN_DOUBLE", SWIG_From_int((int)(PN_DOUBLE)));
+ rb_define_const(mCproton, "PN_DECIMAL32", SWIG_From_int((int)(PN_DECIMAL32)));
+ rb_define_const(mCproton, "PN_DECIMAL64", SWIG_From_int((int)(PN_DECIMAL64)));
+ rb_define_const(mCproton, "PN_DECIMAL128", SWIG_From_int((int)(PN_DECIMAL128)));
+ rb_define_const(mCproton, "PN_UUID", SWIG_From_int((int)(PN_UUID)));
+ rb_define_const(mCproton, "PN_BINARY", SWIG_From_int((int)(PN_BINARY)));
+ rb_define_const(mCproton, "PN_STRING", SWIG_From_int((int)(PN_STRING)));
+ rb_define_const(mCproton, "PN_SYMBOL", SWIG_From_int((int)(PN_SYMBOL)));
+ rb_define_const(mCproton, "PN_DESCRIBED", SWIG_From_int((int)(PN_DESCRIBED)));
+ rb_define_const(mCproton, "PN_ARRAY", SWIG_From_int((int)(PN_ARRAY)));
+ rb_define_const(mCproton, "PN_LIST", SWIG_From_int((int)(PN_LIST)));
+ rb_define_const(mCproton, "PN_MAP", SWIG_From_int((int)(PN_MAP)));
+
+ SwigClassPn_atom_t.klass = rb_define_class_under(mCproton, "Pn_atom_t", rb_cObject);
+ SWIG_TypeClientData(SWIGTYPE_p_pn_atom_t, (void *) &SwigClassPn_atom_t);
+ rb_define_alloc_func(SwigClassPn_atom_t.klass, _wrap_pn_atom_t_allocate);
+ rb_define_method(SwigClassPn_atom_t.klass, "initialize", _wrap_new_pn_atom_t, -1);
+ rb_define_method(SwigClassPn_atom_t.klass, "type=", _wrap_pn_atom_t_type_set, -1);
+ rb_define_method(SwigClassPn_atom_t.klass, "type", _wrap_pn_atom_t_type_get, -1);
+ rb_define_method(SwigClassPn_atom_t.klass, "u", _wrap_pn_atom_t_u_get, -1);
+ SwigClassPn_atom_t.mark = 0;
+ SwigClassPn_atom_t.destroy = (void (*)(void *)) free_pn_atom_t;
+ SwigClassPn_atom_t.trackObjects = 0;
+
+ SwigClassPn_atom_t_u.klass = rb_define_class_under(mCproton, "Pn_atom_t_u", rb_cObject);
+ SWIG_TypeClientData(SWIGTYPE_p_pn_atom_t_u, (void *) &SwigClassPn_atom_t_u);
+ rb_define_alloc_func(SwigClassPn_atom_t_u.klass, _wrap_pn_atom_t_u_allocate);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "initialize", _wrap_new_pn_atom_t_u, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_bool=", _wrap_pn_atom_t_u_as_bool_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_bool", _wrap_pn_atom_t_u_as_bool_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_ubyte=", _wrap_pn_atom_t_u_as_ubyte_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_ubyte", _wrap_pn_atom_t_u_as_ubyte_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_byte=", _wrap_pn_atom_t_u_as_byte_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_byte", _wrap_pn_atom_t_u_as_byte_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_ushort=", _wrap_pn_atom_t_u_as_ushort_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_ushort", _wrap_pn_atom_t_u_as_ushort_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_short=", _wrap_pn_atom_t_u_as_short_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_short", _wrap_pn_atom_t_u_as_short_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_uint=", _wrap_pn_atom_t_u_as_uint_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_uint", _wrap_pn_atom_t_u_as_uint_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_int=", _wrap_pn_atom_t_u_as_int_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_int", _wrap_pn_atom_t_u_as_int_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_char=", _wrap_pn_atom_t_u_as_char_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_char", _wrap_pn_atom_t_u_as_char_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_ulong=", _wrap_pn_atom_t_u_as_ulong_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_ulong", _wrap_pn_atom_t_u_as_ulong_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_long=", _wrap_pn_atom_t_u_as_long_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_long", _wrap_pn_atom_t_u_as_long_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_timestamp=", _wrap_pn_atom_t_u_as_timestamp_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_timestamp", _wrap_pn_atom_t_u_as_timestamp_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_float=", _wrap_pn_atom_t_u_as_float_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_float", _wrap_pn_atom_t_u_as_float_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_double=", _wrap_pn_atom_t_u_as_double_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_double", _wrap_pn_atom_t_u_as_double_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_decimal32=", _wrap_pn_atom_t_u_as_decimal32_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_decimal32", _wrap_pn_atom_t_u_as_decimal32_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_decimal64=", _wrap_pn_atom_t_u_as_decimal64_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_decimal64", _wrap_pn_atom_t_u_as_decimal64_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_decimal128=", _wrap_pn_atom_t_u_as_decimal128_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_decimal128", _wrap_pn_atom_t_u_as_decimal128_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_uuid=", _wrap_pn_atom_t_u_as_uuid_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_uuid", _wrap_pn_atom_t_u_as_uuid_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_bytes=", _wrap_pn_atom_t_u_as_bytes_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_bytes", _wrap_pn_atom_t_u_as_bytes_get, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_count=", _wrap_pn_atom_t_u_as_count_set, -1);
+ rb_define_method(SwigClassPn_atom_t_u.klass, "as_count", _wrap_pn_atom_t_u_as_count_get, -1);
+ SwigClassPn_atom_t_u.mark = 0;
+ SwigClassPn_atom_t_u.destroy = (void (*)(void *)) free_pn_atom_t_u;
+ SwigClassPn_atom_t_u.trackObjects = 0;
+ rb_define_module_function(mCproton, "pn_data", _wrap_pn_data, -1);
+ rb_define_module_function(mCproton, "pn_data_free", _wrap_pn_data_free, -1);
+ rb_define_module_function(mCproton, "pn_data_errno", _wrap_pn_data_errno, -1);
+ rb_define_module_function(mCproton, "pn_data_error", _wrap_pn_data_error, -1);
+ rb_define_module_function(mCproton, "pn_data_fill", _wrap_pn_data_fill, -1);
+ rb_define_module_function(mCproton, "pn_data_scan", _wrap_pn_data_scan, -1);
+ rb_define_module_function(mCproton, "pn_data_clear", _wrap_pn_data_clear, -1);
+ rb_define_module_function(mCproton, "pn_data_size", _wrap_pn_data_size, -1);
+ rb_define_module_function(mCproton, "pn_data_rewind", _wrap_pn_data_rewind, -1);
+ rb_define_module_function(mCproton, "pn_data_next", _wrap_pn_data_next, -1);
+ rb_define_module_function(mCproton, "pn_data_prev", _wrap_pn_data_prev, -1);
+ rb_define_module_function(mCproton, "pn_data_enter", _wrap_pn_data_enter, -1);
+ rb_define_module_function(mCproton, "pn_data_exit", _wrap_pn_data_exit, -1);
+ rb_define_module_function(mCproton, "pn_data_type", _wrap_pn_data_type, -1);
+ rb_define_module_function(mCproton, "pn_data_print", _wrap_pn_data_print, -1);
+ rb_define_module_function(mCproton, "pn_data_format", _wrap_pn_data_format, -1);
+ rb_define_module_function(mCproton, "pn_data_encode", _wrap_pn_data_encode, -1);
+ rb_define_module_function(mCproton, "pn_data_decode", _wrap_pn_data_decode, -1);
+ rb_define_module_function(mCproton, "pn_data_put_list", _wrap_pn_data_put_list, -1);
+ rb_define_module_function(mCproton, "pn_data_put_map", _wrap_pn_data_put_map, -1);
+ rb_define_module_function(mCproton, "pn_data_put_array", _wrap_pn_data_put_array, -1);
+ rb_define_module_function(mCproton, "pn_data_put_described", _wrap_pn_data_put_described, -1);
+ rb_define_module_function(mCproton, "pn_data_put_null", _wrap_pn_data_put_null, -1);
+ rb_define_module_function(mCproton, "pn_data_put_bool", _wrap_pn_data_put_bool, -1);
+ rb_define_module_function(mCproton, "pn_data_put_ubyte", _wrap_pn_data_put_ubyte, -1);
+ rb_define_module_function(mCproton, "pn_data_put_byte", _wrap_pn_data_put_byte, -1);
+ rb_define_module_function(mCproton, "pn_data_put_ushort", _wrap_pn_data_put_ushort, -1);
+ rb_define_module_function(mCproton, "pn_data_put_short", _wrap_pn_data_put_short, -1);
+ rb_define_module_function(mCproton, "pn_data_put_uint", _wrap_pn_data_put_uint, -1);
+ rb_define_module_function(mCproton, "pn_data_put_int", _wrap_pn_data_put_int, -1);
+ rb_define_module_function(mCproton, "pn_data_put_char", _wrap_pn_data_put_char, -1);
+ rb_define_module_function(mCproton, "pn_data_put_ulong", _wrap_pn_data_put_ulong, -1);
+ rb_define_module_function(mCproton, "pn_data_put_long", _wrap_pn_data_put_long, -1);
+ rb_define_module_function(mCproton, "pn_data_put_timestamp", _wrap_pn_data_put_timestamp, -1);
+ rb_define_module_function(mCproton, "pn_data_put_float", _wrap_pn_data_put_float, -1);
+ rb_define_module_function(mCproton, "pn_data_put_double", _wrap_pn_data_put_double, -1);
+ rb_define_module_function(mCproton, "pn_data_put_decimal32", _wrap_pn_data_put_decimal32, -1);
+ rb_define_module_function(mCproton, "pn_data_put_decimal64", _wrap_pn_data_put_decimal64, -1);
+ rb_define_module_function(mCproton, "pn_data_put_decimal128", _wrap_pn_data_put_decimal128, -1);
+ rb_define_module_function(mCproton, "pn_data_put_uuid", _wrap_pn_data_put_uuid, -1);
+ rb_define_module_function(mCproton, "pn_data_put_binary", _wrap_pn_data_put_binary, -1);
+ rb_define_module_function(mCproton, "pn_data_put_string", _wrap_pn_data_put_string, -1);
+ rb_define_module_function(mCproton, "pn_data_put_symbol", _wrap_pn_data_put_symbol, -1);
+ rb_define_module_function(mCproton, "pn_data_put_atom", _wrap_pn_data_put_atom, -1);
+ rb_define_module_function(mCproton, "pn_data_get_list", _wrap_pn_data_get_list, -1);
+ rb_define_module_function(mCproton, "pn_data_get_map", _wrap_pn_data_get_map, -1);
+ rb_define_module_function(mCproton, "pn_data_get_array", _wrap_pn_data_get_array, -1);
+ rb_define_module_function(mCproton, "pn_data_is_array_described", _wrap_pn_data_is_array_described, -1);
+ rb_define_module_function(mCproton, "pn_data_get_array_type", _wrap_pn_data_get_array_type, -1);
+ rb_define_module_function(mCproton, "pn_data_is_described", _wrap_pn_data_is_described, -1);
+ rb_define_module_function(mCproton, "pn_data_is_null", _wrap_pn_data_is_null, -1);
+ rb_define_module_function(mCproton, "pn_data_get_bool", _wrap_pn_data_get_bool, -1);
+ rb_define_module_function(mCproton, "pn_data_get_ubyte", _wrap_pn_data_get_ubyte, -1);
+ rb_define_module_function(mCproton, "pn_data_get_byte", _wrap_pn_data_get_byte, -1);
+ rb_define_module_function(mCproton, "pn_data_get_ushort", _wrap_pn_data_get_ushort, -1);
+ rb_define_module_function(mCproton, "pn_data_get_short", _wrap_pn_data_get_short, -1);
+ rb_define_module_function(mCproton, "pn_data_get_uint", _wrap_pn_data_get_uint, -1);
+ rb_define_module_function(mCproton, "pn_data_get_int", _wrap_pn_data_get_int, -1);
+ rb_define_module_function(mCproton, "pn_data_get_char", _wrap_pn_data_get_char, -1);
+ rb_define_module_function(mCproton, "pn_data_get_ulong", _wrap_pn_data_get_ulong, -1);
+ rb_define_module_function(mCproton, "pn_data_get_long", _wrap_pn_data_get_long, -1);
+ rb_define_module_function(mCproton, "pn_data_get_timestamp", _wrap_pn_data_get_timestamp, -1);
+ rb_define_module_function(mCproton, "pn_data_get_float", _wrap_pn_data_get_float, -1);
+ rb_define_module_function(mCproton, "pn_data_get_double", _wrap_pn_data_get_double, -1);
+ rb_define_module_function(mCproton, "pn_data_get_decimal32", _wrap_pn_data_get_decimal32, -1);
+ rb_define_module_function(mCproton, "pn_data_get_decimal64", _wrap_pn_data_get_decimal64, -1);
+ rb_define_module_function(mCproton, "pn_data_get_decimal128", _wrap_pn_data_get_decimal128, -1);
+ rb_define_module_function(mCproton, "pn_data_get_uuid", _wrap_pn_data_get_uuid, -1);
+ rb_define_module_function(mCproton, "pn_data_get_binary", _wrap_pn_data_get_binary, -1);
+ rb_define_module_function(mCproton, "pn_data_get_string", _wrap_pn_data_get_string, -1);
+ rb_define_module_function(mCproton, "pn_data_get_symbol", _wrap_pn_data_get_symbol, -1);
+ rb_define_module_function(mCproton, "pn_data_get_bytes", _wrap_pn_data_get_bytes, -1);
+ rb_define_module_function(mCproton, "pn_data_get_atom", _wrap_pn_data_get_atom, -1);
+ rb_define_module_function(mCproton, "pn_data_copy", _wrap_pn_data_copy, -1);
+ rb_define_module_function(mCproton, "pn_data_append", _wrap_pn_data_append, -1);
+ rb_define_module_function(mCproton, "pn_data_appendn", _wrap_pn_data_appendn, -1);
+ rb_define_module_function(mCproton, "pn_data_narrow", _wrap_pn_data_narrow, -1);
+ rb_define_module_function(mCproton, "pn_data_widen", _wrap_pn_data_widen, -1);
+ rb_define_module_function(mCproton, "pn_data_dump", _wrap_pn_data_dump, -1);
}