qpid_proton 0.18.1 → 0.19.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 +863 -75
- data/lib/codec/data.rb +589 -815
- data/lib/codec/mapping.rb +142 -126
- data/lib/core/condition.rb +89 -0
- data/lib/core/connection.rb +188 -228
- data/lib/core/connection_driver.rb +202 -0
- data/lib/core/container.rb +366 -0
- data/lib/core/delivery.rb +76 -251
- data/lib/core/disposition.rb +21 -35
- data/lib/core/endpoint.rb +21 -53
- data/lib/core/event.rb +156 -0
- data/lib/core/exceptions.rb +109 -106
- data/lib/core/link.rb +24 -49
- data/lib/core/listener.rb +82 -0
- data/lib/core/message.rb +59 -155
- data/lib/core/messaging_handler.rb +190 -0
- data/lib/core/receiver.rb +38 -7
- data/lib/core/sasl.rb +43 -46
- data/lib/core/sender.rb +55 -32
- data/lib/core/session.rb +58 -58
- data/lib/core/ssl.rb +5 -13
- data/lib/core/ssl_details.rb +1 -2
- data/lib/core/ssl_domain.rb +5 -8
- data/lib/core/terminus.rb +62 -30
- data/lib/core/tracker.rb +45 -0
- data/lib/core/transfer.rb +121 -0
- data/lib/core/transport.rb +62 -97
- data/lib/core/uri.rb +73 -0
- data/lib/core/url.rb +11 -7
- data/lib/handler/adapter.rb +78 -0
- data/lib/handler/messaging_adapter.rb +127 -0
- data/lib/handler/messaging_handler.rb +128 -178
- data/lib/handler/reactor_messaging_adapter.rb +158 -0
- data/lib/messenger/messenger.rb +9 -8
- data/lib/messenger/subscription.rb +1 -2
- data/lib/messenger/tracker.rb +1 -2
- data/lib/messenger/tracker_status.rb +1 -2
- data/lib/qpid_proton.rb +36 -66
- data/lib/reactor/container.rb +40 -234
- data/lib/types/array.rb +73 -130
- data/lib/types/described.rb +2 -44
- data/lib/types/hash.rb +19 -56
- data/lib/types/strings.rb +1 -2
- data/lib/types/type.rb +68 -0
- data/lib/util/{handler.rb → deprecation.rb} +22 -15
- data/lib/util/error_handler.rb +4 -25
- data/lib/util/timeout.rb +1 -2
- data/lib/util/version.rb +1 -2
- data/lib/util/wrapper.rb +58 -38
- metadata +16 -33
- data/lib/core/base_handler.rb +0 -31
- data/lib/core/selectable.rb +0 -130
- data/lib/event/collector.rb +0 -148
- data/lib/event/event.rb +0 -318
- data/lib/event/event_base.rb +0 -91
- data/lib/event/event_type.rb +0 -71
- data/lib/handler/acking.rb +0 -70
- data/lib/handler/c_adaptor.rb +0 -47
- data/lib/handler/c_flow_controller.rb +0 -33
- data/lib/handler/endpoint_state_handler.rb +0 -217
- data/lib/handler/incoming_message_handler.rb +0 -74
- data/lib/handler/outgoing_message_handler.rb +0 -100
- data/lib/handler/wrapped_handler.rb +0 -76
- data/lib/reactor/acceptor.rb +0 -41
- data/lib/reactor/backoff.rb +0 -41
- data/lib/reactor/connector.rb +0 -115
- data/lib/reactor/global_overrides.rb +0 -44
- data/lib/reactor/link_option.rb +0 -90
- data/lib/reactor/reactor.rb +0 -196
- data/lib/reactor/session_per_connection.rb +0 -45
- data/lib/reactor/ssl_config.rb +0 -41
- data/lib/reactor/task.rb +0 -39
- data/lib/reactor/urls.rb +0 -45
- data/lib/util/class_wrapper.rb +0 -54
- data/lib/util/condition.rb +0 -47
- data/lib/util/constants.rb +0 -85
- data/lib/util/engine.rb +0 -82
- data/lib/util/reactor.rb +0 -32
- data/lib/util/swig_helper.rb +0 -114
- data/lib/util/uuid.rb +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f385297be1c8a5e6052554821f2231bf09869dfd
|
4
|
+
data.tar.gz: 72345155dbd507d0e2c53fe3a34f27d8f9a4e838
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19d1c1d49c74667d66474320b6f8e382fbc560131286839cba68c8f99e27a660f7627ab6075dd41ba0867a5dd1803dfa4b0ab60930c1a4023fc93c06fc9fc636
|
7
|
+
data.tar.gz: 7ae4b1919814ed6b7091dc36ab758634b3bc82a1deb9b59654a05fc621a5666fe6275ad405c95f4c189d6934db3c58ec4f8dd0196209163c341b6e79c63a5732
|
data/ext/cproton/cproton.c
CHANGED
@@ -1820,65 +1820,66 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1820
1820
|
#define SWIGTYPE_p_pn_class_t swig_types[17]
|
1821
1821
|
#define SWIGTYPE_p_pn_collector_t swig_types[18]
|
1822
1822
|
#define SWIGTYPE_p_pn_condition_t swig_types[19]
|
1823
|
-
#define
|
1824
|
-
#define
|
1825
|
-
#define
|
1826
|
-
#define
|
1827
|
-
#define
|
1828
|
-
#define
|
1829
|
-
#define
|
1830
|
-
#define
|
1831
|
-
#define
|
1832
|
-
#define
|
1833
|
-
#define
|
1834
|
-
#define
|
1835
|
-
#define
|
1836
|
-
#define
|
1837
|
-
#define
|
1838
|
-
#define
|
1839
|
-
#define
|
1840
|
-
#define
|
1841
|
-
#define
|
1842
|
-
#define
|
1843
|
-
#define
|
1844
|
-
#define
|
1845
|
-
#define
|
1846
|
-
#define
|
1847
|
-
#define
|
1848
|
-
#define
|
1849
|
-
#define
|
1850
|
-
#define
|
1851
|
-
#define
|
1852
|
-
#define
|
1853
|
-
#define
|
1854
|
-
#define
|
1855
|
-
#define
|
1856
|
-
#define
|
1857
|
-
#define
|
1858
|
-
#define
|
1859
|
-
#define
|
1860
|
-
#define
|
1861
|
-
#define
|
1862
|
-
#define
|
1863
|
-
#define
|
1864
|
-
#define
|
1865
|
-
#define
|
1866
|
-
#define
|
1867
|
-
#define
|
1868
|
-
#define
|
1869
|
-
#define
|
1870
|
-
#define
|
1871
|
-
#define
|
1872
|
-
#define
|
1873
|
-
#define
|
1874
|
-
#define
|
1875
|
-
#define
|
1876
|
-
#define
|
1877
|
-
#define
|
1878
|
-
#define
|
1879
|
-
#define
|
1880
|
-
|
1881
|
-
static
|
1823
|
+
#define SWIGTYPE_p_pn_connection_driver_t swig_types[20]
|
1824
|
+
#define SWIGTYPE_p_pn_connection_t swig_types[21]
|
1825
|
+
#define SWIGTYPE_p_pn_data_t swig_types[22]
|
1826
|
+
#define SWIGTYPE_p_pn_decimal128_t swig_types[23]
|
1827
|
+
#define SWIGTYPE_p_pn_delivery_t swig_types[24]
|
1828
|
+
#define SWIGTYPE_p_pn_disposition_t swig_types[25]
|
1829
|
+
#define SWIGTYPE_p_pn_distribution_mode_t swig_types[26]
|
1830
|
+
#define SWIGTYPE_p_pn_durability_t swig_types[27]
|
1831
|
+
#define SWIGTYPE_p_pn_error_t swig_types[28]
|
1832
|
+
#define SWIGTYPE_p_pn_event_batch_t swig_types[29]
|
1833
|
+
#define SWIGTYPE_p_pn_event_t swig_types[30]
|
1834
|
+
#define SWIGTYPE_p_pn_event_type_t swig_types[31]
|
1835
|
+
#define SWIGTYPE_p_pn_expiry_policy_t swig_types[32]
|
1836
|
+
#define SWIGTYPE_p_pn_handler_t swig_types[33]
|
1837
|
+
#define SWIGTYPE_p_pn_hash_t swig_types[34]
|
1838
|
+
#define SWIGTYPE_p_pn_iterator_t swig_types[35]
|
1839
|
+
#define SWIGTYPE_p_pn_link_t swig_types[36]
|
1840
|
+
#define SWIGTYPE_p_pn_list_t swig_types[37]
|
1841
|
+
#define SWIGTYPE_p_pn_listener_t swig_types[38]
|
1842
|
+
#define SWIGTYPE_p_pn_map_t swig_types[39]
|
1843
|
+
#define SWIGTYPE_p_pn_message_t swig_types[40]
|
1844
|
+
#define SWIGTYPE_p_pn_messenger_t swig_types[41]
|
1845
|
+
#define SWIGTYPE_p_pn_proactor_t swig_types[42]
|
1846
|
+
#define SWIGTYPE_p_pn_rcv_settle_mode_t swig_types[43]
|
1847
|
+
#define SWIGTYPE_p_pn_reactor_t swig_types[44]
|
1848
|
+
#define SWIGTYPE_p_pn_record_t swig_types[45]
|
1849
|
+
#define SWIGTYPE_p_pn_rwbytes_t swig_types[46]
|
1850
|
+
#define SWIGTYPE_p_pn_sasl_outcome_t swig_types[47]
|
1851
|
+
#define SWIGTYPE_p_pn_sasl_t swig_types[48]
|
1852
|
+
#define SWIGTYPE_p_pn_selectable_t swig_types[49]
|
1853
|
+
#define SWIGTYPE_p_pn_session_t swig_types[50]
|
1854
|
+
#define SWIGTYPE_p_pn_snd_settle_mode_t swig_types[51]
|
1855
|
+
#define SWIGTYPE_p_pn_ssl_cert_subject_subfield swig_types[52]
|
1856
|
+
#define SWIGTYPE_p_pn_ssl_domain_t swig_types[53]
|
1857
|
+
#define SWIGTYPE_p_pn_ssl_hash_alg swig_types[54]
|
1858
|
+
#define SWIGTYPE_p_pn_ssl_mode_t swig_types[55]
|
1859
|
+
#define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[56]
|
1860
|
+
#define SWIGTYPE_p_pn_ssl_t swig_types[57]
|
1861
|
+
#define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[58]
|
1862
|
+
#define SWIGTYPE_p_pn_status_t swig_types[59]
|
1863
|
+
#define SWIGTYPE_p_pn_string_t swig_types[60]
|
1864
|
+
#define SWIGTYPE_p_pn_subscription_t swig_types[61]
|
1865
|
+
#define SWIGTYPE_p_pn_task_t swig_types[62]
|
1866
|
+
#define SWIGTYPE_p_pn_terminus_t swig_types[63]
|
1867
|
+
#define SWIGTYPE_p_pn_terminus_type_t swig_types[64]
|
1868
|
+
#define SWIGTYPE_p_pn_timer_t swig_types[65]
|
1869
|
+
#define SWIGTYPE_p_pn_transport_t swig_types[66]
|
1870
|
+
#define SWIGTYPE_p_pn_type_t swig_types[67]
|
1871
|
+
#define SWIGTYPE_p_pn_url_t swig_types[68]
|
1872
|
+
#define SWIGTYPE_p_pn_uuid_t swig_types[69]
|
1873
|
+
#define SWIGTYPE_p_short swig_types[70]
|
1874
|
+
#define SWIGTYPE_p_signed_char swig_types[71]
|
1875
|
+
#define SWIGTYPE_p_unsigned_char swig_types[72]
|
1876
|
+
#define SWIGTYPE_p_unsigned_int swig_types[73]
|
1877
|
+
#define SWIGTYPE_p_unsigned_long swig_types[74]
|
1878
|
+
#define SWIGTYPE_p_unsigned_long_long swig_types[75]
|
1879
|
+
#define SWIGTYPE_p_unsigned_short swig_types[76]
|
1880
|
+
#define SWIGTYPE_p_void swig_types[77]
|
1881
|
+
static swig_type_info *swig_types[79];
|
1882
|
+
static swig_module_info swig_module = {swig_types, 78, 0, 0, 0, 0};
|
1882
1883
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
1883
1884
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
1884
1885
|
|
@@ -1901,19 +1902,20 @@ static VALUE mCproton;
|
|
1901
1902
|
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
|
1902
1903
|
|
1903
1904
|
|
1905
|
+
#include <proton/connection_driver.h>
|
1904
1906
|
#include <proton/engine.h>
|
1907
|
+
#include <proton/handlers.h>
|
1905
1908
|
#include <proton/message.h>
|
1906
|
-
#include <proton/sasl.h>
|
1907
1909
|
#include <proton/messenger.h>
|
1910
|
+
#include <proton/reactor.h>
|
1911
|
+
#include <proton/sasl.h>
|
1908
1912
|
#include <proton/ssl.h>
|
1909
1913
|
#include <proton/types.h>
|
1910
1914
|
#include <proton/url.h>
|
1911
|
-
#include <proton/reactor.h>
|
1912
|
-
#include <proton/handlers.h>
|
1913
1915
|
|
1914
1916
|
|
1915
1917
|
#if !defined(RSTRING_LEN)
|
1916
|
-
# define RSTRING_LEN(x) (RSTRING(
|
1918
|
+
# define RSTRING_LEN(x) (RSTRING(x)->len)
|
1917
1919
|
# define RSTRING_PTR(x) (RSTRING(x)->ptr)
|
1918
1920
|
#endif
|
1919
1921
|
|
@@ -2488,6 +2490,42 @@ VALUE pni_address_of(void *object) {
|
|
2488
2490
|
}
|
2489
2491
|
|
2490
2492
|
|
2493
|
+
/* Helpers for working with pn_connection_driver_t */
|
2494
|
+
|
2495
|
+
size_t pni_connection_driver_read_size(pn_connection_driver_t* d) {
|
2496
|
+
return pn_connection_driver_read_buffer(d).size;
|
2497
|
+
}
|
2498
|
+
|
2499
|
+
size_t pni_connection_driver_write_size(pn_connection_driver_t* d) {
|
2500
|
+
return pn_connection_driver_write_buffer(d).size;
|
2501
|
+
}
|
2502
|
+
|
2503
|
+
pn_connection_t *pni_connection_driver_connection(pn_connection_driver_t* d) {
|
2504
|
+
return d->connection;
|
2505
|
+
}
|
2506
|
+
|
2507
|
+
pn_transport_t *pni_connection_driver_transport(pn_connection_driver_t* d) {
|
2508
|
+
return d->transport;
|
2509
|
+
}
|
2510
|
+
|
2511
|
+
size_t pni_connection_driver_read_copy(pn_connection_driver_t* d, char *STRING, size_t LENGTH ) {
|
2512
|
+
pn_rwbytes_t rbuf = pn_connection_driver_read_buffer(d);
|
2513
|
+
size_t n = LENGTH < rbuf.size ? LENGTH : rbuf.size;
|
2514
|
+
memcpy(rbuf.start, STRING, n);
|
2515
|
+
pn_connection_driver_read_done(d, n);
|
2516
|
+
return n;
|
2517
|
+
}
|
2518
|
+
|
2519
|
+
pn_connection_driver_t *pni_connection_driver() {
|
2520
|
+
pn_connection_driver_t *d = (pn_connection_driver_t*)malloc(sizeof(*d));
|
2521
|
+
if (pn_connection_driver_init(d, NULL, NULL) != 0) {
|
2522
|
+
free(d);
|
2523
|
+
return NULL;
|
2524
|
+
}
|
2525
|
+
return d;
|
2526
|
+
}
|
2527
|
+
|
2528
|
+
|
2491
2529
|
|
2492
2530
|
SWIGINTERNINLINE VALUE
|
2493
2531
|
SWIG_From_unsigned_SS_long (unsigned long value)
|
@@ -2496,13 +2534,6 @@ SWIG_From_unsigned_SS_long (unsigned long value)
|
|
2496
2534
|
}
|
2497
2535
|
|
2498
2536
|
|
2499
|
-
SWIGINTERNINLINE VALUE
|
2500
|
-
SWIG_From_unsigned_SS_int (unsigned int value)
|
2501
|
-
{
|
2502
|
-
return SWIG_From_unsigned_SS_long (value);
|
2503
|
-
}
|
2504
|
-
|
2505
|
-
|
2506
2537
|
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2507
2538
|
SWIGINTERNINLINE VALUE
|
2508
2539
|
SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
|
@@ -2528,6 +2559,13 @@ SWIG_From_size_t (size_t value)
|
|
2528
2559
|
}
|
2529
2560
|
|
2530
2561
|
|
2562
|
+
SWIGINTERNINLINE VALUE
|
2563
|
+
SWIG_From_unsigned_SS_int (unsigned int value)
|
2564
|
+
{
|
2565
|
+
return SWIG_From_unsigned_SS_long (value);
|
2566
|
+
}
|
2567
|
+
|
2568
|
+
|
2531
2569
|
#include <float.h>
|
2532
2570
|
|
2533
2571
|
|
@@ -2790,6 +2828,9 @@ SWIG_From_float (float value)
|
|
2790
2828
|
pn_task_t *pn_cast_pn_task(void *x) { return (pn_task_t *) x; }
|
2791
2829
|
pn_selectable_t *pn_cast_pn_selectable(void *x) { return (pn_selectable_t *) x; }
|
2792
2830
|
|
2831
|
+
|
2832
|
+
#include <proton/connection_driver.h>
|
2833
|
+
|
2793
2834
|
SWIGINTERN VALUE
|
2794
2835
|
_wrap_pn_message_encode(int argc, VALUE *argv, VALUE self) {
|
2795
2836
|
pn_message_t *arg1 = (pn_message_t *) 0 ;
|
@@ -3844,6 +3885,156 @@ fail:
|
|
3844
3885
|
}
|
3845
3886
|
|
3846
3887
|
|
3888
|
+
SWIGINTERN VALUE
|
3889
|
+
_wrap_pni_connection_driver_read_size(int argc, VALUE *argv, VALUE self) {
|
3890
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
3891
|
+
void *argp1 = 0 ;
|
3892
|
+
int res1 = 0 ;
|
3893
|
+
size_t result;
|
3894
|
+
VALUE vresult = Qnil;
|
3895
|
+
|
3896
|
+
if ((argc < 1) || (argc > 1)) {
|
3897
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3898
|
+
}
|
3899
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
3900
|
+
if (!SWIG_IsOK(res1)) {
|
3901
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pni_connection_driver_read_size", 1, argv[0] ));
|
3902
|
+
}
|
3903
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
3904
|
+
result = (size_t)pni_connection_driver_read_size(arg1);
|
3905
|
+
vresult = SWIG_From_size_t((size_t)(result));
|
3906
|
+
return vresult;
|
3907
|
+
fail:
|
3908
|
+
return Qnil;
|
3909
|
+
}
|
3910
|
+
|
3911
|
+
|
3912
|
+
SWIGINTERN VALUE
|
3913
|
+
_wrap_pni_connection_driver_write_size(int argc, VALUE *argv, VALUE self) {
|
3914
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
3915
|
+
void *argp1 = 0 ;
|
3916
|
+
int res1 = 0 ;
|
3917
|
+
size_t result;
|
3918
|
+
VALUE vresult = Qnil;
|
3919
|
+
|
3920
|
+
if ((argc < 1) || (argc > 1)) {
|
3921
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3922
|
+
}
|
3923
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
3924
|
+
if (!SWIG_IsOK(res1)) {
|
3925
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pni_connection_driver_write_size", 1, argv[0] ));
|
3926
|
+
}
|
3927
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
3928
|
+
result = (size_t)pni_connection_driver_write_size(arg1);
|
3929
|
+
vresult = SWIG_From_size_t((size_t)(result));
|
3930
|
+
return vresult;
|
3931
|
+
fail:
|
3932
|
+
return Qnil;
|
3933
|
+
}
|
3934
|
+
|
3935
|
+
|
3936
|
+
SWIGINTERN VALUE
|
3937
|
+
_wrap_pni_connection_driver_connection(int argc, VALUE *argv, VALUE self) {
|
3938
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
3939
|
+
void *argp1 = 0 ;
|
3940
|
+
int res1 = 0 ;
|
3941
|
+
pn_connection_t *result = 0 ;
|
3942
|
+
VALUE vresult = Qnil;
|
3943
|
+
|
3944
|
+
if ((argc < 1) || (argc > 1)) {
|
3945
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3946
|
+
}
|
3947
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
3948
|
+
if (!SWIG_IsOK(res1)) {
|
3949
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pni_connection_driver_connection", 1, argv[0] ));
|
3950
|
+
}
|
3951
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
3952
|
+
result = (pn_connection_t *)pni_connection_driver_connection(arg1);
|
3953
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 | 0 );
|
3954
|
+
return vresult;
|
3955
|
+
fail:
|
3956
|
+
return Qnil;
|
3957
|
+
}
|
3958
|
+
|
3959
|
+
|
3960
|
+
SWIGINTERN VALUE
|
3961
|
+
_wrap_pni_connection_driver_transport(int argc, VALUE *argv, VALUE self) {
|
3962
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
3963
|
+
void *argp1 = 0 ;
|
3964
|
+
int res1 = 0 ;
|
3965
|
+
pn_transport_t *result = 0 ;
|
3966
|
+
VALUE vresult = Qnil;
|
3967
|
+
|
3968
|
+
if ((argc < 1) || (argc > 1)) {
|
3969
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3970
|
+
}
|
3971
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
3972
|
+
if (!SWIG_IsOK(res1)) {
|
3973
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pni_connection_driver_transport", 1, argv[0] ));
|
3974
|
+
}
|
3975
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
3976
|
+
result = (pn_transport_t *)pni_connection_driver_transport(arg1);
|
3977
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_transport_t, 0 | 0 );
|
3978
|
+
return vresult;
|
3979
|
+
fail:
|
3980
|
+
return Qnil;
|
3981
|
+
}
|
3982
|
+
|
3983
|
+
|
3984
|
+
SWIGINTERN VALUE
|
3985
|
+
_wrap_pni_connection_driver_read_copy(int argc, VALUE *argv, VALUE self) {
|
3986
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
3987
|
+
char *arg2 = (char *) 0 ;
|
3988
|
+
size_t arg3 ;
|
3989
|
+
void *argp1 = 0 ;
|
3990
|
+
int res1 = 0 ;
|
3991
|
+
int res2 ;
|
3992
|
+
char *buf2 = 0 ;
|
3993
|
+
size_t size2 = 0 ;
|
3994
|
+
int alloc2 = 0 ;
|
3995
|
+
size_t result;
|
3996
|
+
VALUE vresult = Qnil;
|
3997
|
+
|
3998
|
+
if ((argc < 2) || (argc > 2)) {
|
3999
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4000
|
+
}
|
4001
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
4002
|
+
if (!SWIG_IsOK(res1)) {
|
4003
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pni_connection_driver_read_copy", 1, argv[0] ));
|
4004
|
+
}
|
4005
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
4006
|
+
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, &size2, &alloc2);
|
4007
|
+
if (!SWIG_IsOK(res2)) {
|
4008
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pni_connection_driver_read_copy", 2, argv[1] ));
|
4009
|
+
}
|
4010
|
+
arg2 = (char *)(buf2);
|
4011
|
+
arg3 = (size_t)(size2 - 1);
|
4012
|
+
result = (size_t)pni_connection_driver_read_copy(arg1,arg2,arg3);
|
4013
|
+
vresult = SWIG_From_size_t((size_t)(result));
|
4014
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
4015
|
+
return vresult;
|
4016
|
+
fail:
|
4017
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
4018
|
+
return Qnil;
|
4019
|
+
}
|
4020
|
+
|
4021
|
+
|
4022
|
+
SWIGINTERN VALUE
|
4023
|
+
_wrap_pni_connection_driver(int argc, VALUE *argv, VALUE self) {
|
4024
|
+
pn_connection_driver_t *result = 0 ;
|
4025
|
+
VALUE vresult = Qnil;
|
4026
|
+
|
4027
|
+
if ((argc < 0) || (argc > 0)) {
|
4028
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4029
|
+
}
|
4030
|
+
result = (pn_connection_driver_t *)pni_connection_driver();
|
4031
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
4032
|
+
return vresult;
|
4033
|
+
fail:
|
4034
|
+
return Qnil;
|
4035
|
+
}
|
4036
|
+
|
4037
|
+
|
3847
4038
|
SWIGINTERN VALUE
|
3848
4039
|
_wrap_pn_bytes(int argc, VALUE *argv, VALUE self) {
|
3849
4040
|
size_t arg1 ;
|
@@ -3977,8 +4168,8 @@ _wrap_pn_class_id(int argc, VALUE *argv, VALUE self) {
|
|
3977
4168
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_id", 1, argv[0] ));
|
3978
4169
|
}
|
3979
4170
|
arg1 = (pn_class_t *)(argp1);
|
3980
|
-
result = pn_class_id((struct pn_class_t const *)arg1);
|
3981
|
-
vresult =
|
4171
|
+
result = (pn_cid_t)pn_class_id((struct pn_class_t const *)arg1);
|
4172
|
+
vresult = SWIG_From_int((int)(result));
|
3982
4173
|
return vresult;
|
3983
4174
|
fail:
|
3984
4175
|
return Qnil;
|
@@ -17628,6 +17819,41 @@ fail:
|
|
17628
17819
|
}
|
17629
17820
|
|
17630
17821
|
|
17822
|
+
SWIGINTERN VALUE
|
17823
|
+
_wrap_pn_ssl_domain_set_protocols(int argc, VALUE *argv, VALUE self) {
|
17824
|
+
pn_ssl_domain_t *arg1 = (pn_ssl_domain_t *) 0 ;
|
17825
|
+
char *arg2 = (char *) 0 ;
|
17826
|
+
void *argp1 = 0 ;
|
17827
|
+
int res1 = 0 ;
|
17828
|
+
int res2 ;
|
17829
|
+
char *buf2 = 0 ;
|
17830
|
+
int alloc2 = 0 ;
|
17831
|
+
int result;
|
17832
|
+
VALUE vresult = Qnil;
|
17833
|
+
|
17834
|
+
if ((argc < 2) || (argc > 2)) {
|
17835
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
17836
|
+
}
|
17837
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_ssl_domain_t, 0 | 0 );
|
17838
|
+
if (!SWIG_IsOK(res1)) {
|
17839
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_ssl_domain_t *","pn_ssl_domain_set_protocols", 1, argv[0] ));
|
17840
|
+
}
|
17841
|
+
arg1 = (pn_ssl_domain_t *)(argp1);
|
17842
|
+
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
17843
|
+
if (!SWIG_IsOK(res2)) {
|
17844
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_ssl_domain_set_protocols", 2, argv[1] ));
|
17845
|
+
}
|
17846
|
+
arg2 = (char *)(buf2);
|
17847
|
+
result = (int)pn_ssl_domain_set_protocols(arg1,(char const *)arg2);
|
17848
|
+
vresult = SWIG_From_int((int)(result));
|
17849
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
17850
|
+
return vresult;
|
17851
|
+
fail:
|
17852
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
17853
|
+
return Qnil;
|
17854
|
+
}
|
17855
|
+
|
17856
|
+
|
17631
17857
|
SWIGINTERN VALUE
|
17632
17858
|
_wrap_pn_ssl_domain_set_ciphers(int argc, VALUE *argv, VALUE self) {
|
17633
17859
|
pn_ssl_domain_t *arg1 = (pn_ssl_domain_t *) 0 ;
|
@@ -20417,6 +20643,506 @@ fail:
|
|
20417
20643
|
}
|
20418
20644
|
|
20419
20645
|
|
20646
|
+
SWIGINTERN VALUE
|
20647
|
+
_wrap_pn_connection_driver_init(int argc, VALUE *argv, VALUE self) {
|
20648
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
20649
|
+
pn_connection_t *arg2 = (pn_connection_t *) 0 ;
|
20650
|
+
pn_transport_t *arg3 = (pn_transport_t *) 0 ;
|
20651
|
+
void *argp1 = 0 ;
|
20652
|
+
int res1 = 0 ;
|
20653
|
+
void *argp2 = 0 ;
|
20654
|
+
int res2 = 0 ;
|
20655
|
+
void *argp3 = 0 ;
|
20656
|
+
int res3 = 0 ;
|
20657
|
+
int result;
|
20658
|
+
VALUE vresult = Qnil;
|
20659
|
+
|
20660
|
+
if ((argc < 3) || (argc > 3)) {
|
20661
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
20662
|
+
}
|
20663
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
20664
|
+
if (!SWIG_IsOK(res1)) {
|
20665
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_init", 1, argv[0] ));
|
20666
|
+
}
|
20667
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
20668
|
+
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_connection_t, 0 | 0 );
|
20669
|
+
if (!SWIG_IsOK(res2)) {
|
20670
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_driver_init", 2, argv[1] ));
|
20671
|
+
}
|
20672
|
+
arg2 = (pn_connection_t *)(argp2);
|
20673
|
+
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_pn_transport_t, 0 | 0 );
|
20674
|
+
if (!SWIG_IsOK(res3)) {
|
20675
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "pn_transport_t *","pn_connection_driver_init", 3, argv[2] ));
|
20676
|
+
}
|
20677
|
+
arg3 = (pn_transport_t *)(argp3);
|
20678
|
+
result = (int)pn_connection_driver_init(arg1,arg2,arg3);
|
20679
|
+
vresult = SWIG_From_int((int)(result));
|
20680
|
+
return vresult;
|
20681
|
+
fail:
|
20682
|
+
return Qnil;
|
20683
|
+
}
|
20684
|
+
|
20685
|
+
|
20686
|
+
SWIGINTERN VALUE
|
20687
|
+
_wrap_pn_connection_driver_bind(int argc, VALUE *argv, VALUE self) {
|
20688
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
20689
|
+
void *argp1 = 0 ;
|
20690
|
+
int res1 = 0 ;
|
20691
|
+
int result;
|
20692
|
+
VALUE vresult = Qnil;
|
20693
|
+
|
20694
|
+
if ((argc < 1) || (argc > 1)) {
|
20695
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
20696
|
+
}
|
20697
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
20698
|
+
if (!SWIG_IsOK(res1)) {
|
20699
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_bind", 1, argv[0] ));
|
20700
|
+
}
|
20701
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
20702
|
+
result = (int)pn_connection_driver_bind(arg1);
|
20703
|
+
vresult = SWIG_From_int((int)(result));
|
20704
|
+
return vresult;
|
20705
|
+
fail:
|
20706
|
+
return Qnil;
|
20707
|
+
}
|
20708
|
+
|
20709
|
+
|
20710
|
+
SWIGINTERN VALUE
|
20711
|
+
_wrap_pn_connection_driver_destroy(int argc, VALUE *argv, VALUE self) {
|
20712
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
20713
|
+
void *argp1 = 0 ;
|
20714
|
+
int res1 = 0 ;
|
20715
|
+
|
20716
|
+
if ((argc < 1) || (argc > 1)) {
|
20717
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
20718
|
+
}
|
20719
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
20720
|
+
if (!SWIG_IsOK(res1)) {
|
20721
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_destroy", 1, argv[0] ));
|
20722
|
+
}
|
20723
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
20724
|
+
pn_connection_driver_destroy(arg1);
|
20725
|
+
return Qnil;
|
20726
|
+
fail:
|
20727
|
+
return Qnil;
|
20728
|
+
}
|
20729
|
+
|
20730
|
+
|
20731
|
+
SWIGINTERN VALUE
|
20732
|
+
_wrap_pn_connection_driver_release_connection(int argc, VALUE *argv, VALUE self) {
|
20733
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
20734
|
+
void *argp1 = 0 ;
|
20735
|
+
int res1 = 0 ;
|
20736
|
+
pn_connection_t *result = 0 ;
|
20737
|
+
VALUE vresult = Qnil;
|
20738
|
+
|
20739
|
+
if ((argc < 1) || (argc > 1)) {
|
20740
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
20741
|
+
}
|
20742
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
20743
|
+
if (!SWIG_IsOK(res1)) {
|
20744
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_release_connection", 1, argv[0] ));
|
20745
|
+
}
|
20746
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
20747
|
+
result = (pn_connection_t *)pn_connection_driver_release_connection(arg1);
|
20748
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_t, 0 | 0 );
|
20749
|
+
return vresult;
|
20750
|
+
fail:
|
20751
|
+
return Qnil;
|
20752
|
+
}
|
20753
|
+
|
20754
|
+
|
20755
|
+
SWIGINTERN VALUE
|
20756
|
+
_wrap_pn_connection_driver_read_buffer(int argc, VALUE *argv, VALUE self) {
|
20757
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
20758
|
+
void *argp1 = 0 ;
|
20759
|
+
int res1 = 0 ;
|
20760
|
+
pn_rwbytes_t result;
|
20761
|
+
VALUE vresult = Qnil;
|
20762
|
+
|
20763
|
+
if ((argc < 1) || (argc > 1)) {
|
20764
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
20765
|
+
}
|
20766
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
20767
|
+
if (!SWIG_IsOK(res1)) {
|
20768
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_read_buffer", 1, argv[0] ));
|
20769
|
+
}
|
20770
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
20771
|
+
result = pn_connection_driver_read_buffer(arg1);
|
20772
|
+
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 );
|
20773
|
+
return vresult;
|
20774
|
+
fail:
|
20775
|
+
return Qnil;
|
20776
|
+
}
|
20777
|
+
|
20778
|
+
|
20779
|
+
SWIGINTERN VALUE
|
20780
|
+
_wrap_pn_connection_driver_read_done(int argc, VALUE *argv, VALUE self) {
|
20781
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
20782
|
+
size_t arg2 ;
|
20783
|
+
void *argp1 = 0 ;
|
20784
|
+
int res1 = 0 ;
|
20785
|
+
size_t val2 ;
|
20786
|
+
int ecode2 = 0 ;
|
20787
|
+
|
20788
|
+
if ((argc < 2) || (argc > 2)) {
|
20789
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
20790
|
+
}
|
20791
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
20792
|
+
if (!SWIG_IsOK(res1)) {
|
20793
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_read_done", 1, argv[0] ));
|
20794
|
+
}
|
20795
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
20796
|
+
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
20797
|
+
if (!SWIG_IsOK(ecode2)) {
|
20798
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_connection_driver_read_done", 2, argv[1] ));
|
20799
|
+
}
|
20800
|
+
arg2 = (size_t)(val2);
|
20801
|
+
pn_connection_driver_read_done(arg1,arg2);
|
20802
|
+
return Qnil;
|
20803
|
+
fail:
|
20804
|
+
return Qnil;
|
20805
|
+
}
|
20806
|
+
|
20807
|
+
|
20808
|
+
SWIGINTERN VALUE
|
20809
|
+
_wrap_pn_connection_driver_read_close(int argc, VALUE *argv, VALUE self) {
|
20810
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
20811
|
+
void *argp1 = 0 ;
|
20812
|
+
int res1 = 0 ;
|
20813
|
+
|
20814
|
+
if ((argc < 1) || (argc > 1)) {
|
20815
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
20816
|
+
}
|
20817
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
20818
|
+
if (!SWIG_IsOK(res1)) {
|
20819
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_read_close", 1, argv[0] ));
|
20820
|
+
}
|
20821
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
20822
|
+
pn_connection_driver_read_close(arg1);
|
20823
|
+
return Qnil;
|
20824
|
+
fail:
|
20825
|
+
return Qnil;
|
20826
|
+
}
|
20827
|
+
|
20828
|
+
|
20829
|
+
SWIGINTERN VALUE
|
20830
|
+
_wrap_pn_connection_driver_read_closed(int argc, VALUE *argv, VALUE self) {
|
20831
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
20832
|
+
void *argp1 = 0 ;
|
20833
|
+
int res1 = 0 ;
|
20834
|
+
bool result;
|
20835
|
+
VALUE vresult = Qnil;
|
20836
|
+
|
20837
|
+
if ((argc < 1) || (argc > 1)) {
|
20838
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
20839
|
+
}
|
20840
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
20841
|
+
if (!SWIG_IsOK(res1)) {
|
20842
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_read_closed", 1, argv[0] ));
|
20843
|
+
}
|
20844
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
20845
|
+
result = (bool)pn_connection_driver_read_closed(arg1);
|
20846
|
+
vresult = SWIG_From_bool((bool)(result));
|
20847
|
+
return vresult;
|
20848
|
+
fail:
|
20849
|
+
return Qnil;
|
20850
|
+
}
|
20851
|
+
|
20852
|
+
|
20853
|
+
SWIGINTERN VALUE
|
20854
|
+
_wrap_pn_connection_driver_write_buffer(int argc, VALUE *argv, VALUE self) {
|
20855
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
20856
|
+
void *argp1 = 0 ;
|
20857
|
+
int res1 = 0 ;
|
20858
|
+
pn_bytes_t result;
|
20859
|
+
VALUE vresult = Qnil;
|
20860
|
+
|
20861
|
+
if ((argc < 1) || (argc > 1)) {
|
20862
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
20863
|
+
}
|
20864
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
20865
|
+
if (!SWIG_IsOK(res1)) {
|
20866
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_write_buffer", 1, argv[0] ));
|
20867
|
+
}
|
20868
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
20869
|
+
result = pn_connection_driver_write_buffer(arg1);
|
20870
|
+
{
|
20871
|
+
vresult = rb_str_new((&result)->start, (&result)->size);
|
20872
|
+
}
|
20873
|
+
return vresult;
|
20874
|
+
fail:
|
20875
|
+
return Qnil;
|
20876
|
+
}
|
20877
|
+
|
20878
|
+
|
20879
|
+
SWIGINTERN VALUE
|
20880
|
+
_wrap_pn_connection_driver_write_done(int argc, VALUE *argv, VALUE self) {
|
20881
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
20882
|
+
size_t arg2 ;
|
20883
|
+
void *argp1 = 0 ;
|
20884
|
+
int res1 = 0 ;
|
20885
|
+
size_t val2 ;
|
20886
|
+
int ecode2 = 0 ;
|
20887
|
+
|
20888
|
+
if ((argc < 2) || (argc > 2)) {
|
20889
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
20890
|
+
}
|
20891
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
20892
|
+
if (!SWIG_IsOK(res1)) {
|
20893
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_write_done", 1, argv[0] ));
|
20894
|
+
}
|
20895
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
20896
|
+
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
20897
|
+
if (!SWIG_IsOK(ecode2)) {
|
20898
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_connection_driver_write_done", 2, argv[1] ));
|
20899
|
+
}
|
20900
|
+
arg2 = (size_t)(val2);
|
20901
|
+
pn_connection_driver_write_done(arg1,arg2);
|
20902
|
+
return Qnil;
|
20903
|
+
fail:
|
20904
|
+
return Qnil;
|
20905
|
+
}
|
20906
|
+
|
20907
|
+
|
20908
|
+
SWIGINTERN VALUE
|
20909
|
+
_wrap_pn_connection_driver_write_close(int argc, VALUE *argv, VALUE self) {
|
20910
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
20911
|
+
void *argp1 = 0 ;
|
20912
|
+
int res1 = 0 ;
|
20913
|
+
|
20914
|
+
if ((argc < 1) || (argc > 1)) {
|
20915
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
20916
|
+
}
|
20917
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
20918
|
+
if (!SWIG_IsOK(res1)) {
|
20919
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_write_close", 1, argv[0] ));
|
20920
|
+
}
|
20921
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
20922
|
+
pn_connection_driver_write_close(arg1);
|
20923
|
+
return Qnil;
|
20924
|
+
fail:
|
20925
|
+
return Qnil;
|
20926
|
+
}
|
20927
|
+
|
20928
|
+
|
20929
|
+
SWIGINTERN VALUE
|
20930
|
+
_wrap_pn_connection_driver_write_closed(int argc, VALUE *argv, VALUE self) {
|
20931
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
20932
|
+
void *argp1 = 0 ;
|
20933
|
+
int res1 = 0 ;
|
20934
|
+
bool result;
|
20935
|
+
VALUE vresult = Qnil;
|
20936
|
+
|
20937
|
+
if ((argc < 1) || (argc > 1)) {
|
20938
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
20939
|
+
}
|
20940
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
20941
|
+
if (!SWIG_IsOK(res1)) {
|
20942
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_write_closed", 1, argv[0] ));
|
20943
|
+
}
|
20944
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
20945
|
+
result = (bool)pn_connection_driver_write_closed(arg1);
|
20946
|
+
vresult = SWIG_From_bool((bool)(result));
|
20947
|
+
return vresult;
|
20948
|
+
fail:
|
20949
|
+
return Qnil;
|
20950
|
+
}
|
20951
|
+
|
20952
|
+
|
20953
|
+
SWIGINTERN VALUE
|
20954
|
+
_wrap_pn_connection_driver_close(int argc, VALUE *argv, VALUE self) {
|
20955
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
20956
|
+
void *argp1 = 0 ;
|
20957
|
+
int res1 = 0 ;
|
20958
|
+
|
20959
|
+
if ((argc < 1) || (argc > 1)) {
|
20960
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
20961
|
+
}
|
20962
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
20963
|
+
if (!SWIG_IsOK(res1)) {
|
20964
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_close", 1, argv[0] ));
|
20965
|
+
}
|
20966
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
20967
|
+
pn_connection_driver_close(arg1);
|
20968
|
+
return Qnil;
|
20969
|
+
fail:
|
20970
|
+
return Qnil;
|
20971
|
+
}
|
20972
|
+
|
20973
|
+
|
20974
|
+
SWIGINTERN VALUE
|
20975
|
+
_wrap_pn_connection_driver_next_event(int argc, VALUE *argv, VALUE self) {
|
20976
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
20977
|
+
void *argp1 = 0 ;
|
20978
|
+
int res1 = 0 ;
|
20979
|
+
pn_event_t *result = 0 ;
|
20980
|
+
VALUE vresult = Qnil;
|
20981
|
+
|
20982
|
+
if ((argc < 1) || (argc > 1)) {
|
20983
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
20984
|
+
}
|
20985
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
20986
|
+
if (!SWIG_IsOK(res1)) {
|
20987
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_next_event", 1, argv[0] ));
|
20988
|
+
}
|
20989
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
20990
|
+
result = (pn_event_t *)pn_connection_driver_next_event(arg1);
|
20991
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_t, 0 | 0 );
|
20992
|
+
return vresult;
|
20993
|
+
fail:
|
20994
|
+
return Qnil;
|
20995
|
+
}
|
20996
|
+
|
20997
|
+
|
20998
|
+
SWIGINTERN VALUE
|
20999
|
+
_wrap_pn_connection_driver_has_event(int argc, VALUE *argv, VALUE self) {
|
21000
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
21001
|
+
void *argp1 = 0 ;
|
21002
|
+
int res1 = 0 ;
|
21003
|
+
bool result;
|
21004
|
+
VALUE vresult = Qnil;
|
21005
|
+
|
21006
|
+
if ((argc < 1) || (argc > 1)) {
|
21007
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
21008
|
+
}
|
21009
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
21010
|
+
if (!SWIG_IsOK(res1)) {
|
21011
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_has_event", 1, argv[0] ));
|
21012
|
+
}
|
21013
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
21014
|
+
result = (bool)pn_connection_driver_has_event(arg1);
|
21015
|
+
vresult = SWIG_From_bool((bool)(result));
|
21016
|
+
return vresult;
|
21017
|
+
fail:
|
21018
|
+
return Qnil;
|
21019
|
+
}
|
21020
|
+
|
21021
|
+
|
21022
|
+
SWIGINTERN VALUE
|
21023
|
+
_wrap_pn_connection_driver_finished(int argc, VALUE *argv, VALUE self) {
|
21024
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
21025
|
+
void *argp1 = 0 ;
|
21026
|
+
int res1 = 0 ;
|
21027
|
+
bool result;
|
21028
|
+
VALUE vresult = Qnil;
|
21029
|
+
|
21030
|
+
if ((argc < 1) || (argc > 1)) {
|
21031
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
21032
|
+
}
|
21033
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
21034
|
+
if (!SWIG_IsOK(res1)) {
|
21035
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_finished", 1, argv[0] ));
|
21036
|
+
}
|
21037
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
21038
|
+
result = (bool)pn_connection_driver_finished(arg1);
|
21039
|
+
vresult = SWIG_From_bool((bool)(result));
|
21040
|
+
return vresult;
|
21041
|
+
fail:
|
21042
|
+
return Qnil;
|
21043
|
+
}
|
21044
|
+
|
21045
|
+
|
21046
|
+
SWIGINTERN VALUE
|
21047
|
+
_wrap_pn_connection_driver_errorf(int argc, VALUE *argv, VALUE self) {
|
21048
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
21049
|
+
char *arg2 = (char *) 0 ;
|
21050
|
+
char *arg3 = (char *) 0 ;
|
21051
|
+
void *arg4 = 0 ;
|
21052
|
+
void *argp1 = 0 ;
|
21053
|
+
int res1 = 0 ;
|
21054
|
+
int res2 ;
|
21055
|
+
char *buf2 = 0 ;
|
21056
|
+
int alloc2 = 0 ;
|
21057
|
+
int res3 ;
|
21058
|
+
char *buf3 = 0 ;
|
21059
|
+
int alloc3 = 0 ;
|
21060
|
+
|
21061
|
+
if (argc < 3) {
|
21062
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
21063
|
+
}
|
21064
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
21065
|
+
if (!SWIG_IsOK(res1)) {
|
21066
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_errorf", 1, argv[0] ));
|
21067
|
+
}
|
21068
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
21069
|
+
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
21070
|
+
if (!SWIG_IsOK(res2)) {
|
21071
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_driver_errorf", 2, argv[1] ));
|
21072
|
+
}
|
21073
|
+
arg2 = (char *)(buf2);
|
21074
|
+
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
|
21075
|
+
if (!SWIG_IsOK(res3)) {
|
21076
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","pn_connection_driver_errorf", 3, argv[2] ));
|
21077
|
+
}
|
21078
|
+
arg3 = (char *)(buf3);
|
21079
|
+
pn_connection_driver_errorf(arg1,(char const *)arg2,(char const *)arg3,arg4);
|
21080
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
21081
|
+
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
21082
|
+
return Qnil;
|
21083
|
+
fail:
|
21084
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
21085
|
+
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
21086
|
+
return Qnil;
|
21087
|
+
}
|
21088
|
+
|
21089
|
+
|
21090
|
+
SWIGINTERN VALUE
|
21091
|
+
_wrap_pn_event_batch_connection_driver(int argc, VALUE *argv, VALUE self) {
|
21092
|
+
pn_event_batch_t *arg1 = (pn_event_batch_t *) 0 ;
|
21093
|
+
void *argp1 = 0 ;
|
21094
|
+
int res1 = 0 ;
|
21095
|
+
pn_connection_driver_t *result = 0 ;
|
21096
|
+
VALUE vresult = Qnil;
|
21097
|
+
|
21098
|
+
if ((argc < 1) || (argc > 1)) {
|
21099
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
21100
|
+
}
|
21101
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_event_batch_t, 0 | 0 );
|
21102
|
+
if (!SWIG_IsOK(res1)) {
|
21103
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_event_batch_t *","pn_event_batch_connection_driver", 1, argv[0] ));
|
21104
|
+
}
|
21105
|
+
arg1 = (pn_event_batch_t *)(argp1);
|
21106
|
+
result = (pn_connection_driver_t *)pn_event_batch_connection_driver(arg1);
|
21107
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
21108
|
+
return vresult;
|
21109
|
+
fail:
|
21110
|
+
return Qnil;
|
21111
|
+
}
|
21112
|
+
|
21113
|
+
|
21114
|
+
SWIGINTERN VALUE
|
21115
|
+
_wrap_pn_connection_driver_log(int argc, VALUE *argv, VALUE self) {
|
21116
|
+
pn_connection_driver_t *arg1 = (pn_connection_driver_t *) 0 ;
|
21117
|
+
char *arg2 = (char *) 0 ;
|
21118
|
+
void *argp1 = 0 ;
|
21119
|
+
int res1 = 0 ;
|
21120
|
+
int res2 ;
|
21121
|
+
char *buf2 = 0 ;
|
21122
|
+
int alloc2 = 0 ;
|
21123
|
+
|
21124
|
+
if ((argc < 2) || (argc > 2)) {
|
21125
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
21126
|
+
}
|
21127
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_driver_t, 0 | 0 );
|
21128
|
+
if (!SWIG_IsOK(res1)) {
|
21129
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_driver_t *","pn_connection_driver_log", 1, argv[0] ));
|
21130
|
+
}
|
21131
|
+
arg1 = (pn_connection_driver_t *)(argp1);
|
21132
|
+
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
21133
|
+
if (!SWIG_IsOK(res2)) {
|
21134
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_driver_log", 2, argv[1] ));
|
21135
|
+
}
|
21136
|
+
arg2 = (char *)(buf2);
|
21137
|
+
pn_connection_driver_log(arg1,(char const *)arg2);
|
21138
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
21139
|
+
return Qnil;
|
21140
|
+
fail:
|
21141
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
21142
|
+
return Qnil;
|
21143
|
+
}
|
21144
|
+
|
21145
|
+
|
20420
21146
|
SWIGINTERN VALUE
|
20421
21147
|
_wrap_pn_url(int argc, VALUE *argv, VALUE self) {
|
20422
21148
|
pn_url_t *result = 0 ;
|
@@ -22347,10 +23073,11 @@ static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0
|
|
22347
23073
|
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};
|
22348
23074
|
static swig_type_info _swigt__p_pn_atom_t = {"_p_pn_atom_t", "pn_atom_t *", 0, 0, (void*)0, 0};
|
22349
23075
|
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};
|
22350
|
-
static swig_type_info _swigt__p_pn_cid_t = {"_p_pn_cid_t", "pn_cid_t *", 0, 0, (void*)0, 0};
|
23076
|
+
static swig_type_info _swigt__p_pn_cid_t = {"_p_pn_cid_t", "enum pn_cid_t *|pn_cid_t *", 0, 0, (void*)0, 0};
|
22351
23077
|
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};
|
22352
23078
|
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};
|
22353
23079
|
static swig_type_info _swigt__p_pn_condition_t = {"_p_pn_condition_t", "struct pn_condition_t *|pn_condition_t *", 0, 0, (void*)0, 0};
|
23080
|
+
static swig_type_info _swigt__p_pn_connection_driver_t = {"_p_pn_connection_driver_t", "struct pn_connection_driver_t *|pn_connection_driver_t *", 0, 0, (void*)0, 0};
|
22354
23081
|
static swig_type_info _swigt__p_pn_connection_t = {"_p_pn_connection_t", "struct pn_connection_t *|pn_connection_t *", 0, 0, (void*)0, 0};
|
22355
23082
|
static swig_type_info _swigt__p_pn_data_t = {"_p_pn_data_t", "struct pn_data_t *|pn_data_t *", 0, 0, (void*)0, 0};
|
22356
23083
|
static swig_type_info _swigt__p_pn_decimal128_t = {"_p_pn_decimal128_t", "pn_decimal128_t *", 0, 0, (void*)0, 0};
|
@@ -22430,6 +23157,7 @@ static swig_type_info *swig_type_initial[] = {
|
|
22430
23157
|
&_swigt__p_pn_class_t,
|
22431
23158
|
&_swigt__p_pn_collector_t,
|
22432
23159
|
&_swigt__p_pn_condition_t,
|
23160
|
+
&_swigt__p_pn_connection_driver_t,
|
22433
23161
|
&_swigt__p_pn_connection_t,
|
22434
23162
|
&_swigt__p_pn_data_t,
|
22435
23163
|
&_swigt__p_pn_decimal128_t,
|
@@ -22509,6 +23237,7 @@ static swig_cast_info _swigc__p_pn_cid_t[] = { {&_swigt__p_pn_cid_t, 0, 0, 0},{
|
|
22509
23237
|
static swig_cast_info _swigc__p_pn_class_t[] = { {&_swigt__p_pn_class_t, 0, 0, 0},{0, 0, 0, 0}};
|
22510
23238
|
static swig_cast_info _swigc__p_pn_collector_t[] = { {&_swigt__p_pn_collector_t, 0, 0, 0},{0, 0, 0, 0}};
|
22511
23239
|
static swig_cast_info _swigc__p_pn_condition_t[] = { {&_swigt__p_pn_condition_t, 0, 0, 0},{0, 0, 0, 0}};
|
23240
|
+
static swig_cast_info _swigc__p_pn_connection_driver_t[] = { {&_swigt__p_pn_connection_driver_t, 0, 0, 0},{0, 0, 0, 0}};
|
22512
23241
|
static swig_cast_info _swigc__p_pn_connection_t[] = { {&_swigt__p_pn_connection_t, 0, 0, 0},{0, 0, 0, 0}};
|
22513
23242
|
static swig_cast_info _swigc__p_pn_data_t[] = { {&_swigt__p_pn_data_t, 0, 0, 0},{0, 0, 0, 0}};
|
22514
23243
|
static swig_cast_info _swigc__p_pn_decimal128_t[] = { {&_swigt__p_pn_decimal128_t, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -22588,6 +23317,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
22588
23317
|
_swigc__p_pn_class_t,
|
22589
23318
|
_swigc__p_pn_collector_t,
|
22590
23319
|
_swigc__p_pn_condition_t,
|
23320
|
+
_swigc__p_pn_connection_driver_t,
|
22591
23321
|
_swigc__p_pn_connection_t,
|
22592
23322
|
_swigc__p_pn_data_t,
|
22593
23323
|
_swigc__p_pn_decimal128_t,
|
@@ -22943,10 +23673,16 @@ SWIGEXPORT void Init_cproton(void) {
|
|
22943
23673
|
rb_define_module_function(mCproton, "pni_rbdispatch", _wrap_pni_rbdispatch, -1);
|
22944
23674
|
rb_define_module_function(mCproton, "pni_rbhandler_finalize", _wrap_pni_rbhandler_finalize, -1);
|
22945
23675
|
rb_define_module_function(mCproton, "pn_rbhandler", _wrap_pn_rbhandler, -1);
|
23676
|
+
rb_define_module_function(mCproton, "pni_connection_driver_read_size", _wrap_pni_connection_driver_read_size, -1);
|
23677
|
+
rb_define_module_function(mCproton, "pni_connection_driver_write_size", _wrap_pni_connection_driver_write_size, -1);
|
23678
|
+
rb_define_module_function(mCproton, "pni_connection_driver_connection", _wrap_pni_connection_driver_connection, -1);
|
23679
|
+
rb_define_module_function(mCproton, "pni_connection_driver_transport", _wrap_pni_connection_driver_transport, -1);
|
23680
|
+
rb_define_module_function(mCproton, "pni_connection_driver_read_copy", _wrap_pni_connection_driver_read_copy, -1);
|
23681
|
+
rb_define_module_function(mCproton, "pni_connection_driver", _wrap_pni_connection_driver, -1);
|
22946
23682
|
rb_define_const(mCproton, "PROTON_IMPORT_EXPORT_H", SWIG_From_int((int)(1)));
|
22947
23683
|
rb_define_const(mCproton, "PN_VERSION_MAJOR", SWIG_From_int((int)(0)));
|
22948
|
-
rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(
|
22949
|
-
rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(
|
23684
|
+
rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(19)));
|
23685
|
+
rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(0)));
|
22950
23686
|
rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1)));
|
22951
23687
|
rb_define_const(mCproton, "PN_MILLIS_MAX", SWIG_From_unsigned_SS_int((unsigned int)((~0U))));
|
22952
23688
|
rb_define_module_function(mCproton, "pn_bytes", _wrap_pn_bytes, -1);
|
@@ -23593,6 +24329,7 @@ SWIGEXPORT void Init_cproton(void) {
|
|
23593
24329
|
rb_define_const(mCproton, "PN_SSL_ANONYMOUS_PEER", SWIG_From_int((int)(PN_SSL_ANONYMOUS_PEER)));
|
23594
24330
|
rb_define_const(mCproton, "PN_SSL_VERIFY_PEER_NAME", SWIG_From_int((int)(PN_SSL_VERIFY_PEER_NAME)));
|
23595
24331
|
rb_define_module_function(mCproton, "pn_ssl_domain_set_peer_authentication", _wrap_pn_ssl_domain_set_peer_authentication, -1);
|
24332
|
+
rb_define_module_function(mCproton, "pn_ssl_domain_set_protocols", _wrap_pn_ssl_domain_set_protocols, -1);
|
23596
24333
|
rb_define_module_function(mCproton, "pn_ssl_domain_set_ciphers", _wrap_pn_ssl_domain_set_ciphers, -1);
|
23597
24334
|
rb_define_module_function(mCproton, "pn_ssl_domain_allow_unsecured_client", _wrap_pn_ssl_domain_allow_unsecured_client, -1);
|
23598
24335
|
rb_define_module_function(mCproton, "pn_ssl", _wrap_pn_ssl, -1);
|
@@ -23730,6 +24467,26 @@ SWIGEXPORT void Init_cproton(void) {
|
|
23730
24467
|
rb_define_module_function(mCproton, "pn_cast_pn_reactor", _wrap_pn_cast_pn_reactor, -1);
|
23731
24468
|
rb_define_module_function(mCproton, "pn_cast_pn_task", _wrap_pn_cast_pn_task, -1);
|
23732
24469
|
rb_define_module_function(mCproton, "pn_cast_pn_selectable", _wrap_pn_cast_pn_selectable, -1);
|
24470
|
+
rb_define_const(mCproton, "PROTON_CONNECTION_DRIVER_H", SWIG_From_int((int)(1)));
|
24471
|
+
rb_define_module_function(mCproton, "pn_connection_driver_init", _wrap_pn_connection_driver_init, -1);
|
24472
|
+
rb_define_module_function(mCproton, "pn_connection_driver_bind", _wrap_pn_connection_driver_bind, -1);
|
24473
|
+
rb_define_module_function(mCproton, "pn_connection_driver_destroy", _wrap_pn_connection_driver_destroy, -1);
|
24474
|
+
rb_define_module_function(mCproton, "pn_connection_driver_release_connection", _wrap_pn_connection_driver_release_connection, -1);
|
24475
|
+
rb_define_module_function(mCproton, "pn_connection_driver_read_buffer", _wrap_pn_connection_driver_read_buffer, -1);
|
24476
|
+
rb_define_module_function(mCproton, "pn_connection_driver_read_done", _wrap_pn_connection_driver_read_done, -1);
|
24477
|
+
rb_define_module_function(mCproton, "pn_connection_driver_read_close", _wrap_pn_connection_driver_read_close, -1);
|
24478
|
+
rb_define_module_function(mCproton, "pn_connection_driver_read_closed", _wrap_pn_connection_driver_read_closed, -1);
|
24479
|
+
rb_define_module_function(mCproton, "pn_connection_driver_write_buffer", _wrap_pn_connection_driver_write_buffer, -1);
|
24480
|
+
rb_define_module_function(mCproton, "pn_connection_driver_write_done", _wrap_pn_connection_driver_write_done, -1);
|
24481
|
+
rb_define_module_function(mCproton, "pn_connection_driver_write_close", _wrap_pn_connection_driver_write_close, -1);
|
24482
|
+
rb_define_module_function(mCproton, "pn_connection_driver_write_closed", _wrap_pn_connection_driver_write_closed, -1);
|
24483
|
+
rb_define_module_function(mCproton, "pn_connection_driver_close", _wrap_pn_connection_driver_close, -1);
|
24484
|
+
rb_define_module_function(mCproton, "pn_connection_driver_next_event", _wrap_pn_connection_driver_next_event, -1);
|
24485
|
+
rb_define_module_function(mCproton, "pn_connection_driver_has_event", _wrap_pn_connection_driver_has_event, -1);
|
24486
|
+
rb_define_module_function(mCproton, "pn_connection_driver_finished", _wrap_pn_connection_driver_finished, -1);
|
24487
|
+
rb_define_module_function(mCproton, "pn_connection_driver_errorf", _wrap_pn_connection_driver_errorf, -1);
|
24488
|
+
rb_define_module_function(mCproton, "pn_event_batch_connection_driver", _wrap_pn_event_batch_connection_driver, -1);
|
24489
|
+
rb_define_module_function(mCproton, "pn_connection_driver_log", _wrap_pn_connection_driver_log, -1);
|
23733
24490
|
rb_define_const(mCproton, "PROTON_URL_H", SWIG_From_int((int)(1)));
|
23734
24491
|
rb_define_module_function(mCproton, "pn_url", _wrap_pn_url, -1);
|
23735
24492
|
rb_define_module_function(mCproton, "pn_url_parse", _wrap_pn_url_parse, -1);
|
@@ -23805,5 +24562,36 @@ SWIGEXPORT void Init_cproton(void) {
|
|
23805
24562
|
rb_define_module_function(mCproton, "pn_handshaker", _wrap_pn_handshaker, -1);
|
23806
24563
|
rb_define_module_function(mCproton, "pn_iohandler", _wrap_pn_iohandler, -1);
|
23807
24564
|
rb_define_module_function(mCproton, "pn_flowcontroller", _wrap_pn_flowcontroller, -1);
|
24565
|
+
rb_define_const(mCproton, "PROTON_CID_H", SWIG_From_int((int)(1)));
|
24566
|
+
rb_define_const(mCproton, "CID_pn_object", SWIG_From_int((int)(CID_pn_object)));
|
24567
|
+
rb_define_const(mCproton, "CID_pn_void", SWIG_From_int((int)(CID_pn_void)));
|
24568
|
+
rb_define_const(mCproton, "CID_pn_weakref", SWIG_From_int((int)(CID_pn_weakref)));
|
24569
|
+
rb_define_const(mCproton, "CID_pn_string", SWIG_From_int((int)(CID_pn_string)));
|
24570
|
+
rb_define_const(mCproton, "CID_pn_list", SWIG_From_int((int)(CID_pn_list)));
|
24571
|
+
rb_define_const(mCproton, "CID_pn_map", SWIG_From_int((int)(CID_pn_map)));
|
24572
|
+
rb_define_const(mCproton, "CID_pn_hash", SWIG_From_int((int)(CID_pn_hash)));
|
24573
|
+
rb_define_const(mCproton, "CID_pn_record", SWIG_From_int((int)(CID_pn_record)));
|
24574
|
+
rb_define_const(mCproton, "CID_pn_collector", SWIG_From_int((int)(CID_pn_collector)));
|
24575
|
+
rb_define_const(mCproton, "CID_pn_event", SWIG_From_int((int)(CID_pn_event)));
|
24576
|
+
rb_define_const(mCproton, "CID_pn_encoder", SWIG_From_int((int)(CID_pn_encoder)));
|
24577
|
+
rb_define_const(mCproton, "CID_pn_decoder", SWIG_From_int((int)(CID_pn_decoder)));
|
24578
|
+
rb_define_const(mCproton, "CID_pn_data", SWIG_From_int((int)(CID_pn_data)));
|
24579
|
+
rb_define_const(mCproton, "CID_pn_connection", SWIG_From_int((int)(CID_pn_connection)));
|
24580
|
+
rb_define_const(mCproton, "CID_pn_session", SWIG_From_int((int)(CID_pn_session)));
|
24581
|
+
rb_define_const(mCproton, "CID_pn_link", SWIG_From_int((int)(CID_pn_link)));
|
24582
|
+
rb_define_const(mCproton, "CID_pn_delivery", SWIG_From_int((int)(CID_pn_delivery)));
|
24583
|
+
rb_define_const(mCproton, "CID_pn_transport", SWIG_From_int((int)(CID_pn_transport)));
|
24584
|
+
rb_define_const(mCproton, "CID_pn_message", SWIG_From_int((int)(CID_pn_message)));
|
24585
|
+
rb_define_const(mCproton, "CID_pn_reactor", SWIG_From_int((int)(CID_pn_reactor)));
|
24586
|
+
rb_define_const(mCproton, "CID_pn_handler", SWIG_From_int((int)(CID_pn_handler)));
|
24587
|
+
rb_define_const(mCproton, "CID_pn_timer", SWIG_From_int((int)(CID_pn_timer)));
|
24588
|
+
rb_define_const(mCproton, "CID_pn_task", SWIG_From_int((int)(CID_pn_task)));
|
24589
|
+
rb_define_const(mCproton, "CID_pn_io", SWIG_From_int((int)(CID_pn_io)));
|
24590
|
+
rb_define_const(mCproton, "CID_pn_selector", SWIG_From_int((int)(CID_pn_selector)));
|
24591
|
+
rb_define_const(mCproton, "CID_pn_selectable", SWIG_From_int((int)(CID_pn_selectable)));
|
24592
|
+
rb_define_const(mCproton, "CID_pn_url", SWIG_From_int((int)(CID_pn_url)));
|
24593
|
+
rb_define_const(mCproton, "CID_pn_listener", SWIG_From_int((int)(CID_pn_listener)));
|
24594
|
+
rb_define_const(mCproton, "CID_pn_proactor", SWIG_From_int((int)(CID_pn_proactor)));
|
24595
|
+
rb_define_const(mCproton, "CID_pn_listener_socket", SWIG_From_int((int)(CID_pn_listener_socket)));
|
23808
24596
|
}
|
23809
24597
|
|