module Cproton

Constants

CID_pn_buffer
CID_pn_collector
CID_pn_connection
CID_pn_data
CID_pn_delivery
CID_pn_error
CID_pn_event
CID_pn_handler
CID_pn_hash
CID_pn_io
CID_pn_list
CID_pn_listener
CID_pn_listener_socket
CID_pn_map
CID_pn_message
CID_pn_object
CID_pn_proactor
CID_pn_reactor
CID_pn_record
CID_pn_selectable
CID_pn_selector
CID_pn_session
CID_pn_strdup
CID_pn_string
CID_pn_task
CID_pn_timer
CID_pn_transport
CID_pn_url
CID_pn_void
CID_pn_weakref
PN_ABORTED
PN_ACCEPTED
PN_ARG_ERR
PN_ARRAY
PN_BINARY
PN_BOOL
PN_BYTE
PN_CHAR
PN_CONFIGURATION
PN_CONNECTION_BOUND
PN_CONNECTION_FINAL
PN_CONNECTION_INIT
PN_CONNECTION_LOCAL_CLOSE
PN_CONNECTION_LOCAL_OPEN
PN_CONNECTION_REMOTE_CLOSE
PN_CONNECTION_REMOTE_OPEN
PN_CONNECTION_UNBOUND
PN_CONNECTION_WAKE
PN_COORDINATOR
PN_DECIMAL128
PN_DECIMAL32
PN_DECIMAL64
PN_DEFAULT_PRIORITY
PN_DELIVERIES
PN_DELIVERY
PN_DESCRIBED
PN_DIST_MODE_COPY
PN_DIST_MODE_MOVE
PN_DIST_MODE_UNSPECIFIED
PN_DOUBLE
PN_EOS
PN_ERR
PN_EVENT_NONE
PN_EXPIRE_NEVER
PN_EXPIRE_WITH_CONNECTION
PN_EXPIRE_WITH_SESSION
PN_FLOAT
PN_INPROGRESS
PN_INT
PN_INTR
PN_INVALID
PN_LIST
PN_LISTENER_ACCEPT
PN_LISTENER_CLOSE
PN_LISTENER_OPEN
PN_LOCAL_ACTIVE
PN_LOCAL_CLOSED
PN_LOCAL_MASK
PN_LOCAL_UNINIT
PN_LONG
PN_MAP
PN_MILLIS_MAX
PN_MODIFIED
PN_NONDURABLE
PN_NULL
PN_OK
PN_OUT_OF_MEMORY
PN_OVERFLOW
PN_PROACTOR_INACTIVE
PN_PROACTOR_INTERRUPT
PN_PROACTOR_TIMEOUT
PN_RCV_FIRST
PN_RCV_SECOND
PN_REACTOR_FINAL
PN_REACTOR_INIT
PN_REACTOR_QUIESCED
PN_RECEIVED
PN_REFCOUNT
PN_REFCOUNT_KEY
PN_REFCOUNT_VALUE
PN_REJECTED
PN_RELEASED
PN_REMOTE_ACTIVE
PN_REMOTE_CLOSED
PN_REMOTE_MASK
PN_REMOTE_UNINIT
PN_SASL_AUTH
PN_SASL_NONE
PN_SASL_OK
PN_SASL_PERM
PN_SASL_SYS
PN_SASL_TEMP
PN_SELECTABLE_ERROR
PN_SELECTABLE_EXPIRED
PN_SELECTABLE_FINAL
PN_SELECTABLE_INIT
PN_SELECTABLE_READABLE
PN_SELECTABLE_UPDATED
PN_SELECTABLE_WRITABLE
PN_SESSION_FINAL
PN_SESSION_INIT
PN_SESSION_LOCAL_CLOSE
PN_SESSION_LOCAL_OPEN
PN_SESSION_REMOTE_CLOSE
PN_SESSION_REMOTE_OPEN
PN_SHORT
PN_SND_MIXED
PN_SND_SETTLED
PN_SND_UNSETTLED
PN_SOURCE
PN_SSL_ANONYMOUS_PEER
PN_SSL_CERT_SUBJECT_CITY_OR_LOCALITY
PN_SSL_CERT_SUBJECT_COMMON_NAME
PN_SSL_CERT_SUBJECT_COUNTRY_NAME
PN_SSL_CERT_SUBJECT_ORGANIZATION_NAME
PN_SSL_CERT_SUBJECT_ORGANIZATION_UNIT
PN_SSL_CERT_SUBJECT_STATE_OR_PROVINCE
PN_SSL_MD5
PN_SSL_MODE_CLIENT
PN_SSL_MODE_SERVER
PN_SSL_RESUME_NEW
PN_SSL_RESUME_REUSED
PN_SSL_RESUME_UNKNOWN
PN_SSL_SHA1
PN_SSL_SHA256
PN_SSL_SHA512
PN_SSL_VERIFY_NULL
PN_SSL_VERIFY_PEER
PN_SSL_VERIFY_PEER_NAME
PN_STATE_ERR
PN_STRING
PN_SYMBOL
PN_TARGET
PN_TIMEOUT
PN_TIMER_TASK
PN_TIMESTAMP
PN_TRACE_DRV
PN_TRACE_EVT
PN_TRACE_FRM
PN_TRACE_OFF
PN_TRACE_RAW
PN_TRANSPORT
PN_TRANSPORT_AUTHENTICATED
PN_TRANSPORT_CLOSED
PN_TRANSPORT_ERROR
PN_TRANSPORT_HEAD_CLOSED
PN_TRANSPORT_TAIL_CLOSED
PN_UBYTE
PN_UINT
PN_ULONG
PN_UNDERFLOW
PN_UNSPECIFIED
PN_USHORT
PN_UUID
PN_VERSION_MAJOR
PN_VERSION_MINOR
PN_VERSION_POINT
PROTON_CID_H
PROTON_CODEC_H
PROTON_CONDITION_H
PROTON_CONNECTION_DRIVER_H
PROTON_CONNECTION_H
PROTON_DELIVERY_H
PROTON_DISPOSITION_H
PROTON_ERROR_H
PROTON_EVENT_H
PROTON_IMPORT_EXPORT_H
PROTON_MESSAGE_H
PROTON_OBJECT_H
PROTON_SASL_H
PROTON_SESSION_H
PROTON_SSL_H
PROTON_TERMINUS_H
PROTON_TRANSPORT_H
PROTON_TYPES_H
PROTON_URL_H

Public Class Methods

