qpid_proton 0.5 → 0.6
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/ChangeLog +9 -0
- data/ext/cproton/cproton.c +664 -223
- data/lib/qpid_proton/data.rb +8 -0
- data/lib/qpid_proton/exception_handling.rb +9 -0
- data/lib/qpid_proton/exceptions.rb +9 -0
- data/lib/qpid_proton/messenger.rb +239 -30
- data/lib/qpid_proton/tracker.rb +0 -4
- data/lib/qpid_proton/tracker_status.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaa99c544376eaa9c287cf461dc9732604c1066c
|
4
|
+
data.tar.gz: 71571ff32fa0b9aecd475a86c4a7a31bdfacd4ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 690f4a03bf27a8077051349f4c5b97d0535f85c326afa399f55e2c34fe5e053ef29045ce156ecb993d0953f9265b94d59ee31dba802cc9f5030fa9e9b932251d
|
7
|
+
data.tar.gz: 444f5b09caf2f2993d15e8c89c19990a5c940ce2d4aa6b4d96c2fd53cf18e6c7add71802862cedfe7493686f2f1453bf510e6924db759ab097a763564abb4020
|
data/ChangeLog
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
Version 0.7:
|
2
|
+
* PROTON-452: Exposed Messenger interrupt method.
|
3
|
+
* PROTON-454: Add route method to Messenger.
|
4
|
+
* PROTON-455: Add rewrite method to Messenger.
|
5
|
+
* PROTON-456: Add password property to Messenger.
|
6
|
+
|
7
|
+
Version 0.6:
|
8
|
+
* PROTON-427: Removed the flag argument from Messenger.settle.
|
9
|
+
|
1
10
|
version 0.5:
|
2
11
|
* Duck typed the Array class to work with Qpid::Proton::Data.
|
3
12
|
* Duck typed the Hash class to work with Qpid::Proton::Data.
|
data/ext/cproton/cproton.c
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
-
* Version 2.0.
|
4
|
-
*
|
5
|
-
* This file is not intended to be easily readable and contains a number of
|
3
|
+
* Version 2.0.11
|
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
11
|
#define SWIGRUBY
|
@@ -41,28 +41,28 @@
|
|
41
41
|
#ifndef SWIGUNUSED
|
42
42
|
# if defined(__GNUC__)
|
43
43
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
44
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
44
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
45
45
|
# else
|
46
46
|
# define SWIGUNUSED
|
47
47
|
# endif
|
48
48
|
# elif defined(__ICC)
|
49
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
49
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
50
50
|
# else
|
51
|
-
# define SWIGUNUSED
|
51
|
+
# define SWIGUNUSED
|
52
52
|
# endif
|
53
53
|
#endif
|
54
54
|
|
55
55
|
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
56
56
|
# if defined(_MSC_VER)
|
57
57
|
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
58
|
-
# endif
|
58
|
+
# endif
|
59
59
|
#endif
|
60
60
|
|
61
61
|
#ifndef SWIGUNUSEDPARM
|
62
62
|
# ifdef __cplusplus
|
63
63
|
# define SWIGUNUSEDPARM(p)
|
64
64
|
# else
|
65
|
-
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
65
|
+
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
66
66
|
# endif
|
67
67
|
#endif
|
68
68
|
|
@@ -105,7 +105,7 @@
|
|
105
105
|
# define SWIGSTDCALL __stdcall
|
106
106
|
# else
|
107
107
|
# define SWIGSTDCALL
|
108
|
-
# endif
|
108
|
+
# endif
|
109
109
|
#endif
|
110
110
|
|
111
111
|
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
|
@@ -150,28 +150,28 @@
|
|
150
150
|
#ifndef SWIGUNUSED
|
151
151
|
# if defined(__GNUC__)
|
152
152
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
153
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
153
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
154
154
|
# else
|
155
155
|
# define SWIGUNUSED
|
156
156
|
# endif
|
157
157
|
# elif defined(__ICC)
|
158
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
158
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
159
159
|
# else
|
160
|
-
# define SWIGUNUSED
|
160
|
+
# define SWIGUNUSED
|
161
161
|
# endif
|
162
162
|
#endif
|
163
163
|
|
164
164
|
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
165
165
|
# if defined(_MSC_VER)
|
166
166
|
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
167
|
-
# endif
|
167
|
+
# endif
|
168
168
|
#endif
|
169
169
|
|
170
170
|
#ifndef SWIGUNUSEDPARM
|
171
171
|
# ifdef __cplusplus
|
172
172
|
# define SWIGUNUSEDPARM(p)
|
173
173
|
# else
|
174
|
-
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
174
|
+
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
175
175
|
# endif
|
176
176
|
#endif
|
177
177
|
|
@@ -214,7 +214,7 @@
|
|
214
214
|
# define SWIGSTDCALL __stdcall
|
215
215
|
# else
|
216
216
|
# define SWIGSTDCALL
|
217
|
-
# endif
|
217
|
+
# endif
|
218
218
|
#endif
|
219
219
|
|
220
220
|
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
|
@@ -252,7 +252,7 @@
|
|
252
252
|
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
|
253
253
|
creating a static or dynamic library from the SWIG runtime code.
|
254
254
|
In 99.9% of the cases, SWIG just needs to declare them as 'static'.
|
255
|
-
|
255
|
+
|
256
256
|
But only do this if strictly necessary, ie, if you have problems
|
257
257
|
with your compiler or suchlike.
|
258
258
|
*/
|
@@ -278,16 +278,16 @@
|
|
278
278
|
#define SWIG_POINTER_OWN 0x1
|
279
279
|
|
280
280
|
|
281
|
-
/*
|
281
|
+
/*
|
282
282
|
Flags/methods for returning states.
|
283
|
-
|
284
|
-
The SWIG conversion methods, as ConvertPtr, return an integer
|
283
|
+
|
284
|
+
The SWIG conversion methods, as ConvertPtr, return an integer
|
285
285
|
that tells if the conversion was successful or not. And if not,
|
286
286
|
an error code can be returned (see swigerrors.swg for the codes).
|
287
|
-
|
287
|
+
|
288
288
|
Use the following macros/flags to set or process the returning
|
289
289
|
states.
|
290
|
-
|
290
|
+
|
291
291
|
In old versions of SWIG, code such as the following was usually written:
|
292
292
|
|
293
293
|
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
|
@@ -320,23 +320,23 @@
|
|
320
320
|
} else {
|
321
321
|
// fail code
|
322
322
|
}
|
323
|
-
|
323
|
+
|
324
324
|
I.e., now SWIG_ConvertPtr can return new objects and you can
|
325
325
|
identify the case and take care of the deallocation. Of course that
|
326
326
|
also requires SWIG_ConvertPtr to return new result values, such as
|
327
327
|
|
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
|
-
}
|
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
|
+
}
|
340
340
|
}
|
341
341
|
|
342
342
|
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
|
@@ -350,17 +350,17 @@
|
|
350
350
|
int fooi(int);
|
351
351
|
|
352
352
|
and you call
|
353
|
-
|
353
|
+
|
354
354
|
food(1) // cast rank '1' (1 -> 1.0)
|
355
355
|
fooi(1) // cast rank '0'
|
356
356
|
|
357
357
|
just use the SWIG_AddCast()/SWIG_CheckState()
|
358
358
|
*/
|
359
359
|
|
360
|
-
#define SWIG_OK (0)
|
360
|
+
#define SWIG_OK (0)
|
361
361
|
#define SWIG_ERROR (-1)
|
362
362
|
#define SWIG_IsOK(r) (r >= 0)
|
363
|
-
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
363
|
+
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
364
364
|
|
365
365
|
/* The CastRankLimit says how many bits are used for the cast rank */
|
366
366
|
#define SWIG_CASTRANKLIMIT (1 << 8)
|
@@ -391,11 +391,11 @@
|
|
391
391
|
# endif
|
392
392
|
# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
|
393
393
|
# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
|
394
|
-
SWIGINTERNINLINE int SWIG_AddCast(int r) {
|
394
|
+
SWIGINTERNINLINE int SWIG_AddCast(int r) {
|
395
395
|
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
|
396
396
|
}
|
397
|
-
SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
398
|
-
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;
|
399
399
|
}
|
400
400
|
#else /* no cast-rank mode */
|
401
401
|
# define SWIG_AddCast(r) (r)
|
@@ -442,7 +442,7 @@ typedef struct swig_module_info {
|
|
442
442
|
void *clientdata; /* Language specific module data */
|
443
443
|
} swig_module_info;
|
444
444
|
|
445
|
-
/*
|
445
|
+
/*
|
446
446
|
Compare two type names skipping the space characters, therefore
|
447
447
|
"char*" == "char *" and "Class<int>" == "Class<int >", etc.
|
448
448
|
|
@@ -515,7 +515,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) {
|
|
515
515
|
return 0;
|
516
516
|
}
|
517
517
|
|
518
|
-
/*
|
518
|
+
/*
|
519
519
|
Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
|
520
520
|
*/
|
521
521
|
SWIGRUNTIME swig_cast_info *
|
@@ -550,7 +550,7 @@ SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
|
|
550
550
|
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
|
551
551
|
}
|
552
552
|
|
553
|
-
/*
|
553
|
+
/*
|
554
554
|
Dynamic pointer casting. Down an inheritance hierarchy
|
555
555
|
*/
|
556
556
|
SWIGRUNTIME swig_type_info *
|
@@ -594,7 +594,7 @@ SWIG_TypePrettyName(const swig_type_info *type) {
|
|
594
594
|
return type->name;
|
595
595
|
}
|
596
596
|
|
597
|
-
/*
|
597
|
+
/*
|
598
598
|
Set the clientdata field for a type
|
599
599
|
*/
|
600
600
|
SWIGRUNTIME void
|
@@ -602,14 +602,14 @@ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
|
|
602
602
|
swig_cast_info *cast = ti->cast;
|
603
603
|
/* if (ti->clientdata == clientdata) return; */
|
604
604
|
ti->clientdata = clientdata;
|
605
|
-
|
605
|
+
|
606
606
|
while (cast) {
|
607
607
|
if (!cast->converter) {
|
608
608
|
swig_type_info *tc = cast->type;
|
609
609
|
if (!tc->clientdata) {
|
610
610
|
SWIG_TypeClientData(tc, clientdata);
|
611
611
|
}
|
612
|
-
}
|
612
|
+
}
|
613
613
|
cast = cast->next;
|
614
614
|
}
|
615
615
|
}
|
@@ -618,18 +618,18 @@ SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
|
|
618
618
|
SWIG_TypeClientData(ti, clientdata);
|
619
619
|
ti->owndata = 1;
|
620
620
|
}
|
621
|
-
|
621
|
+
|
622
622
|
/*
|
623
623
|
Search for a swig_type_info structure only by mangled name
|
624
624
|
Search is a O(log #types)
|
625
|
-
|
626
|
-
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.
|
627
627
|
Note: if start == end at the beginning of the function, we go all the way around
|
628
628
|
the circular list.
|
629
629
|
*/
|
630
630
|
SWIGRUNTIME swig_type_info *
|
631
|
-
SWIG_MangledTypeQueryModule(swig_module_info *start,
|
632
|
-
swig_module_info *end,
|
631
|
+
SWIG_MangledTypeQueryModule(swig_module_info *start,
|
632
|
+
swig_module_info *end,
|
633
633
|
const char *name) {
|
634
634
|
swig_module_info *iter = start;
|
635
635
|
do {
|
@@ -638,11 +638,11 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
|
|
638
638
|
register size_t r = iter->size - 1;
|
639
639
|
do {
|
640
640
|
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
|
641
|
-
register size_t i = (l + r) >> 1;
|
641
|
+
register size_t i = (l + r) >> 1;
|
642
642
|
const char *iname = iter->types[i]->name;
|
643
643
|
if (iname) {
|
644
644
|
register int compare = strcmp(name, iname);
|
645
|
-
if (compare == 0) {
|
645
|
+
if (compare == 0) {
|
646
646
|
return iter->types[i];
|
647
647
|
} else if (compare < 0) {
|
648
648
|
if (i) {
|
@@ -667,14 +667,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
|
|
667
667
|
Search for a swig_type_info structure for either a mangled name or a human readable name.
|
668
668
|
It first searches the mangled names of the types, which is a O(log #types)
|
669
669
|
If a type is not found it then searches the human readable names, which is O(#types).
|
670
|
-
|
671
|
-
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.
|
672
672
|
Note: if start == end at the beginning of the function, we go all the way around
|
673
673
|
the circular list.
|
674
674
|
*/
|
675
675
|
SWIGRUNTIME swig_type_info *
|
676
|
-
SWIG_TypeQueryModule(swig_module_info *start,
|
677
|
-
swig_module_info *end,
|
676
|
+
SWIG_TypeQueryModule(swig_module_info *start,
|
677
|
+
swig_module_info *end,
|
678
678
|
const char *name) {
|
679
679
|
/* STEP 1: Search the name field using binary search */
|
680
680
|
swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
|
@@ -693,12 +693,12 @@ SWIG_TypeQueryModule(swig_module_info *start,
|
|
693
693
|
iter = iter->next;
|
694
694
|
} while (iter != end);
|
695
695
|
}
|
696
|
-
|
696
|
+
|
697
697
|
/* neither found a match */
|
698
698
|
return 0;
|
699
699
|
}
|
700
700
|
|
701
|
-
/*
|
701
|
+
/*
|
702
702
|
Pack binary data into a string
|
703
703
|
*/
|
704
704
|
SWIGRUNTIME char *
|
@@ -714,7 +714,7 @@ SWIG_PackData(char *c, void *ptr, size_t sz) {
|
|
714
714
|
return c;
|
715
715
|
}
|
716
716
|
|
717
|
-
/*
|
717
|
+
/*
|
718
718
|
Unpack binary data from a string
|
719
719
|
*/
|
720
720
|
SWIGRUNTIME const char *
|
@@ -728,21 +728,21 @@ SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
|
|
728
728
|
uu = ((d - '0') << 4);
|
729
729
|
else if ((d >= 'a') && (d <= 'f'))
|
730
730
|
uu = ((d - ('a'-10)) << 4);
|
731
|
-
else
|
731
|
+
else
|
732
732
|
return (char *) 0;
|
733
733
|
d = *(c++);
|
734
734
|
if ((d >= '0') && (d <= '9'))
|
735
735
|
uu |= (d - '0');
|
736
736
|
else if ((d >= 'a') && (d <= 'f'))
|
737
737
|
uu |= (d - ('a'-10));
|
738
|
-
else
|
738
|
+
else
|
739
739
|
return (char *) 0;
|
740
740
|
*u = uu;
|
741
741
|
}
|
742
742
|
return c;
|
743
743
|
}
|
744
744
|
|
745
|
-
/*
|
745
|
+
/*
|
746
746
|
Pack 'void *' into a string buffer.
|
747
747
|
*/
|
748
748
|
SWIGRUNTIME char *
|
@@ -802,18 +802,18 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
802
802
|
#endif
|
803
803
|
|
804
804
|
/* Errors in SWIG */
|
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
|
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
|
814
814
|
#define SWIG_SystemError -10
|
815
815
|
#define SWIG_AttributeError -11
|
816
|
-
#define SWIG_MemoryError -12
|
816
|
+
#define SWIG_MemoryError -12
|
817
817
|
#define SWIG_NullReferenceError -13
|
818
818
|
|
819
819
|
|
@@ -1779,71 +1779,72 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1779
1779
|
/* -------- TYPES TABLE (BEGIN) -------- */
|
1780
1780
|
|
1781
1781
|
#define SWIGTYPE_p_char swig_types[0]
|
1782
|
-
#define
|
1783
|
-
#define
|
1784
|
-
#define
|
1785
|
-
#define
|
1786
|
-
#define
|
1787
|
-
#define
|
1788
|
-
#define
|
1789
|
-
#define
|
1790
|
-
#define
|
1791
|
-
#define
|
1792
|
-
#define
|
1793
|
-
#define
|
1794
|
-
#define
|
1795
|
-
#define
|
1796
|
-
#define
|
1797
|
-
#define
|
1798
|
-
#define
|
1799
|
-
#define
|
1800
|
-
#define
|
1801
|
-
#define
|
1802
|
-
#define
|
1803
|
-
#define
|
1804
|
-
#define
|
1805
|
-
#define
|
1806
|
-
#define
|
1807
|
-
#define
|
1808
|
-
#define
|
1809
|
-
#define
|
1810
|
-
#define
|
1811
|
-
#define
|
1812
|
-
#define
|
1813
|
-
#define
|
1814
|
-
#define
|
1815
|
-
#define
|
1816
|
-
#define
|
1817
|
-
#define
|
1818
|
-
#define
|
1819
|
-
#define
|
1820
|
-
#define
|
1821
|
-
#define
|
1822
|
-
#define
|
1823
|
-
#define
|
1824
|
-
#define
|
1825
|
-
#define
|
1826
|
-
#define
|
1827
|
-
#define
|
1828
|
-
#define
|
1829
|
-
#define
|
1830
|
-
#define
|
1831
|
-
#define
|
1832
|
-
#define
|
1833
|
-
#define
|
1834
|
-
#define
|
1835
|
-
#define
|
1836
|
-
#define
|
1837
|
-
#define
|
1838
|
-
#define
|
1839
|
-
#define
|
1840
|
-
#define
|
1841
|
-
#define
|
1842
|
-
#define
|
1843
|
-
#define
|
1844
|
-
#define
|
1845
|
-
|
1846
|
-
static
|
1782
|
+
#define SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void swig_types[1]
|
1783
|
+
#define SWIGTYPE_p_f_p_void__uintptr_t swig_types[2]
|
1784
|
+
#define SWIGTYPE_p_f_p_void__void swig_types[3]
|
1785
|
+
#define SWIGTYPE_p_f_p_void_p_struct_pn_string_t__int swig_types[4]
|
1786
|
+
#define SWIGTYPE_p_f_p_void_p_void__intptr_t swig_types[5]
|
1787
|
+
#define SWIGTYPE_p_int swig_types[6]
|
1788
|
+
#define SWIGTYPE_p_intptr_t swig_types[7]
|
1789
|
+
#define SWIGTYPE_p_long swig_types[8]
|
1790
|
+
#define SWIGTYPE_p_long_long swig_types[9]
|
1791
|
+
#define SWIGTYPE_p_p_char swig_types[10]
|
1792
|
+
#define SWIGTYPE_p_pn_activate_criteria_t swig_types[11]
|
1793
|
+
#define SWIGTYPE_p_pn_atom_t swig_types[12]
|
1794
|
+
#define SWIGTYPE_p_pn_atom_t_u swig_types[13]
|
1795
|
+
#define SWIGTYPE_p_pn_bytes_t swig_types[14]
|
1796
|
+
#define SWIGTYPE_p_pn_class_t swig_types[15]
|
1797
|
+
#define SWIGTYPE_p_pn_condition_t swig_types[16]
|
1798
|
+
#define SWIGTYPE_p_pn_connection_t swig_types[17]
|
1799
|
+
#define SWIGTYPE_p_pn_connector_t swig_types[18]
|
1800
|
+
#define SWIGTYPE_p_pn_data_t swig_types[19]
|
1801
|
+
#define SWIGTYPE_p_pn_decimal128_t swig_types[20]
|
1802
|
+
#define SWIGTYPE_p_pn_delivery_t swig_types[21]
|
1803
|
+
#define SWIGTYPE_p_pn_delivery_tag_t swig_types[22]
|
1804
|
+
#define SWIGTYPE_p_pn_disposition_t swig_types[23]
|
1805
|
+
#define SWIGTYPE_p_pn_distribution_mode_t swig_types[24]
|
1806
|
+
#define SWIGTYPE_p_pn_driver_t swig_types[25]
|
1807
|
+
#define SWIGTYPE_p_pn_durability_t swig_types[26]
|
1808
|
+
#define SWIGTYPE_p_pn_error_t swig_types[27]
|
1809
|
+
#define SWIGTYPE_p_pn_expiry_policy_t swig_types[28]
|
1810
|
+
#define SWIGTYPE_p_pn_format_t swig_types[29]
|
1811
|
+
#define SWIGTYPE_p_pn_hash_t swig_types[30]
|
1812
|
+
#define SWIGTYPE_p_pn_link_t swig_types[31]
|
1813
|
+
#define SWIGTYPE_p_pn_list_t swig_types[32]
|
1814
|
+
#define SWIGTYPE_p_pn_listener_t swig_types[33]
|
1815
|
+
#define SWIGTYPE_p_pn_map_t swig_types[34]
|
1816
|
+
#define SWIGTYPE_p_pn_message_t swig_types[35]
|
1817
|
+
#define SWIGTYPE_p_pn_messenger_t swig_types[36]
|
1818
|
+
#define SWIGTYPE_p_pn_rcv_settle_mode_t swig_types[37]
|
1819
|
+
#define SWIGTYPE_p_pn_sasl_outcome_t swig_types[38]
|
1820
|
+
#define SWIGTYPE_p_pn_sasl_state_t swig_types[39]
|
1821
|
+
#define SWIGTYPE_p_pn_sasl_t swig_types[40]
|
1822
|
+
#define SWIGTYPE_p_pn_session_t swig_types[41]
|
1823
|
+
#define SWIGTYPE_p_pn_snd_settle_mode_t swig_types[42]
|
1824
|
+
#define SWIGTYPE_p_pn_ssl_domain_t swig_types[43]
|
1825
|
+
#define SWIGTYPE_p_pn_ssl_mode_t swig_types[44]
|
1826
|
+
#define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[45]
|
1827
|
+
#define SWIGTYPE_p_pn_ssl_t swig_types[46]
|
1828
|
+
#define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[47]
|
1829
|
+
#define SWIGTYPE_p_pn_status_t swig_types[48]
|
1830
|
+
#define SWIGTYPE_p_pn_string_t swig_types[49]
|
1831
|
+
#define SWIGTYPE_p_pn_subscription_t swig_types[50]
|
1832
|
+
#define SWIGTYPE_p_pn_terminus_t swig_types[51]
|
1833
|
+
#define SWIGTYPE_p_pn_terminus_type_t swig_types[52]
|
1834
|
+
#define SWIGTYPE_p_pn_transport_t swig_types[53]
|
1835
|
+
#define SWIGTYPE_p_pn_type_t swig_types[54]
|
1836
|
+
#define SWIGTYPE_p_pn_uuid_t swig_types[55]
|
1837
|
+
#define SWIGTYPE_p_short swig_types[56]
|
1838
|
+
#define SWIGTYPE_p_signed_char swig_types[57]
|
1839
|
+
#define SWIGTYPE_p_uintptr_t swig_types[58]
|
1840
|
+
#define SWIGTYPE_p_unsigned_char swig_types[59]
|
1841
|
+
#define SWIGTYPE_p_unsigned_int swig_types[60]
|
1842
|
+
#define SWIGTYPE_p_unsigned_long swig_types[61]
|
1843
|
+
#define SWIGTYPE_p_unsigned_long_long swig_types[62]
|
1844
|
+
#define SWIGTYPE_p_unsigned_short swig_types[63]
|
1845
|
+
#define SWIGTYPE_p_void swig_types[64]
|
1846
|
+
static swig_type_info *swig_types[66];
|
1847
|
+
static swig_module_info swig_module = {swig_types, 65, 0, 0, 0, 0};
|
1847
1848
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
1848
1849
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
1849
1850
|
|
@@ -1858,7 +1859,7 @@ static VALUE mCproton;
|
|
1858
1859
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
1859
1860
|
|
1860
1861
|
|
1861
|
-
#define SWIGVERSION
|
1862
|
+
#define SWIGVERSION 0x020011
|
1862
1863
|
#define SWIG_VERSION SWIGVERSION
|
1863
1864
|
|
1864
1865
|
|
@@ -1942,7 +1943,7 @@ SWIG_ruby_failed(void)
|
|
1942
1943
|
}
|
1943
1944
|
|
1944
1945
|
|
1945
|
-
/*@SWIG:/usr/share/swig/2.0.
|
1946
|
+
/*@SWIG:/usr/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
1946
1947
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
1947
1948
|
{
|
1948
1949
|
VALUE obj = args[0];
|
@@ -2116,7 +2117,7 @@ SWIG_From_size_t (size_t value)
|
|
2116
2117
|
}
|
2117
2118
|
|
2118
2119
|
|
2119
|
-
/*@SWIG:/usr/share/swig/2.0.
|
2120
|
+
/*@SWIG:/usr/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2120
2121
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
2121
2122
|
{
|
2122
2123
|
VALUE obj = args[0];
|
@@ -2164,7 +2165,31 @@ SWIG_AsVal_int (VALUE obj, int *val)
|
|
2164
2165
|
#include <float.h>
|
2165
2166
|
|
2166
2167
|
|
2167
|
-
|
2168
|
+
#include <math.h>
|
2169
|
+
|
2170
|
+
|
2171
|
+
/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */
|
2172
|
+
#ifndef SWIG_isfinite
|
2173
|
+
# if defined(isfinite)
|
2174
|
+
# define SWIG_isfinite(X) (isfinite(X))
|
2175
|
+
# elif defined(_MSC_VER)
|
2176
|
+
# define SWIG_isfinite(X) (_finite(X))
|
2177
|
+
# elif defined(__sun) && defined(__SVR4)
|
2178
|
+
# include <ieeefp.h>
|
2179
|
+
# define SWIG_isfinite(X) (finite(X))
|
2180
|
+
# endif
|
2181
|
+
#endif
|
2182
|
+
|
2183
|
+
|
2184
|
+
/* Accept infinite as a valid float value unless we are unable to check if a value is finite */
|
2185
|
+
#ifdef SWIG_isfinite
|
2186
|
+
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X))
|
2187
|
+
#else
|
2188
|
+
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX))
|
2189
|
+
#endif
|
2190
|
+
|
2191
|
+
|
2192
|
+
/*@SWIG:/usr/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2168
2193
|
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
|
2169
2194
|
{
|
2170
2195
|
VALUE obj = args[0];
|
@@ -2199,7 +2224,7 @@ SWIG_AsVal_float (VALUE obj, float *val)
|
|
2199
2224
|
double v;
|
2200
2225
|
int res = SWIG_AsVal_double (obj, &v);
|
2201
2226
|
if (SWIG_IsOK(res)) {
|
2202
|
-
if ((v
|
2227
|
+
if (SWIG_Float_Overflow_Check(v)) {
|
2203
2228
|
return SWIG_OverflowError;
|
2204
2229
|
} else {
|
2205
2230
|
if (val) *val = (float)(v);
|
@@ -2209,7 +2234,7 @@ SWIG_AsVal_float (VALUE obj, float *val)
|
|
2209
2234
|
}
|
2210
2235
|
|
2211
2236
|
|
2212
|
-
/*@SWIG:/usr/share/swig/2.0.
|
2237
|
+
/*@SWIG:/usr/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2213
2238
|
SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE *args)
|
2214
2239
|
{
|
2215
2240
|
VALUE obj = args[0];
|
@@ -2272,7 +2297,7 @@ SWIG_AsVal_bool (VALUE obj, bool *val)
|
|
2272
2297
|
}
|
2273
2298
|
|
2274
2299
|
|
2275
|
-
/*@SWIG:/usr/share/swig/2.0.
|
2300
|
+
/*@SWIG:/usr/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2276
2301
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
|
2277
2302
|
{
|
2278
2303
|
VALUE obj = args[0];
|
@@ -2342,7 +2367,6 @@ typedef union {
|
|
2342
2367
|
pn_decimal128_t as_decimal128;
|
2343
2368
|
pn_uuid_t as_uuid;
|
2344
2369
|
pn_bytes_t as_bytes;
|
2345
|
-
size_t as_count;
|
2346
2370
|
} pn_atom_t_u;
|
2347
2371
|
|
2348
2372
|
|
@@ -3659,6 +3683,58 @@ fail:
|
|
3659
3683
|
|
3660
3684
|
static swig_class SwigClassPn_class_t;
|
3661
3685
|
|
3686
|
+
SWIGINTERN VALUE
|
3687
|
+
_wrap_pn_class_t_initialize_set(int argc, VALUE *argv, VALUE self) {
|
3688
|
+
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
3689
|
+
void (*arg2)(void *) = (void (*)(void *)) 0 ;
|
3690
|
+
void *argp1 = 0 ;
|
3691
|
+
int res1 = 0 ;
|
3692
|
+
|
3693
|
+
if ((argc < 1) || (argc > 1)) {
|
3694
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3695
|
+
}
|
3696
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
3697
|
+
if (!SWIG_IsOK(res1)) {
|
3698
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","initialize", 1, self ));
|
3699
|
+
}
|
3700
|
+
arg1 = (pn_class_t *)(argp1);
|
3701
|
+
{
|
3702
|
+
int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_void__void);
|
3703
|
+
if (!SWIG_IsOK(res)) {
|
3704
|
+
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(void *)","initialize", 2, argv[0] ));
|
3705
|
+
}
|
3706
|
+
}
|
3707
|
+
if (arg1) (arg1)->initialize = arg2;
|
3708
|
+
return Qnil;
|
3709
|
+
fail:
|
3710
|
+
return Qnil;
|
3711
|
+
}
|
3712
|
+
|
3713
|
+
|
3714
|
+
SWIGINTERN VALUE
|
3715
|
+
_wrap_pn_class_t_initialize_get(int argc, VALUE *argv, VALUE self) {
|
3716
|
+
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
3717
|
+
void *argp1 = 0 ;
|
3718
|
+
int res1 = 0 ;
|
3719
|
+
void (*result)(void *) = 0 ;
|
3720
|
+
VALUE vresult = Qnil;
|
3721
|
+
|
3722
|
+
if ((argc < 0) || (argc > 0)) {
|
3723
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3724
|
+
}
|
3725
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
3726
|
+
if (!SWIG_IsOK(res1)) {
|
3727
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t *","initialize", 1, self ));
|
3728
|
+
}
|
3729
|
+
arg1 = (pn_class_t *)(argp1);
|
3730
|
+
result = (void (*)(void *)) ((arg1)->initialize);
|
3731
|
+
vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__void);
|
3732
|
+
return vresult;
|
3733
|
+
fail:
|
3734
|
+
return Qnil;
|
3735
|
+
}
|
3736
|
+
|
3737
|
+
|
3662
3738
|
SWIGINTERN VALUE
|
3663
3739
|
_wrap_pn_class_t_finalize_set(int argc, VALUE *argv, VALUE self) {
|
3664
3740
|
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
@@ -3954,6 +4030,33 @@ fail:
|
|
3954
4030
|
}
|
3955
4031
|
|
3956
4032
|
|
4033
|
+
SWIGINTERN VALUE
|
4034
|
+
_wrap_pn_initialize(int argc, VALUE *argv, VALUE self) {
|
4035
|
+
void *arg1 = (void *) 0 ;
|
4036
|
+
pn_class_t *arg2 = (pn_class_t *) 0 ;
|
4037
|
+
int res1 ;
|
4038
|
+
void *argp2 = 0 ;
|
4039
|
+
int res2 = 0 ;
|
4040
|
+
|
4041
|
+
if ((argc < 2) || (argc > 2)) {
|
4042
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4043
|
+
}
|
4044
|
+
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
4045
|
+
if (!SWIG_IsOK(res1)) {
|
4046
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_initialize", 1, argv[0] ));
|
4047
|
+
}
|
4048
|
+
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
4049
|
+
if (!SWIG_IsOK(res2)) {
|
4050
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_class_t *","pn_initialize", 2, argv[1] ));
|
4051
|
+
}
|
4052
|
+
arg2 = (pn_class_t *)(argp2);
|
4053
|
+
pn_initialize(arg1,arg2);
|
4054
|
+
return Qnil;
|
4055
|
+
fail:
|
4056
|
+
return Qnil;
|
4057
|
+
}
|
4058
|
+
|
4059
|
+
|
3957
4060
|
SWIGINTERN VALUE
|
3958
4061
|
_wrap_pn_incref(int argc, VALUE *argv, VALUE self) {
|
3959
4062
|
void *arg1 = (void *) 0 ;
|
@@ -4017,6 +4120,25 @@ fail:
|
|
4017
4120
|
}
|
4018
4121
|
|
4019
4122
|
|
4123
|
+
SWIGINTERN VALUE
|
4124
|
+
_wrap_pn_finalize(int argc, VALUE *argv, VALUE self) {
|
4125
|
+
void *arg1 = (void *) 0 ;
|
4126
|
+
int res1 ;
|
4127
|
+
|
4128
|
+
if ((argc < 1) || (argc > 1)) {
|
4129
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4130
|
+
}
|
4131
|
+
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
4132
|
+
if (!SWIG_IsOK(res1)) {
|
4133
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_finalize", 1, argv[0] ));
|
4134
|
+
}
|
4135
|
+
pn_finalize(arg1);
|
4136
|
+
return Qnil;
|
4137
|
+
fail:
|
4138
|
+
return Qnil;
|
4139
|
+
}
|
4140
|
+
|
4141
|
+
|
4020
4142
|
SWIGINTERN VALUE
|
4021
4143
|
_wrap_pn_free(int argc, VALUE *argv, VALUE self) {
|
4022
4144
|
void *arg1 = (void *) 0 ;
|
@@ -5602,8 +5724,6 @@ _wrap_pn_error(int argc, VALUE *argv, VALUE self) {
|
|
5602
5724
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5603
5725
|
}
|
5604
5726
|
result = (pn_error_t *)pn_error();
|
5605
|
-
SWIG_contract_assert((result!=NULL), "Contract violation: ensure: (result!=NULL)");
|
5606
|
-
|
5607
5727
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 );
|
5608
5728
|
return vresult;
|
5609
5729
|
fail:
|
@@ -7221,6 +7341,174 @@ fail:
|
|
7221
7341
|
}
|
7222
7342
|
|
7223
7343
|
|
7344
|
+
SWIGINTERN VALUE
|
7345
|
+
_wrap_pn_transport_set_tracer(int argc, VALUE *argv, VALUE self) {
|
7346
|
+
pn_transport_t *arg1 = (pn_transport_t *) 0 ;
|
7347
|
+
pn_tracer_t *arg2 = (pn_tracer_t *) 0 ;
|
7348
|
+
void *argp1 = 0 ;
|
7349
|
+
int res1 = 0 ;
|
7350
|
+
|
7351
|
+
if ((argc < 2) || (argc > 2)) {
|
7352
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
7353
|
+
}
|
7354
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
|
7355
|
+
if (!SWIG_IsOK(res1)) {
|
7356
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_tracer", 1, argv[0] ));
|
7357
|
+
}
|
7358
|
+
arg1 = (pn_transport_t *)(argp1);
|
7359
|
+
{
|
7360
|
+
int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void);
|
7361
|
+
if (!SWIG_IsOK(res)) {
|
7362
|
+
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "pn_tracer_t *","pn_transport_set_tracer", 2, argv[1] ));
|
7363
|
+
}
|
7364
|
+
}
|
7365
|
+
pn_transport_set_tracer(arg1,arg2);
|
7366
|
+
return Qnil;
|
7367
|
+
fail:
|
7368
|
+
return Qnil;
|
7369
|
+
}
|
7370
|
+
|
7371
|
+
|
7372
|
+
SWIGINTERN VALUE
|
7373
|
+
_wrap_pn_transport_get_tracer(int argc, VALUE *argv, VALUE self) {
|
7374
|
+
pn_transport_t *arg1 = (pn_transport_t *) 0 ;
|
7375
|
+
void *argp1 = 0 ;
|
7376
|
+
int res1 = 0 ;
|
7377
|
+
pn_tracer_t *result = 0 ;
|
7378
|
+
VALUE vresult = Qnil;
|
7379
|
+
|
7380
|
+
if ((argc < 1) || (argc > 1)) {
|
7381
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
7382
|
+
}
|
7383
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
|
7384
|
+
if (!SWIG_IsOK(res1)) {
|
7385
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_tracer", 1, argv[0] ));
|
7386
|
+
}
|
7387
|
+
arg1 = (pn_transport_t *)(argp1);
|
7388
|
+
result = (pn_tracer_t *)pn_transport_get_tracer(arg1);
|
7389
|
+
vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void);
|
7390
|
+
return vresult;
|
7391
|
+
fail:
|
7392
|
+
return Qnil;
|
7393
|
+
}
|
7394
|
+
|
7395
|
+
|
7396
|
+
SWIGINTERN VALUE
|
7397
|
+
_wrap_pn_transport_set_context(int argc, VALUE *argv, VALUE self) {
|
7398
|
+
pn_transport_t *arg1 = (pn_transport_t *) 0 ;
|
7399
|
+
void *arg2 = (void *) 0 ;
|
7400
|
+
void *argp1 = 0 ;
|
7401
|
+
int res1 = 0 ;
|
7402
|
+
int res2 ;
|
7403
|
+
|
7404
|
+
if ((argc < 2) || (argc > 2)) {
|
7405
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
7406
|
+
}
|
7407
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
|
7408
|
+
if (!SWIG_IsOK(res1)) {
|
7409
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_set_context", 1, argv[0] ));
|
7410
|
+
}
|
7411
|
+
arg1 = (pn_transport_t *)(argp1);
|
7412
|
+
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
7413
|
+
if (!SWIG_IsOK(res2)) {
|
7414
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_transport_set_context", 2, argv[1] ));
|
7415
|
+
}
|
7416
|
+
pn_transport_set_context(arg1,arg2);
|
7417
|
+
return Qnil;
|
7418
|
+
fail:
|
7419
|
+
return Qnil;
|
7420
|
+
}
|
7421
|
+
|
7422
|
+
|
7423
|
+
SWIGINTERN VALUE
|
7424
|
+
_wrap_pn_transport_get_context(int argc, VALUE *argv, VALUE self) {
|
7425
|
+
pn_transport_t *arg1 = (pn_transport_t *) 0 ;
|
7426
|
+
void *argp1 = 0 ;
|
7427
|
+
int res1 = 0 ;
|
7428
|
+
void *result = 0 ;
|
7429
|
+
VALUE vresult = Qnil;
|
7430
|
+
|
7431
|
+
if ((argc < 1) || (argc > 1)) {
|
7432
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
7433
|
+
}
|
7434
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
|
7435
|
+
if (!SWIG_IsOK(res1)) {
|
7436
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_get_context", 1, argv[0] ));
|
7437
|
+
}
|
7438
|
+
arg1 = (pn_transport_t *)(argp1);
|
7439
|
+
result = (void *)pn_transport_get_context(arg1);
|
7440
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
7441
|
+
return vresult;
|
7442
|
+
fail:
|
7443
|
+
return Qnil;
|
7444
|
+
}
|
7445
|
+
|
7446
|
+
|
7447
|
+
SWIGINTERN VALUE
|
7448
|
+
_wrap_pn_transport_log(int argc, VALUE *argv, VALUE self) {
|
7449
|
+
pn_transport_t *arg1 = (pn_transport_t *) 0 ;
|
7450
|
+
char *arg2 = (char *) 0 ;
|
7451
|
+
void *argp1 = 0 ;
|
7452
|
+
int res1 = 0 ;
|
7453
|
+
int res2 ;
|
7454
|
+
char *buf2 = 0 ;
|
7455
|
+
int alloc2 = 0 ;
|
7456
|
+
|
7457
|
+
if ((argc < 2) || (argc > 2)) {
|
7458
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
7459
|
+
}
|
7460
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
|
7461
|
+
if (!SWIG_IsOK(res1)) {
|
7462
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_log", 1, argv[0] ));
|
7463
|
+
}
|
7464
|
+
arg1 = (pn_transport_t *)(argp1);
|
7465
|
+
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
7466
|
+
if (!SWIG_IsOK(res2)) {
|
7467
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_transport_log", 2, argv[1] ));
|
7468
|
+
}
|
7469
|
+
arg2 = (char *)(buf2);
|
7470
|
+
pn_transport_log(arg1,(char const *)arg2);
|
7471
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
7472
|
+
return Qnil;
|
7473
|
+
fail:
|
7474
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
7475
|
+
return Qnil;
|
7476
|
+
}
|
7477
|
+
|
7478
|
+
|
7479
|
+
SWIGINTERN VALUE
|
7480
|
+
_wrap_pn_transport_logf(int argc, VALUE *argv, VALUE self) {
|
7481
|
+
pn_transport_t *arg1 = (pn_transport_t *) 0 ;
|
7482
|
+
char *arg2 = (char *) 0 ;
|
7483
|
+
void *arg3 = 0 ;
|
7484
|
+
void *argp1 = 0 ;
|
7485
|
+
int res1 = 0 ;
|
7486
|
+
int res2 ;
|
7487
|
+
char *buf2 = 0 ;
|
7488
|
+
int alloc2 = 0 ;
|
7489
|
+
|
7490
|
+
if (argc < 2) {
|
7491
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
7492
|
+
}
|
7493
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_transport_t, 0 | 0 );
|
7494
|
+
if (!SWIG_IsOK(res1)) {
|
7495
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_logf", 1, argv[0] ));
|
7496
|
+
}
|
7497
|
+
arg1 = (pn_transport_t *)(argp1);
|
7498
|
+
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
7499
|
+
if (!SWIG_IsOK(res2)) {
|
7500
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_transport_logf", 2, argv[1] ));
|
7501
|
+
}
|
7502
|
+
arg2 = (char *)(buf2);
|
7503
|
+
pn_transport_logf(arg1,(char const *)arg2,arg3);
|
7504
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
7505
|
+
return Qnil;
|
7506
|
+
fail:
|
7507
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
7508
|
+
return Qnil;
|
7509
|
+
}
|
7510
|
+
|
7511
|
+
|
7224
7512
|
SWIGINTERN VALUE
|
7225
7513
|
_wrap_pn_transport_get_max_frame(int argc, VALUE *argv, VALUE self) {
|
7226
7514
|
pn_transport_t *arg1 = (pn_transport_t *) 0 ;
|
@@ -8110,6 +8398,30 @@ fail:
|
|
8110
8398
|
}
|
8111
8399
|
|
8112
8400
|
|
8401
|
+
SWIGINTERN VALUE
|
8402
|
+
_wrap_pn_link_remote_credit(int argc, VALUE *argv, VALUE self) {
|
8403
|
+
pn_link_t *arg1 = (pn_link_t *) 0 ;
|
8404
|
+
void *argp1 = 0 ;
|
8405
|
+
int res1 = 0 ;
|
8406
|
+
int result;
|
8407
|
+
VALUE vresult = Qnil;
|
8408
|
+
|
8409
|
+
if ((argc < 1) || (argc > 1)) {
|
8410
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
8411
|
+
}
|
8412
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
|
8413
|
+
if (!SWIG_IsOK(res1)) {
|
8414
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_remote_credit", 1, argv[0] ));
|
8415
|
+
}
|
8416
|
+
arg1 = (pn_link_t *)(argp1);
|
8417
|
+
result = (int)pn_link_remote_credit(arg1);
|
8418
|
+
vresult = SWIG_From_int((int)(result));
|
8419
|
+
return vresult;
|
8420
|
+
fail:
|
8421
|
+
return Qnil;
|
8422
|
+
}
|
8423
|
+
|
8424
|
+
|
8113
8425
|
SWIGINTERN VALUE
|
8114
8426
|
_wrap_pn_link_available(int argc, VALUE *argv, VALUE self) {
|
8115
8427
|
pn_link_t *arg1 = (pn_link_t *) 0 ;
|
@@ -8486,6 +8798,30 @@ fail:
|
|
8486
8798
|
}
|
8487
8799
|
|
8488
8800
|
|
8801
|
+
SWIGINTERN VALUE
|
8802
|
+
_wrap_pn_link_get_drain(int argc, VALUE *argv, VALUE self) {
|
8803
|
+
pn_link_t *arg1 = (pn_link_t *) 0 ;
|
8804
|
+
void *argp1 = 0 ;
|
8805
|
+
int res1 = 0 ;
|
8806
|
+
bool result;
|
8807
|
+
VALUE vresult = Qnil;
|
8808
|
+
|
8809
|
+
if ((argc < 1) || (argc > 1)) {
|
8810
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
8811
|
+
}
|
8812
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
|
8813
|
+
if (!SWIG_IsOK(res1)) {
|
8814
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_get_drain", 1, argv[0] ));
|
8815
|
+
}
|
8816
|
+
arg1 = (pn_link_t *)(argp1);
|
8817
|
+
result = (bool)pn_link_get_drain(arg1);
|
8818
|
+
vresult = SWIG_From_bool((bool)(result));
|
8819
|
+
return vresult;
|
8820
|
+
fail:
|
8821
|
+
return Qnil;
|
8822
|
+
}
|
8823
|
+
|
8824
|
+
|
8489
8825
|
SWIGINTERN VALUE
|
8490
8826
|
_wrap_pn_link_offered(int argc, VALUE *argv, VALUE self) {
|
8491
8827
|
pn_link_t *arg1 = (pn_link_t *) 0 ;
|
@@ -8520,6 +8856,8 @@ _wrap_pn_link_drained(int argc, VALUE *argv, VALUE self) {
|
|
8520
8856
|
pn_link_t *arg1 = (pn_link_t *) 0 ;
|
8521
8857
|
void *argp1 = 0 ;
|
8522
8858
|
int res1 = 0 ;
|
8859
|
+
int result;
|
8860
|
+
VALUE vresult = Qnil;
|
8523
8861
|
|
8524
8862
|
if ((argc < 1) || (argc > 1)) {
|
8525
8863
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
@@ -8531,8 +8869,9 @@ _wrap_pn_link_drained(int argc, VALUE *argv, VALUE self) {
|
|
8531
8869
|
arg1 = (pn_link_t *)(argp1);
|
8532
8870
|
SWIG_contract_assert((arg1!=NULL), "Contract violation: require: (arg1!=NULL)");
|
8533
8871
|
|
8534
|
-
pn_link_drained(arg1);
|
8535
|
-
|
8872
|
+
result = (int)pn_link_drained(arg1);
|
8873
|
+
vresult = SWIG_From_int((int)(result));
|
8874
|
+
return vresult;
|
8536
8875
|
fail:
|
8537
8876
|
return Qnil;
|
8538
8877
|
}
|
@@ -8600,6 +8939,59 @@ fail:
|
|
8600
8939
|
}
|
8601
8940
|
|
8602
8941
|
|
8942
|
+
SWIGINTERN VALUE
|
8943
|
+
_wrap_pn_link_set_drain(int argc, VALUE *argv, VALUE self) {
|
8944
|
+
pn_link_t *arg1 = (pn_link_t *) 0 ;
|
8945
|
+
bool arg2 ;
|
8946
|
+
void *argp1 = 0 ;
|
8947
|
+
int res1 = 0 ;
|
8948
|
+
bool val2 ;
|
8949
|
+
int ecode2 = 0 ;
|
8950
|
+
|
8951
|
+
if ((argc < 2) || (argc > 2)) {
|
8952
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
8953
|
+
}
|
8954
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
|
8955
|
+
if (!SWIG_IsOK(res1)) {
|
8956
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_set_drain", 1, argv[0] ));
|
8957
|
+
}
|
8958
|
+
arg1 = (pn_link_t *)(argp1);
|
8959
|
+
ecode2 = SWIG_AsVal_bool(argv[1], &val2);
|
8960
|
+
if (!SWIG_IsOK(ecode2)) {
|
8961
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","pn_link_set_drain", 2, argv[1] ));
|
8962
|
+
}
|
8963
|
+
arg2 = (bool)(val2);
|
8964
|
+
pn_link_set_drain(arg1,arg2);
|
8965
|
+
return Qnil;
|
8966
|
+
fail:
|
8967
|
+
return Qnil;
|
8968
|
+
}
|
8969
|
+
|
8970
|
+
|
8971
|
+
SWIGINTERN VALUE
|
8972
|
+
_wrap_pn_link_draining(int argc, VALUE *argv, VALUE self) {
|
8973
|
+
pn_link_t *arg1 = (pn_link_t *) 0 ;
|
8974
|
+
void *argp1 = 0 ;
|
8975
|
+
int res1 = 0 ;
|
8976
|
+
bool result;
|
8977
|
+
VALUE vresult = Qnil;
|
8978
|
+
|
8979
|
+
if ((argc < 1) || (argc > 1)) {
|
8980
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
8981
|
+
}
|
8982
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_link_t, 0 | 0 );
|
8983
|
+
if (!SWIG_IsOK(res1)) {
|
8984
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_link_t *","pn_link_draining", 1, argv[0] ));
|
8985
|
+
}
|
8986
|
+
arg1 = (pn_link_t *)(argp1);
|
8987
|
+
result = (bool)pn_link_draining(arg1);
|
8988
|
+
vresult = SWIG_From_bool((bool)(result));
|
8989
|
+
return vresult;
|
8990
|
+
fail:
|
8991
|
+
return Qnil;
|
8992
|
+
}
|
8993
|
+
|
8994
|
+
|
8603
8995
|
SWIGINTERN VALUE
|
8604
8996
|
_wrap_pn_terminus_get_type(int argc, VALUE *argv, VALUE self) {
|
8605
8997
|
pn_terminus_t *arg1 = (pn_terminus_t *) 0 ;
|
@@ -9552,6 +9944,30 @@ fail:
|
|
9552
9944
|
}
|
9553
9945
|
|
9554
9946
|
|
9947
|
+
SWIGINTERN VALUE
|
9948
|
+
_wrap_pn_delivery_buffered(int argc, VALUE *argv, VALUE self) {
|
9949
|
+
pn_delivery_t *arg1 = (pn_delivery_t *) 0 ;
|
9950
|
+
void *argp1 = 0 ;
|
9951
|
+
int res1 = 0 ;
|
9952
|
+
bool result;
|
9953
|
+
VALUE vresult = Qnil;
|
9954
|
+
|
9955
|
+
if ((argc < 1) || (argc > 1)) {
|
9956
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
9957
|
+
}
|
9958
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_delivery_t, 0 | 0 );
|
9959
|
+
if (!SWIG_IsOK(res1)) {
|
9960
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_delivery_t *","pn_delivery_buffered", 1, argv[0] ));
|
9961
|
+
}
|
9962
|
+
arg1 = (pn_delivery_t *)(argp1);
|
9963
|
+
result = (bool)pn_delivery_buffered(arg1);
|
9964
|
+
vresult = SWIG_From_bool((bool)(result));
|
9965
|
+
return vresult;
|
9966
|
+
fail:
|
9967
|
+
return Qnil;
|
9968
|
+
}
|
9969
|
+
|
9970
|
+
|
9555
9971
|
SWIGINTERN VALUE
|
9556
9972
|
_wrap_pn_disposition_type(int argc, VALUE *argv, VALUE self) {
|
9557
9973
|
pn_disposition_t *arg1 = (pn_disposition_t *) 0 ;
|
@@ -14197,6 +14613,30 @@ fail:
|
|
14197
14613
|
}
|
14198
14614
|
|
14199
14615
|
|
14616
|
+
SWIGINTERN VALUE
|
14617
|
+
_wrap_pn_subscription_address(int argc, VALUE *argv, VALUE self) {
|
14618
|
+
pn_subscription_t *arg1 = (pn_subscription_t *) 0 ;
|
14619
|
+
void *argp1 = 0 ;
|
14620
|
+
int res1 = 0 ;
|
14621
|
+
char *result = 0 ;
|
14622
|
+
VALUE vresult = Qnil;
|
14623
|
+
|
14624
|
+
if ((argc < 1) || (argc > 1)) {
|
14625
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
14626
|
+
}
|
14627
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_subscription_t, 0 | 0 );
|
14628
|
+
if (!SWIG_IsOK(res1)) {
|
14629
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_subscription_t *","pn_subscription_address", 1, argv[0] ));
|
14630
|
+
}
|
14631
|
+
arg1 = (pn_subscription_t *)(argp1);
|
14632
|
+
result = (char *)pn_subscription_address(arg1);
|
14633
|
+
vresult = SWIG_FromCharPtr((const char *)result);
|
14634
|
+
return vresult;
|
14635
|
+
fail:
|
14636
|
+
return Qnil;
|
14637
|
+
}
|
14638
|
+
|
14639
|
+
|
14200
14640
|
SWIGINTERN VALUE
|
14201
14641
|
_wrap_pn_messenger_put(int argc, VALUE *argv, VALUE self) {
|
14202
14642
|
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
@@ -14263,6 +14703,38 @@ fail:
|
|
14263
14703
|
}
|
14264
14704
|
|
14265
14705
|
|
14706
|
+
SWIGINTERN VALUE
|
14707
|
+
_wrap_pn_messenger_buffered(int argc, VALUE *argv, VALUE self) {
|
14708
|
+
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
14709
|
+
pn_tracker_t arg2 ;
|
14710
|
+
void *argp1 = 0 ;
|
14711
|
+
int res1 = 0 ;
|
14712
|
+
long long val2 ;
|
14713
|
+
int ecode2 = 0 ;
|
14714
|
+
bool result;
|
14715
|
+
VALUE vresult = Qnil;
|
14716
|
+
|
14717
|
+
if ((argc < 2) || (argc > 2)) {
|
14718
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
14719
|
+
}
|
14720
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_messenger_t, 0 | 0 );
|
14721
|
+
if (!SWIG_IsOK(res1)) {
|
14722
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_messenger_t *","pn_messenger_buffered", 1, argv[0] ));
|
14723
|
+
}
|
14724
|
+
arg1 = (pn_messenger_t *)(argp1);
|
14725
|
+
ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
|
14726
|
+
if (!SWIG_IsOK(ecode2)) {
|
14727
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_tracker_t","pn_messenger_buffered", 2, argv[1] ));
|
14728
|
+
}
|
14729
|
+
arg2 = (pn_tracker_t)(val2);
|
14730
|
+
result = (bool)pn_messenger_buffered(arg1,arg2);
|
14731
|
+
vresult = SWIG_From_bool((bool)(result));
|
14732
|
+
return vresult;
|
14733
|
+
fail:
|
14734
|
+
return Qnil;
|
14735
|
+
}
|
14736
|
+
|
14737
|
+
|
14266
14738
|
SWIGINTERN VALUE
|
14267
14739
|
_wrap_pn_messenger_settle(int argc, VALUE *argv, VALUE self) {
|
14268
14740
|
pn_messenger_t *arg1 = (pn_messenger_t *) 0 ;
|
@@ -16248,59 +16720,6 @@ fail:
|
|
16248
16720
|
}
|
16249
16721
|
|
16250
16722
|
|
16251
|
-
SWIGINTERN VALUE
|
16252
|
-
_wrap_pn_atom_t_u_as_count_set(int argc, VALUE *argv, VALUE self) {
|
16253
|
-
pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
|
16254
|
-
size_t arg2 ;
|
16255
|
-
void *argp1 = 0 ;
|
16256
|
-
int res1 = 0 ;
|
16257
|
-
size_t val2 ;
|
16258
|
-
int ecode2 = 0 ;
|
16259
|
-
|
16260
|
-
if ((argc < 1) || (argc > 1)) {
|
16261
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
16262
|
-
}
|
16263
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 );
|
16264
|
-
if (!SWIG_IsOK(res1)) {
|
16265
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_count", 1, self ));
|
16266
|
-
}
|
16267
|
-
arg1 = (pn_atom_t_u *)(argp1);
|
16268
|
-
ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
|
16269
|
-
if (!SWIG_IsOK(ecode2)) {
|
16270
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","as_count", 2, argv[0] ));
|
16271
|
-
}
|
16272
|
-
arg2 = (size_t)(val2);
|
16273
|
-
if (arg1) (arg1)->as_count = arg2;
|
16274
|
-
return Qnil;
|
16275
|
-
fail:
|
16276
|
-
return Qnil;
|
16277
|
-
}
|
16278
|
-
|
16279
|
-
|
16280
|
-
SWIGINTERN VALUE
|
16281
|
-
_wrap_pn_atom_t_u_as_count_get(int argc, VALUE *argv, VALUE self) {
|
16282
|
-
pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
|
16283
|
-
void *argp1 = 0 ;
|
16284
|
-
int res1 = 0 ;
|
16285
|
-
size_t result;
|
16286
|
-
VALUE vresult = Qnil;
|
16287
|
-
|
16288
|
-
if ((argc < 0) || (argc > 0)) {
|
16289
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
16290
|
-
}
|
16291
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 | 0 );
|
16292
|
-
if (!SWIG_IsOK(res1)) {
|
16293
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_count", 1, self ));
|
16294
|
-
}
|
16295
|
-
arg1 = (pn_atom_t_u *)(argp1);
|
16296
|
-
result = (size_t) ((arg1)->as_count);
|
16297
|
-
vresult = SWIG_From_size_t((size_t)(result));
|
16298
|
-
return vresult;
|
16299
|
-
fail:
|
16300
|
-
return Qnil;
|
16301
|
-
}
|
16302
|
-
|
16303
|
-
|
16304
16723
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
16305
16724
|
SWIGINTERN VALUE
|
16306
16725
|
_wrap_pn_atom_t_u_allocate(VALUE self) {
|
@@ -16412,7 +16831,7 @@ _wrap_pn_data_error(int argc, VALUE *argv, VALUE self) {
|
|
16412
16831
|
pn_data_t *arg1 = (pn_data_t *) 0 ;
|
16413
16832
|
void *argp1 = 0 ;
|
16414
16833
|
int res1 = 0 ;
|
16415
|
-
|
16834
|
+
pn_error_t *result = 0 ;
|
16416
16835
|
VALUE vresult = Qnil;
|
16417
16836
|
|
16418
16837
|
if ((argc < 1) || (argc > 1)) {
|
@@ -16423,8 +16842,8 @@ _wrap_pn_data_error(int argc, VALUE *argv, VALUE self) {
|
|
16423
16842
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_error", 1, argv[0] ));
|
16424
16843
|
}
|
16425
16844
|
arg1 = (pn_data_t *)(argp1);
|
16426
|
-
result = (
|
16427
|
-
vresult =
|
16845
|
+
result = (pn_error_t *)pn_data_error(arg1);
|
16846
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_error_t, 0 | 0 );
|
16428
16847
|
return vresult;
|
16429
16848
|
fail:
|
16430
16849
|
return Qnil;
|
@@ -18751,6 +19170,7 @@ fail:
|
|
18751
19170
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
18752
19171
|
|
18753
19172
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
19173
|
+
static swig_type_info _swigt__p_f_p_struct_pn_transport_t_p_q_const__char__void = {"_p_f_p_struct_pn_transport_t_p_q_const__char__void", "void (*)(struct pn_transport_t *,char const *)|pn_tracer_t *", 0, 0, (void*)0, 0};
|
18754
19174
|
static swig_type_info _swigt__p_f_p_void__uintptr_t = {"_p_f_p_void__uintptr_t", "uintptr_t (*)(void *)", 0, 0, (void*)0, 0};
|
18755
19175
|
static swig_type_info _swigt__p_f_p_void__void = {"_p_f_p_void__void", "void (*)(void *)", 0, 0, (void*)0, 0};
|
18756
19176
|
static swig_type_info _swigt__p_f_p_void_p_struct_pn_string_t__int = {"_p_f_p_void_p_struct_pn_string_t__int", "int (*)(void *,struct pn_string_t *)|int (*)(void *,pn_string_t *)", 0, 0, (void*)0, 0};
|
@@ -18817,6 +19237,7 @@ static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
|
|
18817
19237
|
|
18818
19238
|
static swig_type_info *swig_type_initial[] = {
|
18819
19239
|
&_swigt__p_char,
|
19240
|
+
&_swigt__p_f_p_struct_pn_transport_t_p_q_const__char__void,
|
18820
19241
|
&_swigt__p_f_p_void__uintptr_t,
|
18821
19242
|
&_swigt__p_f_p_void__void,
|
18822
19243
|
&_swigt__p_f_p_void_p_struct_pn_string_t__int,
|
@@ -18883,6 +19304,7 @@ static swig_type_info *swig_type_initial[] = {
|
|
18883
19304
|
};
|
18884
19305
|
|
18885
19306
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
19307
|
+
static swig_cast_info _swigc__p_f_p_struct_pn_transport_t_p_q_const__char__void[] = { {&_swigt__p_f_p_struct_pn_transport_t_p_q_const__char__void, 0, 0, 0},{0, 0, 0, 0}};
|
18886
19308
|
static swig_cast_info _swigc__p_f_p_void__uintptr_t[] = { {&_swigt__p_f_p_void__uintptr_t, 0, 0, 0},{0, 0, 0, 0}};
|
18887
19309
|
static swig_cast_info _swigc__p_f_p_void__void[] = { {&_swigt__p_f_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
|
18888
19310
|
static swig_cast_info _swigc__p_f_p_void_p_struct_pn_string_t__int[] = { {&_swigt__p_f_p_void_p_struct_pn_string_t__int, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -18949,6 +19371,7 @@ static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0,
|
|
18949
19371
|
|
18950
19372
|
static swig_cast_info *swig_cast_initial[] = {
|
18951
19373
|
_swigc__p_char,
|
19374
|
+
_swigc__p_f_p_struct_pn_transport_t_p_q_const__char__void,
|
18952
19375
|
_swigc__p_f_p_void__uintptr_t,
|
18953
19376
|
_swigc__p_f_p_void__void,
|
18954
19377
|
_swigc__p_f_p_void_p_struct_pn_string_t__int,
|
@@ -19019,18 +19442,18 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
19019
19442
|
|
19020
19443
|
/* -----------------------------------------------------------------------------
|
19021
19444
|
* Type initialization:
|
19022
|
-
* This problem is tough by the requirement that no dynamic
|
19023
|
-
* memory is used. Also, since swig_type_info structures store pointers to
|
19445
|
+
* This problem is tough by the requirement that no dynamic
|
19446
|
+
* memory is used. Also, since swig_type_info structures store pointers to
|
19024
19447
|
* swig_cast_info structures and swig_cast_info structures store pointers back
|
19025
|
-
* to swig_type_info structures, we need some lookup code at initialization.
|
19026
|
-
* The idea is that swig generates all the structures that are needed.
|
19027
|
-
* The runtime then collects these partially filled structures.
|
19028
|
-
* The SWIG_InitializeModule function takes these initial arrays out of
|
19448
|
+
* to swig_type_info structures, we need some lookup code at initialization.
|
19449
|
+
* The idea is that swig generates all the structures that are needed.
|
19450
|
+
* The runtime then collects these partially filled structures.
|
19451
|
+
* The SWIG_InitializeModule function takes these initial arrays out of
|
19029
19452
|
* swig_module, and does all the lookup, filling in the swig_module.types
|
19030
19453
|
* array with the correct data and linking the correct swig_cast_info
|
19031
19454
|
* structures together.
|
19032
19455
|
*
|
19033
|
-
* The generated swig_type_info structures are assigned staticly to an initial
|
19456
|
+
* The generated swig_type_info structures are assigned staticly to an initial
|
19034
19457
|
* array. We just loop through that array, and handle each type individually.
|
19035
19458
|
* First we lookup if this type has been already loaded, and if so, use the
|
19036
19459
|
* loaded structure instead of the generated one. Then we have to fill in the
|
@@ -19040,17 +19463,17 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
19040
19463
|
* a column is one of the swig_cast_info structures for that type.
|
19041
19464
|
* The cast_initial array is actually an array of arrays, because each row has
|
19042
19465
|
* a variable number of columns. So to actually build the cast linked list,
|
19043
|
-
* we find the array of casts associated with the type, and loop through it
|
19466
|
+
* we find the array of casts associated with the type, and loop through it
|
19044
19467
|
* adding the casts to the list. The one last trick we need to do is making
|
19045
19468
|
* sure the type pointer in the swig_cast_info struct is correct.
|
19046
19469
|
*
|
19047
|
-
* First off, we lookup the cast->type name to see if it is already loaded.
|
19470
|
+
* First off, we lookup the cast->type name to see if it is already loaded.
|
19048
19471
|
* There are three cases to handle:
|
19049
19472
|
* 1) If the cast->type has already been loaded AND the type we are adding
|
19050
19473
|
* casting info to has not been loaded (it is in this module), THEN we
|
19051
19474
|
* replace the cast->type pointer with the type pointer that has already
|
19052
19475
|
* been loaded.
|
19053
|
-
* 2) If BOTH types (the one we are adding casting info to, and the
|
19476
|
+
* 2) If BOTH types (the one we are adding casting info to, and the
|
19054
19477
|
* cast->type) are loaded, THEN the cast info has already been loaded by
|
19055
19478
|
* the previous module so we just ignore it.
|
19056
19479
|
* 3) Finally, if cast->type has not already been loaded, then we add that
|
@@ -19113,7 +19536,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
19113
19536
|
module_head->next = &swig_module;
|
19114
19537
|
}
|
19115
19538
|
|
19116
|
-
/* When multiple
|
19539
|
+
/* When multiple interpreters are used, a module could have already been initialized in
|
19117
19540
|
a different interpreter, but not yet have a pointer in this interpreter.
|
19118
19541
|
In this case, we do not want to continue adding types... everything should be
|
19119
19542
|
set up already */
|
@@ -19127,7 +19550,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
19127
19550
|
swig_type_info *type = 0;
|
19128
19551
|
swig_type_info *ret;
|
19129
19552
|
swig_cast_info *cast;
|
19130
|
-
|
19553
|
+
|
19131
19554
|
#ifdef SWIGRUNTIME_DEBUG
|
19132
19555
|
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
|
19133
19556
|
#endif
|
@@ -19154,7 +19577,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
19154
19577
|
/* Insert casting types */
|
19155
19578
|
cast = swig_module.cast_initial[i];
|
19156
19579
|
while (cast->type) {
|
19157
|
-
|
19580
|
+
|
19158
19581
|
/* Don't need to add information already in the list */
|
19159
19582
|
ret = 0;
|
19160
19583
|
#ifdef SWIGRUNTIME_DEBUG
|
@@ -19332,6 +19755,8 @@ SWIGEXPORT void Init_cproton(void) {
|
|
19332
19755
|
SWIG_TypeClientData(SWIGTYPE_p_pn_class_t, (void *) &SwigClassPn_class_t);
|
19333
19756
|
rb_define_alloc_func(SwigClassPn_class_t.klass, _wrap_pn_class_t_allocate);
|
19334
19757
|
rb_define_method(SwigClassPn_class_t.klass, "initialize", _wrap_new_pn_class_t, -1);
|
19758
|
+
rb_define_method(SwigClassPn_class_t.klass, "initialize=", _wrap_pn_class_t_initialize_set, -1);
|
19759
|
+
rb_define_method(SwigClassPn_class_t.klass, "initialize", _wrap_pn_class_t_initialize_get, -1);
|
19335
19760
|
rb_define_method(SwigClassPn_class_t.klass, "finalize=", _wrap_pn_class_t_finalize_set, -1);
|
19336
19761
|
rb_define_method(SwigClassPn_class_t.klass, "finalize", _wrap_pn_class_t_finalize_get, -1);
|
19337
19762
|
rb_define_method(SwigClassPn_class_t.klass, "hashcode=", _wrap_pn_class_t_hashcode_set, -1);
|
@@ -19344,9 +19769,11 @@ SWIGEXPORT void Init_cproton(void) {
|
|
19344
19769
|
SwigClassPn_class_t.destroy = (void (*)(void *)) free_pn_class_t;
|
19345
19770
|
SwigClassPn_class_t.trackObjects = 0;
|
19346
19771
|
rb_define_module_function(mCproton, "pn_new", _wrap_pn_new, -1);
|
19772
|
+
rb_define_module_function(mCproton, "pn_initialize", _wrap_pn_initialize, -1);
|
19347
19773
|
rb_define_module_function(mCproton, "pn_incref", _wrap_pn_incref, -1);
|
19348
19774
|
rb_define_module_function(mCproton, "pn_decref", _wrap_pn_decref, -1);
|
19349
19775
|
rb_define_module_function(mCproton, "pn_refcount", _wrap_pn_refcount, -1);
|
19776
|
+
rb_define_module_function(mCproton, "pn_finalize", _wrap_pn_finalize, -1);
|
19350
19777
|
rb_define_module_function(mCproton, "pn_free", _wrap_pn_free, -1);
|
19351
19778
|
rb_define_module_function(mCproton, "pn_class", _wrap_pn_class, -1);
|
19352
19779
|
rb_define_module_function(mCproton, "pn_hashcode", _wrap_pn_hashcode, -1);
|
@@ -19511,6 +19938,12 @@ SWIGEXPORT void Init_cproton(void) {
|
|
19511
19938
|
rb_define_module_function(mCproton, "pn_transport_close_head", _wrap_pn_transport_close_head, -1);
|
19512
19939
|
rb_define_module_function(mCproton, "pn_transport_tick", _wrap_pn_transport_tick, -1);
|
19513
19940
|
rb_define_module_function(mCproton, "pn_transport_trace", _wrap_pn_transport_trace, -1);
|
19941
|
+
rb_define_module_function(mCproton, "pn_transport_set_tracer", _wrap_pn_transport_set_tracer, -1);
|
19942
|
+
rb_define_module_function(mCproton, "pn_transport_get_tracer", _wrap_pn_transport_get_tracer, -1);
|
19943
|
+
rb_define_module_function(mCproton, "pn_transport_set_context", _wrap_pn_transport_set_context, -1);
|
19944
|
+
rb_define_module_function(mCproton, "pn_transport_get_context", _wrap_pn_transport_get_context, -1);
|
19945
|
+
rb_define_module_function(mCproton, "pn_transport_log", _wrap_pn_transport_log, -1);
|
19946
|
+
rb_define_module_function(mCproton, "pn_transport_logf", _wrap_pn_transport_logf, -1);
|
19514
19947
|
rb_define_module_function(mCproton, "pn_transport_get_max_frame", _wrap_pn_transport_get_max_frame, -1);
|
19515
19948
|
rb_define_module_function(mCproton, "pn_transport_set_max_frame", _wrap_pn_transport_set_max_frame, -1);
|
19516
19949
|
rb_define_module_function(mCproton, "pn_transport_get_remote_max_frame", _wrap_pn_transport_get_remote_max_frame, -1);
|
@@ -19545,6 +19978,7 @@ SWIGEXPORT void Init_cproton(void) {
|
|
19545
19978
|
rb_define_module_function(mCproton, "pn_link_advance", _wrap_pn_link_advance, -1);
|
19546
19979
|
rb_define_module_function(mCproton, "pn_link_credit", _wrap_pn_link_credit, -1);
|
19547
19980
|
rb_define_module_function(mCproton, "pn_link_queued", _wrap_pn_link_queued, -1);
|
19981
|
+
rb_define_module_function(mCproton, "pn_link_remote_credit", _wrap_pn_link_remote_credit, -1);
|
19548
19982
|
rb_define_module_function(mCproton, "pn_link_available", _wrap_pn_link_available, -1);
|
19549
19983
|
rb_define_module_function(mCproton, "pn_link_snd_settle_mode", _wrap_pn_link_snd_settle_mode, -1);
|
19550
19984
|
rb_define_module_function(mCproton, "pn_link_rcv_settle_mode", _wrap_pn_link_rcv_settle_mode, -1);
|
@@ -19560,10 +19994,13 @@ SWIGEXPORT void Init_cproton(void) {
|
|
19560
19994
|
rb_define_module_function(mCproton, "pn_link_free", _wrap_pn_link_free, -1);
|
19561
19995
|
rb_define_module_function(mCproton, "pn_link_get_context", _wrap_pn_link_get_context, -1);
|
19562
19996
|
rb_define_module_function(mCproton, "pn_link_set_context", _wrap_pn_link_set_context, -1);
|
19997
|
+
rb_define_module_function(mCproton, "pn_link_get_drain", _wrap_pn_link_get_drain, -1);
|
19563
19998
|
rb_define_module_function(mCproton, "pn_link_offered", _wrap_pn_link_offered, -1);
|
19564
19999
|
rb_define_module_function(mCproton, "pn_link_drained", _wrap_pn_link_drained, -1);
|
19565
20000
|
rb_define_module_function(mCproton, "pn_link_flow", _wrap_pn_link_flow, -1);
|
19566
20001
|
rb_define_module_function(mCproton, "pn_link_drain", _wrap_pn_link_drain, -1);
|
20002
|
+
rb_define_module_function(mCproton, "pn_link_set_drain", _wrap_pn_link_set_drain, -1);
|
20003
|
+
rb_define_module_function(mCproton, "pn_link_draining", _wrap_pn_link_draining, -1);
|
19567
20004
|
rb_define_module_function(mCproton, "pn_terminus_get_type", _wrap_pn_terminus_get_type, -1);
|
19568
20005
|
rb_define_module_function(mCproton, "pn_terminus_set_type", _wrap_pn_terminus_set_type, -1);
|
19569
20006
|
rb_define_module_function(mCproton, "pn_terminus_get_address", _wrap_pn_terminus_get_address, -1);
|
@@ -19600,6 +20037,7 @@ SWIGEXPORT void Init_cproton(void) {
|
|
19600
20037
|
rb_define_module_function(mCproton, "pn_delivery_dump", _wrap_pn_delivery_dump, -1);
|
19601
20038
|
rb_define_module_function(mCproton, "pn_delivery_get_context", _wrap_pn_delivery_get_context, -1);
|
19602
20039
|
rb_define_module_function(mCproton, "pn_delivery_set_context", _wrap_pn_delivery_set_context, -1);
|
20040
|
+
rb_define_module_function(mCproton, "pn_delivery_buffered", _wrap_pn_delivery_buffered, -1);
|
19603
20041
|
rb_define_module_function(mCproton, "pn_disposition_type", _wrap_pn_disposition_type, -1);
|
19604
20042
|
rb_define_module_function(mCproton, "pn_disposition_data", _wrap_pn_disposition_data, -1);
|
19605
20043
|
rb_define_module_function(mCproton, "pn_disposition_get_section_number", _wrap_pn_disposition_get_section_number, -1);
|
@@ -19757,7 +20195,10 @@ SWIGEXPORT void Init_cproton(void) {
|
|
19757
20195
|
rb_define_const(mCproton, "PN_STATUS_PENDING", SWIG_From_int((int)(PN_STATUS_PENDING)));
|
19758
20196
|
rb_define_const(mCproton, "PN_STATUS_ACCEPTED", SWIG_From_int((int)(PN_STATUS_ACCEPTED)));
|
19759
20197
|
rb_define_const(mCproton, "PN_STATUS_REJECTED", SWIG_From_int((int)(PN_STATUS_REJECTED)));
|
20198
|
+
rb_define_const(mCproton, "PN_STATUS_RELEASED", SWIG_From_int((int)(PN_STATUS_RELEASED)));
|
19760
20199
|
rb_define_const(mCproton, "PN_STATUS_MODIFIED", SWIG_From_int((int)(PN_STATUS_MODIFIED)));
|
20200
|
+
rb_define_const(mCproton, "PN_STATUS_ABORTED", SWIG_From_int((int)(PN_STATUS_ABORTED)));
|
20201
|
+
rb_define_const(mCproton, "PN_STATUS_SETTLED", SWIG_From_int((int)(PN_STATUS_SETTLED)));
|
19761
20202
|
rb_define_module_function(mCproton, "pn_messenger", _wrap_pn_messenger, -1);
|
19762
20203
|
rb_define_module_function(mCproton, "pn_messenger_name", _wrap_pn_messenger_name, -1);
|
19763
20204
|
rb_define_module_function(mCproton, "pn_messenger_set_certificate", _wrap_pn_messenger_set_certificate, -1);
|
@@ -19785,8 +20226,10 @@ SWIGEXPORT void Init_cproton(void) {
|
|
19785
20226
|
rb_define_module_function(mCproton, "pn_messenger_subscribe", _wrap_pn_messenger_subscribe, -1);
|
19786
20227
|
rb_define_module_function(mCproton, "pn_subscription_get_context", _wrap_pn_subscription_get_context, -1);
|
19787
20228
|
rb_define_module_function(mCproton, "pn_subscription_set_context", _wrap_pn_subscription_set_context, -1);
|
20229
|
+
rb_define_module_function(mCproton, "pn_subscription_address", _wrap_pn_subscription_address, -1);
|
19788
20230
|
rb_define_module_function(mCproton, "pn_messenger_put", _wrap_pn_messenger_put, -1);
|
19789
20231
|
rb_define_module_function(mCproton, "pn_messenger_status", _wrap_pn_messenger_status, -1);
|
20232
|
+
rb_define_module_function(mCproton, "pn_messenger_buffered", _wrap_pn_messenger_buffered, -1);
|
19790
20233
|
rb_define_module_function(mCproton, "pn_messenger_settle", _wrap_pn_messenger_settle, -1);
|
19791
20234
|
rb_define_module_function(mCproton, "pn_messenger_outgoing_tracker", _wrap_pn_messenger_outgoing_tracker, -1);
|
19792
20235
|
rb_define_module_function(mCproton, "pn_messenger_work", _wrap_pn_messenger_work, -1);
|
@@ -19904,8 +20347,6 @@ SWIGEXPORT void Init_cproton(void) {
|
|
19904
20347
|
rb_define_method(SwigClassPn_atom_t_u.klass, "as_uuid", _wrap_pn_atom_t_u_as_uuid_get, -1);
|
19905
20348
|
rb_define_method(SwigClassPn_atom_t_u.klass, "as_bytes=", _wrap_pn_atom_t_u_as_bytes_set, -1);
|
19906
20349
|
rb_define_method(SwigClassPn_atom_t_u.klass, "as_bytes", _wrap_pn_atom_t_u_as_bytes_get, -1);
|
19907
|
-
rb_define_method(SwigClassPn_atom_t_u.klass, "as_count=", _wrap_pn_atom_t_u_as_count_set, -1);
|
19908
|
-
rb_define_method(SwigClassPn_atom_t_u.klass, "as_count", _wrap_pn_atom_t_u_as_count_get, -1);
|
19909
20350
|
SwigClassPn_atom_t_u.mark = 0;
|
19910
20351
|
SwigClassPn_atom_t_u.destroy = (void (*)(void *)) free_pn_atom_t_u;
|
19911
20352
|
SwigClassPn_atom_t_u.trackObjects = 0;
|