taglib-ruby 1.1.2 → 2.0.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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/.github/FUNDING.yml +1 -0
  3. data/CHANGELOG.md +22 -0
  4. data/README.md +16 -12
  5. data/docs/taglib/mpeg.rb +1 -9
  6. data/ext/extconf_common.rb +21 -12
  7. data/ext/taglib_aiff/taglib_aiff.i +5 -0
  8. data/ext/taglib_aiff/taglib_aiff_wrap.cxx +327 -111
  9. data/ext/taglib_base/includes.i +14 -14
  10. data/ext/taglib_base/taglib_base.i +37 -4
  11. data/ext/taglib_base/taglib_base_wrap.cxx +414 -422
  12. data/ext/taglib_flac/taglib_flac.i +8 -3
  13. data/ext/taglib_flac/taglib_flac_wrap.cxx +356 -406
  14. data/ext/taglib_flac_picture/taglib_flac_picture.i +4 -0
  15. data/ext/taglib_flac_picture/taglib_flac_picture_wrap.cxx +229 -122
  16. data/ext/taglib_id3v1/taglib_id3v1_wrap.cxx +196 -102
  17. data/ext/taglib_id3v2/taglib_id3v2.i +5 -0
  18. data/ext/taglib_id3v2/taglib_id3v2_wrap.cxx +727 -568
  19. data/ext/taglib_mp4/taglib_mp4.i +22 -18
  20. data/ext/taglib_mp4/taglib_mp4_wrap.cxx +2141 -1493
  21. data/ext/taglib_mpeg/taglib_mpeg.i +6 -0
  22. data/ext/taglib_mpeg/taglib_mpeg_wrap.cxx +546 -379
  23. data/ext/taglib_ogg/taglib_ogg.i +0 -2
  24. data/ext/taglib_ogg/taglib_ogg_wrap.cxx +162 -107
  25. data/ext/taglib_vorbis/taglib_vorbis.i +1 -0
  26. data/ext/taglib_vorbis/taglib_vorbis_wrap.cxx +141 -109
  27. data/ext/taglib_wav/taglib_wav.i +6 -2
  28. data/ext/taglib_wav/taglib_wav_wrap.cxx +290 -147
  29. data/lib/taglib/version.rb +3 -3
  30. data/taglib-ruby.gemspec +1 -0
  31. data/tasks/ext.rake +23 -39
  32. data/tasks/swig.rake +14 -4
  33. data/test/id3v2_write_test.rb +1 -1
  34. data/test/wav_examples_test.rb +1 -1
  35. data/test/wav_file_test.rb +1 -1
  36. data/test/wav_file_write_test.rb +6 -6
  37. metadata +4 -3
@@ -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
 
@@ -1854,12 +1860,13 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1854
1860
  #define SWIGTYPE_p_TagLib__String swig_types[4]
1855
1861
  #define SWIGTYPE_p_TagLib__Tag swig_types[5]
1856
1862
  #define SWIGTYPE_p_char swig_types[6]
1857
- #define SWIGTYPE_p_unsigned_char swig_types[7]
1858
- #define SWIGTYPE_p_unsigned_int swig_types[8]
1859
- #define SWIGTYPE_p_unsigned_long swig_types[9]
1860
- #define SWIGTYPE_p_wchar_t swig_types[10]
1861
- static swig_type_info *swig_types[12];
1862
- static swig_module_info swig_module = {swig_types, 11, 0, 0, 0, 0};
1863
+ #define SWIGTYPE_p_long_long swig_types[7]
1864
+ #define SWIGTYPE_p_unsigned_char swig_types[8]
1865
+ #define SWIGTYPE_p_unsigned_int swig_types[9]
1866
+ #define SWIGTYPE_p_unsigned_long swig_types[10]
1867
+ #define SWIGTYPE_p_wchar_t swig_types[11]
1868
+ static swig_type_info *swig_types[13];
1869
+ static swig_module_info swig_module = {swig_types, 12, 0, 0, 0, 0};
1863
1870
  #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1864
1871
  #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1865
1872
 
@@ -1870,12 +1877,56 @@ static swig_module_info swig_module = {swig_types, 11, 0, 0, 0, 0};
1870
1877
 
1871
1878
  static VALUE mTagLib;
1872
1879
 
1873
- #define SWIG_RUBY_THREAD_BEGIN_BLOCK
1874
- #define SWIG_RUBY_THREAD_END_BLOCK
1880
+ #ifdef __cplusplus
1881
+ #include <utility>
1882
+ /* SwigValueWrapper is described in swig.swg */
1883
+ template<typename T> class SwigValueWrapper {
1884
+ struct SwigSmartPointer {
1885
+ T *ptr;
1886
+ SwigSmartPointer(T *p) : ptr(p) { }
1887
+ ~SwigSmartPointer() { delete ptr; }
1888
+ SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
1889
+ void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
1890
+ } pointer;
1891
+ SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
1892
+ SwigValueWrapper(const SwigValueWrapper<T>& rhs);
1893
+ public:
1894
+ SwigValueWrapper() : pointer(0) { }
1895
+ SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
1896
+ #if __cplusplus >=201103L
1897
+ SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
1898
+ operator T&&() const { return std::move(*pointer.ptr); }
1899
+ #else
1900
+ operator T&() const { return *pointer.ptr; }
1901
+ #endif
1902
+ T *operator&() const { return pointer.ptr; }
1903
+ static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
1904
+ };
1905
+
1906
+ /*
1907
+ * SwigValueInit() is a generic initialisation solution as the following approach:
1908
+ *
1909
+ * T c_result = T();
1910
+ *
1911
+ * doesn't compile for all types for example:
1912
+ *
1913
+ * unsigned int c_result = unsigned int();
1914
+ */
1915
+ template <typename T> T SwigValueInit() {
1916
+ return T();
1917
+ }
1918
+
1919
+ #if __cplusplus >=201103L
1920
+ # define SWIG_STD_MOVE(OBJ) std::move(OBJ)
1921
+ #else
1922
+ # define SWIG_STD_MOVE(OBJ) OBJ
1923
+ #endif
1924
+
1925
+ #endif
1875
1926
 
1876
1927
 
1877
- #define SWIGVERSION 0x040002
1878
- #define SWIG_VERSION SWIGVERSION
1928
+ #define SWIG_RUBY_THREAD_BEGIN_BLOCK
1929
+ #define SWIG_RUBY_THREAD_END_BLOCK
1879
1930
 
1880
1931
 
1881
1932
  #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
@@ -1911,34 +1962,26 @@ static VALUE mTagLib;
1911
1962
  #endif
1912
1963
 
1913
1964
  VALUE taglib_bytevector_to_ruby_string(const TagLib::ByteVector &byteVector) {
1914
- if (byteVector.isNull()) {
1915
- return Qnil;
1916
- } else {
1917
- return rb_str_new(byteVector.data(), byteVector.size());
1918
- }
1965
+ return rb_str_new(byteVector.data(), byteVector.size());
1919
1966
  }
1920
1967
 
1921
1968
  TagLib::ByteVector ruby_string_to_taglib_bytevector(VALUE s) {
1922
1969
  if (NIL_P(s)) {
1923
- return TagLib::ByteVector::null;
1970
+ return TagLib::ByteVector();
1924
1971
  } else {
1925
1972
  return TagLib::ByteVector(RSTRING_PTR(StringValue(s)), RSTRING_LEN(s));
1926
1973
  }
1927
1974
  }
1928
1975
 
1929
1976
  VALUE taglib_string_to_ruby_string(const TagLib::String & string) {
1930
- if (string.isNull()) {
1931
- return Qnil;
1932
- } else {
1933
- VALUE result = rb_str_new2(string.toCString(true));
1934
- ASSOCIATE_UTF8_ENCODING(result);
1935
- return result;
1936
- }
1977
+ VALUE result = rb_str_new2(string.toCString(true));
1978
+ ASSOCIATE_UTF8_ENCODING(result);
1979
+ return result;
1937
1980
  }
1938
1981
 
1939
1982
  TagLib::String ruby_string_to_taglib_string(VALUE s) {
1940
1983
  if (NIL_P(s)) {
1941
- return TagLib::String::null;
1984
+ return TagLib::String();
1942
1985
  } else {
1943
1986
  return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(StringValue(s))), TagLib::String::UTF8);
1944
1987
  }
@@ -2027,6 +2070,13 @@ TagLib::FileName ruby_string_to_taglib_filename(VALUE s) {
2027
2070
  #endif
2028
2071
  }
2029
2072
 
2073
+ VALUE taglib_offset_t_to_ruby_int(TagLib::offset_t off) {
2074
+ #ifdef _WIN32
2075
+ return LL2NUM(off);
2076
+ #else
2077
+ return OFFT2NUM(off);
2078
+ #endif
2079
+ }
2030
2080
 
2031
2081
 
2032
2082
  #include <limits.h>
@@ -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:/swig/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:/swig/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2177
2227
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
2178
2228
  {
2179
2229
  VALUE *args = (VALUE *)arg;
@@ -2238,6 +2288,96 @@ SWIG_AsVal_bool (VALUE obj, bool *val)
2238
2288
  return SWIG_TypeError;
2239
2289
  }
2240
2290
 
