solarwinds_apm 6.1.0 → 6.1.2

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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +49 -2
  3. data/ext/oboe_metal/extconf.rb +15 -9
  4. data/ext/oboe_metal/lib/liboboe-1.0-aarch64.so.sha256 +1 -1
  5. data/ext/oboe_metal/lib/liboboe-1.0-alpine-aarch64.so.sha256 +1 -1
  6. data/ext/oboe_metal/lib/liboboe-1.0-alpine-x86_64.so.sha256 +1 -1
  7. data/ext/oboe_metal/lib/liboboe-1.0-lambda-aarch64.so.sha256 +1 -1
  8. data/ext/oboe_metal/lib/liboboe-1.0-lambda-x86_64.so.sha256 +1 -1
  9. data/ext/oboe_metal/lib/liboboe-1.0-x86_64.so.sha256 +1 -1
  10. data/ext/oboe_metal/src/VERSION +1 -1
  11. data/ext/oboe_metal/src/oboe.h +2 -1
  12. data/ext/oboe_metal/src/oboe_api.cpp +5 -3
  13. data/ext/oboe_metal/src/oboe_api.h +2 -1
  14. data/ext/oboe_metal/src/oboe_swig_wrap.cc +219 -120
  15. data/lib/oboe_metal.rb +8 -4
  16. data/lib/rails/generators/solarwinds_apm/templates/solarwinds_apm_initializer.rb +0 -4
  17. data/lib/solarwinds_apm/api/custom_instrumentation.rb +80 -0
  18. data/lib/solarwinds_apm/api.rb +2 -0
  19. data/lib/solarwinds_apm/oboe_init_options.rb +14 -1
  20. data/lib/solarwinds_apm/opentelemetry/solarwinds_processor.rb +2 -2
  21. data/lib/solarwinds_apm/opentelemetry/solarwinds_response_propagator.rb +4 -3
  22. data/lib/solarwinds_apm/opentelemetry/solarwinds_sampler.rb +2 -0
  23. data/lib/solarwinds_apm/otel_config.rb +10 -0
  24. data/lib/solarwinds_apm/patch/tag_sql/sw_dbo_utils.rb +35 -0
  25. data/lib/solarwinds_apm/patch/tag_sql/sw_mysql2_patch.rb +25 -0
  26. data/lib/solarwinds_apm/patch/tag_sql/sw_pg_patch.rb +39 -0
  27. data/lib/solarwinds_apm/patch/tag_sql_patch.rb +11 -0
  28. data/lib/solarwinds_apm/support.rb +0 -14
  29. data/lib/solarwinds_apm/version.rb +1 -1
  30. metadata +10 -12
  31. data/lib/solarwinds_apm/support/swomarginalia/LICENSE +0 -20
  32. data/lib/solarwinds_apm/support/swomarginalia/README.md +0 -46
  33. data/lib/solarwinds_apm/support/swomarginalia/comment.rb +0 -206
  34. data/lib/solarwinds_apm/support/swomarginalia/formatter.rb +0 -20
  35. data/lib/solarwinds_apm/support/swomarginalia/load_swomarginalia.rb +0 -55
  36. data/lib/solarwinds_apm/support/swomarginalia/railtie.rb +0 -24
  37. data/lib/solarwinds_apm/support/swomarginalia/swomarginalia.rb +0 -89
@@ -1,42 +1,14 @@
1
1
  /* ----------------------------------------------------------------------------
2
- * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 4.0.2
2
+ * This file was automatically generated by SWIG (https://www.swig.org).
3
+ * Version 4.2.0
4
4
  *
5
- * This file is not intended to be easily readable and contains a number of
6
- * coding conventions designed to improve portability and efficiency. Do not make
7
- * changes to this file unless you know what you are doing--modify the SWIG
8
- * interface file instead.
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
- #ifndef SWIGRUBY
10
+ #define SWIG_VERSION 0x040200
13
11
  #define SWIGRUBY
14
- #endif
15
-
16
-
17
-
18
- #ifdef __cplusplus
19
- /* SwigValueWrapper is described in swig.swg */
20
- template<typename T> class SwigValueWrapper {
21
- struct SwigMovePointer {
22
- T *ptr;
23
- SwigMovePointer(T *p) : ptr(p) { }
24
- ~SwigMovePointer() { delete ptr; }
25
- SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
26
- } pointer;
27
- SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
28
- SwigValueWrapper(const SwigValueWrapper<T>& rhs);
29
- public:
30
- SwigValueWrapper() : pointer(0) { }
31
- SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
32
- operator T&() const { return *pointer.ptr; }
33
- T *operator&() { return pointer.ptr; }
34
- };
35
-
36
- template <typename T> T SwigValueInit() {
37
- return T();
38
- }
39
- #endif
40
12
 
41
13
  /* -----------------------------------------------------------------------------
42
14
  * This section contains generic SWIG labels for method/variable
@@ -162,6 +134,12 @@ template <typename T> T SwigValueInit() {
162
134
  # pragma warning disable 592
163
135
  #endif
164
136
 
137
+ #if __cplusplus >=201103L
138
+ # define SWIG_NULLPTR nullptr
139
+ #else
140
+ # define SWIG_NULLPTR NULL
141
+ #endif
142
+
165
143
  /* -----------------------------------------------------------------------------
166
144
  * This section contains generic SWIG labels for method/variable
167
145
  * declarations/attributes, and other compiler dependent labels.
@@ -286,6 +264,12 @@ template <typename T> T SwigValueInit() {
286
264
  # pragma warning disable 592
287
265
  #endif
288
266
 
267
+ #if __cplusplus >=201103L
268
+ # define SWIG_NULLPTR nullptr
269
+ #else
270
+ # define SWIG_NULLPTR NULL
271
+ #endif
272
+
289
273
  /* -----------------------------------------------------------------------------
290
274
  * swigrun.swg
291
275
  *
@@ -332,6 +316,8 @@ template <typename T> T SwigValueInit() {
332
316
  #define SWIG_POINTER_DISOWN 0x1
333
317
  #define SWIG_CAST_NEW_MEMORY 0x2
334
318
  #define SWIG_POINTER_NO_NULL 0x4
319
+ #define SWIG_POINTER_CLEAR 0x8
320
+ #define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
335
321
 
336
322
  /* Flags for new pointer objects */
337
323
  #define SWIG_POINTER_OWN 0x1
