qpid_proton 0.31.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/cproton/cproton.c +97 -32
- data/tests/collect_coverage.rb +32 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af2ef496d6c2d4a177555b6d9e76e906aa5ddd8ee74bba1d14921bce2d5eb193
|
|
4
|
+
data.tar.gz: cbff74e654d91adcdb57e050dd130f98d579f097dae07a1dd7614b8e9004b2ee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 859b96a74c387b8b49078d6a74a9a2ea3ad4685fca64c21e30bd1a1364855656dd010703f3f77238a88f50a39bcaea74c314c7cbd0d7e0394f9d004c8d336b31
|
|
7
|
+
data.tar.gz: 6daf1cb9b0c2578d8c0b8e4cc59445e89a72cd404aa24739accf740aca3980394dbe0d231806bf7759f5da7cf580f58b5d0ba9e37612eebbd06b7b0a1e411317
|
data/ext/cproton/cproton.c
CHANGED
|
@@ -1840,37 +1840,38 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
|
1840
1840
|
#define SWIGTYPE_p_pn_message_t swig_types[37]
|
|
1841
1841
|
#define SWIGTYPE_p_pn_messenger_t swig_types[38]
|
|
1842
1842
|
#define SWIGTYPE_p_pn_proactor_t swig_types[39]
|
|
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
|
-
|
|
1873
|
-
static
|
|
1843
|
+
#define SWIGTYPE_p_pn_raw_connection_t swig_types[40]
|
|
1844
|
+
#define SWIGTYPE_p_pn_rcv_settle_mode_t swig_types[41]
|
|
1845
|
+
#define SWIGTYPE_p_pn_record_t swig_types[42]
|
|
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_session_t swig_types[46]
|
|
1850
|
+
#define SWIGTYPE_p_pn_snd_settle_mode_t swig_types[47]
|
|
1851
|
+
#define SWIGTYPE_p_pn_ssl_cert_subject_subfield swig_types[48]
|
|
1852
|
+
#define SWIGTYPE_p_pn_ssl_domain_t swig_types[49]
|
|
1853
|
+
#define SWIGTYPE_p_pn_ssl_hash_alg swig_types[50]
|
|
1854
|
+
#define SWIGTYPE_p_pn_ssl_mode_t swig_types[51]
|
|
1855
|
+
#define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[52]
|
|
1856
|
+
#define SWIGTYPE_p_pn_ssl_t swig_types[53]
|
|
1857
|
+
#define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[54]
|
|
1858
|
+
#define SWIGTYPE_p_pn_string_t swig_types[55]
|
|
1859
|
+
#define SWIGTYPE_p_pn_terminus_t swig_types[56]
|
|
1860
|
+
#define SWIGTYPE_p_pn_terminus_type_t swig_types[57]
|
|
1861
|
+
#define SWIGTYPE_p_pn_transport_t swig_types[58]
|
|
1862
|
+
#define SWIGTYPE_p_pn_type_t swig_types[59]
|
|
1863
|
+
#define SWIGTYPE_p_pn_url_t swig_types[60]
|
|
1864
|
+
#define SWIGTYPE_p_pn_uuid_t swig_types[61]
|
|
1865
|
+
#define SWIGTYPE_p_short swig_types[62]
|
|
1866
|
+
#define SWIGTYPE_p_signed_char swig_types[63]
|
|
1867
|
+
#define SWIGTYPE_p_unsigned_char swig_types[64]
|
|
1868
|
+
#define SWIGTYPE_p_unsigned_int swig_types[65]
|
|
1869
|
+
#define SWIGTYPE_p_unsigned_long swig_types[66]
|
|
1870
|
+
#define SWIGTYPE_p_unsigned_long_long swig_types[67]
|
|
1871
|
+
#define SWIGTYPE_p_unsigned_short swig_types[68]
|
|
1872
|
+
#define SWIGTYPE_p_void swig_types[69]
|
|
1873
|
+
static swig_type_info *swig_types[71];
|
|
1874
|
+
static swig_module_info swig_module = {swig_types, 70, 0, 0, 0, 0};
|
|
1874
1875
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
|
1875
1876
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
|
1876
1877
|
|
|
@@ -9864,6 +9865,54 @@ fail:
|
|
|
9864
9865
|
}
|
|
9865
9866
|
|
|
9866
9867
|
|
|
9868
|
+
SWIGINTERN VALUE
|
|
9869
|
+
_wrap_pn_link_properties(int argc, VALUE *argv, VALUE self) {
|
|
9870
|
+
pn_link_t *arg1 = (pn_link_t *) 0 ;
|
|
9871
|
+
void *argp1 = 0 ;
|
|
9872
|
+
int res1 = 0 ;
|
|
9873
|
+
pn_data_t *result = 0 ;
|
|
9874
|
+
VALUE vresult = Qnil;
|
|
9875
|
+
|
|
9876
|
+
if ((argc < 1) || (argc > 1)) {
|
|
9877
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
9878
|
+
}
|
|
9879
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
|
|
9880
|
+
if (!SWIG_IsOK(res1)) {
|
|
9881
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_properties", 1, argv[0] ));
|
|
9882
|
+
}
|
|
9883
|
+
arg1 = (pn_link_t *)(argp1);
|
|
9884
|
+
result = (pn_data_t *)pn_link_properties(arg1);
|
|
9885
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
|
|
9886
|
+
return vresult;
|
|
9887
|
+
fail:
|
|
9888
|
+
return Qnil;
|
|
9889
|
+
}
|
|
9890
|
+
|
|
9891
|
+
|
|
9892
|
+
SWIGINTERN VALUE
|
|
9893
|
+
_wrap_pn_link_remote_properties(int argc, VALUE *argv, VALUE self) {
|
|
9894
|
+
pn_link_t *arg1 = (pn_link_t *) 0 ;
|
|
9895
|
+
void *argp1 = 0 ;
|
|
9896
|
+
int res1 = 0 ;
|
|
9897
|
+
pn_data_t *result = 0 ;
|
|
9898
|
+
VALUE vresult = Qnil;
|
|
9899
|
+
|
|
9900
|
+
if ((argc < 1) || (argc > 1)) {
|
|
9901
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
9902
|
+
}
|
|
9903
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
|
|
9904
|
+
if (!SWIG_IsOK(res1)) {
|
|
9905
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_properties", 1, argv[0] ));
|
|
9906
|
+
}
|
|
9907
|
+
arg1 = (pn_link_t *)(argp1);
|
|
9908
|
+
result = (pn_data_t *)pn_link_remote_properties(arg1);
|
|
9909
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
|
|
9910
|
+
return vresult;
|
|
9911
|
+
fail:
|
|
9912
|
+
return Qnil;
|
|
9913
|
+
}
|
|
9914
|
+
|
|
9915
|
+
|
|
9867
9916
|
SWIGINTERN VALUE
|
|
9868
9917
|
_wrap_pn_terminus_get_type(int argc, VALUE *argv, VALUE self) {
|
|
9869
9918
|
pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
|
|
@@ -19149,6 +19198,7 @@ static swig_type_info _swigt__p_pn_map_t = {"_p_pn_map_t", "struct pn_map_t *|pn
|
|
|
19149
19198
|
static swig_type_info _swigt__p_pn_message_t = {"_p_pn_message_t", "struct pn_message_t *|pn_message_t *", 0, 0, (void*)0, 0};
|
|
19150
19199
|
static swig_type_info _swigt__p_pn_messenger_t = {"_p_pn_messenger_t", "pn_messenger_t *", 0, 0, (void*)0, 0};
|
|
19151
19200
|
static swig_type_info _swigt__p_pn_proactor_t = {"_p_pn_proactor_t", "struct pn_proactor_t *|pn_proactor_t *", 0, 0, (void*)0, 0};
|
|
19201
|
+
static swig_type_info _swigt__p_pn_raw_connection_t = {"_p_pn_raw_connection_t", "struct pn_raw_connection_t *|pn_raw_connection_t *", 0, 0, (void*)0, 0};
|
|
19152
19202
|
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};
|
|
19153
19203
|
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};
|
|
19154
19204
|
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};
|
|
@@ -19220,6 +19270,7 @@ static swig_type_info *swig_type_initial[] = {
|
|
|
19220
19270
|
&_swigt__p_pn_message_t,
|
|
19221
19271
|
&_swigt__p_pn_messenger_t,
|
|
19222
19272
|
&_swigt__p_pn_proactor_t,
|
|
19273
|
+
&_swigt__p_pn_raw_connection_t,
|
|
19223
19274
|
&_swigt__p_pn_rcv_settle_mode_t,
|
|
19224
19275
|
&_swigt__p_pn_record_t,
|
|
19225
19276
|
&_swigt__p_pn_rwbytes_t,
|
|
@@ -19291,6 +19342,7 @@ static swig_cast_info _swigc__p_pn_map_t[] = { {&_swigt__p_pn_map_t, 0, 0, 0},{
|
|
|
19291
19342
|
static swig_cast_info _swigc__p_pn_message_t[] = { {&_swigt__p_pn_message_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19292
19343
|
static swig_cast_info _swigc__p_pn_messenger_t[] = { {&_swigt__p_pn_messenger_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19293
19344
|
static swig_cast_info _swigc__p_pn_proactor_t[] = { {&_swigt__p_pn_proactor_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19345
|
+
static swig_cast_info _swigc__p_pn_raw_connection_t[] = { {&_swigt__p_pn_raw_connection_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19294
19346
|
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}};
|
|
19295
19347
|
static swig_cast_info _swigc__p_pn_record_t[] = { {&_swigt__p_pn_record_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19296
19348
|
static swig_cast_info _swigc__p_pn_rwbytes_t[] = { {&_swigt__p_pn_rwbytes_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
@@ -19362,6 +19414,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
|
19362
19414
|
_swigc__p_pn_message_t,
|
|
19363
19415
|
_swigc__p_pn_messenger_t,
|
|
19364
19416
|
_swigc__p_pn_proactor_t,
|
|
19417
|
+
_swigc__p_pn_raw_connection_t,
|
|
19365
19418
|
_swigc__p_pn_rcv_settle_mode_t,
|
|
19366
19419
|
_swigc__p_pn_record_t,
|
|
19367
19420
|
_swigc__p_pn_rwbytes_t,
|
|
@@ -19697,7 +19750,7 @@ SWIGEXPORT void Init_cproton(void) {
|
|
|
19697
19750
|
rb_define_module_function(mCproton, "pni_connection_driver", _wrap_pni_connection_driver, -1);
|
|
19698
19751
|
rb_define_const(mCproton, "PROTON_IMPORT_EXPORT_H", SWIG_From_int((int)(1)));
|
|
19699
19752
|
rb_define_const(mCproton, "PN_VERSION_MAJOR", SWIG_From_int((int)(0)));
|
|
19700
|
-
rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(
|
|
19753
|
+
rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(32)));
|
|
19701
19754
|
rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(0)));
|
|
19702
19755
|
rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1)));
|
|
19703
19756
|
rb_define_const(mCproton, "PN_MILLIS_MAX", SWIG_From_unsigned_SS_int((unsigned int)((~0U))));
|
|
@@ -19951,6 +20004,8 @@ SWIGEXPORT void Init_cproton(void) {
|
|
|
19951
20004
|
rb_define_module_function(mCproton, "pn_link_max_message_size", _wrap_pn_link_max_message_size, -1);
|
|
19952
20005
|
rb_define_module_function(mCproton, "pn_link_set_max_message_size", _wrap_pn_link_set_max_message_size, -1);
|
|
19953
20006
|
rb_define_module_function(mCproton, "pn_link_remote_max_message_size", _wrap_pn_link_remote_max_message_size, -1);
|
|
20007
|
+
rb_define_module_function(mCproton, "pn_link_properties", _wrap_pn_link_properties, -1);
|
|
20008
|
+
rb_define_module_function(mCproton, "pn_link_remote_properties", _wrap_pn_link_remote_properties, -1);
|
|
19954
20009
|
rb_define_const(mCproton, "PROTON_TERMINUS_H", SWIG_From_int((int)(1)));
|
|
19955
20010
|
rb_define_const(mCproton, "PN_UNSPECIFIED", SWIG_From_int((int)(PN_UNSPECIFIED)));
|
|
19956
20011
|
rb_define_const(mCproton, "PN_SOURCE", SWIG_From_int((int)(PN_SOURCE)));
|
|
@@ -20134,6 +20189,15 @@ SWIGEXPORT void Init_cproton(void) {
|
|
|
20134
20189
|
rb_define_const(mCproton, "PN_PROACTOR_TIMEOUT", SWIG_From_int((int)(PN_PROACTOR_TIMEOUT)));
|
|
20135
20190
|
rb_define_const(mCproton, "PN_PROACTOR_INACTIVE", SWIG_From_int((int)(PN_PROACTOR_INACTIVE)));
|
|
20136
20191
|
rb_define_const(mCproton, "PN_LISTENER_OPEN", SWIG_From_int((int)(PN_LISTENER_OPEN)));
|
|
20192
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_CONNECTED", SWIG_From_int((int)(PN_RAW_CONNECTION_CONNECTED)));
|
|
20193
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_CLOSED_READ", SWIG_From_int((int)(PN_RAW_CONNECTION_CLOSED_READ)));
|
|
20194
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_CLOSED_WRITE", SWIG_From_int((int)(PN_RAW_CONNECTION_CLOSED_WRITE)));
|
|
20195
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_DISCONNECTED", SWIG_From_int((int)(PN_RAW_CONNECTION_DISCONNECTED)));
|
|
20196
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_NEED_READ_BUFFERS", SWIG_From_int((int)(PN_RAW_CONNECTION_NEED_READ_BUFFERS)));
|
|
20197
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_NEED_WRITE_BUFFERS", SWIG_From_int((int)(PN_RAW_CONNECTION_NEED_WRITE_BUFFERS)));
|
|
20198
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_READ", SWIG_From_int((int)(PN_RAW_CONNECTION_READ)));
|
|
20199
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_WRITTEN", SWIG_From_int((int)(PN_RAW_CONNECTION_WRITTEN)));
|
|
20200
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_WAKE", SWIG_From_int((int)(PN_RAW_CONNECTION_WAKE)));
|
|
20137
20201
|
rb_define_module_function(mCproton, "pn_event_type_name", _wrap_pn_event_type_name, -1);
|
|
20138
20202
|
rb_define_module_function(mCproton, "pn_collector", _wrap_pn_collector, -1);
|
|
20139
20203
|
rb_define_module_function(mCproton, "pn_collector_free", _wrap_pn_collector_free, -1);
|
|
@@ -20432,6 +20496,7 @@ SWIGEXPORT void Init_cproton(void) {
|
|
|
20432
20496
|
rb_define_const(mCproton, "CID_pn_listener", SWIG_From_int((int)(CID_pn_listener)));
|
|
20433
20497
|
rb_define_const(mCproton, "CID_pn_proactor", SWIG_From_int((int)(CID_pn_proactor)));
|
|
20434
20498
|
rb_define_const(mCproton, "CID_pn_listener_socket", SWIG_From_int((int)(CID_pn_listener_socket)));
|
|
20499
|
+
rb_define_const(mCproton, "CID_pn_raw_connection", SWIG_From_int((int)(CID_pn_raw_connection)));
|
|
20435
20500
|
rb_define_const(mCproton, "PROTON_URL_H", SWIG_From_int((int)(1)));
|
|
20436
20501
|
rb_define_module_function(mCproton, "pn_url", _wrap_pn_url, -1);
|
|
20437
20502
|
rb_define_module_function(mCproton, "pn_url_parse", _wrap_pn_url_parse, -1);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The ASF licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
if ENV['COVERAGE']
|
|
20
|
+
require 'simplecov'
|
|
21
|
+
SimpleCov.start do
|
|
22
|
+
if ENV['TRAVIS']
|
|
23
|
+
require 'codecov'
|
|
24
|
+
formatter SimpleCov::Formatter::MultiFormatter.new([
|
|
25
|
+
SimpleCov::Formatter::HTMLFormatter,
|
|
26
|
+
SimpleCov::Formatter::Codecov,
|
|
27
|
+
])
|
|
28
|
+
end
|
|
29
|
+
coverage_dir ENV['COVERAGE_DIR'] or 'coverage'
|
|
30
|
+
track_files 'ruby/lib/**/*.rb'
|
|
31
|
+
end
|
|
32
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: qpid_proton
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.32.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Darryl L. Pierce
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2020-
|
|
12
|
+
date: 2020-09-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: |
|
|
15
15
|
Proton is a high performance, lightweight messaging library. It can be used in
|
|
@@ -91,6 +91,7 @@ files:
|
|
|
91
91
|
- lib/util/schedule.rb
|
|
92
92
|
- lib/util/version.rb
|
|
93
93
|
- lib/util/wrapper.rb
|
|
94
|
+
- tests/collect_coverage.rb
|
|
94
95
|
- tests/test_connection_driver.rb
|
|
95
96
|
- tests/test_container.rb
|
|
96
97
|
- tests/test_container_sasl.rb
|