2291
+
2292
+ #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
2293
+ # define SWIG_LONG_LONG_AVAILABLE
2294
+ #endif
2295
+
2296
+
2297
+ #ifdef SWIG_LONG_LONG_AVAILABLE
2298
+ /*@SWIG:/swig/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2299
+ SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE arg)
2300
+ {
2301
+ VALUE *args = (VALUE *)arg;
2302
+ VALUE obj = args[0];
2303
+ VALUE type = TYPE(obj);
2304
+ long long *res = (long long *)(args[1]);
2305
+ *res = type == T_FIXNUM ? NUM2ULL(obj) : rb_big2ull(obj);
2306
+ return obj;
2307
+ }
2308
+ /*@SWIG@*/
2309
+
2310
+ SWIGINTERN int
2311
+ SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val)
2312
+ {
2313
+ VALUE type = TYPE(obj);
2314
+ if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
2315
+ unsigned long long v;
2316
+ VALUE a[2];
2317
+ a[0] = obj;
2318
+ a[1] = (VALUE)(&v);
2319
+ if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2ULL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
2320
+ if (val) *val = v;
2321
+ return SWIG_OK;
2322
+ }
2323
+ }
2324
+ return SWIG_TypeError;
2325
+ }
2326
+ #endif
2327
+
2328
+
2329
+ SWIGINTERNINLINE int
2330
+ SWIG_AsVal_size_t (VALUE obj, size_t *val)
2331
+ {
2332
+ int res = SWIG_TypeError;
2333
+ #ifdef SWIG_LONG_LONG_AVAILABLE
2334
+ if (sizeof(size_t) <= sizeof(unsigned long)) {
2335
+ #endif
2336
+ unsigned long v;
2337
+ res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2338
+ if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2339
+ #ifdef SWIG_LONG_LONG_AVAILABLE
2340
+ } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
2341
+ unsigned long long v;
2342
+ res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0);
2343
+ if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2344
+ }
2345
+ #endif
2346
+ return res;
2347
+ }
2348
+
2349
+
2350
+ #ifdef SWIG_LONG_LONG_AVAILABLE
2351
+ /*@SWIG:/swig/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2352
+ SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE arg)
2353
+ {
2354
+ VALUE *args = (VALUE *)arg;
2355
+ VALUE obj = args[0];
2356
+ VALUE type = TYPE(obj);
2357
+ long long *res = (long long *)(args[1]);
2358
+ *res = type == T_FIXNUM ? NUM2LL(obj) : rb_big2ll(obj);
2359
+ return obj;
2360
+ }
2361
+ /*@SWIG@*/
2362
+
2363
+ SWIGINTERN int
2364
+ SWIG_AsVal_long_SS_long (VALUE obj, long long *val)
2365
+ {
2366
+ VALUE type = TYPE(obj);
2367
+ if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
2368
+ long long v;
2369
+ VALUE a[2];
2370
+ a[0] = obj;
2371
+ a[1] = (VALUE)(&v);
2372
+ if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
2373
+ if (val) *val = v;
2374
+ return SWIG_OK;
2375
+ }
2376
+ }
2377
+ return SWIG_TypeError;
2378
+ }
2379
+ #endif
2380
+
2241
2381
  SWIGINTERN void TagLib_FileRef_close(TagLib::FileRef *self){
2242
2382
  free_taglib_fileref(self);
2243
2383
  }
@@ -2784,7 +2924,7 @@ SWIGINTERN VALUE _wrap_Tag_duplicate(int nargs, VALUE *args, VALUE self) {
2784
2924
  argv[ii] = args[ii];
2785
2925
  }
2786
2926
  if (argc == 2) {
2787
- int _v;
2927
+ int _v = 0;
2788
2928
  void *vptr = 0;
2789
2929
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__Tag, 0);
2790
2930
  _v = SWIG_CheckState(res);
@@ -2798,7 +2938,7 @@ SWIGINTERN VALUE _wrap_Tag_duplicate(int nargs, VALUE *args, VALUE self) {
2798
2938
  }
2799
2939
  }
2800
2940
  if (argc == 3) {
2801
- int _v;
2941
+ int _v = 0;
2802
2942
  void *vptr = 0;
2803
2943
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__Tag, 0);
2804
2944
  _v = SWIG_CheckState(res);
@@ -2827,6 +2967,30 @@ fail:
2827
2967
  }
2828
2968
 
2829
2969
 
2970
+ SWIGINTERN VALUE
2971
+ _wrap_Tag_join_tag_values(int argc, VALUE *argv, VALUE self) {
2972
+ TagLib::StringList *arg1 = 0 ;
2973
+ TagLib::StringList tmp1 ;
2974
+ TagLib::String result;
2975
+ VALUE vresult = Qnil;
2976
+
2977
+ if ((argc < 1) || (argc > 1)) {
2978
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2979
+ }
2980
+ {
2981
+ tmp1 = ruby_array_to_taglib_string_list(argv[0]);
2982
+ arg1 = &tmp1;
2983
+ }
2984
+ result = TagLib::Tag::joinTagValues((TagLib::StringList const &)*arg1);
2985
+ {
2986
+ vresult = taglib_string_to_ruby_string(result);
2987
+ }
2988
+ return vresult;
2989
+ fail:
2990
+ return Qnil;
2991
+ }
2992
+
2993
+
2830
2994
  static swig_class SwigClassAudioProperties;
2831
2995
 
2832
2996
  SWIGINTERN void
@@ -3066,10 +3230,10 @@ fail:
3066
3230
  SWIGINTERN VALUE
