taglib-ruby 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,45 +1,17 @@
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.1.1
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
  static void free_taglib_fileref(void *ptr);
12
10
 
13
11
 
14
12
 
15
- #ifndef SWIGRUBY
13
+ #define SWIG_VERSION 0x040101
16
14
  #define SWIGRUBY
17
- #endif
18
-
19
-
20
-
21
- #ifdef __cplusplus
22
- /* SwigValueWrapper is described in swig.swg */
23
- template<typename T> class SwigValueWrapper {
24
- struct SwigMovePointer {
25
- T *ptr;
26
- SwigMovePointer(T *p) : ptr(p) { }
27
- ~SwigMovePointer() { delete ptr; }
28
- SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
29
- } pointer;
30
- SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
31
- SwigValueWrapper(const SwigValueWrapper<T>& rhs);
32
- public:
33
- SwigValueWrapper() : pointer(0) { }
34
- SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
35
- operator T&() const { return *pointer.ptr; }
36
- T *operator&() { return pointer.ptr; }
37
- };
38
-
39
- template <typename T> T SwigValueInit() {
40
- return T();
41
- }
42
- #endif
43
15
 
44
16
  /* -----------------------------------------------------------------------------
45
17
  * This section contains generic SWIG labels for method/variable
@@ -335,6 +307,8 @@ template <typename T> T SwigValueInit() {
335
307
  #define SWIG_POINTER_DISOWN 0x1
336
308
  #define SWIG_CAST_NEW_MEMORY 0x2
337
309
  #define SWIG_POINTER_NO_NULL 0x4
310
+ #define SWIG_POINTER_CLEAR 0x8
311
+ #define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
338
312
 
339
313
  /* Flags for new pointer objects */
340
314
  #define SWIG_POINTER_OWN 0x1