PN_OBJECT() click to toggle source
SWIGINTERN VALUE
_wrap_PN_OBJECT_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_NewPointerObj(SWIG_as_voidptr(PN_OBJECT), SWIGTYPE_p_pn_class_t,  0 );
  return _val;
}
PN_VOID() click to toggle source
SWIGINTERN VALUE
_wrap_PN_VOID_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_NewPointerObj(SWIG_as_voidptr(PN_VOID), SWIGTYPE_p_pn_class_t,  0 );
  return _val;
}
PN_WEAKREF() click to toggle source
SWIGINTERN VALUE
_wrap_PN_WEAKREF_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_NewPointerObj(SWIG_as_voidptr(PN_WEAKREF), SWIGTYPE_p_pn_class_t,  0 );
  return _val;
}
Pn_rbkey__class(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Pn_rbkey__class(int argc, VALUE *argv, VALUE self) {
  pn_class_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_class_t *)Pn_rbkey__class();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_class_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
Pn_rbkey_get_key_value(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Pn_rbkey_get_key_value(int argc, VALUE *argv, VALUE self) {
  Pn_rbkey_t *arg1 = (Pn_rbkey_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_rbkey_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Pn_rbkey_t *","Pn_rbkey_get_key_value", 1, argv[0] )); 
  }
  arg1 = (Pn_rbkey_t *)(argp1);
  result = (char *)Pn_rbkey_get_key_value(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
Pn_rbkey_get_method(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Pn_rbkey_get_method(int argc, VALUE *argv, VALUE self) {
  Pn_rbkey_t *arg1 = (Pn_rbkey_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_rbkey_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Pn_rbkey_t *","Pn_rbkey_get_method", 1, argv[0] )); 
  }
  arg1 = (Pn_rbkey_t *)(argp1);
  result = (char *)Pn_rbkey_get_method(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
Pn_rbkey_get_registry(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Pn_rbkey_get_registry(int argc, VALUE *argv, VALUE self) {
  Pn_rbkey_t *arg1 = (Pn_rbkey_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_rbkey_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Pn_rbkey_t *","Pn_rbkey_get_registry", 1, argv[0] )); 
  }
  arg1 = (Pn_rbkey_t *)(argp1);
  result = (void *)Pn_rbkey_get_registry(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
Pn_rbkey_new(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Pn_rbkey_new(int argc, VALUE *argv, VALUE self) {
  Pn_rbkey_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_rbkey_t *)Pn_rbkey_new();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Pn_rbkey_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
Pn_rbkey_set_key_value(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Pn_rbkey_set_key_value(int argc, VALUE *argv, VALUE self) {
  Pn_rbkey_t *arg1 = (Pn_rbkey_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Pn_rbkey_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Pn_rbkey_t *","Pn_rbkey_set_key_value", 1, argv[0] )); 
  }
  arg1 = (Pn_rbkey_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_rbkey_set_key_value", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  Pn_rbkey_set_key_value(arg1,arg2);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
Pn_rbkey_set_method(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Pn_rbkey_set_method(int argc, VALUE *argv, VALUE self) {
  Pn_rbkey_t *arg1 = (Pn_rbkey_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Pn_rbkey_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Pn_rbkey_t *","Pn_rbkey_set_method", 1, argv[0] )); 
  }
  arg1 = (Pn_rbkey_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_rbkey_set_method", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  Pn_rbkey_set_method(arg1,arg2);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
Pn_rbkey_set_registry(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Pn_rbkey_set_registry(int argc, VALUE *argv, VALUE self) {
  Pn_rbkey_t *arg1 = (Pn_rbkey_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Pn_rbkey_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Pn_rbkey_t *","Pn_rbkey_set_registry", 1, argv[0] )); 
  }
  arg1 = (Pn_rbkey_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","Pn_rbkey_set_registry", 2, argv[1] )); 
  }
  Pn_rbkey_set_registry(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_bytes(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_bytes(int argc, VALUE *argv, VALUE self) {
  size_t arg1 ;
  char *arg2 = (char *) 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  pn_bytes_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",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_bytes", 1, argv[0] ));
  } 
  arg1 = (size_t)(val1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_bytes", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = pn_bytes(arg1,(char const *)arg2);
  {
    vresult = rb_str_new((&result)->start, (&result)->size);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_bytes_null() click to toggle source
SWIGINTERN VALUE
_wrap_pn_bytes_null_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_NewPointerObj(SWIG_as_voidptr(&pn_bytes_null), SWIGTYPE_p_pn_bytes_t,  0 );
  return _val;
}
pn_cast_pn_connection(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_cast_pn_connection(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_cast_pn_connection", 1, argv[0] )); 
  }
  result = (pn_connection_t *)pn_cast_pn_connection(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_cast_pn_delivery(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_cast_pn_delivery(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_cast_pn_delivery", 1, argv[0] )); 
  }
  result = (pn_delivery_t *)pn_cast_pn_delivery(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_cast_pn_session(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_cast_pn_session(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  pn_session_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_cast_pn_session", 1, argv[0] )); 
  }
  result = (pn_session_t *)pn_cast_pn_session(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_cast_pn_transport(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_cast_pn_transport(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_cast_pn_transport", 1, argv[0] )); 
  }
  result = (pn_transport_t *)pn_cast_pn_transport(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_transport_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_class(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_class(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  pn_class_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_class", 1, argv[0] )); 
  }
  result = (pn_class_t *)pn_class(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_class_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_class_compare(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_class_compare(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *arg3 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  int res3 ;
  intptr_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_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_compare", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_compare", 2, argv[1] )); 
  }
  res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_class_compare", 3, argv[2] )); 
  }
  result = pn_class_compare((struct pn_class_t const *)arg1,arg2,arg3);
  vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)calloc(1,sizeof(intptr_t)),&result,sizeof(intptr_t)), SWIGTYPE_p_intptr_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_class_decref(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_class_decref(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  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_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_decref", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_decref", 2, argv[1] )); 
  }
  result = (int)pn_class_decref((struct pn_class_t const *)arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_class_equals(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_class_equals(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *arg3 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  int res3 ;
  bool 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_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_equals", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_equals", 2, argv[1] )); 
  }
  res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_class_equals", 3, argv[2] )); 
  }
  result = (bool)pn_class_equals((struct pn_class_t const *)arg1,arg2,arg3);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_class_free(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_class_free(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_free", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_free", 2, argv[1] )); 
  }
  pn_class_free((struct pn_class_t const *)arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_class_hashcode(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_class_hashcode(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  uintptr_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_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_hashcode", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_hashcode", 2, argv[1] )); 
  }
  result = (uintptr_t)pn_class_hashcode((struct pn_class_t const *)arg1,arg2);
  vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_class_id(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_class_id(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_cid_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_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_id", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  result = (pn_cid_t)pn_class_id((struct pn_class_t const *)arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_class_incref(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_class_incref(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  void *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_incref", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_incref", 2, argv[1] )); 
  }
  result = (void *)pn_class_incref((struct pn_class_t const *)arg1,arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_class_inspect(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_class_inspect(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_t *) 0 ;
  void *arg2 = (void *) 0 ;
  pn_string_t *arg3 = (pn_string_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  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_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_inspect", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_inspect", 2, argv[1] )); 
  }
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_pn_string_t, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "pn_string_t *","pn_class_inspect", 3, argv[2] )); 
  }
  arg3 = (pn_string_t *)(argp3);
  result = (int)pn_class_inspect((struct pn_class_t const *)arg1,arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_class_name(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_class_name(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_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_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_name", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  result = (char *)pn_class_name((struct pn_class_t const *)arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_class_new(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_class_new(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_t *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_new", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_class_new", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  result = (void *)pn_class_new((struct pn_class_t const *)arg1,arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_class_refcount(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_class_refcount(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  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_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_refcount", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_refcount", 2, argv[1] )); 
  }
  result = (int)pn_class_refcount((struct pn_class_t const *)arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_class_reify(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_class_reify(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  pn_class_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_reify", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_reify", 2, argv[1] )); 
  }
  result = (pn_class_t *)pn_class_reify((struct pn_class_t const *)arg1,arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_class_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_code(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_code(int argc, VALUE *argv, VALUE self) {
  int arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "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;
}
pn_collector(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_collector(int argc, VALUE *argv, VALUE self) {
  pn_collector_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (pn_collector_t *)pn_collector();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_collector_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_collector_drain(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_collector_drain(int argc, VALUE *argv, VALUE self) {
  pn_collector_t *arg1 = (pn_collector_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_drain", 1, argv[0] )); 
  }
  arg1 = (pn_collector_t *)(argp1);
  pn_collector_drain(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_collector_free(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_collector_free(int argc, VALUE *argv, VALUE self) {
  pn_collector_t *arg1 = (pn_collector_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_free", 1, argv[0] )); 
  }
  arg1 = (pn_collector_t *)(argp1);
  pn_collector_free(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_collector_more(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_collector_more(int argc, VALUE *argv, VALUE self) {
  pn_collector_t *arg1 = (pn_collector_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_more", 1, argv[0] )); 
  }
  arg1 = (pn_collector_t *)(argp1);
  result = (bool)pn_collector_more(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_collector_next(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_collector_next(int argc, VALUE *argv, VALUE self) {
  pn_collector_t *arg1 = (pn_collector_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_event_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_next", 1, argv[0] )); 
  }
  arg1 = (pn_collector_t *)(argp1);
  result = (pn_event_t *)pn_collector_next(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_collector_peek(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_collector_peek(int argc, VALUE *argv, VALUE self) {
  pn_collector_t *arg1 = (pn_collector_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_event_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_peek", 1, argv[0] )); 
  }
  arg1 = (pn_collector_t *)(argp1);
  result = (pn_event_t *)pn_collector_peek(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_collector_pop(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_collector_pop(int argc, VALUE *argv, VALUE self) {
  pn_collector_t *arg1 = (pn_collector_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_pop", 1, argv[0] )); 
  }
  arg1 = (pn_collector_t *)(argp1);
  result = (bool)pn_collector_pop(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_collector_prev(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_collector_prev(int argc, VALUE *argv, VALUE self) {
  pn_collector_t *arg1 = (pn_collector_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_event_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_prev", 1, argv[0] )); 
  }
  arg1 = (pn_collector_t *)(argp1);
  result = (pn_event_t *)pn_collector_prev(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_collector_put(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_collector_put(int argc, VALUE *argv, VALUE self) {
  pn_collector_t *arg1 = (pn_collector_t *) 0 ;
  pn_class_t *arg2 = (pn_class_t *) 0 ;
  void *arg3 = (void *) 0 ;
  pn_event_type_t arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 ;
  int val4 ;
  int ecode4 = 0 ;
  pn_event_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_put", 1, argv[0] )); 
  }
  arg1 = (pn_collector_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_class_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_class_t const *","pn_collector_put", 2, argv[1] )); 
  }
  arg2 = (pn_class_t *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_collector_put", 3, argv[2] )); 
  }
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "pn_event_type_t","pn_collector_put", 4, argv[3] ));
  } 
  arg4 = (pn_event_type_t)(val4);
  result = (pn_event_t *)pn_collector_put(arg1,(struct pn_class_t const *)arg2,arg3,arg4);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_collector_release(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_collector_release(int argc, VALUE *argv, VALUE self) {
  pn_collector_t *arg1 = (pn_collector_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_release", 1, argv[0] )); 
  }
  arg1 = (pn_collector_t *)(argp1);
  pn_collector_release(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_compare(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_compare(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  void *arg2 = (void *) 0 ;
  int res1 ;
  int res2 ;
  intptr_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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_compare", 1, argv[0] )); 
  }
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_compare", 2, argv[1] )); 
  }
  result = pn_compare(arg1,arg2);
  vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)calloc(1,sizeof(intptr_t)),&result,sizeof(intptr_t)), SWIGTYPE_p_intptr_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_condition(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_condition(int argc, VALUE *argv, VALUE self) {
  pn_condition_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_condition_t *)pn_condition();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_condition_clear(*args) click to toggle source
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;
}
pn_condition_copy(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_condition_copy(int argc, VALUE *argv, VALUE self) {
  pn_condition_t *arg1 = (pn_condition_t *) 0 ;
  pn_condition_t *arg2 = (pn_condition_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_condition_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_copy", 1, argv[0] )); 
  }
  arg1 = (pn_condition_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_condition_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_copy", 2, argv[1] )); 
  }
  arg2 = (pn_condition_t *)(argp2);
  result = (int)pn_condition_copy(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_condition_free(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_condition_free(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_free", 1, argv[0] )); 
  }
  arg1 = (pn_condition_t *)(argp1);
  pn_condition_free(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_condition_get_description(*args) click to toggle source
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;
}
pn_condition_get_name(*args) click to toggle source
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;
}
pn_condition_info(*args) click to toggle source
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;
}
pn_condition_is_redirect(*args) click to toggle source
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;
}
pn_condition_is_set(*args) click to toggle source
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;
}
pn_condition_redirect_host(*args) click to toggle source
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;
}
pn_condition_redirect_port(*args) click to toggle source
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;
}
pn_condition_set_description(*args) click to toggle source
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;
}
pn_condition_set_name(*args) click to toggle source
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;
}
pn_connection(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (pn_connection_t *)pn_connection();
  SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
  
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_connection_attachments(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_attachments(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_record_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_attachments", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  result = (pn_record_t *)pn_connection_attachments(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_record_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_connection_close(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_close(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_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;
}
pn_connection_collect(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_collect(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  pn_collector_t *arg2 = (pn_collector_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_collect", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_collector_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_collector_t *","pn_connection_collect", 2, argv[1] )); 
  }
  arg2 = (pn_collector_t *)(argp2);
  pn_connection_collect(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_connection_collector(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_collector(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_collector_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_collector", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  result = (pn_collector_t *)pn_connection_collector(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_collector_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_connection_condition(*args) click to toggle source
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;
}
pn_connection_desired_capabilities(*args) click to toggle source
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;
}
pn_connection_driver_bind(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_bind(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_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_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_bind", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  result = (int)pn_connection_driver_bind(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_connection_driver_close(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_close(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_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_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_close", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  pn_connection_driver_close(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_connection_driver_destroy(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_destroy(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_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_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_destroy", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  pn_connection_driver_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_connection_driver_errorf(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_errorf(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  void *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  
  if (argc < 3) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_errorf", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_driver_errorf", 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_connection_driver_errorf", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  pn_connection_driver_errorf(arg1,(char const *)arg2,(char const *)arg3,arg4);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}
pn_connection_driver_finished(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_finished(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_finished", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  result = (bool)pn_connection_driver_finished(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_connection_driver_has_event(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_has_event(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_has_event", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  result = (bool)pn_connection_driver_has_event(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_connection_driver_init(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_init(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
  pn_connection_t *arg2 = (pn_connection_t *) 0 ;
  pn_transport_t *arg3 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_init", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_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_connection_driver_init", 2, argv[1] )); 
  }
  arg2 = (pn_connection_t *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "pn_transport_t *","pn_connection_driver_init", 3, argv[2] )); 
  }
  arg3 = (pn_transport_t *)(argp3);
  result = (int)pn_connection_driver_init(arg1,arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_connection_driver_log(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_log(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_log", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_driver_log", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  pn_connection_driver_log(arg1,(char const *)arg2);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_connection_driver_next_event(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_next_event(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_event_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_next_event", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  result = (pn_event_t *)pn_connection_driver_next_event(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_connection_driver_ptr(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_ptr(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_connection_driver_t **result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_driver_ptr", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  result = (pn_connection_driver_t **)pn_connection_driver_ptr(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_pn_connection_driver_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_connection_driver_read_buffer(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_read_buffer(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_rwbytes_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_read_buffer", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  result = pn_connection_driver_read_buffer(arg1);
  vresult = SWIG_NewPointerObj((pn_rwbytes_t *)memcpy((pn_rwbytes_t *)calloc(1,sizeof(pn_rwbytes_t)),&result,sizeof(pn_rwbytes_t)), SWIGTYPE_p_pn_rwbytes_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_connection_driver_read_close(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_read_close(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_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_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_read_close", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  pn_connection_driver_read_close(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_connection_driver_read_closed(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_read_closed(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_read_closed", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  result = (bool)pn_connection_driver_read_closed(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_connection_driver_read_done(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_read_done(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_read_done", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_connection_driver_read_done", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  pn_connection_driver_read_done(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_connection_driver_release_connection(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_release_connection(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_release_connection", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  result = (pn_connection_t *)pn_connection_driver_release_connection(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_connection_driver_write_buffer(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_write_buffer(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_write_buffer", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  result = pn_connection_driver_write_buffer(arg1);
  {
    vresult = rb_str_new((&result)->start, (&result)->size);
  }
  return vresult;
fail:
  return Qnil;
}
pn_connection_driver_write_close(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_write_close(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_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_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_write_close", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  pn_connection_driver_write_close(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_connection_driver_write_closed(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_write_closed(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_write_closed", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  result = (bool)pn_connection_driver_write_closed(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_connection_driver_write_done(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_driver_write_done(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_write_done", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_connection_driver_write_done", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  pn_connection_driver_write_done(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_connection_error(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_error(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_error_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_error", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  result = (pn_error_t *)pn_connection_error(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_connection_free(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_free(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_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;
}
pn_connection_get_container(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_get_container(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_get_container", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  result = (char *)pn_connection_get_container(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_connection_get_context(*args) click to toggle source
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 = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_connection_get_hostname(*args) click to toggle source
SWIGINTERN VALUE
_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;
  
  if ((argc < 1) || (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_hostname", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  result = (char *)pn_connection_get_hostname(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_connection_get_user(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_get_user(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_get_user", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  result = (char *)pn_connection_get_user(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_connection_offered_capabilities(*args) click to toggle source
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;
}
pn_connection_open(*args) click to toggle source
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 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_open", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  pn_connection_open(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_connection_properties(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_properties(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_data_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_properties", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  result = (pn_data_t *)pn_connection_properties(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_connection_release(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_release(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_release", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  pn_connection_release(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_connection_remote_condition(*args) click to toggle source
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;
}
pn_connection_remote_container(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_remote_container(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  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;
}
pn_connection_remote_desired_capabilities(*args) click to toggle source
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;
}
pn_connection_remote_hostname(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_remote_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;
  
  if ((argc < 1) || (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_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;
}
pn_connection_remote_offered_capabilities(*args) click to toggle source
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;
}
pn_connection_remote_properties(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_remote_properties(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  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_properties", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  result = (pn_data_t *)pn_connection_remote_properties(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_connection_reset(*args) click to toggle source
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;
}
pn_connection_set_container(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_set_container(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_container", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_set_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;
}
pn_connection_set_context(*args) click to toggle source
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 ;
  int res2 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_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);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_connection_set_context", 2, argv[1] )); 
  }
  pn_connection_set_context(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_connection_set_hostname(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_set_hostname(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_hostname", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_set_hostname", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  pn_connection_set_hostname(arg1,(char const *)arg2);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_connection_set_password(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_set_password(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_password", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_set_password", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  pn_connection_set_password(arg1,(char const *)arg2);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_connection_set_user(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_set_user(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_user", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_set_user", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  pn_connection_set_user(arg1,(char const *)arg2);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_connection_state(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_state(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_state_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_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;
}
pn_connection_transport(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_connection_transport(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_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_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_transport", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  result = (pn_transport_t *)pn_connection_transport(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_transport_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_data(*args) click to toggle source
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;
}
pn_data_append(*args) click to toggle source
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;
}
pn_data_appendn(*args) click to toggle source
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;
}
pn_data_clear(*args) click to toggle source
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;
}
pn_data_copy(*args) click to toggle source
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;
}
pn_data_decode(*args) click to toggle source
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;
}
pn_data_dump(*args) click to toggle source
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;
}
pn_data_encode(*args) click to toggle source
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;
}
pn_data_encoded_size(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_data_encoded_size(int argc, VALUE *argv, VALUE self) {
  pn_data_t *arg1 = (pn_data_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ssize_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_encoded_size", 1, argv[0] )); 
  }
  arg1 = (pn_data_t *)(argp1);
  result = (ssize_t)pn_data_encoded_size(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_data_enter(*args) click to toggle source
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;
}
pn_data_errno(*args) click to toggle source
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;
}
pn_data_error(*args) click to toggle source
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 ;
  pn_error_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_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 = (pn_error_t *)pn_data_error(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_data_exit(*args) click to toggle source
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;
}
pn_data_fill(*args) click to toggle source
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;
}
pn_data_format(*args) click to toggle source
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;
}
pn_data_free(*args) click to toggle source
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;
}
pn_data_get_array(*args) click to toggle source
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;
}
pn_data_get_array_type(*args) click to toggle source
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;
}
pn_data_get_binary(*args) click to toggle source
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;
}
pn_data_get_bool(*args) click to toggle source
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;
}
pn_data_get_byte(*args) click to toggle source
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;
}
pn_data_get_bytes(*args) click to toggle source
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;
}
pn_data_get_char(*args) click to toggle source
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_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_data_get_decimal128(*args) click to toggle source
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);
  {
    int index;
    
    vresult = rb_ary_new2(16);
    for(index = 0; index < 16; index++)
    {
      rb_ary_store(vresult, 16 - (index + 1), CHR2FIX((&result)->bytes[index]));
    }
  }
  return vresult;
fail:
  return Qnil;
}
pn_data_get_decimal32(*args) click to toggle source
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 = UINT2NUM(result);
  }
  return vresult;
fail:
  return Qnil;
}
pn_data_get_decimal64(*args) click to toggle source
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 = ULL2NUM(result);
  }
  return vresult;
fail:
  return Qnil;
}
pn_data_get_double(*args) click to toggle source
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;
}
pn_data_get_float(*args) click to toggle source
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;
}
pn_data_get_int(*args) click to toggle source
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_long((long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_data_get_list(*args) click to toggle source
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;
}
pn_data_get_long(*args) click to toggle source
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;
}
pn_data_get_map(*args) click to toggle source
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;
}
pn_data_get_short(*args) click to toggle source
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;
}
pn_data_get_string(*args) click to toggle source
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;
}
pn_data_get_symbol(*args) click to toggle source
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;
}
pn_data_get_timestamp(*args) click to toggle source
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;
}
pn_data_get_ubyte(*args) click to toggle source
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;
}
pn_data_get_uint(*args) click to toggle source
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_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_data_get_ulong(*args) click to toggle source
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_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_data_get_ushort(*args) click to toggle source
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;
}
pn_data_get_uuid(*args) click to toggle source
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);
  {
    int index;
    
    vresult = rb_ary_new2(16);
    for(index = 0; index < 16; index++)
    {
      rb_ary_store(vresult, 16 - (index + 1), CHR2FIX((&result)->bytes[index]));
    }
  }
  return vresult;
fail:
  return Qnil;
}
pn_data_is_array_described(*args) click to toggle source
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;
}
pn_data_is_described(*args) click to toggle source
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;
}
pn_data_is_null(*args) click to toggle source
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;
}
pn_data_lookup(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_data_lookup(int argc, VALUE *argv, VALUE self) {
  pn_data_t *arg1 = (pn_data_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  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_lookup", 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_lookup", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (bool)pn_data_lookup(arg1,(char const *)arg2);
  vresult = SWIG_From_bool((bool)(result));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_data_narrow(*args) click to toggle source
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;
}
pn_data_next(*args) click to toggle source
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;
}
pn_data_point(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_data_point(int argc, VALUE *argv, VALUE self) {
  pn_data_t *arg1 = (pn_data_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_handle_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_point", 1, argv[0] )); 
  }
  arg1 = (pn_data_t *)(argp1);
  result = (pn_handle_t)pn_data_point(arg1);
  vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_data_prev(*args) click to toggle source
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;
}
pn_data_print(*args) click to toggle source
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;
}
pn_data_put_array(*args) click to toggle source
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;
}
pn_data_put_binary(*args) click to toggle source
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) {
        (&arg2)->size = 0;
      }
      (&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;
}
pn_data_put_bool(*args) click to toggle source
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;
}
pn_data_put_byte(*args) click to toggle source
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;
}
pn_data_put_char(*args) click to toggle source
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 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_char", 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_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;
}
pn_data_put_decimal128(*args) click to toggle source
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 ;
  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);
  {
    int index;
    
    for(index = 0; index < 16; index++)
    {
      VALUE element = rb_ary_entry(argv[1], index);
      (&arg2)->bytes[16 - (index + 1)] = FIX2INT(element);
    }
  }
  result = (int)pn_data_put_decimal128(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_data_put_decimal32(*args) click to toggle source
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 ;
  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);
  {
    arg2 = NUM2UINT(argv[1]);
  }
  result = (int)pn_data_put_decimal32(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_data_put_decimal64(*args) click to toggle source
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 ;
  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);
  {
    arg2 = NUM2ULL(argv[1]);
  }
  result = (int)pn_data_put_decimal64(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_data_put_described(*args) click to toggle source
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;
}
pn_data_put_double(*args) click to toggle source
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;
}
pn_data_put_float(*args) click to toggle source
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;
}
pn_data_put_int(*args) click to toggle source
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 ;
  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_int", 1, argv[0] )); 
  }
  arg1 = (pn_data_t *)(argp1);
  ecode2 = SWIG_AsVal_long(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;
}
pn_data_put_list(*args) click to toggle source
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;
}
pn_data_put_long(*args) click to toggle source
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;
}
pn_data_put_map(*args) click to toggle source
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;
}
pn_data_put_null(*args) click to toggle source
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;
}
pn_data_put_short(*args) click to toggle source
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;
}
pn_data_put_string(*args) click to toggle source
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) {
        (&arg2)->size = 0;
      }
      (&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;
}
pn_data_put_symbol(*args) click to toggle source
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) {
        (&arg2)->size = 0;
      }
      (&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;
}
pn_data_put_timestamp(*args) click to toggle source
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;
}
pn_data_put_ubyte(*args) click to toggle source
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;
}
pn_data_put_uint(*args) click to toggle source
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 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_uint", 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( "", "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;
}
pn_data_put_ulong(*args) click to toggle source
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 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_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;
}
pn_data_put_ushort(*args) click to toggle source
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;
}
pn_data_put_uuid(*args) click to toggle source
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 ;
  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);
  {
    int index;
    
    for(index = 0; index < 16; index++)
    {
      VALUE element = rb_ary_entry(argv[1], index);
      (&arg2)->bytes[16 - (index + 1)] = FIX2INT(element);
    }
  }
  result = (int)pn_data_put_uuid(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_data_restore(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_data_restore(int argc, VALUE *argv, VALUE self) {
  pn_data_t *arg1 = (pn_data_t *) 0 ;
  pn_handle_t arg2 = (pn_handle_t) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long 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_data_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_restore", 1, argv[0] )); 
  }
  arg1 = (pn_data_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_data_restore", 2, argv[1] ));
  } 
  arg2 = (pn_handle_t)(val2);
  result = (bool)pn_data_restore(arg1,(void const *)arg2);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_data_rewind(*args) click to toggle source
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;
}
pn_data_scan(*args) click to toggle source
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;
}
pn_data_size(*args) click to toggle source
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;
}
pn_data_type(*args) click to toggle source
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;
}
pn_data_widen(*args) click to toggle source
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;
}
pn_decref(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_decref(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_decref", 1, argv[0] )); 
  }
  result = (int)pn_decref(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_delivery(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_delivery(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 ;
  int res2 ;
  char *buf2 = 0 ;
  size_t size2 = 0 ;
  int alloc2 = 0 ;
  pn_delivery_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  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_delivery", 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 *","wrap_pn_delivery", 2, argv[1] ));
  }  
  arg2 = (char *)(buf2);
  arg3 = (size_t)(size2 - 1);
  result = (pn_delivery_t *)wrap_pn_delivery(arg1,arg2,arg3);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 |  0 );
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_delivery_abort(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_delivery_abort(int argc, VALUE *argv, VALUE self) {
  pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_abort", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  pn_delivery_abort(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_delivery_aborted(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_delivery_aborted(int argc, VALUE *argv, VALUE self) {
  pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_aborted", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  result = (bool)pn_delivery_aborted(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_delivery_attachments(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_delivery_attachments(int argc, VALUE *argv, VALUE self) {
  pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_record_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_attachments", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  result = (pn_record_t *)pn_delivery_attachments(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_record_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_delivery_buffered(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_delivery_buffered(int argc, VALUE *argv, VALUE self) {
  pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_buffered", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  result = (bool)pn_delivery_buffered(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_delivery_clear(*args) click to toggle source
SWIGINTERN VALUE
_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_delivery_clear", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  pn_delivery_clear(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_delivery_current(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_delivery_current(int argc, VALUE *argv, VALUE self) {
  pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_current", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  result = (bool)pn_delivery_current(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_delivery_dump(*args) click to toggle source
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 ;
  
  if ((argc < 1) || (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_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;
}
pn_delivery_get_context(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_delivery_get_context(int argc, VALUE *argv, VALUE self) {
  pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_get_context", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  result = (void *)pn_delivery_get_context(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_delivery_local(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_delivery_local(int argc, VALUE *argv, VALUE self) {
  pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_disposition_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_local", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  result = (pn_disposition_t *)pn_delivery_local(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_disposition_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_delivery_local_state(*args) click to toggle source
SWIGINTERN VALUE
_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 ;
  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_delivery_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_local_state", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  result = (uint64_t)pn_delivery_local_state(arg1);
  vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_delivery_partial(*args) click to toggle source
SWIGINTERN VALUE
_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;
  
  if ((argc < 1) || (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_partial", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  result = (bool)pn_delivery_partial(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_delivery_pending(*args) click to toggle source
SWIGINTERN VALUE
_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;
  
  if ((argc < 1) || (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_pending", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  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;
}
pn_delivery_readable(*args) click to toggle source
SWIGINTERN VALUE
_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;
  
  if ((argc < 1) || (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_readable", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  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;
}
pn_delivery_remote(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_delivery_remote(int argc, VALUE *argv, VALUE self) {
  pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_disposition_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_remote", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  result = (pn_disposition_t *)pn_delivery_remote(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_disposition_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_delivery_remote_state(*args) click to toggle source
SWIGINTERN VALUE
_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 ;
  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_delivery_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_remote_state", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  result = (uint64_t)pn_delivery_remote_state(arg1);
  vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_delivery_set_context(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_delivery_set_context(int argc, VALUE *argv, VALUE self) {
  pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_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);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_delivery_set_context", 2, argv[1] )); 
  }
  pn_delivery_set_context(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_delivery_settle(*args) click to toggle source
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;
}
pn_delivery_settled(*args) click to toggle source
SWIGINTERN VALUE
_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;
  
  if ((argc < 1) || (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_settled", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  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;
}
pn_delivery_tag(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_delivery_tag(int argc, VALUE *argv, VALUE self) {
  pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
  char **arg2 = (char **) 0 ;
  size_t *arg3 = (size_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *temp2 = 0 ;
  size_t tempn2 ;
  VALUE vresult = Qnil;
  
  arg2 = &temp2; arg3 = &tempn2;
  if ((argc < 1) || (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 *","wrap_pn_delivery_tag", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  wrap_pn_delivery_tag(arg1,arg2,arg3);
  if (*arg2) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(*arg2,*arg3));
    free(*arg2);
  }
  return vresult;
fail:
  return Qnil;
}
pn_delivery_update(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_delivery_update(int argc, VALUE *argv, VALUE self) {
  pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
  uint64_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    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_unsigned_SS_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","pn_delivery_update", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  pn_delivery_update(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_delivery_updated(*args) click to toggle source
SWIGINTERN VALUE
_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_delivery_updated", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  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;
}
pn_delivery_writable(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_delivery_writable(int argc, VALUE *argv, VALUE self) {
  pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (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_writable", 1, argv[0] )); 
  }
  arg1 = (pn_delivery_t *)(argp1);
  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;
}
pn_disposition_annotations(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_disposition_annotations(int argc, VALUE *argv, VALUE self) {
  pn_disposition_t *arg1 = (pn_disposition_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_data_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_annotations", 1, argv[0] )); 
  }
  arg1 = (pn_disposition_t *)(argp1);
  result = (pn_data_t *)pn_disposition_annotations(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_disposition_condition(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_disposition_condition(int argc, VALUE *argv, VALUE self) {
  pn_disposition_t *arg1 = (pn_disposition_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_condition_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_condition", 1, argv[0] )); 
  }
  arg1 = (pn_disposition_t *)(argp1);
  result = (pn_condition_t *)pn_disposition_condition(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_disposition_data(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_disposition_data(int argc, VALUE *argv, VALUE self) {
  pn_disposition_t *arg1 = (pn_disposition_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_data_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_data", 1, argv[0] )); 
  }
  arg1 = (pn_disposition_t *)(argp1);
  result = (pn_data_t *)pn_disposition_data(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_disposition_get_section_number(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_disposition_get_section_number(int argc, VALUE *argv, VALUE self) {
  pn_disposition_t *arg1 = (pn_disposition_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_disposition_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_get_section_number", 1, argv[0] )); 
  }
  arg1 = (pn_disposition_t *)(argp1);
  result = (uint32_t)pn_disposition_get_section_number(arg1);
  vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_disposition_get_section_offset(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_disposition_get_section_offset(int argc, VALUE *argv, VALUE self) {
  pn_disposition_t *arg1 = (pn_disposition_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_disposition_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_get_section_offset", 1, argv[0] )); 
  }
  arg1 = (pn_disposition_t *)(argp1);
  result = (uint64_t)pn_disposition_get_section_offset(arg1);
  vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_disposition_is_failed(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_disposition_is_failed(int argc, VALUE *argv, VALUE self) {
  pn_disposition_t *arg1 = (pn_disposition_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_disposition_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_is_failed", 1, argv[0] )); 
  }
  arg1 = (pn_disposition_t *)(argp1);
  result = (bool)pn_disposition_is_failed(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_disposition_is_undeliverable(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_disposition_is_undeliverable(int argc, VALUE *argv, VALUE self) {
  pn_disposition_t *arg1 = (pn_disposition_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_disposition_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_is_undeliverable", 1, argv[0] )); 
  }
  arg1 = (pn_disposition_t *)(argp1);
  result = (bool)pn_disposition_is_undeliverable(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_disposition_set_failed(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_disposition_set_failed(int argc, VALUE *argv, VALUE self) {
  pn_disposition_t *arg1 = (pn_disposition_t *) 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_set_failed", 1, argv[0] )); 
  }
  arg1 = (pn_disposition_t *)(argp1);
  ecode2 = SWIG_AsVal_bool(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_disposition_set_failed", 2, argv[1] ));
  } 
  arg2 = (bool)(val2);
  pn_disposition_set_failed(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_disposition_set_section_number(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_disposition_set_section_number(int argc, VALUE *argv, VALUE self) {
  pn_disposition_t *arg1 = (pn_disposition_t *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_set_section_number", 1, argv[0] )); 
  }
  arg1 = (pn_disposition_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","pn_disposition_set_section_number", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  pn_disposition_set_section_number(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_disposition_set_section_offset(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_disposition_set_section_offset(int argc, VALUE *argv, VALUE self) {
  pn_disposition_t *arg1 = (pn_disposition_t *) 0 ;
  uint64_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_set_section_offset", 1, argv[0] )); 
  }
  arg1 = (pn_disposition_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","pn_disposition_set_section_offset", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  pn_disposition_set_section_offset(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_disposition_set_undeliverable(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_disposition_set_undeliverable(int argc, VALUE *argv, VALUE self) {
  pn_disposition_t *arg1 = (pn_disposition_t *) 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_disposition_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_set_undeliverable", 1, argv[0] )); 
  }
  arg1 = (pn_disposition_t *)(argp1);
  ecode2 = SWIG_AsVal_bool(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_disposition_set_undeliverable", 2, argv[1] ));
  } 
  arg2 = (bool)(val2);
  pn_disposition_set_undeliverable(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_disposition_type(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_disposition_type(int argc, VALUE *argv, VALUE self) {
  pn_disposition_t *arg1 = (pn_disposition_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_disposition_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_disposition_t *","pn_disposition_type", 1, argv[0] )); 
  }
  arg1 = (pn_disposition_t *)(argp1);
  result = (uint64_t)pn_disposition_type(arg1);
  vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_disposition_type_name(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_disposition_type_name(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long long val1 ;
  int ecode1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","pn_disposition_type_name", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (char *)pn_disposition_type_name(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_dtag(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_dtag(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  size_t arg2 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  pn_delivery_tag_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_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","pn_dtag", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_dtag", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  result = pn_dtag((char const *)arg1,arg2);
  {
    vresult = rb_str_new((&result)->start, (&result)->size);
  }
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}
pn_equals(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_equals(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  void *arg2 = (void *) 0 ;
  int res1 ;
  int res2 ;
  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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_equals", 1, argv[0] )); 
  }
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_equals", 2, argv[1] )); 
  }
  result = (bool)pn_equals(arg1,arg2);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_error(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_error(int argc, VALUE *argv, VALUE self) {
  pn_error_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_error_t *)pn_error();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_error_clear(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_error_clear(int argc, VALUE *argv, VALUE self) {
  pn_error_t *arg1 = (pn_error_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_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;
}
pn_error_code(*args) click to toggle source
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;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",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_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;
}
pn_error_copy(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_error_copy(int argc, VALUE *argv, VALUE self) {
  pn_error_t *arg1 = (pn_error_t *) 0 ;
  pn_error_t *arg2 = (pn_error_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  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_error_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_error_t *","pn_error_copy", 1, argv[0] )); 
  }
  arg1 = (pn_error_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_error_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_error_t *","pn_error_copy", 2, argv[1] )); 
  }
  arg2 = (pn_error_t *)(argp2);
  result = (int)pn_error_copy(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_error_free(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_error_free(int argc, VALUE *argv, VALUE self) {
  pn_error_t *arg1 = (pn_error_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_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;
}
pn_error_set(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_error_set(int argc, VALUE *argv, VALUE self) {
  pn_error_t *arg1 = (pn_error_t *) 0 ;
  int 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_error_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_error_t *","pn_error_set", 1, argv[0] )); 
  }
  arg1 = (pn_error_t *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_error_set", 2, argv[1] ));
  } 
  arg2 = (int)(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_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:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}
pn_error_text(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_error_text(int argc, VALUE *argv, VALUE self) {
  pn_error_t *arg1 = (pn_error_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_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;
}
pn_event_attachments(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_event_attachments(int argc, VALUE *argv, VALUE self) {
  pn_event_t *arg1 = (pn_event_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_record_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_attachments", 1, argv[0] )); 
  }
  arg1 = (pn_event_t *)(argp1);
  result = (pn_record_t *)pn_event_attachments(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_record_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_event_class(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_event_class(int argc, VALUE *argv, VALUE self) {
  pn_event_t *arg1 = (pn_event_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_class_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_class", 1, argv[0] )); 
  }
  arg1 = (pn_event_t *)(argp1);
  result = (pn_class_t *)pn_event_class(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_class_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_event_condition(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_event_condition(int argc, VALUE *argv, VALUE self) {
  pn_event_t *arg1 = (pn_event_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct pn_condition_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_condition", 1, argv[0] )); 
  }
  arg1 = (pn_event_t *)(argp1);
  result = (struct pn_condition_t *)pn_event_condition(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_event_connection(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_event_connection(int argc, VALUE *argv, VALUE self) {
  pn_event_t *arg1 = (pn_event_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_connection_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_connection", 1, argv[0] )); 
  }
  arg1 = (pn_event_t *)(argp1);
  result = (pn_connection_t *)pn_event_connection(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_event_context(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_event_context(int argc, VALUE *argv, VALUE self) {
  pn_event_t *arg1 = (pn_event_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_event_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_context", 1, argv[0] )); 
  }
  arg1 = (pn_event_t *)(argp1);
  result = (void *)pn_event_context(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_event_copy(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_event_copy(int argc, VALUE *argv, VALUE self) {
  pn_event_t *arg1 = (pn_event_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_event_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_copy", 1, argv[0] )); 
  }
  arg1 = (pn_event_t *)(argp1);
  result = (pn_event_t *)pn_event_copy(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_event_delivery(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_event_delivery(int argc, VALUE *argv, VALUE self) {
  pn_event_t *arg1 = (pn_event_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_delivery_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_delivery", 1, argv[0] )); 
  }
  arg1 = (pn_event_t *)(argp1);
  result = (pn_delivery_t *)pn_event_delivery(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_delivery_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_event_session(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_event_session(int argc, VALUE *argv, VALUE self) {
  pn_event_t *arg1 = (pn_event_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_session_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_session", 1, argv[0] )); 
  }
  arg1 = (pn_event_t *)(argp1);
  result = (pn_session_t *)pn_event_session(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_event_transport(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_event_transport(int argc, VALUE *argv, VALUE self) {
  pn_event_t *arg1 = (pn_event_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_transport_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_transport", 1, argv[0] )); 
  }
  arg1 = (pn_event_t *)(argp1);
  result = (pn_transport_t *)pn_event_transport(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_transport_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_event_type(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_event_type(int argc, VALUE *argv, VALUE self) {
  pn_event_t *arg1 = (pn_event_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_event_type_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_type", 1, argv[0] )); 
  }
  arg1 = (pn_event_t *)(argp1);
  result = (pn_event_type_t)pn_event_type(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_event_type_name(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_event_type_name(int argc, VALUE *argv, VALUE self) {
  pn_event_type_t arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "pn_event_type_t","pn_event_type_name", 1, argv[0] ));
  } 
  arg1 = (pn_event_type_t)(val1);
  result = (char *)pn_event_type_name(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_free(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_free(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_free", 1, argv[0] )); 
  }
  pn_free(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_hash(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_hash(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_t *) 0 ;
  size_t arg2 ;
  float arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  pn_hash_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_hash", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_hash", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  ecode3 = SWIG_AsVal_float(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "float","pn_hash", 3, argv[2] ));
  } 
  arg3 = (float)(val3);
  result = (pn_hash_t *)pn_hash((struct pn_class_t const *)arg1,arg2,arg3);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_hash_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_hash_del(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_hash_del(int argc, VALUE *argv, VALUE self) {
  pn_hash_t *arg1 = (pn_hash_t *) 0 ;
  uintptr_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_del", 1, argv[0] )); 
  }
  arg1 = (pn_hash_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_del", 2, argv[1] ));
  } 
  arg2 = (uintptr_t)(val2);
  pn_hash_del(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_hash_get(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_hash_get(int argc, VALUE *argv, VALUE self) {
  pn_hash_t *arg1 = (pn_hash_t *) 0 ;
  uintptr_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long val2 ;
  int ecode2 = 0 ;
  void *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_hash_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_get", 1, argv[0] )); 
  }
  arg1 = (pn_hash_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_get", 2, argv[1] ));
  } 
  arg2 = (uintptr_t)(val2);
  result = (void *)pn_hash_get(arg1,arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_hash_head(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_hash_head(int argc, VALUE *argv, VALUE self) {
  pn_hash_t *arg1 = (pn_hash_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_handle_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_hash_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_head", 1, argv[0] )); 
  }
  arg1 = (pn_hash_t *)(argp1);
  result = (pn_handle_t)pn_hash_head(arg1);
  vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_hash_key(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_hash_key(int argc, VALUE *argv, VALUE self) {
  pn_hash_t *arg1 = (pn_hash_t *) 0 ;
  pn_handle_t arg2 = (pn_handle_t) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long val2 ;
  int ecode2 = 0 ;
  uintptr_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_hash_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_key", 1, argv[0] )); 
  }
  arg1 = (pn_hash_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_key", 2, argv[1] ));
  } 
  arg2 = (pn_handle_t)(val2);
  result = (uintptr_t)pn_hash_key(arg1,(void const *)arg2);
  vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_hash_next(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_hash_next(int argc, VALUE *argv, VALUE self) {
  pn_hash_t *arg1 = (pn_hash_t *) 0 ;
  pn_handle_t arg2 = (pn_handle_t) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long val2 ;
  int ecode2 = 0 ;
  pn_handle_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_hash_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_next", 1, argv[0] )); 
  }
  arg1 = (pn_hash_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_next", 2, argv[1] ));
  } 
  arg2 = (pn_handle_t)(val2);
  result = (pn_handle_t)pn_hash_next(arg1,(void const *)arg2);
  vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_hash_put(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_hash_put(int argc, VALUE *argv, VALUE self) {
  pn_hash_t *arg1 = (pn_hash_t *) 0 ;
  uintptr_t arg2 ;
  void *arg3 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long val2 ;
  int ecode2 = 0 ;
  int res3 ;
  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_hash_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_put", 1, argv[0] )); 
  }
  arg1 = (pn_hash_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_put", 2, argv[1] ));
  } 
  arg2 = (uintptr_t)(val2);
  res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_hash_put", 3, argv[2] )); 
  }
  result = (int)pn_hash_put(arg1,arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_hash_size(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_hash_size(int argc, VALUE *argv, VALUE self) {
  pn_hash_t *arg1 = (pn_hash_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_hash_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_size", 1, argv[0] )); 
  }
  arg1 = (pn_hash_t *)(argp1);
  result = (size_t)pn_hash_size(arg1);
  vresult = SWIG_From_size_t((size_t)(result));
  return vresult;
fail:
  return Qnil;
}
pn_hash_value(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_hash_value(int argc, VALUE *argv, VALUE self) {
  pn_hash_t *arg1 = (pn_hash_t *) 0 ;
  pn_handle_t arg2 = (pn_handle_t) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long val2 ;
  int ecode2 = 0 ;
  void *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_hash_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_value", 1, argv[0] )); 
  }
  arg1 = (pn_hash_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_value", 2, argv[1] ));
  } 
  arg2 = (pn_handle_t)(val2);
  result = (void *)pn_hash_value(arg1,(void const *)arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_hashcode(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_hashcode(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  uintptr_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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_hashcode", 1, argv[0] )); 
  }
  result = (uintptr_t)pn_hashcode(arg1);
  vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_incref(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_incref(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_incref", 1, argv[0] )); 
  }
  result = (void *)pn_incref(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_inspect(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_inspect(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  pn_string_t *arg2 = (pn_string_t *) 0 ;
  int res1 ;
  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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_inspect", 1, argv[0] )); 
  }
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_string_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_string_t *","pn_inspect", 2, argv[1] )); 
  }
  arg2 = (pn_string_t *)(argp2);
  result = (int)pn_inspect(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_iterator(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_iterator(int argc, VALUE *argv, VALUE self) {
  pn_iterator_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (pn_iterator_t *)pn_iterator();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_iterator_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_iterator_next(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_iterator_next(int argc, VALUE *argv, VALUE self) {
  pn_iterator_t *arg1 = (pn_iterator_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_iterator_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_iterator_t *","pn_iterator_next", 1, argv[0] )); 
  }
  arg1 = (pn_iterator_t *)(argp1);
  result = (void *)pn_iterator_next(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_iterator_start(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_iterator_start(int argc, VALUE *argv, VALUE self) {
  pn_iterator_t *arg1 = (pn_iterator_t *) 0 ;
  pn_iterator_next_t arg2 = (pn_iterator_next_t) 0 ;
  size_t arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  void *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_iterator_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_iterator_t *","pn_iterator_start", 1, argv[0] )); 
  }
  arg1 = (pn_iterator_t *)(argp1);
  {
    int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_void__p_void);
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "pn_iterator_next_t","pn_iterator_start", 2, argv[1] )); 
    }
  }
  ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_iterator_start", 3, argv[2] ));
  } 
  arg3 = (size_t)(val3);
  result = (void *)pn_iterator_start(arg1,arg2,arg3);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_list(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_list(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_t *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  pn_list_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_list", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_list", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  result = (pn_list_t *)pn_list((struct pn_class_t const *)arg1,arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_list_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_list_add(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_list_add(int argc, VALUE *argv, VALUE self) {
  pn_list_t *arg1 = (pn_list_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  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_list_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_add", 1, argv[0] )); 
  }
  arg1 = (pn_list_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_list_add", 2, argv[1] )); 
  }
  result = (int)pn_list_add(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_list_clear(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_list_clear(int argc, VALUE *argv, VALUE self) {
  pn_list_t *arg1 = (pn_list_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_clear", 1, argv[0] )); 
  }
  arg1 = (pn_list_t *)(argp1);
  pn_list_clear(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_list_del(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_list_del(int argc, VALUE *argv, VALUE self) {
  pn_list_t *arg1 = (pn_list_t *) 0 ;
  int arg2 ;
  int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_del", 1, argv[0] )); 
  }
  arg1 = (pn_list_t *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_list_del", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","pn_list_del", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  pn_list_del(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
pn_list_get(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_list_get(int argc, VALUE *argv, VALUE self) {
  pn_list_t *arg1 = (pn_list_t *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  void *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_list_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_get", 1, argv[0] )); 
  }
  arg1 = (pn_list_t *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_list_get", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  result = (void *)pn_list_get(arg1,arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_list_index(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_list_index(int argc, VALUE *argv, VALUE self) {
  pn_list_t *arg1 = (pn_list_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  ssize_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_list_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_index", 1, argv[0] )); 
  }
  arg1 = (pn_list_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_list_index", 2, argv[1] )); 
  }
  result = (ssize_t)pn_list_index(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_list_iterator(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_list_iterator(int argc, VALUE *argv, VALUE self) {
  pn_list_t *arg1 = (pn_list_t *) 0 ;
  pn_iterator_t *arg2 = (pn_iterator_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_iterator", 1, argv[0] )); 
  }
  arg1 = (pn_list_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_iterator_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_iterator_t *","pn_list_iterator", 2, argv[1] )); 
  }
  arg2 = (pn_iterator_t *)(argp2);
  pn_list_iterator(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_list_minpop(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_list_minpop(int argc, VALUE *argv, VALUE self) {
  pn_list_t *arg1 = (pn_list_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_list_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_minpop", 1, argv[0] )); 
  }
  arg1 = (pn_list_t *)(argp1);
  result = (void *)pn_list_minpop(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_list_minpush(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_list_minpush(int argc, VALUE *argv, VALUE self) {
  pn_list_t *arg1 = (pn_list_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_minpush", 1, argv[0] )); 
  }
  arg1 = (pn_list_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_list_minpush", 2, argv[1] )); 
  }
  pn_list_minpush(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_list_pop(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_list_pop(int argc, VALUE *argv, VALUE self) {
  pn_list_t *arg1 = (pn_list_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_list_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_pop", 1, argv[0] )); 
  }
  arg1 = (pn_list_t *)(argp1);
  result = (void *)pn_list_pop(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_list_remove(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_list_remove(int argc, VALUE *argv, VALUE self) {
  pn_list_t *arg1 = (pn_list_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  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_list_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_remove", 1, argv[0] )); 
  }
  arg1 = (pn_list_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_list_remove", 2, argv[1] )); 
  }
  result = (bool)pn_list_remove(arg1,arg2);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_list_set(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_list_set(int argc, VALUE *argv, VALUE self) {
  pn_list_t *arg1 = (pn_list_t *) 0 ;
  int arg2 ;
  void *arg3 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int res3 ;
  
  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_list_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_set", 1, argv[0] )); 
  }
  arg1 = (pn_list_t *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_list_set", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_list_set", 3, argv[2] )); 
  }
  pn_list_set(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
pn_list_size(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_list_size(int argc, VALUE *argv, VALUE self) {
  pn_list_t *arg1 = (pn_list_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_list_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_size", 1, argv[0] )); 
  }
  arg1 = (pn_list_t *)(argp1);
  result = (size_t)pn_list_size(arg1);
  vresult = SWIG_From_size_t((size_t)(result));
  return vresult;
fail:
  return Qnil;
}
pn_map(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_map(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_t *) 0 ;
  pn_class_t *arg2 = (pn_class_t *) 0 ;
  size_t arg3 ;
  float arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  float val4 ;
  int ecode4 = 0 ;
  pn_map_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_map", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_class_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_class_t const *","pn_map", 2, argv[1] )); 
  }
  arg2 = (pn_class_t *)(argp2);
  ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_map", 3, argv[2] ));
  } 
  arg3 = (size_t)(val3);
  ecode4 = SWIG_AsVal_float(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "float","pn_map", 4, argv[3] ));
  } 
  arg4 = (float)(val4);
  result = (pn_map_t *)pn_map((struct pn_class_t const *)arg1,(struct pn_class_t const *)arg2,arg3,arg4);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_map_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_map_del(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_map_del(int argc, VALUE *argv, VALUE self) {
  pn_map_t *arg1 = (pn_map_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_del", 1, argv[0] )); 
  }
  arg1 = (pn_map_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_map_del", 2, argv[1] )); 
  }
  pn_map_del(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_map_get(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_map_get(int argc, VALUE *argv, VALUE self) {
  pn_map_t *arg1 = (pn_map_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  void *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_map_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_get", 1, argv[0] )); 
  }
  arg1 = (pn_map_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_map_get", 2, argv[1] )); 
  }
  result = (void *)pn_map_get(arg1,arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_map_head(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_map_head(int argc, VALUE *argv, VALUE self) {
  pn_map_t *arg1 = (pn_map_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_handle_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_map_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_head", 1, argv[0] )); 
  }
  arg1 = (pn_map_t *)(argp1);
  result = (pn_handle_t)pn_map_head(arg1);
  vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_map_key(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_map_key(int argc, VALUE *argv, VALUE self) {
  pn_map_t *arg1 = (pn_map_t *) 0 ;
  pn_handle_t arg2 = (pn_handle_t) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long val2 ;
  int ecode2 = 0 ;
  void *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_map_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_key", 1, argv[0] )); 
  }
  arg1 = (pn_map_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_key", 2, argv[1] ));
  } 
  arg2 = (pn_handle_t)(val2);
  result = (void *)pn_map_key(arg1,(void const *)arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_map_next(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_map_next(int argc, VALUE *argv, VALUE self) {
  pn_map_t *arg1 = (pn_map_t *) 0 ;
  pn_handle_t arg2 = (pn_handle_t) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long val2 ;
  int ecode2 = 0 ;
  pn_handle_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_map_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_next", 1, argv[0] )); 
  }
  arg1 = (pn_map_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_next", 2, argv[1] ));
  } 
  arg2 = (pn_handle_t)(val2);
  result = (pn_handle_t)pn_map_next(arg1,(void const *)arg2);
  vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_map_put(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_map_put(int argc, VALUE *argv, VALUE self) {
  pn_map_t *arg1 = (pn_map_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *arg3 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  int res3 ;
  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_map_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_put", 1, argv[0] )); 
  }
  arg1 = (pn_map_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_map_put", 2, argv[1] )); 
  }
  res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_map_put", 3, argv[2] )); 
  }
  result = (int)pn_map_put(arg1,arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_map_size(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_map_size(int argc, VALUE *argv, VALUE self) {
  pn_map_t *arg1 = (pn_map_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_map_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_size", 1, argv[0] )); 
  }
  arg1 = (pn_map_t *)(argp1);
  result = (size_t)pn_map_size(arg1);
  vresult = SWIG_From_size_t((size_t)(result));
  return vresult;
fail:
  return Qnil;
}
pn_map_value(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_map_value(int argc, VALUE *argv, VALUE self) {
  pn_map_t *arg1 = (pn_map_t *) 0 ;
  pn_handle_t arg2 = (pn_handle_t) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long val2 ;
  int ecode2 = 0 ;
  void *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_map_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_value", 1, argv[0] )); 
  }
  arg1 = (pn_map_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_value", 2, argv[1] ));
  } 
  arg2 = (pn_handle_t)(val2);
  result = (void *)pn_map_value(arg1,(void const *)arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_message(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message(int argc, VALUE *argv, VALUE self) {
  pn_message_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_message_t *)pn_message();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_message_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_message_annotations(*args) click to toggle source
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;
}
pn_message_body(*args) click to toggle source
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;
}
pn_message_clear(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_clear(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_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;
}
pn_message_correlation_id(*args) click to toggle source
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;
}
pn_message_data(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_data(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_message_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_data", 1, argv[0] )); 
  }
  arg1 = (pn_message_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_message_data", 2, argv[1] )); 
  }
  arg2 = (pn_data_t *)(argp2);
  result = (int)pn_message_data(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_message_decode(*args) click to toggle source
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 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  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_decode", 1, argv[0] )); 
  }
  arg1 = (pn_message_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_message_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_message_decode", 3, argv[2] ));
  } 
  arg3 = (size_t)(val3);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  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:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_message_encode(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_encode(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_t *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t *arg3 = (size_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  size_t n2 ;
  char *buff2 = 0 ;
  size_t size2 ;
  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_encode", 1, argv[0] )); 
  }
  arg1 = (pn_message_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)","pn_message_encode", 2, argv[1] ));
  }
  buff2= (char *)calloc(n2+1, sizeof(char));
  arg2 = (char *)(buff2);
  size2 = (size_t)(n2);
  arg3 = &size2;
  result = (int)pn_message_encode(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:
  if (buff2) free((char*)buff2);
  return Qnil;
}
pn_message_encode2(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_encode2(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_t *) 0 ;
  pn_rwbytes_t *arg2 = (pn_rwbytes_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  ssize_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_message_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_encode2", 1, argv[0] )); 
  }
  arg1 = (pn_message_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_rwbytes_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_rwbytes_t *","pn_message_encode2", 2, argv[1] )); 
  }
  arg2 = (pn_rwbytes_t *)(argp2);
  result = (ssize_t)pn_message_encode2(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_message_errno(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_errno(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_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;
}
pn_message_error(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_error(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_error_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_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 = (pn_error_t *)pn_message_error(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_message_free(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_free(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_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;
}
pn_message_get_address(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_get_address(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_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;
}
pn_message_get_content_encoding(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_get_content_encoding(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_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;
}
pn_message_get_content_type(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_get_content_type(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_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;
}
pn_message_get_correlation_id(*args) click to toggle source
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;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (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_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);
  {
    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;
      
    default:
      break;
    }
  }
  return vresult;
fail:
  return Qnil;
}
pn_message_get_creation_time(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_get_creation_time(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_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_long_SS_long((long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_message_get_delivery_count(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_get_delivery_count(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_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_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_message_get_expiry_time(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_get_expiry_time(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_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_long_SS_long((long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_message_get_group_id(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_get_group_id(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_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;
}
pn_message_get_group_sequence(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_get_group_sequence(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_sequence_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_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_unsigned_SS_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_message_get_id(*args) click to toggle source
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;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (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_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);
  {
    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;
      
    default:
      break;
    }
  }
  return vresult;
fail:
  return Qnil;
}
pn_message_get_priority(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_get_priority(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_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;
}
pn_message_get_reply_to(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_get_reply_to(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_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;
}
pn_message_get_reply_to_group_id(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_get_reply_to_group_id(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_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;
}
pn_message_get_subject(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_get_subject(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_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;
}
pn_message_get_ttl(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_get_ttl(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_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_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_message_get_user_id(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_get_user_id(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_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;
fail:
  return Qnil;
}
pn_message_id(*args) click to toggle source
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;
}
pn_message_instructions(*args) click to toggle source
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;
}
pn_message_is_durable(*args) click to toggle source
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;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (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_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;
}
pn_message_is_first_acquirer(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_is_first_acquirer(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_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;
}
pn_message_is_inferred(*args) click to toggle source
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;
}
pn_message_properties(*args) click to toggle source
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;
}
pn_message_send(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_send(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_t *) 0 ;
  pn_link_t *arg2 = (pn_link_t *) 0 ;
  pn_rwbytes_t *arg3 = (pn_rwbytes_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 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_message_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_send", 1, argv[0] )); 
  }
  arg1 = (pn_message_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_link_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_link_t *","pn_message_send", 2, argv[1] )); 
  }
  arg2 = (pn_link_t *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_pn_rwbytes_t, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "pn_rwbytes_t *","pn_message_send", 3, argv[2] )); 
  }
  arg3 = (pn_rwbytes_t *)(argp3);
  result = (ssize_t)pn_message_send(arg1,arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_message_set_address(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_set_address(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_message_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_address", 1, argv[0] )); 
  }
  arg1 = (pn_message_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_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:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_message_set_content_encoding(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_set_content_encoding(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_message_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_content_encoding", 1, argv[0] )); 
  }
  arg1 = (pn_message_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_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:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_message_set_content_type(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_set_content_type(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_message_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_content_type", 1, argv[0] )); 
  }
  arg1 = (pn_message_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_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:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_message_set_correlation_id(*args) click to toggle source
SWIGINTERN VALUE
_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 ;
  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_correlation_id", 1, argv[0] )); 
  }
  arg1 = (pn_message_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;
        
      }
    }
  }
  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;
}
pn_message_set_creation_time(*args) click to toggle source
SWIGINTERN VALUE
_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 ;
  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_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_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;
}
pn_message_set_delivery_count(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_set_delivery_count(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_t *) 0 ;
  uint32_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_message_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_delivery_count", 1, argv[0] )); 
  }
  arg1 = (pn_message_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","pn_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;
}
pn_message_set_durable(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_set_durable(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_durable", 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_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;
}
pn_message_set_expiry_time(*args) click to toggle source
SWIGINTERN VALUE
_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 ;
  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_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_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;
}
pn_message_set_first_acquirer(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_set_first_acquirer(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_first_acquirer", 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_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;
}
pn_message_set_group_id(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_set_group_id(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_message_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_group_id", 1, argv[0] )); 
  }
  arg1 = (pn_message_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_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:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_message_set_group_sequence(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_set_group_sequence(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_t *) 0 ;
  pn_sequence_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_message_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_group_sequence", 1, argv[0] )); 
  }
  arg1 = (pn_message_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_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;
}
pn_message_set_id(*args) click to toggle source
SWIGINTERN VALUE
_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 ;
  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_id", 1, argv[0] )); 
  }
  arg1 = (pn_message_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;
        
      }
    }
  }
  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;
}
pn_message_set_inferred(*args) click to toggle source
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;
}
pn_message_set_priority(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_set_priority(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_message_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_priority", 1, argv[0] )); 
  }
  arg1 = (pn_message_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_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;
}
pn_message_set_reply_to(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_set_reply_to(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_message_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_reply_to", 1, argv[0] )); 
  }
  arg1 = (pn_message_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_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:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_message_set_reply_to_group_id(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_set_reply_to_group_id(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_message_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_reply_to_group_id", 1, argv[0] )); 
  }
  arg1 = (pn_message_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_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:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_message_set_subject(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_set_subject(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_message_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_subject", 1, argv[0] )); 
  }
  arg1 = (pn_message_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_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:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_message_set_ttl(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_set_ttl(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_t *) 0 ;
  pn_millis_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_message_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_ttl", 1, argv[0] )); 
  }
  arg1 = (pn_message_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_millis_t","pn_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;
}
pn_message_set_user_id(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_message_set_user_id(int argc, VALUE *argv, VALUE self) {
  pn_message_t *arg1 = (pn_message_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_message_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_user_id", 1, argv[0] )); 
  }
  arg1 = (pn_message_t *)(argp1);
  {
    if (argv[1] == Qnil) {
      (&arg2)->start = NULL;
      (&arg2)->size = 0;
    } else {
      (&arg2)->start = RSTRING_PTR(argv[1]);
      if (!(&arg2)->start) {
        (&arg2)->size = 0;
      }
      (&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;
}
pn_messenger_recv(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_messenger_recv(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 *","wrap_pn_messenger_recv", 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","wrap_pn_messenger_recv", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  result = (int)wrap_pn_messenger_recv(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_messenger_send(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_messenger_send(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 *","wrap_pn_messenger_send", 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","wrap_pn_messenger_send", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  result = (int)wrap_pn_messenger_send(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_messenger_work(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_messenger_work(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 *","wrap_pn_messenger_work", 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","wrap_pn_messenger_work", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  result = (int)wrap_pn_messenger_work(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_object_decref(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_object_decref(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_object_decref", 1, argv[0] )); 
  }
  pn_object_decref(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_object_free(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_object_free(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_object_free", 1, argv[0] )); 
  }
  pn_object_free(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_object_incref(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_object_incref(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_object_incref", 1, argv[0] )); 
  }
  pn_object_incref(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_object_new(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_object_new(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_t *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_object_new", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_object_new", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  result = (void *)pn_object_new((struct pn_class_t const *)arg1,arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_object_refcount(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_object_refcount(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_object_refcount", 1, argv[0] )); 
  }
  result = (int)pn_object_refcount(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_object_reify(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_object_reify(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  pn_class_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_object_reify", 1, argv[0] )); 
  }
  result = (pn_class_t *)pn_object_reify(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_class_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_rb2void(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_rb2void(int argc, VALUE *argv, VALUE self) {
  VALUE arg1 = (VALUE) 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;
  }
  arg1 = argv[0];
  result = (void *)pn_rb2void(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_rbhandler(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_rbhandler(int argc, VALUE *argv, VALUE self) {
  VALUE arg1 = (VALUE) 0 ;
  pn_handler_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  arg1 = argv[0];
  result = (pn_handler_t *)pn_rbhandler(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_handler_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_receiver(*args) click to toggle source
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;
}
pn_record(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_record(int argc, VALUE *argv, VALUE self) {
  pn_record_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_record_t *)pn_record();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_record_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_record_clear(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_record_clear(int argc, VALUE *argv, VALUE self) {
  pn_record_t *arg1 = (pn_record_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_record_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_clear", 1, argv[0] )); 
  }
  arg1 = (pn_record_t *)(argp1);
  pn_record_clear(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_record_def(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_record_def(int argc, VALUE *argv, VALUE self) {
  pn_record_t *arg1 = (pn_record_t *) 0 ;
  pn_handle_t arg2 = (pn_handle_t) 0 ;
  pn_class_t *arg3 = (pn_class_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_record_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_def", 1, argv[0] )); 
  }
  arg1 = (pn_record_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_record_def", 2, argv[1] ));
  } 
  arg2 = (pn_handle_t)(val2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_pn_class_t, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "pn_class_t const *","pn_record_def", 3, argv[2] )); 
  }
  arg3 = (pn_class_t *)(argp3);
  pn_record_def(arg1,(void const *)arg2,(struct pn_class_t const *)arg3);
  return Qnil;
fail:
  return Qnil;
}
pn_record_get(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_record_get(int argc, VALUE *argv, VALUE self) {
  pn_record_t *arg1 = (pn_record_t *) 0 ;
  pn_handle_t arg2 = (pn_handle_t) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long val2 ;
  int ecode2 = 0 ;
  void *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_record_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_get", 1, argv[0] )); 
  }
  arg1 = (pn_record_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_record_get", 2, argv[1] ));
  } 
  arg2 = (pn_handle_t)(val2);
  result = (void *)pn_record_get(arg1,(void const *)arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_record_has(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_record_has(int argc, VALUE *argv, VALUE self) {
  pn_record_t *arg1 = (pn_record_t *) 0 ;
  pn_handle_t arg2 = (pn_handle_t) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long 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_record_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_has", 1, argv[0] )); 
  }
  arg1 = (pn_record_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_record_has", 2, argv[1] ));
  } 
  arg2 = (pn_handle_t)(val2);
  result = (bool)pn_record_has(arg1,(void const *)arg2);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_record_set(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_record_set(int argc, VALUE *argv, VALUE self) {
  pn_record_t *arg1 = (pn_record_t *) 0 ;
  pn_handle_t arg2 = (pn_handle_t) 0 ;
  void *arg3 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long val2 ;
  int ecode2 = 0 ;
  int res3 ;
  
  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_record_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_set", 1, argv[0] )); 
  }
  arg1 = (pn_record_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_record_set", 2, argv[1] ));
  } 
  arg2 = (pn_handle_t)(val2);
  res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_record_set", 3, argv[2] )); 
  }
  pn_record_set(arg1,(void const *)arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
pn_refcount(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_refcount(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_refcount", 1, argv[0] )); 
  }
  result = (int)pn_refcount(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_rwbytes(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_rwbytes(int argc, VALUE *argv, VALUE self) {
  size_t arg1 ;
  char *arg2 = (char *) 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  pn_rwbytes_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",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_rwbytes", 1, argv[0] ));
  } 
  arg1 = (size_t)(val1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_rwbytes", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = pn_rwbytes(arg1,arg2);
  vresult = SWIG_NewPointerObj((pn_rwbytes_t *)memcpy((pn_rwbytes_t *)calloc(1,sizeof(pn_rwbytes_t)),&result,sizeof(pn_rwbytes_t)), SWIGTYPE_p_pn_rwbytes_t, SWIG_POINTER_OWN |  0 );
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_rwbytes_null() click to toggle source
SWIGINTERN VALUE
_wrap_pn_rwbytes_null_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_NewPointerObj(SWIG_as_voidptr(&pn_rwbytes_null), SWIGTYPE_p_pn_rwbytes_t,  0 );
  return _val;
}
pn_sasl(*args) click to toggle source
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 < 1) || (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_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;
}
pn_sasl_allowed_mechs(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_sasl_allowed_mechs(int argc, VALUE *argv, VALUE self) {
  pn_sasl_t *arg1 = (pn_sasl_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_allowed_mechs", 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 const *","pn_sasl_allowed_mechs", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  pn_sasl_allowed_mechs(arg1,(char const *)arg2);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_sasl_config_name(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_sasl_config_name(int argc, VALUE *argv, VALUE self) {
  pn_sasl_t *arg1 = (pn_sasl_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_config_name", 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 const *","pn_sasl_config_name", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  pn_sasl_config_name(arg1,(char const *)arg2);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_sasl_config_path(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_sasl_config_path(int argc, VALUE *argv, VALUE self) {
  pn_sasl_t *arg1 = (pn_sasl_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_config_path", 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 const *","pn_sasl_config_path", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  pn_sasl_config_path(arg1,(char const *)arg2);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_sasl_done(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_sasl_done(int argc, VALUE *argv, VALUE self) {
  pn_sasl_t *arg1 = (pn_sasl_t *) 0 ;
  pn_sasl_outcome_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_sasl_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_done", 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_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;
}
pn_sasl_extended(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_sasl_extended(int argc, VALUE *argv, VALUE self) {
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (bool)pn_sasl_extended();
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_sasl_get_allow_insecure_mechs(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_sasl_get_allow_insecure_mechs(int argc, VALUE *argv, VALUE self) {
  pn_sasl_t *arg1 = (pn_sasl_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_sasl_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_get_allow_insecure_mechs", 1, argv[0] )); 
  }
  arg1 = (pn_sasl_t *)(argp1);
  result = (bool)pn_sasl_get_allow_insecure_mechs(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_sasl_get_mech(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_sasl_get_mech(int argc, VALUE *argv, VALUE self) {
  pn_sasl_t *arg1 = (pn_sasl_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_sasl_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_get_mech", 1, argv[0] )); 
  }
  arg1 = (pn_sasl_t *)(argp1);
  result = (char *)pn_sasl_get_mech(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_sasl_get_user(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_sasl_get_user(int argc, VALUE *argv, VALUE self) {
  pn_sasl_t *arg1 = (pn_sasl_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_sasl_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_get_user", 1, argv[0] )); 
  }
  arg1 = (pn_sasl_t *)(argp1);
  result = (char *)pn_sasl_get_user(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_sasl_outcome(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_sasl_outcome(int argc, VALUE *argv, VALUE self) {
  pn_sasl_t *arg1 = (pn_sasl_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_sasl_outcome_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_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;
}
pn_sasl_set_allow_insecure_mechs(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_sasl_set_allow_insecure_mechs(int argc, VALUE *argv, VALUE self) {
  pn_sasl_t *arg1 = (pn_sasl_t *) 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_set_allow_insecure_mechs", 1, argv[0] )); 
  }
  arg1 = (pn_sasl_t *)(argp1);
  ecode2 = SWIG_AsVal_bool(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_sasl_set_allow_insecure_mechs", 2, argv[1] ));
  } 
  arg2 = (bool)(val2);
  pn_sasl_set_allow_insecure_mechs(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_sender(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_sender(int argc, VALUE *argv, VALUE self) {
  pn_session_t *arg1 = (pn_session_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  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_sender", 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);
  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;
}
pn_session(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_session_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_session", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  result = (pn_session_t *)pn_session(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_session_attachments(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session_attachments(int argc, VALUE *argv, VALUE self) {
  pn_session_t *arg1 = (pn_session_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_record_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_attachments", 1, argv[0] )); 
  }
  arg1 = (pn_session_t *)(argp1);
  result = (pn_record_t *)pn_session_attachments(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_record_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_session_close(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session_close(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_close", 1, argv[0] )); 
  }
  arg1 = (pn_session_t *)(argp1);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  pn_session_close(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_session_condition(*args) click to toggle source
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;
}
pn_session_connection(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session_connection(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_session_connection", 1, argv[0] )); 
  }
  arg1 = (pn_session_t *)(argp1);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  result = (pn_connection_t *)pn_session_connection(arg1);
  SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
  
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_session_error(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session_error(int argc, VALUE *argv, VALUE self) {
  pn_session_t *arg1 = (pn_session_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_error_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 |  0 );
  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;
}
pn_session_free(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session_free(int argc, VALUE *argv, VALUE self) {
  pn_session_t *arg1 = (pn_session_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_free", 1, argv[0] )); 
  }
  arg1 = (pn_session_t *)(argp1);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  pn_session_free(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_session_get_context(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session_get_context(int argc, VALUE *argv, VALUE self) {
  pn_session_t *arg1 = (pn_session_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_get_context", 1, argv[0] )); 
  }
  arg1 = (pn_session_t *)(argp1);
  result = (void *)pn_session_get_context(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_session_get_incoming_capacity(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session_get_incoming_capacity(int argc, VALUE *argv, VALUE self) {
  pn_session_t *arg1 = (pn_session_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_get_incoming_capacity", 1, argv[0] )); 
  }
  arg1 = (pn_session_t *)(argp1);
  result = (size_t)pn_session_get_incoming_capacity(arg1);
  vresult = SWIG_From_size_t((size_t)(result));
  return vresult;
fail:
  return Qnil;
}
pn_session_get_outgoing_window(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session_get_outgoing_window(int argc, VALUE *argv, VALUE self) {
  pn_session_t *arg1 = (pn_session_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_get_outgoing_window", 1, argv[0] )); 
  }
  arg1 = (pn_session_t *)(argp1);
  result = (size_t)pn_session_get_outgoing_window(arg1);
  vresult = SWIG_From_size_t((size_t)(result));
  return vresult;
fail:
  return Qnil;
}
pn_session_head(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session_head(int argc, VALUE *argv, VALUE self) {
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
  pn_state_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  pn_session_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_session_head", 1, argv[0] )); 
  }
  arg1 = (pn_connection_t *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_state_t","pn_session_head", 2, argv[1] ));
  } 
  arg2 = (pn_state_t)(val2);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  result = (pn_session_t *)pn_session_head(arg1,arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_session_incoming_bytes(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session_incoming_bytes(int argc, VALUE *argv, VALUE self) {
  pn_session_t *arg1 = (pn_session_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_incoming_bytes", 1, argv[0] )); 
  }
  arg1 = (pn_session_t *)(argp1);
  result = (size_t)pn_session_incoming_bytes(arg1);
  vresult = SWIG_From_size_t((size_t)(result));
  return vresult;
fail:
  return Qnil;
}
pn_session_next(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session_next(int argc, VALUE *argv, VALUE self) {
  pn_session_t *arg1 = (pn_session_t *) 0 ;
  pn_state_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  pn_session_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_next", 1, argv[0] )); 
  }
  arg1 = (pn_session_t *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_state_t","pn_session_next", 2, argv[1] ));
  } 
  arg2 = (pn_state_t)(val2);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  result = (pn_session_t *)pn_session_next(arg1,arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_session_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_session_open(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session_open(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] )); 
  }
  arg1 = (pn_session_t *)(argp1);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  pn_session_open(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_session_outgoing_bytes(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session_outgoing_bytes(int argc, VALUE *argv, VALUE self) {
  pn_session_t *arg1 = (pn_session_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (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_outgoing_bytes", 1, argv[0] )); 
  }
  arg1 = (pn_session_t *)(argp1);
  result = (size_t)pn_session_outgoing_bytes(arg1);
  vresult = SWIG_From_size_t((size_t)(result));
  return vresult;
fail:
  return Qnil;
}
pn_session_remote_condition(*args) click to toggle source
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;
}
pn_session_set_context(*args) click to toggle source
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 ;
  int res2 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_set_context", 1, argv[0] )); 
  }
  arg1 = (pn_session_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_session_set_context", 2, argv[1] )); 
  }
  pn_session_set_context(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_session_set_incoming_capacity(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session_set_incoming_capacity(int argc, VALUE *argv, VALUE self) {
  pn_session_t *arg1 = (pn_session_t *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  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_incoming_capacity", 1, argv[0] )); 
  }
  arg1 = (pn_session_t *)(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_session_set_incoming_capacity", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  pn_session_set_incoming_capacity(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_session_set_outgoing_window(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session_set_outgoing_window(int argc, VALUE *argv, VALUE self) {
  pn_session_t *arg1 = (pn_session_t *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  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_outgoing_window", 1, argv[0] )); 
  }
  arg1 = (pn_session_t *)(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_session_set_outgoing_window", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  pn_session_set_outgoing_window(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_session_state(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_session_state(int argc, VALUE *argv, VALUE self) {
  pn_session_t *arg1 = (pn_session_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_state_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 |  0 );
  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;
}
pn_ssl(*args) click to toggle source
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;
}
pn_ssl_domain(*args) click to toggle source
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;
}
pn_ssl_domain_allow_unsecured_client(*args) click to toggle source
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;
}
pn_ssl_domain_free(*args) click to toggle source
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;
}
pn_ssl_domain_set_ciphers(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_ssl_domain_set_ciphers(int argc, VALUE *argv, VALUE self) {
  pn_ssl_domain_t *arg1 = (pn_ssl_domain_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_domain_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_domain_t *","pn_ssl_domain_set_ciphers", 1, argv[0] )); 
  }
  arg1 = (pn_ssl_domain_t *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_ssl_domain_set_ciphers", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (int)pn_ssl_domain_set_ciphers(arg1,(char const *)arg2);
  vresult = SWIG_From_int((int)(result));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_ssl_domain_set_credentials(*args) click to toggle source
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;
}
pn_ssl_domain_set_peer_authentication(*args) click to toggle source
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;
}
pn_ssl_domain_set_protocols(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_ssl_domain_set_protocols(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_protocols", 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_protocols", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (int)pn_ssl_domain_set_protocols(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;
}
pn_ssl_domain_set_trusted_ca_db(*args) click to toggle source
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;
}
pn_ssl_get_cert_fingerprint(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_ssl_get_cert_fingerprint(int argc, VALUE *argv, VALUE self) {
  pn_ssl_t *arg1 = (pn_ssl_t *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  pn_ssl_hash_alg arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 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_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_get_cert_fingerprint", 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_cert_fingerprint", 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_ssl_get_cert_fingerprint", 3, argv[2] ));
  } 
  arg3 = (size_t)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "pn_ssl_hash_alg","pn_ssl_get_cert_fingerprint", 4, argv[3] ));
  } 
  arg4 = (pn_ssl_hash_alg)(val4);
  result = (int)pn_ssl_get_cert_fingerprint(arg1,arg2,arg3,arg4);
  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;
}
pn_ssl_get_cipher_name(*args) click to toggle source
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 *)calloc(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;
}
pn_ssl_get_peer_hostname(*args) click to toggle source
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 ;
  size_t n2 ;
  char *buff2 = 0 ;
  size_t size2 ;
  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_get_peer_hostname", 1, argv[0] )); 
  }
  arg1 = (pn_ssl_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)","pn_ssl_get_peer_hostname", 2, argv[1] ));
  }
  buff2= (char *)calloc(n2+1, sizeof(char));
  arg2 = (char *)(buff2);
  size2 = (size_t)(n2);
  arg3 = &size2;
  result = (int)pn_ssl_get_peer_hostname(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:
  if (buff2) free((char*)buff2);
  return Qnil;
}
pn_ssl_get_protocol_name(*args) click to toggle source
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 *)calloc(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;
}
pn_ssl_get_remote_subject(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_ssl_get_remote_subject(int argc, VALUE *argv, VALUE self) {
  pn_ssl_t *arg1 = (pn_ssl_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_ssl_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_get_remote_subject", 1, argv[0] )); 
  }
  arg1 = (pn_ssl_t *)(argp1);
  result = (char *)pn_ssl_get_remote_subject(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_ssl_get_remote_subject_subfield(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_ssl_get_remote_subject_subfield(int argc, VALUE *argv, VALUE self) {
  pn_ssl_t *arg1 = (pn_ssl_t *) 0 ;
  pn_ssl_cert_subject_subfield arg2 ;
  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_ssl_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_get_remote_subject_subfield", 1, argv[0] )); 
  }
  arg1 = (pn_ssl_t *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_ssl_cert_subject_subfield","pn_ssl_get_remote_subject_subfield", 2, argv[1] ));
  } 
  arg2 = (pn_ssl_cert_subject_subfield)(val2);
  result = (char *)pn_ssl_get_remote_subject_subfield(arg1,arg2);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_ssl_get_ssf(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_ssl_get_ssf(int argc, VALUE *argv, VALUE self) {
  pn_ssl_t *arg1 = (pn_ssl_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_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_t *","pn_ssl_get_ssf", 1, argv[0] )); 
  }
  arg1 = (pn_ssl_t *)(argp1);
  result = (int)pn_ssl_get_ssf(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_ssl_init(*args) click to toggle source
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;
}
pn_ssl_present(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_ssl_present(int argc, VALUE *argv, VALUE self) {
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (bool)pn_ssl_present();
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_ssl_resume_status(*args) click to toggle source
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;
}
pn_ssl_set_peer_hostname(*args) click to toggle source
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;
}
pn_string(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_string(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  pn_string_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_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","pn_string", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  result = (pn_string_t *)pn_string((char const *)arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_string_t, 0 |  0 );
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}
pn_string_addf(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_string_addf(int argc, VALUE *argv, VALUE self) {
  pn_string_t *arg1 = (pn_string_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_string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_addf", 1, argv[0] )); 
  }
  arg1 = (pn_string_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_string_addf", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (int)pn_string_addf(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;
}
pn_string_buffer(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_string_buffer(int argc, VALUE *argv, VALUE self) {
  pn_string_t *arg1 = (pn_string_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_string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_buffer", 1, argv[0] )); 
  }
  arg1 = (pn_string_t *)(argp1);
  result = (char *)pn_string_buffer(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_string_capacity(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_string_capacity(int argc, VALUE *argv, VALUE self) {
  pn_string_t *arg1 = (pn_string_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_string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_capacity", 1, argv[0] )); 
  }
  arg1 = (pn_string_t *)(argp1);
  result = (size_t)pn_string_capacity(arg1);
  vresult = SWIG_From_size_t((size_t)(result));
  return vresult;
fail:
  return Qnil;
}
pn_string_clear(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_string_clear(int argc, VALUE *argv, VALUE self) {
  pn_string_t *arg1 = (pn_string_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_string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_clear", 1, argv[0] )); 
  }
  arg1 = (pn_string_t *)(argp1);
  pn_string_clear(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_string_copy(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_string_copy(int argc, VALUE *argv, VALUE self) {
  pn_string_t *arg1 = (pn_string_t *) 0 ;
  pn_string_t *arg2 = (pn_string_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_string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_copy", 1, argv[0] )); 
  }
  arg1 = (pn_string_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_string_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_copy", 2, argv[1] )); 
  }
  arg2 = (pn_string_t *)(argp2);
  result = (int)pn_string_copy(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_string_format(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_string_format(int argc, VALUE *argv, VALUE self) {
  pn_string_t *arg1 = (pn_string_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_string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_format", 1, argv[0] )); 
  }
  arg1 = (pn_string_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_string_format", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (int)pn_string_format(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;
}
pn_string_get(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_string_get(int argc, VALUE *argv, VALUE self) {
  pn_string_t *arg1 = (pn_string_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_string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_get", 1, argv[0] )); 
  }
  arg1 = (pn_string_t *)(argp1);
  result = (char *)pn_string_get(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_string_grow(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_string_grow(int argc, VALUE *argv, VALUE self) {
  pn_string_t *arg1 = (pn_string_t *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_grow", 1, argv[0] )); 
  }
  arg1 = (pn_string_t *)(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_string_grow", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  result = (int)pn_string_grow(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_string_put(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_string_put(int argc, VALUE *argv, VALUE self) {
  pn_string_t *arg1 = (pn_string_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  ssize_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_string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_put", 1, argv[0] )); 
  }
  arg1 = (pn_string_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_string_put", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (ssize_t)pn_string_put(arg1,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;
}
pn_string_resize(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_string_resize(int argc, VALUE *argv, VALUE self) {
  pn_string_t *arg1 = (pn_string_t *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_resize", 1, argv[0] )); 
  }
  arg1 = (pn_string_t *)(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_string_resize", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  result = (int)pn_string_resize(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_string_set(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_string_set(int argc, VALUE *argv, VALUE self) {
  pn_string_t *arg1 = (pn_string_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_string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_set", 1, argv[0] )); 
  }
  arg1 = (pn_string_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_string_set", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (int)pn_string_set(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;
}
pn_string_setn(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_string_setn(int argc, VALUE *argv, VALUE self) {
  pn_string_t *arg1 = (pn_string_t *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 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_string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_setn", 1, argv[0] )); 
  }
  arg1 = (pn_string_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_string_setn", 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_string_setn", 3, argv[2] ));
  } 
  arg3 = (size_t)(val3);
  result = (int)pn_string_setn(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;
}
pn_string_size(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_string_size(int argc, VALUE *argv, VALUE self) {
  pn_string_t *arg1 = (pn_string_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_string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_size", 1, argv[0] )); 
  }
  arg1 = (pn_string_t *)(argp1);
  result = (size_t)pn_string_size(arg1);
  vresult = SWIG_From_size_t((size_t)(result));
  return vresult;
fail:
  return Qnil;
}
pn_stringn(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_stringn(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  size_t arg2 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  pn_string_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_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","pn_stringn", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_stringn", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  result = (pn_string_t *)pn_stringn((char const *)arg1,arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_string_t, 0 |  0 );
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}
pn_terminus_capabilities(*args) click to toggle source
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;
}
pn_terminus_copy(*args) click to toggle source
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;
}
pn_terminus_filter(*args) click to toggle source
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;
}
pn_terminus_get_address(*args) click to toggle source
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;
}
pn_terminus_get_distribution_mode(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_terminus_get_distribution_mode(int argc, VALUE *argv, VALUE self) {
  pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_distribution_mode_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t const *","pn_terminus_get_distribution_mode", 1, argv[0] )); 
  }
  arg1 = (pn_terminus_t *)(argp1);
  result = (pn_distribution_mode_t)pn_terminus_get_distribution_mode((struct pn_terminus_t const *)arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_terminus_get_durability(*args) click to toggle source
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;
}
pn_terminus_get_expiry_policy(*args) click to toggle source
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;
}
pn_terminus_get_timeout(*args) click to toggle source
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_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_terminus_get_type(*args) click to toggle source
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;
}
pn_terminus_has_expiry_policy(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_terminus_has_expiry_policy(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 const *","pn_terminus_has_expiry_policy", 1, argv[0] )); 
  }
  arg1 = (pn_terminus_t *)(argp1);
  result = (bool)pn_terminus_has_expiry_policy((struct pn_terminus_t const *)arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_terminus_is_dynamic(*args) click to toggle source
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;
}
pn_terminus_outcomes(*args) click to toggle source
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;
}
pn_terminus_properties(*args) click to toggle source
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;
}
pn_terminus_set_address(*args) click to toggle source
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;
}
pn_terminus_set_distribution_mode(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_terminus_set_distribution_mode(int argc, VALUE *argv, VALUE self) {
  pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
  pn_distribution_mode_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_terminus_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_set_distribution_mode", 1, argv[0] )); 
  }
  arg1 = (pn_terminus_t *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_distribution_mode_t","pn_terminus_set_distribution_mode", 2, argv[1] ));
  } 
  arg2 = (pn_distribution_mode_t)(val2);
  result = (int)pn_terminus_set_distribution_mode(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_terminus_set_durability(*args) click to toggle source
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;
}
pn_terminus_set_dynamic(*args) click to toggle source
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;
}
pn_terminus_set_expiry_policy(*args) click to toggle source
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;
}
pn_terminus_set_timeout(*args) click to toggle source
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 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_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_long(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;
}
pn_terminus_set_type(*args) click to toggle source
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;
}
pn_transport(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (pn_transport_t *)pn_transport();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_transport_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_transport_attachments(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_attachments(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_record_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_attachments", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (pn_record_t *)pn_transport_attachments(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_record_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_transport_bind(*args) click to toggle source
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 ;
  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;
}
pn_transport_capacity(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_capacity(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ssize_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_capacity", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (ssize_t)pn_transport_capacity(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_close_head(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_close_head(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_close_head", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (int)pn_transport_close_head(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_close_tail(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_close_tail(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_close_tail", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (int)pn_transport_close_tail(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_closed(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_closed(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (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_closed", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (bool)pn_transport_closed(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_condition(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_condition(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_condition_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (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_condition", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (pn_condition_t *)pn_transport_condition(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_transport_connection(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_connection(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_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_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_connection", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (pn_connection_t *)pn_transport_connection(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_transport_error(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_error(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_error_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_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;
}
pn_transport_free(*args) click to toggle source
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 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_free", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  pn_transport_free(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_transport_get_channel_max(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_get_channel_max(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint16_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_channel_max", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (uint16_t)pn_transport_get_channel_max(arg1);
  vresult = SWIG_From_unsigned_SS_short((unsigned short)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_get_context(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_get_context(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_context", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (void *)pn_transport_get_context(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_transport_get_frames_input(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_get_frames_input(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t const *","pn_transport_get_frames_input", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (uint64_t)pn_transport_get_frames_input((struct pn_transport_t const *)arg1);
  vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_get_frames_output(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_get_frames_output(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t const *","pn_transport_get_frames_output", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (uint64_t)pn_transport_get_frames_output((struct pn_transport_t const *)arg1);
  vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_get_idle_timeout(*args) click to toggle source
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_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_get_max_frame(*args) click to toggle source
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_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_get_remote_idle_timeout(*args) click to toggle source
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_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_get_remote_max_frame(*args) click to toggle source
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_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_get_tracer(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_get_tracer(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_tracer_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_tracer", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (pn_tracer_t)pn_transport_get_tracer(arg1);
  vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void);
  return vresult;
fail:
  return Qnil;
}
pn_transport_get_user(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_get_user(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_user", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (char *)pn_transport_get_user(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_transport_head(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_head(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_head", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (char *)pn_transport_head(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_transport_head_closed(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_head_closed(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_head_closed", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (bool)pn_transport_head_closed(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_input(*args) click to toggle source
SWIGINTERN VALUE
_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 ;
  int res2 ;
  char *buf2 = 0 ;
  size_t size2 = 0 ;
  int alloc2 = 0 ;
  ssize_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_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_transport_input", 2, argv[1] ));
  }  
  arg2 = (char *)(buf2);
  arg3 = (size_t)(size2 - 1);
  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;
}
pn_transport_is_authenticated(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_is_authenticated(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_is_authenticated", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (bool)pn_transport_is_authenticated(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_is_encrypted(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_is_encrypted(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_is_encrypted", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (bool)pn_transport_is_encrypted(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_log(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_log(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_log", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_transport_log", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  pn_transport_log(arg1,(char const *)arg2);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_transport_logf(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_logf(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if (argc < 2) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_logf", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_transport_logf", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  pn_transport_logf(arg1,(char const *)arg2,arg3);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_transport_logger(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_logger(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_logger_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_transport_logger", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (pn_logger_t *)pn_transport_logger(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_logger_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_transport_output(*args) click to toggle source
SWIGINTERN VALUE
_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 ;
  int res2 ;
  size_t n2 ;
  char *buff2 = 0 ;
  size_t size2 ;
  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 *","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_transport_output", 2, argv[1] ));
  }
  buff2= (char *)calloc(n2+1, sizeof(char));
  arg2 = (char *)(buff2);
  size2 = (size_t)(n2);
  arg3 = &size2;
  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:
  if (buff2) free((char*)buff2);
  return Qnil;
}
pn_transport_peek(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_peek(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t *arg3 = (size_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  size_t n2 ;
  char *buff2 = 0 ;
  size_t size2 ;
  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 *","wrap_pn_transport_peek", 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_transport_peek", 2, argv[1] ));
  }
  buff2= (char *)calloc(n2+1, sizeof(char));
  arg2 = (char *)(buff2);
  size2 = (size_t)(n2);
  arg3 = &size2;
  result = (int)wrap_pn_transport_peek(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:
  if (buff2) free((char*)buff2);
  return Qnil;
}
pn_transport_pending(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_pending(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ssize_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_pending", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (ssize_t)pn_transport_pending(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_pop(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_pop(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_pop", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_transport_pop", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  pn_transport_pop(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_transport_process(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_process(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_process", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_transport_process", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  result = (int)pn_transport_process(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_push(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_push(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  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_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_push", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_transport_push", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_transport_push", 3, argv[2] ));
  } 
  arg3 = (size_t)(val3);
  result = (ssize_t)pn_transport_push(arg1,(char const *)arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_transport_quiesced(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_quiesced(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_quiesced", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (bool)pn_transport_quiesced(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_remote_channel_max(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_remote_channel_max(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint16_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_remote_channel_max", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (uint16_t)pn_transport_remote_channel_max(arg1);
  vresult = SWIG_From_unsigned_SS_short((unsigned short)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_require_auth(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_require_auth(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_require_auth", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  ecode2 = SWIG_AsVal_bool(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_transport_require_auth", 2, argv[1] ));
  } 
  arg2 = (bool)(val2);
  pn_transport_require_auth(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_transport_require_encryption(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_require_encryption(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_require_encryption", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  ecode2 = SWIG_AsVal_bool(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_transport_require_encryption", 2, argv[1] ));
  } 
  arg2 = (bool)(val2);
  pn_transport_require_encryption(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_transport_set_channel_max(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_set_channel_max(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  uint16_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  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_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_channel_max", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","pn_transport_set_channel_max", 2, argv[1] ));
  } 
  arg2 = (uint16_t)(val2);
  result = (int)pn_transport_set_channel_max(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_set_context(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_set_context(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_context", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_transport_set_context", 2, argv[1] )); 
  }
  pn_transport_set_context(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_transport_set_idle_timeout(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_set_idle_timeout(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  pn_millis_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_idle_timeout", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_millis_t","pn_transport_set_idle_timeout", 2, argv[1] ));
  } 
  arg2 = (pn_millis_t)(val2);
  pn_transport_set_idle_timeout(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_transport_set_max_frame(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_set_max_frame(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_max_frame", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","pn_transport_set_max_frame", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  pn_transport_set_max_frame(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_transport_set_server(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_set_server(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_server", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  pn_transport_set_server(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_transport_set_tracer(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_set_tracer(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  pn_tracer_t arg2 = (pn_tracer_t) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_tracer", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  {
    int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void);
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "pn_tracer_t","pn_transport_set_tracer", 2, argv[1] )); 
    }
  }
  pn_transport_set_tracer(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_transport_tail(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_tail(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_tail", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (char *)pn_transport_tail(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_transport_tail_closed(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_tail_closed(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_tail_closed", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (bool)pn_transport_tail_closed(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_tick(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_transport_tick(int argc, VALUE *argv, VALUE self) {
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
  int64_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  long long val2 ;
  int ecode2 = 0 ;
  int64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_tick", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int64_t","pn_transport_tick", 2, argv[1] ));
  } 
  arg2 = (int64_t)(val2);
  result = (int64_t)pn_transport_tick(arg1,arg2);
  vresult = SWIG_From_long_SS_long((long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_transport_trace(*args) click to toggle source
SWIGINTERN VALUE
_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 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_trace", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_trace_t","pn_transport_trace", 2, argv[1] ));
  } 
  arg2 = (pn_trace_t)(val2);
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
  
  pn_transport_trace(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pn_transport_unbind(*args) click to toggle source
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_transport_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_unbind", 1, argv[0] )); 
  }
  arg1 = (pn_transport_t *)(argp1);
  result = (int)pn_transport_unbind(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_type_name(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_type_name(int argc, VALUE *argv, VALUE self) {
  pn_type_t arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "pn_type_t","pn_type_name", 1, argv[0] ));
  } 
  arg1 = (pn_type_t)(val1);
  result = (char *)pn_type_name(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_unsettled_head(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_unsettled_head(int argc, VALUE *argv, VALUE self) {
  pn_link_t *arg1 = (pn_link_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_delivery_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_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;
}
pn_unsettled_next(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_unsettled_next(int argc, VALUE *argv, VALUE self) {
  pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_delivery_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_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;
}
pn_url(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url(int argc, VALUE *argv, VALUE self) {
  pn_url_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_url_t *)pn_url();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_url_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_url_clear(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url_clear(int argc, VALUE *argv, VALUE self) {
  pn_url_t *arg1 = (pn_url_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_url_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_clear", 1, argv[0] )); 
  }
  arg1 = (pn_url_t *)(argp1);
  pn_url_clear(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_url_free(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url_free(int argc, VALUE *argv, VALUE self) {
  pn_url_t *arg1 = (pn_url_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_url_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_free", 1, argv[0] )); 
  }
  arg1 = (pn_url_t *)(argp1);
  pn_url_free(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_url_get_host(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url_get_host(int argc, VALUE *argv, VALUE self) {
  pn_url_t *arg1 = (pn_url_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_url_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_get_host", 1, argv[0] )); 
  }
  arg1 = (pn_url_t *)(argp1);
  result = (char *)pn_url_get_host(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_url_get_password(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url_get_password(int argc, VALUE *argv, VALUE self) {
  pn_url_t *arg1 = (pn_url_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_url_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_get_password", 1, argv[0] )); 
  }
  arg1 = (pn_url_t *)(argp1);
  result = (char *)pn_url_get_password(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_url_get_path(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url_get_path(int argc, VALUE *argv, VALUE self) {
  pn_url_t *arg1 = (pn_url_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_url_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_get_path", 1, argv[0] )); 
  }
  arg1 = (pn_url_t *)(argp1);
  result = (char *)pn_url_get_path(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_url_get_port(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url_get_port(int argc, VALUE *argv, VALUE self) {
  pn_url_t *arg1 = (pn_url_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_url_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_get_port", 1, argv[0] )); 
  }
  arg1 = (pn_url_t *)(argp1);
  result = (char *)pn_url_get_port(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_url_get_scheme(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url_get_scheme(int argc, VALUE *argv, VALUE self) {
  pn_url_t *arg1 = (pn_url_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_url_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_get_scheme", 1, argv[0] )); 
  }
  arg1 = (pn_url_t *)(argp1);
  result = (char *)pn_url_get_scheme(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_url_get_username(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url_get_username(int argc, VALUE *argv, VALUE self) {
  pn_url_t *arg1 = (pn_url_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_url_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_get_username", 1, argv[0] )); 
  }
  arg1 = (pn_url_t *)(argp1);
  result = (char *)pn_url_get_username(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_url_parse(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url_parse(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  pn_url_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_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","pn_url_parse", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  result = (pn_url_t *)pn_url_parse((char const *)arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_url_t, 0 |  0 );
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}
pn_url_set_host(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url_set_host(int argc, VALUE *argv, VALUE self) {
  pn_url_t *arg1 = (pn_url_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_url_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_set_host", 1, argv[0] )); 
  }
  arg1 = (pn_url_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_url_set_host", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  pn_url_set_host(arg1,(char const *)arg2);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_url_set_password(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url_set_password(int argc, VALUE *argv, VALUE self) {
  pn_url_t *arg1 = (pn_url_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_url_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_set_password", 1, argv[0] )); 
  }
  arg1 = (pn_url_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_url_set_password", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  pn_url_set_password(arg1,(char const *)arg2);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_url_set_path(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url_set_path(int argc, VALUE *argv, VALUE self) {
  pn_url_t *arg1 = (pn_url_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_url_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_set_path", 1, argv[0] )); 
  }
  arg1 = (pn_url_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_url_set_path", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  pn_url_set_path(arg1,(char const *)arg2);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_url_set_port(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url_set_port(int argc, VALUE *argv, VALUE self) {
  pn_url_t *arg1 = (pn_url_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_url_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_set_port", 1, argv[0] )); 
  }
  arg1 = (pn_url_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_url_set_port", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  pn_url_set_port(arg1,(char const *)arg2);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_url_set_scheme(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url_set_scheme(int argc, VALUE *argv, VALUE self) {
  pn_url_t *arg1 = (pn_url_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_url_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_set_scheme", 1, argv[0] )); 
  }
  arg1 = (pn_url_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_url_set_scheme", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  pn_url_set_scheme(arg1,(char const *)arg2);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_url_set_username(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url_set_username(int argc, VALUE *argv, VALUE self) {
  pn_url_t *arg1 = (pn_url_t *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_url_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_set_username", 1, argv[0] )); 
  }
  arg1 = (pn_url_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_url_set_username", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  pn_url_set_username(arg1,(char const *)arg2);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pn_url_str(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_url_str(int argc, VALUE *argv, VALUE self) {
  pn_url_t *arg1 = (pn_url_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_url_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_url_t *","pn_url_str", 1, argv[0] )); 
  }
  arg1 = (pn_url_t *)(argp1);
  result = (char *)pn_url_str(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}
pn_void2rb(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_void2rb(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  VALUE 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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void2rb", 1, argv[0] )); 
  }
  result = (VALUE)pn_void2rb(arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}
pn_void_compare(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_void_compare(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  void *arg2 = (void *) 0 ;
  int res1 ;
  int res2 ;
  intptr_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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_compare", 1, argv[0] )); 
  }
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_void_compare", 2, argv[1] )); 
  }
  result = pn_void_compare(arg1,arg2);
  vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)calloc(1,sizeof(intptr_t)),&result,sizeof(intptr_t)), SWIGTYPE_p_intptr_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_void_decref(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_void_decref(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_decref", 1, argv[0] )); 
  }
  pn_void_decref(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_void_hashcode(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_void_hashcode(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  uintptr_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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_hashcode", 1, argv[0] )); 
  }
  result = (uintptr_t)pn_void_hashcode(arg1);
  vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
pn_void_incref(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_void_incref(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_incref", 1, argv[0] )); 
  }
  pn_void_incref(arg1);
  return Qnil;
fail:
  return Qnil;
}
pn_void_inspect(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_void_inspect(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  pn_string_t *arg2 = (pn_string_t *) 0 ;
  int res1 ;
  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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_inspect", 1, argv[0] )); 
  }
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_string_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_string_t *","pn_void_inspect", 2, argv[1] )); 
  }
  arg2 = (pn_string_t *)(argp2);
  result = (int)pn_void_inspect(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_void_new(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_void_new(int argc, VALUE *argv, VALUE self) {
  pn_class_t *arg1 = (pn_class_t *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_void_new", 1, argv[0] )); 
  }
  arg1 = (pn_class_t *)(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_void_new", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  result = (void *)pn_void_new((struct pn_class_t const *)arg1,arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pn_void_refcount(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_void_refcount(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_refcount", 1, argv[0] )); 
  }
  result = (int)pn_void_refcount(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
pn_work_head(*args) click to toggle source
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 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_work_head", 1, argv[0] )); 
  }
  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;
}
pn_work_next(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_work_next(int argc, VALUE *argv, VALUE self) {
  pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_delivery_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_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;
}
pni_address_of(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pni_address_of(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  VALUE 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],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pni_address_of", 1, argv[0] )); 
  }
  result = (VALUE)pni_address_of(arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}
pni_connection_driver(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pni_connection_driver(int argc, VALUE *argv, VALUE self) {
  pn_connection_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_connection_driver_t *)pni_connection_driver();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_driver_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pni_connection_driver_connection(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pni_connection_driver_connection(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pni_connection_driver_connection", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  result = (pn_connection_t *)pni_connection_driver_connection(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pni_connection_driver_read_copy(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pni_connection_driver_read_copy(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  size_t size2 = 0 ;
  int alloc2 = 0 ;
  size_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pni_connection_driver_read_copy", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, &size2, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pni_connection_driver_read_copy", 2, argv[1] ));
  }  
  arg2 = (char *)(buf2);
  arg3 = (size_t)(size2 - 1);
  result = (size_t)pni_connection_driver_read_copy(arg1,arg2,arg3);
  vresult = SWIG_From_size_t((size_t)(result));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}
pni_connection_driver_read_size(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pni_connection_driver_read_size(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pni_connection_driver_read_size", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  result = (size_t)pni_connection_driver_read_size(arg1);
  vresult = SWIG_From_size_t((size_t)(result));
  return vresult;
fail:
  return Qnil;
}
pni_connection_driver_transport(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pni_connection_driver_transport(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pni_connection_driver_transport", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  result = (pn_transport_t *)pni_connection_driver_transport(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_transport_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pni_connection_driver_write_size(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pni_connection_driver_write_size(int argc, VALUE *argv, VALUE self) {
  pn_connection_driver_t *arg1 = (pn_connection_driver_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_connection_driver_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pni_connection_driver_write_size", 1, argv[0] )); 
  }
  arg1 = (pn_connection_driver_t *)(argp1);
  result = (size_t)pni_connection_driver_write_size(arg1);
  vresult = SWIG_From_size_t((size_t)(result));
  return vresult;
fail:
  return Qnil;
}
pni_rbdispatch(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pni_rbdispatch(int argc, VALUE *argv, VALUE self) {
  pn_handler_t *arg1 = (pn_handler_t *) 0 ;
  pn_event_t *arg2 = (pn_event_t *) 0 ;
  pn_event_type_t arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_handler_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_handler_t *","pni_rbdispatch", 1, argv[0] )); 
  }
  arg1 = (pn_handler_t *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_event_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_event_t *","pni_rbdispatch", 2, argv[1] )); 
  }
  arg2 = (pn_event_t *)(argp2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "pn_event_type_t","pni_rbdispatch", 3, argv[2] ));
  } 
  arg3 = (pn_event_type_t)(val3);
  pni_rbdispatch(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
pni_rbhandler(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pni_rbhandler(int argc, VALUE *argv, VALUE self) {
  pn_handler_t *arg1 = (pn_handler_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Pni_rbhandler_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_handler_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_handler_t *","pni_rbhandler", 1, argv[0] )); 
  }
  arg1 = (pn_handler_t *)(argp1);
  result = (Pni_rbhandler_t *)pni_rbhandler(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Pni_rbhandler_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
pni_rbhandler_finalize(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pni_rbhandler_finalize(int argc, VALUE *argv, VALUE self) {
  pn_handler_t *arg1 = (pn_handler_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_handler_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_handler_t *","pni_rbhandler_finalize", 1, argv[0] )); 
  }
  arg1 = (pn_handler_t *)(argp1);
  pni_rbhandler_finalize(arg1);
  return Qnil;
fail:
  return Qnil;
}
pni_ruby_add_to_registry(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pni_ruby_add_to_registry(int argc, VALUE *argv, VALUE self) {
  VALUE arg1 = (VALUE) 0 ;
  VALUE arg2 = (VALUE) 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  arg1 = argv[0];
  arg2 = argv[1];
  pni_ruby_add_to_registry(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
pni_ruby_delete_from_registry(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pni_ruby_delete_from_registry(int argc, VALUE *argv, VALUE self) {
  VALUE arg1 = (VALUE) 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  arg1 = argv[0];
  pni_ruby_delete_from_registry(arg1);
  return Qnil;
fail:
  return Qnil;
}
pni_ruby_get_from_registry(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pni_ruby_get_from_registry(int argc, VALUE *argv, VALUE self) {
  VALUE arg1 = (VALUE) 0 ;
  VALUE result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  arg1 = argv[0];
  result = (VALUE)pni_ruby_get_from_registry(arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}
pni_ruby_get_proton_module(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pni_ruby_get_proton_module(int argc, VALUE *argv, VALUE self) {
  VALUE result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (VALUE)pni_ruby_get_proton_module();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}
pni_void2rbkey(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pni_void2rbkey(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int res1 ;
  Pn_rbkey_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pni_void2rbkey", 1, argv[0] )); 
  }
  result = (Pn_rbkey_t *)pni_void2rbkey(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Pn_rbkey_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}