qpid_proton 0.3 → 0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ChangeLog CHANGED
@@ -1,9 +1,9 @@
1
- version 0.3 (January 2013):
1
+ version 0.3:
2
2
  * No language-specific features developed in this release.
3
3
  * Dropped the Rakefile in favor of packaging with a gemspec.
4
4
  * Removed the qpid_proton/version.rb file as unused.
5
5
 
6
- version 0.2 (November 2012):
6
+ version 0.2:
7
7
  * First implementation of the stable APIs on top of swig.
8
8
  * Wrote the Rspec tests to test the new APIs.
9
9
  * Added SimpleCov support to monitor Rspec test coverage.
@@ -1791,54 +1791,56 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1791
1791
 
1792
1792
  #define SWIGTYPE_p_char swig_types[0]
1793
1793
  #define SWIGTYPE_p_int swig_types[1]
1794
- #define SWIGTYPE_p_long_long swig_types[2]
1795
- #define SWIGTYPE_p_p_char swig_types[3]
1796
- #define SWIGTYPE_p_pn_accept_mode_t swig_types[4]
1797
- #define SWIGTYPE_p_pn_activate_criteria_t swig_types[5]
1798
- #define SWIGTYPE_p_pn_atom_t swig_types[6]
1799
- #define SWIGTYPE_p_pn_atom_t_u swig_types[7]
1800
- #define SWIGTYPE_p_pn_bytes_t swig_types[8]
1801
- #define SWIGTYPE_p_pn_condition_t swig_types[9]
1802
- #define SWIGTYPE_p_pn_connection_t swig_types[10]
1803
- #define SWIGTYPE_p_pn_connector_t swig_types[11]
1804
- #define SWIGTYPE_p_pn_data_t swig_types[12]
1805
- #define SWIGTYPE_p_pn_decimal128_t swig_types[13]
1806
- #define SWIGTYPE_p_pn_delivery_t swig_types[14]
1807
- #define SWIGTYPE_p_pn_delivery_tag_t swig_types[15]
1808
- #define SWIGTYPE_p_pn_disposition_t swig_types[16]
1809
- #define SWIGTYPE_p_pn_driver_t swig_types[17]
1810
- #define SWIGTYPE_p_pn_durability_t swig_types[18]
1811
- #define SWIGTYPE_p_pn_error_t swig_types[19]
1812
- #define SWIGTYPE_p_pn_expiry_policy_t swig_types[20]
1813
- #define SWIGTYPE_p_pn_format_t swig_types[21]
1814
- #define SWIGTYPE_p_pn_link_t swig_types[22]
1815
- #define SWIGTYPE_p_pn_listener_t swig_types[23]
1816
- #define SWIGTYPE_p_pn_message_t swig_types[24]
1817
- #define SWIGTYPE_p_pn_messenger_t swig_types[25]
1818
- #define SWIGTYPE_p_pn_sasl_outcome_t swig_types[26]
1819
- #define SWIGTYPE_p_pn_sasl_state_t swig_types[27]
1820
- #define SWIGTYPE_p_pn_sasl_t swig_types[28]
1821
- #define SWIGTYPE_p_pn_session_t swig_types[29]
1822
- #define SWIGTYPE_p_pn_ssl_domain_t swig_types[30]
1823
- #define SWIGTYPE_p_pn_ssl_mode_t swig_types[31]
1824
- #define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[32]
1825
- #define SWIGTYPE_p_pn_ssl_t swig_types[33]
1826
- #define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[34]
1827
- #define SWIGTYPE_p_pn_status_t swig_types[35]
1828
- #define SWIGTYPE_p_pn_subscription_t swig_types[36]
1829
- #define SWIGTYPE_p_pn_terminus_t swig_types[37]
1830
- #define SWIGTYPE_p_pn_terminus_type_t swig_types[38]
1831
- #define SWIGTYPE_p_pn_transport_t swig_types[39]
1832
- #define SWIGTYPE_p_pn_type_t swig_types[40]
1833
- #define SWIGTYPE_p_pn_uuid_t swig_types[41]
1834
- #define SWIGTYPE_p_short swig_types[42]
1835
- #define SWIGTYPE_p_signed_char swig_types[43]
1836
- #define SWIGTYPE_p_unsigned_char swig_types[44]
1837
- #define SWIGTYPE_p_unsigned_int swig_types[45]
1838
- #define SWIGTYPE_p_unsigned_long swig_types[46]
1839
- #define SWIGTYPE_p_unsigned_short swig_types[47]
1840
- static swig_type_info *swig_types[49];
1841
- static swig_module_info swig_module = {swig_types, 48, 0, 0, 0, 0};
1794
+ #define SWIGTYPE_p_long swig_types[2]
1795
+ #define SWIGTYPE_p_long_long swig_types[3]
1796
+ #define SWIGTYPE_p_p_char swig_types[4]
1797
+ #define SWIGTYPE_p_pn_accept_mode_t swig_types[5]
1798
+ #define SWIGTYPE_p_pn_activate_criteria_t swig_types[6]
1799
+ #define SWIGTYPE_p_pn_atom_t swig_types[7]
1800
+ #define SWIGTYPE_p_pn_atom_t_u swig_types[8]
1801
+ #define SWIGTYPE_p_pn_bytes_t swig_types[9]
1802
+ #define SWIGTYPE_p_pn_condition_t swig_types[10]
1803
+ #define SWIGTYPE_p_pn_connection_t swig_types[11]
1804
+ #define SWIGTYPE_p_pn_connector_t swig_types[12]
1805
+ #define SWIGTYPE_p_pn_data_t swig_types[13]
1806
+ #define SWIGTYPE_p_pn_decimal128_t swig_types[14]
1807
+ #define SWIGTYPE_p_pn_delivery_t swig_types[15]
1808
+ #define SWIGTYPE_p_pn_delivery_tag_t swig_types[16]
1809
+ #define SWIGTYPE_p_pn_disposition_t swig_types[17]
1810
+ #define SWIGTYPE_p_pn_driver_t swig_types[18]
1811
+ #define SWIGTYPE_p_pn_durability_t swig_types[19]
1812
+ #define SWIGTYPE_p_pn_error_t swig_types[20]
1813
+ #define SWIGTYPE_p_pn_expiry_policy_t swig_types[21]
1814
+ #define SWIGTYPE_p_pn_format_t swig_types[22]
1815
+ #define SWIGTYPE_p_pn_link_t swig_types[23]
1816
+ #define SWIGTYPE_p_pn_listener_t swig_types[24]
1817
+ #define SWIGTYPE_p_pn_message_t swig_types[25]
1818
+ #define SWIGTYPE_p_pn_messenger_t swig_types[26]
1819
+ #define SWIGTYPE_p_pn_sasl_outcome_t swig_types[27]
1820
+ #define SWIGTYPE_p_pn_sasl_state_t swig_types[28]
1821
+ #define SWIGTYPE_p_pn_sasl_t swig_types[29]
1822
+ #define SWIGTYPE_p_pn_session_t swig_types[30]
1823
+ #define SWIGTYPE_p_pn_ssl_domain_t swig_types[31]
1824
+ #define SWIGTYPE_p_pn_ssl_mode_t swig_types[32]
1825
+ #define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[33]
1826
+ #define SWIGTYPE_p_pn_ssl_t swig_types[34]
1827
+ #define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[35]
1828
+ #define SWIGTYPE_p_pn_status_t swig_types[36]
1829
+ #define SWIGTYPE_p_pn_subscription_t swig_types[37]
1830
+ #define SWIGTYPE_p_pn_terminus_t swig_types[38]
1831
+ #define SWIGTYPE_p_pn_terminus_type_t swig_types[39]
1832
+ #define SWIGTYPE_p_pn_transport_t swig_types[40]
1833
+ #define SWIGTYPE_p_pn_type_t swig_types[41]
1834
+ #define SWIGTYPE_p_pn_uuid_t swig_types[42]
1835
+ #define SWIGTYPE_p_short swig_types[43]
1836
+ #define SWIGTYPE_p_signed_char swig_types[44]
1837
+ #define SWIGTYPE_p_unsigned_char swig_types[45]
1838
+ #define SWIGTYPE_p_unsigned_int swig_types[46]
1839
+ #define SWIGTYPE_p_unsigned_long swig_types[47]
1840
+ #define SWIGTYPE_p_unsigned_long_long swig_types[48]
1841
+ #define SWIGTYPE_p_unsigned_short swig_types[49]
1842
+ static swig_type_info *swig_types[51];
1843
+ static swig_module_info swig_module = {swig_types, 50, 0, 0, 0, 0};
1842
1844
  #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1843
1845
  #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1844
1846
 
@@ -1867,6 +1869,11 @@ static VALUE mCproton;
1867
1869
  #include <proton/driver.h>
1868
1870
  #include <proton/messenger.h>
1869
1871
  #include <proton/ssl.h>
1872
+ #include <proton/driver_extras.h>
1873
+
1874
+ #include <proton/types.h>
1875
+
1876
+ #include <uuid/uuid.h>
1870
1877
 
1871
1878
 
1872
1879
  #if !defined(RSTRING_LEN)
@@ -2191,26 +2198,10 @@ SWIG_From_long_SS_long (long long value)
2191
2198
  }
2192
2199
 
2193
2200
 
2194
- SWIGINTERNINLINE VALUE
2195
- SWIG_From_unsigned_SS_int (unsigned int value)
2196
- {
2197
- return SWIG_From_unsigned_SS_long (value);
2198
- }
2199
-
2200
-
2201
- SWIGINTERN int
2202
- SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
2201
+ SWIGINTERNINLINE VALUE
2202
+ SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
2203
2203
  {
2204
- unsigned long v;
2205
- int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2206
- if (SWIG_IsOK(res)) {
2207
- if ((v > UINT_MAX)) {
2208
- return SWIG_OverflowError;
2209
- } else {
2210
- if (val) *val = (unsigned int)(v);
2211
- }
2212
- }
2213
- return res;
2204
+ return ULL2NUM(value);
2214
2205
  }
