qpid_proton 0.31.0 → 0.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/examples/ssl_send.rb +2 -1
- data/ext/cproton/cproton.c +490 -427
- data/lib/core/ssl_domain.rb +4 -3
- data/tests/collect_coverage.rb +32 -0
- metadata +68 -67
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 308c4568bcdc95c98ad5d933842ef1f75d789aa9
|
4
|
+
data.tar.gz: 23a4ffad7ea320ccbd333ca49638cb0a5d4f7e5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8db2f719bbebaef0b19415a253b1cadd68e6be96580bd65eda0565ccfb13e73a42714bf30670bdc1db71a6a5539f1d0061a7e950c51268efea7a62a6ef3772be
|
7
|
+
data.tar.gz: 17935f4526a5a2976ed4761b51502c11346f9de989664aefeda61ebda328ffe59b27826532dc7477c96eaa5ed94befba98856f7c07be4435513a36073e90b8fe
|
data/examples/ssl_send.rb
CHANGED
@@ -32,8 +32,9 @@ class SimpleSend < Qpid::Proton::MessagingHandler
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def on_container_start(container)
|
35
|
-
# Use
|
35
|
+
# Use anonymous client SSL domain
|
36
36
|
ssl_domain = Qpid::Proton::SSLDomain.new(Qpid::Proton::SSLDomain::MODE_CLIENT)
|
37
|
+
ssl_domain.peer_authentication(Qpid::Proton::SSLDomain::ANONYMOUS_PEER)
|
37
38
|
c = container.connect(@url, { :ssl_domain => ssl_domain })
|
38
39
|
c.open_sender(@address)
|
39
40
|
end
|
data/ext/cproton/cproton.c
CHANGED
@@ -1,18 +1,14 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
-
* Version
|
4
|
-
*
|
5
|
-
* This file is not intended to be easily readable and contains a number of
|
3
|
+
* Version 2.0.10
|
4
|
+
*
|
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
|
7
|
-
* changes to this file unless you know what you are doing--modify the SWIG
|
8
|
-
* interface file instead.
|
7
|
+
* changes to this file unless you know what you are doing--modify the SWIG
|
8
|
+
* interface file instead.
|
9
9
|
* ----------------------------------------------------------------------------- */
|
10
10
|
|
11
|
-
|
12
|
-
#ifndef SWIGRUBY
|
13
11
|
#define SWIGRUBY
|
14
|
-
#endif
|
15
|
-
|
16
12
|
|
17
13
|
/* -----------------------------------------------------------------------------
|
18
14
|
* This section contains generic SWIG labels for method/variable
|
@@ -45,28 +41,28 @@
|
|
45
41
|
#ifndef SWIGUNUSED
|
46
42
|
# if defined(__GNUC__)
|
47
43
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
48
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
44
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
49
45
|
# else
|
50
46
|
# define SWIGUNUSED
|
51
47
|
# endif
|
52
48
|
# elif defined(__ICC)
|
53
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
49
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
54
50
|
# else
|
55
|
-
# define SWIGUNUSED
|
51
|
+
# define SWIGUNUSED
|
56
52
|
# endif
|
57
53
|
#endif
|
58
54
|
|
59
55
|
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
60
56
|
# if defined(_MSC_VER)
|
61
57
|
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
62
|
-
# endif
|
58
|
+
# endif
|
63
59
|
#endif
|
64
60
|
|
65
61
|
#ifndef SWIGUNUSEDPARM
|
66
62
|
# ifdef __cplusplus
|
67
63
|
# define SWIGUNUSEDPARM(p)
|
68
64
|
# else
|
69
|
-
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
65
|
+
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
70
66
|
# endif
|
71
67
|
#endif
|
72
68
|
|
@@ -81,11 +77,9 @@
|
|
81
77
|
#endif
|
82
78
|
|
83
79
|
/* exporting methods */
|
84
|
-
#if
|
85
|
-
#
|
86
|
-
#
|
87
|
-
# define GCC_HASCLASSVISIBILITY
|
88
|
-
# endif
|
80
|
+
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
81
|
+
# ifndef GCC_HASCLASSVISIBILITY
|
82
|
+
# define GCC_HASCLASSVISIBILITY
|
89
83
|
# endif
|
90
84
|
#endif
|
91
85
|
|
@@ -111,7 +105,7 @@
|
|
111
105
|
# define SWIGSTDCALL __stdcall
|
112
106
|
# else
|
113
107
|
# define SWIGSTDCALL
|
114
|
-
# endif
|
108
|
+
# endif
|
115
109
|
#endif
|
116
110
|
|
117
111
|
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
|
@@ -124,19 +118,6 @@
|
|
124
118
|
# define _SCL_SECURE_NO_DEPRECATE
|
125
119
|
#endif
|
126
120
|
|
127
|
-
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
|
128
|
-
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
|
129
|
-
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
|
130
|
-
#endif
|
131
|
-
|
132
|
-
/* Intel's compiler complains if a variable which was never initialised is
|
133
|
-
* cast to void, which is a common idiom which we use to indicate that we
|
134
|
-
* are aware a variable isn't used. So we just silence that warning.
|
135
|
-
* See: https://github.com/swig/swig/issues/192 for more discussion.
|
136
|
-
*/
|
137
|
-
#ifdef __INTEL_COMPILER
|
138
|
-
# pragma warning disable 592
|
139
|
-
#endif
|
140
121
|
|
141
122
|
/* -----------------------------------------------------------------------------
|
142
123
|
* This section contains generic SWIG labels for method/variable
|
@@ -169,28 +150,28 @@
|
|
169
150
|
#ifndef SWIGUNUSED
|
170
151
|
# if defined(__GNUC__)
|
171
152
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
172
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
153
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
173
154
|
# else
|
174
155
|
# define SWIGUNUSED
|
175
156
|
# endif
|
176
157
|
# elif defined(__ICC)
|
177
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
158
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
178
159
|
# else
|
179
|
-
# define SWIGUNUSED
|
160
|
+
# define SWIGUNUSED
|
180
161
|
# endif
|
181
162
|
#endif
|
182
163
|
|
183
164
|
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
184
165
|
# if defined(_MSC_VER)
|
185
166
|
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
186
|
-
# endif
|
167
|
+
# endif
|
187
168
|
#endif
|
188
169
|
|
189
170
|
#ifndef SWIGUNUSEDPARM
|
190
171
|
# ifdef __cplusplus
|
191
172
|
# define SWIGUNUSEDPARM(p)
|
192
173
|
# else
|
193
|
-
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
174
|
+
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
194
175
|
# endif
|
195
176
|
#endif
|
196
177
|
|
@@ -205,11 +186,9 @@
|
|
205
186
|
#endif
|
206
187
|
|
207
188
|
/* exporting methods */
|
208
|
-
#if
|
209
|
-
#
|
210
|
-
#
|
211
|
-
# define GCC_HASCLASSVISIBILITY
|
212
|
-
# endif
|
189
|
+
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
190
|
+
# ifndef GCC_HASCLASSVISIBILITY
|
191
|
+
# define GCC_HASCLASSVISIBILITY
|
213
192
|
# endif
|
214
193
|
#endif
|
215
194
|
|
@@ -235,7 +214,7 @@
|
|
235
214
|
# define SWIGSTDCALL __stdcall
|
236
215
|
# else
|
237
216
|
# define SWIGSTDCALL
|
238
|
-
# endif
|
217
|
+
# endif
|
239
218
|
#endif
|
240
219
|
|
241
220
|
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
|
@@ -248,19 +227,6 @@
|
|
248
227
|
# define _SCL_SECURE_NO_DEPRECATE
|
249
228
|
#endif
|
250
229
|
|
251
|
-
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
|
252
|
-
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
|
253
|
-
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
|
254
|
-
#endif
|
255
|
-
|
256
|
-
/* Intel's compiler complains if a variable which was never initialised is
|
257
|
-
* cast to void, which is a common idiom which we use to indicate that we
|
258
|
-
* are aware a variable isn't used. So we just silence that warning.
|
259
|
-
* See: https://github.com/swig/swig/issues/192 for more discussion.
|
260
|
-
*/
|
261
|
-
#ifdef __INTEL_COMPILER
|
262
|
-
# pragma warning disable 592
|
263
|
-
#endif
|
264
230
|
|
265
231
|
/* -----------------------------------------------------------------------------
|
266
232
|
* swigrun.swg
|
@@ -286,7 +252,7 @@
|
|
286
252
|
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
|
287
253
|
creating a static or dynamic library from the SWIG runtime code.
|
288
254
|
In 99.9% of the cases, SWIG just needs to declare them as 'static'.
|
289
|
-
|
255
|
+
|
290
256
|
But only do this if strictly necessary, ie, if you have problems
|
291
257
|
with your compiler or suchlike.
|
292
258
|
*/
|
@@ -312,16 +278,16 @@
|
|
312
278
|
#define SWIG_POINTER_OWN 0x1
|
313
279
|
|
314
280
|
|
315
|
-
/*
|
281
|
+
/*
|
316
282
|
Flags/methods for returning states.
|
317
|
-
|
318
|
-
The SWIG conversion methods, as ConvertPtr, return an integer
|
283
|
+
|
284
|
+
The SWIG conversion methods, as ConvertPtr, return an integer
|
319
285
|
that tells if the conversion was successful or not. And if not,
|
320
286
|
an error code can be returned (see swigerrors.swg for the codes).
|
321
|
-
|
287
|
+
|
322
288
|
Use the following macros/flags to set or process the returning
|
323
289
|
states.
|
324
|
-
|
290
|
+
|
325
291
|
In old versions of SWIG, code such as the following was usually written:
|
326
292
|
|
327
293
|
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
|
@@ -354,23 +320,23 @@
|
|
354
320
|
} else {
|
355
321
|
// fail code
|
356
322
|
}
|
357
|
-
|
323
|
+
|
358
324
|
I.e., now SWIG_ConvertPtr can return new objects and you can
|
359
325
|
identify the case and take care of the deallocation. Of course that
|
360
326
|
also requires SWIG_ConvertPtr to return new result values, such as
|
361
327
|
|
362
|
-
int SWIG_ConvertPtr(obj, ptr,...) {
|
363
|
-
if (<obj is ok>) {
|
364
|
-
if (<need new object>) {
|
365
|
-
*ptr = <ptr to new allocated object>;
|
366
|
-
return SWIG_NEWOBJ;
|
367
|
-
} else {
|
368
|
-
*ptr = <ptr to old object>;
|
369
|
-
return SWIG_OLDOBJ;
|
370
|
-
}
|
371
|
-
} else {
|
372
|
-
return SWIG_BADOBJ;
|
373
|
-
}
|
328
|
+
int SWIG_ConvertPtr(obj, ptr,...) {
|
329
|
+
if (<obj is ok>) {
|
330
|
+
if (<need new object>) {
|
331
|
+
*ptr = <ptr to new allocated object>;
|
332
|
+
return SWIG_NEWOBJ;
|
333
|
+
} else {
|
334
|
+
*ptr = <ptr to old object>;
|
335
|
+
return SWIG_OLDOBJ;
|
336
|
+
}
|
337
|
+
} else {
|
338
|
+
return SWIG_BADOBJ;
|
339
|
+
}
|
374
340
|
}
|
375
341
|
|
376
342
|
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
|
@@ -384,17 +350,17 @@
|
|
384
350
|
int fooi(int);
|
385
351
|
|
386
352
|
and you call
|
387
|
-
|
353
|
+
|
388
354
|
food(1) // cast rank '1' (1 -> 1.0)
|
389
355
|
fooi(1) // cast rank '0'
|
390
356
|
|
391
357
|
just use the SWIG_AddCast()/SWIG_CheckState()
|
392
358
|
*/
|
393
359
|
|
394
|
-
#define SWIG_OK (0)
|
360
|
+
#define SWIG_OK (0)
|
395
361
|
#define SWIG_ERROR (-1)
|
396
362
|
#define SWIG_IsOK(r) (r >= 0)
|
397
|
-
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
363
|
+
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
398
364
|
|
399
365
|
/* The CastRankLimit says how many bits are used for the cast rank */
|
400
366
|
#define SWIG_CASTRANKLIMIT (1 << 8)
|
@@ -425,11 +391,11 @@
|
|
425
391
|
# endif
|
426
392
|
# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
|
427
393
|
# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
|
428
|
-
SWIGINTERNINLINE int SWIG_AddCast(int r) {
|
394
|
+
SWIGINTERNINLINE int SWIG_AddCast(int r) {
|
429
395
|
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
|
430
396
|
}
|
431
|
-
SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
432
|
-
return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
|
397
|
+
SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
398
|
+
return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
|
433
399
|
}
|
434
400
|
#else /* no cast-rank mode */
|
435
401
|
# define SWIG_AddCast(r) (r)
|
@@ -476,7 +442,7 @@ typedef struct swig_module_info {
|
|
476
442
|
void *clientdata; /* Language specific module data */
|
477
443
|
} swig_module_info;
|
478
444
|
|
479
|
-
/*
|
445
|
+
/*
|
480
446
|
Compare two type names skipping the space characters, therefore
|
481
447
|
"char*" == "char *" and "Class<int>" == "Class<int >", etc.
|
482
448
|
|
@@ -549,7 +515,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) {
|
|
549
515
|
return 0;
|
550
516
|
}
|
551
517
|
|
552
|
-
/*
|
518
|
+
/*
|
553
519
|
Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
|
554
520
|
*/
|
555
521
|
SWIGRUNTIME swig_cast_info *
|
@@ -584,7 +550,7 @@ SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
|
|
584
550
|
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
|
585
551
|
}
|
586
552
|
|
587
|
-
/*
|
553
|
+
/*
|
588
554
|
Dynamic pointer casting. Down an inheritance hierarchy
|
589
555
|
*/
|
590
556
|
SWIGRUNTIME swig_type_info *
|
@@ -628,7 +594,7 @@ SWIG_TypePrettyName(const swig_type_info *type) {
|
|
628
594
|
return type->name;
|
629
595
|
}
|
630
596
|
|
631
|
-
/*
|
597
|
+
/*
|
632
598
|
Set the clientdata field for a type
|
633
599
|
*/
|
634
600
|
SWIGRUNTIME void
|
@@ -636,14 +602,14 @@ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
|
|
636
602
|
swig_cast_info *cast = ti->cast;
|
637
603
|
/* if (ti->clientdata == clientdata) return; */
|
638
604
|
ti->clientdata = clientdata;
|
639
|
-
|
605
|
+
|
640
606
|
while (cast) {
|
641
607
|
if (!cast->converter) {
|
642
608
|
swig_type_info *tc = cast->type;
|
643
609
|
if (!tc->clientdata) {
|
644
610
|
SWIG_TypeClientData(tc, clientdata);
|
645
611
|
}
|
646
|
-
}
|
612
|
+
}
|
647
613
|
cast = cast->next;
|
648
614
|
}
|
649
615
|
}
|
@@ -652,31 +618,31 @@ SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
|
|
652
618
|
SWIG_TypeClientData(ti, clientdata);
|
653
619
|
ti->owndata = 1;
|
654
620
|
}
|
655
|
-
|
621
|
+
|
656
622
|
/*
|
657
623
|
Search for a swig_type_info structure only by mangled name
|
658
624
|
Search is a O(log #types)
|
659
|
-
|
660
|
-
We start searching at module start, and finish searching when start == end.
|
625
|
+
|
626
|
+
We start searching at module start, and finish searching when start == end.
|
661
627
|
Note: if start == end at the beginning of the function, we go all the way around
|
662
628
|
the circular list.
|
663
629
|
*/
|
664
630
|
SWIGRUNTIME swig_type_info *
|
665
|
-
SWIG_MangledTypeQueryModule(swig_module_info *start,
|
666
|
-
swig_module_info *end,
|
631
|
+
SWIG_MangledTypeQueryModule(swig_module_info *start,
|
632
|
+
swig_module_info *end,
|
667
633
|
const char *name) {
|
668
634
|
swig_module_info *iter = start;
|
669
635
|
do {
|
670
636
|
if (iter->size) {
|
671
|
-
size_t l = 0;
|
672
|
-
size_t r = iter->size - 1;
|
637
|
+
register size_t l = 0;
|
638
|
+
register size_t r = iter->size - 1;
|
673
639
|
do {
|
674
640
|
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
|
675
|
-
size_t i = (l + r) >> 1;
|
641
|
+
register size_t i = (l + r) >> 1;
|
676
642
|
const char *iname = iter->types[i]->name;
|
677
643
|
if (iname) {
|
678
|
-
int compare = strcmp(name, iname);
|
679
|
-
if (compare == 0) {
|
644
|
+
register int compare = strcmp(name, iname);
|
645
|
+
if (compare == 0) {
|
680
646
|
return iter->types[i];
|
681
647
|
} else if (compare < 0) {
|
682
648
|
if (i) {
|
@@ -701,14 +667,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
|
|
701
667
|
Search for a swig_type_info structure for either a mangled name or a human readable name.
|
702
668
|
It first searches the mangled names of the types, which is a O(log #types)
|
703
669
|
If a type is not found it then searches the human readable names, which is O(#types).
|
704
|
-
|
705
|
-
We start searching at module start, and finish searching when start == end.
|
670
|
+
|
671
|
+
We start searching at module start, and finish searching when start == end.
|
706
672
|
Note: if start == end at the beginning of the function, we go all the way around
|
707
673
|
the circular list.
|
708
674
|
*/
|
709
675
|
SWIGRUNTIME swig_type_info *
|
710
|
-
SWIG_TypeQueryModule(swig_module_info *start,
|
711
|
-
swig_module_info *end,
|
676
|
+
SWIG_TypeQueryModule(swig_module_info *start,
|
677
|
+
swig_module_info *end,
|
712
678
|
const char *name) {
|
713
679
|
/* STEP 1: Search the name field using binary search */
|
714
680
|
swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
|
@@ -719,7 +685,7 @@ SWIG_TypeQueryModule(swig_module_info *start,
|
|
719
685
|
of the str field (the human readable name) */
|
720
686
|
swig_module_info *iter = start;
|
721
687
|
do {
|
722
|
-
size_t i = 0;
|
688
|
+
register size_t i = 0;
|
723
689
|
for (; i < iter->size; ++i) {
|
724
690
|
if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
|
725
691
|
return iter->types[i];
|
@@ -727,56 +693,56 @@ SWIG_TypeQueryModule(swig_module_info *start,
|
|
727
693
|
iter = iter->next;
|
728
694
|
} while (iter != end);
|
729
695
|
}
|
730
|
-
|
696
|
+
|
731
697
|
/* neither found a match */
|
732
698
|
return 0;
|
733
699
|
}
|
734
700
|
|
735
|
-
/*
|
701
|
+
/*
|
736
702
|
Pack binary data into a string
|
737
703
|
*/
|
738
704
|
SWIGRUNTIME char *
|
739
705
|
SWIG_PackData(char *c, void *ptr, size_t sz) {
|
740
706
|
static const char hex[17] = "0123456789abcdef";
|
741
|
-
const unsigned char *u = (unsigned char *) ptr;
|
742
|
-
const unsigned char *eu = u + sz;
|
707
|
+
register const unsigned char *u = (unsigned char *) ptr;
|
708
|
+
register const unsigned char *eu = u + sz;
|
743
709
|
for (; u != eu; ++u) {
|
744
|
-
unsigned char uu = *u;
|
710
|
+
register unsigned char uu = *u;
|
745
711
|
*(c++) = hex[(uu & 0xf0) >> 4];
|
746
712
|
*(c++) = hex[uu & 0xf];
|
747
713
|
}
|
748
714
|
return c;
|
749
715
|
}
|
750
716
|
|
751
|
-
/*
|
717
|
+
/*
|
752
718
|
Unpack binary data from a string
|
753
719
|
*/
|
754
720
|
SWIGRUNTIME const char *
|
755
721
|
SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
|
756
|
-
unsigned char *u = (unsigned char *) ptr;
|
757
|
-
const unsigned char *eu = u + sz;
|
722
|
+
register unsigned char *u = (unsigned char *) ptr;
|
723
|
+
register const unsigned char *eu = u + sz;
|
758
724
|
for (; u != eu; ++u) {
|
759
|
-
char d = *(c++);
|
760
|
-
unsigned char uu;
|
725
|
+
register char d = *(c++);
|
726
|
+
register unsigned char uu;
|
761
727
|
if ((d >= '0') && (d <= '9'))
|
762
|
-
uu = (
|
728
|
+
uu = ((d - '0') << 4);
|
763
729
|
else if ((d >= 'a') && (d <= 'f'))
|
764
|
-
uu = (
|
765
|
-
else
|
730
|
+
uu = ((d - ('a'-10)) << 4);
|
731
|
+
else
|
766
732
|
return (char *) 0;
|
767
733
|
d = *(c++);
|
768
734
|
if ((d >= '0') && (d <= '9'))
|
769
|
-
uu |= (
|
735
|
+
uu |= (d - '0');
|
770
736
|
else if ((d >= 'a') && (d <= 'f'))
|
771
|
-
uu |= (
|
772
|
-
else
|
737
|
+
uu |= (d - ('a'-10));
|
738
|
+
else
|
773
739
|
return (char *) 0;
|
774
740
|
*u = uu;
|
775
741
|
}
|
776
742
|
return c;
|
777
743
|
}
|
778
744
|
|
779
|
-
/*
|
745
|
+
/*
|
780
746
|
Pack 'void *' into a string buffer.
|
781
747
|
*/
|
782
748
|
SWIGRUNTIME char *
|
@@ -836,18 +802,18 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
836
802
|
#endif
|
837
803
|
|
838
804
|
/* Errors in SWIG */
|
839
|
-
#define SWIG_UnknownError -1
|
840
|
-
#define SWIG_IOError -2
|
841
|
-
#define SWIG_RuntimeError -3
|
842
|
-
#define SWIG_IndexError -4
|
843
|
-
#define SWIG_TypeError -5
|
844
|
-
#define SWIG_DivisionByZero -6
|
845
|
-
#define SWIG_OverflowError -7
|
846
|
-
#define SWIG_SyntaxError -8
|
847
|
-
#define SWIG_ValueError -9
|
805
|
+
#define SWIG_UnknownError -1
|
806
|
+
#define SWIG_IOError -2
|
807
|
+
#define SWIG_RuntimeError -3
|
808
|
+
#define SWIG_IndexError -4
|
809
|
+
#define SWIG_TypeError -5
|
810
|
+
#define SWIG_DivisionByZero -6
|
811
|
+
#define SWIG_OverflowError -7
|
812
|
+
#define SWIG_SyntaxError -8
|
813
|
+
#define SWIG_ValueError -9
|
848
814
|
#define SWIG_SystemError -10
|
849
815
|
#define SWIG_AttributeError -11
|
850
|
-
#define SWIG_MemoryError -12
|
816
|
+
#define SWIG_MemoryError -12
|
851
817
|
#define SWIG_NullReferenceError -13
|
852
818
|
|
853
819
|
|
@@ -1178,11 +1144,6 @@ void Ruby_Format_OverloadedError(
|
|
1178
1144
|
extern "C" {
|
1179
1145
|
#endif
|
1180
1146
|
|
1181
|
-
#if !defined(ST_DATA_T_DEFINED)
|
1182
|
-
/* Needs to be explicitly included for Ruby 1.8 and earlier */
|
1183
|
-
#include <st.h>
|
1184
|
-
#endif
|
1185
|
-
|
1186
1147
|
/* Ruby 1.8 actually assumes the first case. */
|
1187
1148
|
#if SIZEOF_VOIDP == SIZEOF_LONG
|
1188
1149
|
# define SWIG2NUM(v) LONG2NUM((unsigned long)v)
|
@@ -1194,19 +1155,19 @@ extern "C" {
|
|
1194
1155
|
# error sizeof(void*) is not the same as long or long long
|
1195
1156
|
#endif
|
1196
1157
|
|
1197
|
-
|
1158
|
+
|
1159
|
+
/* Global Ruby hash table to store Trackings from C/C++
|
1198
1160
|
structs to Ruby Objects.
|
1199
1161
|
*/
|
1200
|
-
static
|
1162
|
+
static VALUE swig_ruby_trackings = Qnil;
|
1201
1163
|
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1164
|
+
/* Global variable that stores a reference to the ruby
|
1165
|
+
hash table delete function. */
|
1166
|
+
static ID swig_ruby_hash_delete;
|
1205
1167
|
|
1206
|
-
|
1207
|
-
/* Setup a hash table to store Trackings */
|
1168
|
+
/* Setup a Ruby hash table to store Trackings */
|
1208
1169
|
SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
|
1209
|
-
/* Create a hash table to store Trackings from C++
|
1170
|
+
/* Create a ruby hash table to store Trackings from C++
|
1210
1171
|
objects to Ruby objects. */
|
1211
1172
|
|
1212
1173
|
/* Try to see if some other .so has already created a
|
@@ -1215,46 +1176,88 @@ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
|
|
1215
1176
|
This is done to allow multiple DSOs to share the same
|
1216
1177
|
tracking table.
|
1217
1178
|
*/
|
1218
|
-
|
1219
|
-
/* change the variable name so that we can mix modules
|
1220
|
-
compiled with older SWIG's - this used to be called "@__trackings__" */
|
1221
|
-
ID trackings_id = rb_intern( "@__safetrackings__" );
|
1179
|
+
ID trackings_id = rb_intern( "@__trackings__" );
|
1222
1180
|
VALUE verbose = rb_gv_get("VERBOSE");
|
1223
1181
|
rb_gv_set("VERBOSE", Qfalse);
|
1224
|
-
|
1182
|
+
swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id );
|
1225
1183
|
rb_gv_set("VERBOSE", verbose);
|
1226
1184
|
|
1227
|
-
/*
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1185
|
+
/* No, it hasn't. Create one ourselves */
|
1186
|
+
if ( swig_ruby_trackings == Qnil )
|
1187
|
+
{
|
1188
|
+
swig_ruby_trackings = rb_hash_new();
|
1189
|
+
rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings );
|
1190
|
+
}
|
1191
|
+
|
1192
|
+
/* Now store a reference to the hash table delete function
|
1193
|
+
so that we only have to look it up once.*/
|
1194
|
+
swig_ruby_hash_delete = rb_intern("delete");
|
1195
|
+
}
|
1196
|
+
|
1197
|
+
/* Get a Ruby number to reference a pointer */
|
1198
|
+
SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
|
1199
|
+
/* We cast the pointer to an unsigned long
|
1200
|
+
and then store a reference to it using
|
1201
|
+
a Ruby number object. */
|
1238
1202
|
|
1239
|
-
|
1203
|
+
/* Convert the pointer to a Ruby number */
|
1204
|
+
return SWIG2NUM(ptr);
|
1205
|
+
}
|
1206
|
+
|
1207
|
+
/* Get a Ruby number to reference an object */
|
1208
|
+
SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
|
1209
|
+
/* We cast the object to an unsigned long
|
1210
|
+
and then store a reference to it using
|
1211
|
+
a Ruby number object. */
|
1212
|
+
|
1213
|
+
/* Convert the Object to a Ruby number */
|
1214
|
+
return SWIG2NUM(object);
|
1215
|
+
}
|
1216
|
+
|
1217
|
+
/* Get a Ruby object from a previously stored reference */
|
1218
|
+
SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
|
1219
|
+
/* The provided Ruby number object is a reference
|
1220
|
+
to the Ruby object we want.*/
|
1221
|
+
|
1222
|
+
/* Convert the Ruby number to a Ruby object */
|
1223
|
+
return NUM2SWIG(reference);
|
1240
1224
|
}
|
1241
1225
|
|
1242
1226
|
/* Add a Tracking from a C/C++ struct to a Ruby object */
|
1243
1227
|
SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) {
|
1228
|
+
/* In a Ruby hash table we store the pointer and
|
1229
|
+
the associated Ruby object. The trick here is
|
1230
|
+
that we cannot store the Ruby object directly - if
|
1231
|
+
we do then it cannot be garbage collected. So
|
1232
|
+
instead we typecast it as a unsigned long and
|
1233
|
+
convert it to a Ruby number object.*/
|
1234
|
+
|
1235
|
+
/* Get a reference to the pointer as a Ruby number */
|
1236
|
+
VALUE key = SWIG_RubyPtrToReference(ptr);
|
1237
|
+
|
1238
|
+
/* Get a reference to the Ruby object as a Ruby number */
|
1239
|
+
VALUE value = SWIG_RubyObjectToReference(object);
|
1240
|
+
|
1244
1241
|
/* Store the mapping to the global hash table. */
|
1245
|
-
|
1242
|
+
rb_hash_aset(swig_ruby_trackings, key, value);
|
1246
1243
|
}
|
1247
1244
|
|
1248
1245
|
/* Get the Ruby object that owns the specified C/C++ struct */
|
1249
1246
|
SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
|
1250
|
-
/*
|
1251
|
-
VALUE
|
1247
|
+
/* Get a reference to the pointer as a Ruby number */
|
1248
|
+
VALUE key = SWIG_RubyPtrToReference(ptr);
|
1252
1249
|
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1250
|
+
/* Now lookup the value stored in the global hash table */
|
1251
|
+
VALUE value = rb_hash_aref(swig_ruby_trackings, key);
|
1252
|
+
|
1253
|
+
if (value == Qnil) {
|
1254
|
+
/* No object exists - return nil. */
|
1256
1255
|
return Qnil;
|
1257
1256
|
}
|
1257
|
+
else {
|
1258
|
+
/* Convert this value to Ruby object */
|
1259
|
+
return SWIG_RubyReferenceToObject(value);
|
1260
|
+
}
|
1258
1261
|
}
|
1259
1262
|
|
1260
1263
|
/* Remove a Tracking from a C/C++ struct to a Ruby object. It
|
@@ -1262,8 +1265,12 @@ SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
|
|
1262
1265
|
since the same memory address may be reused later to create
|
1263
1266
|
a new object. */
|
1264
1267
|
SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) {
|
1265
|
-
/*
|
1266
|
-
|
1268
|
+
/* Get a reference to the pointer as a Ruby number */
|
1269
|
+
VALUE key = SWIG_RubyPtrToReference(ptr);
|
1270
|
+
|
1271
|
+
/* Delete the object from the hash table by calling Ruby's
|
1272
|
+
do this we need to call the Hash.delete method.*/
|
1273
|
+
rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key);
|
1267
1274
|
}
|
1268
1275
|
|
1269
1276
|
/* This is a helper method that unlinks a Ruby object from its
|
@@ -1273,25 +1280,10 @@ SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
|
|
1273
1280
|
VALUE object = SWIG_RubyInstanceFor(ptr);
|
1274
1281
|
|
1275
1282
|
if (object != Qnil) {
|
1276
|
-
if (TYPE(object) != T_DATA)
|
1277
|
-
abort();
|
1278
1283
|
DATA_PTR(object) = 0;
|
1279
1284
|
}
|
1280
1285
|
}
|
1281
1286
|
|
1282
|
-
/* This is a helper method that iterates over all the trackings
|
1283
|
-
passing the C++ object pointer and its related Ruby object
|
1284
|
-
to the passed callback function. */
|
1285
|
-
|
1286
|
-
/* Proxy method to abstract the internal trackings datatype */
|
1287
|
-
static int swig_ruby_internal_iterate_callback(void* ptr, VALUE obj, void(*meth)(void* ptr, VALUE obj)) {
|
1288
|
-
(*meth)(ptr, obj);
|
1289
|
-
return ST_CONTINUE;
|
1290
|
-
}
|
1291
|
-
|
1292
|
-
SWIGRUNTIME void SWIG_RubyIterateTrackings( void(*meth)(void* ptr, VALUE obj) ) {
|
1293
|
-
st_foreach(swig_ruby_trackings, (int (*)(ANYARGS))&swig_ruby_internal_iterate_callback, (st_data_t)meth);
|
1294
|
-
}
|
1295
1287
|
|
1296
1288
|
#ifdef __cplusplus
|
1297
1289
|
}
|
@@ -1350,7 +1342,7 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1350
1342
|
#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own)
|
1351
1343
|
#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags)
|
1352
1344
|
#define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own)
|
1353
|
-
#define swig_owntype
|
1345
|
+
#define swig_owntype ruby_owntype
|
1354
1346
|
|
1355
1347
|
/* for raw packed data */
|
1356
1348
|
#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
|
@@ -1487,13 +1479,14 @@ SWIG_Ruby_InitRuntime(void)
|
|
1487
1479
|
SWIGRUNTIME void
|
1488
1480
|
SWIG_Ruby_define_class(swig_type_info *type)
|
1489
1481
|
{
|
1482
|
+
VALUE klass;
|
1490
1483
|
char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
|
1491
1484
|
sprintf(klass_name, "TYPE%s", type->name);
|
1492
1485
|
if (NIL_P(_cSWIG_Pointer)) {
|
1493
1486
|
_cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
|
1494
1487
|
rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
|
1495
1488
|
}
|
1496
|
-
rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
|
1489
|
+
klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
|
1497
1490
|
free((void *) klass_name);
|
1498
1491
|
}
|
1499
1492
|
|
@@ -1574,24 +1567,22 @@ SWIG_Ruby_MangleStr(VALUE obj)
|
|
1574
1567
|
}
|
1575
1568
|
|
1576
1569
|
/* Acquire a pointer value */
|
1577
|
-
typedef
|
1578
|
-
void (*datafree)(void *);
|
1579
|
-
int own;
|
1580
|
-
} swig_ruby_owntype;
|
1570
|
+
typedef void (*ruby_owntype)(void*);
|
1581
1571
|
|
1582
|
-
SWIGRUNTIME
|
1583
|
-
SWIG_Ruby_AcquirePtr(VALUE obj,
|
1584
|
-
swig_ruby_owntype oldown = {0, 0};
|
1572
|
+
SWIGRUNTIME ruby_owntype
|
1573
|
+
SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) {
|
1585
1574
|
if (obj) {
|
1586
|
-
oldown
|
1587
|
-
RDATA(obj)->dfree = own
|
1575
|
+
ruby_owntype oldown = RDATA(obj)->dfree;
|
1576
|
+
RDATA(obj)->dfree = own;
|
1577
|
+
return oldown;
|
1578
|
+
} else {
|
1579
|
+
return 0;
|
1588
1580
|
}
|
1589
|
-
return oldown;
|
1590
1581
|
}
|
1591
1582
|
|
1592
1583
|
/* Convert a pointer value */
|
1593
1584
|
SWIGRUNTIME int
|
1594
|
-
SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
1585
|
+
SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own)
|
1595
1586
|
{
|
1596
1587
|
char *c;
|
1597
1588
|
swig_cast_info *tc;
|
@@ -1599,8 +1590,7 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1599
1590
|
|
1600
1591
|
/* Grab the pointer */
|
1601
1592
|
if (NIL_P(obj)) {
|
1602
|
-
|
1603
|
-
*ptr = 0;
|
1593
|
+
*ptr = 0;
|
1604
1594
|
return SWIG_OK;
|
1605
1595
|
} else {
|
1606
1596
|
if (TYPE(obj) != T_DATA) {
|
@@ -1609,10 +1599,7 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1609
1599
|
Data_Get_Struct(obj, void, vptr);
|
1610
1600
|
}
|
1611
1601
|
|
1612
|
-
if (own)
|
1613
|
-
own->datafree = RDATA(obj)->dfree;
|
1614
|
-
own->own = 0;
|
1615
|
-
}
|
1602
|
+
if (own) *own = RDATA(obj)->dfree;
|
1616
1603
|
|
1617
1604
|
/* Check to see if the input object is giving up ownership
|
1618
1605
|
of the underlying C struct or C++ object. If so then we
|
@@ -1647,6 +1634,8 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1647
1634
|
/* The object has already been deleted */
|
1648
1635
|
return SWIG_ObjectPreviouslyDeletedError;
|
1649
1636
|
}
|
1637
|
+
*ptr = vptr;
|
1638
|
+
return SWIG_OK;
|
1650
1639
|
}
|
1651
1640
|
}
|
1652
1641
|
if ((c = SWIG_MangleStr(obj)) == NULL) {
|
@@ -1656,23 +1645,12 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1656
1645
|
if (!tc) {
|
1657
1646
|
return SWIG_ERROR;
|
1658
1647
|
} else {
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
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
|
-
}
|
1648
|
+
int newmemory = 0;
|
1649
|
+
*ptr = SWIG_TypeCast(tc, vptr, &newmemory);
|
1650
|
+
assert(!newmemory); /* newmemory handling not yet implemented */
|
1672
1651
|
}
|
1673
1652
|
} else {
|
1674
|
-
|
1675
|
-
*ptr = vptr;
|
1653
|
+
*ptr = vptr;
|
1676
1654
|
}
|
1677
1655
|
|
1678
1656
|
return SWIG_OK;
|
@@ -1840,37 +1818,38 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1840
1818
|
#define SWIGTYPE_p_pn_message_t swig_types[37]
|
1841
1819
|
#define SWIGTYPE_p_pn_messenger_t swig_types[38]
|
1842
1820
|
#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
|
1821
|
+
#define SWIGTYPE_p_pn_raw_connection_t swig_types[40]
|
1822
|
+
#define SWIGTYPE_p_pn_rcv_settle_mode_t swig_types[41]
|
1823
|
+
#define SWIGTYPE_p_pn_record_t swig_types[42]
|
1824
|
+
#define SWIGTYPE_p_pn_rwbytes_t swig_types[43]
|
1825
|
+
#define SWIGTYPE_p_pn_sasl_outcome_t swig_types[44]
|
1826
|
+
#define SWIGTYPE_p_pn_sasl_t swig_types[45]
|
1827
|
+
#define SWIGTYPE_p_pn_session_t swig_types[46]
|
1828
|
+
#define SWIGTYPE_p_pn_snd_settle_mode_t swig_types[47]
|
1829
|
+
#define SWIGTYPE_p_pn_ssl_cert_subject_subfield swig_types[48]
|
1830
|
+
#define SWIGTYPE_p_pn_ssl_domain_t swig_types[49]
|
1831
|
+
#define SWIGTYPE_p_pn_ssl_hash_alg swig_types[50]
|
1832
|
+
#define SWIGTYPE_p_pn_ssl_mode_t swig_types[51]
|
1833
|
+
#define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[52]
|
1834
|
+
#define SWIGTYPE_p_pn_ssl_t swig_types[53]
|
1835
|
+
#define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[54]
|
1836
|
+
#define SWIGTYPE_p_pn_string_t swig_types[55]
|
1837
|
+
#define SWIGTYPE_p_pn_terminus_t swig_types[56]
|
1838
|
+
#define SWIGTYPE_p_pn_terminus_type_t swig_types[57]
|
1839
|
+
#define SWIGTYPE_p_pn_transport_t swig_types[58]
|
1840
|
+
#define SWIGTYPE_p_pn_type_t swig_types[59]
|
1841
|
+
#define SWIGTYPE_p_pn_url_t swig_types[60]
|
1842
|
+
#define SWIGTYPE_p_pn_uuid_t swig_types[61]
|
1843
|
+
#define SWIGTYPE_p_short swig_types[62]
|
1844
|
+
#define SWIGTYPE_p_signed_char swig_types[63]
|
1845
|
+
#define SWIGTYPE_p_unsigned_char swig_types[64]
|
1846
|
+
#define SWIGTYPE_p_unsigned_int swig_types[65]
|
1847
|
+
#define SWIGTYPE_p_unsigned_long swig_types[66]
|
1848
|
+
#define SWIGTYPE_p_unsigned_long_long swig_types[67]
|
1849
|
+
#define SWIGTYPE_p_unsigned_short swig_types[68]
|
1850
|
+
#define SWIGTYPE_p_void swig_types[69]
|
1851
|
+
static swig_type_info *swig_types[71];
|
1852
|
+
static swig_module_info swig_module = {swig_types, 70, 0, 0, 0, 0};
|
1874
1853
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
1875
1854
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
1876
1855
|
|
@@ -1885,7 +1864,7 @@ static VALUE mCproton;
|
|
1885
1864
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
1886
1865
|
|
1887
1866
|
|
1888
|
-
#define SWIGVERSION
|
1867
|
+
#define SWIGVERSION 0x020010
|
1889
1868
|
#define SWIG_VERSION SWIGVERSION
|
1890
1869
|
|
1891
1870
|
|
@@ -1920,7 +1899,7 @@ SWIG_ruby_failed(void)
|
|
1920
1899
|
}
|
1921
1900
|
|
1922
1901
|
|
1923
|
-
/*@SWIG:/usr/share/swig/
|
1902
|
+
/*@SWIG:/usr/share/swig/2.0.10/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
1924
1903
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
1925
1904
|
{
|
1926
1905
|
VALUE obj = args[0];
|
@@ -1949,69 +1928,12 @@ SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
|
1949
1928
|
}
|
1950
1929
|
|
1951
1930
|
|
1952
|
-
#include <limits.h>
|
1953
|
-
#if !defined(SWIG_NO_LLONG_MAX)
|
1954
|
-
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
|
1955
|
-
# define LLONG_MAX __LONG_LONG_MAX__
|
1956
|
-
# define LLONG_MIN (-LLONG_MAX - 1LL)
|
1957
|
-
# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
|
1958
|
-
# endif
|
1959
|
-
#endif
|
1960
|
-
|
1961
|
-
|
1962
|
-
#if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
|
1963
|
-
# define SWIG_LONG_LONG_AVAILABLE
|
1964
|
-
#endif
|
1965
|
-
|
1966
|
-
|
1967
|
-
#ifdef SWIG_LONG_LONG_AVAILABLE
|
1968
|
-
/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
1969
|
-
SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
|
1970
|
-
{
|
1971
|
-
VALUE obj = args[0];
|
1972
|
-
VALUE type = TYPE(obj);
|
1973
|
-
long long *res = (long long *)(args[1]);
|
1974
|
-
*res = type == T_FIXNUM ? NUM2ULL(obj) : rb_big2ull(obj);
|
1975
|
-
return obj;
|
1976
|
-
}
|
1977
|
-
/*@SWIG@*/
|
1978
|
-
|
1979
|
-
SWIGINTERN int
|
1980
|
-
SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val)
|
1981
|
-
{
|
1982
|
-
VALUE type = TYPE(obj);
|
1983
|
-
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
1984
|
-
unsigned long long v;
|
1985
|
-
VALUE a[2];
|
1986
|
-
a[0] = obj;
|
1987
|
-
a[1] = (VALUE)(&v);
|
1988
|
-
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
|
1989
|
-
if (val) *val = v;
|
1990
|
-
return SWIG_OK;
|
1991
|
-
}
|
1992
|
-
}
|
1993
|
-
return SWIG_TypeError;
|
1994
|
-
}
|
1995
|
-
#endif
|
1996
|
-
|
1997
|
-
|
1998
1931
|
SWIGINTERNINLINE int
|
1999
1932
|
SWIG_AsVal_size_t (VALUE obj, size_t *val)
|
2000
1933
|
{
|
2001
|
-
|
2002
|
-
|
2003
|
-
if (
|
2004
|
-
#endif
|
2005
|
-
unsigned long v;
|
2006
|
-
res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
|
2007
|
-
if (SWIG_IsOK(res) && val) *val = (size_t)(v);
|
2008
|
-
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2009
|
-
} else if (sizeof(size_t) <= sizeof(unsigned long long)) {
|
2010
|
-
unsigned long long v;
|
2011
|
-
res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0);
|
2012
|
-
if (SWIG_IsOK(res) && val) *val = (size_t)(v);
|
2013
|
-
}
|
2014
|
-
#endif
|
1934
|
+
unsigned long v;
|
1935
|
+
int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
|
1936
|
+
if (SWIG_IsOK(res) && val) *val = (size_t)(v);
|
2015
1937
|
return res;
|
2016
1938
|
}
|
2017
1939
|
|
@@ -2038,7 +1960,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
2038
1960
|
if (cptr) {
|
2039
1961
|
if (alloc) {
|
2040
1962
|
if (*alloc == SWIG_NEWOBJ) {
|
2041
|
-
*cptr = (char *)memcpy(malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
|
1963
|
+
*cptr = (char *)memcpy((char *)malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
|
2042
1964
|
} else {
|
2043
1965
|
*cptr = cstr;
|
2044
1966
|
*alloc = SWIG_OLDOBJ;
|
@@ -2083,6 +2005,16 @@ SWIG_FromCharPtrAndSize(const char* carray, size_t size)
|
|
2083
2005
|
}
|
2084
2006
|
|
2085
2007
|
|
2008
|
+
#include <limits.h>
|
2009
|
+
#if !defined(SWIG_NO_LLONG_MAX)
|
2010
|
+
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
|
2011
|
+
# define LLONG_MAX __LONG_LONG_MAX__
|
2012
|
+
# define LLONG_MIN (-LLONG_MAX - 1LL)
|
2013
|
+
# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
|
2014
|
+
# endif
|
2015
|
+
#endif
|
2016
|
+
|
2017
|
+
|
2086
2018
|
#define SWIG_From_long LONG2NUM
|
2087
2019
|
|
2088
2020
|
|
@@ -2295,7 +2227,7 @@ SWIG_From_bool (bool value)
|
|
2295
2227
|
|
2296
2228
|
|
2297
2229
|
|
2298
|
-
/*@SWIG:/usr/share/swig/
|
2230
|
+
/*@SWIG:/usr/share/swig/2.0.10/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2299
2231
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
2300
2232
|
{
|
2301
2233
|
VALUE obj = args[0];
|
@@ -2528,28 +2460,10 @@ SWIG_From_unsigned_SS_long (unsigned long value)
|
|
2528
2460
|
}
|
2529
2461
|
|
2530
2462
|
|
2531
|
-
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2532
|
-
SWIGINTERNINLINE VALUE
|
2533
|
-
SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
|
2534
|
-
{
|
2535
|
-
return ULL2NUM(value);
|
2536
|
-
}
|
2537
|
-
#endif
|
2538
|
-
|
2539
|
-
|
2540
2463
|
SWIGINTERNINLINE VALUE
|
2541
2464
|
SWIG_From_size_t (size_t value)
|
2542
2465
|
{
|
2543
|
-
|
2544
|
-
if (sizeof(size_t) <= sizeof(unsigned long)) {
|
2545
|
-
#endif
|
2546
|
-
return SWIG_From_unsigned_SS_long ((unsigned long)(value));
|
2547
|
-
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2548
|
-
} else {
|
2549
|
-
/* assume sizeof(size_t) <= sizeof(unsigned long long) */
|
2550
|
-
return SWIG_From_unsigned_SS_long_SS_long ((unsigned long long)(value));
|
2551
|
-
}
|
2552
|
-
#endif
|
2466
|
+
return SWIG_From_unsigned_SS_long ((unsigned long)(value));
|
2553
2467
|
}
|
2554
2468
|
|
2555
2469
|
|
@@ -2560,57 +2474,30 @@ SWIG_From_unsigned_SS_int (unsigned int value)
|
|
2560
2474
|
}
|
2561
2475
|
|
2562
2476
|
|
2563
|
-
|
2564
|
-
|
2565
|
-
|
2566
|
-
|
2477
|
+
SWIGINTERNINLINE VALUE
|
2478
|
+
SWIG_From_long_SS_long (long long value)
|
2479
|
+
{
|
2480
|
+
return LL2NUM(value);
|
2481
|
+
}
|
2567
2482
|
|
2568
2483
|
|
2569
|
-
|
2570
|
-
|
2571
|
-
|
2572
|
-
|
2573
|
-
|
2574
|
-
# elif defined __cplusplus && __cplusplus >= 201103L
|
2575
|
-
/* Use a template so that this works whether isfinite() is std::isfinite() or
|
2576
|
-
* in the global namespace. The reality seems to vary between compiler
|
2577
|
-
* versions.
|
2578
|
-
*
|
2579
|
-
* Make sure namespace std exists to avoid compiler warnings.
|
2580
|
-
*
|
2581
|
-
* extern "C++" is required as this fragment can end up inside an extern "C" { } block
|
2582
|
-
*/
|
2583
|
-
namespace std { }
|
2584
|
-
extern "C++" template<typename T>
|
2585
|
-
inline int SWIG_isfinite_func(T x) {
|
2586
|
-
using namespace std;
|
2587
|
-
return isfinite(x);
|
2588
|
-
}
|
2589
|
-
# define SWIG_isfinite(X) (SWIG_isfinite_func(X))
|
2590
|
-
# elif defined(_MSC_VER)
|
2591
|
-
# define SWIG_isfinite(X) (_finite(X))
|
2592
|
-
# elif defined(__sun) && defined(__SVR4)
|
2593
|
-
# include <ieeefp.h>
|
2594
|
-
# define SWIG_isfinite(X) (finite(X))
|
2595
|
-
# endif
|
2596
|
-
#endif
|
2484
|
+
SWIGINTERNINLINE VALUE
|
2485
|
+
SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
|
2486
|
+
{
|
2487
|
+
return ULL2NUM(value);
|
2488
|
+
}
|
2597
2489
|
|
2598
2490
|
|
2599
|
-
|
2600
|
-
#ifdef SWIG_isfinite
|
2601
|
-
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X))
|
2602
|
-
#else
|
2603
|
-
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX))
|
2604
|
-
#endif
|
2491
|
+
#include <float.h>
|
2605
2492
|
|
2606
2493
|
|
2607
|
-
/*@SWIG:/usr/share/swig/
|
2494
|
+
/*@SWIG:/usr/share/swig/2.0.10/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2608
2495
|
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
|
2609
2496
|
{
|
2610
2497
|
VALUE obj = args[0];
|
2611
2498
|
VALUE type = TYPE(obj);
|
2612
2499
|
double *res = (double *)(args[1]);
|
2613
|
-
*res = NUM2DBL(obj);
|
2500
|
+
*res = NUM2DBL(obj);
|
2614
2501
|
return obj;
|
2615
2502
|
}
|
2616
2503
|
/*@SWIG@*/
|
@@ -2639,7 +2526,7 @@ SWIG_AsVal_float (VALUE obj, float *val)
|
|
2639
2526
|
double v;
|
2640
2527
|
int res = SWIG_AsVal_double (obj, &v);
|
2641
2528
|
if (SWIG_IsOK(res)) {
|
2642
|
-
if (
|
2529
|
+
if ((v < -FLT_MAX || v > FLT_MAX)) {
|
2643
2530
|
return SWIG_OverflowError;
|
2644
2531
|
} else {
|
2645
2532
|
if (val) *val = (float)(v);
|
@@ -2649,6 +2536,35 @@ SWIG_AsVal_float (VALUE obj, float *val)
|
|
2649
2536
|
}
|
2650
2537
|
|
2651
2538
|
|
2539
|
+
/*@SWIG:/usr/share/swig/2.0.10/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2540
|
+
SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
|
2541
|
+
{
|
2542
|
+
VALUE obj = args[0];
|
2543
|
+
VALUE type = TYPE(obj);
|
2544
|
+
long long *res = (long long *)(args[1]);
|
2545
|
+
*res = type == T_FIXNUM ? NUM2ULL(obj) : rb_big2ull(obj);
|
2546
|
+
return obj;
|
2547
|
+
}
|
2548
|
+
/*@SWIG@*/
|
2549
|
+
|
2550
|
+
SWIGINTERN int
|
2551
|
+
SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val)
|
2552
|
+
{
|
2553
|
+
VALUE type = TYPE(obj);
|
2554
|
+
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
2555
|
+
unsigned long long v;
|
2556
|
+
VALUE a[2];
|
2557
|
+
a[0] = obj;
|
2558
|
+
a[1] = (VALUE)(&v);
|
2559
|
+
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
|
2560
|
+
if (val) *val = v;
|
2561
|
+
return SWIG_OK;
|
2562
|
+
}
|
2563
|
+
}
|
2564
|
+
return SWIG_TypeError;
|
2565
|
+
}
|
2566
|
+
|
2567
|
+
|
2652
2568
|
SWIGINTERN int
|
2653
2569
|
SWIG_AsVal_bool (VALUE obj, bool *val)
|
2654
2570
|
{
|
@@ -2692,8 +2608,7 @@ SWIG_AsVal_unsigned_SS_short (VALUE obj, unsigned short *val)
|
|
2692
2608
|
}
|
2693
2609
|
|
2694
2610
|
|
2695
|
-
|
2696
|
-
/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2611
|
+
/*@SWIG:/usr/share/swig/2.0.10/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2697
2612
|
SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE *args)
|
2698
2613
|
{
|
2699
2614
|
VALUE obj = args[0];
|
@@ -2720,16 +2635,6 @@ SWIG_AsVal_long_SS_long (VALUE obj, long long *val)
|
|
2720
2635
|
}
|
2721
2636
|
return SWIG_TypeError;
|
2722
2637
|
}
|
2723
|
-
#endif
|
2724
|
-
|
2725
|
-
|
2726
|
-
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2727
|
-
SWIGINTERNINLINE VALUE
|
2728
|
-
SWIG_From_long_SS_long (long long value)
|
2729
|
-
{
|
2730
|
-
return LL2NUM(value);
|
2731
|
-
}
|
2732
|
-
#endif
|
2733
2638
|
|
2734
2639
|
|
2735
2640
|
/* assume the binding does the incref in the wrapper */
|
@@ -2850,7 +2755,7 @@ _wrap_pn_message_encode(int argc, VALUE *argv, VALUE self) {
|
|
2850
2755
|
if (!SWIG_IsOK(res2)) {
|
2851
2756
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","pn_message_encode", 2, argv[1] ));
|
2852
2757
|
}
|
2853
|
-
buff2= (char *)
|
2758
|
+
buff2= (char *)malloc((n2+1)*sizeof(char));
|
2854
2759
|
arg2 = (char *)(buff2);
|
2855
2760
|
size2 = (size_t)(n2);
|
2856
2761
|
arg3 = &size2;
|
@@ -2929,7 +2834,7 @@ _wrap_pn_link_recv(int argc, VALUE *argv, VALUE self) {
|
|
2929
2834
|
if (!SWIG_IsOK(res2)) {
|
2930
2835
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","wrap_pn_link_recv", 2, argv[1] ));
|
2931
2836
|
}
|
2932
|
-
buff2= (char *)
|
2837
|
+
buff2= (char *)malloc((n2+1)*sizeof(char));
|
2933
2838
|
arg2 = (char *)(buff2);
|
2934
2839
|
size2 = (size_t)(n2);
|
2935
2840
|
arg3 = &size2;
|
@@ -3008,7 +2913,7 @@ _wrap_pn_transport_output(int argc, VALUE *argv, VALUE self) {
|
|
3008
2913
|
if (!SWIG_IsOK(res2)) {
|
3009
2914
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","wrap_pn_transport_output", 2, argv[1] ));
|
3010
2915
|
}
|
3011
|
-
buff2= (char *)
|
2916
|
+
buff2= (char *)malloc((n2+1)*sizeof(char));
|
3012
2917
|
arg2 = (char *)(buff2);
|
3013
2918
|
size2 = (size_t)(n2);
|
3014
2919
|
arg3 = &size2;
|
@@ -3049,7 +2954,7 @@ _wrap_pn_transport_peek(int argc, VALUE *argv, VALUE self) {
|
|
3049
2954
|
if (!SWIG_IsOK(res2)) {
|
3050
2955
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","wrap_pn_transport_peek", 2, argv[1] ));
|
3051
2956
|
}
|
3052
|
-
buff2= (char *)
|
2957
|
+
buff2= (char *)malloc((n2+1)*sizeof(char));
|
3053
2958
|
arg2 = (char *)(buff2);
|
3054
2959
|
size2 = (size_t)(n2);
|
3055
2960
|
arg3 = &size2;
|
@@ -3158,7 +3063,7 @@ _wrap_pn_ssl_get_cipher_name(int argc, VALUE *argv, VALUE self) {
|
|
3158
3063
|
if (!SWIG_IsOK(res2)) {
|
3159
3064
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t MAX_OUTPUT_SIZE)","pn_ssl_get_cipher_name", 2, argv[1] ));
|
3160
3065
|
}
|
3161
|
-
buff2= (char *)
|
3066
|
+
buff2= (char *)malloc((size2+1)*sizeof(char));
|
3162
3067
|
arg3 = (size_t)(size2);
|
3163
3068
|
arg2 = (char *)(buff2);
|
3164
3069
|
result = (bool)pn_ssl_get_cipher_name(arg1,arg2,arg3);
|
@@ -3197,7 +3102,7 @@ _wrap_pn_ssl_get_protocol_name(int argc, VALUE *argv, VALUE self) {
|
|
3197
3102
|
if (!SWIG_IsOK(res2)) {
|
3198
3103
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t MAX_OUTPUT_SIZE)","pn_ssl_get_protocol_name", 2, argv[1] ));
|
3199
3104
|
}
|
3200
|
-
buff2= (char *)
|
3105
|
+
buff2= (char *)malloc((size2+1)*sizeof(char));
|
3201
3106
|
arg3 = (size_t)(size2);
|
3202
3107
|
arg2 = (char *)(buff2);
|
3203
3108
|
result = (bool)pn_ssl_get_protocol_name(arg1,arg2,arg3);
|
@@ -3612,7 +3517,7 @@ _wrap_pn_ssl_get_peer_hostname(int argc, VALUE *argv, VALUE self) {
|
|
3612
3517
|
if (!SWIG_IsOK(res2)) {
|
3613
3518
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "(char *OUTPUT, size_t *OUTPUT_SIZE)","pn_ssl_get_peer_hostname", 2, argv[1] ));
|
3614
3519
|
}
|
3615
|
-
buff2= (char *)
|
3520
|
+
buff2= (char *)malloc((n2+1)*sizeof(char));
|
3616
3521
|
arg2 = (char *)(buff2);
|
3617
3522
|
size2 = (size_t)(n2);
|
3618
3523
|
arg3 = &size2;
|
@@ -3742,20 +3647,22 @@ fail:
|
|
3742
3647
|
}
|
3743
3648
|
|
3744
3649
|
|
3745
|
-
SWIGINTERN VALUE
|
3746
3650
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
3747
|
-
|
3651
|
+
SWIGINTERN VALUE
|
3652
|
+
_wrap_Pni_rbhandler_t_allocate(VALUE self) {
|
3748
3653
|
#else
|
3749
|
-
|
3654
|
+
SWIGINTERN VALUE
|
3655
|
+
_wrap_Pni_rbhandler_t_allocate(int argc, VALUE *argv, VALUE self) {
|
3750
3656
|
#endif
|
3751
|
-
|
3752
|
-
|
3657
|
+
|
3658
|
+
|
3659
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Pni_rbhandler_t);
|
3753
3660
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
3754
|
-
|
3661
|
+
rb_obj_call_init(vresult, argc, argv);
|
3755
3662
|
#endif
|
3756
|
-
|
3757
|
-
}
|
3758
|
-
|
3663
|
+
return vresult;
|
3664
|
+
}
|
3665
|
+
|
3759
3666
|
|
3760
3667
|
SWIGINTERN VALUE
|
3761
3668
|
_wrap_new_Pni_rbhandler_t(int argc, VALUE *argv, VALUE self) {
|
@@ -3773,8 +3680,7 @@ fail:
|
|
3773
3680
|
|
3774
3681
|
|
3775
3682
|
SWIGINTERN void
|
3776
|
-
free_Pni_rbhandler_t(
|
3777
|
-
Pni_rbhandler_t *arg1 = (Pni_rbhandler_t *)self;
|
3683
|
+
free_Pni_rbhandler_t(Pni_rbhandler_t *arg1) {
|
3778
3684
|
free((char *) arg1);
|
3779
3685
|
}
|
3780
3686
|
|
@@ -4100,7 +4006,7 @@ _wrap_pn_rwbytes(int argc, VALUE *argv, VALUE self) {
|
|
4100
4006
|
}
|
4101
4007
|
arg2 = (char *)(buf2);
|
4102
4008
|
result = pn_rwbytes(arg1,arg2);
|
4103
|
-
vresult = SWIG_NewPointerObj((pn_rwbytes_t *)memcpy((pn_rwbytes_t *)
|
4009
|
+
vresult = SWIG_NewPointerObj((pn_rwbytes_t *)memcpy((pn_rwbytes_t *)malloc(sizeof(pn_rwbytes_t)),&result,sizeof(pn_rwbytes_t)), SWIGTYPE_p_pn_rwbytes_t, SWIG_POINTER_OWN | 0 );
|
4104
4010
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
4105
4011
|
return vresult;
|
4106
4012
|
fail:
|
@@ -4431,7 +4337,7 @@ _wrap_pn_class_compare(int argc, VALUE *argv, VALUE self) {
|
|
4431
4337
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_class_compare", 3, argv[2] ));
|
4432
4338
|
}
|
4433
4339
|
result = pn_class_compare((struct pn_class_t const *)arg1,arg2,arg3);
|
4434
|
-
vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)
|
4340
|
+
vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)malloc(sizeof(intptr_t)),&result,sizeof(intptr_t)), SWIGTYPE_p_intptr_t, SWIG_POINTER_OWN | 0 );
|
4435
4341
|
return vresult;
|
4436
4342
|
fail:
|
4437
4343
|
return Qnil;
|
@@ -4647,7 +4553,7 @@ _wrap_pn_void_compare(int argc, VALUE *argv, VALUE self) {
|
|
4647
4553
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_void_compare", 2, argv[1] ));
|
4648
4554
|
}
|
4649
4555
|
result = pn_void_compare(arg1,arg2);
|
4650
|
-
vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)
|
4556
|
+
vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)malloc(sizeof(intptr_t)),&result,sizeof(intptr_t)), SWIGTYPE_p_intptr_t, SWIG_POINTER_OWN | 0 );
|
4651
4557
|
return vresult;
|
4652
4558
|
fail:
|
4653
4559
|
return Qnil;
|
@@ -4967,7 +4873,7 @@ _wrap_pn_compare(int argc, VALUE *argv, VALUE self) {
|
|
4967
4873
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_compare", 2, argv[1] ));
|
4968
4874
|
}
|
4969
4875
|
result = pn_compare(arg1,arg2);
|
4970
|
-
vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)
|
4876
|
+
vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)malloc(sizeof(intptr_t)),&result,sizeof(intptr_t)), SWIGTYPE_p_intptr_t, SWIG_POINTER_OWN | 0 );
|
4971
4877
|
return vresult;
|
4972
4878
|
fail:
|
4973
4879
|
return Qnil;
|
@@ -7768,6 +7674,38 @@ fail:
|
|
7768
7674
|
}
|
7769
7675
|
|
7770
7676
|
|
7677
|
+
SWIGINTERN VALUE
|
7678
|
+
_wrap_pn_connection_set_authorization(int argc, VALUE *argv, VALUE self) {
|
7679
|
+
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
|
7680
|
+
char *arg2 = (char *) 0 ;
|
7681
|
+
void *argp1 = 0 ;
|
7682
|
+
int res1 = 0 ;
|
7683
|
+
int res2 ;
|
7684
|
+
char *buf2 = 0 ;
|
7685
|
+
int alloc2 = 0 ;
|
7686
|
+
|
7687
|
+
if ((argc < 2) || (argc > 2)) {
|
7688
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
7689
|
+
}
|
7690
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
|
7691
|
+
if (!SWIG_IsOK(res1)) {
|
7692
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_authorization", 1, argv[0] ));
|
7693
|
+
}
|
7694
|
+
arg1 = (pn_connection_t *)(argp1);
|
7695
|
+
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
7696
|
+
if (!SWIG_IsOK(res2)) {
|
7697
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_set_authorization", 2, argv[1] ));
|
7698
|
+
}
|
7699
|
+
arg2 = (char *)(buf2);
|
7700
|
+
pn_connection_set_authorization(arg1,(char const *)arg2);
|
7701
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
7702
|
+
return Qnil;
|
7703
|
+
fail:
|
7704
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
7705
|
+
return Qnil;
|
7706
|
+
}
|
7707
|
+
|
7708
|
+
|
7771
7709
|
SWIGINTERN VALUE
|
7772
7710
|
_wrap_pn_connection_get_user(int argc, VALUE *argv, VALUE self) {
|
7773
7711
|
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
|
@@ -7792,6 +7730,30 @@ fail:
|
|
7792
7730
|
}
|
7793
7731
|
|
7794
7732
|
|
7733
|
+
SWIGINTERN VALUE
|
7734
|
+
_wrap_pn_connection_get_authorization(int argc, VALUE *argv, VALUE self) {
|
7735
|
+
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
|
7736
|
+
void *argp1 = 0 ;
|
7737
|
+
int res1 = 0 ;
|
7738
|
+
char *result = 0 ;
|
7739
|
+
VALUE vresult = Qnil;
|
7740
|
+
|
7741
|
+
if ((argc < 1) || (argc > 1)) {
|
7742
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
7743
|
+
}
|
7744
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
|
7745
|
+
if (!SWIG_IsOK(res1)) {
|
7746
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_get_authorization", 1, argv[0] ));
|
7747
|
+
}
|
7748
|
+
arg1 = (pn_connection_t *)(argp1);
|
7749
|
+
result = (char *)pn_connection_get_authorization(arg1);
|
7750
|
+
vresult = SWIG_FromCharPtr((const char *)result);
|
7751
|
+
return vresult;
|
7752
|
+
fail:
|
7753
|
+
return Qnil;
|
7754
|
+
}
|
7755
|
+
|
7756
|
+
|
7795
7757
|
SWIGINTERN VALUE
|
7796
7758
|
_wrap_pn_connection_get_hostname(int argc, VALUE *argv, VALUE self) {
|
7797
7759
|
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
|
@@ -9864,6 +9826,54 @@ fail:
|
|
9864
9826
|
}
|
9865
9827
|
|
9866
9828
|
|
9829
|
+
SWIGINTERN VALUE
|
9830
|
+
_wrap_pn_link_properties(int argc, VALUE *argv, VALUE self) {
|
9831
|
+
pn_link_t *arg1 = (pn_link_t *) 0 ;
|
9832
|
+
void *argp1 = 0 ;
|
9833
|
+
int res1 = 0 ;
|
9834
|
+
pn_data_t *result = 0 ;
|
9835
|
+
VALUE vresult = Qnil;
|
9836
|
+
|
9837
|
+
if ((argc < 1) || (argc > 1)) {
|
9838
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
9839
|
+
}
|
9840
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
|
9841
|
+
if (!SWIG_IsOK(res1)) {
|
9842
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_properties", 1, argv[0] ));
|
9843
|
+
}
|
9844
|
+
arg1 = (pn_link_t *)(argp1);
|
9845
|
+
result = (pn_data_t *)pn_link_properties(arg1);
|
9846
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
|
9847
|
+
return vresult;
|
9848
|
+
fail:
|
9849
|
+
return Qnil;
|
9850
|
+
}
|
9851
|
+
|
9852
|
+
|
9853
|
+
SWIGINTERN VALUE
|
9854
|
+
_wrap_pn_link_remote_properties(int argc, VALUE *argv, VALUE self) {
|
9855
|
+
pn_link_t *arg1 = (pn_link_t *) 0 ;
|
9856
|
+
void *argp1 = 0 ;
|
9857
|
+
int res1 = 0 ;
|
9858
|
+
pn_data_t *result = 0 ;
|
9859
|
+
VALUE vresult = Qnil;
|
9860
|
+
|
9861
|
+
if ((argc < 1) || (argc > 1)) {
|
9862
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
9863
|
+
}
|
9864
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
|
9865
|
+
if (!SWIG_IsOK(res1)) {
|
9866
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_properties", 1, argv[0] ));
|
9867
|
+
}
|
9868
|
+
arg1 = (pn_link_t *)(argp1);
|
9869
|
+
result = (pn_data_t *)pn_link_remote_properties(arg1);
|
9870
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_data_t, 0 | 0 );
|
9871
|
+
return vresult;
|
9872
|
+
fail:
|
9873
|
+
return Qnil;
|
9874
|
+
}
|
9875
|
+
|
9876
|
+
|
9867
9877
|
SWIGINTERN VALUE
|
9868
9878
|
_wrap_pn_terminus_get_type(int argc, VALUE *argv, VALUE self) {
|
9869
9879
|
pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
|
@@ -15032,6 +15042,30 @@ fail:
|
|
15032
15042
|
}
|
15033
15043
|
|
15034
15044
|
|
15045
|
+
SWIGINTERN VALUE
|
15046
|
+
_wrap_pn_sasl_get_authorization(int argc, VALUE *argv, VALUE self) {
|
15047
|
+
pn_sasl_t *arg1 = (pn_sasl_t *) 0 ;
|
15048
|
+
void *argp1 = 0 ;
|
15049
|
+
int res1 = 0 ;
|
15050
|
+
char *result = 0 ;
|
15051
|
+
VALUE vresult = Qnil;
|
15052
|
+
|
15053
|
+
if ((argc < 1) || (argc > 1)) {
|
15054
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
15055
|
+
}
|
15056
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 );
|
15057
|
+
if (!SWIG_IsOK(res1)) {
|
15058
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_get_authorization", 1, argv[0] ));
|
15059
|
+
}
|
15060
|
+
arg1 = (pn_sasl_t *)(argp1);
|
15061
|
+
result = (char *)pn_sasl_get_authorization(arg1);
|
15062
|
+
vresult = SWIG_FromCharPtr((const char *)result);
|
15063
|
+
return vresult;
|
15064
|
+
fail:
|
15065
|
+
return Qnil;
|
15066
|
+
}
|
15067
|
+
|
15068
|
+
|
15035
15069
|
SWIGINTERN VALUE
|
15036
15070
|
_wrap_pn_sasl_get_mech(int argc, VALUE *argv, VALUE self) {
|
15037
15071
|
pn_sasl_t *arg1 = (pn_sasl_t *) 0 ;
|
@@ -18287,7 +18321,7 @@ _wrap_pn_connection_driver_read_buffer(int argc, VALUE *argv, VALUE self) {
|
|
18287
18321
|
}
|
18288
18322
|
arg1 = (pn_connection_driver_t *)(argp1);
|
18289
18323
|
result = pn_connection_driver_read_buffer(arg1);
|
18290
|
-
vresult = SWIG_NewPointerObj((pn_rwbytes_t *)memcpy((pn_rwbytes_t *)
|
18324
|
+
vresult = SWIG_NewPointerObj((pn_rwbytes_t *)memcpy((pn_rwbytes_t *)malloc(sizeof(pn_rwbytes_t)),&result,sizeof(pn_rwbytes_t)), SWIGTYPE_p_pn_rwbytes_t, SWIG_POINTER_OWN | 0 );
|
18291
18325
|
return vresult;
|
18292
18326
|
fail:
|
18293
18327
|
return Qnil;
|
@@ -18402,6 +18436,8 @@ _wrap_pn_connection_driver_write_done(int argc, VALUE *argv, VALUE self) {
|
|
18402
18436
|
int res1 = 0 ;
|
18403
18437
|
size_t val2 ;
|
18404
18438
|
int ecode2 = 0 ;
|
18439
|
+
pn_bytes_t result;
|
18440
|
+
VALUE vresult = Qnil;
|
18405
18441
|
|
18406
18442
|
if ((argc < 2) || (argc > 2)) {
|
18407
18443
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
@@ -18416,8 +18452,11 @@ _wrap_pn_connection_driver_write_done(int argc, VALUE *argv, VALUE self) {
|
|
18416
18452
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_connection_driver_write_done", 2, argv[1] ));
|
18417
18453
|
}
|
18418
18454
|
arg2 = (size_t)(val2);
|
18419
|
-
pn_connection_driver_write_done(arg1,arg2);
|
18420
|
-
|
18455
|
+
result = pn_connection_driver_write_done(arg1,arg2);
|
18456
|
+
{
|
18457
|
+
vresult = rb_str_new((&result)->start, (&result)->size);
|
18458
|
+
}
|
18459
|
+
return vresult;
|
18421
18460
|
fail:
|
18422
18461
|
return Qnil;
|
18423
18462
|
}
|
@@ -19149,6 +19188,7 @@ static swig_type_info _swigt__p_pn_map_t = {"_p_pn_map_t", "struct pn_map_t *|pn
|
|
19149
19188
|
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
19189
|
static swig_type_info _swigt__p_pn_messenger_t = {"_p_pn_messenger_t", "pn_messenger_t *", 0, 0, (void*)0, 0};
|
19151
19190
|
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};
|
19191
|
+
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
19192
|
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
19193
|
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
19194
|
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 +19260,7 @@ static swig_type_info *swig_type_initial[] = {
|
|
19220
19260
|
&_swigt__p_pn_message_t,
|
19221
19261
|
&_swigt__p_pn_messenger_t,
|
19222
19262
|
&_swigt__p_pn_proactor_t,
|
19263
|
+
&_swigt__p_pn_raw_connection_t,
|
19223
19264
|
&_swigt__p_pn_rcv_settle_mode_t,
|
19224
19265
|
&_swigt__p_pn_record_t,
|
19225
19266
|
&_swigt__p_pn_rwbytes_t,
|
@@ -19291,6 +19332,7 @@ static swig_cast_info _swigc__p_pn_map_t[] = { {&_swigt__p_pn_map_t, 0, 0, 0},{
|
|
19291
19332
|
static swig_cast_info _swigc__p_pn_message_t[] = { {&_swigt__p_pn_message_t, 0, 0, 0},{0, 0, 0, 0}};
|
19292
19333
|
static swig_cast_info _swigc__p_pn_messenger_t[] = { {&_swigt__p_pn_messenger_t, 0, 0, 0},{0, 0, 0, 0}};
|
19293
19334
|
static swig_cast_info _swigc__p_pn_proactor_t[] = { {&_swigt__p_pn_proactor_t, 0, 0, 0},{0, 0, 0, 0}};
|
19335
|
+
static swig_cast_info _swigc__p_pn_raw_connection_t[] = { {&_swigt__p_pn_raw_connection_t, 0, 0, 0},{0, 0, 0, 0}};
|
19294
19336
|
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
19337
|
static swig_cast_info _swigc__p_pn_record_t[] = { {&_swigt__p_pn_record_t, 0, 0, 0},{0, 0, 0, 0}};
|
19296
19338
|
static swig_cast_info _swigc__p_pn_rwbytes_t[] = { {&_swigt__p_pn_rwbytes_t, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -19362,6 +19404,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
19362
19404
|
_swigc__p_pn_message_t,
|
19363
19405
|
_swigc__p_pn_messenger_t,
|
19364
19406
|
_swigc__p_pn_proactor_t,
|
19407
|
+
_swigc__p_pn_raw_connection_t,
|
19365
19408
|
_swigc__p_pn_rcv_settle_mode_t,
|
19366
19409
|
_swigc__p_pn_record_t,
|
19367
19410
|
_swigc__p_pn_rwbytes_t,
|
@@ -19398,18 +19441,18 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
19398
19441
|
|
19399
19442
|
/* -----------------------------------------------------------------------------
|
19400
19443
|
* Type initialization:
|
19401
|
-
* This problem is tough by the requirement that no dynamic
|
19402
|
-
* memory is used. Also, since swig_type_info structures store pointers to
|
19444
|
+
* This problem is tough by the requirement that no dynamic
|
19445
|
+
* memory is used. Also, since swig_type_info structures store pointers to
|
19403
19446
|
* swig_cast_info structures and swig_cast_info structures store pointers back
|
19404
|
-
* to swig_type_info structures, we need some lookup code at initialization.
|
19405
|
-
* The idea is that swig generates all the structures that are needed.
|
19406
|
-
* The runtime then collects these partially filled structures.
|
19407
|
-
* The SWIG_InitializeModule function takes these initial arrays out of
|
19447
|
+
* to swig_type_info structures, we need some lookup code at initialization.
|
19448
|
+
* The idea is that swig generates all the structures that are needed.
|
19449
|
+
* The runtime then collects these partially filled structures.
|
19450
|
+
* The SWIG_InitializeModule function takes these initial arrays out of
|
19408
19451
|
* swig_module, and does all the lookup, filling in the swig_module.types
|
19409
19452
|
* array with the correct data and linking the correct swig_cast_info
|
19410
19453
|
* structures together.
|
19411
19454
|
*
|
19412
|
-
* The generated swig_type_info structures are assigned
|
19455
|
+
* The generated swig_type_info structures are assigned staticly to an initial
|
19413
19456
|
* array. We just loop through that array, and handle each type individually.
|
19414
19457
|
* First we lookup if this type has been already loaded, and if so, use the
|
19415
19458
|
* loaded structure instead of the generated one. Then we have to fill in the
|
@@ -19419,17 +19462,17 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
19419
19462
|
* a column is one of the swig_cast_info structures for that type.
|
19420
19463
|
* The cast_initial array is actually an array of arrays, because each row has
|
19421
19464
|
* a variable number of columns. So to actually build the cast linked list,
|
19422
|
-
* we find the array of casts associated with the type, and loop through it
|
19465
|
+
* we find the array of casts associated with the type, and loop through it
|
19423
19466
|
* adding the casts to the list. The one last trick we need to do is making
|
19424
19467
|
* sure the type pointer in the swig_cast_info struct is correct.
|
19425
19468
|
*
|
19426
|
-
* First off, we lookup the cast->type name to see if it is already loaded.
|
19469
|
+
* First off, we lookup the cast->type name to see if it is already loaded.
|
19427
19470
|
* There are three cases to handle:
|
19428
19471
|
* 1) If the cast->type has already been loaded AND the type we are adding
|
19429
19472
|
* casting info to has not been loaded (it is in this module), THEN we
|
19430
19473
|
* replace the cast->type pointer with the type pointer that has already
|
19431
19474
|
* been loaded.
|
19432
|
-
* 2) If BOTH types (the one we are adding casting info to, and the
|
19475
|
+
* 2) If BOTH types (the one we are adding casting info to, and the
|
19433
19476
|
* cast->type) are loaded, THEN the cast info has already been loaded by
|
19434
19477
|
* the previous module so we just ignore it.
|
19435
19478
|
* 3) Finally, if cast->type has not already been loaded, then we add that
|
@@ -19453,7 +19496,7 @@ SWIGRUNTIME void
|
|
19453
19496
|
SWIG_InitializeModule(void *clientdata) {
|
19454
19497
|
size_t i;
|
19455
19498
|
swig_module_info *module_head, *iter;
|
19456
|
-
int init;
|
19499
|
+
int found, init;
|
19457
19500
|
|
19458
19501
|
/* check to see if the circular list has been setup, if not, set it up */
|
19459
19502
|
if (swig_module.next==0) {
|
@@ -19472,23 +19515,27 @@ SWIG_InitializeModule(void *clientdata) {
|
|
19472
19515
|
/* This is the first module loaded for this interpreter */
|
19473
19516
|
/* so set the swig module into the interpreter */
|
19474
19517
|
SWIG_SetModule(clientdata, &swig_module);
|
19518
|
+
module_head = &swig_module;
|
19475
19519
|
} else {
|
19476
19520
|
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
|
19521
|
+
found=0;
|
19477
19522
|
iter=module_head;
|
19478
19523
|
do {
|
19479
19524
|
if (iter==&swig_module) {
|
19480
|
-
|
19481
|
-
|
19525
|
+
found=1;
|
19526
|
+
break;
|
19482
19527
|
}
|
19483
19528
|
iter=iter->next;
|
19484
19529
|
} while (iter!= module_head);
|
19485
19530
|
|
19486
|
-
/*
|
19531
|
+
/* if the is found in the list, then all is done and we may leave */
|
19532
|
+
if (found) return;
|
19533
|
+
/* otherwise we must add out module into the list */
|
19487
19534
|
swig_module.next = module_head->next;
|
19488
19535
|
module_head->next = &swig_module;
|
19489
19536
|
}
|
19490
19537
|
|
19491
|
-
/* When multiple
|
19538
|
+
/* When multiple interpeters are used, a module could have already been initialized in
|
19492
19539
|
a different interpreter, but not yet have a pointer in this interpreter.
|
19493
19540
|
In this case, we do not want to continue adding types... everything should be
|
19494
19541
|
set up already */
|
@@ -19502,7 +19549,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
19502
19549
|
swig_type_info *type = 0;
|
19503
19550
|
swig_type_info *ret;
|
19504
19551
|
swig_cast_info *cast;
|
19505
|
-
|
19552
|
+
|
19506
19553
|
#ifdef SWIGRUNTIME_DEBUG
|
19507
19554
|
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
|
19508
19555
|
#endif
|
@@ -19529,7 +19576,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
19529
19576
|
/* Insert casting types */
|
19530
19577
|
cast = swig_module.cast_initial[i];
|
19531
19578
|
while (cast->type) {
|
19532
|
-
|
19579
|
+
|
19533
19580
|
/* Don't need to add information already in the list */
|
19534
19581
|
ret = 0;
|
19535
19582
|
#ifdef SWIGRUNTIME_DEBUG
|
@@ -19697,7 +19744,7 @@ SWIGEXPORT void Init_cproton(void) {
|
|
19697
19744
|
rb_define_module_function(mCproton, "pni_connection_driver", _wrap_pni_connection_driver, -1);
|
19698
19745
|
rb_define_const(mCproton, "PROTON_IMPORT_EXPORT_H", SWIG_From_int((int)(1)));
|
19699
19746
|
rb_define_const(mCproton, "PN_VERSION_MAJOR", SWIG_From_int((int)(0)));
|
19700
|
-
rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(
|
19747
|
+
rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(35)));
|
19701
19748
|
rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(0)));
|
19702
19749
|
rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1)));
|
19703
19750
|
rb_define_const(mCproton, "PN_MILLIS_MAX", SWIG_From_unsigned_SS_int((unsigned int)((~0U))));
|
@@ -19864,7 +19911,9 @@ SWIGEXPORT void Init_cproton(void) {
|
|
19864
19911
|
rb_define_module_function(mCproton, "pn_connection_set_container", _wrap_pn_connection_set_container, -1);
|
19865
19912
|
rb_define_module_function(mCproton, "pn_connection_set_user", _wrap_pn_connection_set_user, -1);
|
19866
19913
|
rb_define_module_function(mCproton, "pn_connection_set_password", _wrap_pn_connection_set_password, -1);
|
19914
|
+
rb_define_module_function(mCproton, "pn_connection_set_authorization", _wrap_pn_connection_set_authorization, -1);
|
19867
19915
|
rb_define_module_function(mCproton, "pn_connection_get_user", _wrap_pn_connection_get_user, -1);
|
19916
|
+
rb_define_module_function(mCproton, "pn_connection_get_authorization", _wrap_pn_connection_get_authorization, -1);
|
19868
19917
|
rb_define_module_function(mCproton, "pn_connection_get_hostname", _wrap_pn_connection_get_hostname, -1);
|
19869
19918
|
rb_define_module_function(mCproton, "pn_connection_set_hostname", _wrap_pn_connection_set_hostname, -1);
|
19870
19919
|
rb_define_module_function(mCproton, "pn_connection_remote_container", _wrap_pn_connection_remote_container, -1);
|
@@ -19951,6 +20000,8 @@ SWIGEXPORT void Init_cproton(void) {
|
|
19951
20000
|
rb_define_module_function(mCproton, "pn_link_max_message_size", _wrap_pn_link_max_message_size, -1);
|
19952
20001
|
rb_define_module_function(mCproton, "pn_link_set_max_message_size", _wrap_pn_link_set_max_message_size, -1);
|
19953
20002
|
rb_define_module_function(mCproton, "pn_link_remote_max_message_size", _wrap_pn_link_remote_max_message_size, -1);
|
20003
|
+
rb_define_module_function(mCproton, "pn_link_properties", _wrap_pn_link_properties, -1);
|
20004
|
+
rb_define_module_function(mCproton, "pn_link_remote_properties", _wrap_pn_link_remote_properties, -1);
|
19954
20005
|
rb_define_const(mCproton, "PROTON_TERMINUS_H", SWIG_From_int((int)(1)));
|
19955
20006
|
rb_define_const(mCproton, "PN_UNSPECIFIED", SWIG_From_int((int)(PN_UNSPECIFIED)));
|
19956
20007
|
rb_define_const(mCproton, "PN_SOURCE", SWIG_From_int((int)(PN_SOURCE)));
|
@@ -20134,6 +20185,16 @@ SWIGEXPORT void Init_cproton(void) {
|
|
20134
20185
|
rb_define_const(mCproton, "PN_PROACTOR_TIMEOUT", SWIG_From_int((int)(PN_PROACTOR_TIMEOUT)));
|
20135
20186
|
rb_define_const(mCproton, "PN_PROACTOR_INACTIVE", SWIG_From_int((int)(PN_PROACTOR_INACTIVE)));
|
20136
20187
|
rb_define_const(mCproton, "PN_LISTENER_OPEN", SWIG_From_int((int)(PN_LISTENER_OPEN)));
|
20188
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_CONNECTED", SWIG_From_int((int)(PN_RAW_CONNECTION_CONNECTED)));
|
20189
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_CLOSED_READ", SWIG_From_int((int)(PN_RAW_CONNECTION_CLOSED_READ)));
|
20190
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_CLOSED_WRITE", SWIG_From_int((int)(PN_RAW_CONNECTION_CLOSED_WRITE)));
|
20191
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_DISCONNECTED", SWIG_From_int((int)(PN_RAW_CONNECTION_DISCONNECTED)));
|
20192
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_NEED_READ_BUFFERS", SWIG_From_int((int)(PN_RAW_CONNECTION_NEED_READ_BUFFERS)));
|
20193
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_NEED_WRITE_BUFFERS", SWIG_From_int((int)(PN_RAW_CONNECTION_NEED_WRITE_BUFFERS)));
|
20194
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_READ", SWIG_From_int((int)(PN_RAW_CONNECTION_READ)));
|
20195
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_WRITTEN", SWIG_From_int((int)(PN_RAW_CONNECTION_WRITTEN)));
|
20196
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_WAKE", SWIG_From_int((int)(PN_RAW_CONNECTION_WAKE)));
|
20197
|
+
rb_define_const(mCproton, "PN_RAW_CONNECTION_DRAIN_BUFFERS", SWIG_From_int((int)(PN_RAW_CONNECTION_DRAIN_BUFFERS)));
|
20137
20198
|
rb_define_module_function(mCproton, "pn_event_type_name", _wrap_pn_event_type_name, -1);
|
20138
20199
|
rb_define_module_function(mCproton, "pn_collector", _wrap_pn_collector, -1);
|
20139
20200
|
rb_define_module_function(mCproton, "pn_collector_free", _wrap_pn_collector_free, -1);
|
@@ -20223,6 +20284,7 @@ SWIGEXPORT void Init_cproton(void) {
|
|
20223
20284
|
rb_define_module_function(mCproton, "pn_sasl_done", _wrap_pn_sasl_done, -1);
|
20224
20285
|
rb_define_module_function(mCproton, "pn_sasl_outcome", _wrap_pn_sasl_outcome, -1);
|
20225
20286
|
rb_define_module_function(mCproton, "pn_sasl_get_user", _wrap_pn_sasl_get_user, -1);
|
20287
|
+
rb_define_module_function(mCproton, "pn_sasl_get_authorization", _wrap_pn_sasl_get_authorization, -1);
|
20226
20288
|
rb_define_module_function(mCproton, "pn_sasl_get_mech", _wrap_pn_sasl_get_mech, -1);
|
20227
20289
|
rb_define_module_function(mCproton, "pn_sasl_allowed_mechs", _wrap_pn_sasl_allowed_mechs, -1);
|
20228
20290
|
rb_define_module_function(mCproton, "pn_sasl_set_allow_insecure_mechs", _wrap_pn_sasl_set_allow_insecure_mechs, -1);
|
@@ -20432,6 +20494,7 @@ SWIGEXPORT void Init_cproton(void) {
|
|
20432
20494
|
rb_define_const(mCproton, "CID_pn_listener", SWIG_From_int((int)(CID_pn_listener)));
|
20433
20495
|
rb_define_const(mCproton, "CID_pn_proactor", SWIG_From_int((int)(CID_pn_proactor)));
|
20434
20496
|
rb_define_const(mCproton, "CID_pn_listener_socket", SWIG_From_int((int)(CID_pn_listener_socket)));
|
20497
|
+
rb_define_const(mCproton, "CID_pn_raw_connection", SWIG_From_int((int)(CID_pn_raw_connection)));
|
20435
20498
|
rb_define_const(mCproton, "PROTON_URL_H", SWIG_From_int((int)(1)));
|
20436
20499
|
rb_define_module_function(mCproton, "pn_url", _wrap_pn_url, -1);
|
20437
20500
|
rb_define_module_function(mCproton, "pn_url_parse", _wrap_pn_url_parse, -1);
|