@@ -406,7 +380,7 @@ template <typename T> T SwigValueInit() {
406
380
  SWIG errors code.
407
381
 
408
382
  Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
409
- allows to return the 'cast rank', for example, if you have this
383
+ allows returning the 'cast rank', for example, if you have this
410
384
 
411
385
  int food(double)
412
386
  int fooi(int);
@@ -420,7 +394,13 @@ template <typename T> T SwigValueInit() {
420
394
  */
421
395
 
422
396
  #define SWIG_OK (0)
397
+ /* Runtime errors are < 0 */
423
398
  #define SWIG_ERROR (-1)
399
+ /* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */
400
+ /* Errors in range -100 to -199 are language specific errors defined in *errors.swg */
401
+ /* Errors < -200 are generic runtime specific errors */
402
+ #define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
403
+
424
404
  #define SWIG_IsOK(r) (r >= 0)
425
405
  #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
426
406
 
@@ -435,7 +415,7 @@ template <typename T> T SwigValueInit() {
435
415
  #define SWIG_OLDOBJ (SWIG_OK)
436
416
  #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
437
417
  #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
438
- /* Check, add and del mask methods */
418
+ /* Check, add and del object mask methods */
439
419
  #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
440
420
  #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
441
421
  #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
@@ -581,7 +561,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) {
581
561
  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
582
562
  */
583
563
  SWIGRUNTIME swig_cast_info *
584
- SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
564
+ SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty) {
585
565
  if (ty) {
586
566
  swig_cast_info *iter = ty->cast;
587
567
  while (iter) {
@@ -641,9 +621,9 @@ SWIG_TypeName(const swig_type_info *ty) {
641
621
  SWIGRUNTIME const char *
642
622
  SWIG_TypePrettyName(const swig_type_info *type) {
643
623
  /* The "str" field contains the equivalent pretty names of the
644
- type, separated by vertical-bar characters. We choose
645
- to print the last name, as it is often (?) the most
646
- specific. */
624
+ type, separated by vertical-bar characters. Choose the last
625
+ name. It should be the most specific; a fully resolved name
626
+ but not necessarily with default template parameters expanded. */
647
627
  if (!type) return NULL;
648
628
  if (type->str != NULL) {
649
629
  const char *last_name = type->str;
@@ -863,7 +843,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
863
843
  }
864
844
  #endif
865
845
 
866
- /* Errors in SWIG */
846
+ /* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */
867
847
  #define SWIG_UnknownError -1
868
848
  #define SWIG_IOError -2
869
849
  #define SWIG_RuntimeError -3
@@ -879,9 +859,25 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
879
859
  #define SWIG_NullReferenceError -13
880
860
 
881
861
 
862
+ #if __GNUC__ >= 7
863
+ #pragma GCC diagnostic push
864
+ #if defined(__cplusplus)
865
+ #pragma GCC diagnostic ignored "-Wregister"
866
+ #if __GNUC__ >= 10
867
+ #pragma GCC diagnostic ignored "-Wvolatile"
868
+ #if __GNUC__ >= 11
869
+ #pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion"
870
+ #endif
871
+ #endif
872
+ #endif
873
+ #endif
882
874
 
883
875
  #include <ruby.h>
884
876
 
877
+ #if __GNUC__ >= 7
878
+ #pragma GCC diagnostic pop
879
+ #endif
880
+
885
881
  /* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
886
882
  * breaks using rb_intern as an lvalue, as SWIG does. We work around this
887
883
  * issue for now by disabling this.
@@ -1661,6 +1657,11 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1661
1657
  own->own = 0;
1662
1658
  }
1663
1659
 
1660
+ if (((flags & SWIG_POINTER_RELEASE) == SWIG_POINTER_RELEASE)) {
1661
+ if (!RDATA(obj)->dfree)
1662
+ return SWIG_ERROR_RELEASE_NOT_OWNED;
1663
+ }
1664
+
1664
1665
  /* Check to see if the input object is giving up ownership
1665
1666
  of the underlying C struct or C++ object. If so then we
1666
1667
  need to reset the destructor since the Ruby object no
@@ -1672,7 +1673,7 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1672
1673
  swig_class *sklass = (swig_class *) ty->clientdata;
1673
1674
  track = sklass->trackObjects;
1674
1675
  }
1675
-
1676
+
1676
1677
  if (track) {
1677
1678
  /* We are tracking objects for this class. Thus we change the destructor
1678
1679
  * to SWIG_RubyRemoveTracking. This allows us to
@@ -1686,6 +1687,10 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1686
1687
  }
1687
1688
  }
1688
1689
 
1690
+ if (flags & SWIG_POINTER_CLEAR) {
1691
+ DATA_PTR(obj) = 0;
1692
+ }
1693
+
1689
1694
  /* Do type-checking if type info was provided */
1690
1695
  if (ty) {
1691
1696
  if (ty->clientdata) {
@@ -1793,6 +1798,7 @@ SWIG_Ruby_SetModule(swig_module_info *pointer)
1793
1798
  {
1794
1799
  /* register a new class */
1795
1800
  VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1801
+ rb_undef_alloc_func(cl);
1796
1802
  /* create and store the structure pointer to a global variable */
1797
1803
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1798
1804
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1823,7 +1829,7 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1823
1829
  {
1824
1830
  if ( rb_respond_to( proc, swig_arity_id ) )
1825
1831
  {
1826
- VALUE num = rb_funcall( proc, swig_arity_id, 0 );
1832
+ VALUE num = rb_funcall2( proc, swig_arity_id, 0, 0 );
1827
1833
  int arity = NUM2INT(num);
1828
1834
  if ( arity < 0 && (arity+1) < -minimal ) return 1;
1829
1835
  if ( arity == minimal ) return 1;
@@ -1841,7 +1847,7 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1841
1847
 
1842
1848
  #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1843
1849
 
1844
- #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
1850
+ #define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0)
1845
1851
 
1846
1852
 
1847
1853
 
@@ -1870,12 +1876,56 @@ static swig_module_info swig_module = {swig_types, 11, 0, 0, 0, 0};
1870
1876
 
1871
1877
  static VALUE mTagLib;
1872
1878
 
1873
- #define SWIG_RUBY_THREAD_BEGIN_BLOCK
1874
- #define SWIG_RUBY_THREAD_END_BLOCK
1879
+ #ifdef __cplusplus
1880
+ #include <utility>
1881
+ /* SwigValueWrapper is described in swig.swg */
1882
+ template<typename T> class SwigValueWrapper {
1883
+ struct SwigSmartPointer {
1884
+ T *ptr;
1885
+ SwigSmartPointer(T *p) : ptr(p) { }
1886
+ ~SwigSmartPointer() { delete ptr; }
1887
+ SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
1888
+ void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
1889
+ } pointer;
1890
+ SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
1891
+ SwigValueWrapper(const SwigValueWrapper<T>& rhs);
1892
+ public:
1893
+ SwigValueWrapper() : pointer(0) { }
1894
+ SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
1895
+ #if __cplusplus >=201103L
1896
+ SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
1897
+ operator T&&() const { return std::move(*pointer.ptr); }
1898
+ #else
1899
+ operator T&() const { return *pointer.ptr; }
1900
+ #endif
1901
+ T *operator&() const { return pointer.ptr; }
1902
+ static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
1903
+ };
1875
1904
 
1905
+ /*
1906
+ * SwigValueInit() is a generic initialisation solution as the following approach:
1907
+ *
1908
+ * T c_result = T();
1909
+ *
1910
+ * doesn't compile for all types for example:
1911
+ *
1912
+ * unsigned int c_result = unsigned int();
1913
+ */
1914
+ template <typename T> T SwigValueInit() {
1915
+ return T();
1916
+ }
1917
+
1918
+ #if __cplusplus >=201103L
1919
+ # define SWIG_STD_MOVE(OBJ) std::move(OBJ)
1920
+ #else
1921
+ # define SWIG_STD_MOVE(OBJ) OBJ
1922
+ #endif
1876
1923
 
1877
- #define SWIGVERSION 0x040002
1878
- #define SWIG_VERSION SWIGVERSION
1924
+ #endif
1925
+
1926
+
1927
+ #define SWIG_RUBY_THREAD_BEGIN_BLOCK
1928
+ #define SWIG_RUBY_THREAD_END_BLOCK
1879
1929
 
1880
1930
 
1881
1931
  #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
@@ -2120,7 +2170,7 @@ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
2120
2170
  }
2121
2171
 
2122
2172
 
2123
- /*@SWIG:/usr/local/Cellar/swig/4.0.2/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2173
+ /*@SWIG:/usr/local/Cellar/swig/4.1.1/share/swig/4.1.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2124
2174
  SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE arg)
2125
2175
  {
2126
2176
  VALUE *args = (VALUE *)arg;
@@ -2173,7 +2223,7 @@ SWIG_From_bool (bool value)
2173
2223
  }
2174
2224
 
2175
2225
 
2176
- /*@SWIG:/usr/local/Cellar/swig/4.0.2/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2226
+ /*@SWIG:/usr/local/Cellar/swig/4.1.1/share/swig/4.1.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2177
2227
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
2178
2228
  {
2179
2229
  VALUE *args = (VALUE *)arg;
@@ -2784,7 +2834,7 @@ SWIGINTERN VALUE _wrap_Tag_duplicate(int nargs, VALUE *args, VALUE self) {
2784
2834
  argv[ii] = args[ii];
2785
2835
  }
2786
2836
  if (argc == 2) {
2787
- int _v;
2837
+ int _v = 0;
2788
2838
  void *vptr = 0;
2789
2839
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__Tag, 0);
2790
2840
  _v = SWIG_CheckState(res);
@@ -2798,7 +2848,7 @@ SWIGINTERN VALUE _wrap_Tag_duplicate(int nargs, VALUE *args, VALUE self) {
2798
2848
  }
2799
2849
  }
2800
2850
  if (argc == 3) {
2801
- int _v;
2851
+ int _v = 0;
2802
2852
  void *vptr = 0;
2803
2853
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__Tag, 0);
2804
2854
  _v = SWIG_CheckState(res);
@@ -3258,7 +3308,7 @@ SWIGINTERN VALUE _wrap_File_find(int nargs, VALUE *args, VALUE self) {
3258
3308
  argv[ii] = args[ii-1];
3259
3309
  }
3260
3310
  if (argc == 2) {
3261
- int _v;
3311
+ int _v = 0;
3262
3312
  void *vptr = 0;
3263
3313
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3264
3314
  _v = SWIG_CheckState(res);
@@ -3271,7 +3321,7 @@ SWIGINTERN VALUE _wrap_File_find(int nargs, VALUE *args, VALUE self) {
3271
3321
  }
3272
3322
  }
3273
3323
  if (argc == 3) {
3274
- int _v;
3324
+ int _v = 0;
3275
3325
  void *vptr = 0;
3276
3326
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3277
3327
  _v = SWIG_CheckState(res);
@@ -3290,7 +3340,7 @@ SWIGINTERN VALUE _wrap_File_find(int nargs, VALUE *args, VALUE self) {
3290
3340
  }
3291
3341
  }
3292
3342
  if (argc == 4) {
3293
- int _v;
3343
+ int _v = 0;
3294
3344
  void *vptr = 0;
3295
3345
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3296
3346
  _v = SWIG_CheckState(res);
@@ -3447,7 +3497,7 @@ SWIGINTERN VALUE _wrap_File_rfind(int nargs, VALUE *args, VALUE self) {
3447
3497
  argv[ii] = args[ii-1];
3448
3498
  }
3449
3499
  if (argc == 2) {
3450
- int _v;
3500
+ int _v = 0;
3451
3501
  void *vptr = 0;
3452
3502
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3453
3503
  _v = SWIG_CheckState(res);
@@ -3460,7 +3510,7 @@ SWIGINTERN VALUE _wrap_File_rfind(int nargs, VALUE *args, VALUE self) {
3460
3510
  }
3461
3511
  }
3462
3512
  if (argc == 3) {
3463
- int _v;
3513
+ int _v = 0;
3464
3514
  void *vptr = 0;
3465
3515
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3466
3516
  _v = SWIG_CheckState(res);
@@ -3479,7 +3529,7 @@ SWIGINTERN VALUE _wrap_File_rfind(int nargs, VALUE *args, VALUE self) {
3479
3529
  }
3480
3530
  }
3481
3531
  if (argc == 4) {
3482
- int _v;
3532
+ int _v = 0;
3483
3533
  void *vptr = 0;
3484
3534
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3485
3535
  _v = SWIG_CheckState(res);
@@ -3639,7 +3689,7 @@ SWIGINTERN VALUE _wrap_File_insert(int nargs, VALUE *args, VALUE self) {
3639
3689
  argv[ii] = args[ii-1];
3640
3690
  }
3641
3691
  if (argc == 2) {
3642
- int _v;
3692
+ int _v = 0;
3643
3693
  void *vptr = 0;
3644
3694
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3645
3695
  _v = SWIG_CheckState(res);
@@ -3652,7 +3702,7 @@ SWIGINTERN VALUE _wrap_File_insert(int nargs, VALUE *args, VALUE self) {
3652
3702
  }
3653
3703
  }
3654
3704
  if (argc == 3) {
3655
- int _v;
3705
+ int _v = 0;
3656
3706
  void *vptr = 0;
3657
3707
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3658
3708
  _v = SWIG_CheckState(res);
@@ -3671,7 +3721,7 @@ SWIGINTERN VALUE _wrap_File_insert(int nargs, VALUE *args, VALUE self) {
3671
3721
  }
3672
3722
  }
3673
3723
  if (argc == 4) {
3674
- int _v;
3724
+ int _v = 0;
3675
3725
  void *vptr = 0;
3676
3726
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3677
3727
  _v = SWIG_CheckState(res);
@@ -3805,7 +3855,7 @@ SWIGINTERN VALUE _wrap_File_remove_block(int nargs, VALUE *args, VALUE self) {
3805
3855
  argv[ii] = args[ii-1];
3806
3856
  }
3807
3857
  if (argc == 1) {
3808
- int _v;
3858
+ int _v = 0;
3809
3859
  void *vptr = 0;
3810
3860
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3811
3861
  _v = SWIG_CheckState(res);
@@ -3814,7 +3864,7 @@ SWIGINTERN VALUE _wrap_File_remove_block(int nargs, VALUE *args, VALUE self) {
3814
3864
  }
3815
3865
  }
3816
3866
  if (argc == 2) {
3817
- int _v;
3867
+ int _v = 0;
3818
3868
  void *vptr = 0;
3819
3869
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3820
3870
  _v = SWIG_CheckState(res);
@@ -3829,7 +3879,7 @@ SWIGINTERN VALUE _wrap_File_remove_block(int nargs, VALUE *args, VALUE self) {
3829
3879
  }
3830
3880
  }
3831
3881
  if (argc == 3) {
3832
- int _v;
3882
+ int _v = 0;
3833
3883
  void *vptr = 0;
3834
3884
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3835
3885
  _v = SWIG_CheckState(res);
@@ -4010,7 +4060,7 @@ SWIGINTERN VALUE _wrap_File_seek(int nargs, VALUE *args, VALUE self) {
4010
4060
  argv[ii] = args[ii-1];
4011
4061
  }
4012
4062
  if (argc == 2) {
4013
- int _v;
4063
+ int _v = 0;
4014
4064
  void *vptr = 0;
4015
4065
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
4016
4066
  _v = SWIG_CheckState(res);
@@ -4025,7 +4075,7 @@ SWIGINTERN VALUE _wrap_File_seek(int nargs, VALUE *args, VALUE self) {
4025
4075
  }
4026
4076
  }
4027
4077
  if (argc == 3) {
4028
- int _v;
4078
+ int _v = 0;
4029
4079
  void *vptr = 0;
4030
4080
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
4031
4081
  _v = SWIG_CheckState(res);
@@ -4331,7 +4381,7 @@ _wrap_FileRef_allocate(int argc, VALUE *argv, VALUE self)
4331
4381
  SWIGINTERN VALUE
4332
4382
  _wrap_new_FileRef__SWIG_5(int argc, VALUE *argv, VALUE self) {
4333
4383
  TagLib::FileRef *arg1 = 0 ;
4334
- void *argp1 ;
4384
+ void *argp1 = 0 ;
4335
4385
  int res1 = 0 ;
4336
4386
  TagLib::FileRef *result = 0 ;
4337
4387
 
@@ -4369,7 +4419,7 @@ SWIGINTERN VALUE _wrap_new_FileRef(int nargs, VALUE *args, VALUE self) {
4369
4419
  return _wrap_new_FileRef__SWIG_0(nargs, args, self);
4370
4420
  }
4371
4421
  if (argc == 1) {
4372
- int _v;
4422
+ int _v = 0;
4373
4423
  void *vptr = 0;
4374
4424
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
4375
4425
  _v = SWIG_CheckState(res);
@@ -4378,7 +4428,7 @@ SWIGINTERN VALUE _wrap_new_FileRef(int nargs, VALUE *args, VALUE self) {
4378
4428
  }
4379
4429
  }
4380
4430
  if (argc == 1) {
4381
- int _v;
4431
+ int _v = 0;
4382
4432
  void *vptr = 0;
4383
4433
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__FileRef, SWIG_POINTER_NO_NULL);
4384
4434
  _v = SWIG_CheckState(res);
@@ -4387,7 +4437,7 @@ SWIGINTERN VALUE _wrap_new_FileRef(int nargs, VALUE *args, VALUE self) {
4387
4437
  }
4388
4438
  }
4389
4439
  if (argc == 1) {
4390
- int _v;
4440
+ int _v = 0;
4391
4441
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4392
4442
  _v = SWIG_CheckState(res);
4393
4443
  if (_v) {
@@ -4395,7 +4445,7 @@ SWIGINTERN VALUE _wrap_new_FileRef(int nargs, VALUE *args, VALUE self) {
4395
4445
  }
4396
4446
  }
4397
4447
  if (argc == 2) {
4398
- int _v;
4448
+ int _v = 0;
4399
4449
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4400
4450
  _v = SWIG_CheckState(res);
4401
4451
  if (_v) {
@@ -4409,7 +4459,7 @@ SWIGINTERN VALUE _wrap_new_FileRef(int nargs, VALUE *args, VALUE self) {
4409
4459
  }
4410
4460
  }
4411
4461
  if (argc == 3) {
4412
- int _v;
4462
+ int _v = 0;
4413
4463
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4414
4464
  _v = SWIG_CheckState(res);
4415
4465
  if (_v) {
@@ -4625,7 +4675,7 @@ _wrap_FileRef___eq__(int argc, VALUE *argv, VALUE self) {
4625
4675
  TagLib::FileRef *arg2 = 0 ;
4626
4676
  void *argp1 = 0 ;
4627
4677
  int res1 = 0 ;
4628
- void *argp2 ;
4678
+ void *argp2 = 0 ;
4629
4679
  int res2 = 0 ;
4630
4680
  bool result;
4631
4681
  VALUE vresult = Qnil;
@@ -4685,7 +4735,7 @@ _wrap_FileRef_create__SWIG_0(int argc, VALUE *argv, VALUE self) {
4685
4735
  SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::AudioProperties::ReadStyle","TagLib::FileRef::create", 3, argv[2] ));
4686
4736
  }
4687
4737
  arg3 = static_cast< TagLib::AudioProperties::ReadStyle >(val3);
4688
- result = (TagLib::File *)TagLib::FileRef::create(arg1,arg2,arg3);
4738
+ result = (TagLib::File *)TagLib::FileRef::create(SWIG_STD_MOVE(arg1),arg2,arg3);
4689
4739
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__File, 0 | 0 );
4690
4740
  return vresult;
4691
4741
  fail:
@@ -4716,7 +4766,7 @@ _wrap_FileRef_create__SWIG_1(int argc, VALUE *argv, VALUE self) {
4716
4766
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","TagLib::FileRef::create", 2, argv[1] ));
4717
4767
  }
4718
4768
  arg2 = static_cast< bool >(val2);
4719
- result = (TagLib::File *)TagLib::FileRef::create(arg1,arg2);
4769
+ result = (TagLib::File *)TagLib::FileRef::create(SWIG_STD_MOVE(arg1),arg2);
4720
4770
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__File, 0 | 0 );
4721
4771
  return vresult;
4722
4772
  fail:
@@ -4739,7 +4789,7 @@ _wrap_FileRef_create__SWIG_2(int argc, VALUE *argv, VALUE self) {
4739
4789
  SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory for file name.");
4740
4790
  }
4741
4791
  }
4742
- result = (TagLib::File *)TagLib::FileRef::create(arg1);
4792
+ result = (TagLib::File *)TagLib::FileRef::create(SWIG_STD_MOVE(arg1));
4743
4793
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__File, 0 | 0 );
4744
4794
  return vresult;
4745
4795
  fail:
@@ -4758,7 +4808,7 @@ SWIGINTERN VALUE _wrap_FileRef_create(int nargs, VALUE *args, VALUE self) {
4758
4808
  argv[ii] = args[ii];
4759
4809
  }
4760
4810
  if (argc == 1) {
4761
- int _v;
4811
+ int _v = 0;
4762
4812
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4763
4813
  _v = SWIG_CheckState(res);
4764
4814
  if (_v) {
@@ -4766,7 +4816,7 @@ SWIGINTERN VALUE _wrap_FileRef_create(int nargs, VALUE *args, VALUE self) {
4766
4816
  }
4767
4817
  }
4768
4818
  if (argc == 2) {
4769
- int _v;
4819
+ int _v = 0;
4770
4820
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4771
4821
  _v = SWIG_CheckState(res);
4772
4822
  if (_v) {
@@ -4780,7 +4830,7 @@ SWIGINTERN VALUE _wrap_FileRef_create(int nargs, VALUE *args, VALUE self) {
4780
4830
  }
4781
4831
  }
4782
4832
  if (argc == 3) {
4783
- int _v;
4833
+ int _v = 0;
4784
4834
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4785
4835
  _v = SWIG_CheckState(res);
4786
4836
  if (_v) {
@@ -4842,7 +4892,7 @@ static swig_type_info _swigt__p_TagLib__String = {"_p_TagLib__String", "TagLib::
4842
4892
  static swig_type_info _swigt__p_TagLib__Tag = {"_p_TagLib__Tag", "TagLib::Tag *", 0, 0, (void*)0, 0};
4843
4893
  static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
4844
4894
  static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "TagLib::uchar *|unsigned char *", 0, 0, (void*)0, 0};
4845
- static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|TagLib::uint *", 0, 0, (void*)0, 0};
4895
+ static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "TagLib::uint *|unsigned int *", 0, 0, (void*)0, 0};
4846
4896
  static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "TagLib::ulong *|unsigned long *", 0, 0, (void*)0, 0};
4847
4897
  static swig_type_info _swigt__p_wchar_t = {"_p_wchar_t", "TagLib::wchar *|wchar_t *", 0, 0, (void*)0, 0};
4848
4898
 
@@ -4941,9 +4991,12 @@ extern "C" {
4941
4991
  #define SWIGRUNTIME_DEBUG
4942
4992
  #endif
4943
4993
 
4994
+ #ifndef SWIG_INIT_CLIENT_DATA_TYPE
4995
+ #define SWIG_INIT_CLIENT_DATA_TYPE void *
4996
+ #endif
4944
4997
 
4945
4998
  SWIGRUNTIME void
4946
- SWIG_InitializeModule(void *clientdata) {
4999
+ SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
4947
5000
  size_t i;
4948
5001
  swig_module_info *module_head, *iter;
4949
5002
  int init;
@@ -23,6 +23,7 @@
23
23
  %ignore TagLib::FLAC::File::File(IOStream*, ID3v2::FrameFactory*, bool, Properties::ReadStyle);
24
24
  %ignore TagLib::FLAC::File::File(IOStream*, ID3v2::FrameFactory*, bool);
25
25
  %ignore TagLib::FLAC::File::File(IOStream*, ID3v2::FrameFactory*);
26
+ %ignore TagLib::FLAC::File::isSupported(IOStream *);
26
27
 
27
28
  %rename(id3v1_tag) TagLib::FLAC::File::ID3v1Tag;
28
29
  %rename(id3v2_tag) TagLib::FLAC::File::ID3v2Tag;