3067
3231
  _wrap_File_read_block(int argc, VALUE *argv, VALUE self) {
3068
3232
  TagLib::File *arg1 = (TagLib::File *) 0 ;
3069
- unsigned long arg2 ;
3233
+ size_t arg2 ;
3070
3234
  void *argp1 = 0 ;
3071
3235
  int res1 = 0 ;
3072
- unsigned long val2 ;
3236
+ size_t val2 ;
3073
3237
  int ecode2 = 0 ;
3074
3238
  TagLib::ByteVector result;
3075
3239
  VALUE vresult = Qnil;
@@ -3082,11 +3246,11 @@ _wrap_File_read_block(int argc, VALUE *argv, VALUE self) {
3082
3246
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","readBlock", 1, self ));
3083
3247
  }
3084
3248
  arg1 = reinterpret_cast< TagLib::File * >(argp1);
3085
- ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
3249
+ ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
3086
3250
  if (!SWIG_IsOK(ecode2)) {
3087
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned long","readBlock", 2, argv[0] ));
3251
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","readBlock", 2, argv[0] ));
3088
3252
  }
3089
- arg2 = static_cast< unsigned long >(val2);
3253
+ arg2 = static_cast< size_t >(val2);
3090
3254
  result = (arg1)->readBlock(arg2);
3091
3255
  {
3092
3256
  vresult = taglib_bytevector_to_ruby_string(result);
@@ -3128,9 +3292,9 @@ fail:
3128
3292
  Document-method: TagLib::File.find
3129
3293
 
3130
3294
  call-seq:
3131
- find(pattern, fromOffset=0, before=TagLib::ByteVector()) -> long
3132
- find(pattern, fromOffset=0) -> long
3133
- find(pattern) -> long
3295
+ find(pattern, fromOffset=0, before=TagLib::ByteVector()) -> TagLib::offset_t
3296
+ find(pattern, fromOffset=0) -> TagLib::offset_t
3297
+ find(pattern) -> TagLib::offset_t
3134
3298
 
3135
3299
  Find an element in the class.
3136
3300
  */
@@ -3138,15 +3302,15 @@ SWIGINTERN VALUE
3138
3302
  _wrap_File_find__SWIG_0(int argc, VALUE *argv, VALUE self) {
3139
3303
  TagLib::File *arg1 = (TagLib::File *) 0 ;
3140
3304
  TagLib::ByteVector *arg2 = 0 ;
3141
- long arg3 ;
3305
+ TagLib::offset_t arg3 ;
3142
3306
  TagLib::ByteVector *arg4 = 0 ;
3143
3307
  void *argp1 = 0 ;
3144
3308
  int res1 = 0 ;
3145
3309
  TagLib::ByteVector tmp2 ;
3146
- long val3 ;
3310
+ long long val3 ;
3147
3311
  int ecode3 = 0 ;
3148
3312
  TagLib::ByteVector tmp4 ;
3149
- long result;
3313
+ TagLib::offset_t result;
3150
3314
  VALUE vresult = Qnil;
3151
3315
 
3152
3316
  if ((argc < 3) || (argc > 3)) {
@@ -3161,17 +3325,19 @@ _wrap_File_find__SWIG_0(int argc, VALUE *argv, VALUE self) {
3161
3325
  tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
3162
3326
  arg2 = &tmp2;
3163
3327
  }
3164
- ecode3 = SWIG_AsVal_long(argv[1], &val3);
3328
+ ecode3 = SWIG_AsVal_long_SS_long(argv[1], &val3);
3165
3329
  if (!SWIG_IsOK(ecode3)) {
3166
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "long","find", 3, argv[1] ));
3330
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::offset_t","find", 3, argv[1] ));
3167
3331
  }
3168
- arg3 = static_cast< long >(val3);
3332
+ arg3 = static_cast< TagLib::offset_t >(val3);
3169
3333
  {
3170
3334
  tmp4 = ruby_string_to_taglib_bytevector(argv[2]);
3171
3335
  arg4 = &tmp4;
3172
3336
  }
3173
- result = (long)(arg1)->find((TagLib::ByteVector const &)*arg2,arg3,(TagLib::ByteVector const &)*arg4);
3174
- vresult = SWIG_From_long(static_cast< long >(result));
3337
+ result = (TagLib::offset_t)(arg1)->find((TagLib::ByteVector const &)*arg2,arg3,(TagLib::ByteVector const &)*arg4);
3338
+ {
3339
+ vresult = taglib_offset_t_to_ruby_int(result);
3340
+ }
3175
3341
  return vresult;
3176
3342
  fail:
3177
3343
  return Qnil;
@@ -3182,13 +3348,13 @@ SWIGINTERN VALUE
3182
3348
  _wrap_File_find__SWIG_1(int argc, VALUE *argv, VALUE self) {
3183
3349
  TagLib::File *arg1 = (TagLib::File *) 0 ;
3184
3350
  TagLib::ByteVector *arg2 = 0 ;
3185
- long arg3 ;
3351
+ TagLib::offset_t arg3 ;
3186
3352
  void *argp1 = 0 ;
3187
3353
  int res1 = 0 ;
3188
3354
  TagLib::ByteVector tmp2 ;
3189
- long val3 ;
3355
+ long long val3 ;
3190
3356
  int ecode3 = 0 ;
3191
- long result;
3357
+ TagLib::offset_t result;
3192
3358
  VALUE vresult = Qnil;
3193
3359
 
3194
3360
  if ((argc < 2) || (argc > 2)) {
@@ -3203,13 +3369,15 @@ _wrap_File_find__SWIG_1(int argc, VALUE *argv, VALUE self) {
3203
3369
  tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
3204
3370
  arg2 = &tmp2;
3205
3371
  }
3206
- ecode3 = SWIG_AsVal_long(argv[1], &val3);
3372
+ ecode3 = SWIG_AsVal_long_SS_long(argv[1], &val3);
3207
3373
  if (!SWIG_IsOK(ecode3)) {
3208
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "long","find", 3, argv[1] ));
3374
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::offset_t","find", 3, argv[1] ));
3209
3375
  }
3210
- arg3 = static_cast< long >(val3);
3211
- result = (long)(arg1)->find((TagLib::ByteVector const &)*arg2,arg3);
3212
- vresult = SWIG_From_long(static_cast< long >(result));
3376
+ arg3 = static_cast< TagLib::offset_t >(val3);
3377
+ result = (TagLib::offset_t)(arg1)->find((TagLib::ByteVector const &)*arg2,arg3);
3378
+ {
3379
+ vresult = taglib_offset_t_to_ruby_int(result);
3380
+ }
3213
3381
  return vresult;
3214
3382
  fail:
3215
3383
  return Qnil;
@@ -3223,7 +3391,7 @@ _wrap_File_find__SWIG_2(int argc, VALUE *argv, VALUE self) {
3223
3391
  void *argp1 = 0 ;
3224
3392
  int res1 = 0 ;
3225
3393
  TagLib::ByteVector tmp2 ;
3226
- long result;
3394
+ TagLib::offset_t result;
3227
3395
  VALUE vresult = Qnil;
3228
3396
 
3229
3397
  if ((argc < 1) || (argc > 1)) {
@@ -3238,8 +3406,10 @@ _wrap_File_find__SWIG_2(int argc, VALUE *argv, VALUE self) {
3238
3406
  tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
3239
3407
  arg2 = &tmp2;
3240
3408
  }
3241
- result = (long)(arg1)->find((TagLib::ByteVector const &)*arg2);
3242
- vresult = SWIG_From_long(static_cast< long >(result));
3409
+ result = (TagLib::offset_t)(arg1)->find((TagLib::ByteVector const &)*arg2);
3410
+ {
3411
+ vresult = taglib_offset_t_to_ruby_int(result);
3412
+ }
3243
3413
  return vresult;
3244
3414
  fail:
3245
3415
  return Qnil;
@@ -3258,7 +3428,7 @@ SWIGINTERN VALUE _wrap_File_find(int nargs, VALUE *args, VALUE self) {
3258
3428
  argv[ii] = args[ii-1];
3259
3429
  }
3260
3430
  if (argc == 2) {
3261
- int _v;
3431
+ int _v = 0;
3262
3432
  void *vptr = 0;
3263
3433
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3264
3434
  _v = SWIG_CheckState(res);
@@ -3271,7 +3441,7 @@ SWIGINTERN VALUE _wrap_File_find(int nargs, VALUE *args, VALUE self) {
3271
3441
  }
3272
3442
  }
3273
3443
  if (argc == 3) {
3274
- int _v;
3444
+ int _v = 0;
3275
3445
  void *vptr = 0;
3276
3446
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3277
3447
  _v = SWIG_CheckState(res);
@@ -3280,7 +3450,7 @@ SWIGINTERN VALUE _wrap_File_find(int nargs, VALUE *args, VALUE self) {
3280
3450
  _v = SWIG_CheckState(res);
3281
3451
  if (_v) {
3282
3452
  {
3283
- int res = SWIG_AsVal_long(argv[2], NULL);
3453
+ int res = SWIG_AsVal_long_SS_long(argv[2], NULL);
3284
3454
  _v = SWIG_CheckState(res);
3285
3455
  }
3286
3456
  if (_v) {
@@ -3290,7 +3460,7 @@ SWIGINTERN VALUE _wrap_File_find(int nargs, VALUE *args, VALUE self) {
3290
3460
  }
3291
3461
  }
3292
3462
  if (argc == 4) {
3293
- int _v;
3463
+ int _v = 0;
3294
3464
  void *vptr = 0;
3295
3465
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3296
3466
  _v = SWIG_CheckState(res);
@@ -3299,7 +3469,7 @@ SWIGINTERN VALUE _wrap_File_find(int nargs, VALUE *args, VALUE self) {
3299
3469
  _v = SWIG_CheckState(res);
3300
3470
  if (_v) {
3301
3471
  {
3302
- int res = SWIG_AsVal_long(argv[2], NULL);
3472
+ int res = SWIG_AsVal_long_SS_long(argv[2], NULL);
3303
3473
  _v = SWIG_CheckState(res);
3304
3474
  }
3305
3475
  if (_v) {
@@ -3315,9 +3485,9 @@ SWIGINTERN VALUE _wrap_File_find(int nargs, VALUE *args, VALUE self) {
3315
3485
 
3316
3486
  fail:
3317
3487
  Ruby_Format_OverloadedError( argc, 5, "File.find",
3318
- " long File.find(TagLib::ByteVector const &pattern, long fromOffset, TagLib::ByteVector const &before)\n"
3319
- " long File.find(TagLib::ByteVector const &pattern, long fromOffset)\n"
3320
- " long File.find(TagLib::ByteVector const &pattern)\n");
3488
+ " TagLib::offset_t File.find(TagLib::ByteVector const &pattern, TagLib::offset_t fromOffset, TagLib::ByteVector const &before)\n"
3489
+ " TagLib::offset_t File.find(TagLib::ByteVector const &pattern, TagLib::offset_t fromOffset)\n"
3490
+ " TagLib::offset_t File.find(TagLib::ByteVector const &pattern)\n");
3321
3491
 
3322
3492
  return Qnil;
3323
3493
  }
@@ -3327,15 +3497,15 @@ SWIGINTERN VALUE
3327
3497
  _wrap_File_rfind__SWIG_0(int argc, VALUE *argv, VALUE self) {
3328
3498
  TagLib::File *arg1 = (TagLib::File *) 0 ;
3329
3499
  TagLib::ByteVector *arg2 = 0 ;
3330
- long arg3 ;
3500
+ TagLib::offset_t arg3 ;
3331
3501
  TagLib::ByteVector *arg4 = 0 ;
3332
3502
  void *argp1 = 0 ;
3333
3503
  int res1 = 0 ;
3334
3504
  TagLib::ByteVector tmp2 ;
3335
- long val3 ;
3505
+ long long val3 ;
3336
3506
  int ecode3 = 0 ;
3337
3507
  TagLib::ByteVector tmp4 ;
3338
- long result;
3508
+ TagLib::offset_t result;
3339
3509
  VALUE vresult = Qnil;
3340
3510
 
3341
3511
  if ((argc < 3) || (argc > 3)) {
@@ -3350,17 +3520,19 @@ _wrap_File_rfind__SWIG_0(int argc, VALUE *argv, VALUE self) {
3350
3520
  tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
3351
3521
  arg2 = &tmp2;
3352
3522
  }
3353
- ecode3 = SWIG_AsVal_long(argv[1], &val3);
3523
+ ecode3 = SWIG_AsVal_long_SS_long(argv[1], &val3);
3354
3524
  if (!SWIG_IsOK(ecode3)) {
3355
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "long","rfind", 3, argv[1] ));
3525
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::offset_t","rfind", 3, argv[1] ));
3356
3526
  }
3357
- arg3 = static_cast< long >(val3);
3527
+ arg3 = static_cast< TagLib::offset_t >(val3);
3358
3528
  {
3359
3529
  tmp4 = ruby_string_to_taglib_bytevector(argv[2]);
3360
3530
  arg4 = &tmp4;
3361
3531
  }
3362
- result = (long)(arg1)->rfind((TagLib::ByteVector const &)*arg2,arg3,(TagLib::ByteVector const &)*arg4);
3363
- vresult = SWIG_From_long(static_cast< long >(result));
3532
+ result = (TagLib::offset_t)(arg1)->rfind((TagLib::ByteVector const &)*arg2,arg3,(TagLib::ByteVector const &)*arg4);
3533
+ {
3534
+ vresult = taglib_offset_t_to_ruby_int(result);
3535
+ }
3364
3536
  return vresult;
3365
3537
  fail:
3366
3538
  return Qnil;
@@ -3371,13 +3543,13 @@ SWIGINTERN VALUE
3371
3543
  _wrap_File_rfind__SWIG_1(int argc, VALUE *argv, VALUE self) {
3372
3544
  TagLib::File *arg1 = (TagLib::File *) 0 ;
3373
3545
  TagLib::ByteVector *arg2 = 0 ;
3374
- long arg3 ;
3546
+ TagLib::offset_t arg3 ;
3375
3547
  void *argp1 = 0 ;
3376
3548
  int res1 = 0 ;
3377
3549
  TagLib::ByteVector tmp2 ;
3378
- long val3 ;
3550
+ long long val3 ;
3379
3551
  int ecode3 = 0 ;
3380
- long result;
3552
+ TagLib::offset_t result;
3381
3553
  VALUE vresult = Qnil;
3382
3554
 
3383
3555
  if ((argc < 2) || (argc > 2)) {
@@ -3392,13 +3564,15 @@ _wrap_File_rfind__SWIG_1(int argc, VALUE *argv, VALUE self) {
3392
3564
  tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
3393
3565
  arg2 = &tmp2;
3394
3566
  }
3395
- ecode3 = SWIG_AsVal_long(argv[1], &val3);
3567
+ ecode3 = SWIG_AsVal_long_SS_long(argv[1], &val3);
3396
3568
  if (!SWIG_IsOK(ecode3)) {
3397
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "long","rfind", 3, argv[1] ));
3569
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::offset_t","rfind", 3, argv[1] ));
3398
3570
  }
3399
- arg3 = static_cast< long >(val3);
3400
- result = (long)(arg1)->rfind((TagLib::ByteVector const &)*arg2,arg3);
3401
- vresult = SWIG_From_long(static_cast< long >(result));
3571
+ arg3 = static_cast< TagLib::offset_t >(val3);
3572
+ result = (TagLib::offset_t)(arg1)->rfind((TagLib::ByteVector const &)*arg2,arg3);
3573
+ {
3574
+ vresult = taglib_offset_t_to_ruby_int(result);
3575
+ }
3402
3576
  return vresult;
3403
3577
  fail:
3404
3578
  return Qnil;
@@ -3412,7 +3586,7 @@ _wrap_File_rfind__SWIG_2(int argc, VALUE *argv, VALUE self) {
3412
3586
  void *argp1 = 0 ;
3413
3587
  int res1 = 0 ;
3414
3588
  TagLib::ByteVector tmp2 ;
3415
- long result;
3589
+ TagLib::offset_t result;
3416
3590
  VALUE vresult = Qnil;
3417
3591
 
3418
3592
  if ((argc < 1) || (argc > 1)) {
@@ -3427,8 +3601,10 @@ _wrap_File_rfind__SWIG_2(int argc, VALUE *argv, VALUE self) {
3427
3601
  tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
3428
3602
  arg2 = &tmp2;
3429
3603
  }
3430
- result = (long)(arg1)->rfind((TagLib::ByteVector const &)*arg2);
3431
- vresult = SWIG_From_long(static_cast< long >(result));
3604
+ result = (TagLib::offset_t)(arg1)->rfind((TagLib::ByteVector const &)*arg2);
3605
+ {
3606
+ vresult = taglib_offset_t_to_ruby_int(result);
3607
+ }
3432
3608
  return vresult;
3433
3609
  fail:
3434
3610
  return Qnil;
@@ -3447,7 +3623,7 @@ SWIGINTERN VALUE _wrap_File_rfind(int nargs, VALUE *args, VALUE self) {
3447
3623
  argv[ii] = args[ii-1];
3448
3624
  }
3449
3625
  if (argc == 2) {
3450
- int _v;
3626
+ int _v = 0;
3451
3627
  void *vptr = 0;
3452
3628
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3453
3629
  _v = SWIG_CheckState(res);
@@ -3460,7 +3636,7 @@ SWIGINTERN VALUE _wrap_File_rfind(int nargs, VALUE *args, VALUE self) {
3460
3636
  }
3461
3637
  }
3462
3638
  if (argc == 3) {
3463
- int _v;
3639
+ int _v = 0;
3464
3640
  void *vptr = 0;
3465
3641
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3466
3642
  _v = SWIG_CheckState(res);
@@ -3469,7 +3645,7 @@ SWIGINTERN VALUE _wrap_File_rfind(int nargs, VALUE *args, VALUE self) {
3469
3645
  _v = SWIG_CheckState(res);
3470
3646
  if (_v) {
3471
3647
  {
3472
- int res = SWIG_AsVal_long(argv[2], NULL);
3648
+ int res = SWIG_AsVal_long_SS_long(argv[2], NULL);
3473
3649
  _v = SWIG_CheckState(res);
3474
3650
  }
3475
3651
  if (_v) {
@@ -3479,7 +3655,7 @@ SWIGINTERN VALUE _wrap_File_rfind(int nargs, VALUE *args, VALUE self) {
3479
3655
  }
3480
3656
  }
3481
3657
  if (argc == 4) {
3482
- int _v;
3658
+ int _v = 0;
3483
3659
  void *vptr = 0;
3484
3660
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3485
3661
  _v = SWIG_CheckState(res);
@@ -3488,7 +3664,7 @@ SWIGINTERN VALUE _wrap_File_rfind(int nargs, VALUE *args, VALUE self) {
3488
3664
  _v = SWIG_CheckState(res);
3489
3665
  if (_v) {
3490
3666
  {
3491
- int res = SWIG_AsVal_long(argv[2], NULL);
3667
+ int res = SWIG_AsVal_long_SS_long(argv[2], NULL);
3492
3668
  _v = SWIG_CheckState(res);
3493
3669
  }
3494
3670
  if (_v) {
@@ -3504,9 +3680,9 @@ SWIGINTERN VALUE _wrap_File_rfind(int nargs, VALUE *args, VALUE self) {
3504
3680
 
3505
3681
  fail:
3506
3682
  Ruby_Format_OverloadedError( argc, 5, "File.rfind",
3507
- " long File.rfind(TagLib::ByteVector const &pattern, long fromOffset, TagLib::ByteVector const &before)\n"
3508
- " long File.rfind(TagLib::ByteVector const &pattern, long fromOffset)\n"
3509
- " long File.rfind(TagLib::ByteVector const &pattern)\n");
3683
+ " TagLib::offset_t File.rfind(TagLib::ByteVector const &pattern, TagLib::offset_t fromOffset, TagLib::ByteVector const &before)\n"
3684
+ " TagLib::offset_t File.rfind(TagLib::ByteVector const &pattern, TagLib::offset_t fromOffset)\n"
3685
+ " TagLib::offset_t File.rfind(TagLib::ByteVector const &pattern)\n");
3510
3686
 
3511
3687
  return Qnil;
3512
3688
  }
@@ -3526,14 +3702,14 @@ SWIGINTERN VALUE
3526
3702
  _wrap_File_insert__SWIG_0(int argc, VALUE *argv, VALUE self) {
3527
3703
  TagLib::File *arg1 = (TagLib::File *) 0 ;
3528
3704
  TagLib::ByteVector *arg2 = 0 ;
3529
- unsigned long arg3 ;
3530
- unsigned long arg4 ;
3705
+ TagLib::offset_t arg3 ;
3706
+ size_t arg4 ;
3531
3707
  void *argp1 = 0 ;
3532
3708
  int res1 = 0 ;
3533
3709
  TagLib::ByteVector tmp2 ;
3534
- unsigned long val3 ;
3710
+ long long val3 ;
3535
3711
  int ecode3 = 0 ;
3536
- unsigned long val4 ;
3712
+ size_t val4 ;
3537
3713
  int ecode4 = 0 ;
3538
3714
 
3539
3715
  if ((argc < 3) || (argc > 3)) {
@@ -3548,16 +3724,16 @@ _wrap_File_insert__SWIG_0(int argc, VALUE *argv, VALUE self) {
3548
3724
  tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
3549
3725
  arg2 = &tmp2;
3550
3726
  }
3551
- ecode3 = SWIG_AsVal_unsigned_SS_long(argv[1], &val3);
3727
+ ecode3 = SWIG_AsVal_long_SS_long(argv[1], &val3);
3552
3728
  if (!SWIG_IsOK(ecode3)) {
3553
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned long","insert", 3, argv[1] ));
3729
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::offset_t","insert", 3, argv[1] ));
3554
3730
  }
3555
- arg3 = static_cast< unsigned long >(val3);
3556
- ecode4 = SWIG_AsVal_unsigned_SS_long(argv[2], &val4);
3731
+ arg3 = static_cast< TagLib::offset_t >(val3);
3732
+ ecode4 = SWIG_AsVal_size_t(argv[2], &val4);
3557
3733
  if (!SWIG_IsOK(ecode4)) {
3558
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned long","insert", 4, argv[2] ));
3734
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","insert", 4, argv[2] ));
3559
3735
  }
3560
- arg4 = static_cast< unsigned long >(val4);
3736
+ arg4 = static_cast< size_t >(val4);
3561
3737
  (arg1)->insert((TagLib::ByteVector const &)*arg2,arg3,arg4);
3562
3738
  return Qnil;
3563
3739
  fail:
@@ -3569,11 +3745,11 @@ SWIGINTERN VALUE
3569
3745
  _wrap_File_insert__SWIG_1(int argc, VALUE *argv, VALUE self) {
3570
3746
  TagLib::File *arg1 = (TagLib::File *) 0 ;
3571
3747
  TagLib::ByteVector *arg2 = 0 ;
3572
- unsigned long arg3 ;
3748
+ TagLib::offset_t arg3 ;
3573
3749
  void *argp1 = 0 ;
3574
3750
  int res1 = 0 ;
3575
3751
  TagLib::ByteVector tmp2 ;
3576
- unsigned long val3 ;
3752
+ long long val3 ;
3577
3753
  int ecode3 = 0 ;
3578
3754
 
3579
3755
  if ((argc < 2) || (argc > 2)) {
@@ -3588,11 +3764,11 @@ _wrap_File_insert__SWIG_1(int argc, VALUE *argv, VALUE self) {
3588
3764
  tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
3589
3765
  arg2 = &tmp2;
3590
3766
  }
3591
- ecode3 = SWIG_AsVal_unsigned_SS_long(argv[1], &val3);
3767
+ ecode3 = SWIG_AsVal_long_SS_long(argv[1], &val3);
3592
3768
  if (!SWIG_IsOK(ecode3)) {
3593
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned long","insert", 3, argv[1] ));
3769
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::offset_t","insert", 3, argv[1] ));
3594
3770
  }
3595
- arg3 = static_cast< unsigned long >(val3);
3771
+ arg3 = static_cast< TagLib::offset_t >(val3);
3596
3772
  (arg1)->insert((TagLib::ByteVector const &)*arg2,arg3);
3597
3773
  return Qnil;
3598
3774
  fail:
@@ -3639,7 +3815,7 @@ SWIGINTERN VALUE _wrap_File_insert(int nargs, VALUE *args, VALUE self) {
3639
3815
  argv[ii] = args[ii-1];
3640
3816
  }
3641
3817
  if (argc == 2) {
3642
- int _v;
3818
+ int _v = 0;
3643
3819
  void *vptr = 0;
3644
3820
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3645
3821
  _v = SWIG_CheckState(res);
@@ -3652,7 +3828,7 @@ SWIGINTERN VALUE _wrap_File_insert(int nargs, VALUE *args, VALUE self) {
3652
3828
  }
3653
3829
  }
3654
3830
  if (argc == 3) {
3655
- int _v;
3831
+ int _v = 0;
3656
3832
  void *vptr = 0;
3657
3833
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3658
3834
  _v = SWIG_CheckState(res);
@@ -3661,7 +3837,7 @@ SWIGINTERN VALUE _wrap_File_insert(int nargs, VALUE *args, VALUE self) {
3661
3837
  _v = SWIG_CheckState(res);
3662
3838
  if (_v) {
3663
3839
  {
3664
- int res = SWIG_AsVal_unsigned_SS_long(argv[2], NULL);
3840
+ int res = SWIG_AsVal_long_SS_long(argv[2], NULL);
3665
3841
  _v = SWIG_CheckState(res);
3666
3842
  }
3667
3843
  if (_v) {
@@ -3671,7 +3847,7 @@ SWIGINTERN VALUE _wrap_File_insert(int nargs, VALUE *args, VALUE self) {
3671
3847
  }
3672
3848
  }
3673
3849
  if (argc == 4) {
3674
- int _v;
3850
+ int _v = 0;
3675
3851
  void *vptr = 0;
3676
3852
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3677
3853
  _v = SWIG_CheckState(res);
@@ -3680,12 +3856,12 @@ SWIGINTERN VALUE _wrap_File_insert(int nargs, VALUE *args, VALUE self) {
3680
3856
  _v = SWIG_CheckState(res);
3681
3857
  if (_v) {
3682
3858
  {
3683
- int res = SWIG_AsVal_unsigned_SS_long(argv[2], NULL);
3859
+ int res = SWIG_AsVal_long_SS_long(argv[2], NULL);
3684
3860
  _v = SWIG_CheckState(res);
3685
3861
  }
3686
3862
  if (_v) {
3687
3863
  {
3688
- int res = SWIG_AsVal_unsigned_SS_long(argv[3], NULL);
3864
+ int res = SWIG_AsVal_size_t(argv[3], NULL);
3689
3865
  _v = SWIG_CheckState(res);
3690
3866
  }
3691
3867
  if (_v) {
@@ -3698,8 +3874,8 @@ SWIGINTERN VALUE _wrap_File_insert(int nargs, VALUE *args, VALUE self) {
3698
3874
 
3699
3875
  fail:
3700
3876
  Ruby_Format_OverloadedError( argc, 5, "File.insert",
3701
- " void File.insert(TagLib::ByteVector const &data, unsigned long start, unsigned long replace)\n"
3702
- " void File.insert(TagLib::ByteVector const &data, unsigned long start)\n"
3877
+ " void File.insert(TagLib::ByteVector const &data, TagLib::offset_t start, size_t replace)\n"
3878
+ " void File.insert(TagLib::ByteVector const &data, TagLib::offset_t start)\n"
3703
3879
  " void File.insert(TagLib::ByteVector const &data)\n");
3704
3880
 
3705
3881
  return Qnil;
@@ -3709,13 +3885,13 @@ fail:
3709
3885
  SWIGINTERN VALUE
3710
3886
  _wrap_File_remove_block__SWIG_0(int argc, VALUE *argv, VALUE self) {
3711
3887
  TagLib::File *arg1 = (TagLib::File *) 0 ;
3712
- unsigned long arg2 ;
3713
- unsigned long arg3 ;
3888
+ TagLib::offset_t arg2 ;
3889
+ size_t arg3 ;
3714
3890
  void *argp1 = 0 ;
3715
3891
  int res1 = 0 ;
3716
- unsigned long val2 ;
3892
+ long long val2 ;
3717
3893
  int ecode2 = 0 ;
3718
- unsigned long val3 ;
3894
+ size_t val3 ;
3719
3895
  int ecode3 = 0 ;
3720
3896
 
3721
3897
  if ((argc < 2) || (argc > 2)) {
@@ -3726,16 +3902,16 @@ _wrap_File_remove_block__SWIG_0(int argc, VALUE *argv, VALUE self) {
3726
3902
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","removeBlock", 1, self ));
3727
3903
  }
3728
3904
  arg1 = reinterpret_cast< TagLib::File * >(argp1);
3729
- ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
3905
+ ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2);
3730
3906
  if (!SWIG_IsOK(ecode2)) {
3731
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned long","removeBlock", 2, argv[0] ));
3907
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::offset_t","removeBlock", 2, argv[0] ));
3732
3908
  }
3733
- arg2 = static_cast< unsigned long >(val2);
3734
- ecode3 = SWIG_AsVal_unsigned_SS_long(argv[1], &val3);
3909
+ arg2 = static_cast< TagLib::offset_t >(val2);
3910
+ ecode3 = SWIG_AsVal_size_t(argv[1], &val3);
3735
3911
  if (!SWIG_IsOK(ecode3)) {
3736
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned long","removeBlock", 3, argv[1] ));
3912
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","removeBlock", 3, argv[1] ));
3737
3913
  }
3738
- arg3 = static_cast< unsigned long >(val3);
3914
+ arg3 = static_cast< size_t >(val3);
3739
3915
  (arg1)->removeBlock(arg2,arg3);
3740
3916
  return Qnil;
3741
3917
  fail:
@@ -3746,10 +3922,10 @@ fail:
3746
3922
  SWIGINTERN VALUE
3747
3923
  _wrap_File_remove_block__SWIG_1(int argc, VALUE *argv, VALUE self) {
3748
3924
  TagLib::File *arg1 = (TagLib::File *) 0 ;
3749
- unsigned long arg2 ;
3925
+ TagLib::offset_t arg2 ;
3750
3926
  void *argp1 = 0 ;
3751
3927
  int res1 = 0 ;
3752
- unsigned long val2 ;
3928
+ long long val2 ;
3753
3929
  int ecode2 = 0 ;
3754
3930
 
3755
3931
  if ((argc < 1) || (argc > 1)) {
@@ -3760,11 +3936,11 @@ _wrap_File_remove_block__SWIG_1(int argc, VALUE *argv, VALUE self) {
3760
3936
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","removeBlock", 1, self ));
3761
3937
  }
3762
3938
  arg1 = reinterpret_cast< TagLib::File * >(argp1);
3763
- ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
3939
+ ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2);
3764
3940
  if (!SWIG_IsOK(ecode2)) {
3765
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned long","removeBlock", 2, argv[0] ));
3941
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::offset_t","removeBlock", 2, argv[0] ));
3766
3942
  }
3767
- arg2 = static_cast< unsigned long >(val2);
3943
+ arg2 = static_cast< TagLib::offset_t >(val2);
3768
3944
  (arg1)->removeBlock(arg2);
3769
3945
  return Qnil;
3770
3946
  fail:
@@ -3805,7 +3981,7 @@ SWIGINTERN VALUE _wrap_File_remove_block(int nargs, VALUE *args, VALUE self) {
3805
3981
  argv[ii] = args[ii-1];
3806
3982
  }
3807
3983
  if (argc == 1) {
3808
- int _v;
3984
+ int _v = 0;
3809
3985
  void *vptr = 0;
3810
3986
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3811
3987
  _v = SWIG_CheckState(res);
@@ -3814,13 +3990,13 @@ SWIGINTERN VALUE _wrap_File_remove_block(int nargs, VALUE *args, VALUE self) {
3814
3990
  }
3815
3991
  }
3816
3992
  if (argc == 2) {
3817
- int _v;
3993
+ int _v = 0;
3818
3994
  void *vptr = 0;
3819
3995
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3820
3996
  _v = SWIG_CheckState(res);
3821
3997
  if (_v) {
3822
3998
  {
3823
- int res = SWIG_AsVal_unsigned_SS_long(argv[1], NULL);
3999
+ int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
3824
4000
  _v = SWIG_CheckState(res);
3825
4001
  }
3826
4002
  if (_v) {
@@ -3829,18 +4005,18 @@ SWIGINTERN VALUE _wrap_File_remove_block(int nargs, VALUE *args, VALUE self) {
3829
4005
  }
3830
4006
  }
3831
4007
  if (argc == 3) {
3832
- int _v;
4008
+ int _v = 0;
3833
4009
  void *vptr = 0;
3834
4010
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3835
4011
  _v = SWIG_CheckState(res);
3836
4012
  if (_v) {
3837
4013
  {
3838
- int res = SWIG_AsVal_unsigned_SS_long(argv[1], NULL);
4014
+ int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
3839
4015
  _v = SWIG_CheckState(res);
3840
4016
  }
3841
4017
  if (_v) {
3842
4018
  {
3843
- int res = SWIG_AsVal_unsigned_SS_long(argv[2], NULL);
4019
+ int res = SWIG_AsVal_size_t(argv[2], NULL);
3844
4020
  _v = SWIG_CheckState(res);
3845
4021
  }
3846
4022
  if (_v) {
@@ -3852,8 +4028,8 @@ SWIGINTERN VALUE _wrap_File_remove_block(int nargs, VALUE *args, VALUE self) {
3852
4028
 
3853
4029
  fail:
3854
4030
  Ruby_Format_OverloadedError( argc, 4, "File.remove_block",
3855
- " void File.remove_block(unsigned long start, unsigned long length)\n"
3856
- " void File.remove_block(unsigned long start)\n"
4031
+ " void File.remove_block(TagLib::offset_t start, size_t length)\n"
4032
+ " void File.remove_block(TagLib::offset_t start)\n"
3857
4033
  " void File.remove_block()\n");
3858
4034
 
3859
4035
  return Qnil;
@@ -3935,11 +4111,11 @@ fail:
3935
4111
  SWIGINTERN VALUE
3936
4112
  _wrap_File_seek__SWIG_0(int argc, VALUE *argv, VALUE self) {
3937
4113
  TagLib::File *arg1 = (TagLib::File *) 0 ;
3938
- long arg2 ;
4114
+ TagLib::offset_t arg2 ;
3939
4115
  TagLib::File::Position arg3 ;
3940
4116
  void *argp1 = 0 ;
3941
4117
  int res1 = 0 ;
3942
- long val2 ;
4118
+ long long val2 ;
3943
4119
  int ecode2 = 0 ;
3944
4120
  int val3 ;
3945
4121
  int ecode3 = 0 ;
@@ -3952,11 +4128,11 @@ _wrap_File_seek__SWIG_0(int argc, VALUE *argv, VALUE self) {
3952
4128
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","seek", 1, self ));
3953
4129
  }
3954
4130
  arg1 = reinterpret_cast< TagLib::File * >(argp1);
3955
- ecode2 = SWIG_AsVal_long(argv[0], &val2);
4131
+ ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2);
3956
4132
  if (!SWIG_IsOK(ecode2)) {
3957
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","seek", 2, argv[0] ));
4133
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::offset_t","seek", 2, argv[0] ));
3958
4134
  }
3959
- arg2 = static_cast< long >(val2);
4135
+ arg2 = static_cast< TagLib::offset_t >(val2);
3960
4136
  ecode3 = SWIG_AsVal_int(argv[1], &val3);
3961
4137
  if (!SWIG_IsOK(ecode3)) {
3962
4138
  SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::File::Position","seek", 3, argv[1] ));
@@ -3972,10 +4148,10 @@ fail:
3972
4148
  SWIGINTERN VALUE
3973
4149
  _wrap_File_seek__SWIG_1(int argc, VALUE *argv, VALUE self) {
3974
4150
  TagLib::File *arg1 = (TagLib::File *) 0 ;
3975
- long arg2 ;
4151
+ TagLib::offset_t arg2 ;
3976
4152
  void *argp1 = 0 ;
3977
4153
  int res1 = 0 ;
3978
- long val2 ;
4154
+ long long val2 ;
3979
4155
  int ecode2 = 0 ;
3980
4156
 
3981
4157
  if ((argc < 1) || (argc > 1)) {
@@ -3986,11 +4162,11 @@ _wrap_File_seek__SWIG_1(int argc, VALUE *argv, VALUE self) {
3986
4162
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","seek", 1, self ));
3987
4163
  }
3988
4164
  arg1 = reinterpret_cast< TagLib::File * >(argp1);
3989
- ecode2 = SWIG_AsVal_long(argv[0], &val2);
4165
+ ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2);
3990
4166
  if (!SWIG_IsOK(ecode2)) {
3991
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","seek", 2, argv[0] ));
4167
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::offset_t","seek", 2, argv[0] ));
3992
4168
  }
3993
- arg2 = static_cast< long >(val2);
4169
+ arg2 = static_cast< TagLib::offset_t >(val2);
3994
4170
  (arg1)->seek(arg2);
3995
4171
  return Qnil;
3996
4172
  fail:
@@ -4010,13 +4186,13 @@ SWIGINTERN VALUE _wrap_File_seek(int nargs, VALUE *args, VALUE self) {
4010
4186
  argv[ii] = args[ii-1];
4011
4187
  }
4012
4188
  if (argc == 2) {
4013
- int _v;
4189
+ int _v = 0;
4014
4190
  void *vptr = 0;
4015
4191
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
4016
4192
  _v = SWIG_CheckState(res);
4017
4193
  if (_v) {
4018
4194
  {
4019
- int res = SWIG_AsVal_long(argv[1], NULL);
4195
+ int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
4020
4196
  _v = SWIG_CheckState(res);
4021
4197
  }
4022
4198
  if (_v) {
@@ -4025,13 +4201,13 @@ SWIGINTERN VALUE _wrap_File_seek(int nargs, VALUE *args, VALUE self) {
4025
4201
  }
4026
4202
  }
4027
4203
  if (argc == 3) {
4028
- int _v;
4204
+ int _v = 0;
4029
4205
  void *vptr = 0;
4030
4206
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
4031
4207
  _v = SWIG_CheckState(res);
4032
4208
  if (_v) {
4033
4209
  {
4034
- int res = SWIG_AsVal_long(argv[1], NULL);
4210
+ int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
4035
4211
  _v = SWIG_CheckState(res);
4036
4212
  }
4037
4213
  if (_v) {
@@ -4048,8 +4224,8 @@ SWIGINTERN VALUE _wrap_File_seek(int nargs, VALUE *args, VALUE self) {
4048
4224
 
4049
4225
  fail:
4050
4226
  Ruby_Format_OverloadedError( argc, 4, "File.seek",
4051
- " void File.seek(long offset, TagLib::File::Position p)\n"
4052
- " void File.seek(long offset)\n");
4227
+ " void File.seek(TagLib::offset_t offset, TagLib::File::Position p)\n"
4228
+ " void File.seek(TagLib::offset_t offset)\n");
4053
4229
 
4054
4230
  return Qnil;
4055
4231
  }
@@ -4081,7 +4257,7 @@ _wrap_File_tell(int argc, VALUE *argv, VALUE self) {
4081
4257
  TagLib::File *arg1 = (TagLib::File *) 0 ;
4082
4258
  void *argp1 = 0 ;
4083
4259
  int res1 = 0 ;
4084
- long result;
4260
+ TagLib::offset_t result;
4085
4261
  VALUE vresult = Qnil;
4086
4262
 
4087
4263
  if ((argc < 0) || (argc > 0)) {
@@ -4092,8 +4268,10 @@ _wrap_File_tell(int argc, VALUE *argv, VALUE self) {
4092
4268
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File const *","tell", 1, self ));
4093
4269
  }
4094
4270
  arg1 = reinterpret_cast< TagLib::File * >(argp1);
4095
- result = (long)((TagLib::File const *)arg1)->tell();
4096
- vresult = SWIG_From_long(static_cast< long >(result));
4271
+ result = (TagLib::offset_t)((TagLib::File const *)arg1)->tell();
4272
+ {
4273
+ vresult = taglib_offset_t_to_ruby_int(result);
4274
+ }
4097
4275
  return vresult;
4098
4276
  fail:
4099
4277
  return Qnil;
@@ -4105,7 +4283,7 @@ _wrap_File_length(int argc, VALUE *argv, VALUE self) {
4105
4283
  TagLib::File *arg1 = (TagLib::File *) 0 ;
4106
4284
  void *argp1 = 0 ;
4107
4285
  int res1 = 0 ;
4108
- long result;
4286
+ TagLib::offset_t result;
4109
4287
  VALUE vresult = Qnil;
4110
4288
 
4111
4289
  if ((argc < 0) || (argc > 0)) {
@@ -4116,64 +4294,12 @@ _wrap_File_length(int argc, VALUE *argv, VALUE self) {
4116
4294
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","length", 1, self ));
4117
4295
  }
4118
4296
  arg1 = reinterpret_cast< TagLib::File * >(argp1);
4119
- result = (long)(arg1)->length();
4120
- vresult = SWIG_From_long(static_cast< long >(result));
4121
- return vresult;
4122
- fail:
4123
- return Qnil;
4124
- }
4125
-
4126
-
4127
- SWIGINTERN VALUE
4128
- _wrap_File_readableq___(int argc, VALUE *argv, VALUE self) {
4129
- char *arg1 = (char *) 0 ;
4130
- int res1 ;
4131
- char *buf1 = 0 ;
4132
- int alloc1 = 0 ;
4133
- bool result;
4134
- VALUE vresult = Qnil;
4135
-
4136
- if ((argc < 1) || (argc > 1)) {
4137
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4138
- }
4139
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
4140
- if (!SWIG_IsOK(res1)) {
4141
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","TagLib::File::isReadable", 1, argv[0] ));
4297
+ result = (TagLib::offset_t)(arg1)->length();
4298
+ {
4299
+ vresult = taglib_offset_t_to_ruby_int(result);
4142
4300
  }
4143
- arg1 = reinterpret_cast< char * >(buf1);
4144
- result = (bool)TagLib::File::isReadable((char const *)arg1);
4145
- vresult = SWIG_From_bool(static_cast< bool >(result));
4146
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
4147
4301
  return vresult;
4148
4302
  fail:
4149
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
4150
- return Qnil;
4151
- }
4152
-
4153
-
4154
- SWIGINTERN VALUE
4155
- _wrap_File_writableq___(int argc, VALUE *argv, VALUE self) {
4156
- char *arg1 = (char *) 0 ;
4157
- int res1 ;
4158
- char *buf1 = 0 ;
4159
- int alloc1 = 0 ;
4160
- bool result;
4161
- VALUE vresult = Qnil;
4162
-
4163
- if ((argc < 1) || (argc > 1)) {
4164
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4165
- }
4166
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
4167
- if (!SWIG_IsOK(res1)) {
4168
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","TagLib::File::isWritable", 1, argv[0] ));
4169
- }
4170
- arg1 = reinterpret_cast< char * >(buf1);
4171
- result = (bool)TagLib::File::isWritable((char const *)arg1);
4172
- vresult = SWIG_From_bool(static_cast< bool >(result));
4173
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
4174
- return vresult;
4175
- fail:
4176
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
4177
4303
  return Qnil;
4178
4304
  }
4179
4305
 
@@ -4331,7 +4457,7 @@ _wrap_FileRef_allocate(int argc, VALUE *argv, VALUE self)
4331
4457
  SWIGINTERN VALUE
4332
4458
  _wrap_new_FileRef__SWIG_5(int argc, VALUE *argv, VALUE self) {
4333
4459
  TagLib::FileRef *arg1 = 0 ;
4334
- void *argp1 ;
4460
+ void *argp1 = 0 ;
4335
4461
  int res1 = 0 ;
4336
4462
  TagLib::FileRef *result = 0 ;
4337
4463
 
@@ -4369,7 +4495,7 @@ SWIGINTERN VALUE _wrap_new_FileRef(int nargs, VALUE *args, VALUE self) {
4369
4495
  return _wrap_new_FileRef__SWIG_0(nargs, args, self);
4370
4496
  }
4371
4497
  if (argc == 1) {
4372
- int _v;
4498
+ int _v = 0;
4373
4499
  void *vptr = 0;
4374
4500
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
4375
4501
  _v = SWIG_CheckState(res);
@@ -4378,7 +4504,7 @@ SWIGINTERN VALUE _wrap_new_FileRef(int nargs, VALUE *args, VALUE self) {
4378
4504
  }
4379
4505
  }
4380
4506
  if (argc == 1) {
4381
- int _v;
4507
+ int _v = 0;
4382
4508
  void *vptr = 0;
4383
4509
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__FileRef, SWIG_POINTER_NO_NULL);
4384
4510
  _v = SWIG_CheckState(res);
@@ -4387,7 +4513,7 @@ SWIGINTERN VALUE _wrap_new_FileRef(int nargs, VALUE *args, VALUE self) {
4387
4513
  }
4388
4514
  }
4389
4515
  if (argc == 1) {
4390
- int _v;
4516
+ int _v = 0;
4391
4517
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4392
4518
  _v = SWIG_CheckState(res);
4393
4519
  if (_v) {
@@ -4395,7 +4521,7 @@ SWIGINTERN VALUE _wrap_new_FileRef(int nargs, VALUE *args, VALUE self) {
4395
4521
  }
4396
4522
  }
4397
4523
  if (argc == 2) {
4398
- int _v;
4524
+ int _v = 0;
4399
4525
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4400
4526
  _v = SWIG_CheckState(res);
4401
4527
  if (_v) {
@@ -4409,7 +4535,7 @@ SWIGINTERN VALUE _wrap_new_FileRef(int nargs, VALUE *args, VALUE self) {
4409
4535
  }
4410
4536
  }
4411
4537
  if (argc == 3) {
4412
- int _v;
4538
+ int _v = 0;
4413
4539
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4414
4540
  _v = SWIG_CheckState(res);
4415
4541
  if (_v) {
@@ -4569,6 +4695,18 @@ fail:
4569
4695
  }
4570
4696
 
4571
4697
 
4698
+ SWIGINTERN VALUE
4699
+ _wrap_FileRef_clear_file_type_resolvers(int argc, VALUE *argv, VALUE self) {
4700
+ if ((argc < 0) || (argc > 0)) {
4701
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4702
+ }
4703
+ TagLib::FileRef::clearFileTypeResolvers();
4704
+ return Qnil;
4705
+ fail:
4706
+ return Qnil;
4707
+ }
4708
+
4709
+
4572
4710
  SWIGINTERN VALUE
4573
4711
  _wrap_FileRef_default_file_extensions(int argc, VALUE *argv, VALUE self) {
4574
4712
  TagLib::StringList result;
@@ -4625,7 +4763,7 @@ _wrap_FileRef___eq__(int argc, VALUE *argv, VALUE self) {
4625
4763
  TagLib::FileRef *arg2 = 0 ;
4626
4764
  void *argp1 = 0 ;
4627
4765
  int res1 = 0 ;
4628
- void *argp2 ;
4766
+ void *argp2 = 0 ;
4629
4767
  int res2 = 0 ;
4630
4768
  bool result;
4631
4769
  VALUE vresult = Qnil;
@@ -4654,162 +4792,6 @@ fail:
4654
4792
  }
4655
4793
 
4656
4794
 
4657
- SWIGINTERN VALUE
4658
- _wrap_FileRef_create__SWIG_0(int argc, VALUE *argv, VALUE self) {
4659
- TagLib::FileName arg1 ;
4660
- bool arg2 ;
4661
- TagLib::AudioProperties::ReadStyle arg3 ;
4662
- bool val2 ;
4663
- int ecode2 = 0 ;
4664
- int val3 ;
4665
- int ecode3 = 0 ;
4666
- TagLib::File *result = 0 ;
4667
- VALUE vresult = Qnil;
4668
-
4669
- if ((argc < 3) || (argc > 3)) {
4670
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
4671
- }
4672
- {
4673
- arg1 = ruby_string_to_taglib_filename(argv[0]);
4674
- if ((const char *)(TagLib::FileName)(arg1) == NULL) {
4675
- SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory for file name.");
4676
- }
4677
- }
4678
- ecode2 = SWIG_AsVal_bool(argv[1], &val2);
4679
- if (!SWIG_IsOK(ecode2)) {
4680
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","TagLib::FileRef::create", 2, argv[1] ));
4681
- }
4682
- arg2 = static_cast< bool >(val2);
4683
- ecode3 = SWIG_AsVal_int(argv[2], &val3);
4684
- if (!SWIG_IsOK(ecode3)) {
4685
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::AudioProperties::ReadStyle","TagLib::FileRef::create", 3, argv[2] ));
4686
- }
4687
- arg3 = static_cast< TagLib::AudioProperties::ReadStyle >(val3);
4688
- result = (TagLib::File *)TagLib::FileRef::create(arg1,arg2,arg3);
4689
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__File, 0 | 0 );
4690
- return vresult;
4691
- fail:
4692
- return Qnil;
4693
- }
4694
-
4695
-
4696
- SWIGINTERN VALUE
4697
- _wrap_FileRef_create__SWIG_1(int argc, VALUE *argv, VALUE self) {
4698
- TagLib::FileName arg1 ;
4699
- bool arg2 ;
4700
- bool val2 ;
4701
- int ecode2 = 0 ;
4702
- TagLib::File *result = 0 ;
4703
- VALUE vresult = Qnil;
4704
-
4705
- if ((argc < 2) || (argc > 2)) {
4706
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
4707
- }
4708
- {
4709
- arg1 = ruby_string_to_taglib_filename(argv[0]);
4710
- if ((const char *)(TagLib::FileName)(arg1) == NULL) {
4711
- SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory for file name.");
4712
- }
4713
- }
4714
- ecode2 = SWIG_AsVal_bool(argv[1], &val2);
4715
- if (!SWIG_IsOK(ecode2)) {
4716
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","TagLib::FileRef::create", 2, argv[1] ));
4717
- }
4718
- arg2 = static_cast< bool >(val2);
4719
- result = (TagLib::File *)TagLib::FileRef::create(arg1,arg2);
4720
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__File, 0 | 0 );
4721
- return vresult;
4722
- fail:
4723
- return Qnil;
4724
- }
4725
-
4726
-
4727
- SWIGINTERN VALUE
4728
- _wrap_FileRef_create__SWIG_2(int argc, VALUE *argv, VALUE self) {
4729
- TagLib::FileName arg1 ;
4730
- TagLib::File *result = 0 ;
4731
- VALUE vresult = Qnil;
4732
-
4733
- if ((argc < 1) || (argc > 1)) {
4734
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4735
- }
4736
- {
4737
- arg1 = ruby_string_to_taglib_filename(argv[0]);
4738
- if ((const char *)(TagLib::FileName)(arg1) == NULL) {
4739
- SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory for file name.");
4740
- }
4741
- }
4742
- result = (TagLib::File *)TagLib::FileRef::create(arg1);
4743
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__File, 0 | 0 );
4744
- return vresult;
4745
- fail:
4746
- return Qnil;
4747
- }
4748
-
4749
-
4750
- SWIGINTERN VALUE _wrap_FileRef_create(int nargs, VALUE *args, VALUE self) {
4751
- int argc;
4752
- VALUE argv[3];
4753
- int ii;
4754
-
4755
- argc = nargs;
4756
- if (argc > 3) SWIG_fail;
4757
- for (ii = 0; (ii < argc); ++ii) {
4758
- argv[ii] = args[ii];
4759
- }
4760
- if (argc == 1) {
4761
- int _v;
4762
- int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4763
- _v = SWIG_CheckState(res);
4764
- if (_v) {
4765
- return _wrap_FileRef_create__SWIG_2(nargs, args, self);
4766
- }
4767
- }
4768
- if (argc == 2) {
4769
- int _v;
4770
- int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4771
- _v = SWIG_CheckState(res);
4772
- if (_v) {
4773
- {
4774
- int res = SWIG_AsVal_bool(argv[1], NULL);
4775
- _v = SWIG_CheckState(res);
4776
- }
4777
- if (_v) {
4778
- return _wrap_FileRef_create__SWIG_1(nargs, args, self);
4779
- }
4780
- }
4781
- }
4782
- if (argc == 3) {
4783
- int _v;
4784
- int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4785
- _v = SWIG_CheckState(res);
4786
- if (_v) {
4787
- {
4788
- int res = SWIG_AsVal_bool(argv[1], NULL);
4789
- _v = SWIG_CheckState(res);
4790
- }
4791
- if (_v) {
4792
- {
4793
- int res = SWIG_AsVal_int(argv[2], NULL);
4794
- _v = SWIG_CheckState(res);
4795
- }
4796
- if (_v) {
4797
- return _wrap_FileRef_create__SWIG_0(nargs, args, self);
4798
- }
4799
- }
4800
- }
4801
- }
4802
-
4803
- fail:
4804
- Ruby_Format_OverloadedError( argc, 3, "FileRef.create",
4805
- " TagLib::File FileRef.create(TagLib::FileName fileName, bool readAudioProperties, TagLib::AudioProperties::ReadStyle audioPropertiesStyle)\n"
4806
- " TagLib::File FileRef.create(TagLib::FileName fileName, bool readAudioProperties)\n"
4807
- " TagLib::File * FileRef.create(TagLib::FileName fileName)\n");
4808
-
4809
- return Qnil;
4810
- }
4811
-
4812
-
4813
4795
  SWIGINTERN VALUE
4814
4796
  _wrap_FileRef_close(int argc, VALUE *argv, VALUE self) {
4815
4797
  TagLib::FileRef *arg1 = (TagLib::FileRef *) 0 ;
@@ -4841,8 +4823,9 @@ static swig_type_info _swigt__p_TagLib__FileRef__FileTypeResolver = {"_p_TagLib_
4841
4823
  static swig_type_info _swigt__p_TagLib__String = {"_p_TagLib__String", "TagLib::String *", 0, 0, (void*)0, 0};
4842
4824
  static swig_type_info _swigt__p_TagLib__Tag = {"_p_TagLib__Tag", "TagLib::Tag *", 0, 0, (void*)0, 0};
4843
4825
  static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
4826
+ static swig_type_info _swigt__p_long_long = {"_p_long_long", "TagLib::offset_t *|long long *", 0, 0, (void*)0, 0};
4844
4827
  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};
4828
+ static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "TagLib::uint *|unsigned int *", 0, 0, (void*)0, 0};
4846
4829
  static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "TagLib::ulong *|unsigned long *", 0, 0, (void*)0, 0};
4847
4830
  static swig_type_info _swigt__p_wchar_t = {"_p_wchar_t", "TagLib::wchar *|wchar_t *", 0, 0, (void*)0, 0};
4848
4831
 
@@ -4854,6 +4837,7 @@ static swig_type_info *swig_type_initial[] = {
4854
4837
  &_swigt__p_TagLib__String,
4855
4838
  &_swigt__p_TagLib__Tag,
4856
4839
  &_swigt__p_char,
4840
+ &_swigt__p_long_long,
4857
4841
  &_swigt__p_unsigned_char,
4858
4842
  &_swigt__p_unsigned_int,
4859
4843
  &_swigt__p_unsigned_long,
@@ -4867,6 +4851,7 @@ static swig_cast_info _swigc__p_TagLib__FileRef__FileTypeResolver[] = { {&_swig
4867
4851
  static swig_cast_info _swigc__p_TagLib__String[] = { {&_swigt__p_TagLib__String, 0, 0, 0},{0, 0, 0, 0}};
4868
4852
  static swig_cast_info _swigc__p_TagLib__Tag[] = { {&_swigt__p_TagLib__Tag, 0, 0, 0},{0, 0, 0, 0}};
4869
4853
  static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
4854
+ static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
4870
4855
  static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
4871
4856
  static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
4872
4857
  static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
@@ -4880,6 +4865,7 @@ static swig_cast_info *swig_cast_initial[] = {
4880
4865
  _swigc__p_TagLib__String,
4881
4866
  _swigc__p_TagLib__Tag,
4882
4867
  _swigc__p_char,
4868
+ _swigc__p_long_long,
4883
4869
  _swigc__p_unsigned_char,
4884
4870
  _swigc__p_unsigned_int,
4885
4871
  _swigc__p_unsigned_long,
@@ -4941,9 +4927,12 @@ extern "C" {
4941
4927
  #define SWIGRUNTIME_DEBUG
4942
4928
  #endif
4943
4929
 
4930
+ #ifndef SWIG_INIT_CLIENT_DATA_TYPE
4931
+ #define SWIG_INIT_CLIENT_DATA_TYPE void *
4932
+ #endif
4944
4933
 
4945
4934
  SWIGRUNTIME void
4946
- SWIG_InitializeModule(void *clientdata) {
4935
+ SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
4947
4936
  size_t i;
4948
4937
  swig_module_info *module_head, *iter;
4949
4938
  int init;
@@ -5174,6 +5163,7 @@ SWIGEXPORT void Init_taglib_base(void) {
5174
5163
  rb_define_method(SwigClassTag.klass, "track=", VALUEFUNC(_wrap_Tag_tracke___), -1);
5175
5164
  rb_define_method(SwigClassTag.klass, "empty?", VALUEFUNC(_wrap_Tag_emptyq___), -1);
5176
5165
  rb_define_singleton_method(SwigClassTag.klass, "duplicate", VALUEFUNC(_wrap_Tag_duplicate), -1);
5166
+ rb_define_singleton_method(SwigClassTag.klass, "join_tag_values", VALUEFUNC(_wrap_Tag_join_tag_values), -1);
5177
5167
  SwigClassTag.mark = 0;
5178
5168
  SwigClassTag.destroy = (void (*)(void *)) free_TagLib_Tag;
5179
5169
  SwigClassTag.trackObjects = 1;
@@ -5199,6 +5189,10 @@ SWIGEXPORT void Init_taglib_base(void) {
5199
5189
  rb_define_const(SwigClassFile.klass, "Beginning", SWIG_From_int(static_cast< int >(TagLib::File::Beginning)));
5200
5190
  rb_define_const(SwigClassFile.klass, "Current", SWIG_From_int(static_cast< int >(TagLib::File::Current)));
5201
5191
  rb_define_const(SwigClassFile.klass, "End", SWIG_From_int(static_cast< int >(TagLib::File::End)));
5192
+ rb_define_const(SwigClassFile.klass, "StripNone", SWIG_From_int(static_cast< int >(TagLib::File::StripNone)));
5193
+ rb_define_const(SwigClassFile.klass, "StripOthers", SWIG_From_int(static_cast< int >(TagLib::File::StripOthers)));
5194
+ rb_define_const(SwigClassFile.klass, "Duplicate", SWIG_From_int(static_cast< int >(TagLib::File::Duplicate)));
5195
+ rb_define_const(SwigClassFile.klass, "DoNotDuplicate", SWIG_From_int(static_cast< int >(TagLib::File::DoNotDuplicate)));
5202
5196
  rb_define_method(SwigClassFile.klass, "name", VALUEFUNC(_wrap_File_name), -1);
5203
5197
  rb_define_method(SwigClassFile.klass, "tag", VALUEFUNC(_wrap_File_tag), -1);
5204
5198
  rb_define_method(SwigClassFile.klass, "audio_properties", VALUEFUNC(_wrap_File_audio_properties), -1);
@@ -5216,8 +5210,6 @@ SWIGEXPORT void Init_taglib_base(void) {
5216
5210
  rb_define_method(SwigClassFile.klass, "clear", VALUEFUNC(_wrap_File_clear), -1);
5217
5211
  rb_define_method(SwigClassFile.klass, "tell", VALUEFUNC(_wrap_File_tell), -1);
5218
5212
  rb_define_method(SwigClassFile.klass, "length", VALUEFUNC(_wrap_File_length), -1);
5219
- rb_define_singleton_method(SwigClassFile.klass, "readable?", VALUEFUNC(_wrap_File_readableq___), -1);
5220
- rb_define_singleton_method(SwigClassFile.klass, "writable?", VALUEFUNC(_wrap_File_writableq___), -1);
5221
5213
  SwigClassFile.mark = 0;
5222
5214
  SwigClassFile.destroy = (void (*)(void *)) free_TagLib_File;
5223
5215
  SwigClassFile.trackObjects = 1;
@@ -5231,10 +5223,10 @@ SWIGEXPORT void Init_taglib_base(void) {
5231
5223
  rb_define_method(SwigClassFileRef.klass, "file", VALUEFUNC(_wrap_FileRef_file), -1);
5232
5224
  rb_define_method(SwigClassFileRef.klass, "save", VALUEFUNC(_wrap_FileRef_save), -1);
5233
5225
  rb_define_singleton_method(SwigClassFileRef.klass, "add_file_type_resolver", VALUEFUNC(_wrap_FileRef_add_file_type_resolver), -1);
5226
+ rb_define_singleton_method(SwigClassFileRef.klass, "clear_file_type_resolvers", VALUEFUNC(_wrap_FileRef_clear_file_type_resolvers), -1);
5234
5227
  rb_define_singleton_method(SwigClassFileRef.klass, "default_file_extensions", VALUEFUNC(_wrap_FileRef_default_file_extensions), -1);
5235
5228
  rb_define_method(SwigClassFileRef.klass, "null?", VALUEFUNC(_wrap_FileRef_nullq___), -1);
5236
5229
  rb_define_method(SwigClassFileRef.klass, "==", VALUEFUNC(_wrap_FileRef___eq__), -1);
5237
- rb_define_singleton_method(SwigClassFileRef.klass, "create", VALUEFUNC(_wrap_FileRef_create), -1);
5238
5230
  rb_define_method(SwigClassFileRef.klass, "close", VALUEFUNC(_wrap_FileRef_close), -1);
5239
5231
  SwigClassFileRef.mark = 0;
5240
5232
  SwigClassFileRef.destroy = (void (*)(void *)) free_TagLib_FileRef;