2215
2206
 
2216
2207
 
@@ -2349,6 +2340,35 @@ SWIG_From_short (short value)
2349
2340
  }
2350
2341
 
2351
2342
 
2343
+ /*@SWIG:/usr/share/swig/2.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2344
+ SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
2345
+ {
2346
+ VALUE obj = args[0];
2347
+ VALUE type = TYPE(obj);
2348
+ long long *res = (long long *)(args[1]);
2349
+ *res = type == T_FIXNUM ? NUM2ULL(obj) : rb_big2ull(obj);
2350
+ return obj;
2351
+ }
2352
+ /*@SWIG@*/
2353
+
2354
+ SWIGINTERN int
2355
+ SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val)
2356
+ {
2357
+ VALUE type = TYPE(obj);
2358
+ if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
2359
+ unsigned long long v;
2360
+ VALUE a[2];
2361
+ a[0] = obj;
2362
+ a[1] = (VALUE)(&v);
2363
+ if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
2364
+ if (val) *val = v;
2365
+ return SWIG_OK;
2366
+ }
2367
+ }
2368
+ return SWIG_TypeError;
2369
+ }
2370
+
2371
+
2352
2372
  #include <float.h>
2353
2373
 
2354
2374
 
@@ -3850,41 +3870,6 @@ fail:
3850
3870
  }
3851
3871
 
3852
3872
 
3853
- SWIGINTERN VALUE
3854
- _wrap_pn_error_from_errno(int argc, VALUE *argv, VALUE self) {
3855
- pn_error_t *arg1 = (pn_error_t *) 0 ;
3856
- char *arg2 = (char *) 0 ;
3857
- void *argp1 = 0 ;
3858
- int res1 = 0 ;
3859
- int res2 ;
3860
- char *buf2 = 0 ;
3861
- int alloc2 = 0 ;
3862
- int result;
3863
- VALUE vresult = Qnil;
3864
-
3865
- if ((argc < 2) || (argc > 2)) {
3866
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3867
- }
3868
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_error_t, 0 | 0 );
3869
- if (!SWIG_IsOK(res1)) {
3870
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_error_t *","pn_error_from_errno", 1, argv[0] ));
3871
- }
3872
- arg1 = (pn_error_t *)(argp1);
3873
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
3874
- if (!SWIG_IsOK(res2)) {
3875
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_error_from_errno", 2, argv[1] ));
3876
- }
3877
- arg2 = (char *)(buf2);
3878
- result = (int)pn_error_from_errno(arg1,(char const *)arg2);
3879
- vresult = SWIG_From_int((int)(result));
3880
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3881
- return vresult;
3882
- fail:
3883
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3884
- return Qnil;
3885
- }
3886
-
3887
-
3888
3873
  SWIGINTERN VALUE
3889
3874
  _wrap_pn_error_code(int argc, VALUE *argv, VALUE self) {
3890
3875
  pn_error_t *arg1 = (pn_error_t *) 0 ;
@@ -4901,6 +4886,211 @@ fail:
4901
4886
  }
4902
4887
 
4903
4888
 
4889
+ SWIGINTERN VALUE
4890
+ _wrap_pn_transport_capacity(int argc, VALUE *argv, VALUE self) {
4891
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
4892
+ void *argp1 = 0 ;
4893
+ int res1 = 0 ;
4894
+ ssize_t result;
4895
+ VALUE vresult = Qnil;
4896
+
4897
+ if ((argc < 1) || (argc > 1)) {
4898
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4899
+ }
4900
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
4901
+ if (!SWIG_IsOK(res1)) {
4902
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_capacity", 1, argv[0] ));
4903
+ }
4904
+ arg1 = (pn_transport_t *)(argp1);
4905
+ result = (ssize_t)pn_transport_capacity(arg1);
4906
+ vresult = SWIG_From_int((int)(result));
4907
+ return vresult;
4908
+ fail:
4909
+ return Qnil;
4910
+ }
4911
+
4912
+
4913
+ SWIGINTERN VALUE
4914
+ _wrap_pn_transport_tail(int argc, VALUE *argv, VALUE self) {
4915
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
4916
+ void *argp1 = 0 ;
4917
+ int res1 = 0 ;
4918
+ char *result = 0 ;
4919
+ VALUE vresult = Qnil;
4920
+
4921
+ if ((argc < 1) || (argc > 1)) {
4922
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4923
+ }
4924
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
4925
+ if (!SWIG_IsOK(res1)) {
4926
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_tail", 1, argv[0] ));
4927
+ }
4928
+ arg1 = (pn_transport_t *)(argp1);
4929
+ result = (char *)pn_transport_tail(arg1);
4930
+ vresult = SWIG_FromCharPtr((const char *)result);
4931
+ return vresult;
4932
+ fail:
4933
+ return Qnil;
4934
+ }
4935
+
4936
+
4937
+ SWIGINTERN VALUE
4938
+ _wrap_pn_transport_push(int argc, VALUE *argv, VALUE self) {
4939
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
4940
+ size_t arg2 ;
4941
+ void *argp1 = 0 ;
4942
+ int res1 = 0 ;
4943
+ size_t val2 ;
4944
+ int ecode2 = 0 ;
4945
+ int result;
4946
+ VALUE vresult = Qnil;
4947
+
4948
+ if ((argc < 2) || (argc > 2)) {
4949
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
4950
+ }
4951
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
4952
+ if (!SWIG_IsOK(res1)) {
4953
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_push", 1, argv[0] ));
4954
+ }
4955
+ arg1 = (pn_transport_t *)(argp1);
4956
+ ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
4957
+ if (!SWIG_IsOK(ecode2)) {
4958
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_transport_push", 2, argv[1] ));
4959
+ }
4960
+ arg2 = (size_t)(val2);
4961
+ result = (int)pn_transport_push(arg1,arg2);
4962
+ vresult = SWIG_From_int((int)(result));
4963
+ return vresult;
4964
+ fail:
4965
+ return Qnil;
4966
+ }
4967
+
4968
+
4969
+ SWIGINTERN VALUE
4970
+ _wrap_pn_transport_close_tail(int argc, VALUE *argv, VALUE self) {
4971
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
4972
+ void *argp1 = 0 ;
4973
+ int res1 = 0 ;
4974
+ int result;
4975
+ VALUE vresult = Qnil;
4976
+
4977
+ if ((argc < 1) || (argc > 1)) {
4978
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4979
+ }
4980
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
4981
+ if (!SWIG_IsOK(res1)) {
4982
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_close_tail", 1, argv[0] ));
4983
+ }
4984
+ arg1 = (pn_transport_t *)(argp1);
4985
+ result = (int)pn_transport_close_tail(arg1);
4986
+ vresult = SWIG_From_int((int)(result));
4987
+ return vresult;
4988
+ fail:
4989
+ return Qnil;
4990
+ }
4991
+
4992
+
4993
+ SWIGINTERN VALUE
4994
+ _wrap_pn_transport_pending(int argc, VALUE *argv, VALUE self) {
4995
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
4996
+ void *argp1 = 0 ;
4997
+ int res1 = 0 ;
4998
+ ssize_t result;
4999
+ VALUE vresult = Qnil;
5000
+
5001
+ if ((argc < 1) || (argc > 1)) {
5002
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5003
+ }
5004
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
5005
+ if (!SWIG_IsOK(res1)) {
5006
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_pending", 1, argv[0] ));
5007
+ }
5008
+ arg1 = (pn_transport_t *)(argp1);
5009
+ result = (ssize_t)pn_transport_pending(arg1);
5010
+ vresult = SWIG_From_int((int)(result));
5011
+ return vresult;
5012
+ fail:
5013
+ return Qnil;
5014
+ }
5015
+
5016
+
5017
+ SWIGINTERN VALUE
5018
+ _wrap_pn_transport_head(int argc, VALUE *argv, VALUE self) {
5019
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
5020
+ void *argp1 = 0 ;
5021
+ int res1 = 0 ;
5022
+ char *result = 0 ;
5023
+ VALUE vresult = Qnil;
5024
+
5025
+ if ((argc < 1) || (argc > 1)) {
5026
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5027
+ }
5028
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
5029
+ if (!SWIG_IsOK(res1)) {
5030
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_head", 1, argv[0] ));
5031
+ }
5032
+ arg1 = (pn_transport_t *)(argp1);
5033
+ result = (char *)pn_transport_head(arg1);
5034
+ vresult = SWIG_FromCharPtr((const char *)result);
5035
+ return vresult;
5036
+ fail:
5037
+ return Qnil;
5038
+ }
5039
+
5040
+
5041
+ SWIGINTERN VALUE
5042
+ _wrap_pn_transport_pop(int argc, VALUE *argv, VALUE self) {
5043
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
5044
+ size_t arg2 ;
5045
+ void *argp1 = 0 ;
5046
+ int res1 = 0 ;
5047
+ size_t val2 ;
5048
+ int ecode2 = 0 ;
5049
+
5050
+ if ((argc < 2) || (argc > 2)) {
5051
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
5052
+ }
5053
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
5054
+ if (!SWIG_IsOK(res1)) {
5055
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_pop", 1, argv[0] ));
5056
+ }
5057
+ arg1 = (pn_transport_t *)(argp1);
5058
+ ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
5059
+ if (!SWIG_IsOK(ecode2)) {
5060
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_transport_pop", 2, argv[1] ));
5061
+ }
5062
+ arg2 = (size_t)(val2);
5063
+ pn_transport_pop(arg1,arg2);
5064
+ return Qnil;
5065
+ fail:
5066
+ return Qnil;
5067
+ }
5068
+
5069
+
5070
+ SWIGINTERN VALUE
5071
+ _wrap_pn_transport_close_head(int argc, VALUE *argv, VALUE self) {
5072
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
5073
+ void *argp1 = 0 ;
5074
+ int res1 = 0 ;
5075
+ int result;
5076
+ VALUE vresult = Qnil;
5077
+
5078
+ if ((argc < 1) || (argc > 1)) {
5079
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5080
+ }
5081
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
5082
+ if (!SWIG_IsOK(res1)) {
5083
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_close_head", 1, argv[0] ));
5084
+ }
5085
+ arg1 = (pn_transport_t *)(argp1);
5086
+ result = (int)pn_transport_close_head(arg1);
5087
+ vresult = SWIG_From_int((int)(result));
5088
+ return vresult;
5089
+ fail:
5090
+ return Qnil;
5091
+ }
5092
+
5093
+
4904
5094
  SWIGINTERN VALUE
