qpid_proton 0.37.0 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/examples/testme +5 -5
- data/ext/cproton/cproton.c +638 -2636
- data/lib/util/wrapper.rb +2 -8
- data/tests/test_connection_driver.rb +1 -1
- data/tests/test_container.rb +1 -1
- data/tests/test_container_sasl.rb +1 -1
- data/tests/test_data.rb +1 -1
- data/tests/test_delivery.rb +1 -1
- data/tests/test_interop.rb +1 -1
- data/tests/test_messaging_adapter.rb +1 -1
- data/tests/test_old_adapter.rb +2 -2
- data/tests/test_tools.rb +3 -3
- data/tests/test_uri.rb +1 -1
- data/tests/test_utils.rb +1 -1
- metadata +7 -7
data/ext/cproton/cproton.c
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
|
2
|
-
* This file was automatically generated by SWIG (
|
|
3
|
-
* Version 4.0
|
|
2
|
+
* This file was automatically generated by SWIG (https://www.swig.org).
|
|
3
|
+
* Version 4.3.0
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* changes to this file unless you know what you are doing--modify the SWIG
|
|
8
|
-
* interface file instead.
|
|
5
|
+
* Do not make changes to this file unless you know what you are doing - modify
|
|
6
|
+
* the SWIG interface file instead.
|
|
9
7
|
* ----------------------------------------------------------------------------- */
|
|
10
8
|
|
|
11
9
|
|
|
12
|
-
#
|
|
10
|
+
#define SWIG_VERSION 0x040300
|
|
13
11
|
#define SWIGRUBY
|
|
14
|
-
#endif
|
|
15
|
-
|
|
16
12
|
|
|
17
13
|
/* -----------------------------------------------------------------------------
|
|
18
14
|
* This section contains generic SWIG labels for method/variable
|
|
@@ -138,6 +134,40 @@
|
|
|
138
134
|
# pragma warning disable 592
|
|
139
135
|
#endif
|
|
140
136
|
|
|
137
|
+
#if defined(__cplusplus) && __cplusplus >=201103L
|
|
138
|
+
# define SWIG_NULLPTR nullptr
|
|
139
|
+
#else
|
|
140
|
+
# define SWIG_NULLPTR NULL
|
|
141
|
+
#endif
|
|
142
|
+
|
|
143
|
+
/* -----------------------------------------------------------------------------
|
|
144
|
+
* swigcompat.swg
|
|
145
|
+
*
|
|
146
|
+
* Macros to provide support compatibility with older C and C++ standards.
|
|
147
|
+
*
|
|
148
|
+
* Note that SWIG expects __cplusplus to be defined to the appropriate C++ standard.
|
|
149
|
+
* MSVC users are urged to check and examine the /Zc:__cplusplus compiler option.
|
|
150
|
+
* See https://learn.microsoft.com/en-us/cpp/build/reference/zc-cplusplus.
|
|
151
|
+
* ----------------------------------------------------------------------------- */
|
|
152
|
+
|
|
153
|
+
/* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF
|
|
154
|
+
* if you're missing it.
|
|
155
|
+
*/
|
|
156
|
+
#if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \
|
|
157
|
+
(defined __cplusplus && __cplusplus >= 201103L) || \
|
|
158
|
+
defined SWIG_HAVE_SNPRINTF) && \
|
|
159
|
+
!defined SWIG_NO_SNPRINTF
|
|
160
|
+
# define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A)
|
|
161
|
+
# define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B)
|
|
162
|
+
#else
|
|
163
|
+
/* Fallback versions ignore the buffer size, but most of our uses either have a
|
|
164
|
+
* fixed maximum possible size or dynamically allocate a buffer that's large
|
|
165
|
+
* enough.
|
|
166
|
+
*/
|
|
167
|
+
# define SWIG_snprintf(O,S,F,A) sprintf(O,F,A)
|
|
168
|
+
# define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B)
|
|
169
|
+
#endif
|
|
170
|
+
|
|
141
171
|
/* -----------------------------------------------------------------------------
|
|
142
172
|
* This section contains generic SWIG labels for method/variable
|
|
143
173
|
* declarations/attributes, and other compiler dependent labels.
|
|
@@ -262,6 +292,12 @@
|
|
|
262
292
|
# pragma warning disable 592
|
|
263
293
|
#endif
|
|
264
294
|
|
|
295
|
+
#if defined(__cplusplus) && __cplusplus >=201103L
|
|
296
|
+
# define SWIG_NULLPTR nullptr
|
|
297
|
+
#else
|
|
298
|
+
# define SWIG_NULLPTR NULL
|
|
299
|
+
#endif
|
|
300
|
+
|
|
265
301
|
/* -----------------------------------------------------------------------------
|
|
266
302
|
* swigrun.swg
|
|
267
303
|
*
|
|
@@ -308,6 +344,8 @@
|
|
|
308
344
|
#define SWIG_POINTER_DISOWN 0x1
|
|
309
345
|
#define SWIG_CAST_NEW_MEMORY 0x2
|
|
310
346
|
#define SWIG_POINTER_NO_NULL 0x4
|
|
347
|
+
#define SWIG_POINTER_CLEAR 0x8
|
|
348
|
+
#define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
|
|
311
349
|
|
|
312
350
|
/* Flags for new pointer objects */
|
|
313
351
|
#define SWIG_POINTER_OWN 0x1
|
|
@@ -379,7 +417,7 @@
|
|
|
379
417
|
SWIG errors code.
|
|
380
418
|
|
|
381
419
|
Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
|
|
382
|
-
allows
|
|
420
|
+
allows returning the 'cast rank', for example, if you have this
|
|
383
421
|
|
|
384
422
|
int food(double)
|
|
385
423
|
int fooi(int);
|
|
@@ -393,7 +431,13 @@
|
|
|
393
431
|
*/
|
|
394
432
|
|
|
395
433
|
#define SWIG_OK (0)
|
|
434
|
+
/* Runtime errors are < 0 */
|
|
396
435
|
#define SWIG_ERROR (-1)
|
|
436
|
+
/* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */
|
|
437
|
+
/* Errors in range -100 to -199 are language specific errors defined in *errors.swg */
|
|
438
|
+
/* Errors < -200 are generic runtime specific errors */
|
|
439
|
+
#define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
|
|
440
|
+
|
|
397
441
|
#define SWIG_IsOK(r) (r >= 0)
|
|
398
442
|
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
|
399
443
|
|
|
@@ -401,14 +445,14 @@
|
|
|
401
445
|
#define SWIG_CASTRANKLIMIT (1 << 8)
|
|
402
446
|
/* The NewMask denotes the object was created (using new/malloc) */
|
|
403
447
|
#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
|
|
404
|
-
/* The TmpMask is for in/out typemaps that use
|
|
448
|
+
/* The TmpMask is for in/out typemaps that use temporary objects */
|
|
405
449
|
#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
|
|
406
450
|
/* Simple returning values */
|
|
407
451
|
#define SWIG_BADOBJ (SWIG_ERROR)
|
|
408
452
|
#define SWIG_OLDOBJ (SWIG_OK)
|
|
409
453
|
#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
|
|
410
454
|
#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
|
|
411
|
-
/* Check, add and del mask methods */
|
|
455
|
+
/* Check, add and del object mask methods */
|
|
412
456
|
#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
|
|
413
457
|
#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
|
|
414
458
|
#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
|
|
@@ -554,7 +598,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) {
|
|
|
554
598
|
Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
|
|
555
599
|
*/
|
|
556
600
|
SWIGRUNTIME swig_cast_info *
|
|
557
|
-
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
|
|
601
|
+
SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty) {
|
|
558
602
|
if (ty) {
|
|
559
603
|
swig_cast_info *iter = ty->cast;
|
|
560
604
|
while (iter) {
|
|
@@ -614,9 +658,9 @@ SWIG_TypeName(const swig_type_info *ty) {
|
|
|
614
658
|
SWIGRUNTIME const char *
|
|
615
659
|
SWIG_TypePrettyName(const swig_type_info *type) {
|
|
616
660
|
/* The "str" field contains the equivalent pretty names of the
|
|
617
|
-
type, separated by vertical-bar characters.
|
|
618
|
-
|
|
619
|
-
|
|
661
|
+
type, separated by vertical-bar characters. Choose the last
|
|
662
|
+
name. It should be the most specific; a fully resolved name
|
|
663
|
+
but not necessarily with default template parameters expanded. */
|
|
620
664
|
if (!type) return NULL;
|
|
621
665
|
if (type->str != NULL) {
|
|
622
666
|
const char *last_name = type->str;
|
|
@@ -836,7 +880,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
|
836
880
|
}
|
|
837
881
|
#endif
|
|
838
882
|
|
|
839
|
-
/*
|
|
883
|
+
/* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */
|
|
840
884
|
#define SWIG_UnknownError -1
|
|
841
885
|
#define SWIG_IOError -2
|
|
842
886
|
#define SWIG_RuntimeError -3
|
|
@@ -852,8 +896,25 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
|
852
896
|
#define SWIG_NullReferenceError -13
|
|
853
897
|
|
|
854
898
|
|
|
899
|
+
#if __GNUC__ >= 7
|
|
900
|
+
#pragma GCC diagnostic push
|
|
901
|
+
#if defined(__cplusplus)
|
|
902
|
+
#pragma GCC diagnostic ignored "-Wregister"
|
|
903
|
+
#if __GNUC__ >= 10
|
|
904
|
+
#pragma GCC diagnostic ignored "-Wvolatile"
|
|
905
|
+
#if __GNUC__ >= 11
|
|
906
|
+
#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion"
|
|
907
|
+
#endif
|
|
908
|
+
#endif
|
|
909
|
+
#endif
|
|
910
|
+
#endif
|
|
855
911
|
|
|
856
912
|
#include <ruby.h>
|
|
913
|
+
#include <ruby/version.h> /* For RUBY_API_VERSION_CODE */
|
|
914
|
+
|
|
915
|
+
#if __GNUC__ >= 7
|
|
916
|
+
#pragma GCC diagnostic pop
|
|
917
|
+
#endif
|
|
857
918
|
|
|
858
919
|
/* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
|
|
859
920
|
* breaks using rb_intern as an lvalue, as SWIG does. We work around this
|
|
@@ -955,9 +1016,9 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
|
955
1016
|
/*
|
|
956
1017
|
* The following macros are used for providing the correct type of a
|
|
957
1018
|
* function pointer to the Ruby C API.
|
|
958
|
-
*
|
|
959
|
-
*
|
|
960
|
-
* ANYARGS and instead employing strict function signatures.
|
|
1019
|
+
*
|
|
1020
|
+
* Starting with Ruby 2.7 these macros act transparently due to Ruby's moving
|
|
1021
|
+
* moving away from ANYARGS and instead employing strict function signatures.
|
|
961
1022
|
*
|
|
962
1023
|
* Note: In case of C (not C++) the macros are transparent even before
|
|
963
1024
|
* Ruby 2.7 due to the fact that the Ruby C API used function declarators
|
|
@@ -981,7 +1042,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
|
981
1042
|
* SWIG_RUBY_INT_ANYARGS_FUNC(f) is used for the function pointer
|
|
982
1043
|
* argument(s) of Ruby C API functions like st_foreach().
|
|
983
1044
|
*/
|
|
984
|
-
#if defined(__cplusplus) &&
|
|
1045
|
+
#if defined(__cplusplus) && RUBY_API_VERSION_CODE < 20700
|
|
985
1046
|
# define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
|
|
986
1047
|
# define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
|
|
987
1048
|
# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
|
|
@@ -1032,15 +1093,12 @@ static VALUE _mSWIG = Qnil;
|
|
|
1032
1093
|
|
|
1033
1094
|
|
|
1034
1095
|
/* Define custom exceptions for errors that do not map to existing Ruby
|
|
1035
|
-
exceptions.
|
|
1036
|
-
initialized by a function in C. For C, fallback to rb_eRuntimeError.*/
|
|
1096
|
+
exceptions. */
|
|
1037
1097
|
|
|
1038
1098
|
SWIGINTERN VALUE
|
|
1039
1099
|
getNullReferenceError(void) {
|
|
1040
|
-
static
|
|
1041
|
-
|
|
1042
|
-
if (!init) {
|
|
1043
|
-
init = 1;
|
|
1100
|
+
static VALUE rb_eNullReferenceError = Qnil;
|
|
1101
|
+
if (rb_eNullReferenceError == Qnil) {
|
|
1044
1102
|
rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
|
|
1045
1103
|
}
|
|
1046
1104
|
return rb_eNullReferenceError;
|
|
@@ -1048,10 +1106,8 @@ getNullReferenceError(void) {
|
|
|
1048
1106
|
|
|
1049
1107
|
SWIGINTERN VALUE
|
|
1050
1108
|
getObjectPreviouslyDeletedError(void) {
|
|
1051
|
-
static
|
|
1052
|
-
|
|
1053
|
-
if (!init) {
|
|
1054
|
-
init = 1;
|
|
1109
|
+
static VALUE rb_eObjectPreviouslyDeleted = Qnil;
|
|
1110
|
+
if (rb_eObjectPreviouslyDeleted == Qnil) {
|
|
1055
1111
|
rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
|
|
1056
1112
|
}
|
|
1057
1113
|
return rb_eObjectPreviouslyDeleted;
|
|
@@ -1134,7 +1190,7 @@ const char* Ruby_Format_TypeError( const char* msg,
|
|
|
1134
1190
|
}
|
|
1135
1191
|
|
|
1136
1192
|
str = rb_str_cat2( str, "Expected argument " );
|
|
1137
|
-
|
|
1193
|
+
SWIG_snprintf( buf, sizeof( buf), "%d of type ", argn-1 );
|
|
1138
1194
|
str = rb_str_cat2( str, buf );
|
|
1139
1195
|
str = rb_str_cat2( str, type );
|
|
1140
1196
|
str = rb_str_cat2( str, ", but got " );
|
|
@@ -1323,8 +1379,8 @@ extern "C" {
|
|
|
1323
1379
|
#endif
|
|
1324
1380
|
|
|
1325
1381
|
SWIGINTERN VALUE
|
|
1326
|
-
SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1327
|
-
if (NIL_P(target)) {
|
|
1382
|
+
SWIG_Ruby_AppendOutput(VALUE target, VALUE o, int is_void) {
|
|
1383
|
+
if (NIL_P(target) && is_void) {
|
|
1328
1384
|
target = o;
|
|
1329
1385
|
} else {
|
|
1330
1386
|
if (TYPE(target) != T_ARRAY) {
|
|
@@ -1433,6 +1489,7 @@ static VALUE swig_runtime_data_type_pointer = Qnil;
|
|
|
1433
1489
|
/* Global IDs used to keep some internal SWIG stuff */
|
|
1434
1490
|
static ID swig_arity_id = 0;
|
|
1435
1491
|
static ID swig_call_id = 0;
|
|
1492
|
+
static ID swig_lowerthan_id = 0;
|
|
1436
1493
|
|
|
1437
1494
|
/*
|
|
1438
1495
|
If your swig extension is to be run within an embedded ruby and has
|
|
@@ -1466,10 +1523,8 @@ static ID swig_call_id = 0;
|
|
|
1466
1523
|
|
|
1467
1524
|
SWIGRUNTIME VALUE
|
|
1468
1525
|
getExceptionClass(void) {
|
|
1469
|
-
static
|
|
1470
|
-
|
|
1471
|
-
if (!init) {
|
|
1472
|
-
init = 1;
|
|
1526
|
+
static VALUE rubyExceptionClass = Qnil;
|
|
1527
|
+
if (rubyExceptionClass == Qnil) {
|
|
1473
1528
|
rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
|
|
1474
1529
|
}
|
|
1475
1530
|
return rubyExceptionClass;
|
|
@@ -1484,7 +1539,7 @@ SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) {
|
|
|
1484
1539
|
VALUE exceptionClass = getExceptionClass();
|
|
1485
1540
|
if (rb_obj_is_kind_of(obj, exceptionClass)) {
|
|
1486
1541
|
return obj;
|
|
1487
|
-
}
|
|
1542
|
+
} else {
|
|
1488
1543
|
return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj));
|
|
1489
1544
|
}
|
|
1490
1545
|
}
|
|
@@ -1497,6 +1552,7 @@ SWIG_Ruby_InitRuntime(void)
|
|
|
1497
1552
|
_mSWIG = rb_define_module("SWIG");
|
|
1498
1553
|
swig_call_id = rb_intern("call");
|
|
1499
1554
|
swig_arity_id = rb_intern("arity");
|
|
1555
|
+
swig_lowerthan_id = rb_intern("<");
|
|
1500
1556
|
}
|
|
1501
1557
|
}
|
|
1502
1558
|
|
|
@@ -1504,13 +1560,14 @@ SWIG_Ruby_InitRuntime(void)
|
|
|
1504
1560
|
SWIGRUNTIME void
|
|
1505
1561
|
SWIG_Ruby_define_class(swig_type_info *type)
|
|
1506
1562
|
{
|
|
1507
|
-
|
|
1508
|
-
|
|
1563
|
+
size_t klass_len = 4 + strlen(type->name) + 1;
|
|
1564
|
+
char *klass_name = (char *) malloc(klass_len);
|
|
1565
|
+
SWIG_snprintf(klass_name, klass_len, "TYPE%s", type->name);
|
|
1509
1566
|
if (NIL_P(_cSWIG_Pointer)) {
|
|
1510
1567
|
_cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
|
|
1511
1568
|
rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
|
|
1512
1569
|
}
|
|
1513
|
-
rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
|
|
1570
|
+
rb_undef_alloc_func(rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer));
|
|
1514
1571
|
free((void *) klass_name);
|
|
1515
1572
|
}
|
|
1516
1573
|
|
|
@@ -1561,8 +1618,9 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
|
1561
1618
|
SWIG_RubyAddTracking(ptr, obj);
|
|
1562
1619
|
}
|
|
1563
1620
|
} else {
|
|
1564
|
-
|
|
1565
|
-
|
|
1621
|
+
size_t klass_len = 4 + strlen(type->name) + 1;
|
|
1622
|
+
klass_name = (char *) malloc(klass_len);
|
|
1623
|
+
SWIG_snprintf(klass_name, klass_len, "TYPE%s", type->name);
|
|
1566
1624
|
klass = rb_const_get(_mSWIG, rb_intern(klass_name));
|
|
1567
1625
|
free((void *) klass_name);
|
|
1568
1626
|
obj = Data_Wrap_Struct(klass, 0, 0, ptr);
|
|
@@ -1634,6 +1692,11 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
|
1634
1692
|
own->own = 0;
|
|
1635
1693
|
}
|
|
1636
1694
|
|
|
1695
|
+
if (((flags & SWIG_POINTER_RELEASE) == SWIG_POINTER_RELEASE)) {
|
|
1696
|
+
if (!RDATA(obj)->dfree)
|
|
1697
|
+
return SWIG_ERROR_RELEASE_NOT_OWNED;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1637
1700
|
/* Check to see if the input object is giving up ownership
|
|
1638
1701
|
of the underlying C struct or C++ object. If so then we
|
|
1639
1702
|
need to reset the destructor since the Ruby object no
|
|
@@ -1645,7 +1708,7 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
|
1645
1708
|
swig_class *sklass = (swig_class *) ty->clientdata;
|
|
1646
1709
|
track = sklass->trackObjects;
|
|
1647
1710
|
}
|
|
1648
|
-
|
|
1711
|
+
|
|
1649
1712
|
if (track) {
|
|
1650
1713
|
/* We are tracking objects for this class. Thus we change the destructor
|
|
1651
1714
|
* to SWIG_RubyRemoveTracking. This allows us to
|
|
@@ -1659,6 +1722,10 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
|
1659
1722
|
}
|
|
1660
1723
|
}
|
|
1661
1724
|
|
|
1725
|
+
if (flags & SWIG_POINTER_CLEAR) {
|
|
1726
|
+
DATA_PTR(obj) = 0;
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1662
1729
|
/* Do type-checking if type info was provided */
|
|
1663
1730
|
if (ty) {
|
|
1664
1731
|
if (ty->clientdata) {
|
|
@@ -1766,6 +1833,7 @@ SWIG_Ruby_SetModule(swig_module_info *pointer)
|
|
|
1766
1833
|
{
|
|
1767
1834
|
/* register a new class */
|
|
1768
1835
|
VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
|
|
1836
|
+
rb_undef_alloc_func(cl);
|
|
1769
1837
|
/* create and store the structure pointer to a global variable */
|
|
1770
1838
|
swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
|
|
1771
1839
|
rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
|
|
@@ -1796,7 +1864,7 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
|
1796
1864
|
{
|
|
1797
1865
|
if ( rb_respond_to( proc, swig_arity_id ) )
|
|
1798
1866
|
{
|
|
1799
|
-
VALUE num =
|
|
1867
|
+
VALUE num = rb_funcall2( proc, swig_arity_id, 0, 0 );
|
|
1800
1868
|
int arity = NUM2INT(num);
|
|
1801
1869
|
if ( arity < 0 && (arity+1) < -minimal ) return 1;
|
|
1802
1870
|
if ( arity == minimal ) return 1;
|
|
@@ -1814,7 +1882,7 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
|
1814
1882
|
|
|
1815
1883
|
#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
|
|
1816
1884
|
|
|
1817
|
-
#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; }
|
|
1885
|
+
#define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0)
|
|
1818
1886
|
|
|
1819
1887
|
|
|
1820
1888
|
|
|
@@ -1824,9 +1892,9 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
|
1824
1892
|
#define SWIGTYPE_p_Pni_rbhandler_t swig_types[1]
|
|
1825
1893
|
#define SWIGTYPE_p_char swig_types[2]
|
|
1826
1894
|
#define SWIGTYPE_p_f_p_struct_pn_transport_t_p_q_const__char__void swig_types[3]
|
|
1827
|
-
#define
|
|
1828
|
-
#define
|
|
1829
|
-
#define
|
|
1895
|
+
#define SWIGTYPE_p_f_p_void__int swig_types[4]
|
|
1896
|
+
#define SWIGTYPE_p_f_p_void__void swig_types[5]
|
|
1897
|
+
#define SWIGTYPE_p_int swig_types[6]
|
|
1830
1898
|
#define SWIGTYPE_p_long swig_types[7]
|
|
1831
1899
|
#define SWIGTYPE_p_long_long swig_types[8]
|
|
1832
1900
|
#define SWIGTYPE_p_p_char swig_types[9]
|
|
@@ -1850,48 +1918,43 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
|
1850
1918
|
#define SWIGTYPE_p_pn_event_type_t swig_types[27]
|
|
1851
1919
|
#define SWIGTYPE_p_pn_expiry_policy_t swig_types[28]
|
|
1852
1920
|
#define SWIGTYPE_p_pn_handler_t swig_types[29]
|
|
1853
|
-
#define
|
|
1854
|
-
#define
|
|
1855
|
-
#define
|
|
1856
|
-
#define
|
|
1857
|
-
#define
|
|
1858
|
-
#define
|
|
1859
|
-
#define
|
|
1860
|
-
#define
|
|
1861
|
-
#define
|
|
1862
|
-
#define
|
|
1863
|
-
#define
|
|
1864
|
-
#define
|
|
1865
|
-
#define
|
|
1866
|
-
#define
|
|
1867
|
-
#define
|
|
1868
|
-
#define
|
|
1869
|
-
#define
|
|
1870
|
-
#define
|
|
1871
|
-
#define
|
|
1872
|
-
#define
|
|
1873
|
-
#define
|
|
1874
|
-
#define
|
|
1875
|
-
#define
|
|
1876
|
-
#define
|
|
1877
|
-
#define
|
|
1878
|
-
#define
|
|
1879
|
-
#define
|
|
1880
|
-
#define
|
|
1881
|
-
#define
|
|
1882
|
-
#define
|
|
1883
|
-
#define
|
|
1884
|
-
#define
|
|
1885
|
-
#define
|
|
1886
|
-
#define
|
|
1887
|
-
#define
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
#define SWIGTYPE_p_unsigned_long_long swig_types[67]
|
|
1891
|
-
#define SWIGTYPE_p_unsigned_short swig_types[68]
|
|
1892
|
-
#define SWIGTYPE_p_void swig_types[69]
|
|
1893
|
-
static swig_type_info *swig_types[71];
|
|
1894
|
-
static swig_module_info swig_module = {swig_types, 70, 0, 0, 0, 0};
|
|
1921
|
+
#define SWIGTYPE_p_pn_link_t swig_types[30]
|
|
1922
|
+
#define SWIGTYPE_p_pn_listener_t swig_types[31]
|
|
1923
|
+
#define SWIGTYPE_p_pn_logger_t swig_types[32]
|
|
1924
|
+
#define SWIGTYPE_p_pn_message_t swig_types[33]
|
|
1925
|
+
#define SWIGTYPE_p_pn_messenger_t swig_types[34]
|
|
1926
|
+
#define SWIGTYPE_p_pn_proactor_t swig_types[35]
|
|
1927
|
+
#define SWIGTYPE_p_pn_raw_connection_t swig_types[36]
|
|
1928
|
+
#define SWIGTYPE_p_pn_rcv_settle_mode_t swig_types[37]
|
|
1929
|
+
#define SWIGTYPE_p_pn_record_t swig_types[38]
|
|
1930
|
+
#define SWIGTYPE_p_pn_rwbytes_t swig_types[39]
|
|
1931
|
+
#define SWIGTYPE_p_pn_sasl_outcome_t swig_types[40]
|
|
1932
|
+
#define SWIGTYPE_p_pn_sasl_t swig_types[41]
|
|
1933
|
+
#define SWIGTYPE_p_pn_session_t swig_types[42]
|
|
1934
|
+
#define SWIGTYPE_p_pn_snd_settle_mode_t swig_types[43]
|
|
1935
|
+
#define SWIGTYPE_p_pn_ssl_cert_subject_subfield swig_types[44]
|
|
1936
|
+
#define SWIGTYPE_p_pn_ssl_domain_t swig_types[45]
|
|
1937
|
+
#define SWIGTYPE_p_pn_ssl_hash_alg swig_types[46]
|
|
1938
|
+
#define SWIGTYPE_p_pn_ssl_mode_t swig_types[47]
|
|
1939
|
+
#define SWIGTYPE_p_pn_ssl_resume_status_t swig_types[48]
|
|
1940
|
+
#define SWIGTYPE_p_pn_ssl_t swig_types[49]
|
|
1941
|
+
#define SWIGTYPE_p_pn_ssl_verify_mode_t swig_types[50]
|
|
1942
|
+
#define SWIGTYPE_p_pn_terminus_t swig_types[51]
|
|
1943
|
+
#define SWIGTYPE_p_pn_terminus_type_t swig_types[52]
|
|
1944
|
+
#define SWIGTYPE_p_pn_transport_t swig_types[53]
|
|
1945
|
+
#define SWIGTYPE_p_pn_type_t swig_types[54]
|
|
1946
|
+
#define SWIGTYPE_p_pn_url_t swig_types[55]
|
|
1947
|
+
#define SWIGTYPE_p_pn_uuid_t swig_types[56]
|
|
1948
|
+
#define SWIGTYPE_p_short swig_types[57]
|
|
1949
|
+
#define SWIGTYPE_p_signed_char swig_types[58]
|
|
1950
|
+
#define SWIGTYPE_p_unsigned_char swig_types[59]
|
|
1951
|
+
#define SWIGTYPE_p_unsigned_int swig_types[60]
|
|
1952
|
+
#define SWIGTYPE_p_unsigned_long swig_types[61]
|
|
1953
|
+
#define SWIGTYPE_p_unsigned_long_long swig_types[62]
|
|
1954
|
+
#define SWIGTYPE_p_unsigned_short swig_types[63]
|
|
1955
|
+
#define SWIGTYPE_p_void swig_types[64]
|
|
1956
|
+
static swig_type_info *swig_types[66];
|
|
1957
|
+
static swig_module_info swig_module = {swig_types, 65, 0, 0, 0, 0};
|
|
1895
1958
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
|
1896
1959
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
|
1897
1960
|
|
|
@@ -1906,10 +1969,6 @@ static VALUE mCproton;
|
|
|
1906
1969
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
|
1907
1970
|
|
|
1908
1971
|
|
|
1909
|
-
#define SWIGVERSION 0x040002
|
|
1910
|
-
#define SWIG_VERSION SWIGVERSION
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
1972
|
#define SWIG_as_voidptr(a) (void *)((const void *)(a))
|
|
1914
1973
|
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
|
|
1915
1974
|
|
|
@@ -1917,6 +1976,7 @@ static VALUE mCproton;
|
|
|
1917
1976
|
#define PN_USE_DEPRECATED_API 1
|
|
1918
1977
|
|
|
1919
1978
|
#include <proton/connection_driver.h>
|
|
1979
|
+
#include <proton/cid.h>
|
|
1920
1980
|
#include <proton/engine.h>
|
|
1921
1981
|
#include <proton/handlers.h>
|
|
1922
1982
|
#include <proton/message.h>
|
|
@@ -1941,7 +2001,6 @@ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
|
|
|
1941
2001
|
}
|
|
1942
2002
|
|
|
1943
2003
|
|
|
1944
|
-
/*@SWIG:/usr/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
|
1945
2004
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE arg)
|
|
1946
2005
|
{
|
|
1947
2006
|
VALUE *args = (VALUE *)arg;
|
|
@@ -1951,7 +2010,6 @@ SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE arg)
|
|
|
1951
2010
|
*res = type == T_FIXNUM ? NUM2ULONG(obj) : rb_big2ulong(obj);
|
|
1952
2011
|
return obj;
|
|
1953
2012
|
}
|
|
1954
|
-
/*@SWIG@*/
|
|
1955
2013
|
|
|
1956
2014
|
SWIGINTERN int
|
|
1957
2015
|
SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
|
@@ -1963,6 +2021,8 @@ SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
|
|
1963
2021
|
a[0] = obj;
|
|
1964
2022
|
a[1] = (VALUE)(&v);
|
|
1965
2023
|
if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
|
|
2024
|
+
if (rb_funcall(obj, swig_lowerthan_id, 1, INT2FIX(0)) != Qfalse)
|
|
2025
|
+
return SWIG_OverflowError;
|
|
1966
2026
|
if (val) *val = v;
|
|
1967
2027
|
return SWIG_OK;
|
|
1968
2028
|
}
|
|
@@ -1987,7 +2047,6 @@ SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
|
|
1987
2047
|
|
|
1988
2048
|
|
|
1989
2049
|
#ifdef SWIG_LONG_LONG_AVAILABLE
|
|
1990
|
-
/*@SWIG:/usr/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
|
1991
2050
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE arg)
|
|
1992
2051
|
{
|
|
1993
2052
|
VALUE *args = (VALUE *)arg;
|
|
@@ -1997,7 +2056,6 @@ SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE arg)
|
|
|
1997
2056
|
*res = type == T_FIXNUM ? NUM2ULL(obj) : rb_big2ull(obj);
|
|
1998
2057
|
return obj;
|
|
1999
2058
|
}
|
|
2000
|
-
/*@SWIG@*/
|
|
2001
2059
|
|
|
2002
2060
|
SWIGINTERN int
|
|
2003
2061
|
SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val)
|
|
@@ -2009,6 +2067,8 @@ SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val)
|
|
|
2009
2067
|
a[0] = obj;
|
|
2010
2068
|
a[1] = (VALUE)(&v);
|
|
2011
2069
|
if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2ULL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
|
|
2070
|
+
if (rb_funcall(obj, swig_lowerthan_id, 1, INT2FIX(0)) != Qfalse)
|
|
2071
|
+
return SWIG_OverflowError;
|
|
2012
2072
|
if (val) *val = v;
|
|
2013
2073
|
return SWIG_OK;
|
|
2014
2074
|
}
|
|
@@ -2042,11 +2102,9 @@ SWIG_AsVal_size_t (VALUE obj, size_t *val)
|
|
|
2042
2102
|
SWIGINTERN swig_type_info*
|
|
2043
2103
|
SWIG_pchar_descriptor(void)
|
|
2044
2104
|
{
|
|
2045
|
-
static int init = 0;
|
|
2046
2105
|
static swig_type_info* info = 0;
|
|
2047
|
-
if (!
|
|
2106
|
+
if (!info) {
|
|
2048
2107
|
info = SWIG_TypeQuery("_p_char");
|
|
2049
|
-
init = 1;
|
|
2050
2108
|
}
|
|
2051
2109
|
return info;
|
|
2052
2110
|
}
|
|
@@ -2318,7 +2376,6 @@ SWIG_From_bool (bool value)
|
|
|
2318
2376
|
|
|
2319
2377
|
|
|
2320
2378
|
|
|
2321
|
-
/*@SWIG:/usr/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
|
2322
2379
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
|
|
2323
2380
|
{
|
|
2324
2381
|
VALUE *args = (VALUE *)arg;
|
|
@@ -2328,7 +2385,6 @@ SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
|
|
|
2328
2385
|
*res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj);
|
|
2329
2386
|
return obj;
|
|
2330
2387
|
}
|
|
2331
|
-
/*@SWIG@*/
|
|
2332
2388
|
|
|
2333
2389
|
SWIGINTERN int
|
|
2334
2390
|
SWIG_AsVal_long (VALUE obj, long* val)
|
|
@@ -2389,19 +2445,14 @@ void Pn_rbkey_finalize(void *vp_rbkey) {
|
|
|
2389
2445
|
}
|
|
2390
2446
|
}
|
|
2391
2447
|
|
|
2392
|
-
|
|
2393
|
-
#define CID_Pn_rbkey CID_pn_void
|
|
2394
|
-
#define Pn_rbkey_inspect NULL
|
|
2395
|
-
#define Pn_rbkey_compare NULL
|
|
2396
|
-
#define Pn_rbkey_hashcode NULL
|
|
2448
|
+
static pn_class_t *Pn_rbkey_class;
|
|
2397
2449
|
|
|
2398
2450
|
pn_class_t* Pn_rbkey__class(void) {
|
|
2399
|
-
|
|
2400
|
-
return &clazz;
|
|
2451
|
+
return Pn_rbkey_class;
|
|
2401
2452
|
}
|
|
2402
2453
|
|
|
2403
2454
|
Pn_rbkey_t *Pn_rbkey_new(void) {
|
|
2404
|
-
return (Pn_rbkey_t *) pn_class_new(
|
|
2455
|
+
return (Pn_rbkey_t *) pn_class_new(Pn_rbkey_class, sizeof(Pn_rbkey_t));
|
|
2405
2456
|
}
|
|
2406
2457
|
|
|
2407
2458
|
|
|
@@ -2584,102 +2635,6 @@ SWIG_From_unsigned_SS_int (unsigned int value)
|
|
|
2584
2635
|
}
|
|
2585
2636
|
|
|
2586
2637
|
|
|
2587
|
-
#include <float.h>
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
#include <math.h>
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */
|
|
2594
|
-
#ifndef SWIG_isfinite
|
|
2595
|
-
/* isfinite() is a macro for C99 */
|
|
2596
|
-
# if defined(isfinite)
|
|
2597
|
-
# define SWIG_isfinite(X) (isfinite(X))
|
|
2598
|
-
# elif defined(__cplusplus) && __cplusplus >= 201103L
|
|
2599
|
-
/* Use a template so that this works whether isfinite() is std::isfinite() or
|
|
2600
|
-
* in the global namespace. The reality seems to vary between compiler
|
|
2601
|
-
* versions.
|
|
2602
|
-
*
|
|
2603
|
-
* Make sure namespace std exists to avoid compiler warnings.
|
|
2604
|
-
*
|
|
2605
|
-
* extern "C++" is required as this fragment can end up inside an extern "C" { } block
|
|
2606
|
-
*/
|
|
2607
|
-
namespace std { }
|
|
2608
|
-
extern "C++" template<typename T>
|
|
2609
|
-
inline int SWIG_isfinite_func(T x) {
|
|
2610
|
-
using namespace std;
|
|
2611
|
-
return isfinite(x);
|
|
2612
|
-
}
|
|
2613
|
-
# define SWIG_isfinite(X) (SWIG_isfinite_func(X))
|
|
2614
|
-
# elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
|
|
2615
|
-
# define SWIG_isfinite(X) (__builtin_isfinite(X))
|
|
2616
|
-
# elif defined(__clang__) && defined(__has_builtin)
|
|
2617
|
-
# if __has_builtin(__builtin_isfinite)
|
|
2618
|
-
# define SWIG_isfinite(X) (__builtin_isfinite(X))
|
|
2619
|
-
# endif
|
|
2620
|
-
# elif defined(_MSC_VER)
|
|
2621
|
-
# define SWIG_isfinite(X) (_finite(X))
|
|
2622
|
-
# elif defined(__sun) && defined(__SVR4)
|
|
2623
|
-
# include <ieeefp.h>
|
|
2624
|
-
# define SWIG_isfinite(X) (finite(X))
|
|
2625
|
-
# endif
|
|
2626
|
-
#endif
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
/* Accept infinite as a valid float value unless we are unable to check if a value is finite */
|
|
2630
|
-
#ifdef SWIG_isfinite
|
|
2631
|
-
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X))
|
|
2632
|
-
#else
|
|
2633
|
-
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX))
|
|
2634
|
-
#endif
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
/*@SWIG:/usr/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
|
2638
|
-
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE arg)
|
|
2639
|
-
{
|
|
2640
|
-
VALUE *args = (VALUE *)arg;
|
|
2641
|
-
VALUE obj = args[0];
|
|
2642
|
-
VALUE type = TYPE(obj);
|
|
2643
|
-
double *res = (double *)(args[1]);
|
|
2644
|
-
*res = NUM2DBL(obj); (void)type;
|
|
2645
|
-
return obj;
|
|
2646
|
-
}
|
|
2647
|
-
/*@SWIG@*/
|
|
2648
|
-
|
|
2649
|
-
SWIGINTERN int
|
|
2650
|
-
SWIG_AsVal_double (VALUE obj, double *val)
|
|
2651
|
-
{
|
|
2652
|
-
VALUE type = TYPE(obj);
|
|
2653
|
-
if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) {
|
|
2654
|
-
double v;
|
|
2655
|
-
VALUE a[2];
|
|
2656
|
-
a[0] = obj;
|
|
2657
|
-
a[1] = (VALUE)(&v);
|
|
2658
|
-
if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2DBL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
|
|
2659
|
-
if (val) *val = v;
|
|
2660
|
-
return SWIG_OK;
|
|
2661
|
-
}
|
|
2662
|
-
}
|
|
2663
|
-
return SWIG_TypeError;
|
|
2664
|
-
}
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
SWIGINTERN int
|
|
2668
|
-
SWIG_AsVal_float (VALUE obj, float *val)
|
|
2669
|
-
{
|
|
2670
|
-
double v;
|
|
2671
|
-
int res = SWIG_AsVal_double (obj, &v);
|
|
2672
|
-
if (SWIG_IsOK(res)) {
|
|
2673
|
-
if (SWIG_Float_Overflow_Check(v)) {
|
|
2674
|
-
return SWIG_OverflowError;
|
|
2675
|
-
} else {
|
|
2676
|
-
if (val) *val = (float)(v);
|
|
2677
|
-
}
|
|
2678
|
-
}
|
|
2679
|
-
return res;
|
|
2680
|
-
}
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
2638
|
SWIGINTERN int
|
|
2684
2639
|
SWIG_AsVal_bool (VALUE obj, bool *val)
|
|
2685
2640
|
{
|
|
@@ -2724,7 +2679,6 @@ SWIG_AsVal_unsigned_SS_short (VALUE obj, unsigned short *val)
|
|
|
2724
2679
|
|
|
2725
2680
|
|
|
2726
2681
|
#ifdef SWIG_LONG_LONG_AVAILABLE
|
|
2727
|
-
/*@SWIG:/usr/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
|
2728
2682
|
SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE arg)
|
|
2729
2683
|
{
|
|
2730
2684
|
VALUE *args = (VALUE *)arg;
|
|
@@ -2734,7 +2688,6 @@ SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE arg)
|
|
|
2734
2688
|
*res = type == T_FIXNUM ? NUM2LL(obj) : rb_big2ll(obj);
|
|
2735
2689
|
return obj;
|
|
2736
2690
|
}
|
|
2737
|
-
/*@SWIG@*/
|
|
2738
2691
|
|
|
2739
2692
|
SWIGINTERN int
|
|
2740
2693
|
SWIG_AsVal_long_SS_long (VALUE obj, long long *val)
|
|
@@ -2823,6 +2776,96 @@ SWIG_AsVal_short (VALUE obj, short *val)
|
|
|
2823
2776
|
}
|
|
2824
2777
|
|
|
2825
2778
|
|
|
2779
|
+
#include <float.h>
|
|
2780
|
+
|
|
2781
|
+
|
|
2782
|
+
#include <math.h>
|
|
2783
|
+
|
|
2784
|
+
|
|
2785
|
+
/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */
|
|
2786
|
+
#ifndef SWIG_isfinite
|
|
2787
|
+
/* isfinite() is a macro for C99 */
|
|
2788
|
+
# if defined(isfinite)
|
|
2789
|
+
# define SWIG_isfinite(X) (isfinite(X))
|
|
2790
|
+
# elif defined(__cplusplus) && __cplusplus >= 201103L
|
|
2791
|
+
/* Use a template so that this works whether isfinite() is std::isfinite() or
|
|
2792
|
+
* in the global namespace. The reality seems to vary between compiler
|
|
2793
|
+
* versions.
|
|
2794
|
+
*
|
|
2795
|
+
* Make sure namespace std exists to avoid compiler warnings.
|
|
2796
|
+
*
|
|
2797
|
+
* extern "C++" is required as this fragment can end up inside an extern "C" { } block
|
|
2798
|
+
*/
|
|
2799
|
+
namespace std { }
|
|
2800
|
+
extern "C++" template<typename T>
|
|
2801
|
+
inline int SWIG_isfinite_func(T x) {
|
|
2802
|
+
using namespace std;
|
|
2803
|
+
return isfinite(x);
|
|
2804
|
+
}
|
|
2805
|
+
# define SWIG_isfinite(X) (SWIG_isfinite_func(X))
|
|
2806
|
+
# elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
|
|
2807
|
+
# define SWIG_isfinite(X) (__builtin_isfinite(X))
|
|
2808
|
+
# elif defined(_MSC_VER)
|
|
2809
|
+
# define SWIG_isfinite(X) (_finite(X))
|
|
2810
|
+
# elif defined(__sun) && defined(__SVR4)
|
|
2811
|
+
# include <ieeefp.h>
|
|
2812
|
+
# define SWIG_isfinite(X) (finite(X))
|
|
2813
|
+
# endif
|
|
2814
|
+
#endif
|
|
2815
|
+
|
|
2816
|
+
|
|
2817
|
+
/* Accept infinite as a valid float value unless we are unable to check if a value is finite */
|
|
2818
|
+
#ifdef SWIG_isfinite
|
|
2819
|
+
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X))
|
|
2820
|
+
#else
|
|
2821
|
+
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX))
|
|
2822
|
+
#endif
|
|
2823
|
+
|
|
2824
|
+
|
|
2825
|
+
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE arg)
|
|
2826
|
+
{
|
|
2827
|
+
VALUE *args = (VALUE *)arg;
|
|
2828
|
+
VALUE obj = args[0];
|
|
2829
|
+
VALUE type = TYPE(obj);
|
|
2830
|
+
double *res = (double *)(args[1]);
|
|
2831
|
+
*res = NUM2DBL(obj); (void)type;
|
|
2832
|
+
return obj;
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2835
|
+
SWIGINTERN int
|
|
2836
|
+
SWIG_AsVal_double (VALUE obj, double *val)
|
|
2837
|
+
{
|
|
2838
|
+
VALUE type = TYPE(obj);
|
|
2839
|
+
if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) {
|
|
2840
|
+
double v;
|
|
2841
|
+
VALUE a[2];
|
|
2842
|
+
a[0] = obj;
|
|
2843
|
+
a[1] = (VALUE)(&v);
|
|
2844
|
+
if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2DBL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
|
|
2845
|
+
if (val) *val = v;
|
|
2846
|
+
return SWIG_OK;
|
|
2847
|
+
}
|
|
2848
|
+
}
|
|
2849
|
+
return SWIG_TypeError;
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
|
|
2853
|
+
SWIGINTERN int
|
|
2854
|
+
SWIG_AsVal_float (VALUE obj, float *val)
|
|
2855
|
+
{
|
|
2856
|
+
double v;
|
|
2857
|
+
int res = SWIG_AsVal_double (obj, &v);
|
|
2858
|
+
if (SWIG_IsOK(res)) {
|
|
2859
|
+
if (SWIG_Float_Overflow_Check(v)) {
|
|
2860
|
+
return SWIG_OverflowError;
|
|
2861
|
+
} else {
|
|
2862
|
+
if (val) *val = (float)(v);
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
return res;
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2868
|
+
|
|
2826
2869
|
SWIGINTERNINLINE VALUE
|
|
2827
2870
|
SWIG_From_signed_SS_char (signed char value)
|
|
2828
2871
|
{
|
|
@@ -2888,7 +2931,7 @@ _wrap_pn_message_encode(int argc, VALUE *argv, VALUE self) {
|
|
|
2888
2931
|
arg3 = &size2;
|
|
2889
2932
|
result = (int)pn_message_encode(arg1,arg2,arg3);
|
|
2890
2933
|
vresult = SWIG_From_int((int)(result));
|
|
2891
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3));
|
|
2934
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3), 0);
|
|
2892
2935
|
if (buff2) free((char*)buff2);
|
|
2893
2936
|
return vresult;
|
|
2894
2937
|
fail:
|
|
@@ -2967,7 +3010,7 @@ _wrap_pn_link_recv(int argc, VALUE *argv, VALUE self) {
|
|
|
2967
3010
|
arg3 = &size2;
|
|
2968
3011
|
result = (int)wrap_pn_link_recv(arg1,arg2,arg3);
|
|
2969
3012
|
vresult = SWIG_From_int((int)(result));
|
|
2970
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3));
|
|
3013
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3), 0);
|
|
2971
3014
|
if (buff2) free((char*)buff2);
|
|
2972
3015
|
return vresult;
|
|
2973
3016
|
fail:
|
|
@@ -3046,7 +3089,7 @@ _wrap_pn_transport_output(int argc, VALUE *argv, VALUE self) {
|
|
|
3046
3089
|
arg3 = &size2;
|
|
3047
3090
|
result = (int)wrap_pn_transport_output(arg1,arg2,arg3);
|
|
3048
3091
|
vresult = SWIG_From_int((int)(result));
|
|
3049
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3));
|
|
3092
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3), 0);
|
|
3050
3093
|
if (buff2) free((char*)buff2);
|
|
3051
3094
|
return vresult;
|
|
3052
3095
|
fail:
|
|
@@ -3087,7 +3130,7 @@ _wrap_pn_transport_peek(int argc, VALUE *argv, VALUE self) {
|
|
|
3087
3130
|
arg3 = &size2;
|
|
3088
3131
|
result = (int)wrap_pn_transport_peek(arg1,arg2,arg3);
|
|
3089
3132
|
vresult = SWIG_From_int((int)(result));
|
|
3090
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3));
|
|
3133
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3), 0);
|
|
3091
3134
|
if (buff2) free((char*)buff2);
|
|
3092
3135
|
return vresult;
|
|
3093
3136
|
fail:
|
|
@@ -3156,7 +3199,7 @@ _wrap_pn_delivery_tag(int argc, VALUE *argv, VALUE self) {
|
|
|
3156
3199
|
arg1 = (pn_delivery_t *)(argp1);
|
|
3157
3200
|
wrap_pn_delivery_tag(arg1,arg2,arg3);
|
|
3158
3201
|
if (*arg2) {
|
|
3159
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(*arg2,*arg3));
|
|
3202
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(*arg2,*arg3), 1);
|
|
3160
3203
|
free(*arg2);
|
|
3161
3204
|
}
|
|
3162
3205
|
return vresult;
|
|
@@ -3195,7 +3238,7 @@ _wrap_pn_ssl_get_cipher_name(int argc, VALUE *argv, VALUE self) {
|
|
|
3195
3238
|
arg2 = (char *)(buff2);
|
|
3196
3239
|
result = (bool)pn_ssl_get_cipher_name(arg1,arg2,arg3);
|
|
3197
3240
|
vresult = SWIG_From_bool((bool)(result));
|
|
3198
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtr(arg2));
|
|
3241
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtr(arg2), 0);
|
|
3199
3242
|
if (buff2) free((char*)buff2);
|
|
3200
3243
|
return vresult;
|
|
3201
3244
|
fail:
|
|
@@ -3234,7 +3277,7 @@ _wrap_pn_ssl_get_protocol_name(int argc, VALUE *argv, VALUE self) {
|
|
|
3234
3277
|
arg2 = (char *)(buff2);
|
|
3235
3278
|
result = (bool)pn_ssl_get_protocol_name(arg1,arg2,arg3);
|
|
3236
3279
|
vresult = SWIG_From_bool((bool)(result));
|
|
3237
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtr(arg2));
|
|
3280
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtr(arg2), 0);
|
|
3238
3281
|
if (buff2) free((char*)buff2);
|
|
3239
3282
|
return vresult;
|
|
3240
3283
|
fail:
|
|
@@ -3650,7 +3693,7 @@ _wrap_pn_ssl_get_peer_hostname(int argc, VALUE *argv, VALUE self) {
|
|
|
3650
3693
|
arg3 = &size2;
|
|
3651
3694
|
result = (int)pn_ssl_get_peer_hostname(arg1,arg2,arg3);
|
|
3652
3695
|
vresult = SWIG_From_int((int)(result));
|
|
3653
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3));
|
|
3696
|
+
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(arg2,*arg3), 0);
|
|
3654
3697
|
if (buff2) free((char*)buff2);
|
|
3655
3698
|
return vresult;
|
|
3656
3699
|
fail:
|
|
@@ -4151,76 +4194,63 @@ _wrap_pn_rwbytes_null_get(VALUE self) {
|
|
|
4151
4194
|
|
|
4152
4195
|
|
|
4153
4196
|
SWIGINTERN VALUE
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
_val = SWIG_NewPointerObj(SWIG_as_voidptr(PN_VOID), SWIGTYPE_p_pn_class_t, 0 );
|
|
4167
|
-
return _val;
|
|
4168
|
-
}
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
SWIGINTERN VALUE
|
|
4172
|
-
_wrap_PN_WEAKREF_get(VALUE self) {
|
|
4173
|
-
VALUE _val;
|
|
4174
|
-
|
|
4175
|
-
_val = SWIG_NewPointerObj(SWIG_as_voidptr(PN_WEAKREF), SWIGTYPE_p_pn_class_t, 0 );
|
|
4176
|
-
return _val;
|
|
4177
|
-
}
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
SWIGINTERN VALUE
|
|
4181
|
-
_wrap_pn_class_id(int argc, VALUE *argv, VALUE self) {
|
|
4182
|
-
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
|
4183
|
-
void *argp1 = 0 ;
|
|
4184
|
-
int res1 = 0 ;
|
|
4185
|
-
pn_cid_t result;
|
|
4197
|
+
_wrap_pn_class_create(int argc, VALUE *argv, VALUE self) {
|
|
4198
|
+
char *arg1 = (char *) 0 ;
|
|
4199
|
+
void (*arg2)(void *) = (void (*)(void *)) 0 ;
|
|
4200
|
+
void (*arg3)(void *) = (void (*)(void *)) 0 ;
|
|
4201
|
+
void (*arg4)(void *) = (void (*)(void *)) 0 ;
|
|
4202
|
+
void (*arg5)(void *) = (void (*)(void *)) 0 ;
|
|
4203
|
+
int (*arg6)(void *) = (int (*)(void *)) 0 ;
|
|
4204
|
+
int res1 ;
|
|
4205
|
+
char *buf1 = 0 ;
|
|
4206
|
+
int alloc1 = 0 ;
|
|
4207
|
+
pn_class_t *result = 0 ;
|
|
4186
4208
|
VALUE vresult = Qnil;
|
|
4187
4209
|
|
|
4188
|
-
if ((argc <
|
|
4189
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
|
4210
|
+
if ((argc < 6) || (argc > 6)) {
|
|
4211
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
|
|
4190
4212
|
}
|
|
4191
|
-
res1 =
|
|
4213
|
+
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
|
4192
4214
|
if (!SWIG_IsOK(res1)) {
|
|
4193
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "
|
|
4215
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","pn_class_create", 1, argv[0] ));
|
|
4194
4216
|
}
|
|
4195
|
-
arg1 = (
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
}
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
SWIGINTERN VALUE
|
|
4205
|
-
_wrap_pn_class_name(int argc, VALUE *argv, VALUE self) {
|
|
4206
|
-
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
|
4207
|
-
void *argp1 = 0 ;
|
|
4208
|
-
int res1 = 0 ;
|
|
4209
|
-
char *result = 0 ;
|
|
4210
|
-
VALUE vresult = Qnil;
|
|
4211
|
-
|
|
4212
|
-
if ((argc < 1) || (argc > 1)) {
|
|
4213
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4217
|
+
arg1 = (char *)(buf1);
|
|
4218
|
+
{
|
|
4219
|
+
int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_void__void);
|
|
4220
|
+
if (!SWIG_IsOK(res)) {
|
|
4221
|
+
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(void *)","pn_class_create", 2, argv[1] ));
|
|
4222
|
+
}
|
|
4214
4223
|
}
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4224
|
+
{
|
|
4225
|
+
int res = SWIG_ConvertFunctionPtr(argv[2], (void**)(&arg3), SWIGTYPE_p_f_p_void__void);
|
|
4226
|
+
if (!SWIG_IsOK(res)) {
|
|
4227
|
+
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(void *)","pn_class_create", 3, argv[2] ));
|
|
4228
|
+
}
|
|
4218
4229
|
}
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4230
|
+
{
|
|
4231
|
+
int res = SWIG_ConvertFunctionPtr(argv[3], (void**)(&arg4), SWIGTYPE_p_f_p_void__void);
|
|
4232
|
+
if (!SWIG_IsOK(res)) {
|
|
4233
|
+
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(void *)","pn_class_create", 4, argv[3] ));
|
|
4234
|
+
}
|
|
4235
|
+
}
|
|
4236
|
+
{
|
|
4237
|
+
int res = SWIG_ConvertFunctionPtr(argv[4], (void**)(&arg5), SWIGTYPE_p_f_p_void__void);
|
|
4238
|
+
if (!SWIG_IsOK(res)) {
|
|
4239
|
+
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(void *)","pn_class_create", 5, argv[4] ));
|
|
4240
|
+
}
|
|
4241
|
+
}
|
|
4242
|
+
{
|
|
4243
|
+
int res = SWIG_ConvertFunctionPtr(argv[5], (void**)(&arg6), SWIGTYPE_p_f_p_void__int);
|
|
4244
|
+
if (!SWIG_IsOK(res)) {
|
|
4245
|
+
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "int (*)(void *)","pn_class_create", 6, argv[5] ));
|
|
4246
|
+
}
|
|
4247
|
+
}
|
|
4248
|
+
result = (pn_class_t *)pn_class_create((char const *)arg1,arg2,arg3,arg4,arg5,arg6);
|
|
4249
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
4250
|
+
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
|
4222
4251
|
return vresult;
|
|
4223
4252
|
fail:
|
|
4253
|
+
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
|
4224
4254
|
return Qnil;
|
|
4225
4255
|
}
|
|
4226
4256
|
|
|
@@ -4258,59 +4288,23 @@ fail:
|
|
|
4258
4288
|
|
|
4259
4289
|
|
|
4260
4290
|
SWIGINTERN VALUE
|
|
4261
|
-
|
|
4262
|
-
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
|
4263
|
-
void *arg2 = (void *) 0 ;
|
|
4264
|
-
void *argp1 = 0 ;
|
|
4265
|
-
int res1 = 0 ;
|
|
4266
|
-
int res2 ;
|
|
4267
|
-
void *result = 0 ;
|
|
4268
|
-
VALUE vresult = Qnil;
|
|
4269
|
-
|
|
4270
|
-
if ((argc < 2) || (argc > 2)) {
|
|
4271
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
4272
|
-
}
|
|
4273
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
4274
|
-
if (!SWIG_IsOK(res1)) {
|
|
4275
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_incref", 1, argv[0] ));
|
|
4276
|
-
}
|
|
4277
|
-
arg1 = (pn_class_t *)(argp1);
|
|
4278
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
4279
|
-
if (!SWIG_IsOK(res2)) {
|
|
4280
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_incref", 2, argv[1] ));
|
|
4281
|
-
}
|
|
4282
|
-
result = (void *)pn_class_incref((struct pn_class_t const *)arg1,arg2);
|
|
4283
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
4284
|
-
return vresult;
|
|
4285
|
-
fail:
|
|
4286
|
-
return Qnil;
|
|
4287
|
-
}
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
SWIGINTERN VALUE
|
|
4291
|
-
_wrap_pn_class_refcount(int argc, VALUE *argv, VALUE self) {
|
|
4291
|
+
_wrap_pn_class_name(int argc, VALUE *argv, VALUE self) {
|
|
4292
4292
|
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
|
4293
|
-
void *arg2 = (void *) 0 ;
|
|
4294
4293
|
void *argp1 = 0 ;
|
|
4295
4294
|
int res1 = 0 ;
|
|
4296
|
-
|
|
4297
|
-
int result;
|
|
4295
|
+
char *result = 0 ;
|
|
4298
4296
|
VALUE vresult = Qnil;
|
|
4299
4297
|
|
|
4300
|
-
if ((argc <
|
|
4301
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
|
4298
|
+
if ((argc < 1) || (argc > 1)) {
|
|
4299
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4302
4300
|
}
|
|
4303
4301
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
4304
4302
|
if (!SWIG_IsOK(res1)) {
|
|
4305
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","
|
|
4303
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_name", 1, argv[0] ));
|
|
4306
4304
|
}
|
|
4307
4305
|
arg1 = (pn_class_t *)(argp1);
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_refcount", 2, argv[1] ));
|
|
4311
|
-
}
|
|
4312
|
-
result = (int)pn_class_refcount((struct pn_class_t const *)arg1,arg2);
|
|
4313
|
-
vresult = SWIG_From_int((int)(result));
|
|
4306
|
+
result = (char *)pn_class_name((struct pn_class_t const *)arg1);
|
|
4307
|
+
vresult = SWIG_FromCharPtr((const char *)result);
|
|
4314
4308
|
return vresult;
|
|
4315
4309
|
fail:
|
|
4316
4310
|
return Qnil;
|
|
@@ -4318,28 +4312,22 @@ fail:
|
|
|
4318
4312
|
|
|
4319
4313
|
|
|
4320
4314
|
SWIGINTERN VALUE
|
|
4321
|
-
|
|
4315
|
+
_wrap_pn_class_id(int argc, VALUE *argv, VALUE self) {
|
|
4322
4316
|
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
|
4323
|
-
void *arg2 = (void *) 0 ;
|
|
4324
4317
|
void *argp1 = 0 ;
|
|
4325
4318
|
int res1 = 0 ;
|
|
4326
|
-
|
|
4327
|
-
int result;
|
|
4319
|
+
pn_cid_t result;
|
|
4328
4320
|
VALUE vresult = Qnil;
|
|
4329
4321
|
|
|
4330
|
-
if ((argc <
|
|
4331
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
|
4322
|
+
if ((argc < 1) || (argc > 1)) {
|
|
4323
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4332
4324
|
}
|
|
4333
4325
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
4334
4326
|
if (!SWIG_IsOK(res1)) {
|
|
4335
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","
|
|
4327
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_id", 1, argv[0] ));
|
|
4336
4328
|
}
|
|
4337
4329
|
arg1 = (pn_class_t *)(argp1);
|
|
4338
|
-
|
|
4339
|
-
if (!SWIG_IsOK(res2)) {
|
|
4340
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_decref", 2, argv[1] ));
|
|
4341
|
-
}
|
|
4342
|
-
result = (int)pn_class_decref((struct pn_class_t const *)arg1,arg2);
|
|
4330
|
+
result = (pn_cid_t)pn_class_id((struct pn_class_t const *)arg1);
|
|
4343
4331
|
vresult = SWIG_From_int((int)(result));
|
|
4344
4332
|
return vresult;
|
|
4345
4333
|
fail:
|
|
@@ -4348,55 +4336,20 @@ fail:
|
|
|
4348
4336
|
|
|
4349
4337
|
|
|
4350
4338
|
SWIGINTERN VALUE
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
void *argp1 = 0 ;
|
|
4355
|
-
int res1 = 0 ;
|
|
4356
|
-
int res2 ;
|
|
4357
|
-
|
|
4358
|
-
if ((argc < 2) || (argc > 2)) {
|
|
4359
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
4360
|
-
}
|
|
4361
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
4362
|
-
if (!SWIG_IsOK(res1)) {
|
|
4363
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_free", 1, argv[0] ));
|
|
4364
|
-
}
|
|
4365
|
-
arg1 = (pn_class_t *)(argp1);
|
|
4366
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
4367
|
-
if (!SWIG_IsOK(res2)) {
|
|
4368
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_free", 2, argv[1] ));
|
|
4369
|
-
}
|
|
4370
|
-
pn_class_free((struct pn_class_t const *)arg1,arg2);
|
|
4371
|
-
return Qnil;
|
|
4372
|
-
fail:
|
|
4373
|
-
return Qnil;
|
|
4374
|
-
}
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
SWIGINTERN VALUE
|
|
4378
|
-
_wrap_pn_class_reify(int argc, VALUE *argv, VALUE self) {
|
|
4379
|
-
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
|
4380
|
-
void *arg2 = (void *) 0 ;
|
|
4381
|
-
void *argp1 = 0 ;
|
|
4382
|
-
int res1 = 0 ;
|
|
4383
|
-
int res2 ;
|
|
4339
|
+
_wrap_pn_class(int argc, VALUE *argv, VALUE self) {
|
|
4340
|
+
void *arg1 = (void *) 0 ;
|
|
4341
|
+
int res1 ;
|
|
4384
4342
|
pn_class_t *result = 0 ;
|
|
4385
4343
|
VALUE vresult = Qnil;
|
|
4386
4344
|
|
|
4387
|
-
if ((argc <
|
|
4388
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
|
4345
|
+
if ((argc < 1) || (argc > 1)) {
|
|
4346
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4389
4347
|
}
|
|
4390
|
-
res1 = SWIG_ConvertPtr(argv[0],
|
|
4348
|
+
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4391
4349
|
if (!SWIG_IsOK(res1)) {
|
|
4392
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "
|
|
4393
|
-
}
|
|
4394
|
-
arg1 = (pn_class_t *)(argp1);
|
|
4395
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
4396
|
-
if (!SWIG_IsOK(res2)) {
|
|
4397
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_reify", 2, argv[1] ));
|
|
4350
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_class", 1, argv[0] ));
|
|
4398
4351
|
}
|
|
4399
|
-
result = (pn_class_t *)
|
|
4352
|
+
result = (pn_class_t *)pn_class(arg1);
|
|
4400
4353
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
4401
4354
|
return vresult;
|
|
4402
4355
|
fail:
|
|
@@ -4405,2030 +4358,21 @@ fail:
|
|
|
4405
4358
|
|
|
4406
4359
|
|
|
4407
4360
|
SWIGINTERN VALUE
|
|
4408
|
-
|
|
4409
|
-
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
|
4410
|
-
void *arg2 = (void *) 0 ;
|
|
4411
|
-
void *argp1 = 0 ;
|
|
4412
|
-
int res1 = 0 ;
|
|
4413
|
-
int res2 ;
|
|
4414
|
-
uintptr_t result;
|
|
4415
|
-
VALUE vresult = Qnil;
|
|
4416
|
-
|
|
4417
|
-
if ((argc < 2) || (argc > 2)) {
|
|
4418
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
4419
|
-
}
|
|
4420
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
4421
|
-
if (!SWIG_IsOK(res1)) {
|
|
4422
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_hashcode", 1, argv[0] ));
|
|
4423
|
-
}
|
|
4424
|
-
arg1 = (pn_class_t *)(argp1);
|
|
4425
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
4426
|
-
if (!SWIG_IsOK(res2)) {
|
|
4427
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_hashcode", 2, argv[1] ));
|
|
4428
|
-
}
|
|
4429
|
-
result = (uintptr_t)pn_class_hashcode((struct pn_class_t const *)arg1,arg2);
|
|
4430
|
-
vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
|
|
4431
|
-
return vresult;
|
|
4432
|
-
fail:
|
|
4433
|
-
return Qnil;
|
|
4434
|
-
}
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
SWIGINTERN VALUE
|
|
4438
|
-
_wrap_pn_class_compare(int argc, VALUE *argv, VALUE self) {
|
|
4439
|
-
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
|
4440
|
-
void *arg2 = (void *) 0 ;
|
|
4441
|
-
void *arg3 = (void *) 0 ;
|
|
4442
|
-
void *argp1 = 0 ;
|
|
4443
|
-
int res1 = 0 ;
|
|
4444
|
-
int res2 ;
|
|
4445
|
-
int res3 ;
|
|
4446
|
-
intptr_t result;
|
|
4447
|
-
VALUE vresult = Qnil;
|
|
4448
|
-
|
|
4449
|
-
if ((argc < 3) || (argc > 3)) {
|
|
4450
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
4451
|
-
}
|
|
4452
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
4453
|
-
if (!SWIG_IsOK(res1)) {
|
|
4454
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_compare", 1, argv[0] ));
|
|
4455
|
-
}
|
|
4456
|
-
arg1 = (pn_class_t *)(argp1);
|
|
4457
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
4458
|
-
if (!SWIG_IsOK(res2)) {
|
|
4459
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_compare", 2, argv[1] ));
|
|
4460
|
-
}
|
|
4461
|
-
res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
|
|
4462
|
-
if (!SWIG_IsOK(res3)) {
|
|
4463
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_class_compare", 3, argv[2] ));
|
|
4464
|
-
}
|
|
4465
|
-
result = pn_class_compare((struct pn_class_t const *)arg1,arg2,arg3);
|
|
4466
|
-
vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)calloc(1,sizeof(intptr_t)),&result,sizeof(intptr_t)), SWIGTYPE_p_intptr_t, SWIG_POINTER_OWN | 0 );
|
|
4467
|
-
return vresult;
|
|
4468
|
-
fail:
|
|
4469
|
-
return Qnil;
|
|
4470
|
-
}
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
SWIGINTERN VALUE
|
|
4474
|
-
_wrap_pn_class_equals(int argc, VALUE *argv, VALUE self) {
|
|
4475
|
-
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
|
4476
|
-
void *arg2 = (void *) 0 ;
|
|
4477
|
-
void *arg3 = (void *) 0 ;
|
|
4478
|
-
void *argp1 = 0 ;
|
|
4479
|
-
int res1 = 0 ;
|
|
4480
|
-
int res2 ;
|
|
4481
|
-
int res3 ;
|
|
4482
|
-
bool result;
|
|
4483
|
-
VALUE vresult = Qnil;
|
|
4484
|
-
|
|
4485
|
-
if ((argc < 3) || (argc > 3)) {
|
|
4486
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
4487
|
-
}
|
|
4488
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
4489
|
-
if (!SWIG_IsOK(res1)) {
|
|
4490
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_equals", 1, argv[0] ));
|
|
4491
|
-
}
|
|
4492
|
-
arg1 = (pn_class_t *)(argp1);
|
|
4493
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
4494
|
-
if (!SWIG_IsOK(res2)) {
|
|
4495
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_equals", 2, argv[1] ));
|
|
4496
|
-
}
|
|
4497
|
-
res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
|
|
4498
|
-
if (!SWIG_IsOK(res3)) {
|
|
4499
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_class_equals", 3, argv[2] ));
|
|
4500
|
-
}
|
|
4501
|
-
result = (bool)pn_class_equals((struct pn_class_t const *)arg1,arg2,arg3);
|
|
4502
|
-
vresult = SWIG_From_bool((bool)(result));
|
|
4503
|
-
return vresult;
|
|
4504
|
-
fail:
|
|
4505
|
-
return Qnil;
|
|
4506
|
-
}
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
SWIGINTERN VALUE
|
|
4510
|
-
_wrap_pn_class_inspect(int argc, VALUE *argv, VALUE self) {
|
|
4511
|
-
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
|
4512
|
-
void *arg2 = (void *) 0 ;
|
|
4513
|
-
pn_string_t *arg3 = (pn_string_t *) 0 ;
|
|
4514
|
-
void *argp1 = 0 ;
|
|
4515
|
-
int res1 = 0 ;
|
|
4516
|
-
int res2 ;
|
|
4517
|
-
void *argp3 = 0 ;
|
|
4518
|
-
int res3 = 0 ;
|
|
4519
|
-
int result;
|
|
4520
|
-
VALUE vresult = Qnil;
|
|
4521
|
-
|
|
4522
|
-
if ((argc < 3) || (argc > 3)) {
|
|
4523
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
4524
|
-
}
|
|
4525
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
4526
|
-
if (!SWIG_IsOK(res1)) {
|
|
4527
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_class_inspect", 1, argv[0] ));
|
|
4528
|
-
}
|
|
4529
|
-
arg1 = (pn_class_t *)(argp1);
|
|
4530
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
4531
|
-
if (!SWIG_IsOK(res2)) {
|
|
4532
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_inspect", 2, argv[1] ));
|
|
4533
|
-
}
|
|
4534
|
-
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
4535
|
-
if (!SWIG_IsOK(res3)) {
|
|
4536
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "pn_string_t *","pn_class_inspect", 3, argv[2] ));
|
|
4537
|
-
}
|
|
4538
|
-
arg3 = (pn_string_t *)(argp3);
|
|
4539
|
-
result = (int)pn_class_inspect((struct pn_class_t const *)arg1,arg2,arg3);
|
|
4540
|
-
vresult = SWIG_From_int((int)(result));
|
|
4541
|
-
return vresult;
|
|
4542
|
-
fail:
|
|
4543
|
-
return Qnil;
|
|
4544
|
-
}
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
SWIGINTERN VALUE
|
|
4548
|
-
_wrap_pn_void_new(int argc, VALUE *argv, VALUE self) {
|
|
4549
|
-
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
|
4550
|
-
size_t arg2 ;
|
|
4551
|
-
void *argp1 = 0 ;
|
|
4552
|
-
int res1 = 0 ;
|
|
4553
|
-
size_t val2 ;
|
|
4554
|
-
int ecode2 = 0 ;
|
|
4555
|
-
void *result = 0 ;
|
|
4556
|
-
VALUE vresult = Qnil;
|
|
4557
|
-
|
|
4558
|
-
if ((argc < 2) || (argc > 2)) {
|
|
4559
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
4560
|
-
}
|
|
4561
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
4562
|
-
if (!SWIG_IsOK(res1)) {
|
|
4563
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_void_new", 1, argv[0] ));
|
|
4564
|
-
}
|
|
4565
|
-
arg1 = (pn_class_t *)(argp1);
|
|
4566
|
-
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
|
4567
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
4568
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_void_new", 2, argv[1] ));
|
|
4569
|
-
}
|
|
4570
|
-
arg2 = (size_t)(val2);
|
|
4571
|
-
result = (void *)pn_void_new((struct pn_class_t const *)arg1,arg2);
|
|
4572
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
4573
|
-
return vresult;
|
|
4574
|
-
fail:
|
|
4575
|
-
return Qnil;
|
|
4576
|
-
}
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
SWIGINTERN VALUE
|
|
4580
|
-
_wrap_pn_void_incref(int argc, VALUE *argv, VALUE self) {
|
|
4581
|
-
void *arg1 = (void *) 0 ;
|
|
4582
|
-
int res1 ;
|
|
4583
|
-
|
|
4584
|
-
if ((argc < 1) || (argc > 1)) {
|
|
4585
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4586
|
-
}
|
|
4587
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4588
|
-
if (!SWIG_IsOK(res1)) {
|
|
4589
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_incref", 1, argv[0] ));
|
|
4590
|
-
}
|
|
4591
|
-
pn_void_incref(arg1);
|
|
4592
|
-
return Qnil;
|
|
4593
|
-
fail:
|
|
4594
|
-
return Qnil;
|
|
4595
|
-
}
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
SWIGINTERN VALUE
|
|
4599
|
-
_wrap_pn_void_decref(int argc, VALUE *argv, VALUE self) {
|
|
4600
|
-
void *arg1 = (void *) 0 ;
|
|
4601
|
-
int res1 ;
|
|
4602
|
-
|
|
4603
|
-
if ((argc < 1) || (argc > 1)) {
|
|
4604
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4605
|
-
}
|
|
4606
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4607
|
-
if (!SWIG_IsOK(res1)) {
|
|
4608
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_decref", 1, argv[0] ));
|
|
4609
|
-
}
|
|
4610
|
-
pn_void_decref(arg1);
|
|
4611
|
-
return Qnil;
|
|
4612
|
-
fail:
|
|
4613
|
-
return Qnil;
|
|
4614
|
-
}
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
SWIGINTERN VALUE
|
|
4618
|
-
_wrap_pn_void_refcount(int argc, VALUE *argv, VALUE self) {
|
|
4619
|
-
void *arg1 = (void *) 0 ;
|
|
4620
|
-
int res1 ;
|
|
4621
|
-
int result;
|
|
4622
|
-
VALUE vresult = Qnil;
|
|
4623
|
-
|
|
4624
|
-
if ((argc < 1) || (argc > 1)) {
|
|
4625
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4626
|
-
}
|
|
4627
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4628
|
-
if (!SWIG_IsOK(res1)) {
|
|
4629
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_refcount", 1, argv[0] ));
|
|
4630
|
-
}
|
|
4631
|
-
result = (int)pn_void_refcount(arg1);
|
|
4632
|
-
vresult = SWIG_From_int((int)(result));
|
|
4633
|
-
return vresult;
|
|
4634
|
-
fail:
|
|
4635
|
-
return Qnil;
|
|
4636
|
-
}
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
SWIGINTERN VALUE
|
|
4640
|
-
_wrap_pn_void_hashcode(int argc, VALUE *argv, VALUE self) {
|
|
4641
|
-
void *arg1 = (void *) 0 ;
|
|
4642
|
-
int res1 ;
|
|
4643
|
-
uintptr_t result;
|
|
4644
|
-
VALUE vresult = Qnil;
|
|
4645
|
-
|
|
4646
|
-
if ((argc < 1) || (argc > 1)) {
|
|
4647
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4648
|
-
}
|
|
4649
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4650
|
-
if (!SWIG_IsOK(res1)) {
|
|
4651
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_hashcode", 1, argv[0] ));
|
|
4652
|
-
}
|
|
4653
|
-
result = (uintptr_t)pn_void_hashcode(arg1);
|
|
4654
|
-
vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
|
|
4655
|
-
return vresult;
|
|
4656
|
-
fail:
|
|
4657
|
-
return Qnil;
|
|
4658
|
-
}
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
SWIGINTERN VALUE
|
|
4662
|
-
_wrap_pn_void_compare(int argc, VALUE *argv, VALUE self) {
|
|
4663
|
-
void *arg1 = (void *) 0 ;
|
|
4664
|
-
void *arg2 = (void *) 0 ;
|
|
4665
|
-
int res1 ;
|
|
4666
|
-
int res2 ;
|
|
4667
|
-
intptr_t result;
|
|
4668
|
-
VALUE vresult = Qnil;
|
|
4669
|
-
|
|
4670
|
-
if ((argc < 2) || (argc > 2)) {
|
|
4671
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
4672
|
-
}
|
|
4673
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4674
|
-
if (!SWIG_IsOK(res1)) {
|
|
4675
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_compare", 1, argv[0] ));
|
|
4676
|
-
}
|
|
4677
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
4678
|
-
if (!SWIG_IsOK(res2)) {
|
|
4679
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_void_compare", 2, argv[1] ));
|
|
4680
|
-
}
|
|
4681
|
-
result = pn_void_compare(arg1,arg2);
|
|
4682
|
-
vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)calloc(1,sizeof(intptr_t)),&result,sizeof(intptr_t)), SWIGTYPE_p_intptr_t, SWIG_POINTER_OWN | 0 );
|
|
4683
|
-
return vresult;
|
|
4684
|
-
fail:
|
|
4685
|
-
return Qnil;
|
|
4686
|
-
}
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
SWIGINTERN VALUE
|
|
4690
|
-
_wrap_pn_void_inspect(int argc, VALUE *argv, VALUE self) {
|
|
4691
|
-
void *arg1 = (void *) 0 ;
|
|
4692
|
-
pn_string_t *arg2 = (pn_string_t *) 0 ;
|
|
4693
|
-
int res1 ;
|
|
4694
|
-
void *argp2 = 0 ;
|
|
4695
|
-
int res2 = 0 ;
|
|
4696
|
-
int result;
|
|
4697
|
-
VALUE vresult = Qnil;
|
|
4698
|
-
|
|
4699
|
-
if ((argc < 2) || (argc > 2)) {
|
|
4700
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
4701
|
-
}
|
|
4702
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4703
|
-
if (!SWIG_IsOK(res1)) {
|
|
4704
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_inspect", 1, argv[0] ));
|
|
4705
|
-
}
|
|
4706
|
-
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
4707
|
-
if (!SWIG_IsOK(res2)) {
|
|
4708
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_string_t *","pn_void_inspect", 2, argv[1] ));
|
|
4709
|
-
}
|
|
4710
|
-
arg2 = (pn_string_t *)(argp2);
|
|
4711
|
-
result = (int)pn_void_inspect(arg1,arg2);
|
|
4712
|
-
vresult = SWIG_From_int((int)(result));
|
|
4713
|
-
return vresult;
|
|
4714
|
-
fail:
|
|
4715
|
-
return Qnil;
|
|
4716
|
-
}
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
SWIGINTERN VALUE
|
|
4720
|
-
_wrap_pn_object_new(int argc, VALUE *argv, VALUE self) {
|
|
4721
|
-
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
|
4722
|
-
size_t arg2 ;
|
|
4723
|
-
void *argp1 = 0 ;
|
|
4724
|
-
int res1 = 0 ;
|
|
4725
|
-
size_t val2 ;
|
|
4726
|
-
int ecode2 = 0 ;
|
|
4727
|
-
void *result = 0 ;
|
|
4728
|
-
VALUE vresult = Qnil;
|
|
4729
|
-
|
|
4730
|
-
if ((argc < 2) || (argc > 2)) {
|
|
4731
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
4732
|
-
}
|
|
4733
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
4734
|
-
if (!SWIG_IsOK(res1)) {
|
|
4735
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_object_new", 1, argv[0] ));
|
|
4736
|
-
}
|
|
4737
|
-
arg1 = (pn_class_t *)(argp1);
|
|
4738
|
-
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
|
4739
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
4740
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_object_new", 2, argv[1] ));
|
|
4741
|
-
}
|
|
4742
|
-
arg2 = (size_t)(val2);
|
|
4743
|
-
result = (void *)pn_object_new((struct pn_class_t const *)arg1,arg2);
|
|
4744
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
4745
|
-
return vresult;
|
|
4746
|
-
fail:
|
|
4747
|
-
return Qnil;
|
|
4748
|
-
}
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
SWIGINTERN VALUE
|
|
4752
|
-
_wrap_pn_object_reify(int argc, VALUE *argv, VALUE self) {
|
|
4753
|
-
void *arg1 = (void *) 0 ;
|
|
4754
|
-
int res1 ;
|
|
4755
|
-
pn_class_t *result = 0 ;
|
|
4756
|
-
VALUE vresult = Qnil;
|
|
4757
|
-
|
|
4758
|
-
if ((argc < 1) || (argc > 1)) {
|
|
4759
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4760
|
-
}
|
|
4761
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4762
|
-
if (!SWIG_IsOK(res1)) {
|
|
4763
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_object_reify", 1, argv[0] ));
|
|
4764
|
-
}
|
|
4765
|
-
result = (pn_class_t *)pn_object_reify(arg1);
|
|
4766
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
4767
|
-
return vresult;
|
|
4768
|
-
fail:
|
|
4769
|
-
return Qnil;
|
|
4770
|
-
}
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
SWIGINTERN VALUE
|
|
4774
|
-
_wrap_pn_object_incref(int argc, VALUE *argv, VALUE self) {
|
|
4775
|
-
void *arg1 = (void *) 0 ;
|
|
4776
|
-
int res1 ;
|
|
4777
|
-
|
|
4778
|
-
if ((argc < 1) || (argc > 1)) {
|
|
4779
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4780
|
-
}
|
|
4781
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4782
|
-
if (!SWIG_IsOK(res1)) {
|
|
4783
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_object_incref", 1, argv[0] ));
|
|
4784
|
-
}
|
|
4785
|
-
pn_object_incref(arg1);
|
|
4786
|
-
return Qnil;
|
|
4787
|
-
fail:
|
|
4788
|
-
return Qnil;
|
|
4789
|
-
}
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
SWIGINTERN VALUE
|
|
4793
|
-
_wrap_pn_object_refcount(int argc, VALUE *argv, VALUE self) {
|
|
4794
|
-
void *arg1 = (void *) 0 ;
|
|
4795
|
-
int res1 ;
|
|
4796
|
-
int result;
|
|
4797
|
-
VALUE vresult = Qnil;
|
|
4798
|
-
|
|
4799
|
-
if ((argc < 1) || (argc > 1)) {
|
|
4800
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4801
|
-
}
|
|
4802
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4803
|
-
if (!SWIG_IsOK(res1)) {
|
|
4804
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_object_refcount", 1, argv[0] ));
|
|
4805
|
-
}
|
|
4806
|
-
result = (int)pn_object_refcount(arg1);
|
|
4807
|
-
vresult = SWIG_From_int((int)(result));
|
|
4808
|
-
return vresult;
|
|
4809
|
-
fail:
|
|
4810
|
-
return Qnil;
|
|
4811
|
-
}
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
SWIGINTERN VALUE
|
|
4815
|
-
_wrap_pn_object_decref(int argc, VALUE *argv, VALUE self) {
|
|
4816
|
-
void *arg1 = (void *) 0 ;
|
|
4817
|
-
int res1 ;
|
|
4818
|
-
|
|
4819
|
-
if ((argc < 1) || (argc > 1)) {
|
|
4820
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4821
|
-
}
|
|
4822
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4823
|
-
if (!SWIG_IsOK(res1)) {
|
|
4824
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_object_decref", 1, argv[0] ));
|
|
4825
|
-
}
|
|
4826
|
-
pn_object_decref(arg1);
|
|
4827
|
-
return Qnil;
|
|
4828
|
-
fail:
|
|
4829
|
-
return Qnil;
|
|
4830
|
-
}
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
SWIGINTERN VALUE
|
|
4834
|
-
_wrap_pn_object_free(int argc, VALUE *argv, VALUE self) {
|
|
4361
|
+
_wrap_pn_incref(int argc, VALUE *argv, VALUE self) {
|
|
4835
4362
|
void *arg1 = (void *) 0 ;
|
|
4836
4363
|
int res1 ;
|
|
4837
|
-
|
|
4838
|
-
if ((argc < 1) || (argc > 1)) {
|
|
4839
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4840
|
-
}
|
|
4841
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4842
|
-
if (!SWIG_IsOK(res1)) {
|
|
4843
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_object_free", 1, argv[0] ));
|
|
4844
|
-
}
|
|
4845
|
-
pn_object_free(arg1);
|
|
4846
|
-
return Qnil;
|
|
4847
|
-
fail:
|
|
4848
|
-
return Qnil;
|
|
4849
|
-
}
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
SWIGINTERN VALUE
|
|
4853
|
-
_wrap_pn_incref(int argc, VALUE *argv, VALUE self) {
|
|
4854
|
-
void *arg1 = (void *) 0 ;
|
|
4855
|
-
int res1 ;
|
|
4856
|
-
void *result = 0 ;
|
|
4857
|
-
VALUE vresult = Qnil;
|
|
4858
|
-
|
|
4859
|
-
if ((argc < 1) || (argc > 1)) {
|
|
4860
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4861
|
-
}
|
|
4862
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4863
|
-
if (!SWIG_IsOK(res1)) {
|
|
4864
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_incref", 1, argv[0] ));
|
|
4865
|
-
}
|
|
4866
|
-
result = (void *)pn_incref(arg1);
|
|
4867
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
4868
|
-
return vresult;
|
|
4869
|
-
fail:
|
|
4870
|
-
return Qnil;
|
|
4871
|
-
}
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
SWIGINTERN VALUE
|
|
4875
|
-
_wrap_pn_decref(int argc, VALUE *argv, VALUE self) {
|
|
4876
|
-
void *arg1 = (void *) 0 ;
|
|
4877
|
-
int res1 ;
|
|
4878
|
-
int result;
|
|
4879
|
-
VALUE vresult = Qnil;
|
|
4880
|
-
|
|
4881
|
-
if ((argc < 1) || (argc > 1)) {
|
|
4882
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4883
|
-
}
|
|
4884
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4885
|
-
if (!SWIG_IsOK(res1)) {
|
|
4886
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_decref", 1, argv[0] ));
|
|
4887
|
-
}
|
|
4888
|
-
result = (int)pn_decref(arg1);
|
|
4889
|
-
vresult = SWIG_From_int((int)(result));
|
|
4890
|
-
return vresult;
|
|
4891
|
-
fail:
|
|
4892
|
-
return Qnil;
|
|
4893
|
-
}
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
SWIGINTERN VALUE
|
|
4897
|
-
_wrap_pn_refcount(int argc, VALUE *argv, VALUE self) {
|
|
4898
|
-
void *arg1 = (void *) 0 ;
|
|
4899
|
-
int res1 ;
|
|
4900
|
-
int result;
|
|
4901
|
-
VALUE vresult = Qnil;
|
|
4902
|
-
|
|
4903
|
-
if ((argc < 1) || (argc > 1)) {
|
|
4904
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4905
|
-
}
|
|
4906
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4907
|
-
if (!SWIG_IsOK(res1)) {
|
|
4908
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_refcount", 1, argv[0] ));
|
|
4909
|
-
}
|
|
4910
|
-
result = (int)pn_refcount(arg1);
|
|
4911
|
-
vresult = SWIG_From_int((int)(result));
|
|
4912
|
-
return vresult;
|
|
4913
|
-
fail:
|
|
4914
|
-
return Qnil;
|
|
4915
|
-
}
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
SWIGINTERN VALUE
|
|
4919
|
-
_wrap_pn_free(int argc, VALUE *argv, VALUE self) {
|
|
4920
|
-
void *arg1 = (void *) 0 ;
|
|
4921
|
-
int res1 ;
|
|
4922
|
-
|
|
4923
|
-
if ((argc < 1) || (argc > 1)) {
|
|
4924
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4925
|
-
}
|
|
4926
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4927
|
-
if (!SWIG_IsOK(res1)) {
|
|
4928
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_free", 1, argv[0] ));
|
|
4929
|
-
}
|
|
4930
|
-
pn_free(arg1);
|
|
4931
|
-
return Qnil;
|
|
4932
|
-
fail:
|
|
4933
|
-
return Qnil;
|
|
4934
|
-
}
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
SWIGINTERN VALUE
|
|
4938
|
-
_wrap_pn_class(int argc, VALUE *argv, VALUE self) {
|
|
4939
|
-
void *arg1 = (void *) 0 ;
|
|
4940
|
-
int res1 ;
|
|
4941
|
-
pn_class_t *result = 0 ;
|
|
4942
|
-
VALUE vresult = Qnil;
|
|
4943
|
-
|
|
4944
|
-
if ((argc < 1) || (argc > 1)) {
|
|
4945
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4946
|
-
}
|
|
4947
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4948
|
-
if (!SWIG_IsOK(res1)) {
|
|
4949
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_class", 1, argv[0] ));
|
|
4950
|
-
}
|
|
4951
|
-
result = (pn_class_t *)pn_class(arg1);
|
|
4952
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
4953
|
-
return vresult;
|
|
4954
|
-
fail:
|
|
4955
|
-
return Qnil;
|
|
4956
|
-
}
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
SWIGINTERN VALUE
|
|
4960
|
-
_wrap_pn_hashcode(int argc, VALUE *argv, VALUE self) {
|
|
4961
|
-
void *arg1 = (void *) 0 ;
|
|
4962
|
-
int res1 ;
|
|
4963
|
-
uintptr_t result;
|
|
4964
|
-
VALUE vresult = Qnil;
|
|
4965
|
-
|
|
4966
|
-
if ((argc < 1) || (argc > 1)) {
|
|
4967
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4968
|
-
}
|
|
4969
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4970
|
-
if (!SWIG_IsOK(res1)) {
|
|
4971
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_hashcode", 1, argv[0] ));
|
|
4972
|
-
}
|
|
4973
|
-
result = (uintptr_t)pn_hashcode(arg1);
|
|
4974
|
-
vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
|
|
4975
|
-
return vresult;
|
|
4976
|
-
fail:
|
|
4977
|
-
return Qnil;
|
|
4978
|
-
}
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
SWIGINTERN VALUE
|
|
4982
|
-
_wrap_pn_compare(int argc, VALUE *argv, VALUE self) {
|
|
4983
|
-
void *arg1 = (void *) 0 ;
|
|
4984
|
-
void *arg2 = (void *) 0 ;
|
|
4985
|
-
int res1 ;
|
|
4986
|
-
int res2 ;
|
|
4987
|
-
intptr_t result;
|
|
4988
|
-
VALUE vresult = Qnil;
|
|
4989
|
-
|
|
4990
|
-
if ((argc < 2) || (argc > 2)) {
|
|
4991
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
4992
|
-
}
|
|
4993
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4994
|
-
if (!SWIG_IsOK(res1)) {
|
|
4995
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_compare", 1, argv[0] ));
|
|
4996
|
-
}
|
|
4997
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
4998
|
-
if (!SWIG_IsOK(res2)) {
|
|
4999
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_compare", 2, argv[1] ));
|
|
5000
|
-
}
|
|
5001
|
-
result = pn_compare(arg1,arg2);
|
|
5002
|
-
vresult = SWIG_NewPointerObj((intptr_t *)memcpy((intptr_t *)calloc(1,sizeof(intptr_t)),&result,sizeof(intptr_t)), SWIGTYPE_p_intptr_t, SWIG_POINTER_OWN | 0 );
|
|
5003
|
-
return vresult;
|
|
5004
|
-
fail:
|
|
5005
|
-
return Qnil;
|
|
5006
|
-
}
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
SWIGINTERN VALUE
|
|
5010
|
-
_wrap_pn_equals(int argc, VALUE *argv, VALUE self) {
|
|
5011
|
-
void *arg1 = (void *) 0 ;
|
|
5012
|
-
void *arg2 = (void *) 0 ;
|
|
5013
|
-
int res1 ;
|
|
5014
|
-
int res2 ;
|
|
5015
|
-
bool result;
|
|
5016
|
-
VALUE vresult = Qnil;
|
|
5017
|
-
|
|
5018
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5019
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5020
|
-
}
|
|
5021
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
5022
|
-
if (!SWIG_IsOK(res1)) {
|
|
5023
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_equals", 1, argv[0] ));
|
|
5024
|
-
}
|
|
5025
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
5026
|
-
if (!SWIG_IsOK(res2)) {
|
|
5027
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_equals", 2, argv[1] ));
|
|
5028
|
-
}
|
|
5029
|
-
result = (bool)pn_equals(arg1,arg2);
|
|
5030
|
-
vresult = SWIG_From_bool((bool)(result));
|
|
5031
|
-
return vresult;
|
|
5032
|
-
fail:
|
|
5033
|
-
return Qnil;
|
|
5034
|
-
}
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
SWIGINTERN VALUE
|
|
5038
|
-
_wrap_pn_inspect(int argc, VALUE *argv, VALUE self) {
|
|
5039
|
-
void *arg1 = (void *) 0 ;
|
|
5040
|
-
pn_string_t *arg2 = (pn_string_t *) 0 ;
|
|
5041
|
-
int res1 ;
|
|
5042
|
-
void *argp2 = 0 ;
|
|
5043
|
-
int res2 = 0 ;
|
|
5044
|
-
int result;
|
|
5045
|
-
VALUE vresult = Qnil;
|
|
5046
|
-
|
|
5047
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5048
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5049
|
-
}
|
|
5050
|
-
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
5051
|
-
if (!SWIG_IsOK(res1)) {
|
|
5052
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_inspect", 1, argv[0] ));
|
|
5053
|
-
}
|
|
5054
|
-
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
5055
|
-
if (!SWIG_IsOK(res2)) {
|
|
5056
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_string_t *","pn_inspect", 2, argv[1] ));
|
|
5057
|
-
}
|
|
5058
|
-
arg2 = (pn_string_t *)(argp2);
|
|
5059
|
-
result = (int)pn_inspect(arg1,arg2);
|
|
5060
|
-
vresult = SWIG_From_int((int)(result));
|
|
5061
|
-
return vresult;
|
|
5062
|
-
fail:
|
|
5063
|
-
return Qnil;
|
|
5064
|
-
}
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
SWIGINTERN VALUE
|
|
5068
|
-
_wrap_pn_list(int argc, VALUE *argv, VALUE self) {
|
|
5069
|
-
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
|
5070
|
-
size_t arg2 ;
|
|
5071
|
-
void *argp1 = 0 ;
|
|
5072
|
-
int res1 = 0 ;
|
|
5073
|
-
size_t val2 ;
|
|
5074
|
-
int ecode2 = 0 ;
|
|
5075
|
-
pn_list_t *result = 0 ;
|
|
5076
|
-
VALUE vresult = Qnil;
|
|
5077
|
-
|
|
5078
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5079
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5080
|
-
}
|
|
5081
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
5082
|
-
if (!SWIG_IsOK(res1)) {
|
|
5083
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_list", 1, argv[0] ));
|
|
5084
|
-
}
|
|
5085
|
-
arg1 = (pn_class_t *)(argp1);
|
|
5086
|
-
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
|
5087
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
5088
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_list", 2, argv[1] ));
|
|
5089
|
-
}
|
|
5090
|
-
arg2 = (size_t)(val2);
|
|
5091
|
-
result = (pn_list_t *)pn_list((struct pn_class_t const *)arg1,arg2);
|
|
5092
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_list_t, 0 | 0 );
|
|
5093
|
-
return vresult;
|
|
5094
|
-
fail:
|
|
5095
|
-
return Qnil;
|
|
5096
|
-
}
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
SWIGINTERN VALUE
|
|
5100
|
-
_wrap_pn_list_size(int argc, VALUE *argv, VALUE self) {
|
|
5101
|
-
pn_list_t *arg1 = (pn_list_t *) 0 ;
|
|
5102
|
-
void *argp1 = 0 ;
|
|
5103
|
-
int res1 = 0 ;
|
|
5104
|
-
size_t result;
|
|
5105
|
-
VALUE vresult = Qnil;
|
|
5106
|
-
|
|
5107
|
-
if ((argc < 1) || (argc > 1)) {
|
|
5108
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
5109
|
-
}
|
|
5110
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 );
|
|
5111
|
-
if (!SWIG_IsOK(res1)) {
|
|
5112
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_size", 1, argv[0] ));
|
|
5113
|
-
}
|
|
5114
|
-
arg1 = (pn_list_t *)(argp1);
|
|
5115
|
-
result = (size_t)pn_list_size(arg1);
|
|
5116
|
-
vresult = SWIG_From_size_t((size_t)(result));
|
|
5117
|
-
return vresult;
|
|
5118
|
-
fail:
|
|
5119
|
-
return Qnil;
|
|
5120
|
-
}
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
SWIGINTERN VALUE
|
|
5124
|
-
_wrap_pn_list_get(int argc, VALUE *argv, VALUE self) {
|
|
5125
|
-
pn_list_t *arg1 = (pn_list_t *) 0 ;
|
|
5126
|
-
int arg2 ;
|
|
5127
|
-
void *argp1 = 0 ;
|
|
5128
|
-
int res1 = 0 ;
|
|
5129
|
-
int val2 ;
|
|
5130
|
-
int ecode2 = 0 ;
|
|
5131
|
-
void *result = 0 ;
|
|
5132
|
-
VALUE vresult = Qnil;
|
|
5133
|
-
|
|
5134
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5135
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5136
|
-
}
|
|
5137
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 );
|
|
5138
|
-
if (!SWIG_IsOK(res1)) {
|
|
5139
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_get", 1, argv[0] ));
|
|
5140
|
-
}
|
|
5141
|
-
arg1 = (pn_list_t *)(argp1);
|
|
5142
|
-
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
|
5143
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
5144
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_list_get", 2, argv[1] ));
|
|
5145
|
-
}
|
|
5146
|
-
arg2 = (int)(val2);
|
|
5147
|
-
result = (void *)pn_list_get(arg1,arg2);
|
|
5148
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
5149
|
-
return vresult;
|
|
5150
|
-
fail:
|
|
5151
|
-
return Qnil;
|
|
5152
|
-
}
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
SWIGINTERN VALUE
|
|
5156
|
-
_wrap_pn_list_set(int argc, VALUE *argv, VALUE self) {
|
|
5157
|
-
pn_list_t *arg1 = (pn_list_t *) 0 ;
|
|
5158
|
-
int arg2 ;
|
|
5159
|
-
void *arg3 = (void *) 0 ;
|
|
5160
|
-
void *argp1 = 0 ;
|
|
5161
|
-
int res1 = 0 ;
|
|
5162
|
-
int val2 ;
|
|
5163
|
-
int ecode2 = 0 ;
|
|
5164
|
-
int res3 ;
|
|
5165
|
-
|
|
5166
|
-
if ((argc < 3) || (argc > 3)) {
|
|
5167
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
5168
|
-
}
|
|
5169
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 );
|
|
5170
|
-
if (!SWIG_IsOK(res1)) {
|
|
5171
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_set", 1, argv[0] ));
|
|
5172
|
-
}
|
|
5173
|
-
arg1 = (pn_list_t *)(argp1);
|
|
5174
|
-
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
|
5175
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
5176
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_list_set", 2, argv[1] ));
|
|
5177
|
-
}
|
|
5178
|
-
arg2 = (int)(val2);
|
|
5179
|
-
res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
|
|
5180
|
-
if (!SWIG_IsOK(res3)) {
|
|
5181
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_list_set", 3, argv[2] ));
|
|
5182
|
-
}
|
|
5183
|
-
pn_list_set(arg1,arg2,arg3);
|
|
5184
|
-
return Qnil;
|
|
5185
|
-
fail:
|
|
5186
|
-
return Qnil;
|
|
5187
|
-
}
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
SWIGINTERN VALUE
|
|
5191
|
-
_wrap_pn_list_add(int argc, VALUE *argv, VALUE self) {
|
|
5192
|
-
pn_list_t *arg1 = (pn_list_t *) 0 ;
|
|
5193
|
-
void *arg2 = (void *) 0 ;
|
|
5194
|
-
void *argp1 = 0 ;
|
|
5195
|
-
int res1 = 0 ;
|
|
5196
|
-
int res2 ;
|
|
5197
|
-
int result;
|
|
5198
|
-
VALUE vresult = Qnil;
|
|
5199
|
-
|
|
5200
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5201
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5202
|
-
}
|
|
5203
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 );
|
|
5204
|
-
if (!SWIG_IsOK(res1)) {
|
|
5205
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_add", 1, argv[0] ));
|
|
5206
|
-
}
|
|
5207
|
-
arg1 = (pn_list_t *)(argp1);
|
|
5208
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
5209
|
-
if (!SWIG_IsOK(res2)) {
|
|
5210
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_list_add", 2, argv[1] ));
|
|
5211
|
-
}
|
|
5212
|
-
result = (int)pn_list_add(arg1,arg2);
|
|
5213
|
-
vresult = SWIG_From_int((int)(result));
|
|
5214
|
-
return vresult;
|
|
5215
|
-
fail:
|
|
5216
|
-
return Qnil;
|
|
5217
|
-
}
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
SWIGINTERN VALUE
|
|
5221
|
-
_wrap_pn_list_pop(int argc, VALUE *argv, VALUE self) {
|
|
5222
|
-
pn_list_t *arg1 = (pn_list_t *) 0 ;
|
|
5223
|
-
void *argp1 = 0 ;
|
|
5224
|
-
int res1 = 0 ;
|
|
5225
|
-
void *result = 0 ;
|
|
5226
|
-
VALUE vresult = Qnil;
|
|
5227
|
-
|
|
5228
|
-
if ((argc < 1) || (argc > 1)) {
|
|
5229
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
5230
|
-
}
|
|
5231
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 );
|
|
5232
|
-
if (!SWIG_IsOK(res1)) {
|
|
5233
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_pop", 1, argv[0] ));
|
|
5234
|
-
}
|
|
5235
|
-
arg1 = (pn_list_t *)(argp1);
|
|
5236
|
-
result = (void *)pn_list_pop(arg1);
|
|
5237
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
5238
|
-
return vresult;
|
|
5239
|
-
fail:
|
|
5240
|
-
return Qnil;
|
|
5241
|
-
}
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
SWIGINTERN VALUE
|
|
5245
|
-
_wrap_pn_list_index(int argc, VALUE *argv, VALUE self) {
|
|
5246
|
-
pn_list_t *arg1 = (pn_list_t *) 0 ;
|
|
5247
|
-
void *arg2 = (void *) 0 ;
|
|
5248
|
-
void *argp1 = 0 ;
|
|
5249
|
-
int res1 = 0 ;
|
|
5250
|
-
int res2 ;
|
|
5251
|
-
ssize_t result;
|
|
5252
|
-
VALUE vresult = Qnil;
|
|
5253
|
-
|
|
5254
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5255
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5256
|
-
}
|
|
5257
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 );
|
|
5258
|
-
if (!SWIG_IsOK(res1)) {
|
|
5259
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_index", 1, argv[0] ));
|
|
5260
|
-
}
|
|
5261
|
-
arg1 = (pn_list_t *)(argp1);
|
|
5262
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
5263
|
-
if (!SWIG_IsOK(res2)) {
|
|
5264
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_list_index", 2, argv[1] ));
|
|
5265
|
-
}
|
|
5266
|
-
result = (ssize_t)pn_list_index(arg1,arg2);
|
|
5267
|
-
vresult = SWIG_From_int((int)(result));
|
|
5268
|
-
return vresult;
|
|
5269
|
-
fail:
|
|
5270
|
-
return Qnil;
|
|
5271
|
-
}
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
SWIGINTERN VALUE
|
|
5275
|
-
_wrap_pn_list_remove(int argc, VALUE *argv, VALUE self) {
|
|
5276
|
-
pn_list_t *arg1 = (pn_list_t *) 0 ;
|
|
5277
|
-
void *arg2 = (void *) 0 ;
|
|
5278
|
-
void *argp1 = 0 ;
|
|
5279
|
-
int res1 = 0 ;
|
|
5280
|
-
int res2 ;
|
|
5281
|
-
bool result;
|
|
5282
|
-
VALUE vresult = Qnil;
|
|
5283
|
-
|
|
5284
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5285
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5286
|
-
}
|
|
5287
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 );
|
|
5288
|
-
if (!SWIG_IsOK(res1)) {
|
|
5289
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_remove", 1, argv[0] ));
|
|
5290
|
-
}
|
|
5291
|
-
arg1 = (pn_list_t *)(argp1);
|
|
5292
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
5293
|
-
if (!SWIG_IsOK(res2)) {
|
|
5294
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_list_remove", 2, argv[1] ));
|
|
5295
|
-
}
|
|
5296
|
-
result = (bool)pn_list_remove(arg1,arg2);
|
|
5297
|
-
vresult = SWIG_From_bool((bool)(result));
|
|
5298
|
-
return vresult;
|
|
5299
|
-
fail:
|
|
5300
|
-
return Qnil;
|
|
5301
|
-
}
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
SWIGINTERN VALUE
|
|
5305
|
-
_wrap_pn_list_del(int argc, VALUE *argv, VALUE self) {
|
|
5306
|
-
pn_list_t *arg1 = (pn_list_t *) 0 ;
|
|
5307
|
-
int arg2 ;
|
|
5308
|
-
int arg3 ;
|
|
5309
|
-
void *argp1 = 0 ;
|
|
5310
|
-
int res1 = 0 ;
|
|
5311
|
-
int val2 ;
|
|
5312
|
-
int ecode2 = 0 ;
|
|
5313
|
-
int val3 ;
|
|
5314
|
-
int ecode3 = 0 ;
|
|
5315
|
-
|
|
5316
|
-
if ((argc < 3) || (argc > 3)) {
|
|
5317
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
5318
|
-
}
|
|
5319
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 );
|
|
5320
|
-
if (!SWIG_IsOK(res1)) {
|
|
5321
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_del", 1, argv[0] ));
|
|
5322
|
-
}
|
|
5323
|
-
arg1 = (pn_list_t *)(argp1);
|
|
5324
|
-
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
|
5325
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
5326
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pn_list_del", 2, argv[1] ));
|
|
5327
|
-
}
|
|
5328
|
-
arg2 = (int)(val2);
|
|
5329
|
-
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
|
5330
|
-
if (!SWIG_IsOK(ecode3)) {
|
|
5331
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","pn_list_del", 3, argv[2] ));
|
|
5332
|
-
}
|
|
5333
|
-
arg3 = (int)(val3);
|
|
5334
|
-
pn_list_del(arg1,arg2,arg3);
|
|
5335
|
-
return Qnil;
|
|
5336
|
-
fail:
|
|
5337
|
-
return Qnil;
|
|
5338
|
-
}
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
SWIGINTERN VALUE
|
|
5342
|
-
_wrap_pn_list_clear(int argc, VALUE *argv, VALUE self) {
|
|
5343
|
-
pn_list_t *arg1 = (pn_list_t *) 0 ;
|
|
5344
|
-
void *argp1 = 0 ;
|
|
5345
|
-
int res1 = 0 ;
|
|
5346
|
-
|
|
5347
|
-
if ((argc < 1) || (argc > 1)) {
|
|
5348
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
5349
|
-
}
|
|
5350
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 );
|
|
5351
|
-
if (!SWIG_IsOK(res1)) {
|
|
5352
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_clear", 1, argv[0] ));
|
|
5353
|
-
}
|
|
5354
|
-
arg1 = (pn_list_t *)(argp1);
|
|
5355
|
-
pn_list_clear(arg1);
|
|
5356
|
-
return Qnil;
|
|
5357
|
-
fail:
|
|
5358
|
-
return Qnil;
|
|
5359
|
-
}
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
SWIGINTERN VALUE
|
|
5363
|
-
_wrap_pn_list_iterator(int argc, VALUE *argv, VALUE self) {
|
|
5364
|
-
pn_list_t *arg1 = (pn_list_t *) 0 ;
|
|
5365
|
-
pn_iterator_t *arg2 = (pn_iterator_t *) 0 ;
|
|
5366
|
-
void *argp1 = 0 ;
|
|
5367
|
-
int res1 = 0 ;
|
|
5368
|
-
void *argp2 = 0 ;
|
|
5369
|
-
int res2 = 0 ;
|
|
5370
|
-
|
|
5371
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5372
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5373
|
-
}
|
|
5374
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 );
|
|
5375
|
-
if (!SWIG_IsOK(res1)) {
|
|
5376
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_iterator", 1, argv[0] ));
|
|
5377
|
-
}
|
|
5378
|
-
arg1 = (pn_list_t *)(argp1);
|
|
5379
|
-
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_iterator_t, 0 | 0 );
|
|
5380
|
-
if (!SWIG_IsOK(res2)) {
|
|
5381
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_iterator_t *","pn_list_iterator", 2, argv[1] ));
|
|
5382
|
-
}
|
|
5383
|
-
arg2 = (pn_iterator_t *)(argp2);
|
|
5384
|
-
pn_list_iterator(arg1,arg2);
|
|
5385
|
-
return Qnil;
|
|
5386
|
-
fail:
|
|
5387
|
-
return Qnil;
|
|
5388
|
-
}
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
SWIGINTERN VALUE
|
|
5392
|
-
_wrap_pn_list_minpush(int argc, VALUE *argv, VALUE self) {
|
|
5393
|
-
pn_list_t *arg1 = (pn_list_t *) 0 ;
|
|
5394
|
-
void *arg2 = (void *) 0 ;
|
|
5395
|
-
void *argp1 = 0 ;
|
|
5396
|
-
int res1 = 0 ;
|
|
5397
|
-
int res2 ;
|
|
5398
|
-
|
|
5399
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5400
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5401
|
-
}
|
|
5402
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 );
|
|
5403
|
-
if (!SWIG_IsOK(res1)) {
|
|
5404
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_minpush", 1, argv[0] ));
|
|
5405
|
-
}
|
|
5406
|
-
arg1 = (pn_list_t *)(argp1);
|
|
5407
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
5408
|
-
if (!SWIG_IsOK(res2)) {
|
|
5409
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_list_minpush", 2, argv[1] ));
|
|
5410
|
-
}
|
|
5411
|
-
pn_list_minpush(arg1,arg2);
|
|
5412
|
-
return Qnil;
|
|
5413
|
-
fail:
|
|
5414
|
-
return Qnil;
|
|
5415
|
-
}
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
SWIGINTERN VALUE
|
|
5419
|
-
_wrap_pn_list_minpop(int argc, VALUE *argv, VALUE self) {
|
|
5420
|
-
pn_list_t *arg1 = (pn_list_t *) 0 ;
|
|
5421
|
-
void *argp1 = 0 ;
|
|
5422
|
-
int res1 = 0 ;
|
|
5423
|
-
void *result = 0 ;
|
|
5424
|
-
VALUE vresult = Qnil;
|
|
5425
|
-
|
|
5426
|
-
if ((argc < 1) || (argc > 1)) {
|
|
5427
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
5428
|
-
}
|
|
5429
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_list_t, 0 | 0 );
|
|
5430
|
-
if (!SWIG_IsOK(res1)) {
|
|
5431
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_list_t *","pn_list_minpop", 1, argv[0] ));
|
|
5432
|
-
}
|
|
5433
|
-
arg1 = (pn_list_t *)(argp1);
|
|
5434
|
-
result = (void *)pn_list_minpop(arg1);
|
|
5435
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
5436
|
-
return vresult;
|
|
5437
|
-
fail:
|
|
5438
|
-
return Qnil;
|
|
5439
|
-
}
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
SWIGINTERN VALUE
|
|
5443
|
-
_wrap_pn_map(int argc, VALUE *argv, VALUE self) {
|
|
5444
|
-
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
|
5445
|
-
pn_class_t *arg2 = (pn_class_t *) 0 ;
|
|
5446
|
-
size_t arg3 ;
|
|
5447
|
-
float arg4 ;
|
|
5448
|
-
void *argp1 = 0 ;
|
|
5449
|
-
int res1 = 0 ;
|
|
5450
|
-
void *argp2 = 0 ;
|
|
5451
|
-
int res2 = 0 ;
|
|
5452
|
-
size_t val3 ;
|
|
5453
|
-
int ecode3 = 0 ;
|
|
5454
|
-
float val4 ;
|
|
5455
|
-
int ecode4 = 0 ;
|
|
5456
|
-
pn_map_t *result = 0 ;
|
|
5457
|
-
VALUE vresult = Qnil;
|
|
5458
|
-
|
|
5459
|
-
if ((argc < 4) || (argc > 4)) {
|
|
5460
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
|
5461
|
-
}
|
|
5462
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
5463
|
-
if (!SWIG_IsOK(res1)) {
|
|
5464
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_map", 1, argv[0] ));
|
|
5465
|
-
}
|
|
5466
|
-
arg1 = (pn_class_t *)(argp1);
|
|
5467
|
-
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
5468
|
-
if (!SWIG_IsOK(res2)) {
|
|
5469
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_class_t const *","pn_map", 2, argv[1] ));
|
|
5470
|
-
}
|
|
5471
|
-
arg2 = (pn_class_t *)(argp2);
|
|
5472
|
-
ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
|
|
5473
|
-
if (!SWIG_IsOK(ecode3)) {
|
|
5474
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_map", 3, argv[2] ));
|
|
5475
|
-
}
|
|
5476
|
-
arg3 = (size_t)(val3);
|
|
5477
|
-
ecode4 = SWIG_AsVal_float(argv[3], &val4);
|
|
5478
|
-
if (!SWIG_IsOK(ecode4)) {
|
|
5479
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "float","pn_map", 4, argv[3] ));
|
|
5480
|
-
}
|
|
5481
|
-
arg4 = (float)(val4);
|
|
5482
|
-
result = (pn_map_t *)pn_map((struct pn_class_t const *)arg1,(struct pn_class_t const *)arg2,arg3,arg4);
|
|
5483
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_map_t, 0 | 0 );
|
|
5484
|
-
return vresult;
|
|
5485
|
-
fail:
|
|
5486
|
-
return Qnil;
|
|
5487
|
-
}
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
SWIGINTERN VALUE
|
|
5491
|
-
_wrap_pn_map_size(int argc, VALUE *argv, VALUE self) {
|
|
5492
|
-
pn_map_t *arg1 = (pn_map_t *) 0 ;
|
|
5493
|
-
void *argp1 = 0 ;
|
|
5494
|
-
int res1 = 0 ;
|
|
5495
|
-
size_t result;
|
|
5496
|
-
VALUE vresult = Qnil;
|
|
5497
|
-
|
|
5498
|
-
if ((argc < 1) || (argc > 1)) {
|
|
5499
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
5500
|
-
}
|
|
5501
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 );
|
|
5502
|
-
if (!SWIG_IsOK(res1)) {
|
|
5503
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_size", 1, argv[0] ));
|
|
5504
|
-
}
|
|
5505
|
-
arg1 = (pn_map_t *)(argp1);
|
|
5506
|
-
result = (size_t)pn_map_size(arg1);
|
|
5507
|
-
vresult = SWIG_From_size_t((size_t)(result));
|
|
5508
|
-
return vresult;
|
|
5509
|
-
fail:
|
|
5510
|
-
return Qnil;
|
|
5511
|
-
}
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
SWIGINTERN VALUE
|
|
5515
|
-
_wrap_pn_map_put(int argc, VALUE *argv, VALUE self) {
|
|
5516
|
-
pn_map_t *arg1 = (pn_map_t *) 0 ;
|
|
5517
|
-
void *arg2 = (void *) 0 ;
|
|
5518
|
-
void *arg3 = (void *) 0 ;
|
|
5519
|
-
void *argp1 = 0 ;
|
|
5520
|
-
int res1 = 0 ;
|
|
5521
|
-
int res2 ;
|
|
5522
|
-
int res3 ;
|
|
5523
|
-
int result;
|
|
5524
|
-
VALUE vresult = Qnil;
|
|
5525
|
-
|
|
5526
|
-
if ((argc < 3) || (argc > 3)) {
|
|
5527
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
5528
|
-
}
|
|
5529
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 );
|
|
5530
|
-
if (!SWIG_IsOK(res1)) {
|
|
5531
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_put", 1, argv[0] ));
|
|
5532
|
-
}
|
|
5533
|
-
arg1 = (pn_map_t *)(argp1);
|
|
5534
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
5535
|
-
if (!SWIG_IsOK(res2)) {
|
|
5536
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_map_put", 2, argv[1] ));
|
|
5537
|
-
}
|
|
5538
|
-
res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
|
|
5539
|
-
if (!SWIG_IsOK(res3)) {
|
|
5540
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_map_put", 3, argv[2] ));
|
|
5541
|
-
}
|
|
5542
|
-
result = (int)pn_map_put(arg1,arg2,arg3);
|
|
5543
|
-
vresult = SWIG_From_int((int)(result));
|
|
5544
|
-
return vresult;
|
|
5545
|
-
fail:
|
|
5546
|
-
return Qnil;
|
|
5547
|
-
}
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
SWIGINTERN VALUE
|
|
5551
|
-
_wrap_pn_map_get(int argc, VALUE *argv, VALUE self) {
|
|
5552
|
-
pn_map_t *arg1 = (pn_map_t *) 0 ;
|
|
5553
|
-
void *arg2 = (void *) 0 ;
|
|
5554
|
-
void *argp1 = 0 ;
|
|
5555
|
-
int res1 = 0 ;
|
|
5556
|
-
int res2 ;
|
|
5557
|
-
void *result = 0 ;
|
|
5558
|
-
VALUE vresult = Qnil;
|
|
5559
|
-
|
|
5560
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5561
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5562
|
-
}
|
|
5563
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 );
|
|
5564
|
-
if (!SWIG_IsOK(res1)) {
|
|
5565
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_get", 1, argv[0] ));
|
|
5566
|
-
}
|
|
5567
|
-
arg1 = (pn_map_t *)(argp1);
|
|
5568
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
5569
|
-
if (!SWIG_IsOK(res2)) {
|
|
5570
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_map_get", 2, argv[1] ));
|
|
5571
|
-
}
|
|
5572
|
-
result = (void *)pn_map_get(arg1,arg2);
|
|
5573
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
5574
|
-
return vresult;
|
|
5575
|
-
fail:
|
|
5576
|
-
return Qnil;
|
|
5577
|
-
}
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
SWIGINTERN VALUE
|
|
5581
|
-
_wrap_pn_map_del(int argc, VALUE *argv, VALUE self) {
|
|
5582
|
-
pn_map_t *arg1 = (pn_map_t *) 0 ;
|
|
5583
|
-
void *arg2 = (void *) 0 ;
|
|
5584
|
-
void *argp1 = 0 ;
|
|
5585
|
-
int res1 = 0 ;
|
|
5586
|
-
int res2 ;
|
|
5587
|
-
|
|
5588
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5589
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5590
|
-
}
|
|
5591
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 );
|
|
5592
|
-
if (!SWIG_IsOK(res1)) {
|
|
5593
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_del", 1, argv[0] ));
|
|
5594
|
-
}
|
|
5595
|
-
arg1 = (pn_map_t *)(argp1);
|
|
5596
|
-
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
5597
|
-
if (!SWIG_IsOK(res2)) {
|
|
5598
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_map_del", 2, argv[1] ));
|
|
5599
|
-
}
|
|
5600
|
-
pn_map_del(arg1,arg2);
|
|
5601
|
-
return Qnil;
|
|
5602
|
-
fail:
|
|
5603
|
-
return Qnil;
|
|
5604
|
-
}
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
SWIGINTERN VALUE
|
|
5608
|
-
_wrap_pn_map_head(int argc, VALUE *argv, VALUE self) {
|
|
5609
|
-
pn_map_t *arg1 = (pn_map_t *) 0 ;
|
|
5610
|
-
void *argp1 = 0 ;
|
|
5611
|
-
int res1 = 0 ;
|
|
5612
|
-
pn_handle_t result;
|
|
5613
|
-
VALUE vresult = Qnil;
|
|
5614
|
-
|
|
5615
|
-
if ((argc < 1) || (argc > 1)) {
|
|
5616
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
5617
|
-
}
|
|
5618
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 );
|
|
5619
|
-
if (!SWIG_IsOK(res1)) {
|
|
5620
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_head", 1, argv[0] ));
|
|
5621
|
-
}
|
|
5622
|
-
arg1 = (pn_map_t *)(argp1);
|
|
5623
|
-
result = (pn_handle_t)pn_map_head(arg1);
|
|
5624
|
-
vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
|
|
5625
|
-
return vresult;
|
|
5626
|
-
fail:
|
|
5627
|
-
return Qnil;
|
|
5628
|
-
}
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
SWIGINTERN VALUE
|
|
5632
|
-
_wrap_pn_map_next(int argc, VALUE *argv, VALUE self) {
|
|
5633
|
-
pn_map_t *arg1 = (pn_map_t *) 0 ;
|
|
5634
|
-
pn_handle_t arg2 = (pn_handle_t) 0 ;
|
|
5635
|
-
void *argp1 = 0 ;
|
|
5636
|
-
int res1 = 0 ;
|
|
5637
|
-
unsigned long long val2 ;
|
|
5638
|
-
int ecode2 = 0 ;
|
|
5639
|
-
pn_handle_t result;
|
|
5640
|
-
VALUE vresult = Qnil;
|
|
5641
|
-
|
|
5642
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5643
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5644
|
-
}
|
|
5645
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 );
|
|
5646
|
-
if (!SWIG_IsOK(res1)) {
|
|
5647
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_next", 1, argv[0] ));
|
|
5648
|
-
}
|
|
5649
|
-
arg1 = (pn_map_t *)(argp1);
|
|
5650
|
-
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
|
|
5651
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
5652
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_next", 2, argv[1] ));
|
|
5653
|
-
}
|
|
5654
|
-
arg2 = (pn_handle_t)(val2);
|
|
5655
|
-
result = (pn_handle_t)pn_map_next(arg1,(void const *)arg2);
|
|
5656
|
-
vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
|
|
5657
|
-
return vresult;
|
|
5658
|
-
fail:
|
|
5659
|
-
return Qnil;
|
|
5660
|
-
}
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
SWIGINTERN VALUE
|
|
5664
|
-
_wrap_pn_map_key(int argc, VALUE *argv, VALUE self) {
|
|
5665
|
-
pn_map_t *arg1 = (pn_map_t *) 0 ;
|
|
5666
|
-
pn_handle_t arg2 = (pn_handle_t) 0 ;
|
|
5667
|
-
void *argp1 = 0 ;
|
|
5668
|
-
int res1 = 0 ;
|
|
5669
|
-
unsigned long long val2 ;
|
|
5670
|
-
int ecode2 = 0 ;
|
|
5671
|
-
void *result = 0 ;
|
|
5672
|
-
VALUE vresult = Qnil;
|
|
5673
|
-
|
|
5674
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5675
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5676
|
-
}
|
|
5677
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 );
|
|
5678
|
-
if (!SWIG_IsOK(res1)) {
|
|
5679
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_key", 1, argv[0] ));
|
|
5680
|
-
}
|
|
5681
|
-
arg1 = (pn_map_t *)(argp1);
|
|
5682
|
-
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
|
|
5683
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
5684
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_key", 2, argv[1] ));
|
|
5685
|
-
}
|
|
5686
|
-
arg2 = (pn_handle_t)(val2);
|
|
5687
|
-
result = (void *)pn_map_key(arg1,(void const *)arg2);
|
|
5688
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
5689
|
-
return vresult;
|
|
5690
|
-
fail:
|
|
5691
|
-
return Qnil;
|
|
5692
|
-
}
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
SWIGINTERN VALUE
|
|
5696
|
-
_wrap_pn_map_value(int argc, VALUE *argv, VALUE self) {
|
|
5697
|
-
pn_map_t *arg1 = (pn_map_t *) 0 ;
|
|
5698
|
-
pn_handle_t arg2 = (pn_handle_t) 0 ;
|
|
5699
|
-
void *argp1 = 0 ;
|
|
5700
|
-
int res1 = 0 ;
|
|
5701
|
-
unsigned long long val2 ;
|
|
5702
|
-
int ecode2 = 0 ;
|
|
5703
|
-
void *result = 0 ;
|
|
5704
|
-
VALUE vresult = Qnil;
|
|
5705
|
-
|
|
5706
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5707
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5708
|
-
}
|
|
5709
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 );
|
|
5710
|
-
if (!SWIG_IsOK(res1)) {
|
|
5711
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_value", 1, argv[0] ));
|
|
5712
|
-
}
|
|
5713
|
-
arg1 = (pn_map_t *)(argp1);
|
|
5714
|
-
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
|
|
5715
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
5716
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_value", 2, argv[1] ));
|
|
5717
|
-
}
|
|
5718
|
-
arg2 = (pn_handle_t)(val2);
|
|
5719
|
-
result = (void *)pn_map_value(arg1,(void const *)arg2);
|
|
5720
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
5721
|
-
return vresult;
|
|
5722
|
-
fail:
|
|
5723
|
-
return Qnil;
|
|
5724
|
-
}
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
SWIGINTERN VALUE
|
|
5728
|
-
_wrap_pn_hash(int argc, VALUE *argv, VALUE self) {
|
|
5729
|
-
pn_class_t *arg1 = (pn_class_t *) 0 ;
|
|
5730
|
-
size_t arg2 ;
|
|
5731
|
-
float arg3 ;
|
|
5732
|
-
void *argp1 = 0 ;
|
|
5733
|
-
int res1 = 0 ;
|
|
5734
|
-
size_t val2 ;
|
|
5735
|
-
int ecode2 = 0 ;
|
|
5736
|
-
float val3 ;
|
|
5737
|
-
int ecode3 = 0 ;
|
|
5738
|
-
pn_hash_t *result = 0 ;
|
|
5739
|
-
VALUE vresult = Qnil;
|
|
5740
|
-
|
|
5741
|
-
if ((argc < 3) || (argc > 3)) {
|
|
5742
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
5743
|
-
}
|
|
5744
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_class_t, 0 | 0 );
|
|
5745
|
-
if (!SWIG_IsOK(res1)) {
|
|
5746
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_class_t const *","pn_hash", 1, argv[0] ));
|
|
5747
|
-
}
|
|
5748
|
-
arg1 = (pn_class_t *)(argp1);
|
|
5749
|
-
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
|
5750
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
5751
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_hash", 2, argv[1] ));
|
|
5752
|
-
}
|
|
5753
|
-
arg2 = (size_t)(val2);
|
|
5754
|
-
ecode3 = SWIG_AsVal_float(argv[2], &val3);
|
|
5755
|
-
if (!SWIG_IsOK(ecode3)) {
|
|
5756
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "float","pn_hash", 3, argv[2] ));
|
|
5757
|
-
}
|
|
5758
|
-
arg3 = (float)(val3);
|
|
5759
|
-
result = (pn_hash_t *)pn_hash((struct pn_class_t const *)arg1,arg2,arg3);
|
|
5760
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_hash_t, 0 | 0 );
|
|
5761
|
-
return vresult;
|
|
5762
|
-
fail:
|
|
5763
|
-
return Qnil;
|
|
5764
|
-
}
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
SWIGINTERN VALUE
|
|
5768
|
-
_wrap_pn_hash_size(int argc, VALUE *argv, VALUE self) {
|
|
5769
|
-
pn_hash_t *arg1 = (pn_hash_t *) 0 ;
|
|
5770
|
-
void *argp1 = 0 ;
|
|
5771
|
-
int res1 = 0 ;
|
|
5772
|
-
size_t result;
|
|
5773
|
-
VALUE vresult = Qnil;
|
|
5774
|
-
|
|
5775
|
-
if ((argc < 1) || (argc > 1)) {
|
|
5776
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
5777
|
-
}
|
|
5778
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 );
|
|
5779
|
-
if (!SWIG_IsOK(res1)) {
|
|
5780
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_size", 1, argv[0] ));
|
|
5781
|
-
}
|
|
5782
|
-
arg1 = (pn_hash_t *)(argp1);
|
|
5783
|
-
result = (size_t)pn_hash_size(arg1);
|
|
5784
|
-
vresult = SWIG_From_size_t((size_t)(result));
|
|
5785
|
-
return vresult;
|
|
5786
|
-
fail:
|
|
5787
|
-
return Qnil;
|
|
5788
|
-
}
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
SWIGINTERN VALUE
|
|
5792
|
-
_wrap_pn_hash_put(int argc, VALUE *argv, VALUE self) {
|
|
5793
|
-
pn_hash_t *arg1 = (pn_hash_t *) 0 ;
|
|
5794
|
-
uintptr_t arg2 ;
|
|
5795
|
-
void *arg3 = (void *) 0 ;
|
|
5796
|
-
void *argp1 = 0 ;
|
|
5797
|
-
int res1 = 0 ;
|
|
5798
|
-
unsigned long long val2 ;
|
|
5799
|
-
int ecode2 = 0 ;
|
|
5800
|
-
int res3 ;
|
|
5801
|
-
int result;
|
|
5802
|
-
VALUE vresult = Qnil;
|
|
5803
|
-
|
|
5804
|
-
if ((argc < 3) || (argc > 3)) {
|
|
5805
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
5806
|
-
}
|
|
5807
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 );
|
|
5808
|
-
if (!SWIG_IsOK(res1)) {
|
|
5809
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_put", 1, argv[0] ));
|
|
5810
|
-
}
|
|
5811
|
-
arg1 = (pn_hash_t *)(argp1);
|
|
5812
|
-
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
|
|
5813
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
5814
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_put", 2, argv[1] ));
|
|
5815
|
-
}
|
|
5816
|
-
arg2 = (uintptr_t)(val2);
|
|
5817
|
-
res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
|
|
5818
|
-
if (!SWIG_IsOK(res3)) {
|
|
5819
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","pn_hash_put", 3, argv[2] ));
|
|
5820
|
-
}
|
|
5821
|
-
result = (int)pn_hash_put(arg1,arg2,arg3);
|
|
5822
|
-
vresult = SWIG_From_int((int)(result));
|
|
5823
|
-
return vresult;
|
|
5824
|
-
fail:
|
|
5825
|
-
return Qnil;
|
|
5826
|
-
}
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
SWIGINTERN VALUE
|
|
5830
|
-
_wrap_pn_hash_get(int argc, VALUE *argv, VALUE self) {
|
|
5831
|
-
pn_hash_t *arg1 = (pn_hash_t *) 0 ;
|
|
5832
|
-
uintptr_t arg2 ;
|
|
5833
|
-
void *argp1 = 0 ;
|
|
5834
|
-
int res1 = 0 ;
|
|
5835
|
-
unsigned long long val2 ;
|
|
5836
|
-
int ecode2 = 0 ;
|
|
5837
|
-
void *result = 0 ;
|
|
5838
|
-
VALUE vresult = Qnil;
|
|
5839
|
-
|
|
5840
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5841
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5842
|
-
}
|
|
5843
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 );
|
|
5844
|
-
if (!SWIG_IsOK(res1)) {
|
|
5845
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_get", 1, argv[0] ));
|
|
5846
|
-
}
|
|
5847
|
-
arg1 = (pn_hash_t *)(argp1);
|
|
5848
|
-
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
|
|
5849
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
5850
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_get", 2, argv[1] ));
|
|
5851
|
-
}
|
|
5852
|
-
arg2 = (uintptr_t)(val2);
|
|
5853
|
-
result = (void *)pn_hash_get(arg1,arg2);
|
|
5854
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
5855
|
-
return vresult;
|
|
5856
|
-
fail:
|
|
5857
|
-
return Qnil;
|
|
5858
|
-
}
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
SWIGINTERN VALUE
|
|
5862
|
-
_wrap_pn_hash_del(int argc, VALUE *argv, VALUE self) {
|
|
5863
|
-
pn_hash_t *arg1 = (pn_hash_t *) 0 ;
|
|
5864
|
-
uintptr_t arg2 ;
|
|
5865
|
-
void *argp1 = 0 ;
|
|
5866
|
-
int res1 = 0 ;
|
|
5867
|
-
unsigned long long val2 ;
|
|
5868
|
-
int ecode2 = 0 ;
|
|
5869
|
-
|
|
5870
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5871
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5872
|
-
}
|
|
5873
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 );
|
|
5874
|
-
if (!SWIG_IsOK(res1)) {
|
|
5875
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_del", 1, argv[0] ));
|
|
5876
|
-
}
|
|
5877
|
-
arg1 = (pn_hash_t *)(argp1);
|
|
5878
|
-
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
|
|
5879
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
5880
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_del", 2, argv[1] ));
|
|
5881
|
-
}
|
|
5882
|
-
arg2 = (uintptr_t)(val2);
|
|
5883
|
-
pn_hash_del(arg1,arg2);
|
|
5884
|
-
return Qnil;
|
|
5885
|
-
fail:
|
|
5886
|
-
return Qnil;
|
|
5887
|
-
}
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
SWIGINTERN VALUE
|
|
5891
|
-
_wrap_pn_hash_head(int argc, VALUE *argv, VALUE self) {
|
|
5892
|
-
pn_hash_t *arg1 = (pn_hash_t *) 0 ;
|
|
5893
|
-
void *argp1 = 0 ;
|
|
5894
|
-
int res1 = 0 ;
|
|
5895
|
-
pn_handle_t result;
|
|
5896
|
-
VALUE vresult = Qnil;
|
|
5897
|
-
|
|
5898
|
-
if ((argc < 1) || (argc > 1)) {
|
|
5899
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
5900
|
-
}
|
|
5901
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 );
|
|
5902
|
-
if (!SWIG_IsOK(res1)) {
|
|
5903
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_head", 1, argv[0] ));
|
|
5904
|
-
}
|
|
5905
|
-
arg1 = (pn_hash_t *)(argp1);
|
|
5906
|
-
result = (pn_handle_t)pn_hash_head(arg1);
|
|
5907
|
-
vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
|
|
5908
|
-
return vresult;
|
|
5909
|
-
fail:
|
|
5910
|
-
return Qnil;
|
|
5911
|
-
}
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
SWIGINTERN VALUE
|
|
5915
|
-
_wrap_pn_hash_next(int argc, VALUE *argv, VALUE self) {
|
|
5916
|
-
pn_hash_t *arg1 = (pn_hash_t *) 0 ;
|
|
5917
|
-
pn_handle_t arg2 = (pn_handle_t) 0 ;
|
|
5918
|
-
void *argp1 = 0 ;
|
|
5919
|
-
int res1 = 0 ;
|
|
5920
|
-
unsigned long long val2 ;
|
|
5921
|
-
int ecode2 = 0 ;
|
|
5922
|
-
pn_handle_t result;
|
|
5923
|
-
VALUE vresult = Qnil;
|
|
5924
|
-
|
|
5925
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5926
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5927
|
-
}
|
|
5928
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 );
|
|
5929
|
-
if (!SWIG_IsOK(res1)) {
|
|
5930
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_next", 1, argv[0] ));
|
|
5931
|
-
}
|
|
5932
|
-
arg1 = (pn_hash_t *)(argp1);
|
|
5933
|
-
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
|
|
5934
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
5935
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_next", 2, argv[1] ));
|
|
5936
|
-
}
|
|
5937
|
-
arg2 = (pn_handle_t)(val2);
|
|
5938
|
-
result = (pn_handle_t)pn_hash_next(arg1,(void const *)arg2);
|
|
5939
|
-
vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
|
|
5940
|
-
return vresult;
|
|
5941
|
-
fail:
|
|
5942
|
-
return Qnil;
|
|
5943
|
-
}
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
SWIGINTERN VALUE
|
|
5947
|
-
_wrap_pn_hash_key(int argc, VALUE *argv, VALUE self) {
|
|
5948
|
-
pn_hash_t *arg1 = (pn_hash_t *) 0 ;
|
|
5949
|
-
pn_handle_t arg2 = (pn_handle_t) 0 ;
|
|
5950
|
-
void *argp1 = 0 ;
|
|
5951
|
-
int res1 = 0 ;
|
|
5952
|
-
unsigned long long val2 ;
|
|
5953
|
-
int ecode2 = 0 ;
|
|
5954
|
-
uintptr_t result;
|
|
5955
|
-
VALUE vresult = Qnil;
|
|
5956
|
-
|
|
5957
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5958
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5959
|
-
}
|
|
5960
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 );
|
|
5961
|
-
if (!SWIG_IsOK(res1)) {
|
|
5962
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_key", 1, argv[0] ));
|
|
5963
|
-
}
|
|
5964
|
-
arg1 = (pn_hash_t *)(argp1);
|
|
5965
|
-
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
|
|
5966
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
5967
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_key", 2, argv[1] ));
|
|
5968
|
-
}
|
|
5969
|
-
arg2 = (pn_handle_t)(val2);
|
|
5970
|
-
result = (uintptr_t)pn_hash_key(arg1,(void const *)arg2);
|
|
5971
|
-
vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
|
|
5972
|
-
return vresult;
|
|
5973
|
-
fail:
|
|
5974
|
-
return Qnil;
|
|
5975
|
-
}
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
SWIGINTERN VALUE
|
|
5979
|
-
_wrap_pn_hash_value(int argc, VALUE *argv, VALUE self) {
|
|
5980
|
-
pn_hash_t *arg1 = (pn_hash_t *) 0 ;
|
|
5981
|
-
pn_handle_t arg2 = (pn_handle_t) 0 ;
|
|
5982
|
-
void *argp1 = 0 ;
|
|
5983
|
-
int res1 = 0 ;
|
|
5984
|
-
unsigned long long val2 ;
|
|
5985
|
-
int ecode2 = 0 ;
|
|
5986
|
-
void *result = 0 ;
|
|
5987
|
-
VALUE vresult = Qnil;
|
|
5988
|
-
|
|
5989
|
-
if ((argc < 2) || (argc > 2)) {
|
|
5990
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
5991
|
-
}
|
|
5992
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 );
|
|
5993
|
-
if (!SWIG_IsOK(res1)) {
|
|
5994
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_value", 1, argv[0] ));
|
|
5995
|
-
}
|
|
5996
|
-
arg1 = (pn_hash_t *)(argp1);
|
|
5997
|
-
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2);
|
|
5998
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
5999
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_value", 2, argv[1] ));
|
|
6000
|
-
}
|
|
6001
|
-
arg2 = (pn_handle_t)(val2);
|
|
6002
|
-
result = (void *)pn_hash_value(arg1,(void const *)arg2);
|
|
6003
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
6004
|
-
return vresult;
|
|
6005
|
-
fail:
|
|
6006
|
-
return Qnil;
|
|
6007
|
-
}
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
SWIGINTERN VALUE
|
|
6011
|
-
_wrap_pn_string(int argc, VALUE *argv, VALUE self) {
|
|
6012
|
-
char *arg1 = (char *) 0 ;
|
|
6013
|
-
int res1 ;
|
|
6014
|
-
char *buf1 = 0 ;
|
|
6015
|
-
int alloc1 = 0 ;
|
|
6016
|
-
pn_string_t *result = 0 ;
|
|
6017
|
-
VALUE vresult = Qnil;
|
|
6018
|
-
|
|
6019
|
-
if ((argc < 1) || (argc > 1)) {
|
|
6020
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
6021
|
-
}
|
|
6022
|
-
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
|
6023
|
-
if (!SWIG_IsOK(res1)) {
|
|
6024
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","pn_string", 1, argv[0] ));
|
|
6025
|
-
}
|
|
6026
|
-
arg1 = (char *)(buf1);
|
|
6027
|
-
result = (pn_string_t *)pn_string((char const *)arg1);
|
|
6028
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
6029
|
-
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
|
6030
|
-
return vresult;
|
|
6031
|
-
fail:
|
|
6032
|
-
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
|
6033
|
-
return Qnil;
|
|
6034
|
-
}
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
SWIGINTERN VALUE
|
|
6038
|
-
_wrap_pn_stringn(int argc, VALUE *argv, VALUE self) {
|
|
6039
|
-
char *arg1 = (char *) 0 ;
|
|
6040
|
-
size_t arg2 ;
|
|
6041
|
-
int res1 ;
|
|
6042
|
-
char *buf1 = 0 ;
|
|
6043
|
-
int alloc1 = 0 ;
|
|
6044
|
-
size_t val2 ;
|
|
6045
|
-
int ecode2 = 0 ;
|
|
6046
|
-
pn_string_t *result = 0 ;
|
|
6047
|
-
VALUE vresult = Qnil;
|
|
6048
|
-
|
|
6049
|
-
if ((argc < 2) || (argc > 2)) {
|
|
6050
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
6051
|
-
}
|
|
6052
|
-
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
|
6053
|
-
if (!SWIG_IsOK(res1)) {
|
|
6054
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","pn_stringn", 1, argv[0] ));
|
|
6055
|
-
}
|
|
6056
|
-
arg1 = (char *)(buf1);
|
|
6057
|
-
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
|
6058
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
6059
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_stringn", 2, argv[1] ));
|
|
6060
|
-
}
|
|
6061
|
-
arg2 = (size_t)(val2);
|
|
6062
|
-
result = (pn_string_t *)pn_stringn((char const *)arg1,arg2);
|
|
6063
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
6064
|
-
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
|
6065
|
-
return vresult;
|
|
6066
|
-
fail:
|
|
6067
|
-
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
|
6068
|
-
return Qnil;
|
|
6069
|
-
}
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
SWIGINTERN VALUE
|
|
6073
|
-
_wrap_pn_string_get(int argc, VALUE *argv, VALUE self) {
|
|
6074
|
-
pn_string_t *arg1 = (pn_string_t *) 0 ;
|
|
6075
|
-
void *argp1 = 0 ;
|
|
6076
|
-
int res1 = 0 ;
|
|
6077
|
-
char *result = 0 ;
|
|
6078
|
-
VALUE vresult = Qnil;
|
|
6079
|
-
|
|
6080
|
-
if ((argc < 1) || (argc > 1)) {
|
|
6081
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
6082
|
-
}
|
|
6083
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
6084
|
-
if (!SWIG_IsOK(res1)) {
|
|
6085
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_get", 1, argv[0] ));
|
|
6086
|
-
}
|
|
6087
|
-
arg1 = (pn_string_t *)(argp1);
|
|
6088
|
-
result = (char *)pn_string_get(arg1);
|
|
6089
|
-
vresult = SWIG_FromCharPtr((const char *)result);
|
|
6090
|
-
return vresult;
|
|
6091
|
-
fail:
|
|
6092
|
-
return Qnil;
|
|
6093
|
-
}
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
SWIGINTERN VALUE
|
|
6097
|
-
_wrap_pn_string_size(int argc, VALUE *argv, VALUE self) {
|
|
6098
|
-
pn_string_t *arg1 = (pn_string_t *) 0 ;
|
|
6099
|
-
void *argp1 = 0 ;
|
|
6100
|
-
int res1 = 0 ;
|
|
6101
|
-
size_t result;
|
|
6102
|
-
VALUE vresult = Qnil;
|
|
6103
|
-
|
|
6104
|
-
if ((argc < 1) || (argc > 1)) {
|
|
6105
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
6106
|
-
}
|
|
6107
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
6108
|
-
if (!SWIG_IsOK(res1)) {
|
|
6109
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_size", 1, argv[0] ));
|
|
6110
|
-
}
|
|
6111
|
-
arg1 = (pn_string_t *)(argp1);
|
|
6112
|
-
result = (size_t)pn_string_size(arg1);
|
|
6113
|
-
vresult = SWIG_From_size_t((size_t)(result));
|
|
6114
|
-
return vresult;
|
|
6115
|
-
fail:
|
|
6116
|
-
return Qnil;
|
|
6117
|
-
}
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
SWIGINTERN VALUE
|
|
6121
|
-
_wrap_pn_string_set(int argc, VALUE *argv, VALUE self) {
|
|
6122
|
-
pn_string_t *arg1 = (pn_string_t *) 0 ;
|
|
6123
|
-
char *arg2 = (char *) 0 ;
|
|
6124
|
-
void *argp1 = 0 ;
|
|
6125
|
-
int res1 = 0 ;
|
|
6126
|
-
int res2 ;
|
|
6127
|
-
char *buf2 = 0 ;
|
|
6128
|
-
int alloc2 = 0 ;
|
|
6129
|
-
int result;
|
|
6130
|
-
VALUE vresult = Qnil;
|
|
6131
|
-
|
|
6132
|
-
if ((argc < 2) || (argc > 2)) {
|
|
6133
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
6134
|
-
}
|
|
6135
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
6136
|
-
if (!SWIG_IsOK(res1)) {
|
|
6137
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_set", 1, argv[0] ));
|
|
6138
|
-
}
|
|
6139
|
-
arg1 = (pn_string_t *)(argp1);
|
|
6140
|
-
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
6141
|
-
if (!SWIG_IsOK(res2)) {
|
|
6142
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_string_set", 2, argv[1] ));
|
|
6143
|
-
}
|
|
6144
|
-
arg2 = (char *)(buf2);
|
|
6145
|
-
result = (int)pn_string_set(arg1,(char const *)arg2);
|
|
6146
|
-
vresult = SWIG_From_int((int)(result));
|
|
6147
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
6148
|
-
return vresult;
|
|
6149
|
-
fail:
|
|
6150
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
6151
|
-
return Qnil;
|
|
6152
|
-
}
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
SWIGINTERN VALUE
|
|
6156
|
-
_wrap_pn_string_setn(int argc, VALUE *argv, VALUE self) {
|
|
6157
|
-
pn_string_t *arg1 = (pn_string_t *) 0 ;
|
|
6158
|
-
char *arg2 = (char *) 0 ;
|
|
6159
|
-
size_t arg3 ;
|
|
6160
|
-
void *argp1 = 0 ;
|
|
6161
|
-
int res1 = 0 ;
|
|
6162
|
-
int res2 ;
|
|
6163
|
-
char *buf2 = 0 ;
|
|
6164
|
-
int alloc2 = 0 ;
|
|
6165
|
-
size_t val3 ;
|
|
6166
|
-
int ecode3 = 0 ;
|
|
6167
|
-
int result;
|
|
6168
|
-
VALUE vresult = Qnil;
|
|
6169
|
-
|
|
6170
|
-
if ((argc < 3) || (argc > 3)) {
|
|
6171
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
6172
|
-
}
|
|
6173
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
6174
|
-
if (!SWIG_IsOK(res1)) {
|
|
6175
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_setn", 1, argv[0] ));
|
|
6176
|
-
}
|
|
6177
|
-
arg1 = (pn_string_t *)(argp1);
|
|
6178
|
-
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
6179
|
-
if (!SWIG_IsOK(res2)) {
|
|
6180
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_string_setn", 2, argv[1] ));
|
|
6181
|
-
}
|
|
6182
|
-
arg2 = (char *)(buf2);
|
|
6183
|
-
ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
|
|
6184
|
-
if (!SWIG_IsOK(ecode3)) {
|
|
6185
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_string_setn", 3, argv[2] ));
|
|
6186
|
-
}
|
|
6187
|
-
arg3 = (size_t)(val3);
|
|
6188
|
-
result = (int)pn_string_setn(arg1,(char const *)arg2,arg3);
|
|
6189
|
-
vresult = SWIG_From_int((int)(result));
|
|
6190
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
6191
|
-
return vresult;
|
|
6192
|
-
fail:
|
|
6193
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
6194
|
-
return Qnil;
|
|
6195
|
-
}
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
SWIGINTERN VALUE
|
|
6199
|
-
_wrap_pn_string_put(int argc, VALUE *argv, VALUE self) {
|
|
6200
|
-
pn_string_t *arg1 = (pn_string_t *) 0 ;
|
|
6201
|
-
char *arg2 = (char *) 0 ;
|
|
6202
|
-
void *argp1 = 0 ;
|
|
6203
|
-
int res1 = 0 ;
|
|
6204
|
-
int res2 ;
|
|
6205
|
-
char *buf2 = 0 ;
|
|
6206
|
-
int alloc2 = 0 ;
|
|
6207
|
-
ssize_t result;
|
|
6208
|
-
VALUE vresult = Qnil;
|
|
6209
|
-
|
|
6210
|
-
if ((argc < 2) || (argc > 2)) {
|
|
6211
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
6212
|
-
}
|
|
6213
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
6214
|
-
if (!SWIG_IsOK(res1)) {
|
|
6215
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_put", 1, argv[0] ));
|
|
6216
|
-
}
|
|
6217
|
-
arg1 = (pn_string_t *)(argp1);
|
|
6218
|
-
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
6219
|
-
if (!SWIG_IsOK(res2)) {
|
|
6220
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","pn_string_put", 2, argv[1] ));
|
|
6221
|
-
}
|
|
6222
|
-
arg2 = (char *)(buf2);
|
|
6223
|
-
result = (ssize_t)pn_string_put(arg1,arg2);
|
|
6224
|
-
vresult = SWIG_From_int((int)(result));
|
|
6225
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
6226
|
-
return vresult;
|
|
6227
|
-
fail:
|
|
6228
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
6229
|
-
return Qnil;
|
|
6230
|
-
}
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
SWIGINTERN VALUE
|
|
6234
|
-
_wrap_pn_string_clear(int argc, VALUE *argv, VALUE self) {
|
|
6235
|
-
pn_string_t *arg1 = (pn_string_t *) 0 ;
|
|
6236
|
-
void *argp1 = 0 ;
|
|
6237
|
-
int res1 = 0 ;
|
|
6238
|
-
|
|
6239
|
-
if ((argc < 1) || (argc > 1)) {
|
|
6240
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
6241
|
-
}
|
|
6242
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
6243
|
-
if (!SWIG_IsOK(res1)) {
|
|
6244
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_clear", 1, argv[0] ));
|
|
6245
|
-
}
|
|
6246
|
-
arg1 = (pn_string_t *)(argp1);
|
|
6247
|
-
pn_string_clear(arg1);
|
|
6248
|
-
return Qnil;
|
|
6249
|
-
fail:
|
|
6250
|
-
return Qnil;
|
|
6251
|
-
}
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
SWIGINTERN VALUE
|
|
6255
|
-
_wrap_pn_string_format(int argc, VALUE *argv, VALUE self) {
|
|
6256
|
-
pn_string_t *arg1 = (pn_string_t *) 0 ;
|
|
6257
|
-
char *arg2 = (char *) 0 ;
|
|
6258
|
-
void *arg3 = 0 ;
|
|
6259
|
-
void *argp1 = 0 ;
|
|
6260
|
-
int res1 = 0 ;
|
|
6261
|
-
int res2 ;
|
|
6262
|
-
char *buf2 = 0 ;
|
|
6263
|
-
int alloc2 = 0 ;
|
|
6264
|
-
int result;
|
|
6265
|
-
VALUE vresult = Qnil;
|
|
6266
|
-
|
|
6267
|
-
if (argc < 2) {
|
|
6268
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
6269
|
-
}
|
|
6270
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
6271
|
-
if (!SWIG_IsOK(res1)) {
|
|
6272
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_format", 1, argv[0] ));
|
|
6273
|
-
}
|
|
6274
|
-
arg1 = (pn_string_t *)(argp1);
|
|
6275
|
-
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
6276
|
-
if (!SWIG_IsOK(res2)) {
|
|
6277
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_string_format", 2, argv[1] ));
|
|
6278
|
-
}
|
|
6279
|
-
arg2 = (char *)(buf2);
|
|
6280
|
-
result = (int)pn_string_format(arg1,(char const *)arg2,arg3);
|
|
6281
|
-
vresult = SWIG_From_int((int)(result));
|
|
6282
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
6283
|
-
return vresult;
|
|
6284
|
-
fail:
|
|
6285
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
6286
|
-
return Qnil;
|
|
6287
|
-
}
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
SWIGINTERN VALUE
|
|
6291
|
-
_wrap_pn_string_addf(int argc, VALUE *argv, VALUE self) {
|
|
6292
|
-
pn_string_t *arg1 = (pn_string_t *) 0 ;
|
|
6293
|
-
char *arg2 = (char *) 0 ;
|
|
6294
|
-
void *arg3 = 0 ;
|
|
6295
|
-
void *argp1 = 0 ;
|
|
6296
|
-
int res1 = 0 ;
|
|
6297
|
-
int res2 ;
|
|
6298
|
-
char *buf2 = 0 ;
|
|
6299
|
-
int alloc2 = 0 ;
|
|
6300
|
-
int result;
|
|
6301
|
-
VALUE vresult = Qnil;
|
|
6302
|
-
|
|
6303
|
-
if (argc < 2) {
|
|
6304
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
6305
|
-
}
|
|
6306
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
6307
|
-
if (!SWIG_IsOK(res1)) {
|
|
6308
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_addf", 1, argv[0] ));
|
|
6309
|
-
}
|
|
6310
|
-
arg1 = (pn_string_t *)(argp1);
|
|
6311
|
-
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
6312
|
-
if (!SWIG_IsOK(res2)) {
|
|
6313
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_string_addf", 2, argv[1] ));
|
|
6314
|
-
}
|
|
6315
|
-
arg2 = (char *)(buf2);
|
|
6316
|
-
result = (int)pn_string_addf(arg1,(char const *)arg2,arg3);
|
|
6317
|
-
vresult = SWIG_From_int((int)(result));
|
|
6318
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
6319
|
-
return vresult;
|
|
6320
|
-
fail:
|
|
6321
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
6322
|
-
return Qnil;
|
|
6323
|
-
}
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
SWIGINTERN VALUE
|
|
6327
|
-
_wrap_pn_string_grow(int argc, VALUE *argv, VALUE self) {
|
|
6328
|
-
pn_string_t *arg1 = (pn_string_t *) 0 ;
|
|
6329
|
-
size_t arg2 ;
|
|
6330
|
-
void *argp1 = 0 ;
|
|
6331
|
-
int res1 = 0 ;
|
|
6332
|
-
size_t val2 ;
|
|
6333
|
-
int ecode2 = 0 ;
|
|
6334
|
-
int result;
|
|
6335
|
-
VALUE vresult = Qnil;
|
|
6336
|
-
|
|
6337
|
-
if ((argc < 2) || (argc > 2)) {
|
|
6338
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
6339
|
-
}
|
|
6340
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
6341
|
-
if (!SWIG_IsOK(res1)) {
|
|
6342
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_grow", 1, argv[0] ));
|
|
6343
|
-
}
|
|
6344
|
-
arg1 = (pn_string_t *)(argp1);
|
|
6345
|
-
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
|
6346
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
6347
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_string_grow", 2, argv[1] ));
|
|
6348
|
-
}
|
|
6349
|
-
arg2 = (size_t)(val2);
|
|
6350
|
-
result = (int)pn_string_grow(arg1,arg2);
|
|
6351
|
-
vresult = SWIG_From_int((int)(result));
|
|
6352
|
-
return vresult;
|
|
6353
|
-
fail:
|
|
6354
|
-
return Qnil;
|
|
6355
|
-
}
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
SWIGINTERN VALUE
|
|
6359
|
-
_wrap_pn_string_buffer(int argc, VALUE *argv, VALUE self) {
|
|
6360
|
-
pn_string_t *arg1 = (pn_string_t *) 0 ;
|
|
6361
|
-
void *argp1 = 0 ;
|
|
6362
|
-
int res1 = 0 ;
|
|
6363
|
-
char *result = 0 ;
|
|
6364
|
-
VALUE vresult = Qnil;
|
|
6365
|
-
|
|
6366
|
-
if ((argc < 1) || (argc > 1)) {
|
|
6367
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
6368
|
-
}
|
|
6369
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
6370
|
-
if (!SWIG_IsOK(res1)) {
|
|
6371
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_buffer", 1, argv[0] ));
|
|
6372
|
-
}
|
|
6373
|
-
arg1 = (pn_string_t *)(argp1);
|
|
6374
|
-
result = (char *)pn_string_buffer(arg1);
|
|
6375
|
-
vresult = SWIG_FromCharPtr((const char *)result);
|
|
6376
|
-
return vresult;
|
|
6377
|
-
fail:
|
|
6378
|
-
return Qnil;
|
|
6379
|
-
}
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
SWIGINTERN VALUE
|
|
6383
|
-
_wrap_pn_string_capacity(int argc, VALUE *argv, VALUE self) {
|
|
6384
|
-
pn_string_t *arg1 = (pn_string_t *) 0 ;
|
|
6385
|
-
void *argp1 = 0 ;
|
|
6386
|
-
int res1 = 0 ;
|
|
6387
|
-
size_t result;
|
|
6388
|
-
VALUE vresult = Qnil;
|
|
6389
|
-
|
|
6390
|
-
if ((argc < 1) || (argc > 1)) {
|
|
6391
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
6392
|
-
}
|
|
6393
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
6394
|
-
if (!SWIG_IsOK(res1)) {
|
|
6395
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_capacity", 1, argv[0] ));
|
|
6396
|
-
}
|
|
6397
|
-
arg1 = (pn_string_t *)(argp1);
|
|
6398
|
-
result = (size_t)pn_string_capacity(arg1);
|
|
6399
|
-
vresult = SWIG_From_size_t((size_t)(result));
|
|
6400
|
-
return vresult;
|
|
6401
|
-
fail:
|
|
6402
|
-
return Qnil;
|
|
6403
|
-
}
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
SWIGINTERN VALUE
|
|
6407
|
-
_wrap_pn_string_resize(int argc, VALUE *argv, VALUE self) {
|
|
6408
|
-
pn_string_t *arg1 = (pn_string_t *) 0 ;
|
|
6409
|
-
size_t arg2 ;
|
|
6410
|
-
void *argp1 = 0 ;
|
|
6411
|
-
int res1 = 0 ;
|
|
6412
|
-
size_t val2 ;
|
|
6413
|
-
int ecode2 = 0 ;
|
|
6414
|
-
int result;
|
|
4364
|
+
void *result = 0 ;
|
|
6415
4365
|
VALUE vresult = Qnil;
|
|
6416
4366
|
|
|
6417
|
-
if ((argc <
|
|
6418
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
|
4367
|
+
if ((argc < 1) || (argc > 1)) {
|
|
4368
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
6419
4369
|
}
|
|
6420
|
-
res1 = SWIG_ConvertPtr(argv[0],
|
|
4370
|
+
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
6421
4371
|
if (!SWIG_IsOK(res1)) {
|
|
6422
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "
|
|
4372
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_incref", 1, argv[0] ));
|
|
6423
4373
|
}
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
if (!SWIG_IsOK(ecode2)) {
|
|
6427
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","pn_string_resize", 2, argv[1] ));
|
|
6428
|
-
}
|
|
6429
|
-
arg2 = (size_t)(val2);
|
|
6430
|
-
result = (int)pn_string_resize(arg1,arg2);
|
|
6431
|
-
vresult = SWIG_From_int((int)(result));
|
|
4374
|
+
result = (void *)pn_incref(arg1);
|
|
4375
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
6432
4376
|
return vresult;
|
|
6433
4377
|
fail:
|
|
6434
4378
|
return Qnil;
|
|
@@ -6436,30 +4380,20 @@ fail:
|
|
|
6436
4380
|
|
|
6437
4381
|
|
|
6438
4382
|
SWIGINTERN VALUE
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
void *argp1 = 0 ;
|
|
6443
|
-
int res1 = 0 ;
|
|
6444
|
-
void *argp2 = 0 ;
|
|
6445
|
-
int res2 = 0 ;
|
|
4383
|
+
_wrap_pn_decref(int argc, VALUE *argv, VALUE self) {
|
|
4384
|
+
void *arg1 = (void *) 0 ;
|
|
4385
|
+
int res1 ;
|
|
6446
4386
|
int result;
|
|
6447
4387
|
VALUE vresult = Qnil;
|
|
6448
4388
|
|
|
6449
|
-
if ((argc <
|
|
6450
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
|
4389
|
+
if ((argc < 1) || (argc > 1)) {
|
|
4390
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
6451
4391
|
}
|
|
6452
|
-
res1 = SWIG_ConvertPtr(argv[0],
|
|
4392
|
+
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
6453
4393
|
if (!SWIG_IsOK(res1)) {
|
|
6454
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "
|
|
6455
|
-
}
|
|
6456
|
-
arg1 = (pn_string_t *)(argp1);
|
|
6457
|
-
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_string_t, 0 | 0 );
|
|
6458
|
-
if (!SWIG_IsOK(res2)) {
|
|
6459
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_string_t *","pn_string_copy", 2, argv[1] ));
|
|
4394
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_decref", 1, argv[0] ));
|
|
6460
4395
|
}
|
|
6461
|
-
|
|
6462
|
-
result = (int)pn_string_copy(arg1,arg2);
|
|
4396
|
+
result = (int)pn_decref(arg1);
|
|
6463
4397
|
vresult = SWIG_From_int((int)(result));
|
|
6464
4398
|
return vresult;
|
|
6465
4399
|
fail:
|
|
@@ -6468,15 +4402,21 @@ fail:
|
|
|
6468
4402
|
|
|
6469
4403
|
|
|
6470
4404
|
SWIGINTERN VALUE
|
|
6471
|
-
|
|
6472
|
-
|
|
4405
|
+
_wrap_pn_refcount(int argc, VALUE *argv, VALUE self) {
|
|
4406
|
+
void *arg1 = (void *) 0 ;
|
|
4407
|
+
int res1 ;
|
|
4408
|
+
int result;
|
|
6473
4409
|
VALUE vresult = Qnil;
|
|
6474
4410
|
|
|
6475
|
-
if ((argc <
|
|
6476
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
|
4411
|
+
if ((argc < 1) || (argc > 1)) {
|
|
4412
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4413
|
+
}
|
|
4414
|
+
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
4415
|
+
if (!SWIG_IsOK(res1)) {
|
|
4416
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_refcount", 1, argv[0] ));
|
|
6477
4417
|
}
|
|
6478
|
-
result = (
|
|
6479
|
-
vresult =
|
|
4418
|
+
result = (int)pn_refcount(arg1);
|
|
4419
|
+
vresult = SWIG_From_int((int)(result));
|
|
6480
4420
|
return vresult;
|
|
6481
4421
|
fail:
|
|
6482
4422
|
return Qnil;
|
|
@@ -6484,68 +4424,64 @@ fail:
|
|
|
6484
4424
|
|
|
6485
4425
|
|
|
6486
4426
|
SWIGINTERN VALUE
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
size_t arg3 ;
|
|
6491
|
-
void *argp1 = 0 ;
|
|
6492
|
-
int res1 = 0 ;
|
|
6493
|
-
size_t val3 ;
|
|
6494
|
-
int ecode3 = 0 ;
|
|
6495
|
-
void *result = 0 ;
|
|
6496
|
-
VALUE vresult = Qnil;
|
|
4427
|
+
_wrap_pn_free(int argc, VALUE *argv, VALUE self) {
|
|
4428
|
+
void *arg1 = (void *) 0 ;
|
|
4429
|
+
int res1 ;
|
|
6497
4430
|
|
|
6498
|
-
if ((argc <
|
|
6499
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
|
4431
|
+
if ((argc < 1) || (argc > 1)) {
|
|
4432
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
6500
4433
|
}
|
|
6501
|
-
res1 = SWIG_ConvertPtr(argv[0],
|
|
4434
|
+
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
6502
4435
|
if (!SWIG_IsOK(res1)) {
|
|
6503
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "
|
|
6504
|
-
}
|
|
6505
|
-
arg1 = (pn_iterator_t *)(argp1);
|
|
6506
|
-
{
|
|
6507
|
-
int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_void__p_void);
|
|
6508
|
-
if (!SWIG_IsOK(res)) {
|
|
6509
|
-
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "pn_iterator_next_t","pn_iterator_start", 2, argv[1] ));
|
|
6510
|
-
}
|
|
4436
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_free", 1, argv[0] ));
|
|
6511
4437
|
}
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","pn_iterator_start", 3, argv[2] ));
|
|
6515
|
-
}
|
|
6516
|
-
arg3 = (size_t)(val3);
|
|
6517
|
-
result = (void *)pn_iterator_start(arg1,arg2,arg3);
|
|
6518
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
6519
|
-
return vresult;
|
|
4438
|
+
pn_free(arg1);
|
|
4439
|
+
return Qnil;
|
|
6520
4440
|
fail:
|
|
6521
4441
|
return Qnil;
|
|
6522
4442
|
}
|
|
6523
4443
|
|
|
6524
4444
|
|
|
6525
4445
|
SWIGINTERN VALUE
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
void *result = 0 ;
|
|
4446
|
+
_wrap_pn_tostring(int argc, VALUE *argv, VALUE self) {
|
|
4447
|
+
void *arg1 = (void *) 0 ;
|
|
4448
|
+
int res1 ;
|
|
4449
|
+
char *result = 0 ;
|
|
6531
4450
|
VALUE vresult = Qnil;
|
|
6532
4451
|
|
|
6533
4452
|
if ((argc < 1) || (argc > 1)) {
|
|
6534
4453
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
6535
4454
|
}
|
|
6536
|
-
res1 = SWIG_ConvertPtr(argv[0],
|
|
4455
|
+
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
6537
4456
|
if (!SWIG_IsOK(res1)) {
|
|
6538
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "
|
|
4457
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_tostring", 1, argv[0] ));
|
|
6539
4458
|
}
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
4459
|
+
result = (char *)pn_tostring(arg1);
|
|
4460
|
+
vresult = SWIG_FromCharPtr((const char *)result);
|
|
6543
4461
|
return vresult;
|
|
6544
4462
|
fail:
|
|
6545
4463
|
return Qnil;
|
|
6546
4464
|
}
|
|
6547
4465
|
|
|
6548
4466
|
|
|
4467
|
+
SWIGINTERN VALUE
|
|
4468
|
+
_wrap_PN_OBJECT_get(VALUE self) {
|
|
4469
|
+
VALUE _val;
|
|
4470
|
+
|
|
4471
|
+
_val = SWIG_NewPointerObj(SWIG_as_voidptr(PN_OBJECT), SWIGTYPE_p_pn_class_t, 0 );
|
|
4472
|
+
return _val;
|
|
4473
|
+
}
|
|
4474
|
+
|
|
4475
|
+
|
|
4476
|
+
SWIGINTERN VALUE
|
|
4477
|
+
_wrap_PN_VOID_get(VALUE self) {
|
|
4478
|
+
VALUE _val;
|
|
4479
|
+
|
|
4480
|
+
_val = SWIG_NewPointerObj(SWIG_as_voidptr(PN_VOID), SWIGTYPE_p_pn_class_t, 0 );
|
|
4481
|
+
return _val;
|
|
4482
|
+
}
|
|
4483
|
+
|
|
4484
|
+
|
|
6549
4485
|
SWIGINTERN VALUE
|
|
6550
4486
|
_wrap_pn_record(int argc, VALUE *argv, VALUE self) {
|
|
6551
4487
|
pn_record_t *result = 0 ;
|
|
@@ -6569,7 +4505,7 @@ _wrap_pn_record_def(int argc, VALUE *argv, VALUE self) {
|
|
|
6569
4505
|
pn_class_t *arg3 = (pn_class_t *) 0 ;
|
|
6570
4506
|
void *argp1 = 0 ;
|
|
6571
4507
|
int res1 = 0 ;
|
|
6572
|
-
|
|
4508
|
+
long val2 ;
|
|
6573
4509
|
int ecode2 = 0 ;
|
|
6574
4510
|
void *argp3 = 0 ;
|
|
6575
4511
|
int res3 = 0 ;
|
|
@@ -6582,7 +4518,7 @@ _wrap_pn_record_def(int argc, VALUE *argv, VALUE self) {
|
|
|
6582
4518
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_def", 1, argv[0] ));
|
|
6583
4519
|
}
|
|
6584
4520
|
arg1 = (pn_record_t *)(argp1);
|
|
6585
|
-
ecode2 =
|
|
4521
|
+
ecode2 = SWIG_AsVal_long(argv[1], &val2);
|
|
6586
4522
|
if (!SWIG_IsOK(ecode2)) {
|
|
6587
4523
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_record_def", 2, argv[1] ));
|
|
6588
4524
|
}
|
|
@@ -6605,7 +4541,7 @@ _wrap_pn_record_has(int argc, VALUE *argv, VALUE self) {
|
|
|
6605
4541
|
pn_handle_t arg2 = (pn_handle_t) 0 ;
|
|
6606
4542
|
void *argp1 = 0 ;
|
|
6607
4543
|
int res1 = 0 ;
|
|
6608
|
-
|
|
4544
|
+
long val2 ;
|
|
6609
4545
|
int ecode2 = 0 ;
|
|
6610
4546
|
bool result;
|
|
6611
4547
|
VALUE vresult = Qnil;
|
|
@@ -6618,7 +4554,7 @@ _wrap_pn_record_has(int argc, VALUE *argv, VALUE self) {
|
|
|
6618
4554
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_has", 1, argv[0] ));
|
|
6619
4555
|
}
|
|
6620
4556
|
arg1 = (pn_record_t *)(argp1);
|
|
6621
|
-
ecode2 =
|
|
4557
|
+
ecode2 = SWIG_AsVal_long(argv[1], &val2);
|
|
6622
4558
|
if (!SWIG_IsOK(ecode2)) {
|
|
6623
4559
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_record_has", 2, argv[1] ));
|
|
6624
4560
|
}
|
|
@@ -6637,7 +4573,7 @@ _wrap_pn_record_get(int argc, VALUE *argv, VALUE self) {
|
|
|
6637
4573
|
pn_handle_t arg2 = (pn_handle_t) 0 ;
|
|
6638
4574
|
void *argp1 = 0 ;
|
|
6639
4575
|
int res1 = 0 ;
|
|
6640
|
-
|
|
4576
|
+
long val2 ;
|
|
6641
4577
|
int ecode2 = 0 ;
|
|
6642
4578
|
void *result = 0 ;
|
|
6643
4579
|
VALUE vresult = Qnil;
|
|
@@ -6650,7 +4586,7 @@ _wrap_pn_record_get(int argc, VALUE *argv, VALUE self) {
|
|
|
6650
4586
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_get", 1, argv[0] ));
|
|
6651
4587
|
}
|
|
6652
4588
|
arg1 = (pn_record_t *)(argp1);
|
|
6653
|
-
ecode2 =
|
|
4589
|
+
ecode2 = SWIG_AsVal_long(argv[1], &val2);
|
|
6654
4590
|
if (!SWIG_IsOK(ecode2)) {
|
|
6655
4591
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_record_get", 2, argv[1] ));
|
|
6656
4592
|
}
|
|
@@ -6670,7 +4606,7 @@ _wrap_pn_record_set(int argc, VALUE *argv, VALUE self) {
|
|
|
6670
4606
|
void *arg3 = (void *) 0 ;
|
|
6671
4607
|
void *argp1 = 0 ;
|
|
6672
4608
|
int res1 = 0 ;
|
|
6673
|
-
|
|
4609
|
+
long val2 ;
|
|
6674
4610
|
int ecode2 = 0 ;
|
|
6675
4611
|
int res3 ;
|
|
6676
4612
|
|
|
@@ -6682,7 +4618,7 @@ _wrap_pn_record_set(int argc, VALUE *argv, VALUE self) {
|
|
|
6682
4618
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_set", 1, argv[0] ));
|
|
6683
4619
|
}
|
|
6684
4620
|
arg1 = (pn_record_t *)(argp1);
|
|
6685
|
-
ecode2 =
|
|
4621
|
+
ecode2 = SWIG_AsVal_long(argv[1], &val2);
|
|
6686
4622
|
if (!SWIG_IsOK(ecode2)) {
|
|
6687
4623
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_record_set", 2, argv[1] ));
|
|
6688
4624
|
}
|
|
@@ -8511,6 +6447,118 @@ fail:
|
|
|
8511
6447
|
}
|
|
8512
6448
|
|
|
8513
6449
|
|
|
6450
|
+
SWIGINTERN VALUE
|
|
6451
|
+
_wrap_pn_session_incoming_window(int argc, VALUE *argv, VALUE self) {
|
|
6452
|
+
pn_session_t *arg1 = (pn_session_t *) 0 ;
|
|
6453
|
+
void *argp1 = 0 ;
|
|
6454
|
+
int res1 = 0 ;
|
|
6455
|
+
pn_frame_count_t result;
|
|
6456
|
+
VALUE vresult = Qnil;
|
|
6457
|
+
|
|
6458
|
+
if ((argc < 1) || (argc > 1)) {
|
|
6459
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
6460
|
+
}
|
|
6461
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
|
|
6462
|
+
if (!SWIG_IsOK(res1)) {
|
|
6463
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_incoming_window", 1, argv[0] ));
|
|
6464
|
+
}
|
|
6465
|
+
arg1 = (pn_session_t *)(argp1);
|
|
6466
|
+
result = (pn_frame_count_t)pn_session_incoming_window(arg1);
|
|
6467
|
+
vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
|
|
6468
|
+
return vresult;
|
|
6469
|
+
fail:
|
|
6470
|
+
return Qnil;
|
|
6471
|
+
}
|
|
6472
|
+
|
|
6473
|
+
|
|
6474
|
+
SWIGINTERN VALUE
|
|
6475
|
+
_wrap_pn_session_incoming_window_lwm(int argc, VALUE *argv, VALUE self) {
|
|
6476
|
+
pn_session_t *arg1 = (pn_session_t *) 0 ;
|
|
6477
|
+
void *argp1 = 0 ;
|
|
6478
|
+
int res1 = 0 ;
|
|
6479
|
+
pn_frame_count_t result;
|
|
6480
|
+
VALUE vresult = Qnil;
|
|
6481
|
+
|
|
6482
|
+
if ((argc < 1) || (argc > 1)) {
|
|
6483
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
6484
|
+
}
|
|
6485
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
|
|
6486
|
+
if (!SWIG_IsOK(res1)) {
|
|
6487
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_incoming_window_lwm", 1, argv[0] ));
|
|
6488
|
+
}
|
|
6489
|
+
arg1 = (pn_session_t *)(argp1);
|
|
6490
|
+
result = (pn_frame_count_t)pn_session_incoming_window_lwm(arg1);
|
|
6491
|
+
vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
|
|
6492
|
+
return vresult;
|
|
6493
|
+
fail:
|
|
6494
|
+
return Qnil;
|
|
6495
|
+
}
|
|
6496
|
+
|
|
6497
|
+
|
|
6498
|
+
SWIGINTERN VALUE
|
|
6499
|
+
_wrap_pn_session_set_incoming_window_and_lwm(int argc, VALUE *argv, VALUE self) {
|
|
6500
|
+
pn_session_t *arg1 = (pn_session_t *) 0 ;
|
|
6501
|
+
pn_frame_count_t arg2 ;
|
|
6502
|
+
pn_frame_count_t arg3 ;
|
|
6503
|
+
void *argp1 = 0 ;
|
|
6504
|
+
int res1 = 0 ;
|
|
6505
|
+
unsigned long val2 ;
|
|
6506
|
+
int ecode2 = 0 ;
|
|
6507
|
+
unsigned long val3 ;
|
|
6508
|
+
int ecode3 = 0 ;
|
|
6509
|
+
int result;
|
|
6510
|
+
VALUE vresult = Qnil;
|
|
6511
|
+
|
|
6512
|
+
if ((argc < 3) || (argc > 3)) {
|
|
6513
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
6514
|
+
}
|
|
6515
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
|
|
6516
|
+
if (!SWIG_IsOK(res1)) {
|
|
6517
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_set_incoming_window_and_lwm", 1, argv[0] ));
|
|
6518
|
+
}
|
|
6519
|
+
arg1 = (pn_session_t *)(argp1);
|
|
6520
|
+
ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
|
|
6521
|
+
if (!SWIG_IsOK(ecode2)) {
|
|
6522
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_frame_count_t","pn_session_set_incoming_window_and_lwm", 2, argv[1] ));
|
|
6523
|
+
}
|
|
6524
|
+
arg2 = (pn_frame_count_t)(val2);
|
|
6525
|
+
ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
|
|
6526
|
+
if (!SWIG_IsOK(ecode3)) {
|
|
6527
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "pn_frame_count_t","pn_session_set_incoming_window_and_lwm", 3, argv[2] ));
|
|
6528
|
+
}
|
|
6529
|
+
arg3 = (pn_frame_count_t)(val3);
|
|
6530
|
+
result = (int)pn_session_set_incoming_window_and_lwm(arg1,arg2,arg3);
|
|
6531
|
+
vresult = SWIG_From_int((int)(result));
|
|
6532
|
+
return vresult;
|
|
6533
|
+
fail:
|
|
6534
|
+
return Qnil;
|
|
6535
|
+
}
|
|
6536
|
+
|
|
6537
|
+
|
|
6538
|
+
SWIGINTERN VALUE
|
|
6539
|
+
_wrap_pn_session_remote_incoming_window(int argc, VALUE *argv, VALUE self) {
|
|
6540
|
+
pn_session_t *arg1 = (pn_session_t *) 0 ;
|
|
6541
|
+
void *argp1 = 0 ;
|
|
6542
|
+
int res1 = 0 ;
|
|
6543
|
+
pn_frame_count_t result;
|
|
6544
|
+
VALUE vresult = Qnil;
|
|
6545
|
+
|
|
6546
|
+
if ((argc < 1) || (argc > 1)) {
|
|
6547
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
6548
|
+
}
|
|
6549
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_session_t, 0 | 0 );
|
|
6550
|
+
if (!SWIG_IsOK(res1)) {
|
|
6551
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_session_t *","pn_session_remote_incoming_window", 1, argv[0] ));
|
|
6552
|
+
}
|
|
6553
|
+
arg1 = (pn_session_t *)(argp1);
|
|
6554
|
+
result = (pn_frame_count_t)pn_session_remote_incoming_window(arg1);
|
|
6555
|
+
vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
|
|
6556
|
+
return vresult;
|
|
6557
|
+
fail:
|
|
6558
|
+
return Qnil;
|
|
6559
|
+
}
|
|
6560
|
+
|
|
6561
|
+
|
|
8514
6562
|
SWIGINTERN VALUE
|
|
8515
6563
|
_wrap_pn_session_get_outgoing_window(int argc, VALUE *argv, VALUE self) {
|
|
8516
6564
|
pn_session_t *arg1 = (pn_session_t *) 0 ;
|
|
@@ -12888,6 +10936,44 @@ fail:
|
|
|
12888
10936
|
}
|
|
12889
10937
|
|
|
12890
10938
|
|
|
10939
|
+
SWIGINTERN VALUE
|
|
10940
|
+
_wrap_pn_collector_put_object(int argc, VALUE *argv, VALUE self) {
|
|
10941
|
+
pn_collector_t *arg1 = (pn_collector_t *) 0 ;
|
|
10942
|
+
void *arg2 = (void *) 0 ;
|
|
10943
|
+
pn_event_type_t arg3 ;
|
|
10944
|
+
void *argp1 = 0 ;
|
|
10945
|
+
int res1 = 0 ;
|
|
10946
|
+
int res2 ;
|
|
10947
|
+
int val3 ;
|
|
10948
|
+
int ecode3 = 0 ;
|
|
10949
|
+
pn_event_t *result = 0 ;
|
|
10950
|
+
VALUE vresult = Qnil;
|
|
10951
|
+
|
|
10952
|
+
if ((argc < 3) || (argc > 3)) {
|
|
10953
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
10954
|
+
}
|
|
10955
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_collector_t, 0 | 0 );
|
|
10956
|
+
if (!SWIG_IsOK(res1)) {
|
|
10957
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_collector_t *","pn_collector_put_object", 1, argv[0] ));
|
|
10958
|
+
}
|
|
10959
|
+
arg1 = (pn_collector_t *)(argp1);
|
|
10960
|
+
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
10961
|
+
if (!SWIG_IsOK(res2)) {
|
|
10962
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_collector_put_object", 2, argv[1] ));
|
|
10963
|
+
}
|
|
10964
|
+
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
|
10965
|
+
if (!SWIG_IsOK(ecode3)) {
|
|
10966
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "pn_event_type_t","pn_collector_put_object", 3, argv[2] ));
|
|
10967
|
+
}
|
|
10968
|
+
arg3 = (pn_event_type_t)(val3);
|
|
10969
|
+
result = (pn_event_t *)pn_collector_put_object(arg1,arg2,arg3);
|
|
10970
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_event_t, 0 | 0 );
|
|
10971
|
+
return vresult;
|
|
10972
|
+
fail:
|
|
10973
|
+
return Qnil;
|
|
10974
|
+
}
|
|
10975
|
+
|
|
10976
|
+
|
|
12891
10977
|
SWIGINTERN VALUE
|
|
12892
10978
|
_wrap_pn_collector_peek(int argc, VALUE *argv, VALUE self) {
|
|
12893
10979
|
pn_collector_t *arg1 = (pn_collector_t *) 0 ;
|
|
@@ -18147,7 +16233,7 @@ _wrap_pn_data_point(int argc, VALUE *argv, VALUE self) {
|
|
|
18147
16233
|
}
|
|
18148
16234
|
arg1 = (pn_data_t *)(argp1);
|
|
18149
16235
|
result = (pn_handle_t)pn_data_point(arg1);
|
|
18150
|
-
vresult =
|
|
16236
|
+
vresult = SWIG_From_long((long)(result));
|
|
18151
16237
|
return vresult;
|
|
18152
16238
|
fail:
|
|
18153
16239
|
return Qnil;
|
|
@@ -18160,7 +16246,7 @@ _wrap_pn_data_restore(int argc, VALUE *argv, VALUE self) {
|
|
|
18160
16246
|
pn_handle_t arg2 = (pn_handle_t) 0 ;
|
|
18161
16247
|
void *argp1 = 0 ;
|
|
18162
16248
|
int res1 = 0 ;
|
|
18163
|
-
|
|
16249
|
+
long val2 ;
|
|
18164
16250
|
int ecode2 = 0 ;
|
|
18165
16251
|
bool result;
|
|
18166
16252
|
VALUE vresult = Qnil;
|
|
@@ -18173,7 +16259,7 @@ _wrap_pn_data_restore(int argc, VALUE *argv, VALUE self) {
|
|
|
18173
16259
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_restore", 1, argv[0] ));
|
|
18174
16260
|
}
|
|
18175
16261
|
arg1 = (pn_data_t *)(argp1);
|
|
18176
|
-
ecode2 =
|
|
16262
|
+
ecode2 = SWIG_AsVal_long(argv[1], &val2);
|
|
18177
16263
|
if (!SWIG_IsOK(ecode2)) {
|
|
18178
16264
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_data_restore", 2, argv[1] ));
|
|
18179
16265
|
}
|
|
@@ -19305,72 +17391,67 @@ fail:
|
|
|
19305
17391
|
static swig_type_info _swigt__p_Pn_rbkey_t = {"_p_Pn_rbkey_t", "Pn_rbkey_t *", 0, 0, (void*)0, 0};
|
|
19306
17392
|
static swig_type_info _swigt__p_Pni_rbhandler_t = {"_p_Pni_rbhandler_t", "Pni_rbhandler_t *", 0, 0, (void*)0, 0};
|
|
19307
17393
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
|
19308
|
-
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 *)
|
|
19309
|
-
static swig_type_info
|
|
19310
|
-
static swig_type_info
|
|
19311
|
-
static swig_type_info
|
|
19312
|
-
static swig_type_info _swigt__p_long = {"_p_long", "int32_t *|long *", 0, 0, (void*)0, 0};
|
|
19313
|
-
static swig_type_info _swigt__p_long_long = {"_p_long_long", "int64_t *|long long
|
|
17394
|
+
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", "pn_tracer_t|void (*)(struct pn_transport_t *,char const *)", 0, 0, (void*)0, 0};
|
|
17395
|
+
static swig_type_info _swigt__p_f_p_void__int = {"_p_f_p_void__int", "int (*)(void *)", 0, 0, (void*)0, 0};
|
|
17396
|
+
static swig_type_info _swigt__p_f_p_void__void = {"_p_f_p_void__void", "void (*)(void *)", 0, 0, (void*)0, 0};
|
|
17397
|
+
static swig_type_info _swigt__p_int = {"_p_int", "pn_state_t *|pn_trace_t *|ssize_t *|int *", 0, 0, (void*)0, 0};
|
|
17398
|
+
static swig_type_info _swigt__p_long = {"_p_long", "int32_t *|intptr_t *|long *", 0, 0, (void*)0, 0};
|
|
17399
|
+
static swig_type_info _swigt__p_long_long = {"_p_long_long", "int64_t *|pn_timestamp_t *|long long *", 0, 0, (void*)0, 0};
|
|
19314
17400
|
static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
|
|
19315
|
-
static swig_type_info _swigt__p_p_pn_connection_driver_t = {"_p_p_pn_connection_driver_t", "
|
|
19316
|
-
static swig_type_info _swigt__p_pn_atom_t = {"_p_pn_atom_t", "
|
|
19317
|
-
static swig_type_info _swigt__p_pn_bytes_t = {"_p_pn_bytes_t", "
|
|
19318
|
-
static swig_type_info _swigt__p_pn_cid_t = {"_p_pn_cid_t", "
|
|
19319
|
-
static swig_type_info _swigt__p_pn_class_t = {"_p_pn_class_t", "
|
|
19320
|
-
static swig_type_info _swigt__p_pn_collector_t = {"_p_pn_collector_t", "
|
|
19321
|
-
static swig_type_info _swigt__p_pn_condition_t = {"_p_pn_condition_t", "
|
|
19322
|
-
static swig_type_info _swigt__p_pn_connection_driver_t = {"_p_pn_connection_driver_t", "
|
|
19323
|
-
static swig_type_info _swigt__p_pn_connection_t = {"_p_pn_connection_t", "
|
|
19324
|
-
static swig_type_info _swigt__p_pn_data_t = {"_p_pn_data_t", "
|
|
17401
|
+
static swig_type_info _swigt__p_p_pn_connection_driver_t = {"_p_p_pn_connection_driver_t", "pn_connection_driver_t **|struct pn_connection_driver_t **", 0, 0, (void*)0, 0};
|
|
17402
|
+
static swig_type_info _swigt__p_pn_atom_t = {"_p_pn_atom_t", "pn_msgid_t *|pn_atom_t *", 0, 0, (void*)0, 0};
|
|
17403
|
+
static swig_type_info _swigt__p_pn_bytes_t = {"_p_pn_bytes_t", "pn_bytes_t *|struct pn_bytes_t *", 0, 0, (void*)0, 0};
|
|
17404
|
+
static swig_type_info _swigt__p_pn_cid_t = {"_p_pn_cid_t", "pn_cid_t *|enum pn_cid_t *", 0, 0, (void*)0, 0};
|
|
17405
|
+
static swig_type_info _swigt__p_pn_class_t = {"_p_pn_class_t", "pn_class_t *|struct pn_class_t *", 0, 0, (void*)0, 0};
|
|
17406
|
+
static swig_type_info _swigt__p_pn_collector_t = {"_p_pn_collector_t", "pn_collector_t *|struct pn_collector_t *", 0, 0, (void*)0, 0};
|
|
17407
|
+
static swig_type_info _swigt__p_pn_condition_t = {"_p_pn_condition_t", "pn_condition_t *|struct pn_condition_t *", 0, 0, (void*)0, 0};
|
|
17408
|
+
static swig_type_info _swigt__p_pn_connection_driver_t = {"_p_pn_connection_driver_t", "pn_connection_driver_t *|struct pn_connection_driver_t *", 0, 0, (void*)0, 0};
|
|
17409
|
+
static swig_type_info _swigt__p_pn_connection_t = {"_p_pn_connection_t", "pn_connection_t *|struct pn_connection_t *", 0, 0, (void*)0, 0};
|
|
17410
|
+
static swig_type_info _swigt__p_pn_data_t = {"_p_pn_data_t", "pn_data_t *|struct pn_data_t *", 0, 0, (void*)0, 0};
|
|
19325
17411
|
static swig_type_info _swigt__p_pn_decimal128_t = {"_p_pn_decimal128_t", "pn_decimal128_t *", 0, 0, (void*)0, 0};
|
|
19326
|
-
static swig_type_info _swigt__p_pn_delivery_t = {"_p_pn_delivery_t", "
|
|
19327
|
-
static swig_type_info _swigt__p_pn_disposition_t = {"_p_pn_disposition_t", "
|
|
19328
|
-
static swig_type_info _swigt__p_pn_distribution_mode_t = {"_p_pn_distribution_mode_t", "
|
|
19329
|
-
static swig_type_info _swigt__p_pn_durability_t = {"_p_pn_durability_t", "
|
|
19330
|
-
static swig_type_info _swigt__p_pn_error_t = {"_p_pn_error_t", "
|
|
19331
|
-
static swig_type_info _swigt__p_pn_event_t = {"_p_pn_event_t", "
|
|
19332
|
-
static swig_type_info _swigt__p_pn_event_type_t = {"_p_pn_event_type_t", "
|
|
19333
|
-
static swig_type_info _swigt__p_pn_expiry_policy_t = {"_p_pn_expiry_policy_t", "
|
|
19334
|
-
static swig_type_info _swigt__p_pn_handler_t = {"_p_pn_handler_t", "
|
|
19335
|
-
static swig_type_info
|
|
19336
|
-
static swig_type_info
|
|
19337
|
-
static swig_type_info _swigt__p_pn_link_t = {"_p_pn_link_t", "struct pn_link_t *|pn_link_t *", 0, 0, (void*)0, 0};
|
|
19338
|
-
static swig_type_info _swigt__p_pn_list_t = {"_p_pn_list_t", "struct pn_list_t *|pn_list_t *", 0, 0, (void*)0, 0};
|
|
19339
|
-
static swig_type_info _swigt__p_pn_listener_t = {"_p_pn_listener_t", "struct pn_listener_t *|pn_listener_t *", 0, 0, (void*)0, 0};
|
|
17412
|
+
static swig_type_info _swigt__p_pn_delivery_t = {"_p_pn_delivery_t", "pn_delivery_t *|struct pn_delivery_t *", 0, 0, (void*)0, 0};
|
|
17413
|
+
static swig_type_info _swigt__p_pn_disposition_t = {"_p_pn_disposition_t", "pn_disposition_t *|struct pn_disposition_t *", 0, 0, (void*)0, 0};
|
|
17414
|
+
static swig_type_info _swigt__p_pn_distribution_mode_t = {"_p_pn_distribution_mode_t", "pn_distribution_mode_t *|enum pn_distribution_mode_t *", 0, 0, (void*)0, 0};
|
|
17415
|
+
static swig_type_info _swigt__p_pn_durability_t = {"_p_pn_durability_t", "pn_durability_t *|enum pn_durability_t *", 0, 0, (void*)0, 0};
|
|
17416
|
+
static swig_type_info _swigt__p_pn_error_t = {"_p_pn_error_t", "pn_error_t *|struct pn_error_t *", 0, 0, (void*)0, 0};
|
|
17417
|
+
static swig_type_info _swigt__p_pn_event_t = {"_p_pn_event_t", "pn_event_t *|struct pn_event_t *", 0, 0, (void*)0, 0};
|
|
17418
|
+
static swig_type_info _swigt__p_pn_event_type_t = {"_p_pn_event_type_t", "pn_event_type_t *|enum pn_event_type_t *", 0, 0, (void*)0, 0};
|
|
17419
|
+
static swig_type_info _swigt__p_pn_expiry_policy_t = {"_p_pn_expiry_policy_t", "pn_expiry_policy_t *|enum pn_expiry_policy_t *", 0, 0, (void*)0, 0};
|
|
17420
|
+
static swig_type_info _swigt__p_pn_handler_t = {"_p_pn_handler_t", "pn_handler_t *|struct pn_handler_t *", 0, 0, (void*)0, 0};
|
|
17421
|
+
static swig_type_info _swigt__p_pn_link_t = {"_p_pn_link_t", "pn_link_t *|struct pn_link_t *", 0, 0, (void*)0, 0};
|
|
17422
|
+
static swig_type_info _swigt__p_pn_listener_t = {"_p_pn_listener_t", "pn_listener_t *|struct pn_listener_t *", 0, 0, (void*)0, 0};
|
|
19340
17423
|
static swig_type_info _swigt__p_pn_logger_t = {"_p_pn_logger_t", "pn_logger_t *", 0, 0, (void*)0, 0};
|
|
19341
|
-
static swig_type_info
|
|
19342
|
-
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};
|
|
17424
|
+
static swig_type_info _swigt__p_pn_message_t = {"_p_pn_message_t", "pn_message_t *|struct pn_message_t *", 0, 0, (void*)0, 0};
|
|
19343
17425
|
static swig_type_info _swigt__p_pn_messenger_t = {"_p_pn_messenger_t", "pn_messenger_t *", 0, 0, (void*)0, 0};
|
|
19344
|
-
static swig_type_info _swigt__p_pn_proactor_t = {"_p_pn_proactor_t", "
|
|
19345
|
-
static swig_type_info _swigt__p_pn_raw_connection_t = {"_p_pn_raw_connection_t", "
|
|
19346
|
-
static swig_type_info _swigt__p_pn_rcv_settle_mode_t = {"_p_pn_rcv_settle_mode_t", "
|
|
19347
|
-
static swig_type_info _swigt__p_pn_record_t = {"_p_pn_record_t", "
|
|
19348
|
-
static swig_type_info _swigt__p_pn_rwbytes_t = {"_p_pn_rwbytes_t", "
|
|
19349
|
-
static swig_type_info _swigt__p_pn_sasl_outcome_t = {"_p_pn_sasl_outcome_t", "
|
|
19350
|
-
static swig_type_info _swigt__p_pn_sasl_t = {"_p_pn_sasl_t", "
|
|
19351
|
-
static swig_type_info _swigt__p_pn_session_t = {"_p_pn_session_t", "
|
|
19352
|
-
static swig_type_info _swigt__p_pn_snd_settle_mode_t = {"_p_pn_snd_settle_mode_t", "
|
|
19353
|
-
static swig_type_info _swigt__p_pn_ssl_cert_subject_subfield = {"_p_pn_ssl_cert_subject_subfield", "
|
|
19354
|
-
static swig_type_info _swigt__p_pn_ssl_domain_t = {"_p_pn_ssl_domain_t", "
|
|
19355
|
-
static swig_type_info _swigt__p_pn_ssl_hash_alg = {"_p_pn_ssl_hash_alg", "
|
|
19356
|
-
static swig_type_info _swigt__p_pn_ssl_mode_t = {"_p_pn_ssl_mode_t", "
|
|
19357
|
-
static swig_type_info _swigt__p_pn_ssl_resume_status_t = {"_p_pn_ssl_resume_status_t", "
|
|
19358
|
-
static swig_type_info _swigt__p_pn_ssl_t = {"_p_pn_ssl_t", "
|
|
19359
|
-
static swig_type_info _swigt__p_pn_ssl_verify_mode_t = {"_p_pn_ssl_verify_mode_t", "
|
|
19360
|
-
static swig_type_info
|
|
19361
|
-
static swig_type_info
|
|
19362
|
-
static swig_type_info
|
|
19363
|
-
static swig_type_info
|
|
19364
|
-
static swig_type_info
|
|
19365
|
-
static swig_type_info _swigt__p_pn_url_t = {"_p_pn_url_t", "struct pn_url_t *|pn_url_t *", 0, 0, (void*)0, 0};
|
|
17426
|
+
static swig_type_info _swigt__p_pn_proactor_t = {"_p_pn_proactor_t", "pn_proactor_t *|struct pn_proactor_t *", 0, 0, (void*)0, 0};
|
|
17427
|
+
static swig_type_info _swigt__p_pn_raw_connection_t = {"_p_pn_raw_connection_t", "pn_raw_connection_t *|struct pn_raw_connection_t *", 0, 0, (void*)0, 0};
|
|
17428
|
+
static swig_type_info _swigt__p_pn_rcv_settle_mode_t = {"_p_pn_rcv_settle_mode_t", "pn_rcv_settle_mode_t *|enum pn_rcv_settle_mode_t *", 0, 0, (void*)0, 0};
|
|
17429
|
+
static swig_type_info _swigt__p_pn_record_t = {"_p_pn_record_t", "pn_record_t *|struct pn_record_t *", 0, 0, (void*)0, 0};
|
|
17430
|
+
static swig_type_info _swigt__p_pn_rwbytes_t = {"_p_pn_rwbytes_t", "pn_rwbytes_t *|struct pn_rwbytes_t *", 0, 0, (void*)0, 0};
|
|
17431
|
+
static swig_type_info _swigt__p_pn_sasl_outcome_t = {"_p_pn_sasl_outcome_t", "pn_sasl_outcome_t *|enum pn_sasl_outcome_t *", 0, 0, (void*)0, 0};
|
|
17432
|
+
static swig_type_info _swigt__p_pn_sasl_t = {"_p_pn_sasl_t", "pn_sasl_t *|struct pn_sasl_t *", 0, 0, (void*)0, 0};
|
|
17433
|
+
static swig_type_info _swigt__p_pn_session_t = {"_p_pn_session_t", "pn_session_t *|struct pn_session_t *", 0, 0, (void*)0, 0};
|
|
17434
|
+
static swig_type_info _swigt__p_pn_snd_settle_mode_t = {"_p_pn_snd_settle_mode_t", "pn_snd_settle_mode_t *|enum pn_snd_settle_mode_t *", 0, 0, (void*)0, 0};
|
|
17435
|
+
static swig_type_info _swigt__p_pn_ssl_cert_subject_subfield = {"_p_pn_ssl_cert_subject_subfield", "pn_ssl_cert_subject_subfield *|enum pn_ssl_cert_subject_subfield *", 0, 0, (void*)0, 0};
|
|
17436
|
+
static swig_type_info _swigt__p_pn_ssl_domain_t = {"_p_pn_ssl_domain_t", "pn_ssl_domain_t *|struct pn_ssl_domain_t *", 0, 0, (void*)0, 0};
|
|
17437
|
+
static swig_type_info _swigt__p_pn_ssl_hash_alg = {"_p_pn_ssl_hash_alg", "pn_ssl_hash_alg *|enum pn_ssl_hash_alg *", 0, 0, (void*)0, 0};
|
|
17438
|
+
static swig_type_info _swigt__p_pn_ssl_mode_t = {"_p_pn_ssl_mode_t", "pn_ssl_mode_t *|enum pn_ssl_mode_t *", 0, 0, (void*)0, 0};
|
|
17439
|
+
static swig_type_info _swigt__p_pn_ssl_resume_status_t = {"_p_pn_ssl_resume_status_t", "pn_ssl_resume_status_t *|enum pn_ssl_resume_status_t *", 0, 0, (void*)0, 0};
|
|
17440
|
+
static swig_type_info _swigt__p_pn_ssl_t = {"_p_pn_ssl_t", "pn_ssl_t *|struct pn_ssl_t *", 0, 0, (void*)0, 0};
|
|
17441
|
+
static swig_type_info _swigt__p_pn_ssl_verify_mode_t = {"_p_pn_ssl_verify_mode_t", "pn_ssl_verify_mode_t *|enum pn_ssl_verify_mode_t *", 0, 0, (void*)0, 0};
|
|
17442
|
+
static swig_type_info _swigt__p_pn_terminus_t = {"_p_pn_terminus_t", "pn_terminus_t *|struct pn_terminus_t *", 0, 0, (void*)0, 0};
|
|
17443
|
+
static swig_type_info _swigt__p_pn_terminus_type_t = {"_p_pn_terminus_type_t", "pn_terminus_type_t *|enum pn_terminus_type_t *", 0, 0, (void*)0, 0};
|
|
17444
|
+
static swig_type_info _swigt__p_pn_transport_t = {"_p_pn_transport_t", "pn_transport_t *|struct pn_transport_t *", 0, 0, (void*)0, 0};
|
|
17445
|
+
static swig_type_info _swigt__p_pn_type_t = {"_p_pn_type_t", "pn_type_t *|enum pn_type_t *", 0, 0, (void*)0, 0};
|
|
17446
|
+
static swig_type_info _swigt__p_pn_url_t = {"_p_pn_url_t", "pn_url_t *|struct pn_url_t *", 0, 0, (void*)0, 0};
|
|
19366
17447
|
static swig_type_info _swigt__p_pn_uuid_t = {"_p_pn_uuid_t", "pn_uuid_t *", 0, 0, (void*)0, 0};
|
|
19367
|
-
static swig_type_info _swigt__p_short = {"_p_short", "
|
|
19368
|
-
static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char
|
|
19369
|
-
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char
|
|
17448
|
+
static swig_type_info _swigt__p_short = {"_p_short", "int16_t *|short *", 0, 0, (void*)0, 0};
|
|
17449
|
+
static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "int8_t *|signed char *", 0, 0, (void*)0, 0};
|
|
17450
|
+
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "uint8_t *|unsigned char *", 0, 0, (void*)0, 0};
|
|
19370
17451
|
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "size_t *|unsigned int *", 0, 0, (void*)0, 0};
|
|
19371
|
-
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "
|
|
19372
|
-
static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "
|
|
19373
|
-
static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short
|
|
17452
|
+
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "pn_char_t *|pn_decimal32_t *|pn_frame_count_t *|pn_millis_t *|pn_seconds_t *|pn_sequence_t *|uint32_t *|unsigned long *", 0, 0, (void*)0, 0};
|
|
17453
|
+
static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "pn_decimal64_t *|uint64_t *|unsigned long long *", 0, 0, (void*)0, 0};
|
|
17454
|
+
static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "uint16_t *|unsigned short *", 0, 0, (void*)0, 0};
|
|
19374
17455
|
static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
|
|
19375
17456
|
|
|
19376
17457
|
static swig_type_info *swig_type_initial[] = {
|
|
@@ -19378,9 +17459,9 @@ static swig_type_info *swig_type_initial[] = {
|
|
|
19378
17459
|
&_swigt__p_Pni_rbhandler_t,
|
|
19379
17460
|
&_swigt__p_char,
|
|
19380
17461
|
&_swigt__p_f_p_struct_pn_transport_t_p_q_const__char__void,
|
|
19381
|
-
&
|
|
17462
|
+
&_swigt__p_f_p_void__int,
|
|
17463
|
+
&_swigt__p_f_p_void__void,
|
|
19382
17464
|
&_swigt__p_int,
|
|
19383
|
-
&_swigt__p_intptr_t,
|
|
19384
17465
|
&_swigt__p_long,
|
|
19385
17466
|
&_swigt__p_long_long,
|
|
19386
17467
|
&_swigt__p_p_char,
|
|
@@ -19404,13 +17485,9 @@ static swig_type_info *swig_type_initial[] = {
|
|
|
19404
17485
|
&_swigt__p_pn_event_type_t,
|
|
19405
17486
|
&_swigt__p_pn_expiry_policy_t,
|
|
19406
17487
|
&_swigt__p_pn_handler_t,
|
|
19407
|
-
&_swigt__p_pn_hash_t,
|
|
19408
|
-
&_swigt__p_pn_iterator_t,
|
|
19409
17488
|
&_swigt__p_pn_link_t,
|
|
19410
|
-
&_swigt__p_pn_list_t,
|
|
19411
17489
|
&_swigt__p_pn_listener_t,
|
|
19412
17490
|
&_swigt__p_pn_logger_t,
|
|
19413
|
-
&_swigt__p_pn_map_t,
|
|
19414
17491
|
&_swigt__p_pn_message_t,
|
|
19415
17492
|
&_swigt__p_pn_messenger_t,
|
|
19416
17493
|
&_swigt__p_pn_proactor_t,
|
|
@@ -19429,7 +17506,6 @@ static swig_type_info *swig_type_initial[] = {
|
|
|
19429
17506
|
&_swigt__p_pn_ssl_resume_status_t,
|
|
19430
17507
|
&_swigt__p_pn_ssl_t,
|
|
19431
17508
|
&_swigt__p_pn_ssl_verify_mode_t,
|
|
19432
|
-
&_swigt__p_pn_string_t,
|
|
19433
17509
|
&_swigt__p_pn_terminus_t,
|
|
19434
17510
|
&_swigt__p_pn_terminus_type_t,
|
|
19435
17511
|
&_swigt__p_pn_transport_t,
|
|
@@ -19450,9 +17526,9 @@ static swig_cast_info _swigc__p_Pn_rbkey_t[] = { {&_swigt__p_Pn_rbkey_t, 0, 0,
|
|
|
19450
17526
|
static swig_cast_info _swigc__p_Pni_rbhandler_t[] = { {&_swigt__p_Pni_rbhandler_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19451
17527
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
|
19452
17528
|
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}};
|
|
19453
|
-
static swig_cast_info
|
|
17529
|
+
static swig_cast_info _swigc__p_f_p_void__int[] = { {&_swigt__p_f_p_void__int, 0, 0, 0},{0, 0, 0, 0}};
|
|
17530
|
+
static swig_cast_info _swigc__p_f_p_void__void[] = { {&_swigt__p_f_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
|
|
19454
17531
|
static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
|
|
19455
|
-
static swig_cast_info _swigc__p_intptr_t[] = { {&_swigt__p_intptr_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19456
17532
|
static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
|
|
19457
17533
|
static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
|
|
19458
17534
|
static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
|
|
@@ -19476,13 +17552,9 @@ static swig_cast_info _swigc__p_pn_event_t[] = { {&_swigt__p_pn_event_t, 0, 0,
|
|
|
19476
17552
|
static swig_cast_info _swigc__p_pn_event_type_t[] = { {&_swigt__p_pn_event_type_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19477
17553
|
static swig_cast_info _swigc__p_pn_expiry_policy_t[] = { {&_swigt__p_pn_expiry_policy_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19478
17554
|
static swig_cast_info _swigc__p_pn_handler_t[] = { {&_swigt__p_pn_handler_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19479
|
-
static swig_cast_info _swigc__p_pn_hash_t[] = { {&_swigt__p_pn_hash_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19480
|
-
static swig_cast_info _swigc__p_pn_iterator_t[] = { {&_swigt__p_pn_iterator_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19481
17555
|
static swig_cast_info _swigc__p_pn_link_t[] = { {&_swigt__p_pn_link_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19482
|
-
static swig_cast_info _swigc__p_pn_list_t[] = { {&_swigt__p_pn_list_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19483
17556
|
static swig_cast_info _swigc__p_pn_listener_t[] = { {&_swigt__p_pn_listener_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19484
17557
|
static swig_cast_info _swigc__p_pn_logger_t[] = { {&_swigt__p_pn_logger_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19485
|
-
static swig_cast_info _swigc__p_pn_map_t[] = { {&_swigt__p_pn_map_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19486
17558
|
static swig_cast_info _swigc__p_pn_message_t[] = { {&_swigt__p_pn_message_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19487
17559
|
static swig_cast_info _swigc__p_pn_messenger_t[] = { {&_swigt__p_pn_messenger_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19488
17560
|
static swig_cast_info _swigc__p_pn_proactor_t[] = { {&_swigt__p_pn_proactor_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
@@ -19501,7 +17573,6 @@ static swig_cast_info _swigc__p_pn_ssl_mode_t[] = { {&_swigt__p_pn_ssl_mode_t,
|
|
|
19501
17573
|
static swig_cast_info _swigc__p_pn_ssl_resume_status_t[] = { {&_swigt__p_pn_ssl_resume_status_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19502
17574
|
static swig_cast_info _swigc__p_pn_ssl_t[] = { {&_swigt__p_pn_ssl_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19503
17575
|
static swig_cast_info _swigc__p_pn_ssl_verify_mode_t[] = { {&_swigt__p_pn_ssl_verify_mode_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19504
|
-
static swig_cast_info _swigc__p_pn_string_t[] = { {&_swigt__p_pn_string_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19505
17576
|
static swig_cast_info _swigc__p_pn_terminus_t[] = { {&_swigt__p_pn_terminus_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19506
17577
|
static swig_cast_info _swigc__p_pn_terminus_type_t[] = { {&_swigt__p_pn_terminus_type_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
19507
17578
|
static swig_cast_info _swigc__p_pn_transport_t[] = { {&_swigt__p_pn_transport_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
@@ -19522,9 +17593,9 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
|
19522
17593
|
_swigc__p_Pni_rbhandler_t,
|
|
19523
17594
|
_swigc__p_char,
|
|
19524
17595
|
_swigc__p_f_p_struct_pn_transport_t_p_q_const__char__void,
|
|
19525
|
-
|
|
17596
|
+
_swigc__p_f_p_void__int,
|
|
17597
|
+
_swigc__p_f_p_void__void,
|
|
19526
17598
|
_swigc__p_int,
|
|
19527
|
-
_swigc__p_intptr_t,
|
|
19528
17599
|
_swigc__p_long,
|
|
19529
17600
|
_swigc__p_long_long,
|
|
19530
17601
|
_swigc__p_p_char,
|
|
@@ -19548,13 +17619,9 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
|
19548
17619
|
_swigc__p_pn_event_type_t,
|
|
19549
17620
|
_swigc__p_pn_expiry_policy_t,
|
|
19550
17621
|
_swigc__p_pn_handler_t,
|
|
19551
|
-
_swigc__p_pn_hash_t,
|
|
19552
|
-
_swigc__p_pn_iterator_t,
|
|
19553
17622
|
_swigc__p_pn_link_t,
|
|
19554
|
-
_swigc__p_pn_list_t,
|
|
19555
17623
|
_swigc__p_pn_listener_t,
|
|
19556
17624
|
_swigc__p_pn_logger_t,
|
|
19557
|
-
_swigc__p_pn_map_t,
|
|
19558
17625
|
_swigc__p_pn_message_t,
|
|
19559
17626
|
_swigc__p_pn_messenger_t,
|
|
19560
17627
|
_swigc__p_pn_proactor_t,
|
|
@@ -19573,7 +17640,6 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
|
19573
17640
|
_swigc__p_pn_ssl_resume_status_t,
|
|
19574
17641
|
_swigc__p_pn_ssl_t,
|
|
19575
17642
|
_swigc__p_pn_ssl_verify_mode_t,
|
|
19576
|
-
_swigc__p_pn_string_t,
|
|
19577
17643
|
_swigc__p_pn_terminus_t,
|
|
19578
17644
|
_swigc__p_pn_terminus_type_t,
|
|
19579
17645
|
_swigc__p_pn_transport_t,
|
|
@@ -19645,9 +17711,12 @@ extern "C" {
|
|
|
19645
17711
|
#define SWIGRUNTIME_DEBUG
|
|
19646
17712
|
#endif
|
|
19647
17713
|
|
|
17714
|
+
#ifndef SWIG_INIT_CLIENT_DATA_TYPE
|
|
17715
|
+
#define SWIG_INIT_CLIENT_DATA_TYPE void *
|
|
17716
|
+
#endif
|
|
19648
17717
|
|
|
19649
17718
|
SWIGRUNTIME void
|
|
19650
|
-
SWIG_InitializeModule(
|
|
17719
|
+
SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
|
|
19651
17720
|
size_t i;
|
|
19652
17721
|
swig_module_info *module_head, *iter;
|
|
19653
17722
|
int init;
|
|
@@ -19892,9 +17961,14 @@ SWIGEXPORT void Init_cproton(void) {
|
|
|
19892
17961
|
rb_define_module_function(mCproton, "pni_connection_driver_transport", _wrap_pni_connection_driver_transport, -1);
|
|
19893
17962
|
rb_define_module_function(mCproton, "pni_connection_driver_read_copy", _wrap_pni_connection_driver_read_copy, -1);
|
|
19894
17963
|
rb_define_module_function(mCproton, "pni_connection_driver", _wrap_pni_connection_driver, -1);
|
|
17964
|
+
|
|
17965
|
+
Pn_rbkey_class =
|
|
17966
|
+
pn_class_create("Pn_rbkey", Pn_rbkey_initialize, Pn_rbkey_finalize, NULL, NULL, NULL);
|
|
17967
|
+
|
|
17968
|
+
rb_define_const(mCproton, "PROTON_ANNOTATIONS_H", SWIG_From_int((int)(1)));
|
|
19895
17969
|
rb_define_const(mCproton, "PROTON_IMPORT_EXPORT_H", SWIG_From_int((int)(1)));
|
|
19896
17970
|
rb_define_const(mCproton, "PN_VERSION_MAJOR", SWIG_From_int((int)(0)));
|
|
19897
|
-
rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(
|
|
17971
|
+
rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(40)));
|
|
19898
17972
|
rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(0)));
|
|
19899
17973
|
rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1)));
|
|
19900
17974
|
rb_define_const(mCproton, "PN_MILLIS_MAX", SWIG_From_unsigned_SS_int((unsigned int)((~0U))));
|
|
@@ -19903,95 +17977,18 @@ SWIGEXPORT void Init_cproton(void) {
|
|
|
19903
17977
|
rb_define_module_function(mCproton, "pn_rwbytes", _wrap_pn_rwbytes, -1);
|
|
19904
17978
|
rb_define_singleton_method(mCproton, "pn_rwbytes_null", VALUEFUNC(_wrap_pn_rwbytes_null_get), 0);
|
|
19905
17979
|
rb_define_const(mCproton, "PROTON_OBJECT_H", SWIG_From_int((int)(1)));
|
|
19906
|
-
|
|
19907
|
-
rb_define_singleton_method(mCproton, "PN_VOID", VALUEFUNC(_wrap_PN_VOID_get), 0);
|
|
19908
|
-
rb_define_singleton_method(mCproton, "PN_WEAKREF", VALUEFUNC(_wrap_PN_WEAKREF_get), 0);
|
|
19909
|
-
rb_define_module_function(mCproton, "pn_class_id", _wrap_pn_class_id, -1);
|
|
19910
|
-
rb_define_module_function(mCproton, "pn_class_name", _wrap_pn_class_name, -1);
|
|
17980
|
+
rb_define_module_function(mCproton, "pn_class_create", _wrap_pn_class_create, -1);
|
|
19911
17981
|
rb_define_module_function(mCproton, "pn_class_new", _wrap_pn_class_new, -1);
|
|
19912
|
-
rb_define_module_function(mCproton, "
|
|
19913
|
-
rb_define_module_function(mCproton, "
|
|
19914
|
-
rb_define_module_function(mCproton, "
|
|
19915
|
-
rb_define_module_function(mCproton, "pn_class_free", _wrap_pn_class_free, -1);
|
|
19916
|
-
rb_define_module_function(mCproton, "pn_class_reify", _wrap_pn_class_reify, -1);
|
|
19917
|
-
rb_define_module_function(mCproton, "pn_class_hashcode", _wrap_pn_class_hashcode, -1);
|
|
19918
|
-
rb_define_module_function(mCproton, "pn_class_compare", _wrap_pn_class_compare, -1);
|
|
19919
|
-
rb_define_module_function(mCproton, "pn_class_equals", _wrap_pn_class_equals, -1);
|
|
19920
|
-
rb_define_module_function(mCproton, "pn_class_inspect", _wrap_pn_class_inspect, -1);
|
|
19921
|
-
rb_define_module_function(mCproton, "pn_void_new", _wrap_pn_void_new, -1);
|
|
19922
|
-
rb_define_module_function(mCproton, "pn_void_incref", _wrap_pn_void_incref, -1);
|
|
19923
|
-
rb_define_module_function(mCproton, "pn_void_decref", _wrap_pn_void_decref, -1);
|
|
19924
|
-
rb_define_module_function(mCproton, "pn_void_refcount", _wrap_pn_void_refcount, -1);
|
|
19925
|
-
rb_define_module_function(mCproton, "pn_void_hashcode", _wrap_pn_void_hashcode, -1);
|
|
19926
|
-
rb_define_module_function(mCproton, "pn_void_compare", _wrap_pn_void_compare, -1);
|
|
19927
|
-
rb_define_module_function(mCproton, "pn_void_inspect", _wrap_pn_void_inspect, -1);
|
|
19928
|
-
rb_define_module_function(mCproton, "pn_object_new", _wrap_pn_object_new, -1);
|
|
19929
|
-
rb_define_module_function(mCproton, "pn_object_reify", _wrap_pn_object_reify, -1);
|
|
19930
|
-
rb_define_module_function(mCproton, "pn_object_incref", _wrap_pn_object_incref, -1);
|
|
19931
|
-
rb_define_module_function(mCproton, "pn_object_refcount", _wrap_pn_object_refcount, -1);
|
|
19932
|
-
rb_define_module_function(mCproton, "pn_object_decref", _wrap_pn_object_decref, -1);
|
|
19933
|
-
rb_define_module_function(mCproton, "pn_object_free", _wrap_pn_object_free, -1);
|
|
17982
|
+
rb_define_module_function(mCproton, "pn_class_name", _wrap_pn_class_name, -1);
|
|
17983
|
+
rb_define_module_function(mCproton, "pn_class_id", _wrap_pn_class_id, -1);
|
|
17984
|
+
rb_define_module_function(mCproton, "pn_class", _wrap_pn_class, -1);
|
|
19934
17985
|
rb_define_module_function(mCproton, "pn_incref", _wrap_pn_incref, -1);
|
|
19935
17986
|
rb_define_module_function(mCproton, "pn_decref", _wrap_pn_decref, -1);
|
|
19936
17987
|
rb_define_module_function(mCproton, "pn_refcount", _wrap_pn_refcount, -1);
|
|
19937
17988
|
rb_define_module_function(mCproton, "pn_free", _wrap_pn_free, -1);
|
|
19938
|
-
rb_define_module_function(mCproton, "
|
|
19939
|
-
|
|
19940
|
-
|
|
19941
|
-
rb_define_module_function(mCproton, "pn_equals", _wrap_pn_equals, -1);
|
|
19942
|
-
rb_define_module_function(mCproton, "pn_inspect", _wrap_pn_inspect, -1);
|
|
19943
|
-
rb_define_const(mCproton, "PN_REFCOUNT", SWIG_From_int((int)((0x1))));
|
|
19944
|
-
rb_define_module_function(mCproton, "pn_list", _wrap_pn_list, -1);
|
|
19945
|
-
rb_define_module_function(mCproton, "pn_list_size", _wrap_pn_list_size, -1);
|
|
19946
|
-
rb_define_module_function(mCproton, "pn_list_get", _wrap_pn_list_get, -1);
|
|
19947
|
-
rb_define_module_function(mCproton, "pn_list_set", _wrap_pn_list_set, -1);
|
|
19948
|
-
rb_define_module_function(mCproton, "pn_list_add", _wrap_pn_list_add, -1);
|
|
19949
|
-
rb_define_module_function(mCproton, "pn_list_pop", _wrap_pn_list_pop, -1);
|
|
19950
|
-
rb_define_module_function(mCproton, "pn_list_index", _wrap_pn_list_index, -1);
|
|
19951
|
-
rb_define_module_function(mCproton, "pn_list_remove", _wrap_pn_list_remove, -1);
|
|
19952
|
-
rb_define_module_function(mCproton, "pn_list_del", _wrap_pn_list_del, -1);
|
|
19953
|
-
rb_define_module_function(mCproton, "pn_list_clear", _wrap_pn_list_clear, -1);
|
|
19954
|
-
rb_define_module_function(mCproton, "pn_list_iterator", _wrap_pn_list_iterator, -1);
|
|
19955
|
-
rb_define_module_function(mCproton, "pn_list_minpush", _wrap_pn_list_minpush, -1);
|
|
19956
|
-
rb_define_module_function(mCproton, "pn_list_minpop", _wrap_pn_list_minpop, -1);
|
|
19957
|
-
rb_define_const(mCproton, "PN_REFCOUNT_KEY", SWIG_From_int((int)((0x2))));
|
|
19958
|
-
rb_define_const(mCproton, "PN_REFCOUNT_VALUE", SWIG_From_int((int)((0x4))));
|
|
19959
|
-
rb_define_module_function(mCproton, "pn_map", _wrap_pn_map, -1);
|
|
19960
|
-
rb_define_module_function(mCproton, "pn_map_size", _wrap_pn_map_size, -1);
|
|
19961
|
-
rb_define_module_function(mCproton, "pn_map_put", _wrap_pn_map_put, -1);
|
|
19962
|
-
rb_define_module_function(mCproton, "pn_map_get", _wrap_pn_map_get, -1);
|
|
19963
|
-
rb_define_module_function(mCproton, "pn_map_del", _wrap_pn_map_del, -1);
|
|
19964
|
-
rb_define_module_function(mCproton, "pn_map_head", _wrap_pn_map_head, -1);
|
|
19965
|
-
rb_define_module_function(mCproton, "pn_map_next", _wrap_pn_map_next, -1);
|
|
19966
|
-
rb_define_module_function(mCproton, "pn_map_key", _wrap_pn_map_key, -1);
|
|
19967
|
-
rb_define_module_function(mCproton, "pn_map_value", _wrap_pn_map_value, -1);
|
|
19968
|
-
rb_define_module_function(mCproton, "pn_hash", _wrap_pn_hash, -1);
|
|
19969
|
-
rb_define_module_function(mCproton, "pn_hash_size", _wrap_pn_hash_size, -1);
|
|
19970
|
-
rb_define_module_function(mCproton, "pn_hash_put", _wrap_pn_hash_put, -1);
|
|
19971
|
-
rb_define_module_function(mCproton, "pn_hash_get", _wrap_pn_hash_get, -1);
|
|
19972
|
-
rb_define_module_function(mCproton, "pn_hash_del", _wrap_pn_hash_del, -1);
|
|
19973
|
-
rb_define_module_function(mCproton, "pn_hash_head", _wrap_pn_hash_head, -1);
|
|
19974
|
-
rb_define_module_function(mCproton, "pn_hash_next", _wrap_pn_hash_next, -1);
|
|
19975
|
-
rb_define_module_function(mCproton, "pn_hash_key", _wrap_pn_hash_key, -1);
|
|
19976
|
-
rb_define_module_function(mCproton, "pn_hash_value", _wrap_pn_hash_value, -1);
|
|
19977
|
-
rb_define_module_function(mCproton, "pn_string", _wrap_pn_string, -1);
|
|
19978
|
-
rb_define_module_function(mCproton, "pn_stringn", _wrap_pn_stringn, -1);
|
|
19979
|
-
rb_define_module_function(mCproton, "pn_string_get", _wrap_pn_string_get, -1);
|
|
19980
|
-
rb_define_module_function(mCproton, "pn_string_size", _wrap_pn_string_size, -1);
|
|
19981
|
-
rb_define_module_function(mCproton, "pn_string_set", _wrap_pn_string_set, -1);
|
|
19982
|
-
rb_define_module_function(mCproton, "pn_string_setn", _wrap_pn_string_setn, -1);
|
|
19983
|
-
rb_define_module_function(mCproton, "pn_string_put", _wrap_pn_string_put, -1);
|
|
19984
|
-
rb_define_module_function(mCproton, "pn_string_clear", _wrap_pn_string_clear, -1);
|
|
19985
|
-
rb_define_module_function(mCproton, "pn_string_format", _wrap_pn_string_format, -1);
|
|
19986
|
-
rb_define_module_function(mCproton, "pn_string_addf", _wrap_pn_string_addf, -1);
|
|
19987
|
-
rb_define_module_function(mCproton, "pn_string_grow", _wrap_pn_string_grow, -1);
|
|
19988
|
-
rb_define_module_function(mCproton, "pn_string_buffer", _wrap_pn_string_buffer, -1);
|
|
19989
|
-
rb_define_module_function(mCproton, "pn_string_capacity", _wrap_pn_string_capacity, -1);
|
|
19990
|
-
rb_define_module_function(mCproton, "pn_string_resize", _wrap_pn_string_resize, -1);
|
|
19991
|
-
rb_define_module_function(mCproton, "pn_string_copy", _wrap_pn_string_copy, -1);
|
|
19992
|
-
rb_define_module_function(mCproton, "pn_iterator", _wrap_pn_iterator, -1);
|
|
19993
|
-
rb_define_module_function(mCproton, "pn_iterator_start", _wrap_pn_iterator_start, -1);
|
|
19994
|
-
rb_define_module_function(mCproton, "pn_iterator_next", _wrap_pn_iterator_next, -1);
|
|
17989
|
+
rb_define_module_function(mCproton, "pn_tostring", _wrap_pn_tostring, -1);
|
|
17990
|
+
rb_define_singleton_method(mCproton, "PN_OBJECT", VALUEFUNC(_wrap_PN_OBJECT_get), 0);
|
|
17991
|
+
rb_define_singleton_method(mCproton, "PN_VOID", VALUEFUNC(_wrap_PN_VOID_get), 0);
|
|
19995
17992
|
rb_define_module_function(mCproton, "pn_record", _wrap_pn_record, -1);
|
|
19996
17993
|
rb_define_module_function(mCproton, "pn_record_def", _wrap_pn_record_def, -1);
|
|
19997
17994
|
rb_define_module_function(mCproton, "pn_record_has", _wrap_pn_record_has, -1);
|
|
@@ -20090,6 +18087,10 @@ SWIGEXPORT void Init_cproton(void) {
|
|
|
20090
18087
|
rb_define_module_function(mCproton, "pn_session_close", _wrap_pn_session_close, -1);
|
|
20091
18088
|
rb_define_module_function(mCproton, "pn_session_get_incoming_capacity", _wrap_pn_session_get_incoming_capacity, -1);
|
|
20092
18089
|
rb_define_module_function(mCproton, "pn_session_set_incoming_capacity", _wrap_pn_session_set_incoming_capacity, -1);
|
|
18090
|
+
rb_define_module_function(mCproton, "pn_session_incoming_window", _wrap_pn_session_incoming_window, -1);
|
|
18091
|
+
rb_define_module_function(mCproton, "pn_session_incoming_window_lwm", _wrap_pn_session_incoming_window_lwm, -1);
|
|
18092
|
+
rb_define_module_function(mCproton, "pn_session_set_incoming_window_and_lwm", _wrap_pn_session_set_incoming_window_and_lwm, -1);
|
|
18093
|
+
rb_define_module_function(mCproton, "pn_session_remote_incoming_window", _wrap_pn_session_remote_incoming_window, -1);
|
|
20093
18094
|
rb_define_module_function(mCproton, "pn_session_get_outgoing_window", _wrap_pn_session_get_outgoing_window, -1);
|
|
20094
18095
|
rb_define_module_function(mCproton, "pn_session_set_outgoing_window", _wrap_pn_session_set_outgoing_window, -1);
|
|
20095
18096
|
rb_define_module_function(mCproton, "pn_session_outgoing_bytes", _wrap_pn_session_outgoing_bytes, -1);
|
|
@@ -20351,6 +18352,7 @@ SWIGEXPORT void Init_cproton(void) {
|
|
|
20351
18352
|
rb_define_module_function(mCproton, "pn_collector_release", _wrap_pn_collector_release, -1);
|
|
20352
18353
|
rb_define_module_function(mCproton, "pn_collector_drain", _wrap_pn_collector_drain, -1);
|
|
20353
18354
|
rb_define_module_function(mCproton, "pn_collector_put", _wrap_pn_collector_put, -1);
|
|
18355
|
+
rb_define_module_function(mCproton, "pn_collector_put_object", _wrap_pn_collector_put_object, -1);
|
|
20354
18356
|
rb_define_module_function(mCproton, "pn_collector_peek", _wrap_pn_collector_peek, -1);
|
|
20355
18357
|
rb_define_module_function(mCproton, "pn_collector_pop", _wrap_pn_collector_pop, -1);
|
|
20356
18358
|
rb_define_module_function(mCproton, "pn_collector_next", _wrap_pn_collector_next, -1);
|