@@ -403,7 +389,7 @@ template <typename T> T SwigValueInit() {
403
389
  SWIG errors code.
404
390
 
405
391
  Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
406
- allows to return the 'cast rank', for example, if you have this
392
+ allows returning the 'cast rank', for example, if you have this
407
393
 
408
394
  int food(double)
409
395
  int fooi(int);
@@ -417,7 +403,13 @@ template <typename T> T SwigValueInit() {
417
403
  */
418
404
 
419
405
  #define SWIG_OK (0)
406
+ /* Runtime errors are < 0 */
420
407
  #define SWIG_ERROR (-1)
408
+ /* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */
409
+ /* Errors in range -100 to -199 are language specific errors defined in *errors.swg */
410
+ /* Errors < -200 are generic runtime specific errors */
411
+ #define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
412
+
421
413
  #define SWIG_IsOK(r) (r >= 0)
422
414
  #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
423
415
 
@@ -425,14 +417,14 @@ template <typename T> T SwigValueInit() {
425
417
  #define SWIG_CASTRANKLIMIT (1 << 8)
426
418
  /* The NewMask denotes the object was created (using new/malloc) */
427
419
  #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
428
- /* The TmpMask is for in/out typemaps that use temporal objects */
420
+ /* The TmpMask is for in/out typemaps that use temporary objects */
429
421
  #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
430
422
  /* Simple returning values */
431
423
  #define SWIG_BADOBJ (SWIG_ERROR)
432
424
  #define SWIG_OLDOBJ (SWIG_OK)
433
425
  #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
434
426
  #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
435
- /* Check, add and del mask methods */
427
+ /* Check, add and del object mask methods */
436
428
  #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
437
429
  #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
438
430
  #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
@@ -461,6 +453,23 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) {
461
453
  # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
462
454
  #endif
463
455
 
456
+ /* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF
457
+ * if you're missing it.
458
+ */
459
+ #if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \
460
+ (defined __cplusplus && __cplusplus >= 201103L) || \
461
+ defined SWIG_HAVE_SNPRINTF) && \
462
+ !defined SWIG_NO_SNPRINTF
463
+ # define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A)
464
+ # define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B)
465
+ #else
466
+ /* Fallback versions ignore the buffer size, but most of our uses either have a
467
+ * fixed maximum possible size or dynamically allocate a buffer that's large
468
+ * enough.
469
+ */
470
+ # define SWIG_snprintf(O,S,F,A) sprintf(O,F,A)
471
+ # define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B)
472
+ #endif
464
473
 
465
474
  #include <string.h>
466
475
 
@@ -578,7 +587,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) {
578
587
  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
579
588
  */
580
589
  SWIGRUNTIME swig_cast_info *
581
- SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
590
+ SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty) {
582
591
  if (ty) {
583
592
  swig_cast_info *iter = ty->cast;
584
593
  while (iter) {
@@ -638,9 +647,9 @@ SWIG_TypeName(const swig_type_info *ty) {
638
647
  SWIGRUNTIME const char *
639
648
  SWIG_TypePrettyName(const swig_type_info *type) {
640
649
  /* The "str" field contains the equivalent pretty names of the
641
- type, separated by vertical-bar characters. We choose
642
- to print the last name, as it is often (?) the most
643
- specific. */
650
+ type, separated by vertical-bar characters. Choose the last
651
+ name. It should be the most specific; a fully resolved name
652
+ but not necessarily with default template parameters expanded. */
644
653
  if (!type) return NULL;
645
654
  if (type->str != NULL) {
646
655
  const char *last_name = type->str;
@@ -860,7 +869,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
860
869
  }
861
870
  #endif
862
871
 
863
- /* Errors in SWIG */
872
+ /* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */
864
873
  #define SWIG_UnknownError -1
865
874
  #define SWIG_IOError -2
866
875
  #define SWIG_RuntimeError -3
@@ -876,8 +885,25 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
876
885
  #define SWIG_NullReferenceError -13
877
886
 
878
887
 
888
+ #if __GNUC__ >= 7
889
+ #pragma GCC diagnostic push
890
+ #if defined(__cplusplus)
891
+ #pragma GCC diagnostic ignored "-Wregister"
892
+ #if __GNUC__ >= 10
893
+ #pragma GCC diagnostic ignored "-Wvolatile"
894
+ #if __GNUC__ >= 11
895
+ #pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion"
896
+ #endif
897
+ #endif
898
+ #endif
899
+ #endif
879
900
 
880
901
  #include <ruby.h>
902
+ #include <ruby/version.h> /* For RUBY_API_VERSION_CODE */
903
+
904
+ #if __GNUC__ >= 7
905
+ #pragma GCC diagnostic pop
906
+ #endif
881
907
 
882
908
  /* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
883
909
  * breaks using rb_intern as an lvalue, as SWIG does. We work around this
@@ -979,9 +1005,9 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
979
1005
  /*
980
1006
  * The following macros are used for providing the correct type of a
981
1007
  * function pointer to the Ruby C API.
982
- * Starting with Ruby 2.7 (corresponding to RB_METHOD_DEFINITION_DECL being
983
- * defined) these macros act transparently due to Ruby's moving away from
984
- * ANYARGS and instead employing strict function signatures.
1008
+ *
1009
+ * Starting with Ruby 2.7 these macros act transparently due to Ruby's moving
1010
+ * moving away from ANYARGS and instead employing strict function signatures.
985
1011
  *
986
1012
  * Note: In case of C (not C++) the macros are transparent even before
987
1013
  * Ruby 2.7 due to the fact that the Ruby C API used function declarators
@@ -1005,7 +1031,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
1005
1031
  * SWIG_RUBY_INT_ANYARGS_FUNC(f) is used for the function pointer
1006
1032
  * argument(s) of Ruby C API functions like st_foreach().
1007
1033
  */
1008
- #if defined(__cplusplus) && !defined(RB_METHOD_DEFINITION_DECL)
1034
+ #if defined(__cplusplus) && RUBY_API_VERSION_CODE < 20700
1009
1035
  # define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
1010
1036
  # define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
1011
1037
  # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
@@ -1158,7 +1184,7 @@ const char* Ruby_Format_TypeError( const char* msg,
1158
1184
  }
1159
1185
 
1160
1186
  str = rb_str_cat2( str, "Expected argument " );
1161
- sprintf( buf, "%d of type ", argn-1 );
1187
+ SWIG_snprintf( buf, sizeof( buf), "%d of type ", argn-1 );
1162
1188
  str = rb_str_cat2( str, buf );
1163
1189
  str = rb_str_cat2( str, type );
1164
1190
  str = rb_str_cat2( str, ", but got " );
@@ -1457,6 +1483,7 @@ static VALUE swig_runtime_data_type_pointer = Qnil;
1457
1483
  /* Global IDs used to keep some internal SWIG stuff */
1458
1484
  static ID swig_arity_id = 0;
1459
1485
  static ID swig_call_id = 0;
1486
+ static ID swig_lowerthan_id = 0;
1460
1487
 
1461
1488
  /*
1462
1489
  If your swig extension is to be run within an embedded ruby and has
@@ -1508,7 +1535,7 @@ SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) {
1508
1535
  VALUE exceptionClass = getExceptionClass();
1509
1536
  if (rb_obj_is_kind_of(obj, exceptionClass)) {
1510
1537
  return obj;
1511
- } else {
1538
+ } else {
1512
1539
  return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj));
1513
1540
  }
1514
1541
  }
@@ -1521,6 +1548,7 @@ SWIG_Ruby_InitRuntime(void)
1521
1548
  _mSWIG = rb_define_module("SWIG");
1522
1549
  swig_call_id = rb_intern("call");
1523
1550
  swig_arity_id = rb_intern("arity");
1551
+ swig_lowerthan_id = rb_intern("<");
1524
1552
  }
1525
1553
  }
1526
1554
 
@@ -1528,13 +1556,14 @@ SWIG_Ruby_InitRuntime(void)
1528
1556
  SWIGRUNTIME void
1529
1557
  SWIG_Ruby_define_class(swig_type_info *type)
1530
1558
  {
1531
- char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
1532
- sprintf(klass_name, "TYPE%s", type->name);
1559
+ size_t klass_len = 4 + strlen(type->name) + 1;
1560
+ char *klass_name = (char *) malloc(klass_len);
1561
+ SWIG_snprintf(klass_name, klass_len, "TYPE%s", type->name);
1533
1562
  if (NIL_P(_cSWIG_Pointer)) {
1534
1563
  _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
1535
1564
  rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
1536
1565
  }
1537
- rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1566
+ rb_undef_alloc_func(rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer));
1538
1567
  free((void *) klass_name);
1539
1568
  }
1540
1569
 
@@ -1585,8 +1614,9 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1585
1614
  SWIG_RubyAddTracking(ptr, obj);
1586
1615
  }
1587
1616
  } else {
1588
- klass_name = (char *) malloc(4 + strlen(type->name) + 1);
1589
- sprintf(klass_name, "TYPE%s", type->name);
1617
+ size_t klass_len = 4 + strlen(type->name) + 1;
1618
+ klass_name = (char *) malloc(klass_len);
1619
+ SWIG_snprintf(klass_name, klass_len, "TYPE%s", type->name);
1590
1620
  klass = rb_const_get(_mSWIG, rb_intern(klass_name));
1591
1621
  free((void *) klass_name);
1592
1622
  obj = Data_Wrap_Struct(klass, 0, 0, ptr);
@@ -1658,6 +1688,11 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1658
1688
  own->own = 0;
1659
1689
  }
1660
1690
 
1691
+ if (((flags & SWIG_POINTER_RELEASE) == SWIG_POINTER_RELEASE)) {
1692
+ if (!RDATA(obj)->dfree)
1693
+ return SWIG_ERROR_RELEASE_NOT_OWNED;
1694
+ }
1695
+
1661
1696
  /* Check to see if the input object is giving up ownership
1662
1697
  of the underlying C struct or C++ object. If so then we
1663
1698
  need to reset the destructor since the Ruby object no
@@ -1669,7 +1704,7 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1669
1704
  swig_class *sklass = (swig_class *) ty->clientdata;
1670
1705
  track = sklass->trackObjects;
1671
1706
  }
1672
-
1707
+
1673
1708
  if (track) {
1674
1709
  /* We are tracking objects for this class. Thus we change the destructor
1675
1710
  * to SWIG_RubyRemoveTracking. This allows us to
@@ -1683,6 +1718,10 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1683
1718
  }
1684
1719
  }
1685
1720
 
1721
+ if (flags & SWIG_POINTER_CLEAR) {
1722
+ DATA_PTR(obj) = 0;
1723
+ }
1724
+
1686
1725
  /* Do type-checking if type info was provided */
1687
1726
  if (ty) {
1688
1727
  if (ty->clientdata) {
@@ -1790,6 +1829,7 @@ SWIG_Ruby_SetModule(swig_module_info *pointer)
1790
1829
  {
1791
1830
  /* register a new class */
1792
1831
  VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1832
+ rb_undef_alloc_func(cl);
1793
1833
  /* create and store the structure pointer to a global variable */
1794
1834
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1795
1835
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1820,7 +1860,7 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1820
1860
  {
1821
1861
  if ( rb_respond_to( proc, swig_arity_id ) )
1822
1862
  {
1823
- VALUE num = rb_funcall( proc, swig_arity_id, 0 );
1863
+ VALUE num = rb_funcall2( proc, swig_arity_id, 0, 0 );
1824
1864
  int arity = NUM2INT(num);
1825
1865
  if ( arity < 0 && (arity+1) < -minimal ) return 1;
1826
1866
  if ( arity == minimal ) return 1;
@@ -1838,7 +1878,7 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1838
1878
 
1839
1879
  #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1840
1880
 
1841
- #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
1881
+ #define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0)
1842
1882
 
1843
1883
 
1844
1884
 
@@ -1882,12 +1922,56 @@ static swig_module_info swig_module = {swig_types, 26, 0, 0, 0, 0};
1882
1922
 
1883
1923
  static VALUE mOboe_metal;
1884
1924
 
1885
- #define SWIG_RUBY_THREAD_BEGIN_BLOCK
1886
- #define SWIG_RUBY_THREAD_END_BLOCK
1925
+ #ifdef __cplusplus
1926
+ #include <utility>
1927
+ /* SwigValueWrapper is described in swig.swg */
1928
+ template<typename T> class SwigValueWrapper {
1929
+ struct SwigSmartPointer {
1930
+ T *ptr;
1931
+ SwigSmartPointer(T *p) : ptr(p) { }
1932
+ ~SwigSmartPointer() { delete ptr; }
1933
+ SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
1934
+ void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
1935
+ } pointer;
1936
+ SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
1937
+ SwigValueWrapper(const SwigValueWrapper<T>& rhs);
1938
+ public:
1939
+ SwigValueWrapper() : pointer(0) { }
1940
+ SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
1941
+ #if __cplusplus >=201103L
1942
+ SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
1943
+ operator T&&() const { return std::move(*pointer.ptr); }
1944
+ #else
1945
+ operator T&() const { return *pointer.ptr; }
1946
+ #endif
1947
+ T *operator&() const { return pointer.ptr; }
1948
+ static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
1949
+ };
1950
+
1951
+ /*
1952
+ * SwigValueInit() is a generic initialisation solution as the following approach:
1953
+ *
1954
+ * T c_result = T();
1955
+ *
1956
+ * doesn't compile for all types for example:
1957
+ *
1958
+ * unsigned int c_result = unsigned int();
1959
+ */
1960
+ template <typename T> T SwigValueInit() {
1961
+ return T();
1962
+ }
1963
+
1964
+ #if __cplusplus >=201103L
1965
+ # define SWIG_STD_MOVE(OBJ) std::move(OBJ)
1966
+ #else
1967
+ # define SWIG_STD_MOVE(OBJ) OBJ
1968
+ #endif
1887
1969
 
1970
+ #endif
1888
1971
 
1889
- #define SWIGVERSION 0x040002
1890
- #define SWIG_VERSION SWIGVERSION
1972
+
1973
+ #define SWIG_RUBY_THREAD_BEGIN_BLOCK
1974
+ #define SWIG_RUBY_THREAD_END_BLOCK
1891
1975
 
1892
1976
 
1893
1977
  #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
@@ -2137,6 +2221,8 @@ SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
2137
2221
  a[0] = obj;
2138
2222
  a[1] = (VALUE)(&v);
2139
2223
  if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
2224
+ if (rb_funcall(obj, swig_lowerthan_id, 1, INT2FIX(0)) != Qfalse)
2225
+ return SWIG_OverflowError;
2140
2226
  if (val) *val = v;
2141
2227
  return SWIG_OK;
2142
2228
  }
@@ -2251,6 +2337,8 @@ SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val)
2251
2337
  a[0] = obj;
2252
2338
  a[1] = (VALUE)(&v);
2253
2339
  if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2ULL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
2340
+ if (rb_funcall(obj, swig_lowerthan_id, 1, INT2FIX(0)) != Qfalse)
2341
+ return SWIG_OverflowError;
2254
2342
  if (val) *val = v;
2255
2343
  return SWIG_OK;
2256
2344
  }
@@ -2519,7 +2607,7 @@ SWIGINTERN VALUE _wrap_Metadata_makeRandom(int nargs, VALUE *args, VALUE self) {
2519
2607
  return _wrap_Metadata_makeRandom__SWIG_1(nargs, args, self);
2520
2608
  }
2521
2609
  if (argc == 1) {
2522
- int _v;
2610
+ int _v = 0;
2523
2611
  {
2524
2612
  int res = SWIG_AsVal_bool(argv[0], NULL);
2525
2613
  _v = SWIG_CheckState(res);
@@ -4372,7 +4460,7 @@ SWIGINTERN VALUE _wrap_Context_getDecisions(int nargs, VALUE *args, VALUE self)
4372
4460
  return _wrap_Context_getDecisions__SWIG_9(nargs, args, self);
4373
4461
  }
4374
4462
  if (argc == 1) {
4375
- int _v;
4463
+ int _v = 0;
4376
4464
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4377
4465
  _v = SWIG_CheckState(res);
4378
4466
  if (_v) {
@@ -4380,7 +4468,7 @@ SWIGINTERN VALUE _wrap_Context_getDecisions(int nargs, VALUE *args, VALUE self)
4380
4468
  }
4381
4469
  }
4382
4470
  if (argc == 2) {
4383
- int _v;
4471
+ int _v = 0;
4384
4472
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4385
4473
  _v = SWIG_CheckState(res);
4386
4474
  if (_v) {
@@ -4392,7 +4480,7 @@ SWIGINTERN VALUE _wrap_Context_getDecisions(int nargs, VALUE *args, VALUE self)
4392
4480
  }
4393
4481
  }
4394
4482
  if (argc == 3) {
4395
- int _v;
4483
+ int _v = 0;
4396
4484
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4397
4485
  _v = SWIG_CheckState(res);
4398
4486
  if (_v) {
@@ -4410,7 +4498,7 @@ SWIGINTERN VALUE _wrap_Context_getDecisions(int nargs, VALUE *args, VALUE self)
4410
4498
  }
4411
4499
  }
4412
4500
  if (argc == 4) {
4413
- int _v;
4501
+ int _v = 0;
4414
4502
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4415
4503
  _v = SWIG_CheckState(res);
4416
4504
  if (_v) {
@@ -4434,7 +4522,7 @@ SWIGINTERN VALUE _wrap_Context_getDecisions(int nargs, VALUE *args, VALUE self)
4434
4522
  }
4435
4523
  }
4436
4524
  if (argc == 5) {
4437
- int _v;
4525
+ int _v = 0;
4438
4526
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4439
4527
  _v = SWIG_CheckState(res);
4440
4528
  if (_v) {
@@ -4464,7 +4552,7 @@ SWIGINTERN VALUE _wrap_Context_getDecisions(int nargs, VALUE *args, VALUE self)
4464
4552
  }
4465
4553
  }
4466
4554
  if (argc == 6) {
4467
- int _v;
4555
+ int _v = 0;
4468
4556
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4469
4557
  _v = SWIG_CheckState(res);
4470
4558
  if (_v) {
@@ -4500,7 +4588,7 @@ SWIGINTERN VALUE _wrap_Context_getDecisions(int nargs, VALUE *args, VALUE self)
4500
4588
  }
4501
4589
  }
4502
4590
  if (argc == 7) {
4503
- int _v;
4591
+ int _v = 0;
4504
4592
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4505
4593
  _v = SWIG_CheckState(res);
4506
4594
  if (_v) {
@@ -4540,7 +4628,7 @@ SWIGINTERN VALUE _wrap_Context_getDecisions(int nargs, VALUE *args, VALUE self)
4540
4628
  }
4541
4629
  }
4542
4630
  if (argc == 8) {
4543
- int _v;
4631
+ int _v = 0;
4544
4632
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4545
4633
  _v = SWIG_CheckState(res);
4546
4634
  if (_v) {
@@ -4584,7 +4672,7 @@ SWIGINTERN VALUE _wrap_Context_getDecisions(int nargs, VALUE *args, VALUE self)
4584
4672
  }
4585
4673
  }
4586
4674
  if (argc == 9) {
4587
- int _v;
4675
+ int _v = 0;
4588
4676
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4589
4677
  _v = SWIG_CheckState(res);
4590
4678
  if (_v) {
@@ -5002,7 +5090,7 @@ SWIGINTERN VALUE _wrap_Context_createEntry(int nargs, VALUE *args, VALUE self) {
5002
5090
  argv[ii] = args[ii];
5003
5091
  }
5004
5092
  if (argc == 2) {
5005
- int _v;
5093
+ int _v = 0;
5006
5094
  void *vptr = 0;
5007
5095
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_oboe_metadata_t, 0);
5008
5096
  _v = SWIG_CheckState(res);
@@ -5017,7 +5105,7 @@ SWIGINTERN VALUE _wrap_Context_createEntry(int nargs, VALUE *args, VALUE self) {
5017
5105
  }
5018
5106
  }
5019
5107
  if (argc == 3) {
5020
- int _v;
5108
+ int _v = 0;
5021
5109
  void *vptr = 0;
5022
5110
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_oboe_metadata_t, 0);
5023
5111
  _v = SWIG_CheckState(res);
@@ -5084,7 +5172,7 @@ SWIGINTERN VALUE _wrap_Context_createEvent(int nargs, VALUE *args, VALUE self) {
5084
5172
  return _wrap_Context_createEvent__SWIG_0(nargs, args, self);
5085
5173
  }
5086
5174
  if (argc == 1) {
5087
- int _v;
5175
+ int _v = 0;
5088
5176
  {
5089
5177
  int res = SWIG_AsVal_long_SS_long(argv[0], NULL);
5090
5178
  _v = SWIG_CheckState(res);
@@ -5454,7 +5542,7 @@ SWIGINTERN VALUE _wrap_Event_addInfo(int nargs, VALUE *args, VALUE self) {
5454
5542
  argv[ii] = args[ii-1];
5455
5543
  }
5456
5544
  if (argc == 3) {
5457
- int _v;
5545
+ int _v = 0;
5458
5546
  void *vptr = 0;
5459
5547
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0);
5460
5548
  _v = SWIG_CheckState(res);
@@ -5472,7 +5560,7 @@ SWIGINTERN VALUE _wrap_Event_addInfo(int nargs, VALUE *args, VALUE self) {
5472
5560
  }
5473
5561
  }
5474
5562
  if (argc == 3) {
5475
- int _v;
5563
+ int _v = 0;
5476
5564
  void *vptr = 0;
5477
5565
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0);
5478
5566
  _v = SWIG_CheckState(res);
@@ -5491,7 +5579,7 @@ SWIGINTERN VALUE _wrap_Event_addInfo(int nargs, VALUE *args, VALUE self) {
5491
5579
  }
5492
5580
  }
5493
5581
  if (argc == 3) {
5494
- int _v;
5582
+ int _v = 0;
5495
5583
  void *vptr = 0;
5496
5584
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0);
5497
5585
  _v = SWIG_CheckState(res);
@@ -5510,7 +5598,7 @@ SWIGINTERN VALUE _wrap_Event_addInfo(int nargs, VALUE *args, VALUE self) {
5510
5598
  }
5511
5599
  }
5512
5600
  if (argc == 3) {
5513
- int _v;
5601
+ int _v = 0;
5514
5602
  void *vptr = 0;
5515
5603
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0);
5516
5604
  _v = SWIG_CheckState(res);
@@ -5527,7 +5615,7 @@ SWIGINTERN VALUE _wrap_Event_addInfo(int nargs, VALUE *args, VALUE self) {
5527
5615
  }
5528
5616
  }
5529
5617
  if (argc == 3) {
5530
- int _v;
5618
+ int _v = 0;
5531
5619
  void *vptr = 0;
5532
5620
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0);
5533
5621
  _v = SWIG_CheckState(res);
@@ -5546,7 +5634,7 @@ SWIGINTERN VALUE _wrap_Event_addInfo(int nargs, VALUE *args, VALUE self) {
5546
5634
  }
5547
5635
  }
5548
5636
  if (argc == 4) {
5549
- int _v;
5637
+ int _v = 0;
5550
5638
  void *vptr = 0;
5551
5639
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0);
5552
5640
  _v = SWIG_CheckState(res);
@@ -5811,7 +5899,7 @@ SWIGINTERN VALUE _wrap_Event_send(int nargs, VALUE *args, VALUE self) {
5811
5899
  argv[ii] = args[ii-1];
5812
5900
  }
5813
5901
  if (argc == 1) {
5814
- int _v;
5902
+ int _v = 0;
5815
5903
  void *vptr = 0;
5816
5904
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0);
5817
5905
  _v = SWIG_CheckState(res);
@@ -5820,7 +5908,7 @@ SWIGINTERN VALUE _wrap_Event_send(int nargs, VALUE *args, VALUE self) {
5820
5908
  }
5821
5909
  }
5822
5910
  if (argc == 2) {
5823
- int _v;
5911
+ int _v = 0;
5824
5912
  void *vptr = 0;
5825
5913
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0);
5826
5914
  _v = SWIG_CheckState(res);
@@ -6090,7 +6178,7 @@ SWIGINTERN VALUE _wrap_Span_createSpan(int nargs, VALUE *args, VALUE self) {
6090
6178
  argv[ii] = args[ii];
6091
6179
  }
6092
6180
  if (argc == 4) {
6093
- int _v;
6181
+ int _v = 0;
6094
6182
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
6095
6183
  _v = SWIG_CheckState(res);
6096
6184
  if (_v) {
@@ -6114,7 +6202,7 @@ SWIGINTERN VALUE _wrap_Span_createSpan(int nargs, VALUE *args, VALUE self) {
6114
6202
  }
6115
6203
  }
6116
6204
  if (argc == 5) {
6117
- int _v;
6205
+ int _v = 0;
6118
6206
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
6119
6207
  _v = SWIG_CheckState(res);
6120
6208
  if (_v) {
@@ -6341,7 +6429,7 @@ SWIGINTERN VALUE _wrap_Span_createHttpSpan(int nargs, VALUE *args, VALUE self) {
6341
6429
  argv[ii] = args[ii];
6342
6430
  }
6343
6431
  if (argc == 7) {
6344
- int _v;
6432
+ int _v = 0;
6345
6433
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
6346
6434
  _v = SWIG_CheckState(res);
6347
6435
  if (_v) {
@@ -6379,7 +6467,7 @@ SWIGINTERN VALUE _wrap_Span_createHttpSpan(int nargs, VALUE *args, VALUE self) {
6379
6467
  }
6380
6468
  }
6381
6469
  if (argc == 8) {
6382
- int _v;
6470
+ int _v = 0;
6383
6471
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
6384
6472
  _v = SWIG_CheckState(res);
6385
6473
  if (_v) {
@@ -6658,7 +6746,7 @@ _wrap_CustomMetrics_summary(int argc, VALUE *argv, VALUE self) {
6658
6746
  SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "size_t","CustomMetrics::summary", 7, argv[6] ));
6659
6747
  }
6660
6748
  arg7 = static_cast< size_t >(val7);
6661
- result = (int)CustomMetrics::summary((char const *)arg1,arg2,arg3,arg4,(char const *)arg5,(MetricTags const *)arg6,arg7);
6749
+ result = (int)CustomMetrics::summary((char const *)arg1,arg2,arg3,arg4,(char const *)arg5,(MetricTags const *)arg6,SWIG_STD_MOVE(arg7));
6662
6750
  vresult = SWIG_From_int(static_cast< int >(result));
6663
6751
  if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
6664
6752
  if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
@@ -6728,7 +6816,7 @@ _wrap_CustomMetrics_increment(int argc, VALUE *argv, VALUE self) {
6728
6816
  SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "size_t","CustomMetrics::increment", 6, argv[5] ));
6729
6817
  }
6730
6818
  arg6 = static_cast< size_t >(val6);
6731
- result = (int)CustomMetrics::increment((char const *)arg1,arg2,arg3,(char const *)arg4,(MetricTags const *)arg5,arg6);
6819
+ result = (int)CustomMetrics::increment((char const *)arg1,arg2,arg3,(char const *)arg4,(MetricTags const *)arg5,SWIG_STD_MOVE(arg6));
6732
6820
  vresult = SWIG_From_int(static_cast< int >(result));
6733
6821
  if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
6734
6822
  if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
@@ -6870,6 +6958,7 @@ _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
6870
6958
  int arg20 ;
6871
6959
  int arg21 ;
6872
6960
  int arg22 ;
6961
+ int arg23 ;
6873
6962
  int val2 ;
6874
6963
  int ecode2 = 0 ;
6875
6964
  int val4 ;
@@ -6900,10 +6989,12 @@ _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
6900
6989
  int ecode21 = 0 ;
6901
6990
  int val22 ;
6902
6991
  int ecode22 = 0 ;
6992
+ int val23 ;
6993
+ int ecode23 = 0 ;
6903
6994
  Reporter *result = 0 ;
6904
6995
 
6905
- if ((argc < 22) || (argc > 22)) {
6906
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 22)",argc); SWIG_fail;
6996
+ if ((argc < 23) || (argc > 23)) {
6997
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 23)",argc); SWIG_fail;
6907
6998
  }
6908
6999
  {
6909
7000
  std::string *ptr = (std::string *)0;
@@ -7043,7 +7134,12 @@ _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
7043
7134
  SWIG_exception_fail(SWIG_ArgError(ecode22), Ruby_Format_TypeError( "", "int","Reporter", 22, argv[21] ));
7044
7135
  }
7045
7136
  arg22 = static_cast< int >(val22);
7046
- result = (Reporter *)new Reporter(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19,arg20,arg21,arg22);
7137
+ ecode23 = SWIG_AsVal_int(argv[22], &val23);
7138
+ if (!SWIG_IsOK(ecode23)) {
7139
+ SWIG_exception_fail(SWIG_ArgError(ecode23), Ruby_Format_TypeError( "", "int","Reporter", 23, argv[22] ));
7140
+ }
7141
+ arg23 = static_cast< int >(val23);
7142
+ result = (Reporter *)new Reporter(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19,arg20,arg21,arg22,arg23);
7047
7143
  DATA_PTR(self) = result;
7048
7144
  return self;
7049
7145
  fail:
@@ -7229,7 +7325,7 @@ SWIGINTERN VALUE _wrap_Reporter_sendReport(int nargs, VALUE *args, VALUE self) {
7229
7325
  argv[ii] = args[ii-1];
7230
7326
  }
7231
7327
  if (argc == 2) {
7232
- int _v;
7328
+ int _v = 0;
7233
7329
  void *vptr = 0;
7234
7330
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
7235
7331
  _v = SWIG_CheckState(res);
@@ -7243,7 +7339,7 @@ SWIGINTERN VALUE _wrap_Reporter_sendReport(int nargs, VALUE *args, VALUE self) {
7243
7339
  }
7244
7340
  }
7245
7341
  if (argc == 3) {
7246
- int _v;
7342
+ int _v = 0;
7247
7343
  void *vptr = 0;
7248
7344
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
7249
7345
  _v = SWIG_CheckState(res);
@@ -7262,7 +7358,7 @@ SWIGINTERN VALUE _wrap_Reporter_sendReport(int nargs, VALUE *args, VALUE self) {
7262
7358
  }
7263
7359
  }
7264
7360
  if (argc == 3) {
7265
- int _v;
7361
+ int _v = 0;
7266
7362
  void *vptr = 0;
7267
7363
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
7268
7364
  _v = SWIG_CheckState(res);
@@ -7282,7 +7378,7 @@ SWIGINTERN VALUE _wrap_Reporter_sendReport(int nargs, VALUE *args, VALUE self) {
7282
7378
  }
7283
7379
  }
7284
7380
  if (argc == 4) {
7285
- int _v;
7381
+ int _v = 0;
7286
7382
  void *vptr = 0;
7287
7383
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
7288
7384
  _v = SWIG_CheckState(res);
@@ -7490,7 +7586,7 @@ SWIGINTERN VALUE _wrap_Reporter_sendStatus(int nargs, VALUE *args, VALUE self) {
7490
7586
  argv[ii] = args[ii-1];
7491
7587
  }
7492
7588
  if (argc == 2) {
7493
- int _v;
7589
+ int _v = 0;
7494
7590
  void *vptr = 0;
7495
7591
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
7496
7592
  _v = SWIG_CheckState(res);
@@ -7504,7 +7600,7 @@ SWIGINTERN VALUE _wrap_Reporter_sendStatus(int nargs, VALUE *args, VALUE self) {
7504
7600
  }
7505
7601
  }
7506
7602
  if (argc == 3) {
7507
- int _v;
7603
+ int _v = 0;
7508
7604
  void *vptr = 0;
7509
7605
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
7510
7606
  _v = SWIG_CheckState(res);
@@ -7523,7 +7619,7 @@ SWIGINTERN VALUE _wrap_Reporter_sendStatus(int nargs, VALUE *args, VALUE self) {
7523
7619
  }
7524
7620
  }
7525
7621
  if (argc == 3) {
7526
- int _v;
7622
+ int _v = 0;
7527
7623
  void *vptr = 0;
7528
7624
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
7529
7625
  _v = SWIG_CheckState(res);
@@ -7543,7 +7639,7 @@ SWIGINTERN VALUE _wrap_Reporter_sendStatus(int nargs, VALUE *args, VALUE self) {
7543
7639
  }
7544
7640
  }
7545
7641
  if (argc == 4) {
7546
- int _v;
7642
+ int _v = 0;
7547
7643
  void *vptr = 0;
7548
7644
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
7549
7645
  _v = SWIG_CheckState(res);
@@ -7950,7 +8046,7 @@ static swig_class SwigClassOboeAPI;
7950
8046
  SWIGINTERN VALUE
7951
8047
  _wrap_new_OboeAPI__SWIG_0(int argc, VALUE *argv, VALUE self) {
7952
8048
  OboeAPIOptions *arg1 = 0 ;
7953
- void *argp1 ;
8049
+ void *argp1 = 0 ;
7954
8050
  int res1 = 0 ;
7955
8051
  OboeAPI *result = 0 ;
7956
8052
 
@@ -8017,7 +8113,7 @@ SWIGINTERN VALUE _wrap_new_OboeAPI(int nargs, VALUE *args, VALUE self) {
8017
8113
  return _wrap_new_OboeAPI__SWIG_1(nargs, args, self);
8018
8114
  }
8019
8115
  if (argc == 1) {
8020
- int _v;
8116
+ int _v = 0;
8021
8117
  void *vptr = 0;
8022
8118
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPIOptions, SWIG_POINTER_NO_NULL);
8023
8119
  _v = SWIG_CheckState(res);
@@ -9809,7 +9905,7 @@ SWIGINTERN VALUE _wrap_OboeAPI_getTracingDecision(int nargs, VALUE *args, VALUE
9809
9905
  argv[ii] = args[ii-1];
9810
9906
  }
9811
9907
  if (argc == 1) {
9812
- int _v;
9908
+ int _v = 0;
9813
9909
  void *vptr = 0;
9814
9910
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
9815
9911
  _v = SWIG_CheckState(res);
@@ -9818,7 +9914,7 @@ SWIGINTERN VALUE _wrap_OboeAPI_getTracingDecision(int nargs, VALUE *args, VALUE
9818
9914
  }
9819
9915
  }
9820
9916
  if (argc == 2) {
9821
- int _v;
9917
+ int _v = 0;
9822
9918
  void *vptr = 0;
9823
9919
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
9824
9920
  _v = SWIG_CheckState(res);
@@ -9831,7 +9927,7 @@ SWIGINTERN VALUE _wrap_OboeAPI_getTracingDecision(int nargs, VALUE *args, VALUE
9831
9927
  }
9832
9928
  }
9833
9929
  if (argc == 3) {
9834
- int _v;
9930
+ int _v = 0;
9835
9931
  void *vptr = 0;
9836
9932
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
9837
9933
  _v = SWIG_CheckState(res);
@@ -9848,7 +9944,7 @@ SWIGINTERN VALUE _wrap_OboeAPI_getTracingDecision(int nargs, VALUE *args, VALUE
9848
9944
  }
9849
9945
  }
9850
9946
  if (argc == 4) {
9851
- int _v;
9947
+ int _v = 0;
9852
9948
  void *vptr = 0;
9853
9949
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
9854
9950
  _v = SWIG_CheckState(res);
@@ -9871,7 +9967,7 @@ SWIGINTERN VALUE _wrap_OboeAPI_getTracingDecision(int nargs, VALUE *args, VALUE
9871
9967
  }
9872
9968
  }
9873
9969
  if (argc == 5) {
9874
- int _v;
9970
+ int _v = 0;
9875
9971
  void *vptr = 0;
9876
9972
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
9877
9973
  _v = SWIG_CheckState(res);
@@ -9900,7 +9996,7 @@ SWIGINTERN VALUE _wrap_OboeAPI_getTracingDecision(int nargs, VALUE *args, VALUE
9900
9996
  }
9901
9997
  }
9902
9998
  if (argc == 6) {
9903
- int _v;
9999
+ int _v = 0;
9904
10000
  void *vptr = 0;
9905
10001
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
9906
10002
  _v = SWIG_CheckState(res);
@@ -9935,7 +10031,7 @@ SWIGINTERN VALUE _wrap_OboeAPI_getTracingDecision(int nargs, VALUE *args, VALUE
9935
10031
  }
9936
10032
  }
9937
10033
  if (argc == 7) {
9938
- int _v;
10034
+ int _v = 0;
9939
10035
  void *vptr = 0;
9940
10036
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
9941
10037
  _v = SWIG_CheckState(res);
@@ -9976,7 +10072,7 @@ SWIGINTERN VALUE _wrap_OboeAPI_getTracingDecision(int nargs, VALUE *args, VALUE
9976
10072
  }
9977
10073
  }
9978
10074
  if (argc == 8) {
9979
- int _v;
10075
+ int _v = 0;
9980
10076
  void *vptr = 0;
9981
10077
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
9982
10078
  _v = SWIG_CheckState(res);
@@ -10021,7 +10117,7 @@ SWIGINTERN VALUE _wrap_OboeAPI_getTracingDecision(int nargs, VALUE *args, VALUE
10021
10117
  }
10022
10118
  }
10023
10119
  if (argc == 9) {
10024
- int _v;
10120
+ int _v = 0;
10025
10121
  void *vptr = 0;
10026
10122
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
10027
10123
  _v = SWIG_CheckState(res);
@@ -10070,7 +10166,7 @@ SWIGINTERN VALUE _wrap_OboeAPI_getTracingDecision(int nargs, VALUE *args, VALUE
10070
10166
  }
10071
10167
  }
10072
10168
  if (argc == 10) {
10073
- int _v;
10169
+ int _v = 0;
10074
10170
  void *vptr = 0;
10075
10171
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
10076
10172
  _v = SWIG_CheckState(res);
@@ -10433,19 +10529,19 @@ static swig_type_info _swigt__p_Reporter = {"_p_Reporter", "Reporter *", 0, 0, (
10433
10529
  static swig_type_info _swigt__p_Span = {"_p_Span", "Span *", 0, 0, (void*)0, 0};
10434
10530
  static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
10435
10531
  static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
10436
- static swig_type_info _swigt__p_f_p_void_int_p_q_const__char_int_p_q_const__char__void = {"_p_f_p_void_int_p_q_const__char_int_p_q_const__char__void", "void (*)(void *,int,char const *,int,char const *)|OboeDebugLoggerFcn", 0, 0, (void*)0, 0};
10437
- static swig_type_info _swigt__p_int = {"_p_int", "intptr_t *|int *|int_least32_t *|int_fast32_t *|int32_t *|int_fast16_t *", 0, 0, (void*)0, 0};
10532
+ static swig_type_info _swigt__p_f_p_void_int_p_q_const__char_int_p_q_const__char__void = {"_p_f_p_void_int_p_q_const__char_int_p_q_const__char__void", "OboeDebugLoggerFcn|void (*)(void *,int,char const *,int,char const *)", 0, 0, (void*)0, 0};
10533
+ static swig_type_info _swigt__p_int = {"_p_int", "int32_t *|int_fast16_t *|int_fast32_t *|int_least32_t *|intptr_t *|int *", 0, 0, (void*)0, 0};
10438
10534
  static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
10439
- static swig_type_info _swigt__p_long_long = {"_p_long_long", "int_least64_t *|int_fast64_t *|int64_t *|long long *|intmax_t *", 0, 0, (void*)0, 0};
10535
+ static swig_type_info _swigt__p_long_long = {"_p_long_long", "int64_t *|int_fast64_t *|int_least64_t *|intmax_t *|long long *", 0, 0, (void*)0, 0};
10440
10536
  static swig_type_info _swigt__p_oboe_metadata_t = {"_p_oboe_metadata_t", "oboe_metadata_t *", 0, 0, (void*)0, 0};
10441
10537
  static swig_type_info _swigt__p_oboe_metric_tag_t = {"_p_oboe_metric_tag_t", "oboe_metric_tag_t *", 0, 0, (void*)0, 0};
10442
- static swig_type_info _swigt__p_short = {"_p_short", "short *|int_least16_t *|int16_t *", 0, 0, (void*)0, 0};
10443
- static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|int_least8_t *|int_fast8_t *|int8_t *", 0, 0, (void*)0, 0};
10538
+ static swig_type_info _swigt__p_short = {"_p_short", "int16_t *|int_least16_t *|short *", 0, 0, (void*)0, 0};
10539
+ static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "int8_t *|int_fast8_t *|int_least8_t *|signed char *", 0, 0, (void*)0, 0};
10444
10540
  static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *", 0, 0, (void*)0, 0};
10445
- static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uint_least8_t *|uint_fast8_t *|uint8_t *", 0, 0, (void*)0, 0};
10446
- static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "uintptr_t *|uint_least32_t *|uint_fast32_t *|uint32_t *|unsigned int *|uint_fast16_t *", 0, 0, (void*)0, 0};
10447
- static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "uint_least64_t *|uint_fast64_t *|uint64_t *|unsigned long long *|uintmax_t *", 0, 0, (void*)0, 0};
10448
- static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|uint_least16_t *|uint16_t *", 0, 0, (void*)0, 0};
10541
+ static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "uint8_t *|uint_fast8_t *|uint_least8_t *|unsigned char *", 0, 0, (void*)0, 0};
10542
+ static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "uint32_t *|uint_fast16_t *|uint_fast32_t *|uint_least32_t *|uintptr_t *|unsigned int *", 0, 0, (void*)0, 0};
10543
+ static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "uint64_t *|uint_fast64_t *|uint_least64_t *|uintmax_t *|unsigned long long *", 0, 0, (void*)0, 0};
10544
+ static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "uint16_t *|uint_least16_t *|unsigned short *", 0, 0, (void*)0, 0};
10449
10545
 
10450
10546
  static swig_type_info *swig_type_initial[] = {
10451
10547
  &_swigt__p_Config,
@@ -10493,7 +10589,7 @@ static swig_cast_info _swigc__p_f_p_void_int_p_q_const__char_int_p_q_const__char
10493
10589
  static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
10494
10590
  static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
10495
10591
  static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
10496
- static swig_cast_info _swigc__p_oboe_metadata_t[] = { {&_swigt__p_Metadata, _p_MetadataTo_p_oboe_metadata_t, 0, 0}, {&_swigt__p_oboe_metadata_t, 0, 0, 0},{0, 0, 0, 0}};
10592
+ static swig_cast_info _swigc__p_oboe_metadata_t[] = { {&_swigt__p_oboe_metadata_t, 0, 0, 0}, {&_swigt__p_Metadata, _p_MetadataTo_p_oboe_metadata_t, 0, 0},{0, 0, 0, 0}};
10497
10593
  static swig_cast_info _swigc__p_oboe_metric_tag_t[] = { {&_swigt__p_oboe_metric_tag_t, 0, 0, 0},{0, 0, 0, 0}};
10498
10594
  static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
10499
10595
  static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}};
@@ -10587,9 +10683,12 @@ extern "C" {
10587
10683
  #define SWIGRUNTIME_DEBUG
10588
10684
  #endif
10589
10685
 
10686
+ #ifndef SWIG_INIT_CLIENT_DATA_TYPE
10687
+ #define SWIG_INIT_CLIENT_DATA_TYPE void *
10688
+ #endif
10590
10689
 
10591
10690
  SWIGRUNTIME void
10592
- SWIG_InitializeModule(void *clientdata) {
10691
+ SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
10593
10692
  size_t i;
10594
10693
  swig_module_info *module_head, *iter;
10595
10694
  int init;