4905
5095
  _wrap_pn_transport_tick(int argc, VALUE *argv, VALUE self) {
4906
5096
  pn_transport_t *arg1 = (pn_transport_t *) 0 ;
@@ -4981,7 +5171,7 @@ _wrap_pn_transport_get_max_frame(int argc, VALUE *argv, VALUE self) {
4981
5171
  }
4982
5172
  arg1 = (pn_transport_t *)(argp1);
4983
5173
  result = (uint32_t)pn_transport_get_max_frame(arg1);
4984
- vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
5174
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
4985
5175
  return vresult;
4986
5176
  fail:
4987
5177
  return Qnil;
@@ -4994,7 +5184,7 @@ _wrap_pn_transport_set_max_frame(int argc, VALUE *argv, VALUE self) {
4994
5184
  uint32_t arg2 ;
4995
5185
  void *argp1 = 0 ;
4996
5186
  int res1 = 0 ;
4997
- unsigned int val2 ;
5187
+ unsigned long val2 ;
4998
5188
  int ecode2 = 0 ;
4999
5189
 
5000
5190
  if ((argc < 2) || (argc > 2)) {
@@ -5005,7 +5195,7 @@ _wrap_pn_transport_set_max_frame(int argc, VALUE *argv, VALUE self) {
5005
5195
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_max_frame", 1, argv[0] ));
5006
5196
  }
5007
5197
  arg1 = (pn_transport_t *)(argp1);
5008
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
5198
+ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
5009
5199
  if (!SWIG_IsOK(ecode2)) {
5010
5200
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","pn_transport_set_max_frame", 2, argv[1] ));
5011
5201
  }
@@ -5034,7 +5224,7 @@ _wrap_pn_transport_get_remote_max_frame(int argc, VALUE *argv, VALUE self) {
5034
5224
  }
5035
5225
  arg1 = (pn_transport_t *)(argp1);
5036
5226
  result = (uint32_t)pn_transport_get_remote_max_frame(arg1);
5037
- vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
5227
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
5038
5228
  return vresult;
5039
5229
  fail:
5040
5230
  return Qnil;
@@ -5058,7 +5248,7 @@ _wrap_pn_transport_get_idle_timeout(int argc, VALUE *argv, VALUE self) {
5058
5248
  }
5059
5249
  arg1 = (pn_transport_t *)(argp1);
5060
5250
  result = (pn_millis_t)pn_transport_get_idle_timeout(arg1);
5061
- vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
5251
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
5062
5252
  return vresult;
5063
5253
  fail:
5064
5254
  return Qnil;
@@ -5071,7 +5261,7 @@ _wrap_pn_transport_set_idle_timeout(int argc, VALUE *argv, VALUE self) {
5071
5261
  pn_millis_t arg2 ;
5072
5262
  void *argp1 = 0 ;
5073
5263
  int res1 = 0 ;
5074
- unsigned int val2 ;
5264
+ unsigned long val2 ;
5075
5265
  int ecode2 = 0 ;
5076
5266
 
5077
5267
  if ((argc < 2) || (argc > 2)) {
@@ -5082,7 +5272,7 @@ _wrap_pn_transport_set_idle_timeout(int argc, VALUE *argv, VALUE self) {
5082
5272
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_idle_timeout", 1, argv[0] ));
5083
5273
  }
5084
5274
  arg1 = (pn_transport_t *)(argp1);
5085
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
5275
+ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
5086
5276
  if (!SWIG_IsOK(ecode2)) {
5087
5277
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_millis_t","pn_transport_set_idle_timeout", 2, argv[1] ));
5088
5278
  }
@@ -5111,7 +5301,7 @@ _wrap_pn_transport_get_remote_idle_timeout(int argc, VALUE *argv, VALUE self) {
5111
5301
  }
5112
5302
  arg1 = (pn_transport_t *)(argp1);
5113
5303
  result = (pn_millis_t)pn_transport_get_remote_idle_timeout(arg1);
5114
- vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
5304
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
5115
5305
  return vresult;
5116
5306
  fail:
5117
5307
  return Qnil;
@@ -5135,7 +5325,7 @@ _wrap_pn_transport_get_frames_output(int argc, VALUE *argv, VALUE self) {
5135
5325
  }
5136
5326
  arg1 = (pn_transport_t *)(argp1);
5137
5327
  result = (uint64_t)pn_transport_get_frames_output((struct pn_transport_t const *)arg1);
5138
- vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
5328
+ vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
5139
5329
  return vresult;
5140
5330
  fail:
5141
5331
  return Qnil;
@@ -5155,11 +5345,35 @@ _wrap_pn_transport_get_frames_input(int argc, VALUE *argv, VALUE self) {
5155
5345
  }
5156
5346
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
5157
5347
  if (!SWIG_IsOK(res1)) {
5158
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t const *","pn_transport_get_frames_input", 1, argv[0] ));
5348
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t const *","pn_transport_get_frames_input", 1, argv[0] ));
5349
+ }
5350
+ arg1 = (pn_transport_t *)(argp1);
5351
+ result = (uint64_t)pn_transport_get_frames_input((struct pn_transport_t const *)arg1);
5352
+ vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
5353
+ return vresult;
5354
+ fail:
5355
+ return Qnil;
5356
+ }
5357
+
5358
+
5359
+ SWIGINTERN VALUE
5360
+ _wrap_pn_transport_quiesced(int argc, VALUE *argv, VALUE self) {
5361
+ pn_transport_t *arg1 = (pn_transport_t *) 0 ;
5362
+ void *argp1 = 0 ;
5363
+ int res1 = 0 ;
5364
+ bool result;
5365
+ VALUE vresult = Qnil;
5366
+
5367
+ if ((argc < 1) || (argc > 1)) {
5368
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5369
+ }
5370
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
5371
+ if (!SWIG_IsOK(res1)) {
5372
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_quiesced", 1, argv[0] ));
5159
5373
  }
5160
5374
  arg1 = (pn_transport_t *)(argp1);
5161
- result = (uint64_t)pn_transport_get_frames_input((struct pn_transport_t const *)arg1);
5162
- vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
5375
+ result = (bool)pn_transport_quiesced(arg1);
5376
+ vresult = SWIG_From_bool((bool)(result));
5163
5377
  return vresult;
5164
5378
  fail:
5165
5379
  return Qnil;
@@ -6409,7 +6623,7 @@ _wrap_pn_terminus_get_timeout(int argc, VALUE *argv, VALUE self) {
6409
6623
  }
6410
6624
  arg1 = (pn_terminus_t *)(argp1);
6411
6625
  result = (pn_seconds_t)pn_terminus_get_timeout(arg1);
6412
- vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
6626
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
6413
6627
  return vresult;
6414
6628
  fail:
6415
6629
  return Qnil;
@@ -6422,7 +6636,7 @@ _wrap_pn_terminus_set_timeout(int argc, VALUE *argv, VALUE self) {
6422
6636
  pn_seconds_t arg2 ;
6423
6637
  void *argp1 = 0 ;
6424
6638
  int res1 = 0 ;
6425
- unsigned int val2 ;
6639
+ unsigned long val2 ;
6426
6640
  int ecode2 = 0 ;
6427
6641
  int result;
6428
6642
  VALUE vresult = Qnil;
@@ -6435,7 +6649,7 @@ _wrap_pn_terminus_set_timeout(int argc, VALUE *argv, VALUE self) {
6435
6649
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t *","pn_terminus_set_timeout", 1, argv[0] ));
6436
6650
  }
6437
6651
  arg1 = (pn_terminus_t *)(argp1);
6438
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
6652
+ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
6439
6653
  if (!SWIG_IsOK(ecode2)) {
6440
6654
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_seconds_t","pn_terminus_set_timeout", 2, argv[1] ));
6441
6655
  }
@@ -7727,7 +7941,7 @@ _wrap_pn_message_get_ttl(int argc, VALUE *argv, VALUE self) {
7727
7941
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
7728
7942
 
7729
7943
  result = (pn_millis_t)pn_message_get_ttl(arg1);
7730
- vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
7944
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
7731
7945
  return vresult;
7732
7946
  fail:
7733
7947
  return Qnil;
@@ -7740,7 +7954,7 @@ _wrap_pn_message_set_ttl(int argc, VALUE *argv, VALUE self) {
7740
7954
  pn_millis_t arg2 ;
7741
7955
  void *argp1 = 0 ;
7742
7956
  int res1 = 0 ;
7743
- unsigned int val2 ;
7957
+ unsigned long val2 ;
7744
7958
  int ecode2 = 0 ;
7745
7959
  int result;
7746
7960
  VALUE vresult = Qnil;
@@ -7753,7 +7967,7 @@ _wrap_pn_message_set_ttl(int argc, VALUE *argv, VALUE self) {
7753
7967
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_ttl", 1, argv[0] ));
7754
7968
  }
7755
7969
  arg1 = (pn_message_t *)(argp1);
7756
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
7970
+ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
7757
7971
  if (!SWIG_IsOK(ecode2)) {
7758
7972
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_millis_t","pn_message_set_ttl", 2, argv[1] ));
7759
7973
  }
@@ -7847,7 +8061,7 @@ _wrap_pn_message_get_delivery_count(int argc, VALUE *argv, VALUE self) {
7847
8061
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
7848
8062
 
7849
8063
  result = (uint32_t)pn_message_get_delivery_count(arg1);
7850
- vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
8064
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
7851
8065
  return vresult;
7852
8066
  fail:
7853
8067
  return Qnil;
@@ -7860,7 +8074,7 @@ _wrap_pn_message_set_delivery_count(int argc, VALUE *argv, VALUE self) {
7860
8074
  uint32_t arg2 ;
7861
8075
  void *argp1 = 0 ;
7862
8076
  int res1 = 0 ;
7863
- unsigned int val2 ;
8077
+ unsigned long val2 ;
7864
8078
  int ecode2 = 0 ;
7865
8079
  int result;
7866
8080
  VALUE vresult = Qnil;
@@ -7873,7 +8087,7 @@ _wrap_pn_message_set_delivery_count(int argc, VALUE *argv, VALUE self) {
7873
8087
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_delivery_count", 1, argv[0] ));
7874
8088
  }
7875
8089
  arg1 = (pn_message_t *)(argp1);
7876
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
8090
+ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
7877
8091
  if (!SWIG_IsOK(ecode2)) {
7878
8092
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","pn_message_set_delivery_count", 2, argv[1] ));
7879
8093
  }
@@ -8122,7 +8336,7 @@ _wrap_pn_message_set_user_id(int argc, VALUE *argv, VALUE self) {
8122
8336
  } else {
8123
8337
  (&arg2)->start = RSTRING_PTR(argv[1]);
8124
8338
  if (!(&arg2)->start) {
8125
- return NULL;
8339
+ (&arg2)->size = 0;
8126
8340
  }
8127
8341
  (&arg2)->size = RSTRING_LEN(argv[1]);
8128
8342
  }
@@ -8836,7 +9050,7 @@ _wrap_pn_message_get_group_sequence(int argc, VALUE *argv, VALUE self) {
8836
9050
  SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
8837
9051
 
8838
9052
  result = (pn_sequence_t)pn_message_get_group_sequence(arg1);
8839
- vresult = SWIG_From_int((int)(result));
9053
+ vresult = SWIG_From_long((long)(result));
8840
9054
  return vresult;
8841
9055
  fail:
8842
9056
  return Qnil;
@@ -8849,7 +9063,7 @@ _wrap_pn_message_set_group_sequence(int argc, VALUE *argv, VALUE self) {
8849
9063
  pn_sequence_t arg2 ;
8850
9064
  void *argp1 = 0 ;
8851
9065
  int res1 = 0 ;
8852
- int val2 ;
9066
+ long val2 ;
8853
9067
  int ecode2 = 0 ;
8854
9068
  int result;
8855
9069
  VALUE vresult = Qnil;
@@ -8862,7 +9076,7 @@ _wrap_pn_message_set_group_sequence(int argc, VALUE *argv, VALUE self) {
8862
9076
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_set_group_sequence", 1, argv[0] ));
8863
9077
  }
8864
9078
  arg1 = (pn_message_t *)(argp1);
8865
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
9079
+ ecode2 = SWIG_AsVal_long(argv[1], &val2);
8866
9080
  if (!SWIG_IsOK(ecode2)) {
8867
9081
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_sequence_t","pn_message_set_group_sequence", 2, argv[1] ));
8868
9082
  }
@@ -9805,44 +10019,6 @@ fail:
9805
10019
  }
9806
10020
 
9807
10021
 
9808
- SWIGINTERN VALUE
9809
- _wrap_pn_listener_fd(int argc, VALUE *argv, VALUE self) {
9810
- pn_driver_t *arg1 = (pn_driver_t *) 0 ;
9811
- int arg2 ;
9812
- void *arg3 = (void *) 0 ;
9813
- void *argp1 = 0 ;
9814
- int res1 = 0 ;
9815
- int val2 ;
9816
- int ecode2 = 0 ;
9817
- pn_listener_t *result = 0 ;
9818
- VALUE vresult = Qnil;
9819
-
9820
- if ((argc < 3) || (argc > 3)) {
9821
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
9822
- }
9823
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 );
9824
- if (!SWIG_IsOK(res1)) {
9825
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_listener_fd", 1, argv[0] ));
9826
- }
9827
- arg1 = (pn_driver_t *)(argp1);
9828
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
9829
- if (!SWIG_IsOK(ecode2)) {
9830
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_listener_fd", 2, argv[1] ));
9831
- }
9832
- arg2 = (int)(val2);
9833
- {
9834
- arg3 = (void *) argv[2];
9835
- }
9836
- SWIG_contract_assert((arg1!=NULL)&&(arg2>=0), "Contract violation: require: (arg1!=NULL)&&(arg2>=0)");
9837
-
9838
- result = (pn_listener_t *)pn_listener_fd(arg1,arg2,arg3);
9839
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_listener_t, 0 | 0 );
9840
- return vresult;
9841
- fail:
9842
- return Qnil;
9843
- }
9844
-
9845
-
9846
10022
  SWIGINTERN VALUE
9847
10023
  _wrap_pn_listener_head(int argc, VALUE *argv, VALUE self) {
9848
10024
  pn_driver_t *arg1 = (pn_driver_t *) 0 ;
@@ -10103,46 +10279,6 @@ fail:
10103
10279
  }
10104
10280
 
10105
10281
 
10106
- SWIGINTERN VALUE
10107
- _wrap_pn_connector_fd(int argc, VALUE *argv, VALUE self) {
10108
- pn_driver_t *arg1 = (pn_driver_t *) 0 ;
10109
- int arg2 ;
10110
- void *arg3 = (void *) 0 ;
10111
- void *argp1 = 0 ;
10112
- int res1 = 0 ;
10113
- int val2 ;
10114
- int ecode2 = 0 ;
10115
- pn_connector_t *result = 0 ;
10116
- VALUE vresult = Qnil;
10117
-
10118
- if ((argc < 3) || (argc > 3)) {
10119
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
10120
- }
10121
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 );
10122
- if (!SWIG_IsOK(res1)) {
10123
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_connector_fd", 1, argv[0] ));
10124
- }
10125
- arg1 = (pn_driver_t *)(argp1);
10126
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
10127
- if (!SWIG_IsOK(ecode2)) {
10128
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_connector_fd", 2, argv[1] ));
10129
- }
10130
- arg2 = (int)(val2);
10131
- {
10132
- arg3 = (void *) argv[2];
10133
- }
10134
- SWIG_contract_assert((arg1!=NULL)&&(arg2>=0), "Contract violation: require: (arg1!=NULL)&&(arg2>=0)");
10135
-
10136
- result = (pn_connector_t *)pn_connector_fd(arg1,arg2,arg3);
10137
- SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
10138
-
10139
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connector_t, 0 | 0 );
10140
- return vresult;
10141
- fail:
10142
- return Qnil;
10143
- }
10144
-
10145
-
10146
10282
  SWIGINTERN VALUE
10147
10283
  _wrap_pn_connector_head(int argc, VALUE *argv, VALUE self) {
10148
10284
  pn_driver_t *arg1 = (pn_driver_t *) 0 ;
@@ -10566,6 +10702,78 @@ fail:
10566
10702
  }
10567
10703
 
10568
10704
 
10705
+ SWIGINTERN VALUE
10706
+ _wrap_pn_listener_fd(int argc, VALUE *argv, VALUE self) {
10707
+ pn_driver_t *arg1 = (pn_driver_t *) 0 ;
10708
+ pn_socket_t arg2 ;
10709
+ void *arg3 = (void *) 0 ;
10710
+ void *argp1 = 0 ;
10711
+ int res1 = 0 ;
10712
+ int val2 ;
10713
+ int ecode2 = 0 ;
10714
+ pn_listener_t *result = 0 ;
10715
+ VALUE vresult = Qnil;
10716
+
10717
+ if ((argc < 3) || (argc > 3)) {
10718
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
10719
+ }
10720
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 );
10721
+ if (!SWIG_IsOK(res1)) {
10722
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_listener_fd", 1, argv[0] ));
10723
+ }
10724
+ arg1 = (pn_driver_t *)(argp1);
10725
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
10726
+ if (!SWIG_IsOK(ecode2)) {
10727
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_socket_t","pn_listener_fd", 2, argv[1] ));
10728
+ }
10729
+ arg2 = (pn_socket_t)(val2);
10730
+ {
10731
+ arg3 = (void *) argv[2];
10732
+ }
10733
+ result = (pn_listener_t *)pn_listener_fd(arg1,arg2,arg3);
10734
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_listener_t, 0 | 0 );
10735
+ return vresult;
10736
+ fail:
10737
+ return Qnil;
10738
+ }
10739
+
10740
+
10741
+ SWIGINTERN VALUE
10742
+ _wrap_pn_connector_fd(int argc, VALUE *argv, VALUE self) {
10743
+ pn_driver_t *arg1 = (pn_driver_t *) 0 ;
10744
+ pn_socket_t arg2 ;
10745
+ void *arg3 = (void *) 0 ;
10746
+ void *argp1 = 0 ;
10747
+ int res1 = 0 ;
10748
+ int val2 ;
10749
+ int ecode2 = 0 ;
10750
+ pn_connector_t *result = 0 ;
10751
+ VALUE vresult = Qnil;
10752
+
10753
+ if ((argc < 3) || (argc > 3)) {
10754
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
10755
+ }
10756
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_driver_t, 0 | 0 );
10757
+ if (!SWIG_IsOK(res1)) {
10758
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_driver_t *","pn_connector_fd", 1, argv[0] ));
10759
+ }
10760
+ arg1 = (pn_driver_t *)(argp1);
10761
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
10762
+ if (!SWIG_IsOK(ecode2)) {
10763
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_socket_t","pn_connector_fd", 2, argv[1] ));
10764
+ }
10765
+ arg2 = (pn_socket_t)(val2);
10766
+ {
10767
+ arg3 = (void *) argv[2];
10768
+ }
10769
+ result = (pn_connector_t *)pn_connector_fd(arg1,arg2,arg3);
10770
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connector_t, 0 | 0 );
10771
+ return vresult;
10772
+ fail:
10773
+ return Qnil;
10774
+ }
10775
+
10776
+
10569
10777
  SWIGINTERN VALUE
10570
10778
  _wrap_pn_messenger(int argc, VALUE *argv, VALUE self) {
10571
10779
  char *arg1 = (char *) 0 ;
@@ -11482,7 +11690,7 @@ _wrap_pn_messenger_recv(int argc, VALUE *argv, VALUE self) {
11482
11690
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_messenger_recv", 2, argv[1] ));
11483
11691
  }
11484
11692
  arg2 = (int)(val2);
11485
- SWIG_contract_assert((arg1!=NULL)&&(arg2>=0), "Contract violation: require: (arg1!=NULL)&&(arg2>=0)");
11693
+ SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
11486
11694
 
11487
11695
  result = (int)pn_messenger_recv(arg1,arg2);
11488
11696
  vresult = SWIG_From_int((int)(result));
@@ -12083,6 +12291,30 @@ fail:
12083
12291
  }
12084
12292
 
12085
12293
 
12294
+ SWIGINTERN VALUE
12295
+ _wrap_pn_type_name(int argc, VALUE *argv, VALUE self) {
12296
+ pn_type_t arg1 ;
12297
+ int val1 ;
12298
+ int ecode1 = 0 ;
12299
+ char *result = 0 ;
12300
+ VALUE vresult = Qnil;
12301
+
12302
+ if ((argc < 1) || (argc > 1)) {
12303
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
12304
+ }
12305
+ ecode1 = SWIG_AsVal_int(argv[0], &val1);
12306
+ if (!SWIG_IsOK(ecode1)) {
12307
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "pn_type_t","pn_type_name", 1, argv[0] ));
12308
+ }
12309
+ arg1 = (pn_type_t)(val1);
12310
+ result = (char *)pn_type_name(arg1);
12311
+ vresult = SWIG_FromCharPtr((const char *)result);
12312
+ return vresult;
12313
+ fail:
12314
+ return Qnil;
12315
+ }
12316
+
12317
+
12086
12318
  static swig_class SwigClassPn_atom_t;
12087
12319
 
12088
12320
  SWIGINTERN VALUE
@@ -12472,7 +12704,7 @@ _wrap_pn_atom_t_u_as_uint_set(int argc, VALUE *argv, VALUE self) {
12472
12704
  uint32_t arg2 ;
12473
12705
  void *argp1 = 0 ;
12474
12706
  int res1 = 0 ;
12475
- unsigned int val2 ;
12707
+ unsigned long val2 ;
12476
12708
  int ecode2 = 0 ;
12477
12709
 
12478
12710
  if ((argc < 1) || (argc > 1)) {
@@ -12483,7 +12715,7 @@ _wrap_pn_atom_t_u_as_uint_set(int argc, VALUE *argv, VALUE self) {
12483
12715
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_uint", 1, self ));
12484
12716
  }
12485
12717
  arg1 = (pn_atom_t_u *)(argp1);
12486
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
12718
+ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
12487
12719
  if (!SWIG_IsOK(ecode2)) {
12488
12720
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","as_uint", 2, argv[0] ));
12489
12721
  }
@@ -12512,7 +12744,7 @@ _wrap_pn_atom_t_u_as_uint_get(int argc, VALUE *argv, VALUE self) {
12512
12744
  }
12513
12745
  arg1 = (pn_atom_t_u *)(argp1);
12514
12746
  result = (uint32_t) ((arg1)->as_uint);
12515
- vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
12747
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
12516
12748
  return vresult;
12517
12749
  fail:
12518
12750
  return Qnil;
@@ -12525,7 +12757,7 @@ _wrap_pn_atom_t_u_as_int_set(int argc, VALUE *argv, VALUE self) {
12525
12757
  int32_t arg2 ;
12526
12758
  void *argp1 = 0 ;
12527
12759
  int res1 = 0 ;
12528
- int val2 ;
12760
+ long val2 ;
12529
12761
  int ecode2 = 0 ;
12530
12762
 
12531
12763
  if ((argc < 1) || (argc > 1)) {
@@ -12536,7 +12768,7 @@ _wrap_pn_atom_t_u_as_int_set(int argc, VALUE *argv, VALUE self) {
12536
12768
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_int", 1, self ));
12537
12769
  }
12538
12770
  arg1 = (pn_atom_t_u *)(argp1);
12539
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
12771
+ ecode2 = SWIG_AsVal_long(argv[0], &val2);
12540
12772
  if (!SWIG_IsOK(ecode2)) {
12541
12773
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int32_t","as_int", 2, argv[0] ));
12542
12774
  }
@@ -12565,7 +12797,7 @@ _wrap_pn_atom_t_u_as_int_get(int argc, VALUE *argv, VALUE self) {
12565
12797
  }
12566
12798
  arg1 = (pn_atom_t_u *)(argp1);
12567
12799
  result = (int32_t) ((arg1)->as_int);
12568
- vresult = SWIG_From_int((int)(result));
12800
+ vresult = SWIG_From_long((long)(result));
12569
12801
  return vresult;
12570
12802
  fail:
12571
12803
  return Qnil;
@@ -12578,7 +12810,7 @@ _wrap_pn_atom_t_u_as_char_set(int argc, VALUE *argv, VALUE self) {
12578
12810
  pn_char_t arg2 ;
12579
12811
  void *argp1 = 0 ;
12580
12812
  int res1 = 0 ;
12581
- unsigned int val2 ;
12813
+ unsigned long val2 ;
12582
12814
  int ecode2 = 0 ;
12583
12815
 
12584
12816
  if ((argc < 1) || (argc > 1)) {
@@ -12589,7 +12821,7 @@ _wrap_pn_atom_t_u_as_char_set(int argc, VALUE *argv, VALUE self) {
12589
12821
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_char", 1, self ));
12590
12822
  }
12591
12823
  arg1 = (pn_atom_t_u *)(argp1);
12592
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
12824
+ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
12593
12825
  if (!SWIG_IsOK(ecode2)) {
12594
12826
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_char_t","as_char", 2, argv[0] ));
12595
12827
  }
@@ -12618,7 +12850,7 @@ _wrap_pn_atom_t_u_as_char_get(int argc, VALUE *argv, VALUE self) {
12618
12850
  }
12619
12851
  arg1 = (pn_atom_t_u *)(argp1);
12620
12852
  result = (pn_char_t) ((arg1)->as_char);
12621
- vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
12853
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
12622
12854
  return vresult;
12623
12855
  fail:
12624
12856
  return Qnil;
@@ -12631,7 +12863,7 @@ _wrap_pn_atom_t_u_as_ulong_set(int argc, VALUE *argv, VALUE self) {
12631
12863
  uint64_t arg2 ;
12632
12864
  void *argp1 = 0 ;
12633
12865
  int res1 = 0 ;
12634
- unsigned long val2 ;
12866
+ unsigned long long val2 ;
12635
12867
  int ecode2 = 0 ;
12636
12868
 
12637
12869
  if ((argc < 1) || (argc > 1)) {
@@ -12642,7 +12874,7 @@ _wrap_pn_atom_t_u_as_ulong_set(int argc, VALUE *argv, VALUE self) {
12642
12874
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ulong", 1, self ));
12643
12875
  }
12644
12876
  arg1 = (pn_atom_t_u *)(argp1);
12645
- ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
12877
+ ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
12646
12878
  if (!SWIG_IsOK(ecode2)) {
12647
12879
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","as_ulong", 2, argv[0] ));
12648
12880
  }
@@ -12671,7 +12903,7 @@ _wrap_pn_atom_t_u_as_ulong_get(int argc, VALUE *argv, VALUE self) {
12671
12903
  }
12672
12904
  arg1 = (pn_atom_t_u *)(argp1);
12673
12905
  result = (uint64_t) ((arg1)->as_ulong);
12674
- vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
12906
+ vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
12675
12907
  return vresult;
12676
12908
  fail:
12677
12909
  return Qnil;
@@ -12896,8 +13128,6 @@ _wrap_pn_atom_t_u_as_decimal32_set(int argc, VALUE *argv, VALUE self) {
12896
13128
  pn_decimal32_t arg2 ;
12897
13129
  void *argp1 = 0 ;
12898
13130
  int res1 = 0 ;
12899
- unsigned int val2 ;
12900
- int ecode2 = 0 ;
12901
13131
 
12902
13132
  if ((argc < 1) || (argc > 1)) {
12903
13133
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
@@ -12907,11 +13137,9 @@ _wrap_pn_atom_t_u_as_decimal32_set(int argc, VALUE *argv, VALUE self) {
12907
13137
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal32", 1, self ));
12908
13138
  }
12909
13139
  arg1 = (pn_atom_t_u *)(argp1);
12910
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
12911
- if (!SWIG_IsOK(ecode2)) {
12912
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_decimal32_t","as_decimal32", 2, argv[0] ));
12913
- }
12914
- arg2 = (pn_decimal32_t)(val2);
13140
+ {
13141
+ arg2 = FIX2UINT(argv[0]);
13142
+ }
12915
13143
  if (arg1) (arg1)->as_decimal32 = arg2;
12916
13144
  return Qnil;
12917
13145
  fail:
@@ -12936,7 +13164,9 @@ _wrap_pn_atom_t_u_as_decimal32_get(int argc, VALUE *argv, VALUE self) {
12936
13164
  }
12937
13165
  arg1 = (pn_atom_t_u *)(argp1);
12938
13166
  result = (pn_decimal32_t) ((arg1)->as_decimal32);
12939
- vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
13167
+ {
13168
+ vresult = ULL2NUM(result);
13169
+ }
12940
13170
  return vresult;
12941
13171
  fail:
12942
13172
  return Qnil;
@@ -12949,8 +13179,6 @@ _wrap_pn_atom_t_u_as_decimal64_set(int argc, VALUE *argv, VALUE self) {
12949
13179
  pn_decimal64_t arg2 ;
12950
13180
  void *argp1 = 0 ;
12951
13181
  int res1 = 0 ;
12952
- unsigned long val2 ;
12953
- int ecode2 = 0 ;
12954
13182
 
12955
13183
  if ((argc < 1) || (argc > 1)) {
12956
13184
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
@@ -12960,11 +13188,9 @@ _wrap_pn_atom_t_u_as_decimal64_set(int argc, VALUE *argv, VALUE self) {
12960
13188
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal64", 1, self ));
12961
13189
  }
12962
13190
  arg1 = (pn_atom_t_u *)(argp1);
12963
- ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
12964
- if (!SWIG_IsOK(ecode2)) {
12965
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_decimal64_t","as_decimal64", 2, argv[0] ));
12966
- }
12967
- arg2 = (pn_decimal64_t)(val2);
13191
+ {
13192
+ arg2 = NUM2ULONG(argv[0]);
13193
+ }
12968
13194
  if (arg1) (arg1)->as_decimal64 = arg2;
12969
13195
  return Qnil;
12970
13196
  fail:
@@ -12989,7 +13215,9 @@ _wrap_pn_atom_t_u_as_decimal64_get(int argc, VALUE *argv, VALUE self) {
12989
13215
  }
12990
13216
  arg1 = (pn_atom_t_u *)(argp1);
12991
13217
  result = (pn_decimal64_t) ((arg1)->as_decimal64);
12992
- vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
13218
+ {
13219
+ vresult = ULL2NUM(result);
13220
+ }
12993
13221
  return vresult;
12994
13222
  fail:
12995
13223
  return Qnil;
@@ -14051,7 +14279,7 @@ _wrap_pn_data_put_uint(int argc, VALUE *argv, VALUE self) {
14051
14279
  uint32_t arg2 ;
14052
14280
  void *argp1 = 0 ;
14053
14281
  int res1 = 0 ;
14054
- unsigned int val2 ;
14282
+ unsigned long val2 ;
14055
14283
  int ecode2 = 0 ;
14056
14284
  int result;
14057
14285
  VALUE vresult = Qnil;
@@ -14064,7 +14292,7 @@ _wrap_pn_data_put_uint(int argc, VALUE *argv, VALUE self) {
14064
14292
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_uint", 1, argv[0] ));
14065
14293
  }
14066
14294
  arg1 = (pn_data_t *)(argp1);
14067
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
14295
+ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
14068
14296
  if (!SWIG_IsOK(ecode2)) {
14069
14297
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","pn_data_put_uint", 2, argv[1] ));
14070
14298
  }
@@ -14083,7 +14311,7 @@ _wrap_pn_data_put_int(int argc, VALUE *argv, VALUE self) {
14083
14311
  int32_t arg2 ;
14084
14312
  void *argp1 = 0 ;
14085
14313
  int res1 = 0 ;
14086
- int val2 ;
14314
+ long val2 ;
14087
14315
  int ecode2 = 0 ;
14088
14316
  int result;
14089
14317
  VALUE vresult = Qnil;
@@ -14096,7 +14324,7 @@ _wrap_pn_data_put_int(int argc, VALUE *argv, VALUE self) {
14096
14324
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_int", 1, argv[0] ));
14097
14325
  }
14098
14326
  arg1 = (pn_data_t *)(argp1);
14099
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
14327
+ ecode2 = SWIG_AsVal_long(argv[1], &val2);
14100
14328
  if (!SWIG_IsOK(ecode2)) {
14101
14329
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int32_t","pn_data_put_int", 2, argv[1] ));
14102
14330
  }
@@ -14115,7 +14343,7 @@ _wrap_pn_data_put_char(int argc, VALUE *argv, VALUE self) {
14115
14343
  pn_char_t arg2 ;
14116
14344
  void *argp1 = 0 ;
14117
14345
  int res1 = 0 ;
14118
- unsigned int val2 ;
14346
+ unsigned long val2 ;
14119
14347
  int ecode2 = 0 ;
14120
14348
  int result;
14121
14349
  VALUE vresult = Qnil;
@@ -14128,7 +14356,7 @@ _wrap_pn_data_put_char(int argc, VALUE *argv, VALUE self) {
14128
14356
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_char", 1, argv[0] ));
14129
14357
  }
14130
14358
  arg1 = (pn_data_t *)(argp1);
14131
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
14359
+ ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
14132
14360
  if (!SWIG_IsOK(ecode2)) {
14133
14361
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_char_t","pn_data_put_char", 2, argv[1] ));
14134
14362
  }
@@ -14147,7 +14375,7 @@ _wrap_pn_data_put_ulong(int argc, VALUE *argv, VALUE self) {
14147
14375
  uint64_t arg2 ;
14148
14376
  void *argp1 = 0 ;
14149
14377
  int res1 = 0 ;
14150
- unsigned long val2 ;
14378
+ unsigned long long val2 ;
14151
14379
  int ecode2 = 0 ;
14152
14380
  int result;
14153
14381
  VALUE vresult = Qnil;
@@ -14160,7 +14388,7 @@ _wrap_pn_data_put_ulong(int argc, VALUE *argv, VALUE self) {
14160
14388
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_ulong", 1, argv[0] ));
14161
14389
  }
14162
14390
  arg1 = (pn_data_t *)(argp1);
14163
- ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
14391
+ ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
14164
14392
  if (!SWIG_IsOK(ecode2)) {
14165
14393
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","pn_data_put_ulong", 2, argv[1] ));
14166
14394
  }
@@ -14307,8 +14535,6 @@ _wrap_pn_data_put_decimal32(int argc, VALUE *argv, VALUE self) {
14307
14535
  pn_decimal32_t arg2 ;
14308
14536
  void *argp1 = 0 ;
14309
14537
  int res1 = 0 ;
14310
- unsigned int val2 ;
14311
- int ecode2 = 0 ;
14312
14538
  int result;
14313
14539
  VALUE vresult = Qnil;
14314
14540
 
@@ -14320,11 +14546,9 @@ _wrap_pn_data_put_decimal32(int argc, VALUE *argv, VALUE self) {
14320
14546
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_decimal32", 1, argv[0] ));
14321
14547
  }
14322
14548
  arg1 = (pn_data_t *)(argp1);
14323
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
14324
- if (!SWIG_IsOK(ecode2)) {
14325
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_decimal32_t","pn_data_put_decimal32", 2, argv[1] ));
14326
- }
14327
- arg2 = (pn_decimal32_t)(val2);
14549
+ {
14550
+ arg2 = FIX2UINT(argv[1]);
14551
+ }
14328
14552
  result = (int)pn_data_put_decimal32(arg1,arg2);
14329
14553
  vresult = SWIG_From_int((int)(result));
14330
14554
  return vresult;
@@ -14339,8 +14563,6 @@ _wrap_pn_data_put_decimal64(int argc, VALUE *argv, VALUE self) {
14339
14563
  pn_decimal64_t arg2 ;
14340
14564
  void *argp1 = 0 ;
14341
14565
  int res1 = 0 ;
14342
- unsigned long val2 ;
14343
- int ecode2 = 0 ;
14344
14566
  int result;
14345
14567
  VALUE vresult = Qnil;
14346
14568
 
@@ -14352,11 +14574,9 @@ _wrap_pn_data_put_decimal64(int argc, VALUE *argv, VALUE self) {
14352
14574
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_put_decimal64", 1, argv[0] ));
14353
14575
  }
14354
14576
  arg1 = (pn_data_t *)(argp1);
14355
- ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
14356
- if (!SWIG_IsOK(ecode2)) {
14357
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_decimal64_t","pn_data_put_decimal64", 2, argv[1] ));
14358
- }
14359
- arg2 = (pn_decimal64_t)(val2);
14577
+ {
14578
+ arg2 = NUM2ULONG(argv[1]);
14579
+ }
14360
14580
  result = (int)pn_data_put_decimal64(arg1,arg2);
14361
14581
  vresult = SWIG_From_int((int)(result));
14362
14582
  return vresult;
@@ -14371,8 +14591,6 @@ _wrap_pn_data_put_decimal128(int argc, VALUE *argv, VALUE self) {
14371
14591
  pn_decimal128_t arg2 ;
14372
14592
  void *argp1 = 0 ;
14373
14593
  int res1 = 0 ;
14374
- void *argp2 ;
14375
- int res2 = 0 ;
14376
14594
  int result;
14377
14595
  VALUE vresult = Qnil;
14378
14596
 
@@ -14385,14 +14603,12 @@ _wrap_pn_data_put_decimal128(int argc, VALUE *argv, VALUE self) {
14385
14603
  }
14386
14604
  arg1 = (pn_data_t *)(argp1);
14387
14605
  {
14388
- res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_pn_decimal128_t, 0 );
14389
- if (!SWIG_IsOK(res2)) {
14390
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_decimal128_t","pn_data_put_decimal128", 2, argv[1] ));
14391
- }
14392
- if (!argp2) {
14393
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_decimal128_t","pn_data_put_decimal128", 2, argv[1]));
14394
- } else {
14395
- arg2 = *((pn_decimal128_t *)(argp2));
14606
+ int index;
14607
+
14608
+ for(index = 0; index < 16; index++)
14609
+ {
14610
+ VALUE element = rb_ary_entry(argv[1], index);
14611
+ (&arg2)->bytes[16 - (index + 1)] = FIX2INT(element);
14396
14612
  }
14397
14613
  }
14398
14614
  result = (int)pn_data_put_decimal128(arg1,arg2);
@@ -14409,8 +14625,6 @@ _wrap_pn_data_put_uuid(int argc, VALUE *argv, VALUE self) {
14409
14625
  pn_uuid_t arg2 ;
14410
14626
  void *argp1 = 0 ;
14411
14627
  int res1 = 0 ;
14412
- void *argp2 ;
14413
- int res2 = 0 ;
14414
14628
  int result;
14415
14629
  VALUE vresult = Qnil;
14416
14630
 
@@ -14423,14 +14637,12 @@ _wrap_pn_data_put_uuid(int argc, VALUE *argv, VALUE self) {
14423
14637
  }
14424
14638
  arg1 = (pn_data_t *)(argp1);
14425
14639
  {
14426
- res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_pn_uuid_t, 0 );
14427
- if (!SWIG_IsOK(res2)) {
14428
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_uuid_t","pn_data_put_uuid", 2, argv[1] ));
14429
- }
14430
- if (!argp2) {
14431
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "pn_uuid_t","pn_data_put_uuid", 2, argv[1]));
14432
- } else {
14433
- arg2 = *((pn_uuid_t *)(argp2));
14640
+ int index;
14641
+
14642
+ for(index = 0; index < 16; index++)
14643
+ {
14644
+ VALUE element = rb_ary_entry(argv[1], index);
14645
+ (&arg2)->bytes[16 - (index + 1)] = FIX2INT(element);
14434
14646
  }
14435
14647
  }
14436
14648
  result = (int)pn_data_put_uuid(arg1,arg2);
@@ -14465,7 +14677,7 @@ _wrap_pn_data_put_binary(int argc, VALUE *argv, VALUE self) {
14465
14677
  } else {
14466
14678
  (&arg2)->start = RSTRING_PTR(argv[1]);
14467
14679
  if (!(&arg2)->start) {
14468
- return NULL;
14680
+ (&arg2)->size = 0;
14469
14681
  }
14470
14682
  (&arg2)->size = RSTRING_LEN(argv[1]);
14471
14683
  }
@@ -14502,7 +14714,7 @@ _wrap_pn_data_put_string(int argc, VALUE *argv, VALUE self) {
14502
14714
  } else {
14503
14715
  (&arg2)->start = RSTRING_PTR(argv[1]);
14504
14716
  if (!(&arg2)->start) {
14505
- return NULL;
14717
+ (&arg2)->size = 0;
14506
14718
  }
14507
14719
  (&arg2)->size = RSTRING_LEN(argv[1]);
14508
14720
  }
@@ -14539,7 +14751,7 @@ _wrap_pn_data_put_symbol(int argc, VALUE *argv, VALUE self) {
14539
14751
  } else {
14540
14752
  (&arg2)->start = RSTRING_PTR(argv[1]);
14541
14753
  if (!(&arg2)->start) {
14542
- return NULL;
14754
+ (&arg2)->size = 0;
14543
14755
  }
14544
14756
  (&arg2)->size = RSTRING_LEN(argv[1]);
14545
14757
  }
@@ -14932,7 +15144,7 @@ _wrap_pn_data_get_uint(int argc, VALUE *argv, VALUE self) {
14932
15144
  }
14933
15145
  arg1 = (pn_data_t *)(argp1);
14934
15146
  result = (uint32_t)pn_data_get_uint(arg1);
14935
- vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
15147
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
14936
15148
  return vresult;
14937
15149
  fail:
14938
15150
  return Qnil;
@@ -14956,7 +15168,7 @@ _wrap_pn_data_get_int(int argc, VALUE *argv, VALUE self) {
14956
15168
  }
14957
15169
  arg1 = (pn_data_t *)(argp1);
14958
15170
  result = (int32_t)pn_data_get_int(arg1);
14959
- vresult = SWIG_From_int((int)(result));
15171
+ vresult = SWIG_From_long((long)(result));
14960
15172
  return vresult;
14961
15173
  fail:
14962
15174
  return Qnil;
@@ -14980,7 +15192,7 @@ _wrap_pn_data_get_char(int argc, VALUE *argv, VALUE self) {
14980
15192
  }
14981
15193
  arg1 = (pn_data_t *)(argp1);
14982
15194
  result = (pn_char_t)pn_data_get_char(arg1);
14983
- vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
15195
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
14984
15196
  return vresult;
14985
15197
  fail:
14986
15198
  return Qnil;
@@ -15004,7 +15216,7 @@ _wrap_pn_data_get_ulong(int argc, VALUE *argv, VALUE self) {
15004
15216
  }
15005
15217
  arg1 = (pn_data_t *)(argp1);
15006
15218
  result = (uint64_t)pn_data_get_ulong(arg1);
15007
- vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
15219
+ vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
15008
15220
  return vresult;
15009
15221
  fail:
15010
15222
  return Qnil;
@@ -15124,7 +15336,9 @@ _wrap_pn_data_get_decimal32(int argc, VALUE *argv, VALUE self) {
15124
15336
  }
15125
15337
  arg1 = (pn_data_t *)(argp1);
15126
15338
  result = (pn_decimal32_t)pn_data_get_decimal32(arg1);
15127
- vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
15339
+ {
15340
+ vresult = ULL2NUM(result);
15341
+ }
15128
15342
  return vresult;
15129
15343
  fail:
15130
15344
  return Qnil;
@@ -15148,7 +15362,9 @@ _wrap_pn_data_get_decimal64(int argc, VALUE *argv, VALUE self) {
15148
15362
  }
15149
15363
  arg1 = (pn_data_t *)(argp1);
15150
15364
  result = (pn_decimal64_t)pn_data_get_decimal64(arg1);
15151
- vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
15365
+ {
15366
+ vresult = ULL2NUM(result);
15367
+ }
15152
15368
  return vresult;
15153
15369
  fail:
15154
15370
  return Qnil;
@@ -15172,7 +15388,15 @@ _wrap_pn_data_get_decimal128(int argc, VALUE *argv, VALUE self) {
15172
15388
  }
15173
15389
  arg1 = (pn_data_t *)(argp1);
15174
15390
  result = pn_data_get_decimal128(arg1);
15175
- vresult = SWIG_NewPointerObj((pn_decimal128_t *)memcpy((pn_decimal128_t *)malloc(sizeof(pn_decimal128_t)),&result,sizeof(pn_decimal128_t)), SWIGTYPE_p_pn_decimal128_t, SWIG_POINTER_OWN | 0 );
15391
+ {
15392
+ int index;
15393
+
15394
+ vresult = rb_ary_new2(16);
15395
+ for(index = 0; index < 16; index++)
15396
+ {
15397
+ rb_ary_store(vresult, 16 - (index + 1), CHR2FIX((&result)->bytes[index]));
15398
+ }
15399
+ }
15176
15400
  return vresult;
15177
15401
  fail:
15178
15402
  return Qnil;
@@ -15196,7 +15420,15 @@ _wrap_pn_data_get_uuid(int argc, VALUE *argv, VALUE self) {
15196
15420
  }
15197
15421
  arg1 = (pn_data_t *)(argp1);
15198
15422
  result = pn_data_get_uuid(arg1);
15199
- vresult = SWIG_NewPointerObj((pn_uuid_t *)memcpy((pn_uuid_t *)malloc(sizeof(pn_uuid_t)),&result,sizeof(pn_uuid_t)), SWIGTYPE_p_pn_uuid_t, SWIG_POINTER_OWN | 0 );
15423
+ {
15424
+ int index;
15425
+
15426
+ vresult = rb_ary_new2(16);
15427
+ for(index = 0; index < 16; index++)
15428
+ {
15429
+ rb_ary_store(vresult, 16 - (index + 1), CHR2FIX((&result)->bytes[index]));
15430
+ }
15431
+ }
15200
15432
  return vresult;
15201
15433
  fail:
15202
15434
  return Qnil;
@@ -15557,7 +15789,8 @@ fail:
15557
15789
  /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
15558
15790
 
15559
15791
  static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
15560
- static swig_type_info _swigt__p_int = {"_p_int", "int *|ssize_t *|int32_t *|pn_state_t *|pn_trace_t *|pn_sequence_t *", 0, 0, (void*)0, 0};
15792
+ static swig_type_info _swigt__p_int = {"_p_int", "int *|ssize_t *|pn_state_t *|pn_trace_t *|pn_socket_t *", 0, 0, (void*)0, 0};
15793
+ static swig_type_info _swigt__p_long = {"_p_long", "int32_t *|long *|pn_sequence_t *", 0, 0, (void*)0, 0};
15561
15794
  static swig_type_info _swigt__p_long_long = {"_p_long_long", "int64_t *|long long *|pn_tracker_t *|pn_timestamp_t *", 0, 0, (void*)0, 0};
15562
15795
  static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
15563
15796
  static swig_type_info _swigt__p_pn_accept_mode_t = {"_p_pn_accept_mode_t", "enum pn_accept_mode_t *|pn_accept_mode_t *", 0, 0, (void*)0, 0};
@@ -15601,13 +15834,15 @@ static swig_type_info _swigt__p_pn_uuid_t = {"_p_pn_uuid_t", "pn_uuid_t *", 0, 0
15601
15834
  static swig_type_info _swigt__p_short = {"_p_short", "short *|int16_t *", 0, 0, (void*)0, 0};
15602
15835
  static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|int8_t *", 0, 0, (void*)0, 0};
15603
15836
  static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uint8_t *", 0, 0, (void*)0, 0};
15604
- static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "pn_seconds_t *|pn_decimal32_t *|size_t *|uint32_t *|unsigned int *|pn_millis_t *|pn_char_t *", 0, 0, (void*)0, 0};
15605
- static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "pn_decimal64_t *|uint64_t *|unsigned long *", 0, 0, (void*)0, 0};
15837
+ static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "size_t *|unsigned int *", 0, 0, (void*)0, 0};
15838
+ static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "pn_seconds_t *|pn_decimal32_t *|uint32_t *|unsigned long *|pn_millis_t *|pn_char_t *", 0, 0, (void*)0, 0};
15839
+ static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "pn_decimal64_t *|uint64_t *|unsigned long long *", 0, 0, (void*)0, 0};
15606
15840
  static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|uint16_t *", 0, 0, (void*)0, 0};
15607
15841
 
15608
15842
  static swig_type_info *swig_type_initial[] = {
15609
15843
  &_swigt__p_char,
15610
15844
  &_swigt__p_int,
15845
+ &_swigt__p_long,
15611
15846
  &_swigt__p_long_long,
15612
15847
  &_swigt__p_p_char,
15613
15848
  &_swigt__p_pn_accept_mode_t,
@@ -15653,11 +15888,13 @@ static swig_type_info *swig_type_initial[] = {
15653
15888
  &_swigt__p_unsigned_char,
15654
15889
  &_swigt__p_unsigned_int,
15655
15890
  &_swigt__p_unsigned_long,
15891
+ &_swigt__p_unsigned_long_long,
15656
15892
  &_swigt__p_unsigned_short,
15657
15893
  };
15658
15894
 
15659
15895
  static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
15660
15896
  static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
15897
+ static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
15661
15898
  static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
15662
15899
  static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
15663
15900
  static swig_cast_info _swigc__p_pn_accept_mode_t[] = { {&_swigt__p_pn_accept_mode_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -15703,11 +15940,13 @@ static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0
15703
15940
  static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
15704
15941
  static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
15705
15942
  static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
15943
+ static swig_cast_info _swigc__p_unsigned_long_long[] = { {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}};
15706
15944
  static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
15707
15945
 
15708
15946
  static swig_cast_info *swig_cast_initial[] = {
15709
15947
  _swigc__p_char,
15710
15948
  _swigc__p_int,
15949
+ _swigc__p_long,
15711
15950
  _swigc__p_long_long,
15712
15951
  _swigc__p_p_char,
15713
15952
  _swigc__p_pn_accept_mode_t,
@@ -15753,6 +15992,7 @@ static swig_cast_info *swig_cast_initial[] = {
15753
15992
  _swigc__p_unsigned_char,
15754
15993
  _swigc__p_unsigned_int,
15755
15994
  _swigc__p_unsigned_long,
15995
+ _swigc__p_unsigned_long_long,
15756
15996
  _swigc__p_unsigned_short,
15757
15997
  };
15758
15998
 
@@ -16033,6 +16273,7 @@ SWIGEXPORT void Init_cproton(void) {
16033
16273
  rb_define_module_function(mCproton, "pn_message_data", _wrap_pn_message_data, -1);
16034
16274
  rb_define_module_function(mCproton, "pn_ssl_get_cipher_name", _wrap_pn_ssl_get_cipher_name, -1);
16035
16275
  rb_define_module_function(mCproton, "pn_ssl_get_protocol_name", _wrap_pn_ssl_get_protocol_name, -1);
16276
+ rb_define_const(mCproton, "PROTON_IMPORT_EXPORT_H", SWIG_From_int((int)(1)));
16036
16277
  rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1)));
16037
16278
 
16038
16279
  SwigClassPn_decimal128_t.klass = rb_define_class_under(mCproton, "Pn_decimal128_t", rb_cObject);
@@ -16082,7 +16323,6 @@ SWIGEXPORT void Init_cproton(void) {
16082
16323
  rb_define_module_function(mCproton, "pn_error_free", _wrap_pn_error_free, -1);
16083
16324
  rb_define_module_function(mCproton, "pn_error_clear", _wrap_pn_error_clear, -1);
16084
16325
  rb_define_module_function(mCproton, "pn_error_set", _wrap_pn_error_set, -1);
16085
- rb_define_module_function(mCproton, "pn_error_from_errno", _wrap_pn_error_from_errno, -1);
16086
16326
  rb_define_module_function(mCproton, "pn_error_code", _wrap_pn_error_code, -1);
16087
16327
  rb_define_module_function(mCproton, "pn_error_text", _wrap_pn_error_text, -1);
16088
16328
  rb_define_const(mCproton, "PROTON_ENGINE_H", SWIG_From_int((int)(1)));
@@ -16157,6 +16397,14 @@ SWIGEXPORT void Init_cproton(void) {
16157
16397
  rb_define_module_function(mCproton, "pn_connection_get_context", _wrap_pn_connection_get_context, -1);
16158
16398
  rb_define_module_function(mCproton, "pn_connection_set_context", _wrap_pn_connection_set_context, -1);
16159
16399
  rb_define_module_function(mCproton, "pn_transport_error", _wrap_pn_transport_error, -1);
16400
+ rb_define_module_function(mCproton, "pn_transport_capacity", _wrap_pn_transport_capacity, -1);
16401
+ rb_define_module_function(mCproton, "pn_transport_tail", _wrap_pn_transport_tail, -1);
16402
+ rb_define_module_function(mCproton, "pn_transport_push", _wrap_pn_transport_push, -1);
16403
+ rb_define_module_function(mCproton, "pn_transport_close_tail", _wrap_pn_transport_close_tail, -1);
16404
+ rb_define_module_function(mCproton, "pn_transport_pending", _wrap_pn_transport_pending, -1);
16405
+ rb_define_module_function(mCproton, "pn_transport_head", _wrap_pn_transport_head, -1);
16406
+ rb_define_module_function(mCproton, "pn_transport_pop", _wrap_pn_transport_pop, -1);
16407
+ rb_define_module_function(mCproton, "pn_transport_close_head", _wrap_pn_transport_close_head, -1);
16160
16408
  rb_define_module_function(mCproton, "pn_transport_tick", _wrap_pn_transport_tick, -1);
16161
16409
  rb_define_module_function(mCproton, "pn_transport_trace", _wrap_pn_transport_trace, -1);
16162
16410
  rb_define_module_function(mCproton, "pn_transport_get_max_frame", _wrap_pn_transport_get_max_frame, -1);
@@ -16167,6 +16415,7 @@ SWIGEXPORT void Init_cproton(void) {
16167
16415
  rb_define_module_function(mCproton, "pn_transport_get_remote_idle_timeout", _wrap_pn_transport_get_remote_idle_timeout, -1);
16168
16416
  rb_define_module_function(mCproton, "pn_transport_get_frames_output", _wrap_pn_transport_get_frames_output, -1);
16169
16417
  rb_define_module_function(mCproton, "pn_transport_get_frames_input", _wrap_pn_transport_get_frames_input, -1);
16418
+ rb_define_module_function(mCproton, "pn_transport_quiesced", _wrap_pn_transport_quiesced, -1);
16170
16419
  rb_define_module_function(mCproton, "pn_transport_free", _wrap_pn_transport_free, -1);
16171
16420
  rb_define_module_function(mCproton, "pn_session_state", _wrap_pn_session_state, -1);
16172
16421
  rb_define_module_function(mCproton, "pn_session_error", _wrap_pn_session_error, -1);
@@ -16348,7 +16597,6 @@ SWIGEXPORT void Init_cproton(void) {
16348
16597
  rb_define_module_function(mCproton, "pn_driver_connector", _wrap_pn_driver_connector, -1);
16349
16598
  rb_define_module_function(mCproton, "pn_driver_free", _wrap_pn_driver_free, -1);
16350
16599
  rb_define_module_function(mCproton, "pn_listener", _wrap_pn_listener, -1);
16351
- rb_define_module_function(mCproton, "pn_listener_fd", _wrap_pn_listener_fd, -1);
16352
16600
  rb_define_module_function(mCproton, "pn_listener_head", _wrap_pn_listener_head, -1);
16353
16601
  rb_define_module_function(mCproton, "pn_listener_next", _wrap_pn_listener_next, -1);
16354
16602
  rb_define_module_function(mCproton, "pn_listener_trace", _wrap_pn_listener_trace, -1);
@@ -16358,7 +16606,6 @@ SWIGEXPORT void Init_cproton(void) {
16358
16606
  rb_define_module_function(mCproton, "pn_listener_close", _wrap_pn_listener_close, -1);
16359
16607
  rb_define_module_function(mCproton, "pn_listener_free", _wrap_pn_listener_free, -1);
16360
16608
  rb_define_module_function(mCproton, "pn_connector", _wrap_pn_connector, -1);
16361
- rb_define_module_function(mCproton, "pn_connector_fd", _wrap_pn_connector_fd, -1);
16362
16609
  rb_define_module_function(mCproton, "pn_connector_head", _wrap_pn_connector_head, -1);
16363
16610
  rb_define_module_function(mCproton, "pn_connector_next", _wrap_pn_connector_next, -1);
16364
16611
  rb_define_module_function(mCproton, "pn_connector_trace", _wrap_pn_connector_trace, -1);
@@ -16375,6 +16622,9 @@ SWIGEXPORT void Init_cproton(void) {
16375
16622
  rb_define_module_function(mCproton, "pn_connector_free", _wrap_pn_connector_free, -1);
16376
16623
  rb_define_module_function(mCproton, "pn_connector_activate", _wrap_pn_connector_activate, -1);
16377
16624
  rb_define_module_function(mCproton, "pn_connector_activated", _wrap_pn_connector_activated, -1);
16625
+ rb_define_const(mCproton, "PROTON_DRIVER_H_EXTRAS", SWIG_From_int((int)(1)));
16626
+ rb_define_module_function(mCproton, "pn_listener_fd", _wrap_pn_listener_fd, -1);
16627
+ rb_define_module_function(mCproton, "pn_connector_fd", _wrap_pn_connector_fd, -1);
16378
16628
  rb_define_const(mCproton, "PROTON_MESSENGER_H", SWIG_From_int((int)(1)));
16379
16629
  rb_define_const(mCproton, "PN_ACCEPT_MODE_AUTO", SWIG_From_int((int)(PN_ACCEPT_MODE_AUTO)));
16380
16630
  rb_define_const(mCproton, "PN_ACCEPT_MODE_MANUAL", SWIG_From_int((int)(PN_ACCEPT_MODE_MANUAL)));
@@ -16469,6 +16719,7 @@ SWIGEXPORT void Init_cproton(void) {
16469
16719
  rb_define_const(mCproton, "PN_ARRAY", SWIG_From_int((int)(PN_ARRAY)));
16470
16720
  rb_define_const(mCproton, "PN_LIST", SWIG_From_int((int)(PN_LIST)));
16471
16721
  rb_define_const(mCproton, "PN_MAP", SWIG_From_int((int)(PN_MAP)));
16722
+ rb_define_module_function(mCproton, "pn_type_name", _wrap_pn_type_name, -1);
16472
16723
 
16473
16724
  SwigClassPn_atom_t.klass = rb_define_class_under(mCproton, "Pn_atom_t", rb_cObject);
16474
16725
  SWIG_TypeClientData(SWIGTYPE_p_pn_atom_t, (void *) &SwigClassPn_atom_t);