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.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +1 -0
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/ext/taglib_aiff/taglib_aiff.i +1 -0
- data/ext/taglib_aiff/taglib_aiff_wrap.cxx +106 -53
- data/ext/taglib_base/taglib_base.i +16 -4
- data/ext/taglib_base/taglib_base_wrap.cxx +133 -80
- data/ext/taglib_flac/taglib_flac.i +1 -0
- data/ext/taglib_flac/taglib_flac_wrap.cxx +126 -73
- data/ext/taglib_flac_picture/taglib_flac_picture_wrap.cxx +105 -52
- data/ext/taglib_id3v1/taglib_id3v1_wrap.cxx +106 -53
- data/ext/taglib_id3v2/taglib_id3v2_wrap.cxx +198 -149
- data/ext/taglib_mp4/taglib_mp4.i +1 -0
- data/ext/taglib_mp4/taglib_mp4_wrap.cxx +134 -81
- data/ext/taglib_mpeg/taglib_mpeg.i +1 -0
- data/ext/taglib_mpeg/taglib_mpeg_wrap.cxx +134 -81
- data/ext/taglib_ogg/taglib_ogg_wrap.cxx +120 -67
- data/ext/taglib_vorbis/taglib_vorbis.i +1 -0
- data/ext/taglib_vorbis/taglib_vorbis_wrap.cxx +116 -63
- data/ext/taglib_wav/taglib_wav.i +1 -0
- data/ext/taglib_wav/taglib_wav_wrap.cxx +112 -59
- data/lib/taglib/version.rb +1 -1
- data/taglib-ruby.gemspec +1 -0
- metadata +3 -2
data/ext/taglib_mp4/taglib_mp4.i
CHANGED
@@ -126,6 +126,7 @@ namespace TagLib {
|
|
126
126
|
%ignore TagLib::MP4::File::File(IOStream *, bool, Properties::ReadStyle);
|
127
127
|
%ignore TagLib::MP4::File::File(IOStream *, bool);
|
128
128
|
%ignore TagLib::MP4::File::File(IOStream *);
|
129
|
+
%ignore TagLib::MP4::File::isSupported(IOStream *);
|
129
130
|
|
130
131
|
// Ignore the unified property interface.
|
131
132
|
%ignore TagLib::MP4::File::properties;
|
@@ -1,45 +1,17 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
|
-
* This file was automatically generated by SWIG (
|
3
|
-
* Version 4.
|
2
|
+
* This file was automatically generated by SWIG (https://www.swig.org).
|
3
|
+
* Version 4.1.1
|
4
4
|
*
|
5
|
-
*
|
6
|
-
*
|
7
|
-
* changes to this file unless you know what you are doing--modify the SWIG
|
8
|
-
* interface file instead.
|
5
|
+
* Do not make changes to this file unless you know what you are doing - modify
|
6
|
+
* the SWIG interface file instead.
|
9
7
|
* ----------------------------------------------------------------------------- */
|
10
8
|
|
11
9
|
static void free_taglib_mp4_file(void *ptr);
|
12
10
|
|
13
11
|
|
14
12
|
|
15
|
-
#
|
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
|
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.
|
645
|
-
|
646
|
-
|
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
|
-
/*
|
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 =
|
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; }
|
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
|
|
@@ -1876,12 +1882,56 @@ static swig_module_info swig_module = {swig_types, 17, 0, 0, 0, 0};
|
|
1876
1882
|
|
1877
1883
|
static VALUE mMP4;
|
1878
1884
|
|
1879
|
-
#
|
1880
|
-
#
|
1885
|
+
#ifdef __cplusplus
|
1886
|
+
#include <utility>
|
1887
|
+
/* SwigValueWrapper is described in swig.swg */
|
1888
|
+
template<typename T> class SwigValueWrapper {
|
1889
|
+
struct SwigSmartPointer {
|
1890
|
+
T *ptr;
|
1891
|
+
SwigSmartPointer(T *p) : ptr(p) { }
|
1892
|
+
~SwigSmartPointer() { delete ptr; }
|
1893
|
+
SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
|
1894
|
+
void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
|
1895
|
+
} pointer;
|
1896
|
+
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
|
1897
|
+
SwigValueWrapper(const SwigValueWrapper<T>& rhs);
|
1898
|
+
public:
|
1899
|
+
SwigValueWrapper() : pointer(0) { }
|
1900
|
+
SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
|
1901
|
+
#if __cplusplus >=201103L
|
1902
|
+
SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
|
1903
|
+
operator T&&() const { return std::move(*pointer.ptr); }
|
1904
|
+
#else
|
1905
|
+
operator T&() const { return *pointer.ptr; }
|
1906
|
+
#endif
|
1907
|
+
T *operator&() const { return pointer.ptr; }
|
1908
|
+
static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
|
1909
|
+
};
|
1881
1910
|
|
1911
|
+
/*
|
1912
|
+
* SwigValueInit() is a generic initialisation solution as the following approach:
|
1913
|
+
*
|
1914
|
+
* T c_result = T();
|
1915
|
+
*
|
1916
|
+
* doesn't compile for all types for example:
|
1917
|
+
*
|
1918
|
+
* unsigned int c_result = unsigned int();
|
1919
|
+
*/
|
1920
|
+
template <typename T> T SwigValueInit() {
|
1921
|
+
return T();
|
1922
|
+
}
|
1882
1923
|
|
1883
|
-
#
|
1884
|
-
#define
|
1924
|
+
#if __cplusplus >=201103L
|
1925
|
+
# define SWIG_STD_MOVE(OBJ) std::move(OBJ)
|
1926
|
+
#else
|
1927
|
+
# define SWIG_STD_MOVE(OBJ) OBJ
|
1928
|
+
#endif
|
1929
|
+
|
1930
|
+
#endif
|
1931
|
+
|
1932
|
+
|
1933
|
+
#define SWIG_RUBY_THREAD_BEGIN_BLOCK
|
1934
|
+
#define SWIG_RUBY_THREAD_END_BLOCK
|
1885
1935
|
|
1886
1936
|
|
1887
1937
|
#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
|
@@ -2104,7 +2154,7 @@ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
|
|
2104
2154
|
}
|
2105
2155
|
|
2106
2156
|
|
2107
|
-
/*@SWIG:/usr/local/Cellar/swig/4.
|
2157
|
+
/*@SWIG:/usr/local/Cellar/swig/4.1.1/share/swig/4.1.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2108
2158
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
|
2109
2159
|
{
|
2110
2160
|
VALUE *args = (VALUE *)arg;
|
@@ -2221,7 +2271,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
2221
2271
|
|
2222
2272
|
|
2223
2273
|
|
2224
|
-
/*@SWIG:/usr/local/Cellar/swig/4.
|
2274
|
+
/*@SWIG:/usr/local/Cellar/swig/4.1.1/share/swig/4.1.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2225
2275
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE arg)
|
2226
2276
|
{
|
2227
2277
|
VALUE *args = (VALUE *)arg;
|
@@ -2305,7 +2355,7 @@ SWIG_AsVal_unsigned_SS_char (VALUE obj, unsigned char *val)
|
|
2305
2355
|
|
2306
2356
|
|
2307
2357
|
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2308
|
-
/*@SWIG:/usr/local/Cellar/swig/4.
|
2358
|
+
/*@SWIG:/usr/local/Cellar/swig/4.1.1/share/swig/4.1.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2309
2359
|
SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE arg)
|
2310
2360
|
{
|
2311
2361
|
VALUE *args = (VALUE *)arg;
|
@@ -2583,7 +2633,7 @@ SWIGINTERN VALUE _wrap_new_Properties(int nargs, VALUE *args, VALUE self) {
|
|
2583
2633
|
argv[ii] = args[ii];
|
2584
2634
|
}
|
2585
2635
|
if (argc == 2) {
|
2586
|
-
int _v;
|
2636
|
+
int _v = 0;
|
2587
2637
|
void *vptr = 0;
|
2588
2638
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__File, 0);
|
2589
2639
|
_v = SWIG_CheckState(res);
|
@@ -2597,7 +2647,7 @@ SWIGINTERN VALUE _wrap_new_Properties(int nargs, VALUE *args, VALUE self) {
|
|
2597
2647
|
}
|
2598
2648
|
}
|
2599
2649
|
if (argc == 3) {
|
2600
|
-
int _v;
|
2650
|
+
int _v = 0;
|
2601
2651
|
void *vptr = 0;
|
2602
2652
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__File, 0);
|
2603
2653
|
_v = SWIG_CheckState(res);
|
@@ -2904,7 +2954,7 @@ SWIGINTERN VALUE _wrap_new_Tag(int nargs, VALUE *args, VALUE self) {
|
|
2904
2954
|
return _wrap_new_Tag__SWIG_0(nargs, args, self);
|
2905
2955
|
}
|
2906
2956
|
if (argc == 2) {
|
2907
|
-
int _v;
|
2957
|
+
int _v = 0;
|
2908
2958
|
void *vptr = 0;
|
2909
2959
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
|
2910
2960
|
_v = SWIG_CheckState(res);
|
@@ -3400,7 +3450,7 @@ _wrap_Tag___getitem__(int argc, VALUE *argv, VALUE self) {
|
|
3400
3450
|
arg2 = &tmp2;
|
3401
3451
|
}
|
3402
3452
|
result = ((TagLib::MP4::Tag const *)arg1)->item((TagLib::String const &)*arg2);
|
3403
|
-
vresult = SWIG_NewPointerObj((new TagLib::MP4::Item(
|
3453
|
+
vresult = SWIG_NewPointerObj((new TagLib::MP4::Item(result)), SWIGTYPE_p_TagLib__MP4__Item, SWIG_POINTER_OWN | 0 );
|
3404
3454
|
return vresult;
|
3405
3455
|
fail:
|
3406
3456
|
return Qnil;
|
@@ -3453,7 +3503,7 @@ _wrap_Tag___setitem__(int argc, VALUE *argv, VALUE self) {
|
|
3453
3503
|
void *argp1 = 0 ;
|
3454
3504
|
int res1 = 0 ;
|
3455
3505
|
TagLib::String tmp2 ;
|
3456
|
-
void *argp3 ;
|
3506
|
+
void *argp3 = 0 ;
|
3457
3507
|
int res3 = 0 ;
|
3458
3508
|
VALUE result;
|
3459
3509
|
VALUE vresult = Qnil;
|
@@ -3573,7 +3623,7 @@ _wrap_CoverArt_allocate(int argc, VALUE *argv, VALUE self)
|
|
3573
3623
|
SWIGINTERN VALUE
|
3574
3624
|
_wrap_new_CoverArt__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
3575
3625
|
TagLib::MP4::CoverArt *arg1 = 0 ;
|
3576
|
-
void *argp1 ;
|
3626
|
+
void *argp1 = 0 ;
|
3577
3627
|
int res1 = 0 ;
|
3578
3628
|
TagLib::MP4::CoverArt *result = 0 ;
|
3579
3629
|
|
@@ -3608,7 +3658,7 @@ SWIGINTERN VALUE _wrap_new_CoverArt(int nargs, VALUE *args, VALUE self) {
|
|
3608
3658
|
argv[ii] = args[ii];
|
3609
3659
|
}
|
3610
3660
|
if (argc == 1) {
|
3611
|
-
int _v;
|
3661
|
+
int _v = 0;
|
3612
3662
|
void *vptr = 0;
|
3613
3663
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__CoverArt, SWIG_POINTER_NO_NULL);
|
3614
3664
|
_v = SWIG_CheckState(res);
|
@@ -3617,7 +3667,7 @@ SWIGINTERN VALUE _wrap_new_CoverArt(int nargs, VALUE *args, VALUE self) {
|
|
3617
3667
|
}
|
3618
3668
|
}
|
3619
3669
|
if (argc == 2) {
|
3620
|
-
int _v;
|
3670
|
+
int _v = 0;
|
3621
3671
|
{
|
3622
3672
|
int res = SWIG_AsVal_int(argv[0], NULL);
|
3623
3673
|
_v = SWIG_CheckState(res);
|
@@ -3711,7 +3761,7 @@ fail:
|
|
3711
3761
|
SWIGINTERN VALUE
|
3712
3762
|
_wrap_new_Item__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
3713
3763
|
TagLib::MP4::Item *arg1 = 0 ;
|
3714
|
-
void *argp1 ;
|
3764
|
+
void *argp1 = 0 ;
|
3715
3765
|
int res1 = 0 ;
|
3716
3766
|
TagLib::MP4::Item *result = 0 ;
|
3717
3767
|
|
@@ -3989,7 +4039,7 @@ SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
|
3989
4039
|
return _wrap_new_Item__SWIG_0(nargs, args, self);
|
3990
4040
|
}
|
3991
4041
|
if (argc == 1) {
|
3992
|
-
int _v;
|
4042
|
+
int _v = 0;
|
3993
4043
|
void *vptr = 0;
|
3994
4044
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__Item, SWIG_POINTER_NO_NULL);
|
3995
4045
|
_v = SWIG_CheckState(res);
|
@@ -3998,7 +4048,7 @@ SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
|
3998
4048
|
}
|
3999
4049
|
}
|
4000
4050
|
if (argc == 1) {
|
4001
|
-
int _v;
|
4051
|
+
int _v = 0;
|
4002
4052
|
void *vptr = 0;
|
4003
4053
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ByteVectorList, SWIG_POINTER_NO_NULL);
|
4004
4054
|
_v = SWIG_CheckState(res);
|
@@ -4007,7 +4057,7 @@ SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
|
4007
4057
|
}
|
4008
4058
|
}
|
4009
4059
|
if (argc == 1) {
|
4010
|
-
int _v;
|
4060
|
+
int _v = 0;
|
4011
4061
|
void *vptr = 0;
|
4012
4062
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__CoverArtList, SWIG_POINTER_NO_NULL);
|
4013
4063
|
_v = SWIG_CheckState(res);
|
@@ -4016,7 +4066,7 @@ SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
|
4016
4066
|
}
|
4017
4067
|
}
|
4018
4068
|
if (argc == 1) {
|
4019
|
-
int _v;
|
4069
|
+
int _v = 0;
|
4020
4070
|
{
|
4021
4071
|
int res = SWIG_AsVal_unsigned_SS_char(argv[0], NULL);
|
4022
4072
|
_v = SWIG_CheckState(res);
|
@@ -4026,7 +4076,7 @@ SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
|
4026
4076
|
}
|
4027
4077
|
}
|
4028
4078
|
if (argc == 1) {
|
4029
|
-
int _v;
|
4079
|
+
int _v = 0;
|
4030
4080
|
{
|
4031
4081
|
int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
|
4032
4082
|
_v = SWIG_CheckState(res);
|
@@ -4036,7 +4086,7 @@ SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
|
4036
4086
|
}
|
4037
4087
|
}
|
4038
4088
|
if (argc == 1) {
|
4039
|
-
int _v;
|
4089
|
+
int _v = 0;
|
4040
4090
|
{
|
4041
4091
|
int res = SWIG_AsVal_int(argv[0], NULL);
|
4042
4092
|
_v = SWIG_CheckState(res);
|
@@ -4046,7 +4096,7 @@ SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
|
4046
4096
|
}
|
4047
4097
|
}
|
4048
4098
|
if (argc == 1) {
|
4049
|
-
int _v;
|
4099
|
+
int _v = 0;
|
4050
4100
|
{
|
4051
4101
|
int res = SWIG_AsVal_long_SS_long(argv[0], NULL);
|
4052
4102
|
_v = SWIG_CheckState(res);
|
@@ -4056,7 +4106,7 @@ SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
|
4056
4106
|
}
|
4057
4107
|
}
|
4058
4108
|
if (argc == 1) {
|
4059
|
-
int _v;
|
4109
|
+
int _v = 0;
|
4060
4110
|
{
|
4061
4111
|
_v = TYPE(argv[0]) == T_ARRAY ? 1 : 0;
|
4062
4112
|
}
|
@@ -4065,7 +4115,7 @@ SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
|
4065
4115
|
}
|
4066
4116
|
}
|
4067
4117
|
if (argc == 1) {
|
4068
|
-
int _v;
|
4118
|
+
int _v = 0;
|
4069
4119
|
{
|
4070
4120
|
int res = SWIG_AsVal_bool(argv[0], NULL);
|
4071
4121
|
_v = SWIG_CheckState(res);
|
@@ -4075,7 +4125,7 @@ SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
|
4075
4125
|
}
|
4076
4126
|
}
|
4077
4127
|
if (argc == 2) {
|
4078
|
-
int _v;
|
4128
|
+
int _v = 0;
|
4079
4129
|
{
|
4080
4130
|
int res = SWIG_AsVal_int(argv[0], NULL);
|
4081
4131
|
_v = SWIG_CheckState(res);
|
@@ -4664,7 +4714,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
4664
4714
|
argv[ii] = args[ii];
|
4665
4715
|
}
|
4666
4716
|
if (argc == 1) {
|
4667
|
-
int _v;
|
4717
|
+
int _v = 0;
|
4668
4718
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
4669
4719
|
_v = SWIG_CheckState(res);
|
4670
4720
|
if (_v) {
|
@@ -4672,7 +4722,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
4672
4722
|
}
|
4673
4723
|
}
|
4674
4724
|
if (argc == 2) {
|
4675
|
-
int _v;
|
4725
|
+
int _v = 0;
|
4676
4726
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
4677
4727
|
_v = SWIG_CheckState(res);
|
4678
4728
|
if (_v) {
|
@@ -4686,7 +4736,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
4686
4736
|
}
|
4687
4737
|
}
|
4688
4738
|
if (argc == 3) {
|
4689
|
-
int _v;
|
4739
|
+
int _v = 0;
|
4690
4740
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
4691
4741
|
_v = SWIG_CheckState(res);
|
4692
4742
|
if (_v) {
|
@@ -4869,7 +4919,7 @@ _wrap_ItemMap_allocate(int argc, VALUE *argv, VALUE self)
|
|
4869
4919
|
SWIGINTERN VALUE
|
4870
4920
|
_wrap_new_ItemMap__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
4871
4921
|
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = 0 ;
|
4872
|
-
void *argp1 ;
|
4922
|
+
void *argp1 = 0 ;
|
4873
4923
|
int res1 = 0 ;
|
4874
4924
|
TagLib::Map< TagLib::String,TagLib::MP4::Item > *result = 0 ;
|
4875
4925
|
|
@@ -4907,7 +4957,7 @@ SWIGINTERN VALUE _wrap_new_ItemMap(int nargs, VALUE *args, VALUE self) {
|
|
4907
4957
|
return _wrap_new_ItemMap__SWIG_0(nargs, args, self);
|
4908
4958
|
}
|
4909
4959
|
if (argc == 1) {
|
4910
|
-
int _v;
|
4960
|
+
int _v = 0;
|
4911
4961
|
void *vptr = 0;
|
4912
4962
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, SWIG_POINTER_NO_NULL);
|
4913
4963
|
_v = SWIG_CheckState(res);
|
@@ -5166,7 +5216,7 @@ _wrap_ItemMap__insert(int argc, VALUE *argv, VALUE self) {
|
|
5166
5216
|
void *argp1 = 0 ;
|
5167
5217
|
int res1 = 0 ;
|
5168
5218
|
TagLib::String tmp2 ;
|
5169
|
-
void *argp3 ;
|
5219
|
+
void *argp3 = 0 ;
|
5170
5220
|
int res3 = 0 ;
|
5171
5221
|
VALUE result;
|
5172
5222
|
VALUE vresult = Qnil;
|
@@ -5202,12 +5252,12 @@ fail:
|
|
5202
5252
|
|
5203
5253
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
5204
5254
|
|
5205
|
-
static void *_p_TagLib__MP4__FileTo_p_TagLib__File(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
5206
|
-
return (void *)((TagLib::File *) ((TagLib::MP4::File *) x));
|
5207
|
-
}
|
5208
5255
|
static void *_p_TagLib__MP4__PropertiesTo_p_TagLib__AudioProperties(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
5209
5256
|
return (void *)((TagLib::AudioProperties *) ((TagLib::MP4::Properties *) x));
|
5210
5257
|
}
|
5258
|
+
static void *_p_TagLib__MP4__FileTo_p_TagLib__File(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
5259
|
+
return (void *)((TagLib::File *) ((TagLib::MP4::File *) x));
|
5260
|
+
}
|
5211
5261
|
static void *_p_TagLib__MP4__TagTo_p_TagLib__Tag(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
5212
5262
|
return (void *)((TagLib::Tag *) ((TagLib::MP4::Tag *) x));
|
5213
5263
|
}
|
@@ -5221,11 +5271,11 @@ static swig_type_info _swigt__p_TagLib__MP4__File = {"_p_TagLib__MP4__File", "Ta
|
|
5221
5271
|
static swig_type_info _swigt__p_TagLib__MP4__Item = {"_p_TagLib__MP4__Item", "TagLib::MP4::Item *", 0, 0, (void*)0, 0};
|
5222
5272
|
static swig_type_info _swigt__p_TagLib__MP4__Properties = {"_p_TagLib__MP4__Properties", "TagLib::MP4::Properties *", 0, 0, (void*)0, 0};
|
5223
5273
|
static swig_type_info _swigt__p_TagLib__MP4__Tag = {"_p_TagLib__MP4__Tag", "TagLib::MP4::Tag *", 0, 0, (void*)0, 0};
|
5224
|
-
static swig_type_info _swigt__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t = {"_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t", "TagLib::Map< TagLib::String,TagLib::MP4::Item >
|
5274
|
+
static swig_type_info _swigt__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t = {"_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t", "TagLib::MP4::ItemListMap *|TagLib::MP4::ItemMap *|TagLib::Map< TagLib::String,TagLib::MP4::Item > *", 0, 0, (void*)0, 0};
|
5225
5275
|
static swig_type_info _swigt__p_TagLib__Tag = {"_p_TagLib__Tag", "TagLib::Tag *", 0, 0, (void*)0, 0};
|
5226
5276
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
5227
5277
|
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "TagLib::uchar *|unsigned char *", 0, 0, (void*)0, 0};
|
5228
|
-
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int
|
5278
|
+
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "TagLib::uint *|unsigned int *", 0, 0, (void*)0, 0};
|
5229
5279
|
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "TagLib::ulong *|unsigned long *", 0, 0, (void*)0, 0};
|
5230
5280
|
static swig_type_info _swigt__p_wchar_t = {"_p_wchar_t", "TagLib::wchar *|wchar_t *", 0, 0, (void*)0, 0};
|
5231
5281
|
|
@@ -5342,9 +5392,12 @@ extern "C" {
|
|
5342
5392
|
#define SWIGRUNTIME_DEBUG
|
5343
5393
|
#endif
|
5344
5394
|
|
5395
|
+
#ifndef SWIG_INIT_CLIENT_DATA_TYPE
|
5396
|
+
#define SWIG_INIT_CLIENT_DATA_TYPE void *
|
5397
|
+
#endif
|
5345
5398
|
|
5346
5399
|
SWIGRUNTIME void
|
5347
|
-
SWIG_InitializeModule(
|
5400
|
+
SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
|
5348
5401
|
size_t i;
|
5349
5402
|
swig_module_info *module_head, *iter;
|
5350
5403
|
int init;
|
@@ -30,6 +30,7 @@
|
|
30
30
|
%ignore TagLib::MPEG::File::File(IOStream *, ID3v2::FrameFactory *, bool, Properties::ReadStyle);
|
31
31
|
%ignore TagLib::MPEG::File::File(IOStream *, ID3v2::FrameFactory *, bool);
|
32
32
|
%ignore TagLib::MPEG::File::File(IOStream *, ID3v2::FrameFactory *);
|
33
|
+
%ignore TagLib::MPEG::File::isSupported(IOStream *);
|
33
34
|
%rename("id3v1_tag?") TagLib::MPEG::File::hasID3v1Tag;
|
34
35
|
%rename("id3v2_tag?") TagLib::MPEG::File::hasID3v2Tag;
|
35
36
|
%rename("ape_tag?") TagLib::MPEG::File::hasAPETag;
|