qpid_proton 0.14.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/cproton/cproton.c +820 -864
- data/lib/messenger/messenger.rb +1 -1
- data/lib/reactor/reactor.rb +2 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98f1b972dacfed18fba7181a88b4552c891b46a4
|
4
|
+
data.tar.gz: 7fd25bf8ec9093f1611f115545d375a702425226
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b9bb2b6b1c19020f61af94c7debbf113e7e257b6bbd9704196b158e5dd37c2fa28ae9aa32377ab1566d89be6f73ddb149752437daa6033dc25bdc17886a022d
|
7
|
+
data.tar.gz: 45fb0bb90335659c2044cd97d46ed77b14b51c892a0ac13e2df6a2741817853fa4962cbd98cd8a4cf95ddd7771231fad09cfe90a67504b803e77b5fdb41f057f
|
data/ext/cproton/cproton.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
-
* Version 3.0.
|
3
|
+
* Version 3.0.12
|
4
4
|
*
|
5
5
|
* This file is not intended to be easily readable and contains a number of
|
6
6
|
* coding conventions designed to improve portability and efficiency. Do not make
|
@@ -8,7 +8,11 @@
|
|
8
8
|
* interface file instead.
|
9
9
|
* ----------------------------------------------------------------------------- */
|
10
10
|
|
11
|
+
|
12
|
+
#ifndef SWIGRUBY
|
11
13
|
#define SWIGRUBY
|
14
|
+
#endif
|
15
|
+
|
12
16
|
|
13
17
|
/* -----------------------------------------------------------------------------
|
14
18
|
* This section contains generic SWIG labels for method/variable
|
@@ -77,9 +81,11 @@
|
|
77
81
|
#endif
|
78
82
|
|
79
83
|
/* exporting methods */
|
80
|
-
#if (__GNUC__
|
81
|
-
#
|
82
|
-
#
|
84
|
+
#if defined(__GNUC__)
|
85
|
+
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
86
|
+
# ifndef GCC_HASCLASSVISIBILITY
|
87
|
+
# define GCC_HASCLASSVISIBILITY
|
88
|
+
# endif
|
83
89
|
# endif
|
84
90
|
#endif
|
85
91
|
|
@@ -199,9 +205,11 @@
|
|
199
205
|
#endif
|
200
206
|
|
201
207
|
/* exporting methods */
|
202
|
-
#if (__GNUC__
|
203
|
-
#
|
204
|
-
#
|
208
|
+
#if defined(__GNUC__)
|
209
|
+
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
210
|
+
# ifndef GCC_HASCLASSVISIBILITY
|
211
|
+
# define GCC_HASCLASSVISIBILITY
|
212
|
+
# endif
|
205
213
|
# endif
|
206
214
|
#endif
|
207
215
|
|
@@ -751,16 +759,16 @@ SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
|
|
751
759
|
char d = *(c++);
|
752
760
|
unsigned char uu;
|
753
761
|
if ((d >= '0') && (d <= '9'))
|
754
|
-
uu = ((d - '0') << 4);
|
762
|
+
uu = (unsigned char)((d - '0') << 4);
|
755
763
|
else if ((d >= 'a') && (d <= 'f'))
|
756
|
-
uu = ((d - ('a'-10)) << 4);
|
764
|
+
uu = (unsigned char)((d - ('a'-10)) << 4);
|
757
765
|
else
|
758
766
|
return (char *) 0;
|
759
767
|
d = *(c++);
|
760
768
|
if ((d >= '0') && (d <= '9'))
|
761
|
-
uu |= (d - '0');
|
769
|
+
uu |= (unsigned char)(d - '0');
|
762
770
|
else if ((d >= 'a') && (d <= 'f'))
|
763
|
-
uu |= (d - ('a'-10));
|
771
|
+
uu |= (unsigned char)(d - ('a'-10));
|
764
772
|
else
|
765
773
|
return (char *) 0;
|
766
774
|
*u = uu;
|
@@ -1342,7 +1350,7 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1342
1350
|
#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own)
|
1343
1351
|
#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags)
|
1344
1352
|
#define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own)
|
1345
|
-
#define swig_owntype
|
1353
|
+
#define swig_owntype swig_ruby_owntype
|
1346
1354
|
|
1347
1355
|
/* for raw packed data */
|
1348
1356
|
#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
|
@@ -1566,22 +1574,24 @@ SWIG_Ruby_MangleStr(VALUE obj)
|
|
1566
1574
|
}
|
1567
1575
|
|
1568
1576
|
/* Acquire a pointer value */
|
1569
|
-
typedef
|
1577
|
+
typedef struct {
|
1578
|
+
void (*datafree)(void *);
|
1579
|
+
int own;
|
1580
|
+
} swig_ruby_owntype;
|
1570
1581
|
|
1571
|
-
SWIGRUNTIME
|
1572
|
-
SWIG_Ruby_AcquirePtr(VALUE obj,
|
1582
|
+
SWIGRUNTIME swig_ruby_owntype
|
1583
|
+
SWIG_Ruby_AcquirePtr(VALUE obj, swig_ruby_owntype own) {
|
1584
|
+
swig_ruby_owntype oldown = {0, 0};
|
1573
1585
|
if (obj) {
|
1574
|
-
|
1575
|
-
RDATA(obj)->dfree = own;
|
1576
|
-
return oldown;
|
1577
|
-
} else {
|
1578
|
-
return 0;
|
1586
|
+
oldown.datafree = RDATA(obj)->dfree;
|
1587
|
+
RDATA(obj)->dfree = own.datafree;
|
1579
1588
|
}
|
1589
|
+
return oldown;
|
1580
1590
|
}
|
1581
1591
|
|
1582
1592
|
/* Convert a pointer value */
|
1583
1593
|
SWIGRUNTIME int
|
1584
|
-
SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
1594
|
+
SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, swig_ruby_owntype *own)
|
1585
1595
|
{
|
1586
1596
|
char *c;
|
1587
1597
|
swig_cast_info *tc;
|
@@ -1589,7 +1599,8 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1589
1599
|
|
1590
1600
|
/* Grab the pointer */
|
1591
1601
|
if (NIL_P(obj)) {
|
1592
|
-
|
1602
|
+
if (ptr)
|
1603
|
+
*ptr = 0;
|
1593
1604
|
return SWIG_OK;
|
1594
1605
|
} else {
|
1595
1606
|
if (TYPE(obj) != T_DATA) {
|
@@ -1598,7 +1609,10 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1598
1609
|
Data_Get_Struct(obj, void, vptr);
|
1599
1610
|
}
|
1600
1611
|
|
1601
|
-
if (own)
|
1612
|
+
if (own) {
|
1613
|
+
own->datafree = RDATA(obj)->dfree;
|
1614
|
+
own->own = 0;
|
1615
|
+
}
|
1602
1616
|
|
1603
1617
|
/* Check to see if the input object is giving up ownership
|
1604
1618
|
of the underlying C struct or C++ object. If so then we
|
@@ -1633,8 +1647,6 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1633
1647
|
/* The object has already been deleted */
|
1634
1648
|
return SWIG_ObjectPreviouslyDeletedError;
|
1635
1649
|
}
|
1636
|
-
*ptr = vptr;
|
1637
|
-
return SWIG_OK;
|
1638
1650
|
}
|
1639
1651
|
}
|
1640
1652
|
if ((c = SWIG_MangleStr(obj)) == NULL) {
|
@@ -1644,12 +1656,23 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1644
1656
|
if (!tc) {
|
1645
1657
|
return SWIG_ERROR;
|
1646
1658
|
} else {
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1659
|
+
if (ptr) {
|
1660
|
+
if (tc->type == ty) {
|
1661
|
+
*ptr = vptr;
|
1662
|
+
} else {
|
1663
|
+
int newmemory = 0;
|
1664
|
+
*ptr = SWIG_TypeCast(tc, vptr, &newmemory);
|
1665
|
+
if (newmemory == SWIG_CAST_NEW_MEMORY) {
|
1666
|
+
assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
|
1667
|
+
if (own)
|
1668
|
+
own->own = own->own | SWIG_CAST_NEW_MEMORY;
|
1669
|
+
}
|
1670
|
+
}
|
1671
|
+
}
|
1650
1672
|
}
|
1651
1673
|
} else {
|
1652
|
-
|
1674
|
+
if (ptr)
|
1675
|
+
*ptr = vptr;
|
1653
1676
|
}
|
1654
1677
|
|
1655
1678
|
return SWIG_OK;
|
@@ -1805,12 +1828,12 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1805
1828
|
#define SWIGTYPE_p_pn_distribution_mode_t swig_types[25]
|
1806
1829
|
#define SWIGTYPE_p_pn_durability_t swig_types[26]
|
1807
1830
|
#define SWIGTYPE_p_pn_error_t swig_types[27]
|
1808
|
-
#define
|
1809
|
-
#define
|
1810
|
-
#define
|
1811
|
-
#define
|
1812
|
-
#define
|
1813
|
-
#define
|
1831
|
+
#define SWIGTYPE_p_pn_event_batch_t swig_types[28]
|
1832
|
+
#define SWIGTYPE_p_pn_event_t swig_types[29]
|
1833
|
+
#define SWIGTYPE_p_pn_event_type_t swig_types[30]
|
1834
|
+
#define SWIGTYPE_p_pn_expiry_policy_t swig_types[31]
|
1835
|
+
#define SWIGTYPE_p_pn_handler_t swig_types[32]
|
1836
|
+
#define SWIGTYPE_p_pn_hash_t swig_types[33]
|
1814
1837
|
#define SWIGTYPE_p_pn_iterator_t swig_types[34]
|
1815
1838
|
#define SWIGTYPE_p_pn_link_t swig_types[35]
|
1816
1839
|
#define SWIGTYPE_p_pn_list_t swig_types[36]
|
@@ -1820,10 +1843,10 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1820
1843
|
#define SWIGTYPE_p_pn_rcv_settle_mode_t swig_types[40]
|
1821
1844
|
#define SWIGTYPE_p_pn_reactor_t swig_types[41]
|
1822
1845
|
#define SWIGTYPE_p_pn_record_t swig_types[42]
|
1823
|
-
#define
|
1824
|
-
#define
|
1825
|
-
#define
|
1826
|
-
#define
|
1846
|
+
#define SWIGTYPE_p_pn_rwbytes_t swig_types[43]
|
1847
|
+
#define SWIGTYPE_p_pn_sasl_outcome_t swig_types[44]
|
1848
|
+
#define SWIGTYPE_p_pn_sasl_t swig_types[45]
|
1849
|
+
#define SWIGTYPE_p_pn_selectable_t swig_types[46]
|
1827
1850
|
#define SWIGTYPE_p_pn_session_t swig_types[47]
|
1828
1851
|
#define SWIGTYPE_p_pn_snd_settle_mode_t swig_types[48]
|
1829
1852
|
#define SWIGTYPE_p_pn_ssl_cert_subject_subfield swig_types[49]
|
@@ -1868,7 +1891,7 @@ static VALUE mCproton;
|
|
1868
1891
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
1869
1892
|
|
1870
1893
|
|
1871
|
-
#define SWIGVERSION
|
1894
|
+
#define SWIGVERSION 0x030012
|
1872
1895
|
#define SWIG_VERSION SWIGVERSION
|
1873
1896
|
|
1874
1897
|
|
@@ -1900,7 +1923,7 @@ SWIG_ruby_failed(void)
|
|
1900
1923
|
}
|
1901
1924
|
|
1902
1925
|
|
1903
|
-
/*@SWIG:/usr/share/swig/3.0.
|
1926
|
+
/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
1904
1927
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
1905
1928
|
{
|
1906
1929
|
VALUE obj = args[0];
|
@@ -1929,12 +1952,69 @@ SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
|
1929
1952
|
}
|
1930
1953
|
|
1931
1954
|
|
1955
|
+
#include <limits.h>
|
1956
|
+
#if !defined(SWIG_NO_LLONG_MAX)
|
1957
|
+
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
|
1958
|
+
# define LLONG_MAX __LONG_LONG_MAX__
|
1959
|
+
# define LLONG_MIN (-LLONG_MAX - 1LL)
|
1960
|
+
# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
|
1961
|
+
# endif
|
1962
|
+
#endif
|
1963
|
+
|
1964
|
+
|
1965
|
+
#if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
|
1966
|
+
# define SWIG_LONG_LONG_AVAILABLE
|
1967
|
+
#endif
|
1968
|
+
|
1969
|
+
|
1970
|
+
#ifdef SWIG_LONG_LONG_AVAILABLE
|
1971
|
+
/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
1972
|
+
SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
|
1973
|
+
{
|
1974
|
+
VALUE obj = args[0];
|
1975
|
+
VALUE type = TYPE(obj);
|
1976
|
+
long long *res = (long long *)(args[1]);
|
1977
|
+
*res = type == T_FIXNUM ? NUM2ULL(obj) : rb_big2ull(obj);
|
1978
|
+
return obj;
|
1979
|
+
}
|
1980
|
+
/*@SWIG@*/
|
1981
|
+
|
1982
|
+
SWIGINTERN int
|
1983
|
+
SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val)
|
1984
|
+
{
|
1985
|
+
VALUE type = TYPE(obj);
|
1986
|
+
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
1987
|
+
unsigned long long v;
|
1988
|
+
VALUE a[2];
|
1989
|
+
a[0] = obj;
|
1990
|
+
a[1] = (VALUE)(&v);
|
1991
|
+
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
|
1992
|
+
if (val) *val = v;
|
1993
|
+
return SWIG_OK;
|
1994
|
+
}
|
1995
|
+
}
|
1996
|
+
return SWIG_TypeError;
|
1997
|
+
}
|
1998
|
+
#endif
|
1999
|
+
|
2000
|
+
|
1932
2001
|
SWIGINTERNINLINE int
|
1933
2002
|
SWIG_AsVal_size_t (VALUE obj, size_t *val)
|
1934
2003
|
{
|
1935
|
-
|
1936
|
-
|
1937
|
-
if (
|
2004
|
+
int res = SWIG_TypeError;
|
2005
|
+
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2006
|
+
if (sizeof(size_t) <= sizeof(unsigned long)) {
|
2007
|
+
#endif
|
2008
|
+
unsigned long v;
|
2009
|
+
res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
|
2010
|
+
if (SWIG_IsOK(res) && val) *val = (size_t)(v);
|
2011
|
+
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2012
|
+
} else if (sizeof(size_t) <= sizeof(unsigned long long)) {
|
2013
|
+
unsigned long long v;
|
2014
|
+
res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0);
|
2015
|
+
if (SWIG_IsOK(res) && val) *val = (size_t)(v);
|
2016
|
+
}
|
2017
|
+
#endif
|
1938
2018
|
return res;
|
1939
2019
|
}
|
1940
2020
|
|
@@ -1961,7 +2041,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
1961
2041
|
if (cptr) {
|
1962
2042
|
if (alloc) {
|
1963
2043
|
if (*alloc == SWIG_NEWOBJ) {
|
1964
|
-
*cptr = (char *)memcpy(
|
2044
|
+
*cptr = (char *)memcpy(malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
|
1965
2045
|
} else {
|
1966
2046
|
*cptr = cstr;
|
1967
2047
|
*alloc = SWIG_OLDOBJ;
|
@@ -2006,16 +2086,6 @@ SWIG_FromCharPtrAndSize(const char* carray, size_t size)
|
|
2006
2086
|
}
|
2007
2087
|
|
2008
2088
|
|
2009
|
-
#include <limits.h>
|
2010
|
-
#if !defined(SWIG_NO_LLONG_MAX)
|
2011
|
-
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
|
2012
|
-
# define LLONG_MAX __LONG_LONG_MAX__
|
2013
|
-
# define LLONG_MIN (-LLONG_MAX - 1LL)
|
2014
|
-
# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
|
2015
|
-
# endif
|
2016
|
-
#endif
|
2017
|
-
|
2018
|
-
|
2019
2089
|
#define SWIG_From_long LONG2NUM
|
2020
2090
|
|
2021
2091
|
|
@@ -2227,7 +2297,7 @@ SWIG_From_bool (bool value)
|
|
2227
2297
|
|
2228
2298
|
|
2229
2299
|
|
2230
|
-
/*@SWIG:/usr/share/swig/3.0.
|
2300
|
+
/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2231
2301
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
2232
2302
|
{
|
2233
2303
|
VALUE obj = args[0];
|
@@ -2431,17 +2501,28 @@ SWIG_From_unsigned_SS_int (unsigned int value)
|
|
2431
2501
|
}
|
2432
2502
|
|
2433
2503
|
|
2504
|
+
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2434
2505
|
SWIGINTERNINLINE VALUE
|
2435
|
-
|
2506
|
+
SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
|
2436
2507
|
{
|
2437
|
-
return
|
2508
|
+
return ULL2NUM(value);
|
2438
2509
|
}
|
2510
|
+
#endif
|
2439
2511
|
|
2440
2512
|
|
2441
2513
|
SWIGINTERNINLINE VALUE
|
2442
2514
|
SWIG_From_size_t (size_t value)
|
2443
2515
|
{
|
2444
|
-
|
2516
|
+
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2517
|
+
if (sizeof(size_t) <= sizeof(unsigned long)) {
|
2518
|
+
#endif
|
2519
|
+
return SWIG_From_unsigned_SS_long ((unsigned long)(value));
|
2520
|
+
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2521
|
+
} else {
|
2522
|
+
/* assume sizeof(size_t) <= sizeof(unsigned long long) */
|
2523
|
+
return SWIG_From_unsigned_SS_long_SS_long ((unsigned long long)(value));
|
2524
|
+
}
|
2525
|
+
#endif
|
2445
2526
|
}
|
2446
2527
|
|
2447
2528
|
|
@@ -2453,8 +2534,25 @@ SWIG_From_size_t (size_t value)
|
|
2453
2534
|
|
2454
2535
|
/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */
|
2455
2536
|
#ifndef SWIG_isfinite
|
2537
|
+
/* isfinite() is a macro for C99 */
|
2456
2538
|
# if defined(isfinite)
|
2457
2539
|
# define SWIG_isfinite(X) (isfinite(X))
|
2540
|
+
# elif defined __cplusplus && __cplusplus >= 201103L
|
2541
|
+
/* Use a template so that this works whether isfinite() is std::isfinite() or
|
2542
|
+
* in the global namespace. The reality seems to vary between compiler
|
2543
|
+
* versions.
|
2544
|
+
*
|
2545
|
+
* Make sure namespace std exists to avoid compiler warnings.
|
2546
|
+
*
|
2547
|
+
* extern "C++" is required as this fragment can end up inside an extern "C" { } block
|
2548
|
+
*/
|
2549
|
+
namespace std { }
|
2550
|
+
extern "C++" template<typename T>
|
2551
|
+
inline int SWIG_isfinite_func(T x) {
|
2552
|
+
using namespace std;
|
2553
|
+
return isfinite(x);
|
2554
|
+
}
|
2555
|
+
# define SWIG_isfinite(X) (SWIG_isfinite_func(X))
|
2458
2556
|
# elif defined(_MSC_VER)
|
2459
2557
|
# define SWIG_isfinite(X) (_finite(X))
|
2460
2558
|
# elif defined(__sun) && defined(__SVR4)
|
@@ -2472,7 +2570,7 @@ SWIG_From_size_t (size_t value)
|
|
2472
2570
|
#endif
|
2473
2571
|
|
2474
2572
|
|
2475
|
-
/*@SWIG:/usr/share/swig/3.0.
|
2573
|
+
/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2476
2574
|
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
|
2477
2575
|
{
|
2478
2576
|
VALUE obj = args[0];
|
@@ -2537,42 +2635,6 @@ SWIG_AsVal_bool (VALUE obj, bool *val)
|
|
2537
2635
|
}
|
2538
2636
|
|
2539
2637
|
|
2540
|
-
SWIGINTERNINLINE VALUE
|
2541
|
-
SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
|
2542
|
-
{
|
2543
|
-
return ULL2NUM(value);
|
2544
|
-
}
|
2545
|
-
|
2546
|
-
|
2547
|
-
/*@SWIG:/usr/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2548
|
-
SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
|
2549
|
-
{
|
2550
|
-
VALUE obj = args[0];
|
2551
|
-
VALUE type = TYPE(obj);
|
2552
|
-
long long *res = (long long *)(args[1]);
|
2553
|
-
*res = type == T_FIXNUM ? NUM2ULL(obj) : rb_big2ull(obj);
|
2554
|
-
return obj;
|
2555
|
-
}
|
2556
|
-
/*@SWIG@*/
|
2557
|
-
|
2558
|
-
SWIGINTERN int
|
2559
|
-
SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val)
|
2560
|
-
{
|
2561
|
-
VALUE type = TYPE(obj);
|
2562
|
-
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
2563
|
-
unsigned long long v;
|
2564
|
-
VALUE a[2];
|
2565
|
-
a[0] = obj;
|
2566
|
-
a[1] = (VALUE)(&v);
|
2567
|
-
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
|
2568
|
-
if (val) *val = v;
|
2569
|
-
return SWIG_OK;
|
2570
|
-
}
|
2571
|
-
}
|
2572
|
-
return SWIG_TypeError;
|
2573
|
-
}
|
2574
|
-
|
2575
|
-
|
2576
2638
|
SWIGINTERNINLINE VALUE
|
2577
2639
|
SWIG_From_unsigned_SS_short (unsigned short value)
|
2578
2640
|
{
|
@@ -2596,7 +2658,8 @@ SWIG_AsVal_unsigned_SS_short (VALUE obj, unsigned short *val)
|
|
2596
2658
|
}
|
2597
2659
|
|
2598
2660
|
|
2599
|
-
|
2661
|
+
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2662
|
+
/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2600
2663
|
SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE *args)
|
2601
2664
|
{
|
2602
2665
|
VALUE obj = args[0];
|
@@ -2623,6 +2686,16 @@ SWIG_AsVal_long_SS_long (VALUE obj, long long *val)
|
|
2623
2686
|
}
|
2624
2687
|
return SWIG_TypeError;
|
2625
2688
|
}
|
2689
|
+
#endif
|
2690
|
+
|
2691
|
+
|
2692
|
+
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2693
|
+
SWIGINTERNINLINE VALUE
|
2694
|
+
SWIG_From_long_SS_long (long long value)
|
2695
|
+
{
|
2696
|
+
return LL2NUM(value);
|
2697
|
+
}
|
2698
|
+
#endif
|
2626
2699
|
|
2627
2700
|
|
2628
2701
|
/* assume the binding does the incref in the wrapper */
|
@@ -2743,7 +2816,7 @@ _wrap_pn_message_encode(int argc, VALUE *argv, VALUE self) {
|
|
2743
2816
|
if (!SWIG_IsOK(res2)) {
|
2744
2817
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","pn_message_encode", 2, argv[1] ));
|
2745
2818
|
}
|
2746
|
-
buff2= (char *)
|
2819
|
+
buff2= (char *)calloc(n2+1, sizeof(char));
|
2747
2820
|
arg2 = (char *)(buff2);
|
2748
2821
|
size2 = (size_t)(n2);
|
2749
2822
|
arg3 = &size2;
|
@@ -2822,7 +2895,7 @@ _wrap_pn_link_recv(int argc, VALUE *argv, VALUE self) {
|
|
2822
2895
|
if (!SWIG_IsOK(res2)) {
|
2823
2896
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","wrap_pn_link_recv", 2, argv[1] ));
|
2824
2897
|
}
|
2825
|
-
buff2= (char *)
|
2898
|
+
buff2= (char *)calloc(n2+1, sizeof(char));
|
2826
2899
|
arg2 = (char *)(buff2);
|
2827
2900
|
size2 = (size_t)(n2);
|
2828
2901
|
arg3 = &size2;
|
@@ -2901,7 +2974,7 @@ _wrap_pn_transport_output(int argc, VALUE *argv, VALUE self) {
|
|
2901
2974
|
if (!SWIG_IsOK(res2)) {
|
2902
2975
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","wrap_pn_transport_output", 2, argv[1] ));
|
2903
2976
|
}
|
2904
|
-
buff2= (char *)
|
2977
|
+
buff2= (char *)calloc(n2+1, sizeof(char));
|
2905
2978
|
arg2 = (char *)(buff2);
|
2906
2979
|
size2 = (size_t)(n2);
|
2907
2980
|
arg3 = &size2;
|
@@ -2942,7 +3015,7 @@ _wrap_pn_transport_peek(int argc, VALUE *argv, VALUE self) {
|
|
2942
3015
|
if (!SWIG_IsOK(res2)) {
|
2943
3016
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","wrap_pn_transport_peek", 2, argv[1] ));
|
2944
3017
|
}
|
2945
|
-
buff2= (char *)
|
3018
|
+
buff2= (char *)calloc(n2+1, sizeof(char));
|
2946
3019
|
arg2 = (char *)(buff2);
|
2947
3020
|
size2 = (size_t)(n2);
|
2948
3021
|
arg3 = &size2;
|
@@ -3051,7 +3124,7 @@ _wrap_pn_ssl_get_cipher_name(int argc, VALUE *argv, VALUE self) {
|
|
3051
3124
|
if (!SWIG_IsOK(res2)) {
|
3052
3125
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t MAX_OUTPUT_SIZE)","pn_ssl_get_cipher_name", 2, argv[1] ));
|
3053
3126
|
}
|
3054
|
-
buff2= (char *)
|
3127
|
+
buff2= (char *)calloc(size2+1, sizeof(char));
|
3055
3128
|
arg3 = (size_t)(size2);
|
3056
3129
|
arg2 = (char *)(buff2);
|
3057
3130
|
result = (bool)pn_ssl_get_cipher_name(arg1,arg2,arg3);
|
@@ -3090,7 +3163,7 @@ _wrap_pn_ssl_get_protocol_name(int argc, VALUE *argv, VALUE self) {
|
|
3090
3163
|
if (!SWIG_IsOK(res2)) {
|
3091
3164
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t MAX_OUTPUT_SIZE)","pn_ssl_get_protocol_name", 2, argv[1] ));
|
3092
3165
|
}
|
3093
|
-
buff2= (char *)
|
3166
|
+
buff2= (char *)calloc(size2+1, sizeof(char));
|
3094
3167
|
arg3 = (size_t)(size2);
|
3095
3168
|
arg2 = (char *)(buff2);
|
3096
3169
|
result = (bool)pn_ssl_get_protocol_name(arg1,arg2,arg3);
|
@@ -3505,7 +3578,7 @@ _wrap_pn_ssl_get_peer_hostname(int argc, VALUE *argv, VALUE self) {
|
|
3505
3578
|
if (!SWIG_IsOK(res2)) {
|
3506
3579
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","pn_ssl_get_peer_hostname", 2, argv[1] ));
|
3507
3580
|
}
|
3508
|
-
buff2= (char *)
|
3581
|
+
buff2= (char *)calloc(n2+1, sizeof(char));
|
3509
3582
|
arg2 = (char *)(buff2);
|
3510
3583
|
size2 = (size_t)(n2);
|
3511
3584
|
arg3 = &size2;
|
@@ -3635,22 +3708,20 @@ fail:
|
|
3635
3708
|
}
|
3636
3709
|
|
3637
3710
|
|
3638
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
3639
3711
|
SWIGINTERN VALUE
|
3640
|
-
|
3712
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
3713
|
+
_wrap_Pni_rbhandler_t_allocate(VALUE self)
|
3641
3714
|
#else
|
3642
|
-
|
3643
|
-
_wrap_Pni_rbhandler_t_allocate(int argc, VALUE *argv, VALUE self) {
|
3715
|
+
_wrap_Pni_rbhandler_t_allocate(int argc, VALUE *argv, VALUE self)
|
3644
3716
|
#endif
|
3645
|
-
|
3646
|
-
|
3647
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Pni_rbhandler_t);
|
3717
|
+
{
|
3718
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Pni_rbhandler_t);
|
3648
3719
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
3649
|
-
|
3720
|
+
rb_obj_call_init(vresult, argc, argv);
|
3650
3721
|
#endif
|
3651
|
-
|
3652
|
-
|
3653
|
-
|
3722
|
+
return vresult;
|
3723
|
+
}
|
3724
|
+
|
3654
3725
|
|
3655
3726
|
SWIGINTERN VALUE
|
3656
3727
|
_wrap_new_Pni_rbhandler_t(int argc, VALUE *argv, VALUE self) {
|
@@ -3668,7 +3739,8 @@ fail:
|
|
3668
3739
|
|
3669
3740
|
|
3670
3741
|
SWIGINTERN void
|
3671
|
-
free_Pni_rbhandler_t(
|
3742
|
+
free_Pni_rbhandler_t(void *self) {
|
3743
|
+
Pni_rbhandler_t *arg1 = (Pni_rbhandler_t *)self;
|
3672
3744
|
free((char *) arg1);
|
3673
3745
|
}
|
3674
3746
|
|
@@ -3773,23 +3845,53 @@ fail:
|
|
3773
3845
|
|
3774
3846
|
|
3775
3847
|
SWIGINTERN VALUE
|
3776
|
-
|
3777
|
-
|
3848
|
+
_wrap_pn_bytes(int argc, VALUE *argv, VALUE self) {
|
3849
|
+
size_t arg1 ;
|
3850
|
+
char *arg2 = (char *) 0 ;
|
3851
|
+
size_t val1 ;
|
3852
|
+
int ecode1 = 0 ;
|
3853
|
+
int res2 ;
|
3854
|
+
char *buf2 = 0 ;
|
3855
|
+
int alloc2 = 0 ;
|
3856
|
+
pn_bytes_t result;
|
3778
3857
|
VALUE vresult = Qnil;
|
3779
3858
|
|
3780
|
-
if ((argc <
|
3781
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
3859
|
+
if ((argc < 2) || (argc > 2)) {
|
3860
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3782
3861
|
}
|
3783
|
-
|
3784
|
-
|
3862
|
+
ecode1 = SWIG_AsVal_size_t(argv[0], &val1);
|
3863
|
+
if (!SWIG_IsOK(ecode1)) {
|
3864
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","pn_bytes", 1, argv[0] ));
|
3865
|
+
}
|
3866
|
+
arg1 = (size_t)(val1);
|
3867
|
+
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
3868
|
+
if (!SWIG_IsOK(res2)) {
|
3869
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_bytes", 2, argv[1] ));
|
3870
|
+
}
|
3871
|
+
arg2 = (char *)(buf2);
|
3872
|
+
result = pn_bytes(arg1,(char const *)arg2);
|
3873
|
+
{
|
3874
|
+
vresult = rb_str_new((&result)->start, (&result)->size);
|
3875
|
+
}
|
3876
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
3785
3877
|
return vresult;
|
3786
3878
|
fail:
|
3879
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
3787
3880
|
return Qnil;
|
3788
3881
|
}
|
3789
3882
|
|
3790
3883
|
|
3791
3884
|
SWIGINTERN VALUE
|
3792
|
-
|
3885
|
+
_wrap_pn_bytes_null_get(VALUE self) {
|
3886
|
+
VALUE _val;
|
3887
|
+
|
3888
|
+
_val = SWIG_NewPointerObj(SWIG_as_voidptr(&pn_bytes_null), SWIGTYPE_p_pn_bytes_t, 0 );
|
3889
|
+
return _val;
|
3890
|
+
}
|
3891
|
+
|
3892
|
+
|
3893
|
+
SWIGINTERN VALUE
|
3894
|
+
_wrap_pn_rwbytes(int argc, VALUE *argv, VALUE self) {
|
3793
3895
|
size_t arg1 ;
|
3794
3896
|
char *arg2 = (char *) 0 ;
|
3795
3897
|
size_t val1 ;
|
@@ -3797,7 +3899,7 @@ _wrap_pn_bytes(int argc, VALUE *argv, VALUE self) {
|
|
3797
3899
|
int res2 ;
|
3798
3900
|
char *buf2 = 0 ;
|
3799
3901
|
int alloc2 = 0 ;
|
3800
|
-
|
3902
|
+
pn_rwbytes_t result;
|
3801
3903
|
VALUE vresult = Qnil;
|
3802
3904
|
|
3803
3905
|
if ((argc < 2) || (argc > 2)) {
|
@@ -3805,18 +3907,16 @@ _wrap_pn_bytes(int argc, VALUE *argv, VALUE self) {
|
|
3805
3907
|
}
|
3806
3908
|
ecode1 = SWIG_AsVal_size_t(argv[0], &val1);
|
3807
3909
|
if (!SWIG_IsOK(ecode1)) {
|
3808
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","
|
3910
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","pn_rwbytes", 1, argv[0] ));
|
3809
3911
|
}
|
3810
3912
|
arg1 = (size_t)(val1);
|
3811
3913
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
3812
3914
|
if (!SWIG_IsOK(res2)) {
|
3813
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char
|
3915
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_rwbytes", 2, argv[1] ));
|
3814
3916
|
}
|
3815
3917
|
arg2 = (char *)(buf2);
|
3816
|
-
result =
|
3817
|
-
|
3818
|
-
vresult = rb_str_new((&result)->start, (&result)->size);
|
3819
|
-
}
|
3918
|
+
result = pn_rwbytes(arg1,arg2);
|
3919
|
+
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 );
|
3820
3920
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
3821
3921
|
return vresult;
|
3822
3922
|
fail:
|
@@ -3825,6 +3925,15 @@ fail:
|
|
3825
3925
|
}
|
3826
3926
|
|
3827
3927
|
|
3928
|
+
SWIGINTERN VALUE
|
3929
|
+
_wrap_pn_rwbytes_null_get(VALUE self) {
|
3930
|
+
VALUE _val;
|
3931
|
+
|
3932
|
+
_val = SWIG_NewPointerObj(SWIG_as_voidptr(&pn_rwbytes_null), SWIGTYPE_p_pn_bytes_t, 0 );
|
3933
|
+
return _val;
|
3934
|
+
}
|
3935
|
+
|
3936
|
+
|
3828
3937
|
SWIGINTERN VALUE
|
3829
3938
|
_wrap_PN_OBJECT_get(VALUE self) {
|
3830
3939
|
VALUE _val;
|
@@ -3869,7 +3978,7 @@ _wrap_pn_class_id(int argc, VALUE *argv, VALUE self) {
|
|
3869
3978
|
}
|
3870
3979
|
arg1 = (pn_class_t *)(argp1);
|
3871
3980
|
result = pn_class_id((struct pn_class_t const *)arg1);
|
3872
|
-
vresult = SWIG_NewPointerObj((pn_cid_t *)memcpy((pn_cid_t *)
|
3981
|
+
vresult = SWIG_NewPointerObj((pn_cid_t *)memcpy((pn_cid_t *)calloc(1,sizeof(pn_cid_t)),&result,sizeof(pn_cid_t)), SWIGTYPE_p_pn_cid_t, SWIG_POINTER_OWN | 0 );
|
3873
3982
|
return vresult;
|
3874
3983
|
fail:
|
3875
3984
|
return Qnil;
|
@@ -4138,7 +4247,7 @@ _wrap_pn_class_compare(int argc, VALUE *argv, VALUE self) {
|
|
4138
4247
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_class_compare", 3, argv[2] ));
|
4139
4248
|
}
|
4140
4249
|
result = pn_class_compare((struct pn_class_t const *)arg1,arg2,arg3);
|
4141
|
-
vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)
|
4250
|
+
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 );
|
4142
4251
|
return vresult;
|
4143
4252
|
fail:
|
4144
4253
|
return Qnil;
|
@@ -4220,21 +4329,31 @@ fail:
|
|
4220
4329
|
|
4221
4330
|
|
4222
4331
|
SWIGINTERN VALUE
|
4223
|
-
|
4224
|
-
|
4225
|
-
|
4226
|
-
|
4332
|
+
_wrap_pn_void_new(int argc, VALUE *argv, VALUE self) {
|
4333
|
+
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
4334
|
+
size_t arg2 ;
|
4335
|
+
void *argp1 = 0 ;
|
4336
|
+
int res1 = 0 ;
|
4337
|
+
size_t val2 ;
|
4338
|
+
int ecode2 = 0 ;
|
4339
|
+
void *result = 0 ;
|
4227
4340
|
VALUE vresult = Qnil;
|
4228
4341
|
|
4229
|
-
if ((argc <
|
4230
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
4342
|
+
if ((argc < 2) || (argc > 2)) {
|
4343
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4231
4344
|
}
|
4232
|
-
res1 = SWIG_ConvertPtr(argv[0],
|
4345
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
4233
4346
|
if (!SWIG_IsOK(res1)) {
|
4234
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "
|
4347
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_void_new", 1, argv[0] ));
|
4235
4348
|
}
|
4236
|
-
|
4237
|
-
|
4349
|
+
arg1 = (pn_class_t *)(argp1);
|
4350
|
+
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
4351
|
+
if (!SWIG_IsOK(ecode2)) {
|
4352
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_void_new", 2, argv[1] ));
|
4353
|
+
}
|
4354
|
+
arg2 = (size_t)(val2);
|
4355
|
+
result = (void *)pn_void_new((struct pn_class_t const *)arg1,arg2);
|
4356
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
4238
4357
|
return vresult;
|
4239
4358
|
fail:
|
4240
4359
|
return Qnil;
|
@@ -4242,66 +4361,148 @@ fail:
|
|
4242
4361
|
|
4243
4362
|
|
4244
4363
|
SWIGINTERN VALUE
|
4245
|
-
|
4364
|
+
_wrap_pn_void_incref(int argc, VALUE *argv, VALUE self) {
|
4246
4365
|
void *arg1 = (void *) 0 ;
|
4247
|
-
void *arg2 = (void *) 0 ;
|
4248
4366
|
int res1 ;
|
4249
|
-
int res2 ;
|
4250
|
-
intptr_t result;
|
4251
|
-
VALUE vresult = Qnil;
|
4252
4367
|
|
4253
|
-
if ((argc <
|
4254
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
4368
|
+
if ((argc < 1) || (argc > 1)) {
|
4369
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4255
4370
|
}
|
4256
4371
|
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
4257
4372
|
if (!SWIG_IsOK(res1)) {
|
4258
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","
|
4259
|
-
}
|
4260
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
4261
|
-
if (!SWIG_IsOK(res2)) {
|
4262
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_void_compare", 2, argv[1] ));
|
4373
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_incref", 1, argv[0] ));
|
4263
4374
|
}
|
4264
|
-
|
4265
|
-
|
4266
|
-
return vresult;
|
4375
|
+
pn_void_incref(arg1);
|
4376
|
+
return Qnil;
|
4267
4377
|
fail:
|
4268
4378
|
return Qnil;
|
4269
4379
|
}
|
4270
4380
|
|
4271
4381
|
|
4272
4382
|
SWIGINTERN VALUE
|
4273
|
-
|
4383
|
+
_wrap_pn_void_decref(int argc, VALUE *argv, VALUE self) {
|
4274
4384
|
void *arg1 = (void *) 0 ;
|
4275
|
-
pn_string_t *arg2 = (pn_string_t *) 0 ;
|
4276
4385
|
int res1 ;
|
4277
|
-
void *argp2 = 0 ;
|
4278
|
-
int res2 = 0 ;
|
4279
|
-
int result;
|
4280
|
-
VALUE vresult = Qnil;
|
4281
4386
|
|
4282
|
-
if ((argc <
|
4283
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
4387
|
+
if ((argc < 1) || (argc > 1)) {
|
4388
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4284
4389
|
}
|
4285
4390
|
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
4286
4391
|
if (!SWIG_IsOK(res1)) {
|
4287
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","
|
4288
|
-
}
|
4289
|
-
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
4290
|
-
if (!SWIG_IsOK(res2)) {
|
4291
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_string_t *","pn_void_inspect", 2, argv[1] ));
|
4392
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_decref", 1, argv[0] ));
|
4292
4393
|
}
|
4293
|
-
|
4294
|
-
|
4295
|
-
vresult = SWIG_From_int((int)(result));
|
4296
|
-
return vresult;
|
4394
|
+
pn_void_decref(arg1);
|
4395
|
+
return Qnil;
|
4297
4396
|
fail:
|
4298
4397
|
return Qnil;
|
4299
4398
|
}
|
4300
4399
|
|
4301
4400
|
|
4302
4401
|
SWIGINTERN VALUE
|
4303
|
-
|
4304
|
-
|
4402
|
+
_wrap_pn_void_refcount(int argc, VALUE *argv, VALUE self) {
|
4403
|
+
void *arg1 = (void *) 0 ;
|
4404
|
+
int res1 ;
|
4405
|
+
int result;
|
4406
|
+
VALUE vresult = Qnil;
|
4407
|
+
|
4408
|
+
if ((argc < 1) || (argc > 1)) {
|
4409
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4410
|
+
}
|
4411
|
+
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
4412
|
+
if (!SWIG_IsOK(res1)) {
|
4413
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_refcount", 1, argv[0] ));
|
4414
|
+
}
|
4415
|
+
result = (int)pn_void_refcount(arg1);
|
4416
|
+
vresult = SWIG_From_int((int)(result));
|
4417
|
+
return vresult;
|
4418
|
+
fail:
|
4419
|
+
return Qnil;
|
4420
|
+
}
|
4421
|
+
|
4422
|
+
|
4423
|
+
SWIGINTERN VALUE
|
4424
|
+
_wrap_pn_void_hashcode(int argc, VALUE *argv, VALUE self) {
|
4425
|
+
void *arg1 = (void *) 0 ;
|
4426
|
+
int res1 ;
|
4427
|
+
uintptr_t result;
|
4428
|
+
VALUE vresult = Qnil;
|
4429
|
+
|
4430
|
+
if ((argc < 1) || (argc > 1)) {
|
4431
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4432
|
+
}
|
4433
|
+
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
4434
|
+
if (!SWIG_IsOK(res1)) {
|
4435
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_hashcode", 1, argv[0] ));
|
4436
|
+
}
|
4437
|
+
result = (uintptr_t)pn_void_hashcode(arg1);
|
4438
|
+
vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
|
4439
|
+
return vresult;
|
4440
|
+
fail:
|
4441
|
+
return Qnil;
|
4442
|
+
}
|
4443
|
+
|
4444
|
+
|
4445
|
+
SWIGINTERN VALUE
|
4446
|
+
_wrap_pn_void_compare(int argc, VALUE *argv, VALUE self) {
|
4447
|
+
void *arg1 = (void *) 0 ;
|
4448
|
+
void *arg2 = (void *) 0 ;
|
4449
|
+
int res1 ;
|
4450
|
+
int res2 ;
|
4451
|
+
intptr_t result;
|
4452
|
+
VALUE vresult = Qnil;
|
4453
|
+
|
4454
|
+
if ((argc < 2) || (argc > 2)) {
|
4455
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4456
|
+
}
|
4457
|
+
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
4458
|
+
if (!SWIG_IsOK(res1)) {
|
4459
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_compare", 1, argv[0] ));
|
4460
|
+
}
|
4461
|
+
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
4462
|
+
if (!SWIG_IsOK(res2)) {
|
4463
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_void_compare", 2, argv[1] ));
|
4464
|
+
}
|
4465
|
+
result = pn_void_compare(arg1,arg2);
|
4466
|
+
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 );
|
4467
|
+
return vresult;
|
4468
|
+
fail:
|
4469
|
+
return Qnil;
|
4470
|
+
}
|
4471
|
+
|
4472
|
+
|
4473
|
+
SWIGINTERN VALUE
|
4474
|
+
_wrap_pn_void_inspect(int argc, VALUE *argv, VALUE self) {
|
4475
|
+
void *arg1 = (void *) 0 ;
|
4476
|
+
pn_string_t *arg2 = (pn_string_t *) 0 ;
|
4477
|
+
int res1 ;
|
4478
|
+
void *argp2 = 0 ;
|
4479
|
+
int res2 = 0 ;
|
4480
|
+
int result;
|
4481
|
+
VALUE vresult = Qnil;
|
4482
|
+
|
4483
|
+
if ((argc < 2) || (argc > 2)) {
|
4484
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4485
|
+
}
|
4486
|
+
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
4487
|
+
if (!SWIG_IsOK(res1)) {
|
4488
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_inspect", 1, argv[0] ));
|
4489
|
+
}
|
4490
|
+
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
4491
|
+
if (!SWIG_IsOK(res2)) {
|
4492
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_string_t *","pn_void_inspect", 2, argv[1] ));
|
4493
|
+
}
|
4494
|
+
arg2 = (pn_string_t *)(argp2);
|
4495
|
+
result = (int)pn_void_inspect(arg1,arg2);
|
4496
|
+
vresult = SWIG_From_int((int)(result));
|
4497
|
+
return vresult;
|
4498
|
+
fail:
|
4499
|
+
return Qnil;
|
4500
|
+
}
|
4501
|
+
|
4502
|
+
|
4503
|
+
SWIGINTERN VALUE
|
4504
|
+
_wrap_pn_object_new(int argc, VALUE *argv, VALUE self) {
|
4505
|
+
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
4305
4506
|
size_t arg2 ;
|
4306
4507
|
void *argp1 = 0 ;
|
4307
4508
|
int res1 = 0 ;
|
@@ -4582,7 +4783,7 @@ _wrap_pn_compare(int argc, VALUE *argv, VALUE self) {
|
|
4582
4783
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_compare", 2, argv[1] ));
|
4583
4784
|
}
|
4584
4785
|
result = pn_compare(arg1,arg2);
|
4585
|
-
vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)
|
4786
|
+
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 );
|
4586
4787
|
return vresult;
|
4587
4788
|
fail:
|
4588
4789
|
return Qnil;
|
@@ -6833,6 +7034,75 @@ fail:
|
|
6833
7034
|
}
|
6834
7035
|
|
6835
7036
|
|
7037
|
+
SWIGINTERN VALUE
|
7038
|
+
_wrap_pn_condition_copy(int argc, VALUE *argv, VALUE self) {
|
7039
|
+
pn_condition_t *arg1 = (pn_condition_t *) 0 ;
|
7040
|
+
pn_condition_t *arg2 = (pn_condition_t *) 0 ;
|
7041
|
+
void *argp1 = 0 ;
|
7042
|
+
int res1 = 0 ;
|
7043
|
+
void *argp2 = 0 ;
|
7044
|
+
int res2 = 0 ;
|
7045
|
+
int result;
|
7046
|
+
VALUE vresult = Qnil;
|
7047
|
+
|
7048
|
+
if ((argc < 2) || (argc > 2)) {
|
7049
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
7050
|
+
}
|
7051
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
|
7052
|
+
if (!SWIG_IsOK(res1)) {
|
7053
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_copy", 1, argv[0] ));
|
7054
|
+
}
|
7055
|
+
arg1 = (pn_condition_t *)(argp1);
|
7056
|
+
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_condition_t, 0 | 0 );
|
7057
|
+
if (!SWIG_IsOK(res2)) {
|
7058
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_copy", 2, argv[1] ));
|
7059
|
+
}
|
7060
|
+
arg2 = (pn_condition_t *)(argp2);
|
7061
|
+
result = (int)pn_condition_copy(arg1,arg2);
|
7062
|
+
vresult = SWIG_From_int((int)(result));
|
7063
|
+
return vresult;
|
7064
|
+
fail:
|
7065
|
+
return Qnil;
|
7066
|
+
}
|
7067
|
+
|
7068
|
+
|
7069
|
+
SWIGINTERN VALUE
|
7070
|
+
_wrap_pn_condition(int argc, VALUE *argv, VALUE self) {
|
7071
|
+
pn_condition_t *result = 0 ;
|
7072
|
+
VALUE vresult = Qnil;
|
7073
|
+
|
7074
|
+
if ((argc < 0) || (argc > 0)) {
|
7075
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
7076
|
+
}
|
7077
|
+
result = (pn_condition_t *)pn_condition();
|
7078
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_condition_t, 0 | 0 );
|
7079
|
+
return vresult;
|
7080
|
+
fail:
|
7081
|
+
return Qnil;
|
7082
|
+
}
|
7083
|
+
|
7084
|
+
|
7085
|
+
SWIGINTERN VALUE
|
7086
|
+
_wrap_pn_condition_free(int argc, VALUE *argv, VALUE self) {
|
7087
|
+
pn_condition_t *arg1 = (pn_condition_t *) 0 ;
|
7088
|
+
void *argp1 = 0 ;
|
7089
|
+
int res1 = 0 ;
|
7090
|
+
|
7091
|
+
if ((argc < 1) || (argc > 1)) {
|
7092
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
7093
|
+
}
|
7094
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_condition_t, 0 | 0 );
|
7095
|
+
if (!SWIG_IsOK(res1)) {
|
7096
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_condition_t *","pn_condition_free", 1, argv[0] ));
|
7097
|
+
}
|
7098
|
+
arg1 = (pn_condition_t *)(argp1);
|
7099
|
+
pn_condition_free(arg1);
|
7100
|
+
return Qnil;
|
7101
|
+
fail:
|
7102
|
+
return Qnil;
|
7103
|
+
}
|
7104
|
+
|
7105
|
+
|
6836
7106
|
SWIGINTERN VALUE
|
6837
7107
|
_wrap_pn_connection(int argc, VALUE *argv, VALUE self) {
|
6838
7108
|
pn_connection_t *result = 0 ;
|
@@ -6950,6 +7220,30 @@ fail:
|
|
6950
7220
|
}
|
6951
7221
|
|
6952
7222
|
|
7223
|
+
SWIGINTERN VALUE
|
7224
|
+
_wrap_pn_connection_collector(int argc, VALUE *argv, VALUE self) {
|
7225
|
+
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
|
7226
|
+
void *argp1 = 0 ;
|
7227
|
+
int res1 = 0 ;
|
7228
|
+
pn_collector_t *result = 0 ;
|
7229
|
+
VALUE vresult = Qnil;
|
7230
|
+
|
7231
|
+
if ((argc < 1) || (argc > 1)) {
|
7232
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
7233
|
+
}
|
7234
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
|
7235
|
+
if (!SWIG_IsOK(res1)) {
|
7236
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_collector", 1, argv[0] ));
|
7237
|
+
}
|
7238
|
+
arg1 = (pn_connection_t *)(argp1);
|
7239
|
+
result = (pn_collector_t *)pn_connection_collector(arg1);
|
7240
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_collector_t, 0 | 0 );
|
7241
|
+
return vresult;
|
7242
|
+
fail:
|
7243
|
+
return Qnil;
|
7244
|
+
}
|
7245
|
+
|
7246
|
+
|
6953
7247
|
SWIGINTERN VALUE
|
6954
7248
|
_wrap_pn_connection_get_context(int argc, VALUE *argv, VALUE self) {
|
6955
7249
|
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
|
@@ -9309,6 +9603,83 @@ fail:
|
|
9309
9603
|
}
|
9310
9604
|
|
9311
9605
|
|
9606
|
+
SWIGINTERN VALUE
|
9607
|
+
_wrap_pn_link_max_message_size(int argc, VALUE *argv, VALUE self) {
|
9608
|
+
pn_link_t *arg1 = (pn_link_t *) 0 ;
|
9609
|
+
void *argp1 = 0 ;
|
9610
|
+
int res1 = 0 ;
|
9611
|
+
uint64_t result;
|
9612
|
+
VALUE vresult = Qnil;
|
9613
|
+
|
9614
|
+
if ((argc < 1) || (argc > 1)) {
|
9615
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
9616
|
+
}
|
9617
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
|
9618
|
+
if (!SWIG_IsOK(res1)) {
|
9619
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_max_message_size", 1, argv[0] ));
|
9620
|
+
}
|
9621
|
+
arg1 = (pn_link_t *)(argp1);
|
9622
|
+
result = (uint64_t)pn_link_max_message_size(arg1);
|
9623
|
+
vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
|
9624
|
+
return vresult;
|
9625
|
+
fail:
|
9626
|
+
return Qnil;
|
9627
|
+
}
|
9628
|
+
|
9629
|
+
|
9630
|
+
SWIGINTERN VALUE
|
9631
|
+
_wrap_pn_link_set_max_message_size(int argc, VALUE *argv, VALUE self) {
|
9632
|
+
pn_link_t *arg1 = (pn_link_t *) 0 ;
|
9633
|
+
uint64_t arg2 ;
|
9634
|
+
void *argp1 = 0 ;
|
9635
|
+
int res1 = 0 ;
|
9636
|
+
unsigned long long val2 ;
|
9637
|
+
int ecode2 = 0 ;
|
9638
|
+
|
9639
|
+
if ((argc < 2) || (argc > 2)) {
|
9640
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
9641
|
+
}
|
9642
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
|
9643
|
+
if (!SWIG_IsOK(res1)) {
|
9644
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_set_max_message_size", 1, argv[0] ));
|
9645
|
+
}
|
9646
|
+
arg1 = (pn_link_t *)(argp1);
|
9647
|
+
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
|
9648
|
+
if (!SWIG_IsOK(ecode2)) {
|
9649
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","pn_link_set_max_message_size", 2, argv[1] ));
|
9650
|
+
}
|
9651
|
+
arg2 = (uint64_t)(val2);
|
9652
|
+
pn_link_set_max_message_size(arg1,arg2);
|
9653
|
+
return Qnil;
|
9654
|
+
fail:
|
9655
|
+
return Qnil;
|
9656
|
+
}
|
9657
|
+
|
9658
|
+
|
9659
|
+
SWIGINTERN VALUE
|
9660
|
+
_wrap_pn_link_remote_max_message_size(int argc, VALUE *argv, VALUE self) {
|
9661
|
+
pn_link_t *arg1 = (pn_link_t *) 0 ;
|
9662
|
+
void *argp1 = 0 ;
|
9663
|
+
int res1 = 0 ;
|
9664
|
+
uint64_t result;
|
9665
|
+
VALUE vresult = Qnil;
|
9666
|
+
|
9667
|
+
if ((argc < 1) || (argc > 1)) {
|
9668
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
9669
|
+
}
|
9670
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
|
9671
|
+
if (!SWIG_IsOK(res1)) {
|
9672
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_max_message_size", 1, argv[0] ));
|
9673
|
+
}
|
9674
|
+
arg1 = (pn_link_t *)(argp1);
|
9675
|
+
result = (uint64_t)pn_link_remote_max_message_size(arg1);
|
9676
|
+
vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
|
9677
|
+
return vresult;
|
9678
|
+
fail:
|
9679
|
+
return Qnil;
|
9680
|
+
}
|
9681
|
+
|
9682
|
+
|
9312
9683
|
SWIGINTERN VALUE
|
9313
9684
|
_wrap_pn_terminus_get_type(int argc, VALUE *argv, VALUE self) {
|
9314
9685
|
pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
|
@@ -12060,11 +12431,11 @@ fail:
|
|
12060
12431
|
|
12061
12432
|
|
12062
12433
|
SWIGINTERN VALUE
|
12063
|
-
|
12434
|
+
_wrap_pn_collector_next(int argc, VALUE *argv, VALUE self) {
|
12064
12435
|
pn_collector_t *arg1 = (pn_collector_t *) 0 ;
|
12065
12436
|
void *argp1 = 0 ;
|
12066
12437
|
int res1 = 0 ;
|
12067
|
-
|
12438
|
+
pn_event_t *result = 0 ;
|
12068
12439
|
VALUE vresult = Qnil;
|
12069
12440
|
|
12070
12441
|
if ((argc < 1) || (argc > 1)) {
|
@@ -12072,11 +12443,11 @@ _wrap_pn_collector_more(int argc, VALUE *argv, VALUE self) {
|
|
12072
12443
|
}
|
12073
12444
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 | 0 );
|
12074
12445
|
if (!SWIG_IsOK(res1)) {
|
12075
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","
|
12446
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_next", 1, argv[0] ));
|
12076
12447
|
}
|
12077
12448
|
arg1 = (pn_collector_t *)(argp1);
|
12078
|
-
result = (
|
12079
|
-
vresult =
|
12449
|
+
result = (pn_event_t *)pn_collector_next(arg1);
|
12450
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_t, 0 | 0 );
|
12080
12451
|
return vresult;
|
12081
12452
|
fail:
|
12082
12453
|
return Qnil;
|
@@ -12084,23 +12455,23 @@ fail:
|
|
12084
12455
|
|
12085
12456
|
|
12086
12457
|
SWIGINTERN VALUE
|
12087
|
-
|
12088
|
-
|
12458
|
+
_wrap_pn_collector_prev(int argc, VALUE *argv, VALUE self) {
|
12459
|
+
pn_collector_t *arg1 = (pn_collector_t *) 0 ;
|
12089
12460
|
void *argp1 = 0 ;
|
12090
12461
|
int res1 = 0 ;
|
12091
|
-
|
12462
|
+
pn_event_t *result = 0 ;
|
12092
12463
|
VALUE vresult = Qnil;
|
12093
12464
|
|
12094
12465
|
if ((argc < 1) || (argc > 1)) {
|
12095
12466
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
12096
12467
|
}
|
12097
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,
|
12468
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 | 0 );
|
12098
12469
|
if (!SWIG_IsOK(res1)) {
|
12099
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "
|
12470
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_prev", 1, argv[0] ));
|
12100
12471
|
}
|
12101
|
-
arg1 = (
|
12102
|
-
result = (
|
12103
|
-
vresult =
|
12472
|
+
arg1 = (pn_collector_t *)(argp1);
|
12473
|
+
result = (pn_event_t *)pn_collector_prev(arg1);
|
12474
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_t, 0 | 0 );
|
12104
12475
|
return vresult;
|
12105
12476
|
fail:
|
12106
12477
|
return Qnil;
|
@@ -12108,11 +12479,35 @@ fail:
|
|
12108
12479
|
|
12109
12480
|
|
12110
12481
|
SWIGINTERN VALUE
|
12111
|
-
|
12482
|
+
_wrap_pn_collector_more(int argc, VALUE *argv, VALUE self) {
|
12483
|
+
pn_collector_t *arg1 = (pn_collector_t *) 0 ;
|
12484
|
+
void *argp1 = 0 ;
|
12485
|
+
int res1 = 0 ;
|
12486
|
+
bool result;
|
12487
|
+
VALUE vresult = Qnil;
|
12488
|
+
|
12489
|
+
if ((argc < 1) || (argc > 1)) {
|
12490
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
12491
|
+
}
|
12492
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 | 0 );
|
12493
|
+
if (!SWIG_IsOK(res1)) {
|
12494
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_more", 1, argv[0] ));
|
12495
|
+
}
|
12496
|
+
arg1 = (pn_collector_t *)(argp1);
|
12497
|
+
result = (bool)pn_collector_more(arg1);
|
12498
|
+
vresult = SWIG_From_bool((bool)(result));
|
12499
|
+
return vresult;
|
12500
|
+
fail:
|
12501
|
+
return Qnil;
|
12502
|
+
}
|
12503
|
+
|
12504
|
+
|
12505
|
+
SWIGINTERN VALUE
|
12506
|
+
_wrap_pn_event_type(int argc, VALUE *argv, VALUE self) {
|
12112
12507
|
pn_event_t *arg1 = (pn_event_t *) 0 ;
|
12113
12508
|
void *argp1 = 0 ;
|
12114
12509
|
int res1 = 0 ;
|
12115
|
-
|
12510
|
+
pn_event_type_t result;
|
12116
12511
|
VALUE vresult = Qnil;
|
12117
12512
|
|
12118
12513
|
if ((argc < 1) || (argc > 1)) {
|
@@ -12120,11 +12515,11 @@ _wrap_pn_event_class(int argc, VALUE *argv, VALUE self) {
|
|
12120
12515
|
}
|
12121
12516
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 );
|
12122
12517
|
if (!SWIG_IsOK(res1)) {
|
12123
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","
|
12518
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_type", 1, argv[0] ));
|
12124
12519
|
}
|
12125
12520
|
arg1 = (pn_event_t *)(argp1);
|
12126
|
-
result = (
|
12127
|
-
vresult =
|
12521
|
+
result = (pn_event_type_t)pn_event_type(arg1);
|
12522
|
+
vresult = SWIG_From_int((int)(result));
|
12128
12523
|
return vresult;
|
12129
12524
|
fail:
|
12130
12525
|
return Qnil;
|
@@ -12132,11 +12527,11 @@ fail:
|
|
12132
12527
|
|
12133
12528
|
|
12134
12529
|
SWIGINTERN VALUE
|
12135
|
-
|
12530
|
+
_wrap_pn_event_class(int argc, VALUE *argv, VALUE self) {
|
12136
12531
|
pn_event_t *arg1 = (pn_event_t *) 0 ;
|
12137
12532
|
void *argp1 = 0 ;
|
12138
12533
|
int res1 = 0 ;
|
12139
|
-
|
12534
|
+
pn_class_t *result = 0 ;
|
12140
12535
|
VALUE vresult = Qnil;
|
12141
12536
|
|
12142
12537
|
if ((argc < 1) || (argc > 1)) {
|
@@ -12144,11 +12539,11 @@ _wrap_pn_event_context(int argc, VALUE *argv, VALUE self) {
|
|
12144
12539
|
}
|
12145
12540
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 );
|
12146
12541
|
if (!SWIG_IsOK(res1)) {
|
12147
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","
|
12542
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_class", 1, argv[0] ));
|
12148
12543
|
}
|
12149
12544
|
arg1 = (pn_event_t *)(argp1);
|
12150
|
-
result = (
|
12151
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result),
|
12545
|
+
result = (pn_class_t *)pn_event_class(arg1);
|
12546
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_class_t, 0 | 0 );
|
12152
12547
|
return vresult;
|
12153
12548
|
fail:
|
12154
12549
|
return Qnil;
|
@@ -12156,11 +12551,11 @@ fail:
|
|
12156
12551
|
|
12157
12552
|
|
12158
12553
|
SWIGINTERN VALUE
|
12159
|
-
|
12554
|
+
_wrap_pn_event_context(int argc, VALUE *argv, VALUE self) {
|
12160
12555
|
pn_event_t *arg1 = (pn_event_t *) 0 ;
|
12161
12556
|
void *argp1 = 0 ;
|
12162
12557
|
int res1 = 0 ;
|
12163
|
-
|
12558
|
+
void *result = 0 ;
|
12164
12559
|
VALUE vresult = Qnil;
|
12165
12560
|
|
12166
12561
|
if ((argc < 1) || (argc > 1)) {
|
@@ -12168,11 +12563,11 @@ _wrap_pn_event_root(int argc, VALUE *argv, VALUE self) {
|
|
12168
12563
|
}
|
12169
12564
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 );
|
12170
12565
|
if (!SWIG_IsOK(res1)) {
|
12171
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","
|
12566
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_context", 1, argv[0] ));
|
12172
12567
|
}
|
12173
12568
|
arg1 = (pn_event_t *)(argp1);
|
12174
|
-
result = (
|
12175
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result),
|
12569
|
+
result = (void *)pn_event_context(arg1);
|
12570
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
12176
12571
|
return vresult;
|
12177
12572
|
fail:
|
12178
12573
|
return Qnil;
|
@@ -12323,6 +12718,30 @@ fail:
|
|
12323
12718
|
}
|
12324
12719
|
|
12325
12720
|
|
12721
|
+
SWIGINTERN VALUE
|
12722
|
+
_wrap_pn_event_batch_next(int argc, VALUE *argv, VALUE self) {
|
12723
|
+
pn_event_batch_t *arg1 = (pn_event_batch_t *) 0 ;
|
12724
|
+
void *argp1 = 0 ;
|
12725
|
+
int res1 = 0 ;
|
12726
|
+
pn_event_t *result = 0 ;
|
12727
|
+
VALUE vresult = Qnil;
|
12728
|
+
|
12729
|
+
if ((argc < 1) || (argc > 1)) {
|
12730
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
12731
|
+
}
|
12732
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_batch_t, 0 | 0 );
|
12733
|
+
if (!SWIG_IsOK(res1)) {
|
12734
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_batch_t *","pn_event_batch_next", 1, argv[0] ));
|
12735
|
+
}
|
12736
|
+
arg1 = (pn_event_batch_t *)(argp1);
|
12737
|
+
result = (pn_event_t *)pn_event_batch_next(arg1);
|
12738
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_t, 0 | 0 );
|
12739
|
+
return vresult;
|
12740
|
+
fail:
|
12741
|
+
return Qnil;
|
12742
|
+
}
|
12743
|
+
|
12744
|
+
|
12326
12745
|
SWIGINTERN VALUE
|
12327
12746
|
_wrap_pn_event_copy(int argc, VALUE *argv, VALUE self) {
|
12328
12747
|
pn_event_t *arg1 = (pn_event_t *) 0 ;
|
@@ -15886,509 +16305,47 @@ _wrap_pn_messenger_deadline(int argc, VALUE *argv, VALUE self) {
|
|
15886
16305
|
pn_timestamp_t result;
|
15887
16306
|
VALUE vresult = Qnil;
|
15888
16307
|
|
15889
|
-
if ((argc < 1) || (argc > 1)) {
|
15890
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
15891
|
-
}
|
15892
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
15893
|
-
if (!SWIG_IsOK(res1)) {
|
15894
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_deadline", 1, argv[0] ));
|
15895
|
-
}
|
15896
|
-
arg1 = (pn_messenger_t *)(argp1);
|
15897
|
-
result = (pn_timestamp_t)pn_messenger_deadline(arg1);
|
15898
|
-
vresult = SWIG_From_long_SS_long((long long)(result));
|
15899
|
-
return vresult;
|
15900
|
-
fail:
|
15901
|
-
return Qnil;
|
15902
|
-
}
|
15903
|
-
|
15904
|
-
|
15905
|
-
SWIGINTERN VALUE
|
15906
|
-
_wrap_pn_messenger_set_flags(int argc, VALUE *argv, VALUE self) {
|
15907
|
-
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
15908
|
-
int arg2 ;
|
15909
|
-
void *argp1 = 0 ;
|
15910
|
-
int res1 = 0 ;
|
15911
|
-
int val2 ;
|
15912
|
-
int ecode2 = 0 ;
|
15913
|
-
int result;
|
15914
|
-
VALUE vresult = Qnil;
|
15915
|
-
|
15916
|
-
if ((argc < 2) || (argc > 2)) {
|
15917
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
15918
|
-
}
|
15919
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
15920
|
-
if (!SWIG_IsOK(res1)) {
|
15921
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_flags", 1, argv[0] ));
|
15922
|
-
}
|
15923
|
-
arg1 = (pn_messenger_t *)(argp1);
|
15924
|
-
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
15925
|
-
if (!SWIG_IsOK(ecode2)) {
|
15926
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_messenger_set_flags", 2, argv[1] ));
|
15927
|
-
}
|
15928
|
-
arg2 = (int)(val2);
|
15929
|
-
result = (int)pn_messenger_set_flags(arg1,arg2);
|
15930
|
-
vresult = SWIG_From_int((int)(result));
|
15931
|
-
return vresult;
|
15932
|
-
fail:
|
15933
|
-
return Qnil;
|
15934
|
-
}
|
15935
|
-
|
15936
|
-
|
15937
|
-
SWIGINTERN VALUE
|
15938
|
-
_wrap_pn_messenger_get_flags(int argc, VALUE *argv, VALUE self) {
|
15939
|
-
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
15940
|
-
void *argp1 = 0 ;
|
15941
|
-
int res1 = 0 ;
|
15942
|
-
int result;
|
15943
|
-
VALUE vresult = Qnil;
|
15944
|
-
|
15945
|
-
if ((argc < 1) || (argc > 1)) {
|
15946
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
15947
|
-
}
|
15948
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
15949
|
-
if (!SWIG_IsOK(res1)) {
|
15950
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_flags", 1, argv[0] ));
|
15951
|
-
}
|
15952
|
-
arg1 = (pn_messenger_t *)(argp1);
|
15953
|
-
result = (int)pn_messenger_get_flags(arg1);
|
15954
|
-
vresult = SWIG_From_int((int)(result));
|
15955
|
-
return vresult;
|
15956
|
-
fail:
|
15957
|
-
return Qnil;
|
15958
|
-
}
|
15959
|
-
|
15960
|
-
|
15961
|
-
SWIGINTERN VALUE
|
15962
|
-
_wrap_pn_messenger_set_snd_settle_mode(int argc, VALUE *argv, VALUE self) {
|
15963
|
-
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
15964
|
-
pn_snd_settle_mode_t arg2 ;
|
15965
|
-
void *argp1 = 0 ;
|
15966
|
-
int res1 = 0 ;
|
15967
|
-
int val2 ;
|
15968
|
-
int ecode2 = 0 ;
|
15969
|
-
int result;
|
15970
|
-
VALUE vresult = Qnil;
|
15971
|
-
|
15972
|
-
if ((argc < 2) || (argc > 2)) {
|
15973
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
15974
|
-
}
|
15975
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
15976
|
-
if (!SWIG_IsOK(res1)) {
|
15977
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_snd_settle_mode", 1, argv[0] ));
|
15978
|
-
}
|
15979
|
-
arg1 = (pn_messenger_t *)(argp1);
|
15980
|
-
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
15981
|
-
if (!SWIG_IsOK(ecode2)) {
|
15982
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_snd_settle_mode_t","pn_messenger_set_snd_settle_mode", 2, argv[1] ));
|
15983
|
-
}
|
15984
|
-
arg2 = (pn_snd_settle_mode_t)(val2);
|
15985
|
-
result = (int)pn_messenger_set_snd_settle_mode(arg1,arg2);
|
15986
|
-
vresult = SWIG_From_int((int)(result));
|
15987
|
-
return vresult;
|
15988
|
-
fail:
|
15989
|
-
return Qnil;
|
15990
|
-
}
|
15991
|
-
|
15992
|
-
|
15993
|
-
SWIGINTERN VALUE
|
15994
|
-
_wrap_pn_messenger_set_rcv_settle_mode(int argc, VALUE *argv, VALUE self) {
|
15995
|
-
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
15996
|
-
pn_rcv_settle_mode_t arg2 ;
|
15997
|
-
void *argp1 = 0 ;
|
15998
|
-
int res1 = 0 ;
|
15999
|
-
int val2 ;
|
16000
|
-
int ecode2 = 0 ;
|
16001
|
-
int result;
|
16002
|
-
VALUE vresult = Qnil;
|
16003
|
-
|
16004
|
-
if ((argc < 2) || (argc > 2)) {
|
16005
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
16006
|
-
}
|
16007
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
16008
|
-
if (!SWIG_IsOK(res1)) {
|
16009
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_rcv_settle_mode", 1, argv[0] ));
|
16010
|
-
}
|
16011
|
-
arg1 = (pn_messenger_t *)(argp1);
|
16012
|
-
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
16013
|
-
if (!SWIG_IsOK(ecode2)) {
|
16014
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_rcv_settle_mode_t","pn_messenger_set_rcv_settle_mode", 2, argv[1] ));
|
16015
|
-
}
|
16016
|
-
arg2 = (pn_rcv_settle_mode_t)(val2);
|
16017
|
-
result = (int)pn_messenger_set_rcv_settle_mode(arg1,arg2);
|
16018
|
-
vresult = SWIG_From_int((int)(result));
|
16019
|
-
return vresult;
|
16020
|
-
fail:
|
16021
|
-
return Qnil;
|
16022
|
-
}
|
16023
|
-
|
16024
|
-
|
16025
|
-
SWIGINTERN VALUE
|
16026
|
-
_wrap_pn_messenger_set_tracer(int argc, VALUE *argv, VALUE self) {
|
16027
|
-
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
16028
|
-
pn_tracer_t arg2 = (pn_tracer_t) 0 ;
|
16029
|
-
void *argp1 = 0 ;
|
16030
|
-
int res1 = 0 ;
|
16031
|
-
|
16032
|
-
if ((argc < 2) || (argc > 2)) {
|
16033
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
16034
|
-
}
|
16035
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
16036
|
-
if (!SWIG_IsOK(res1)) {
|
16037
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_tracer", 1, argv[0] ));
|
16038
|
-
}
|
16039
|
-
arg1 = (pn_messenger_t *)(argp1);
|
16040
|
-
{
|
16041
|
-
int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void);
|
16042
|
-
if (!SWIG_IsOK(res)) {
|
16043
|
-
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "pn_tracer_t","pn_messenger_set_tracer", 2, argv[1] ));
|
16044
|
-
}
|
16045
|
-
}
|
16046
|
-
pn_messenger_set_tracer(arg1,arg2);
|
16047
|
-
return Qnil;
|
16048
|
-
fail:
|
16049
|
-
return Qnil;
|
16050
|
-
}
|
16051
|
-
|
16052
|
-
|
16053
|
-
SWIGINTERN VALUE
|
16054
|
-
_wrap_pn_messenger_get_remote_idle_timeout(int argc, VALUE *argv, VALUE self) {
|
16055
|
-
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
16056
|
-
char *arg2 = (char *) 0 ;
|
16057
|
-
void *argp1 = 0 ;
|
16058
|
-
int res1 = 0 ;
|
16059
|
-
int res2 ;
|
16060
|
-
char *buf2 = 0 ;
|
16061
|
-
int alloc2 = 0 ;
|
16062
|
-
pn_millis_t result;
|
16063
|
-
VALUE vresult = Qnil;
|
16064
|
-
|
16065
|
-
if ((argc < 2) || (argc > 2)) {
|
16066
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
16067
|
-
}
|
16068
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
16069
|
-
if (!SWIG_IsOK(res1)) {
|
16070
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_remote_idle_timeout", 1, argv[0] ));
|
16071
|
-
}
|
16072
|
-
arg1 = (pn_messenger_t *)(argp1);
|
16073
|
-
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
16074
|
-
if (!SWIG_IsOK(res2)) {
|
16075
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_messenger_get_remote_idle_timeout", 2, argv[1] ));
|
16076
|
-
}
|
16077
|
-
arg2 = (char *)(buf2);
|
16078
|
-
result = (pn_millis_t)pn_messenger_get_remote_idle_timeout(arg1,(char const *)arg2);
|
16079
|
-
vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
|
16080
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
16081
|
-
return vresult;
|
16082
|
-
fail:
|
16083
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
16084
|
-
return Qnil;
|
16085
|
-
}
|
16086
|
-
|
16087
|
-
|
16088
|
-
SWIGINTERN VALUE
|
16089
|
-
_wrap_pn_messenger_set_ssl_peer_authentication_mode(int argc, VALUE *argv, VALUE self) {
|
16090
|
-
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
16091
|
-
pn_ssl_verify_mode_t arg2 ;
|
16092
|
-
void *argp1 = 0 ;
|
16093
|
-
int res1 = 0 ;
|
16094
|
-
int val2 ;
|
16095
|
-
int ecode2 = 0 ;
|
16096
|
-
int result;
|
16097
|
-
VALUE vresult = Qnil;
|
16098
|
-
|
16099
|
-
if ((argc < 2) || (argc > 2)) {
|
16100
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
16101
|
-
}
|
16102
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
16103
|
-
if (!SWIG_IsOK(res1)) {
|
16104
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_ssl_peer_authentication_mode", 1, argv[0] ));
|
16105
|
-
}
|
16106
|
-
arg1 = (pn_messenger_t *)(argp1);
|
16107
|
-
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
16108
|
-
if (!SWIG_IsOK(ecode2)) {
|
16109
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_ssl_verify_mode_t","pn_messenger_set_ssl_peer_authentication_mode", 2, argv[1] ));
|
16110
|
-
}
|
16111
|
-
arg2 = (pn_ssl_verify_mode_t)(val2);
|
16112
|
-
result = (int)pn_messenger_set_ssl_peer_authentication_mode(arg1,arg2);
|
16113
|
-
vresult = SWIG_From_int((int)(result));
|
16114
|
-
return vresult;
|
16115
|
-
fail:
|
16116
|
-
return Qnil;
|
16117
|
-
}
|
16118
|
-
|
16119
|
-
|
16120
|
-
SWIGINTERN VALUE
|
16121
|
-
_wrap_pn_io(int argc, VALUE *argv, VALUE self) {
|
16122
|
-
pn_io_t *result = 0 ;
|
16123
|
-
VALUE vresult = Qnil;
|
16124
|
-
|
16125
|
-
if ((argc < 0) || (argc > 0)) {
|
16126
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
16127
|
-
}
|
16128
|
-
result = (pn_io_t *)pn_io();
|
16129
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_io_t, 0 | 0 );
|
16130
|
-
return vresult;
|
16131
|
-
fail:
|
16132
|
-
return Qnil;
|
16133
|
-
}
|
16134
|
-
|
16135
|
-
|
16136
|
-
SWIGINTERN VALUE
|
16137
|
-
_wrap_pn_io_free(int argc, VALUE *argv, VALUE self) {
|
16138
|
-
pn_io_t *arg1 = (pn_io_t *) 0 ;
|
16139
|
-
void *argp1 = 0 ;
|
16140
|
-
int res1 = 0 ;
|
16141
|
-
|
16142
|
-
if ((argc < 1) || (argc > 1)) {
|
16143
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
16144
|
-
}
|
16145
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 );
|
16146
|
-
if (!SWIG_IsOK(res1)) {
|
16147
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_io_free", 1, argv[0] ));
|
16148
|
-
}
|
16149
|
-
arg1 = (pn_io_t *)(argp1);
|
16150
|
-
pn_io_free(arg1);
|
16151
|
-
return Qnil;
|
16152
|
-
fail:
|
16153
|
-
return Qnil;
|
16154
|
-
}
|
16155
|
-
|
16156
|
-
|
16157
|
-
SWIGINTERN VALUE
|
16158
|
-
_wrap_pn_io_error(int argc, VALUE *argv, VALUE self) {
|
16159
|
-
pn_io_t *arg1 = (pn_io_t *) 0 ;
|
16160
|
-
void *argp1 = 0 ;
|
16161
|
-
int res1 = 0 ;
|
16162
|
-
pn_error_t *result = 0 ;
|
16163
|
-
VALUE vresult = Qnil;
|
16164
|
-
|
16165
|
-
if ((argc < 1) || (argc > 1)) {
|
16166
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
16167
|
-
}
|
16168
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 );
|
16169
|
-
if (!SWIG_IsOK(res1)) {
|
16170
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_io_error", 1, argv[0] ));
|
16171
|
-
}
|
16172
|
-
arg1 = (pn_io_t *)(argp1);
|
16173
|
-
result = (pn_error_t *)pn_io_error(arg1);
|
16174
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 );
|
16175
|
-
return vresult;
|
16176
|
-
fail:
|
16177
|
-
return Qnil;
|
16178
|
-
}
|
16179
|
-
|
16180
|
-
|
16181
|
-
SWIGINTERN VALUE
|
16182
|
-
_wrap_pn_connect(int argc, VALUE *argv, VALUE self) {
|
16183
|
-
pn_io_t *arg1 = (pn_io_t *) 0 ;
|
16184
|
-
char *arg2 = (char *) 0 ;
|
16185
|
-
char *arg3 = (char *) 0 ;
|
16186
|
-
void *argp1 = 0 ;
|
16187
|
-
int res1 = 0 ;
|
16188
|
-
int res2 ;
|
16189
|
-
char *buf2 = 0 ;
|
16190
|
-
int alloc2 = 0 ;
|
16191
|
-
int res3 ;
|
16192
|
-
char *buf3 = 0 ;
|
16193
|
-
int alloc3 = 0 ;
|
16194
|
-
pn_socket_t result;
|
16195
|
-
VALUE vresult = Qnil;
|
16196
|
-
|
16197
|
-
if ((argc < 3) || (argc > 3)) {
|
16198
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
16199
|
-
}
|
16200
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 );
|
16201
|
-
if (!SWIG_IsOK(res1)) {
|
16202
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_connect", 1, argv[0] ));
|
16203
|
-
}
|
16204
|
-
arg1 = (pn_io_t *)(argp1);
|
16205
|
-
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
16206
|
-
if (!SWIG_IsOK(res2)) {
|
16207
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connect", 2, argv[1] ));
|
16208
|
-
}
|
16209
|
-
arg2 = (char *)(buf2);
|
16210
|
-
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
|
16211
|
-
if (!SWIG_IsOK(res3)) {
|
16212
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_connect", 3, argv[2] ));
|
16213
|
-
}
|
16214
|
-
arg3 = (char *)(buf3);
|
16215
|
-
result = (pn_socket_t)pn_connect(arg1,(char const *)arg2,(char const *)arg3);
|
16216
|
-
vresult = SWIG_From_int((int)(result));
|
16217
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
16218
|
-
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
16219
|
-
return vresult;
|
16220
|
-
fail:
|
16221
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
16222
|
-
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
16223
|
-
return Qnil;
|
16224
|
-
}
|
16225
|
-
|
16226
|
-
|
16227
|
-
SWIGINTERN VALUE
|
16228
|
-
_wrap_pn_listen(int argc, VALUE *argv, VALUE self) {
|
16229
|
-
pn_io_t *arg1 = (pn_io_t *) 0 ;
|
16230
|
-
char *arg2 = (char *) 0 ;
|
16231
|
-
char *arg3 = (char *) 0 ;
|
16232
|
-
void *argp1 = 0 ;
|
16233
|
-
int res1 = 0 ;
|
16234
|
-
int res2 ;
|
16235
|
-
char *buf2 = 0 ;
|
16236
|
-
int alloc2 = 0 ;
|
16237
|
-
int res3 ;
|
16238
|
-
char *buf3 = 0 ;
|
16239
|
-
int alloc3 = 0 ;
|
16240
|
-
pn_socket_t result;
|
16241
|
-
VALUE vresult = Qnil;
|
16242
|
-
|
16243
|
-
if ((argc < 3) || (argc > 3)) {
|
16244
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
16245
|
-
}
|
16246
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 );
|
16247
|
-
if (!SWIG_IsOK(res1)) {
|
16248
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_listen", 1, argv[0] ));
|
16249
|
-
}
|
16250
|
-
arg1 = (pn_io_t *)(argp1);
|
16251
|
-
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
16252
|
-
if (!SWIG_IsOK(res2)) {
|
16253
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_listen", 2, argv[1] ));
|
16254
|
-
}
|
16255
|
-
arg2 = (char *)(buf2);
|
16256
|
-
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
|
16257
|
-
if (!SWIG_IsOK(res3)) {
|
16258
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_listen", 3, argv[2] ));
|
16259
|
-
}
|
16260
|
-
arg3 = (char *)(buf3);
|
16261
|
-
result = (pn_socket_t)pn_listen(arg1,(char const *)arg2,(char const *)arg3);
|
16262
|
-
vresult = SWIG_From_int((int)(result));
|
16263
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
16264
|
-
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
16265
|
-
return vresult;
|
16266
|
-
fail:
|
16267
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
16268
|
-
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
16269
|
-
return Qnil;
|
16270
|
-
}
|
16271
|
-
|
16272
|
-
|
16273
|
-
SWIGINTERN VALUE
|
16274
|
-
_wrap_pn_accept(int argc, VALUE *argv, VALUE self) {
|
16275
|
-
pn_io_t *arg1 = (pn_io_t *) 0 ;
|
16276
|
-
pn_socket_t arg2 ;
|
16277
|
-
char *arg3 = (char *) 0 ;
|
16278
|
-
size_t arg4 ;
|
16279
|
-
void *argp1 = 0 ;
|
16280
|
-
int res1 = 0 ;
|
16281
|
-
int val2 ;
|
16282
|
-
int ecode2 = 0 ;
|
16283
|
-
int res3 ;
|
16284
|
-
char *buf3 = 0 ;
|
16285
|
-
int alloc3 = 0 ;
|
16286
|
-
size_t val4 ;
|
16287
|
-
int ecode4 = 0 ;
|
16288
|
-
pn_socket_t result;
|
16289
|
-
VALUE vresult = Qnil;
|
16290
|
-
|
16291
|
-
if ((argc < 4) || (argc > 4)) {
|
16292
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
16293
|
-
}
|
16294
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_io_t, 0 | 0 );
|
16295
|
-
if (!SWIG_IsOK(res1)) {
|
16296
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_io_t *","pn_accept", 1, argv[0] ));
|
16297
|
-
}
|
16298
|
-
arg1 = (pn_io_t *)(argp1);
|
16299
|
-
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
16300
|
-
if (!SWIG_IsOK(ecode2)) {
|
16301
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_socket_t","pn_accept", 2, argv[1] ));
|
16302
|
-
}
|
16303
|
-
arg2 = (pn_socket_t)(val2);
|
16304
|
-
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
|
16305
|
-
if (!SWIG_IsOK(res3)) {
|
16306
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","pn_accept", 3, argv[2] ));
|
16307
|
-
}
|
16308
|
-
arg3 = (char *)(buf3);
|
16309
|
-
ecode4 = SWIG_AsVal_size_t(argv[3], &val4);
|
16310
|
-
if (!SWIG_IsOK(ecode4)) {
|
16311
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","pn_accept", 4, argv[3] ));
|
16312
|
-
}
|
16313
|
-
arg4 = (size_t)(val4);
|
16314
|
-
result = (pn_socket_t)pn_accept(arg1,arg2,arg3,arg4);
|
16315
|
-
vresult = SWIG_From_int((int)(result));
|
16316
|
-
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
16317
|
-
return vresult;
|
16318
|
-
fail:
|
16319
|
-
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
16320
|
-
return Qnil;
|
16321
|
-
}
|
16322
|
-
|
16323
|
-
|
16324
|
-
SWIGINTERN VALUE
|
16325
|
-
_wrap_pn_close(int argc, VALUE *argv, VALUE self) {
|
16326
|
-
pn_io_t *arg1 = (pn_io_t *) 0 ;
|
16327
|
-
pn_socket_t arg2 ;
|
16328
|
-
void *argp1 = 0 ;
|
16329
|
-
int res1 = 0 ;
|
16330
|
-
int val2 ;
|
16331
|
-
int ecode2 = 0 ;
|
16332
|
-
|
16333
|
-
if ((argc < 2) || (argc > 2)) {
|
16334
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
16308
|
+
if ((argc < 1) || (argc > 1)) {
|
16309
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
16335
16310
|
}
|
16336
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,
|
16311
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
16337
16312
|
if (!SWIG_IsOK(res1)) {
|
16338
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "
|
16313
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_deadline", 1, argv[0] ));
|
16339
16314
|
}
|
16340
|
-
arg1 = (
|
16341
|
-
|
16342
|
-
|
16343
|
-
|
16344
|
-
}
|
16345
|
-
arg2 = (pn_socket_t)(val2);
|
16346
|
-
pn_close(arg1,arg2);
|
16347
|
-
return Qnil;
|
16315
|
+
arg1 = (pn_messenger_t *)(argp1);
|
16316
|
+
result = (pn_timestamp_t)pn_messenger_deadline(arg1);
|
16317
|
+
vresult = SWIG_From_long_SS_long((long long)(result));
|
16318
|
+
return vresult;
|
16348
16319
|
fail:
|
16349
16320
|
return Qnil;
|
16350
16321
|
}
|
16351
16322
|
|
16352
16323
|
|
16353
16324
|
SWIGINTERN VALUE
|
16354
|
-
|
16355
|
-
|
16356
|
-
|
16357
|
-
void *arg3 = (void *) 0 ;
|
16358
|
-
size_t arg4 ;
|
16325
|
+
_wrap_pn_messenger_set_flags(int argc, VALUE *argv, VALUE self) {
|
16326
|
+
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
16327
|
+
int arg2 ;
|
16359
16328
|
void *argp1 = 0 ;
|
16360
16329
|
int res1 = 0 ;
|
16361
16330
|
int val2 ;
|
16362
16331
|
int ecode2 = 0 ;
|
16363
|
-
int
|
16364
|
-
size_t val4 ;
|
16365
|
-
int ecode4 = 0 ;
|
16366
|
-
ssize_t result;
|
16332
|
+
int result;
|
16367
16333
|
VALUE vresult = Qnil;
|
16368
16334
|
|
16369
|
-
if ((argc <
|
16370
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
16335
|
+
if ((argc < 2) || (argc > 2)) {
|
16336
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
16371
16337
|
}
|
16372
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,
|
16338
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
16373
16339
|
if (!SWIG_IsOK(res1)) {
|
16374
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "
|
16340
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_flags", 1, argv[0] ));
|
16375
16341
|
}
|
16376
|
-
arg1 = (
|
16342
|
+
arg1 = (pn_messenger_t *)(argp1);
|
16377
16343
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
16378
16344
|
if (!SWIG_IsOK(ecode2)) {
|
16379
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "
|
16380
|
-
}
|
16381
|
-
arg2 = (pn_socket_t)(val2);
|
16382
|
-
res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
|
16383
|
-
if (!SWIG_IsOK(res3)) {
|
16384
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void const *","pn_send", 3, argv[2] ));
|
16385
|
-
}
|
16386
|
-
ecode4 = SWIG_AsVal_size_t(argv[3], &val4);
|
16387
|
-
if (!SWIG_IsOK(ecode4)) {
|
16388
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","pn_send", 4, argv[3] ));
|
16345
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_messenger_set_flags", 2, argv[1] ));
|
16389
16346
|
}
|
16390
|
-
|
16391
|
-
result = (
|
16347
|
+
arg2 = (int)(val2);
|
16348
|
+
result = (int)pn_messenger_set_flags(arg1,arg2);
|
16392
16349
|
vresult = SWIG_From_int((int)(result));
|
16393
16350
|
return vresult;
|
16394
16351
|
fail:
|
@@ -16397,44 +16354,22 @@ fail:
|
|
16397
16354
|
|
16398
16355
|
|
16399
16356
|
SWIGINTERN VALUE
|
16400
|
-
|
16401
|
-
|
16402
|
-
pn_socket_t arg2 ;
|
16403
|
-
void *arg3 = (void *) 0 ;
|
16404
|
-
size_t arg4 ;
|
16357
|
+
_wrap_pn_messenger_get_flags(int argc, VALUE *argv, VALUE self) {
|
16358
|
+
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
16405
16359
|
void *argp1 = 0 ;
|
16406
16360
|
int res1 = 0 ;
|
16407
|
-
int
|
16408
|
-
int ecode2 = 0 ;
|
16409
|
-
int res3 ;
|
16410
|
-
size_t val4 ;
|
16411
|
-
int ecode4 = 0 ;
|
16412
|
-
ssize_t result;
|
16361
|
+
int result;
|
16413
16362
|
VALUE vresult = Qnil;
|
16414
16363
|
|
16415
|
-
if ((argc <
|
16416
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
16364
|
+
if ((argc < 1) || (argc > 1)) {
|
16365
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
16417
16366
|
}
|
16418
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,
|
16367
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
16419
16368
|
if (!SWIG_IsOK(res1)) {
|
16420
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "
|
16421
|
-
}
|
16422
|
-
arg1 = (pn_io_t *)(argp1);
|
16423
|
-
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
16424
|
-
if (!SWIG_IsOK(ecode2)) {
|
16425
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_socket_t","pn_recv", 2, argv[1] ));
|
16426
|
-
}
|
16427
|
-
arg2 = (pn_socket_t)(val2);
|
16428
|
-
res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
|
16429
|
-
if (!SWIG_IsOK(res3)) {
|
16430
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_recv", 3, argv[2] ));
|
16369
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_flags", 1, argv[0] ));
|
16431
16370
|
}
|
16432
|
-
|
16433
|
-
|
16434
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","pn_recv", 4, argv[3] ));
|
16435
|
-
}
|
16436
|
-
arg4 = (size_t)(val4);
|
16437
|
-
result = (ssize_t)pn_recv(arg1,arg2,arg3,arg4);
|
16371
|
+
arg1 = (pn_messenger_t *)(argp1);
|
16372
|
+
result = (int)pn_messenger_get_flags(arg1);
|
16438
16373
|
vresult = SWIG_From_int((int)(result));
|
16439
16374
|
return vresult;
|
16440
16375
|
fail:
|
@@ -16443,30 +16378,30 @@ fail:
|
|
16443
16378
|
|
16444
16379
|
|
16445
16380
|
SWIGINTERN VALUE
|
16446
|
-
|
16447
|
-
|
16448
|
-
|
16381
|
+
_wrap_pn_messenger_set_snd_settle_mode(int argc, VALUE *argv, VALUE self) {
|
16382
|
+
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
16383
|
+
pn_snd_settle_mode_t arg2 ;
|
16449
16384
|
void *argp1 = 0 ;
|
16450
16385
|
int res1 = 0 ;
|
16451
|
-
|
16452
|
-
int
|
16386
|
+
int val2 ;
|
16387
|
+
int ecode2 = 0 ;
|
16453
16388
|
int result;
|
16454
16389
|
VALUE vresult = Qnil;
|
16455
16390
|
|
16456
16391
|
if ((argc < 2) || (argc > 2)) {
|
16457
16392
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
16458
16393
|
}
|
16459
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,
|
16394
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
16460
16395
|
if (!SWIG_IsOK(res1)) {
|
16461
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "
|
16462
|
-
}
|
16463
|
-
arg1 = (pn_io_t *)(argp1);
|
16464
|
-
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
|
16465
|
-
if (!SWIG_IsOK(res2)) {
|
16466
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_socket_t *","pn_pipe", 2, argv[1] ));
|
16396
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_snd_settle_mode", 1, argv[0] ));
|
16467
16397
|
}
|
16468
|
-
|
16469
|
-
|
16398
|
+
arg1 = (pn_messenger_t *)(argp1);
|
16399
|
+
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
16400
|
+
if (!SWIG_IsOK(ecode2)) {
|
16401
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_snd_settle_mode_t","pn_messenger_set_snd_settle_mode", 2, argv[1] ));
|
16402
|
+
}
|
16403
|
+
arg2 = (pn_snd_settle_mode_t)(val2);
|
16404
|
+
result = (int)pn_messenger_set_snd_settle_mode(arg1,arg2);
|
16470
16405
|
vresult = SWIG_From_int((int)(result));
|
16471
16406
|
return vresult;
|
16472
16407
|
fail:
|
@@ -16475,44 +16410,30 @@ fail:
|
|
16475
16410
|
|
16476
16411
|
|
16477
16412
|
SWIGINTERN VALUE
|
16478
|
-
|
16479
|
-
|
16480
|
-
|
16481
|
-
void *arg3 = (void *) 0 ;
|
16482
|
-
size_t arg4 ;
|
16413
|
+
_wrap_pn_messenger_set_rcv_settle_mode(int argc, VALUE *argv, VALUE self) {
|
16414
|
+
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
16415
|
+
pn_rcv_settle_mode_t arg2 ;
|
16483
16416
|
void *argp1 = 0 ;
|
16484
16417
|
int res1 = 0 ;
|
16485
16418
|
int val2 ;
|
16486
16419
|
int ecode2 = 0 ;
|
16487
|
-
int
|
16488
|
-
size_t val4 ;
|
16489
|
-
int ecode4 = 0 ;
|
16490
|
-
ssize_t result;
|
16420
|
+
int result;
|
16491
16421
|
VALUE vresult = Qnil;
|
16492
16422
|
|
16493
|
-
if ((argc <
|
16494
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
16423
|
+
if ((argc < 2) || (argc > 2)) {
|
16424
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
16495
16425
|
}
|
16496
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,
|
16426
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
16497
16427
|
if (!SWIG_IsOK(res1)) {
|
16498
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "
|
16428
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_rcv_settle_mode", 1, argv[0] ));
|
16499
16429
|
}
|
16500
|
-
arg1 = (
|
16430
|
+
arg1 = (pn_messenger_t *)(argp1);
|
16501
16431
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
16502
16432
|
if (!SWIG_IsOK(ecode2)) {
|
16503
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "
|
16504
|
-
}
|
16505
|
-
arg2 = (pn_socket_t)(val2);
|
16506
|
-
res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
|
16507
|
-
if (!SWIG_IsOK(res3)) {
|
16508
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_read", 3, argv[2] ));
|
16509
|
-
}
|
16510
|
-
ecode4 = SWIG_AsVal_size_t(argv[3], &val4);
|
16511
|
-
if (!SWIG_IsOK(ecode4)) {
|
16512
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","pn_read", 4, argv[3] ));
|
16433
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_rcv_settle_mode_t","pn_messenger_set_rcv_settle_mode", 2, argv[1] ));
|
16513
16434
|
}
|
16514
|
-
|
16515
|
-
result = (
|
16435
|
+
arg2 = (pn_rcv_settle_mode_t)(val2);
|
16436
|
+
result = (int)pn_messenger_set_rcv_settle_mode(arg1,arg2);
|
16516
16437
|
vresult = SWIG_From_int((int)(result));
|
16517
16438
|
return vresult;
|
16518
16439
|
fail:
|
@@ -16521,93 +16442,94 @@ fail:
|
|
16521
16442
|
|
16522
16443
|
|
16523
16444
|
SWIGINTERN VALUE
|
16524
|
-
|
16525
|
-
|
16526
|
-
|
16527
|
-
void *arg3 = (void *) 0 ;
|
16528
|
-
size_t arg4 ;
|
16445
|
+
_wrap_pn_messenger_set_tracer(int argc, VALUE *argv, VALUE self) {
|
16446
|
+
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
16447
|
+
pn_tracer_t arg2 = (pn_tracer_t) 0 ;
|
16529
16448
|
void *argp1 = 0 ;
|
16530
16449
|
int res1 = 0 ;
|
16531
|
-
int val2 ;
|
16532
|
-
int ecode2 = 0 ;
|
16533
|
-
int res3 ;
|
16534
|
-
size_t val4 ;
|
16535
|
-
int ecode4 = 0 ;
|
16536
|
-
ssize_t result;
|
16537
|
-
VALUE vresult = Qnil;
|
16538
16450
|
|
16539
|
-
if ((argc <
|
16540
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
16451
|
+
if ((argc < 2) || (argc > 2)) {
|
16452
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
16541
16453
|
}
|
16542
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,
|
16454
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
16543
16455
|
if (!SWIG_IsOK(res1)) {
|
16544
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "
|
16456
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_tracer", 1, argv[0] ));
|
16545
16457
|
}
|
16546
|
-
arg1 = (
|
16547
|
-
|
16548
|
-
|
16549
|
-
|
16550
|
-
|
16551
|
-
|
16552
|
-
res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
|
16553
|
-
if (!SWIG_IsOK(res3)) {
|
16554
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void const *","pn_write", 3, argv[2] ));
|
16458
|
+
arg1 = (pn_messenger_t *)(argp1);
|
16459
|
+
{
|
16460
|
+
int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void);
|
16461
|
+
if (!SWIG_IsOK(res)) {
|
16462
|
+
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "pn_tracer_t","pn_messenger_set_tracer", 2, argv[1] ));
|
16463
|
+
}
|
16555
16464
|
}
|
16556
|
-
|
16557
|
-
|
16558
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","pn_write", 4, argv[3] ));
|
16559
|
-
}
|
16560
|
-
arg4 = (size_t)(val4);
|
16561
|
-
result = (ssize_t)pn_write(arg1,arg2,(void const *)arg3,arg4);
|
16562
|
-
vresult = SWIG_From_int((int)(result));
|
16563
|
-
return vresult;
|
16465
|
+
pn_messenger_set_tracer(arg1,arg2);
|
16466
|
+
return Qnil;
|
16564
16467
|
fail:
|
16565
16468
|
return Qnil;
|
16566
16469
|
}
|
16567
16470
|
|
16568
16471
|
|
16569
16472
|
SWIGINTERN VALUE
|
16570
|
-
|
16571
|
-
|
16473
|
+
_wrap_pn_messenger_get_remote_idle_timeout(int argc, VALUE *argv, VALUE self) {
|
16474
|
+
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
16475
|
+
char *arg2 = (char *) 0 ;
|
16572
16476
|
void *argp1 = 0 ;
|
16573
16477
|
int res1 = 0 ;
|
16574
|
-
|
16478
|
+
int res2 ;
|
16479
|
+
char *buf2 = 0 ;
|
16480
|
+
int alloc2 = 0 ;
|
16481
|
+
pn_millis_t result;
|
16575
16482
|
VALUE vresult = Qnil;
|
16576
16483
|
|
16577
|
-
if ((argc <
|
16578
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
16484
|
+
if ((argc < 2) || (argc > 2)) {
|
16485
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
16579
16486
|
}
|
16580
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,
|
16487
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
16581
16488
|
if (!SWIG_IsOK(res1)) {
|
16582
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "
|
16489
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_get_remote_idle_timeout", 1, argv[0] ));
|
16583
16490
|
}
|
16584
|
-
arg1 = (
|
16585
|
-
|
16586
|
-
|
16491
|
+
arg1 = (pn_messenger_t *)(argp1);
|
16492
|
+
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
16493
|
+
if (!SWIG_IsOK(res2)) {
|
16494
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_messenger_get_remote_idle_timeout", 2, argv[1] ));
|
16495
|
+
}
|
16496
|
+
arg2 = (char *)(buf2);
|
16497
|
+
result = (pn_millis_t)pn_messenger_get_remote_idle_timeout(arg1,(char const *)arg2);
|
16498
|
+
vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
|
16499
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
16587
16500
|
return vresult;
|
16588
16501
|
fail:
|
16502
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
16589
16503
|
return Qnil;
|
16590
16504
|
}
|
16591
16505
|
|
16592
16506
|
|
16593
16507
|
SWIGINTERN VALUE
|
16594
|
-
|
16595
|
-
|
16508
|
+
_wrap_pn_messenger_set_ssl_peer_authentication_mode(int argc, VALUE *argv, VALUE self) {
|
16509
|
+
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
16510
|
+
pn_ssl_verify_mode_t arg2 ;
|
16596
16511
|
void *argp1 = 0 ;
|
16597
16512
|
int res1 = 0 ;
|
16598
|
-
|
16513
|
+
int val2 ;
|
16514
|
+
int ecode2 = 0 ;
|
16515
|
+
int result;
|
16599
16516
|
VALUE vresult = Qnil;
|
16600
16517
|
|
16601
|
-
if ((argc <
|
16602
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
16518
|
+
if ((argc < 2) || (argc > 2)) {
|
16519
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
16603
16520
|
}
|
16604
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,
|
16521
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
16605
16522
|
if (!SWIG_IsOK(res1)) {
|
16606
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "
|
16523
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_set_ssl_peer_authentication_mode", 1, argv[0] ));
|
16607
16524
|
}
|
16608
|
-
arg1 = (
|
16609
|
-
|
16610
|
-
|
16525
|
+
arg1 = (pn_messenger_t *)(argp1);
|
16526
|
+
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
16527
|
+
if (!SWIG_IsOK(ecode2)) {
|
16528
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_ssl_verify_mode_t","pn_messenger_set_ssl_peer_authentication_mode", 2, argv[1] ));
|
16529
|
+
}
|
16530
|
+
arg2 = (pn_ssl_verify_mode_t)(val2);
|
16531
|
+
result = (int)pn_messenger_set_ssl_peer_authentication_mode(arg1,arg2);
|
16532
|
+
vresult = SWIG_From_int((int)(result));
|
16611
16533
|
return vresult;
|
16612
16534
|
fail:
|
16613
16535
|
return Qnil;
|
@@ -21249,30 +21171,6 @@ fail:
|
|
21249
21171
|
}
|
21250
21172
|
|
21251
21173
|
|
21252
|
-
SWIGINTERN VALUE
|
21253
|
-
_wrap_pn_reactor_io(int argc, VALUE *argv, VALUE self) {
|
21254
|
-
pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
|
21255
|
-
void *argp1 = 0 ;
|
21256
|
-
int res1 = 0 ;
|
21257
|
-
pn_io_t *result = 0 ;
|
21258
|
-
VALUE vresult = Qnil;
|
21259
|
-
|
21260
|
-
if ((argc < 1) || (argc > 1)) {
|
21261
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
21262
|
-
}
|
21263
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
|
21264
|
-
if (!SWIG_IsOK(res1)) {
|
21265
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_io", 1, argv[0] ));
|
21266
|
-
}
|
21267
|
-
arg1 = (pn_reactor_t *)(argp1);
|
21268
|
-
result = (pn_io_t *)pn_reactor_io(arg1);
|
21269
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_io_t, 0 | 0 );
|
21270
|
-
return vresult;
|
21271
|
-
fail:
|
21272
|
-
return Qnil;
|
21273
|
-
}
|
21274
|
-
|
21275
|
-
|
21276
21174
|
SWIGINTERN VALUE
|
21277
21175
|
_wrap_pn_reactor_children(int argc, VALUE *argv, VALUE self) {
|
21278
21176
|
pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
|
@@ -21404,6 +21302,30 @@ fail:
|
|
21404
21302
|
}
|
21405
21303
|
|
21406
21304
|
|
21305
|
+
SWIGINTERN VALUE
|
21306
|
+
_wrap_pn_reactor_error(int argc, VALUE *argv, VALUE self) {
|
21307
|
+
pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
|
21308
|
+
void *argp1 = 0 ;
|
21309
|
+
int res1 = 0 ;
|
21310
|
+
pn_error_t *result = 0 ;
|
21311
|
+
VALUE vresult = Qnil;
|
21312
|
+
|
21313
|
+
if ((argc < 1) || (argc > 1)) {
|
21314
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
21315
|
+
}
|
21316
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_reactor_t, 0 | 0 );
|
21317
|
+
if (!SWIG_IsOK(res1)) {
|
21318
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_reactor_t *","pn_reactor_error", 1, argv[0] ));
|
21319
|
+
}
|
21320
|
+
arg1 = (pn_reactor_t *)(argp1);
|
21321
|
+
result = (pn_error_t *)pn_reactor_error(arg1);
|
21322
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 );
|
21323
|
+
return vresult;
|
21324
|
+
fail:
|
21325
|
+
return Qnil;
|
21326
|
+
}
|
21327
|
+
|
21328
|
+
|
21407
21329
|
SWIGINTERN VALUE
|
21408
21330
|
_wrap_pn_reactor_connection_to_host(int argc, VALUE *argv, VALUE self) {
|
21409
21331
|
pn_reactor_t *arg1 = (pn_reactor_t *) 0 ;
|
@@ -22129,6 +22051,30 @@ fail:
|
|
22129
22051
|
}
|
22130
22052
|
|
22131
22053
|
|
22054
|
+
SWIGINTERN VALUE
|
22055
|
+
_wrap_pn_event_root(int argc, VALUE *argv, VALUE self) {
|
22056
|
+
pn_event_t *arg1 = (pn_event_t *) 0 ;
|
22057
|
+
void *argp1 = 0 ;
|
22058
|
+
int res1 = 0 ;
|
22059
|
+
pn_handler_t *result = 0 ;
|
22060
|
+
VALUE vresult = Qnil;
|
22061
|
+
|
22062
|
+
if ((argc < 1) || (argc > 1)) {
|
22063
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
22064
|
+
}
|
22065
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_t, 0 | 0 );
|
22066
|
+
if (!SWIG_IsOK(res1)) {
|
22067
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_t *","pn_event_root", 1, argv[0] ));
|
22068
|
+
}
|
22069
|
+
arg1 = (pn_event_t *)(argp1);
|
22070
|
+
result = (pn_handler_t *)pn_event_root(arg1);
|
22071
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_handler_t, 0 | 0 );
|
22072
|
+
return vresult;
|
22073
|
+
fail:
|
22074
|
+
return Qnil;
|
22075
|
+
}
|
22076
|
+
|
22077
|
+
|
22132
22078
|
SWIGINTERN VALUE
|
22133
22079
|
_wrap_pn_handshaker(int argc, VALUE *argv, VALUE self) {
|
22134
22080
|
pn_handshaker_t *result = 0 ;
|
@@ -22203,7 +22149,7 @@ static swig_type_info _swigt__p_long_long = {"_p_long_long", "int64_t *|long lon
|
|
22203
22149
|
static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
|
22204
22150
|
static swig_type_info _swigt__p_pn_acceptor_t = {"_p_pn_acceptor_t", "struct pn_acceptor_t *|pn_acceptor_t *", 0, 0, (void*)0, 0};
|
22205
22151
|
static swig_type_info _swigt__p_pn_atom_t = {"_p_pn_atom_t", "pn_atom_t *", 0, 0, (void*)0, 0};
|
22206
|
-
static swig_type_info _swigt__p_pn_bytes_t = {"_p_pn_bytes_t", "pn_bytes_t *", 0, 0, (void*)0, 0};
|
22152
|
+
static swig_type_info _swigt__p_pn_bytes_t = {"_p_pn_bytes_t", "struct pn_bytes_t *|pn_bytes_t *", 0, 0, (void*)0, 0};
|
22207
22153
|
static swig_type_info _swigt__p_pn_cid_t = {"_p_pn_cid_t", "pn_cid_t *", 0, 0, (void*)0, 0};
|
22208
22154
|
static swig_type_info _swigt__p_pn_class_t = {"_p_pn_class_t", "struct pn_class_t *|pn_class_t *", 0, 0, (void*)0, 0};
|
22209
22155
|
static swig_type_info _swigt__p_pn_collector_t = {"_p_pn_collector_t", "struct pn_collector_t *|pn_collector_t *", 0, 0, (void*)0, 0};
|
@@ -22216,12 +22162,12 @@ static swig_type_info _swigt__p_pn_disposition_t = {"_p_pn_disposition_t", "stru
|
|
22216
22162
|
static swig_type_info _swigt__p_pn_distribution_mode_t = {"_p_pn_distribution_mode_t", "enum pn_distribution_mode_t *|pn_distribution_mode_t *", 0, 0, (void*)0, 0};
|
22217
22163
|
static swig_type_info _swigt__p_pn_durability_t = {"_p_pn_durability_t", "enum pn_durability_t *|pn_durability_t *", 0, 0, (void*)0, 0};
|
22218
22164
|
static swig_type_info _swigt__p_pn_error_t = {"_p_pn_error_t", "struct pn_error_t *|pn_error_t *", 0, 0, (void*)0, 0};
|
22165
|
+
static swig_type_info _swigt__p_pn_event_batch_t = {"_p_pn_event_batch_t", "struct pn_event_batch_t *|pn_event_batch_t *", 0, 0, (void*)0, 0};
|
22219
22166
|
static swig_type_info _swigt__p_pn_event_t = {"_p_pn_event_t", "struct pn_event_t *|pn_event_t *", 0, 0, (void*)0, 0};
|
22220
22167
|
static swig_type_info _swigt__p_pn_event_type_t = {"_p_pn_event_type_t", "enum pn_event_type_t *|pn_event_type_t *", 0, 0, (void*)0, 0};
|
22221
22168
|
static swig_type_info _swigt__p_pn_expiry_policy_t = {"_p_pn_expiry_policy_t", "enum pn_expiry_policy_t *|pn_expiry_policy_t *", 0, 0, (void*)0, 0};
|
22222
22169
|
static swig_type_info _swigt__p_pn_handler_t = {"_p_pn_handler_t", "pn_handshaker_t *|struct pn_handler_t *|pn_flowcontroller_t *|pn_handler_t *|pn_iohandler_t *", 0, 0, (void*)0, 0};
|
22223
22170
|
static swig_type_info _swigt__p_pn_hash_t = {"_p_pn_hash_t", "struct pn_hash_t *|pn_hash_t *", 0, 0, (void*)0, 0};
|
22224
|
-
static swig_type_info _swigt__p_pn_io_t = {"_p_pn_io_t", "struct pn_io_t *|pn_io_t *", 0, 0, (void*)0, 0};
|
22225
22171
|
static swig_type_info _swigt__p_pn_iterator_t = {"_p_pn_iterator_t", "pn_selectables_t *|struct pn_iterator_t *|pn_iterator_t *", 0, 0, (void*)0, 0};
|
22226
22172
|
static swig_type_info _swigt__p_pn_link_t = {"_p_pn_link_t", "struct pn_link_t *|pn_link_t *", 0, 0, (void*)0, 0};
|
22227
22173
|
static swig_type_info _swigt__p_pn_list_t = {"_p_pn_list_t", "struct pn_list_t *|pn_list_t *", 0, 0, (void*)0, 0};
|
@@ -22231,10 +22177,10 @@ static swig_type_info _swigt__p_pn_messenger_t = {"_p_pn_messenger_t", "struct p
|
|
22231
22177
|
static swig_type_info _swigt__p_pn_rcv_settle_mode_t = {"_p_pn_rcv_settle_mode_t", "enum pn_rcv_settle_mode_t *|pn_rcv_settle_mode_t *", 0, 0, (void*)0, 0};
|
22232
22178
|
static swig_type_info _swigt__p_pn_reactor_t = {"_p_pn_reactor_t", "struct pn_reactor_t *|pn_reactor_t *", 0, 0, (void*)0, 0};
|
22233
22179
|
static swig_type_info _swigt__p_pn_record_t = {"_p_pn_record_t", "struct pn_record_t *|pn_record_t *", 0, 0, (void*)0, 0};
|
22180
|
+
static swig_type_info _swigt__p_pn_rwbytes_t = {"_p_pn_rwbytes_t", "struct pn_rwbytes_t *|pn_rwbytes_t *", 0, 0, (void*)0, 0};
|
22234
22181
|
static swig_type_info _swigt__p_pn_sasl_outcome_t = {"_p_pn_sasl_outcome_t", "enum pn_sasl_outcome_t *|pn_sasl_outcome_t *", 0, 0, (void*)0, 0};
|
22235
22182
|
static swig_type_info _swigt__p_pn_sasl_t = {"_p_pn_sasl_t", "struct pn_sasl_t *|pn_sasl_t *", 0, 0, (void*)0, 0};
|
22236
22183
|
static swig_type_info _swigt__p_pn_selectable_t = {"_p_pn_selectable_t", "struct pn_selectable_t *|pn_selectable_t *", 0, 0, (void*)0, 0};
|
22237
|
-
static swig_type_info _swigt__p_pn_selector_t = {"_p_pn_selector_t", "struct pn_selector_t *|pn_selector_t *", 0, 0, (void*)0, 0};
|
22238
22184
|
static swig_type_info _swigt__p_pn_session_t = {"_p_pn_session_t", "struct pn_session_t *|pn_session_t *", 0, 0, (void*)0, 0};
|
22239
22185
|
static swig_type_info _swigt__p_pn_snd_settle_mode_t = {"_p_pn_snd_settle_mode_t", "enum pn_snd_settle_mode_t *|pn_snd_settle_mode_t *", 0, 0, (void*)0, 0};
|
22240
22186
|
static swig_type_info _swigt__p_pn_ssl_cert_subject_subfield = {"_p_pn_ssl_cert_subject_subfield", "enum pn_ssl_cert_subject_subfield *|pn_ssl_cert_subject_subfield *", 0, 0, (void*)0, 0};
|
@@ -22293,12 +22239,12 @@ static swig_type_info *swig_type_initial[] = {
|
|
22293
22239
|
&_swigt__p_pn_distribution_mode_t,
|
22294
22240
|
&_swigt__p_pn_durability_t,
|
22295
22241
|
&_swigt__p_pn_error_t,
|
22242
|
+
&_swigt__p_pn_event_batch_t,
|
22296
22243
|
&_swigt__p_pn_event_t,
|
22297
22244
|
&_swigt__p_pn_event_type_t,
|
22298
22245
|
&_swigt__p_pn_expiry_policy_t,
|
22299
22246
|
&_swigt__p_pn_handler_t,
|
22300
22247
|
&_swigt__p_pn_hash_t,
|
22301
|
-
&_swigt__p_pn_io_t,
|
22302
22248
|
&_swigt__p_pn_iterator_t,
|
22303
22249
|
&_swigt__p_pn_link_t,
|
22304
22250
|
&_swigt__p_pn_list_t,
|
@@ -22308,10 +22254,10 @@ static swig_type_info *swig_type_initial[] = {
|
|
22308
22254
|
&_swigt__p_pn_rcv_settle_mode_t,
|
22309
22255
|
&_swigt__p_pn_reactor_t,
|
22310
22256
|
&_swigt__p_pn_record_t,
|
22257
|
+
&_swigt__p_pn_rwbytes_t,
|
22311
22258
|
&_swigt__p_pn_sasl_outcome_t,
|
22312
22259
|
&_swigt__p_pn_sasl_t,
|
22313
22260
|
&_swigt__p_pn_selectable_t,
|
22314
|
-
&_swigt__p_pn_selector_t,
|
22315
22261
|
&_swigt__p_pn_session_t,
|
22316
22262
|
&_swigt__p_pn_snd_settle_mode_t,
|
22317
22263
|
&_swigt__p_pn_ssl_cert_subject_subfield,
|
@@ -22370,12 +22316,12 @@ static swig_cast_info _swigc__p_pn_disposition_t[] = { {&_swigt__p_pn_dispositi
|
|
22370
22316
|
static swig_cast_info _swigc__p_pn_distribution_mode_t[] = { {&_swigt__p_pn_distribution_mode_t, 0, 0, 0},{0, 0, 0, 0}};
|
22371
22317
|
static swig_cast_info _swigc__p_pn_durability_t[] = { {&_swigt__p_pn_durability_t, 0, 0, 0},{0, 0, 0, 0}};
|
22372
22318
|
static swig_cast_info _swigc__p_pn_error_t[] = { {&_swigt__p_pn_error_t, 0, 0, 0},{0, 0, 0, 0}};
|
22319
|
+
static swig_cast_info _swigc__p_pn_event_batch_t[] = { {&_swigt__p_pn_event_batch_t, 0, 0, 0},{0, 0, 0, 0}};
|
22373
22320
|
static swig_cast_info _swigc__p_pn_event_t[] = { {&_swigt__p_pn_event_t, 0, 0, 0},{0, 0, 0, 0}};
|
22374
22321
|
static swig_cast_info _swigc__p_pn_event_type_t[] = { {&_swigt__p_pn_event_type_t, 0, 0, 0},{0, 0, 0, 0}};
|
22375
22322
|
static swig_cast_info _swigc__p_pn_expiry_policy_t[] = { {&_swigt__p_pn_expiry_policy_t, 0, 0, 0},{0, 0, 0, 0}};
|
22376
22323
|
static swig_cast_info _swigc__p_pn_handler_t[] = { {&_swigt__p_pn_handler_t, 0, 0, 0},{0, 0, 0, 0}};
|
22377
22324
|
static swig_cast_info _swigc__p_pn_hash_t[] = { {&_swigt__p_pn_hash_t, 0, 0, 0},{0, 0, 0, 0}};
|
22378
|
-
static swig_cast_info _swigc__p_pn_io_t[] = { {&_swigt__p_pn_io_t, 0, 0, 0},{0, 0, 0, 0}};
|
22379
22325
|
static swig_cast_info _swigc__p_pn_iterator_t[] = { {&_swigt__p_pn_iterator_t, 0, 0, 0},{0, 0, 0, 0}};
|
22380
22326
|
static swig_cast_info _swigc__p_pn_link_t[] = { {&_swigt__p_pn_link_t, 0, 0, 0},{0, 0, 0, 0}};
|
22381
22327
|
static swig_cast_info _swigc__p_pn_list_t[] = { {&_swigt__p_pn_list_t, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -22385,10 +22331,10 @@ static swig_cast_info _swigc__p_pn_messenger_t[] = { {&_swigt__p_pn_messenger_t
|
|
22385
22331
|
static swig_cast_info _swigc__p_pn_rcv_settle_mode_t[] = { {&_swigt__p_pn_rcv_settle_mode_t, 0, 0, 0},{0, 0, 0, 0}};
|
22386
22332
|
static swig_cast_info _swigc__p_pn_reactor_t[] = { {&_swigt__p_pn_reactor_t, 0, 0, 0},{0, 0, 0, 0}};
|
22387
22333
|
static swig_cast_info _swigc__p_pn_record_t[] = { {&_swigt__p_pn_record_t, 0, 0, 0},{0, 0, 0, 0}};
|
22334
|
+
static swig_cast_info _swigc__p_pn_rwbytes_t[] = { {&_swigt__p_pn_rwbytes_t, 0, 0, 0},{0, 0, 0, 0}};
|
22388
22335
|
static swig_cast_info _swigc__p_pn_sasl_outcome_t[] = { {&_swigt__p_pn_sasl_outcome_t, 0, 0, 0},{0, 0, 0, 0}};
|
22389
22336
|
static swig_cast_info _swigc__p_pn_sasl_t[] = { {&_swigt__p_pn_sasl_t, 0, 0, 0},{0, 0, 0, 0}};
|
22390
22337
|
static swig_cast_info _swigc__p_pn_selectable_t[] = { {&_swigt__p_pn_selectable_t, 0, 0, 0},{0, 0, 0, 0}};
|
22391
|
-
static swig_cast_info _swigc__p_pn_selector_t[] = { {&_swigt__p_pn_selector_t, 0, 0, 0},{0, 0, 0, 0}};
|
22392
22338
|
static swig_cast_info _swigc__p_pn_session_t[] = { {&_swigt__p_pn_session_t, 0, 0, 0},{0, 0, 0, 0}};
|
22393
22339
|
static swig_cast_info _swigc__p_pn_snd_settle_mode_t[] = { {&_swigt__p_pn_snd_settle_mode_t, 0, 0, 0},{0, 0, 0, 0}};
|
22394
22340
|
static swig_cast_info _swigc__p_pn_ssl_cert_subject_subfield[] = { {&_swigt__p_pn_ssl_cert_subject_subfield, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -22447,12 +22393,12 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
22447
22393
|
_swigc__p_pn_distribution_mode_t,
|
22448
22394
|
_swigc__p_pn_durability_t,
|
22449
22395
|
_swigc__p_pn_error_t,
|
22396
|
+
_swigc__p_pn_event_batch_t,
|
22450
22397
|
_swigc__p_pn_event_t,
|
22451
22398
|
_swigc__p_pn_event_type_t,
|
22452
22399
|
_swigc__p_pn_expiry_policy_t,
|
22453
22400
|
_swigc__p_pn_handler_t,
|
22454
22401
|
_swigc__p_pn_hash_t,
|
22455
|
-
_swigc__p_pn_io_t,
|
22456
22402
|
_swigc__p_pn_iterator_t,
|
22457
22403
|
_swigc__p_pn_link_t,
|
22458
22404
|
_swigc__p_pn_list_t,
|
@@ -22462,10 +22408,10 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
22462
22408
|
_swigc__p_pn_rcv_settle_mode_t,
|
22463
22409
|
_swigc__p_pn_reactor_t,
|
22464
22410
|
_swigc__p_pn_record_t,
|
22411
|
+
_swigc__p_pn_rwbytes_t,
|
22465
22412
|
_swigc__p_pn_sasl_outcome_t,
|
22466
22413
|
_swigc__p_pn_sasl_t,
|
22467
22414
|
_swigc__p_pn_selectable_t,
|
22468
|
-
_swigc__p_pn_selector_t,
|
22469
22415
|
_swigc__p_pn_session_t,
|
22470
22416
|
_swigc__p_pn_snd_settle_mode_t,
|
22471
22417
|
_swigc__p_pn_ssl_cert_subject_subfield,
|
@@ -22794,12 +22740,14 @@ SWIGEXPORT void Init_cproton(void) {
|
|
22794
22740
|
rb_define_module_function(mCproton, "pn_rbhandler", _wrap_pn_rbhandler, -1);
|
22795
22741
|
rb_define_const(mCproton, "PROTON_IMPORT_EXPORT_H", SWIG_From_int((int)(1)));
|
22796
22742
|
rb_define_const(mCproton, "PN_VERSION_MAJOR", SWIG_From_int((int)(0)));
|
22797
|
-
rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(
|
22743
|
+
rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(17)));
|
22798
22744
|
rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(0)));
|
22799
22745
|
rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1)));
|
22800
22746
|
rb_define_const(mCproton, "PN_MILLIS_MAX", SWIG_From_unsigned_SS_int((unsigned int)((~0U))));
|
22801
|
-
rb_define_module_function(mCproton, "pn_timestamp_now", _wrap_pn_timestamp_now, -1);
|
22802
22747
|
rb_define_module_function(mCproton, "pn_bytes", _wrap_pn_bytes, -1);
|
22748
|
+
rb_define_singleton_method(mCproton, "pn_bytes_null", _wrap_pn_bytes_null_get, 0);
|
22749
|
+
rb_define_module_function(mCproton, "pn_rwbytes", _wrap_pn_rwbytes, -1);
|
22750
|
+
rb_define_singleton_method(mCproton, "pn_rwbytes_null", _wrap_pn_rwbytes_null_get, 0);
|
22803
22751
|
rb_define_const(mCproton, "PROTON_OBJECT_H", SWIG_From_int((int)(1)));
|
22804
22752
|
rb_define_singleton_method(mCproton, "PN_OBJECT", _wrap_PN_OBJECT_get, 0);
|
22805
22753
|
rb_define_singleton_method(mCproton, "PN_VOID", _wrap_PN_VOID_get, 0);
|
@@ -22816,6 +22764,10 @@ SWIGEXPORT void Init_cproton(void) {
|
|
22816
22764
|
rb_define_module_function(mCproton, "pn_class_compare", _wrap_pn_class_compare, -1);
|
22817
22765
|
rb_define_module_function(mCproton, "pn_class_equals", _wrap_pn_class_equals, -1);
|
22818
22766
|
rb_define_module_function(mCproton, "pn_class_inspect", _wrap_pn_class_inspect, -1);
|
22767
|
+
rb_define_module_function(mCproton, "pn_void_new", _wrap_pn_void_new, -1);
|
22768
|
+
rb_define_module_function(mCproton, "pn_void_incref", _wrap_pn_void_incref, -1);
|
22769
|
+
rb_define_module_function(mCproton, "pn_void_decref", _wrap_pn_void_decref, -1);
|
22770
|
+
rb_define_module_function(mCproton, "pn_void_refcount", _wrap_pn_void_refcount, -1);
|
22819
22771
|
rb_define_module_function(mCproton, "pn_void_hashcode", _wrap_pn_void_hashcode, -1);
|
22820
22772
|
rb_define_module_function(mCproton, "pn_void_compare", _wrap_pn_void_compare, -1);
|
22821
22773
|
rb_define_module_function(mCproton, "pn_void_inspect", _wrap_pn_void_inspect, -1);
|
@@ -22923,6 +22875,9 @@ SWIGEXPORT void Init_cproton(void) {
|
|
22923
22875
|
rb_define_module_function(mCproton, "pn_condition_is_redirect", _wrap_pn_condition_is_redirect, -1);
|
22924
22876
|
rb_define_module_function(mCproton, "pn_condition_redirect_host", _wrap_pn_condition_redirect_host, -1);
|
22925
22877
|
rb_define_module_function(mCproton, "pn_condition_redirect_port", _wrap_pn_condition_redirect_port, -1);
|
22878
|
+
rb_define_module_function(mCproton, "pn_condition_copy", _wrap_pn_condition_copy, -1);
|
22879
|
+
rb_define_module_function(mCproton, "pn_condition", _wrap_pn_condition, -1);
|
22880
|
+
rb_define_module_function(mCproton, "pn_condition_free", _wrap_pn_condition_free, -1);
|
22926
22881
|
rb_define_const(mCproton, "PROTON_CONNECTION_H", SWIG_From_int((int)(1)));
|
22927
22882
|
rb_define_const(mCproton, "PN_LOCAL_UNINIT", SWIG_From_int((int)((1))));
|
22928
22883
|
rb_define_const(mCproton, "PN_LOCAL_ACTIVE", SWIG_From_int((int)((2))));
|
@@ -22937,6 +22892,7 @@ SWIGEXPORT void Init_cproton(void) {
|
|
22937
22892
|
rb_define_module_function(mCproton, "pn_connection_release", _wrap_pn_connection_release, -1);
|
22938
22893
|
rb_define_module_function(mCproton, "pn_connection_error", _wrap_pn_connection_error, -1);
|
22939
22894
|
rb_define_module_function(mCproton, "pn_connection_collect", _wrap_pn_connection_collect, -1);
|
22895
|
+
rb_define_module_function(mCproton, "pn_connection_collector", _wrap_pn_connection_collector, -1);
|
22940
22896
|
rb_define_module_function(mCproton, "pn_connection_get_context", _wrap_pn_connection_get_context, -1);
|
22941
22897
|
rb_define_module_function(mCproton, "pn_connection_set_context", _wrap_pn_connection_set_context, -1);
|
22942
22898
|
rb_define_module_function(mCproton, "pn_connection_attachments", _wrap_pn_connection_attachments, -1);
|
@@ -23034,6 +22990,9 @@ SWIGEXPORT void Init_cproton(void) {
|
|
23034
22990
|
rb_define_module_function(mCproton, "pn_link_drain", _wrap_pn_link_drain, -1);
|
23035
22991
|
rb_define_module_function(mCproton, "pn_link_set_drain", _wrap_pn_link_set_drain, -1);
|
23036
22992
|
rb_define_module_function(mCproton, "pn_link_draining", _wrap_pn_link_draining, -1);
|
22993
|
+
rb_define_module_function(mCproton, "pn_link_max_message_size", _wrap_pn_link_max_message_size, -1);
|
22994
|
+
rb_define_module_function(mCproton, "pn_link_set_max_message_size", _wrap_pn_link_set_max_message_size, -1);
|
22995
|
+
rb_define_module_function(mCproton, "pn_link_remote_max_message_size", _wrap_pn_link_remote_max_message_size, -1);
|
23037
22996
|
rb_define_const(mCproton, "PROTON_TERMINUS_H", SWIG_From_int((int)(1)));
|
23038
22997
|
rb_define_const(mCproton, "PN_UNSPECIFIED", SWIG_From_int((int)(PN_UNSPECIFIED)));
|
23039
22998
|
rb_define_const(mCproton, "PN_SOURCE", SWIG_From_int((int)(PN_SOURCE)));
|
@@ -23194,7 +23153,9 @@ SWIGEXPORT void Init_cproton(void) {
|
|
23194
23153
|
rb_define_const(mCproton, "PN_TRANSPORT_AUTHENTICATED", SWIG_From_int((int)(PN_TRANSPORT_AUTHENTICATED)));
|
23195
23154
|
rb_define_const(mCproton, "PN_TRANSPORT_ERROR", SWIG_From_int((int)(PN_TRANSPORT_ERROR)));
|
23196
23155
|
rb_define_const(mCproton, "PN_TRANSPORT_HEAD_CLOSED", SWIG_From_int((int)(PN_TRANSPORT_HEAD_CLOSED)));
|
23156
|
+
rb_define_const(mCproton, "PN_TRANSPORT_WRITE_CLOSED", SWIG_From_int((int)(PN_TRANSPORT_WRITE_CLOSED)));
|
23197
23157
|
rb_define_const(mCproton, "PN_TRANSPORT_TAIL_CLOSED", SWIG_From_int((int)(PN_TRANSPORT_TAIL_CLOSED)));
|
23158
|
+
rb_define_const(mCproton, "PN_TRANSPORT_READ_CLOSED", SWIG_From_int((int)(PN_TRANSPORT_READ_CLOSED)));
|
23198
23159
|
rb_define_const(mCproton, "PN_TRANSPORT_CLOSED", SWIG_From_int((int)(PN_TRANSPORT_CLOSED)));
|
23199
23160
|
rb_define_const(mCproton, "PN_SELECTABLE_INIT", SWIG_From_int((int)(PN_SELECTABLE_INIT)));
|
23200
23161
|
rb_define_const(mCproton, "PN_SELECTABLE_UPDATED", SWIG_From_int((int)(PN_SELECTABLE_UPDATED)));
|
@@ -23203,6 +23164,12 @@ SWIGEXPORT void Init_cproton(void) {
|
|
23203
23164
|
rb_define_const(mCproton, "PN_SELECTABLE_ERROR", SWIG_From_int((int)(PN_SELECTABLE_ERROR)));
|
23204
23165
|
rb_define_const(mCproton, "PN_SELECTABLE_EXPIRED", SWIG_From_int((int)(PN_SELECTABLE_EXPIRED)));
|
23205
23166
|
rb_define_const(mCproton, "PN_SELECTABLE_FINAL", SWIG_From_int((int)(PN_SELECTABLE_FINAL)));
|
23167
|
+
rb_define_const(mCproton, "PN_CONNECTION_WAKE", SWIG_From_int((int)(PN_CONNECTION_WAKE)));
|
23168
|
+
rb_define_const(mCproton, "PN_LISTENER_ACCEPT", SWIG_From_int((int)(PN_LISTENER_ACCEPT)));
|
23169
|
+
rb_define_const(mCproton, "PN_LISTENER_CLOSE", SWIG_From_int((int)(PN_LISTENER_CLOSE)));
|
23170
|
+
rb_define_const(mCproton, "PN_PROACTOR_INTERRUPT", SWIG_From_int((int)(PN_PROACTOR_INTERRUPT)));
|
23171
|
+
rb_define_const(mCproton, "PN_PROACTOR_TIMEOUT", SWIG_From_int((int)(PN_PROACTOR_TIMEOUT)));
|
23172
|
+
rb_define_const(mCproton, "PN_PROACTOR_INACTIVE", SWIG_From_int((int)(PN_PROACTOR_INACTIVE)));
|
23206
23173
|
rb_define_module_function(mCproton, "pn_event_type_name", _wrap_pn_event_type_name, -1);
|
23207
23174
|
rb_define_module_function(mCproton, "pn_collector", _wrap_pn_collector, -1);
|
23208
23175
|
rb_define_module_function(mCproton, "pn_collector_free", _wrap_pn_collector_free, -1);
|
@@ -23210,17 +23177,19 @@ SWIGEXPORT void Init_cproton(void) {
|
|
23210
23177
|
rb_define_module_function(mCproton, "pn_collector_put", _wrap_pn_collector_put, -1);
|
23211
23178
|
rb_define_module_function(mCproton, "pn_collector_peek", _wrap_pn_collector_peek, -1);
|
23212
23179
|
rb_define_module_function(mCproton, "pn_collector_pop", _wrap_pn_collector_pop, -1);
|
23180
|
+
rb_define_module_function(mCproton, "pn_collector_next", _wrap_pn_collector_next, -1);
|
23181
|
+
rb_define_module_function(mCproton, "pn_collector_prev", _wrap_pn_collector_prev, -1);
|
23213
23182
|
rb_define_module_function(mCproton, "pn_collector_more", _wrap_pn_collector_more, -1);
|
23214
23183
|
rb_define_module_function(mCproton, "pn_event_type", _wrap_pn_event_type, -1);
|
23215
23184
|
rb_define_module_function(mCproton, "pn_event_class", _wrap_pn_event_class, -1);
|
23216
23185
|
rb_define_module_function(mCproton, "pn_event_context", _wrap_pn_event_context, -1);
|
23217
|
-
rb_define_module_function(mCproton, "pn_event_root", _wrap_pn_event_root, -1);
|
23218
23186
|
rb_define_module_function(mCproton, "pn_event_connection", _wrap_pn_event_connection, -1);
|
23219
23187
|
rb_define_module_function(mCproton, "pn_event_session", _wrap_pn_event_session, -1);
|
23220
23188
|
rb_define_module_function(mCproton, "pn_event_link", _wrap_pn_event_link, -1);
|
23221
23189
|
rb_define_module_function(mCproton, "pn_event_delivery", _wrap_pn_event_delivery, -1);
|
23222
23190
|
rb_define_module_function(mCproton, "pn_event_transport", _wrap_pn_event_transport, -1);
|
23223
23191
|
rb_define_module_function(mCproton, "pn_event_attachments", _wrap_pn_event_attachments, -1);
|
23192
|
+
rb_define_module_function(mCproton, "pn_event_batch_next", _wrap_pn_event_batch_next, -1);
|
23224
23193
|
rb_define_module_function(mCproton, "pn_event_copy", _wrap_pn_event_copy, -1);
|
23225
23194
|
rb_define_const(mCproton, "PROTON_MESSAGE_H", SWIG_From_int((int)(1)));
|
23226
23195
|
rb_define_const(mCproton, "PN_DEFAULT_PRIORITY", SWIG_From_int((int)((4))));
|
@@ -23364,23 +23333,8 @@ SWIGEXPORT void Init_cproton(void) {
|
|
23364
23333
|
rb_define_module_function(mCproton, "pn_messenger_set_tracer", _wrap_pn_messenger_set_tracer, -1);
|
23365
23334
|
rb_define_module_function(mCproton, "pn_messenger_get_remote_idle_timeout", _wrap_pn_messenger_get_remote_idle_timeout, -1);
|
23366
23335
|
rb_define_module_function(mCproton, "pn_messenger_set_ssl_peer_authentication_mode", _wrap_pn_messenger_set_ssl_peer_authentication_mode, -1);
|
23367
|
-
rb_define_const(mCproton, "PROTON_IO_H", SWIG_From_int((int)(1)));
|
23368
|
-
rb_define_const(mCproton, "PN_INVALID_SOCKET", SWIG_From_int((int)((-1))));
|
23369
|
-
rb_define_module_function(mCproton, "pn_io", _wrap_pn_io, -1);
|
23370
|
-
rb_define_module_function(mCproton, "pn_io_free", _wrap_pn_io_free, -1);
|
23371
|
-
rb_define_module_function(mCproton, "pn_io_error", _wrap_pn_io_error, -1);
|
23372
|
-
rb_define_module_function(mCproton, "pn_connect", _wrap_pn_connect, -1);
|
23373
|
-
rb_define_module_function(mCproton, "pn_listen", _wrap_pn_listen, -1);
|
23374
|
-
rb_define_module_function(mCproton, "pn_accept", _wrap_pn_accept, -1);
|
23375
|
-
rb_define_module_function(mCproton, "pn_close", _wrap_pn_close, -1);
|
23376
|
-
rb_define_module_function(mCproton, "pn_send", _wrap_pn_send, -1);
|
23377
|
-
rb_define_module_function(mCproton, "pn_recv", _wrap_pn_recv, -1);
|
23378
|
-
rb_define_module_function(mCproton, "pn_pipe", _wrap_pn_pipe, -1);
|
23379
|
-
rb_define_module_function(mCproton, "pn_read", _wrap_pn_read, -1);
|
23380
|
-
rb_define_module_function(mCproton, "pn_write", _wrap_pn_write, -1);
|
23381
|
-
rb_define_module_function(mCproton, "pn_wouldblock", _wrap_pn_wouldblock, -1);
|
23382
|
-
rb_define_module_function(mCproton, "pn_io_selector", _wrap_pn_io_selector, -1);
|
23383
23336
|
rb_define_const(mCproton, "PROTON_SELECTABLE_H", SWIG_From_int((int)(1)));
|
23337
|
+
rb_define_const(mCproton, "PN_INVALID_SOCKET", SWIG_From_int((int)((-1))));
|
23384
23338
|
rb_define_module_function(mCproton, "pn_selectables", _wrap_pn_selectables, -1);
|
23385
23339
|
rb_define_module_function(mCproton, "pn_selectables_next", _wrap_pn_selectables_next, -1);
|
23386
23340
|
rb_define_module_function(mCproton, "pn_selectables_free", _wrap_pn_selectables_free, -1);
|
@@ -23563,6 +23517,7 @@ SWIGEXPORT void Init_cproton(void) {
|
|
23563
23517
|
rb_define_module_function(mCproton, "pn_cast_pn_reactor", _wrap_pn_cast_pn_reactor, -1);
|
23564
23518
|
rb_define_module_function(mCproton, "pn_cast_pn_task", _wrap_pn_cast_pn_task, -1);
|
23565
23519
|
rb_define_module_function(mCproton, "pn_cast_pn_selectable", _wrap_pn_cast_pn_selectable, -1);
|
23520
|
+
rb_define_const(mCproton, "PROTON_URL_H", SWIG_From_int((int)(1)));
|
23566
23521
|
rb_define_module_function(mCproton, "pn_url", _wrap_pn_url, -1);
|
23567
23522
|
rb_define_module_function(mCproton, "pn_url_parse", _wrap_pn_url_parse, -1);
|
23568
23523
|
rb_define_module_function(mCproton, "pn_url_free", _wrap_pn_url_free, -1);
|
@@ -23601,11 +23556,11 @@ SWIGEXPORT void Init_cproton(void) {
|
|
23601
23556
|
rb_define_module_function(mCproton, "pn_reactor_set_global_handler", _wrap_pn_reactor_set_global_handler, -1);
|
23602
23557
|
rb_define_module_function(mCproton, "pn_reactor_get_handler", _wrap_pn_reactor_get_handler, -1);
|
23603
23558
|
rb_define_module_function(mCproton, "pn_reactor_set_handler", _wrap_pn_reactor_set_handler, -1);
|
23604
|
-
rb_define_module_function(mCproton, "pn_reactor_io", _wrap_pn_reactor_io, -1);
|
23605
23559
|
rb_define_module_function(mCproton, "pn_reactor_children", _wrap_pn_reactor_children, -1);
|
23606
23560
|
rb_define_module_function(mCproton, "pn_reactor_selectable", _wrap_pn_reactor_selectable, -1);
|
23607
23561
|
rb_define_module_function(mCproton, "pn_reactor_update", _wrap_pn_reactor_update, -1);
|
23608
23562
|
rb_define_module_function(mCproton, "pn_reactor_acceptor", _wrap_pn_reactor_acceptor, -1);
|
23563
|
+
rb_define_module_function(mCproton, "pn_reactor_error", _wrap_pn_reactor_error, -1);
|
23609
23564
|
rb_define_module_function(mCproton, "pn_reactor_connection_to_host", _wrap_pn_reactor_connection_to_host, -1);
|
23610
23565
|
rb_define_module_function(mCproton, "pn_reactor_connection", _wrap_pn_reactor_connection, -1);
|
23611
23566
|
rb_define_module_function(mCproton, "pn_reactor_set_connection_host", _wrap_pn_reactor_set_connection_host, -1);
|
@@ -23632,6 +23587,7 @@ SWIGEXPORT void Init_cproton(void) {
|
|
23632
23587
|
rb_define_module_function(mCproton, "pn_event_reactor", _wrap_pn_event_reactor, -1);
|
23633
23588
|
rb_define_module_function(mCproton, "pn_record_get_handler", _wrap_pn_record_get_handler, -1);
|
23634
23589
|
rb_define_module_function(mCproton, "pn_record_set_handler", _wrap_pn_record_set_handler, -1);
|
23590
|
+
rb_define_module_function(mCproton, "pn_event_root", _wrap_pn_event_root, -1);
|
23635
23591
|
rb_define_const(mCproton, "PROTON_HANDLERS_H", SWIG_From_int((int)(1)));
|
23636
23592
|
rb_define_module_function(mCproton, "pn_handshaker", _wrap_pn_handshaker, -1);
|
23637
23593
|
rb_define_module_function(mCproton, "pn_iohandler", _wrap_pn_iohandler, -1);
|