taglib-ruby 1.1.3 → 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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +15 -11
- data/docs/taglib/mpeg.rb +1 -9
- data/ext/extconf_common.rb +21 -12
- data/ext/taglib_aiff/taglib_aiff.i +4 -0
- data/ext/taglib_aiff/taglib_aiff_wrap.cxx +222 -59
- data/ext/taglib_base/includes.i +14 -14
- data/ext/taglib_base/taglib_base.i +21 -0
- data/ext/taglib_base/taglib_base_wrap.cxx +289 -350
- data/ext/taglib_flac/taglib_flac.i +7 -3
- data/ext/taglib_flac/taglib_flac_wrap.cxx +233 -336
- data/ext/taglib_flac_picture/taglib_flac_picture.i +4 -0
- data/ext/taglib_flac_picture/taglib_flac_picture_wrap.cxx +125 -71
- data/ext/taglib_id3v1/taglib_id3v1_wrap.cxx +92 -51
- data/ext/taglib_id3v2/taglib_id3v2.i +5 -0
- data/ext/taglib_id3v2/taglib_id3v2_wrap.cxx +524 -414
- data/ext/taglib_mp4/taglib_mp4.i +21 -18
- data/ext/taglib_mp4/taglib_mp4_wrap.cxx +2062 -1467
- data/ext/taglib_mpeg/taglib_mpeg.i +5 -0
- data/ext/taglib_mpeg/taglib_mpeg_wrap.cxx +414 -300
- data/ext/taglib_ogg/taglib_ogg.i +0 -2
- data/ext/taglib_ogg/taglib_ogg_wrap.cxx +44 -42
- data/ext/taglib_vorbis/taglib_vorbis_wrap.cxx +27 -48
- data/ext/taglib_wav/taglib_wav.i +5 -2
- data/ext/taglib_wav/taglib_wav_wrap.cxx +179 -89
- data/lib/taglib/version.rb +3 -3
- data/tasks/ext.rake +23 -39
- data/tasks/swig.rake +14 -4
- data/test/id3v2_write_test.rb +1 -1
- data/test/wav_examples_test.rb +1 -1
- data/test/wav_file_test.rb +1 -1
- data/test/wav_file_write_test.rb +6 -6
- metadata +3 -3
@@ -1860,12 +1860,13 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1860
1860
|
#define SWIGTYPE_p_TagLib__String swig_types[4]
|
1861
1861
|
#define SWIGTYPE_p_TagLib__Tag swig_types[5]
|
1862
1862
|
#define SWIGTYPE_p_char swig_types[6]
|
1863
|
-
#define
|
1864
|
-
#define
|
1865
|
-
#define
|
1866
|
-
#define
|
1867
|
-
|
1868
|
-
static
|
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};
|
1869
1870
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
1870
1871
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
1871
1872
|
|
@@ -1961,34 +1962,26 @@ template <typename T> T SwigValueInit() {
|
|
1961
1962
|
#endif
|
1962
1963
|
|
1963
1964
|
VALUE taglib_bytevector_to_ruby_string(const TagLib::ByteVector &byteVector) {
|
1964
|
-
|
1965
|
-
return Qnil;
|
1966
|
-
} else {
|
1967
|
-
return rb_str_new(byteVector.data(), byteVector.size());
|
1968
|
-
}
|
1965
|
+
return rb_str_new(byteVector.data(), byteVector.size());
|
1969
1966
|
}
|
1970
1967
|
|
1971
1968
|
TagLib::ByteVector ruby_string_to_taglib_bytevector(VALUE s) {
|
1972
1969
|
if (NIL_P(s)) {
|
1973
|
-
return TagLib::ByteVector
|
1970
|
+
return TagLib::ByteVector();
|
1974
1971
|
} else {
|
1975
1972
|
return TagLib::ByteVector(RSTRING_PTR(StringValue(s)), RSTRING_LEN(s));
|
1976
1973
|
}
|
1977
1974
|
}
|
1978
1975
|
|
1979
1976
|
VALUE taglib_string_to_ruby_string(const TagLib::String & string) {
|
1980
|
-
|
1981
|
-
|
1982
|
-
|
1983
|
-
VALUE result = rb_str_new2(string.toCString(true));
|
1984
|
-
ASSOCIATE_UTF8_ENCODING(result);
|
1985
|
-
return result;
|
1986
|
-
}
|
1977
|
+
VALUE result = rb_str_new2(string.toCString(true));
|
1978
|
+
ASSOCIATE_UTF8_ENCODING(result);
|
1979
|
+
return result;
|
1987
1980
|
}
|
1988
1981
|
|
1989
1982
|
TagLib::String ruby_string_to_taglib_string(VALUE s) {
|
1990
1983
|
if (NIL_P(s)) {
|
1991
|
-
return TagLib::String
|
1984
|
+
return TagLib::String();
|
1992
1985
|
} else {
|
1993
1986
|
return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(StringValue(s))), TagLib::String::UTF8);
|
1994
1987
|
}
|
@@ -2077,6 +2070,13 @@ TagLib::FileName ruby_string_to_taglib_filename(VALUE s) {
|
|
2077
2070
|
#endif
|
2078
2071
|
}
|
2079
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
|
+
}
|
2080
2080
|
|
2081
2081
|
|
2082
2082
|
#include <limits.h>
|
@@ -2170,7 +2170,7 @@ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
|
|
2170
2170
|
}
|
2171
2171
|
|
2172
2172
|
|
2173
|
-
/*@SWIG:/
|
2173
|
+
/*@SWIG:/swig/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2174
2174
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE arg)
|
2175
2175
|
{
|
2176
2176
|
VALUE *args = (VALUE *)arg;
|
@@ -2223,7 +2223,7 @@ SWIG_From_bool (bool value)
|
|
2223
2223
|
}
|
2224
2224
|
|
2225
2225
|
|
2226
|
-
/*@SWIG:/
|
2226
|
+
/*@SWIG:/swig/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2227
2227
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
|
2228
2228
|
{
|
2229
2229
|
VALUE *args = (VALUE *)arg;
|
@@ -2288,6 +2288,96 @@ SWIG_AsVal_bool (VALUE obj, bool *val)
|
|
2288
2288
|
return SWIG_TypeError;
|
2289
2289
|
}
|
2290
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
|
+
|
2291
2381
|
SWIGINTERN void TagLib_FileRef_close(TagLib::FileRef *self){
|
2292
2382
|
free_taglib_fileref(self);
|
2293
2383
|
}
|
@@ -2877,6 +2967,30 @@ fail:
|
|
2877
2967
|
}
|
2878
2968
|
|
2879
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
|
+
|
2880
2994
|
static swig_class SwigClassAudioProperties;
|
2881
2995
|
|
2882
2996
|
SWIGINTERN void
|
@@ -3116,10 +3230,10 @@ fail:
|
|
3116
3230
|
SWIGINTERN VALUE
|
3117
3231
|
_wrap_File_read_block(int argc, VALUE *argv, VALUE self) {
|
3118
3232
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
3119
|
-
|
3233
|
+
size_t arg2 ;
|
3120
3234
|
void *argp1 = 0 ;
|
3121
3235
|
int res1 = 0 ;
|
3122
|
-
|
3236
|
+
size_t val2 ;
|
3123
3237
|
int ecode2 = 0 ;
|
3124
3238
|
TagLib::ByteVector result;
|
3125
3239
|
VALUE vresult = Qnil;
|
@@ -3132,11 +3246,11 @@ _wrap_File_read_block(int argc, VALUE *argv, VALUE self) {
|
|
3132
3246
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","readBlock", 1, self ));
|
3133
3247
|
}
|
3134
3248
|
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
3135
|
-
ecode2 =
|
3249
|
+
ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
|
3136
3250
|
if (!SWIG_IsOK(ecode2)) {
|
3137
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "
|
3251
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","readBlock", 2, argv[0] ));
|
3138
3252
|
}
|
3139
|
-
arg2 = static_cast<
|
3253
|
+
arg2 = static_cast< size_t >(val2);
|
3140
3254
|
result = (arg1)->readBlock(arg2);
|
3141
3255
|
{
|
3142
3256
|
vresult = taglib_bytevector_to_ruby_string(result);
|
@@ -3178,9 +3292,9 @@ fail:
|
|
3178
3292
|
Document-method: TagLib::File.find
|
3179
3293
|
|
3180
3294
|
call-seq:
|
3181
|
-
find(pattern, fromOffset=0, before=TagLib::ByteVector()) ->
|
3182
|
-
find(pattern, fromOffset=0) ->
|
3183
|
-
find(pattern) ->
|
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
|
3184
3298
|
|
3185
3299
|
Find an element in the class.
|
3186
3300
|
*/
|
@@ -3188,15 +3302,15 @@ SWIGINTERN VALUE
|
|
3188
3302
|
_wrap_File_find__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
3189
3303
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
3190
3304
|
TagLib::ByteVector *arg2 = 0 ;
|
3191
|
-
|
3305
|
+
TagLib::offset_t arg3 ;
|
3192
3306
|
TagLib::ByteVector *arg4 = 0 ;
|
3193
3307
|
void *argp1 = 0 ;
|
3194
3308
|
int res1 = 0 ;
|
3195
3309
|
TagLib::ByteVector tmp2 ;
|
3196
|
-
long val3 ;
|
3310
|
+
long long val3 ;
|
3197
3311
|
int ecode3 = 0 ;
|
3198
3312
|
TagLib::ByteVector tmp4 ;
|
3199
|
-
|
3313
|
+
TagLib::offset_t result;
|
3200
3314
|
VALUE vresult = Qnil;
|
3201
3315
|
|
3202
3316
|
if ((argc < 3) || (argc > 3)) {
|
@@ -3211,17 +3325,19 @@ _wrap_File_find__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
3211
3325
|
tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
|
3212
3326
|
arg2 = &tmp2;
|
3213
3327
|
}
|
3214
|
-
ecode3 =
|
3328
|
+
ecode3 = SWIG_AsVal_long_SS_long(argv[1], &val3);
|
3215
3329
|
if (!SWIG_IsOK(ecode3)) {
|
3216
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "
|
3330
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::offset_t","find", 3, argv[1] ));
|
3217
3331
|
}
|
3218
|
-
arg3 = static_cast<
|
3332
|
+
arg3 = static_cast< TagLib::offset_t >(val3);
|
3219
3333
|
{
|
3220
3334
|
tmp4 = ruby_string_to_taglib_bytevector(argv[2]);
|
3221
3335
|
arg4 = &tmp4;
|
3222
3336
|
}
|
3223
|
-
result = (
|
3224
|
-
|
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
|
+
}
|
3225
3341
|
return vresult;
|
3226
3342
|
fail:
|
3227
3343
|
return Qnil;
|
@@ -3232,13 +3348,13 @@ SWIGINTERN VALUE
|
|
3232
3348
|
_wrap_File_find__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
3233
3349
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
3234
3350
|
TagLib::ByteVector *arg2 = 0 ;
|
3235
|
-
|
3351
|
+
TagLib::offset_t arg3 ;
|
3236
3352
|
void *argp1 = 0 ;
|
3237
3353
|
int res1 = 0 ;
|
3238
3354
|
TagLib::ByteVector tmp2 ;
|
3239
|
-
long val3 ;
|
3355
|
+
long long val3 ;
|
3240
3356
|
int ecode3 = 0 ;
|
3241
|
-
|
3357
|
+
TagLib::offset_t result;
|
3242
3358
|
VALUE vresult = Qnil;
|
3243
3359
|
|
3244
3360
|
if ((argc < 2) || (argc > 2)) {
|
@@ -3253,13 +3369,15 @@ _wrap_File_find__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
3253
3369
|
tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
|
3254
3370
|
arg2 = &tmp2;
|
3255
3371
|
}
|
3256
|
-
ecode3 =
|
3372
|
+
ecode3 = SWIG_AsVal_long_SS_long(argv[1], &val3);
|
3257
3373
|
if (!SWIG_IsOK(ecode3)) {
|
3258
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "
|
3374
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::offset_t","find", 3, argv[1] ));
|
3259
3375
|
}
|
3260
|
-
arg3 = static_cast<
|
3261
|
-
result = (
|
3262
|
-
|
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
|
+
}
|
3263
3381
|
return vresult;
|
3264
3382
|
fail:
|
3265
3383
|
return Qnil;
|
@@ -3273,7 +3391,7 @@ _wrap_File_find__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
|
3273
3391
|
void *argp1 = 0 ;
|
3274
3392
|
int res1 = 0 ;
|
3275
3393
|
TagLib::ByteVector tmp2 ;
|
3276
|
-
|
3394
|
+
TagLib::offset_t result;
|
3277
3395
|
VALUE vresult = Qnil;
|
3278
3396
|
|
3279
3397
|
if ((argc < 1) || (argc > 1)) {
|
@@ -3288,8 +3406,10 @@ _wrap_File_find__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
|
3288
3406
|
tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
|
3289
3407
|
arg2 = &tmp2;
|
3290
3408
|
}
|
3291
|
-
result = (
|
3292
|
-
|
3409
|
+
result = (TagLib::offset_t)(arg1)->find((TagLib::ByteVector const &)*arg2);
|
3410
|
+
{
|
3411
|
+
vresult = taglib_offset_t_to_ruby_int(result);
|
3412
|
+
}
|
3293
3413
|
return vresult;
|
3294
3414
|
fail:
|
3295
3415
|
return Qnil;
|
@@ -3330,7 +3450,7 @@ SWIGINTERN VALUE _wrap_File_find(int nargs, VALUE *args, VALUE self) {
|
|
3330
3450
|
_v = SWIG_CheckState(res);
|
3331
3451
|
if (_v) {
|
3332
3452
|
{
|
3333
|
-
int res =
|
3453
|
+
int res = SWIG_AsVal_long_SS_long(argv[2], NULL);
|
3334
3454
|
_v = SWIG_CheckState(res);
|
3335
3455
|
}
|
3336
3456
|
if (_v) {
|
@@ -3349,7 +3469,7 @@ SWIGINTERN VALUE _wrap_File_find(int nargs, VALUE *args, VALUE self) {
|
|
3349
3469
|
_v = SWIG_CheckState(res);
|
3350
3470
|
if (_v) {
|
3351
3471
|
{
|
3352
|
-
int res =
|
3472
|
+
int res = SWIG_AsVal_long_SS_long(argv[2], NULL);
|
3353
3473
|
_v = SWIG_CheckState(res);
|
3354
3474
|
}
|
3355
3475
|
if (_v) {
|
@@ -3365,9 +3485,9 @@ SWIGINTERN VALUE _wrap_File_find(int nargs, VALUE *args, VALUE self) {
|
|
3365
3485
|
|
3366
3486
|
fail:
|
3367
3487
|
Ruby_Format_OverloadedError( argc, 5, "File.find",
|
3368
|
-
"
|
3369
|
-
"
|
3370
|
-
"
|
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");
|
3371
3491
|
|
3372
3492
|
return Qnil;
|
3373
3493
|
}
|
@@ -3377,15 +3497,15 @@ SWIGINTERN VALUE
|
|
3377
3497
|
_wrap_File_rfind__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
3378
3498
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
3379
3499
|
TagLib::ByteVector *arg2 = 0 ;
|
3380
|
-
|
3500
|
+
TagLib::offset_t arg3 ;
|
3381
3501
|
TagLib::ByteVector *arg4 = 0 ;
|
3382
3502
|
void *argp1 = 0 ;
|
3383
3503
|
int res1 = 0 ;
|
3384
3504
|
TagLib::ByteVector tmp2 ;
|
3385
|
-
long val3 ;
|
3505
|
+
long long val3 ;
|
3386
3506
|
int ecode3 = 0 ;
|
3387
3507
|
TagLib::ByteVector tmp4 ;
|
3388
|
-
|
3508
|
+
TagLib::offset_t result;
|
3389
3509
|
VALUE vresult = Qnil;
|
3390
3510
|
|
3391
3511
|
if ((argc < 3) || (argc > 3)) {
|
@@ -3400,17 +3520,19 @@ _wrap_File_rfind__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
3400
3520
|
tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
|
3401
3521
|
arg2 = &tmp2;
|
3402
3522
|
}
|
3403
|
-
ecode3 =
|
3523
|
+
ecode3 = SWIG_AsVal_long_SS_long(argv[1], &val3);
|
3404
3524
|
if (!SWIG_IsOK(ecode3)) {
|
3405
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "
|
3525
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::offset_t","rfind", 3, argv[1] ));
|
3406
3526
|
}
|
3407
|
-
arg3 = static_cast<
|
3527
|
+
arg3 = static_cast< TagLib::offset_t >(val3);
|
3408
3528
|
{
|
3409
3529
|
tmp4 = ruby_string_to_taglib_bytevector(argv[2]);
|
3410
3530
|
arg4 = &tmp4;
|
3411
3531
|
}
|
3412
|
-
result = (
|
3413
|
-
|
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
|
+
}
|
3414
3536
|
return vresult;
|
3415
3537
|
fail:
|
3416
3538
|
return Qnil;
|
@@ -3421,13 +3543,13 @@ SWIGINTERN VALUE
|
|
3421
3543
|
_wrap_File_rfind__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
3422
3544
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
3423
3545
|
TagLib::ByteVector *arg2 = 0 ;
|
3424
|
-
|
3546
|
+
TagLib::offset_t arg3 ;
|
3425
3547
|
void *argp1 = 0 ;
|
3426
3548
|
int res1 = 0 ;
|
3427
3549
|
TagLib::ByteVector tmp2 ;
|
3428
|
-
long val3 ;
|
3550
|
+
long long val3 ;
|
3429
3551
|
int ecode3 = 0 ;
|
3430
|
-
|
3552
|
+
TagLib::offset_t result;
|
3431
3553
|
VALUE vresult = Qnil;
|
3432
3554
|
|
3433
3555
|
if ((argc < 2) || (argc > 2)) {
|
@@ -3442,13 +3564,15 @@ _wrap_File_rfind__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
3442
3564
|
tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
|
3443
3565
|
arg2 = &tmp2;
|
3444
3566
|
}
|
3445
|
-
ecode3 =
|
3567
|
+
ecode3 = SWIG_AsVal_long_SS_long(argv[1], &val3);
|
3446
3568
|
if (!SWIG_IsOK(ecode3)) {
|
3447
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "
|
3569
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::offset_t","rfind", 3, argv[1] ));
|
3448
3570
|
}
|
3449
|
-
arg3 = static_cast<
|
3450
|
-
result = (
|
3451
|
-
|
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
|
+
}
|
3452
3576
|
return vresult;
|
3453
3577
|
fail:
|
3454
3578
|
return Qnil;
|
@@ -3462,7 +3586,7 @@ _wrap_File_rfind__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
|
3462
3586
|
void *argp1 = 0 ;
|
3463
3587
|
int res1 = 0 ;
|
3464
3588
|
TagLib::ByteVector tmp2 ;
|
3465
|
-
|
3589
|
+
TagLib::offset_t result;
|
3466
3590
|
VALUE vresult = Qnil;
|
3467
3591
|
|
3468
3592
|
if ((argc < 1) || (argc > 1)) {
|
@@ -3477,8 +3601,10 @@ _wrap_File_rfind__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
|
3477
3601
|
tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
|
3478
3602
|
arg2 = &tmp2;
|
3479
3603
|
}
|
3480
|
-
result = (
|
3481
|
-
|
3604
|
+
result = (TagLib::offset_t)(arg1)->rfind((TagLib::ByteVector const &)*arg2);
|
3605
|
+
{
|
3606
|
+
vresult = taglib_offset_t_to_ruby_int(result);
|
3607
|
+
}
|
3482
3608
|
return vresult;
|
3483
3609
|
fail:
|
3484
3610
|
return Qnil;
|
@@ -3519,7 +3645,7 @@ SWIGINTERN VALUE _wrap_File_rfind(int nargs, VALUE *args, VALUE self) {
|
|
3519
3645
|
_v = SWIG_CheckState(res);
|
3520
3646
|
if (_v) {
|
3521
3647
|
{
|
3522
|
-
int res =
|
3648
|
+
int res = SWIG_AsVal_long_SS_long(argv[2], NULL);
|
3523
3649
|
_v = SWIG_CheckState(res);
|
3524
3650
|
}
|
3525
3651
|
if (_v) {
|
@@ -3538,7 +3664,7 @@ SWIGINTERN VALUE _wrap_File_rfind(int nargs, VALUE *args, VALUE self) {
|
|
3538
3664
|
_v = SWIG_CheckState(res);
|
3539
3665
|
if (_v) {
|
3540
3666
|
{
|
3541
|
-
int res =
|
3667
|
+
int res = SWIG_AsVal_long_SS_long(argv[2], NULL);
|
3542
3668
|
_v = SWIG_CheckState(res);
|
3543
3669
|
}
|
3544
3670
|
if (_v) {
|
@@ -3554,9 +3680,9 @@ SWIGINTERN VALUE _wrap_File_rfind(int nargs, VALUE *args, VALUE self) {
|
|
3554
3680
|
|
3555
3681
|
fail:
|
3556
3682
|
Ruby_Format_OverloadedError( argc, 5, "File.rfind",
|
3557
|
-
"
|
3558
|
-
"
|
3559
|
-
"
|
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");
|
3560
3686
|
|
3561
3687
|
return Qnil;
|
3562
3688
|
}
|
@@ -3576,14 +3702,14 @@ SWIGINTERN VALUE
|
|
3576
3702
|
_wrap_File_insert__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
3577
3703
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
3578
3704
|
TagLib::ByteVector *arg2 = 0 ;
|
3579
|
-
|
3580
|
-
|
3705
|
+
TagLib::offset_t arg3 ;
|
3706
|
+
size_t arg4 ;
|
3581
3707
|
void *argp1 = 0 ;
|
3582
3708
|
int res1 = 0 ;
|
3583
3709
|
TagLib::ByteVector tmp2 ;
|
3584
|
-
|
3710
|
+
long long val3 ;
|
3585
3711
|
int ecode3 = 0 ;
|
3586
|
-
|
3712
|
+
size_t val4 ;
|
3587
3713
|
int ecode4 = 0 ;
|
3588
3714
|
|
3589
3715
|
if ((argc < 3) || (argc > 3)) {
|
@@ -3598,16 +3724,16 @@ _wrap_File_insert__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
3598
3724
|
tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
|
3599
3725
|
arg2 = &tmp2;
|
3600
3726
|
}
|
3601
|
-
ecode3 =
|
3727
|
+
ecode3 = SWIG_AsVal_long_SS_long(argv[1], &val3);
|
3602
3728
|
if (!SWIG_IsOK(ecode3)) {
|
3603
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "
|
3729
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::offset_t","insert", 3, argv[1] ));
|
3604
3730
|
}
|
3605
|
-
arg3 = static_cast<
|
3606
|
-
ecode4 =
|
3731
|
+
arg3 = static_cast< TagLib::offset_t >(val3);
|
3732
|
+
ecode4 = SWIG_AsVal_size_t(argv[2], &val4);
|
3607
3733
|
if (!SWIG_IsOK(ecode4)) {
|
3608
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "
|
3734
|
+
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","insert", 4, argv[2] ));
|
3609
3735
|
}
|
3610
|
-
arg4 = static_cast<
|
3736
|
+
arg4 = static_cast< size_t >(val4);
|
3611
3737
|
(arg1)->insert((TagLib::ByteVector const &)*arg2,arg3,arg4);
|
3612
3738
|
return Qnil;
|
3613
3739
|
fail:
|
@@ -3619,11 +3745,11 @@ SWIGINTERN VALUE
|
|
3619
3745
|
_wrap_File_insert__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
3620
3746
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
3621
3747
|
TagLib::ByteVector *arg2 = 0 ;
|
3622
|
-
|
3748
|
+
TagLib::offset_t arg3 ;
|
3623
3749
|
void *argp1 = 0 ;
|
3624
3750
|
int res1 = 0 ;
|
3625
3751
|
TagLib::ByteVector tmp2 ;
|
3626
|
-
|
3752
|
+
long long val3 ;
|
3627
3753
|
int ecode3 = 0 ;
|
3628
3754
|
|
3629
3755
|
if ((argc < 2) || (argc > 2)) {
|
@@ -3638,11 +3764,11 @@ _wrap_File_insert__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
3638
3764
|
tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
|
3639
3765
|
arg2 = &tmp2;
|
3640
3766
|
}
|
3641
|
-
ecode3 =
|
3767
|
+
ecode3 = SWIG_AsVal_long_SS_long(argv[1], &val3);
|
3642
3768
|
if (!SWIG_IsOK(ecode3)) {
|
3643
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "
|
3769
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::offset_t","insert", 3, argv[1] ));
|
3644
3770
|
}
|
3645
|
-
arg3 = static_cast<
|
3771
|
+
arg3 = static_cast< TagLib::offset_t >(val3);
|
3646
3772
|
(arg1)->insert((TagLib::ByteVector const &)*arg2,arg3);
|
3647
3773
|
return Qnil;
|
3648
3774
|
fail:
|
@@ -3711,7 +3837,7 @@ SWIGINTERN VALUE _wrap_File_insert(int nargs, VALUE *args, VALUE self) {
|
|
3711
3837
|
_v = SWIG_CheckState(res);
|
3712
3838
|
if (_v) {
|
3713
3839
|
{
|
3714
|
-
int res =
|
3840
|
+
int res = SWIG_AsVal_long_SS_long(argv[2], NULL);
|
3715
3841
|
_v = SWIG_CheckState(res);
|
3716
3842
|
}
|
3717
3843
|
if (_v) {
|
@@ -3730,12 +3856,12 @@ SWIGINTERN VALUE _wrap_File_insert(int nargs, VALUE *args, VALUE self) {
|
|
3730
3856
|
_v = SWIG_CheckState(res);
|
3731
3857
|
if (_v) {
|
3732
3858
|
{
|
3733
|
-
int res =
|
3859
|
+
int res = SWIG_AsVal_long_SS_long(argv[2], NULL);
|
3734
3860
|
_v = SWIG_CheckState(res);
|
3735
3861
|
}
|
3736
3862
|
if (_v) {
|
3737
3863
|
{
|
3738
|
-
int res =
|
3864
|
+
int res = SWIG_AsVal_size_t(argv[3], NULL);
|
3739
3865
|
_v = SWIG_CheckState(res);
|
3740
3866
|
}
|
3741
3867
|
if (_v) {
|
@@ -3748,8 +3874,8 @@ SWIGINTERN VALUE _wrap_File_insert(int nargs, VALUE *args, VALUE self) {
|
|
3748
3874
|
|
3749
3875
|
fail:
|
3750
3876
|
Ruby_Format_OverloadedError( argc, 5, "File.insert",
|
3751
|
-
" void File.insert(TagLib::ByteVector const &data,
|
3752
|
-
" void File.insert(TagLib::ByteVector const &data,
|
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"
|
3753
3879
|
" void File.insert(TagLib::ByteVector const &data)\n");
|
3754
3880
|
|
3755
3881
|
return Qnil;
|
@@ -3759,13 +3885,13 @@ fail:
|
|
3759
3885
|
SWIGINTERN VALUE
|
3760
3886
|
_wrap_File_remove_block__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
3761
3887
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
3762
|
-
|
3763
|
-
|
3888
|
+
TagLib::offset_t arg2 ;
|
3889
|
+
size_t arg3 ;
|
3764
3890
|
void *argp1 = 0 ;
|
3765
3891
|
int res1 = 0 ;
|
3766
|
-
|
3892
|
+
long long val2 ;
|
3767
3893
|
int ecode2 = 0 ;
|
3768
|
-
|
3894
|
+
size_t val3 ;
|
3769
3895
|
int ecode3 = 0 ;
|
3770
3896
|
|
3771
3897
|
if ((argc < 2) || (argc > 2)) {
|
@@ -3776,16 +3902,16 @@ _wrap_File_remove_block__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
3776
3902
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","removeBlock", 1, self ));
|
3777
3903
|
}
|
3778
3904
|
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
3779
|
-
ecode2 =
|
3905
|
+
ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2);
|
3780
3906
|
if (!SWIG_IsOK(ecode2)) {
|
3781
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "
|
3907
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::offset_t","removeBlock", 2, argv[0] ));
|
3782
3908
|
}
|
3783
|
-
arg2 = static_cast<
|
3784
|
-
ecode3 =
|
3909
|
+
arg2 = static_cast< TagLib::offset_t >(val2);
|
3910
|
+
ecode3 = SWIG_AsVal_size_t(argv[1], &val3);
|
3785
3911
|
if (!SWIG_IsOK(ecode3)) {
|
3786
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "
|
3912
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","removeBlock", 3, argv[1] ));
|
3787
3913
|
}
|
3788
|
-
arg3 = static_cast<
|
3914
|
+
arg3 = static_cast< size_t >(val3);
|
3789
3915
|
(arg1)->removeBlock(arg2,arg3);
|
3790
3916
|
return Qnil;
|
3791
3917
|
fail:
|
@@ -3796,10 +3922,10 @@ fail:
|
|
3796
3922
|
SWIGINTERN VALUE
|
3797
3923
|
_wrap_File_remove_block__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
3798
3924
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
3799
|
-
|
3925
|
+
TagLib::offset_t arg2 ;
|
3800
3926
|
void *argp1 = 0 ;
|
3801
3927
|
int res1 = 0 ;
|
3802
|
-
|
3928
|
+
long long val2 ;
|
3803
3929
|
int ecode2 = 0 ;
|
3804
3930
|
|
3805
3931
|
if ((argc < 1) || (argc > 1)) {
|
@@ -3810,11 +3936,11 @@ _wrap_File_remove_block__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
3810
3936
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","removeBlock", 1, self ));
|
3811
3937
|
}
|
3812
3938
|
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
3813
|
-
ecode2 =
|
3939
|
+
ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2);
|
3814
3940
|
if (!SWIG_IsOK(ecode2)) {
|
3815
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "
|
3941
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::offset_t","removeBlock", 2, argv[0] ));
|
3816
3942
|
}
|
3817
|
-
arg2 = static_cast<
|
3943
|
+
arg2 = static_cast< TagLib::offset_t >(val2);
|
3818
3944
|
(arg1)->removeBlock(arg2);
|
3819
3945
|
return Qnil;
|
3820
3946
|
fail:
|
@@ -3870,7 +3996,7 @@ SWIGINTERN VALUE _wrap_File_remove_block(int nargs, VALUE *args, VALUE self) {
|
|
3870
3996
|
_v = SWIG_CheckState(res);
|
3871
3997
|
if (_v) {
|
3872
3998
|
{
|
3873
|
-
int res =
|
3999
|
+
int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
|
3874
4000
|
_v = SWIG_CheckState(res);
|
3875
4001
|
}
|
3876
4002
|
if (_v) {
|
@@ -3885,12 +4011,12 @@ SWIGINTERN VALUE _wrap_File_remove_block(int nargs, VALUE *args, VALUE self) {
|
|
3885
4011
|
_v = SWIG_CheckState(res);
|
3886
4012
|
if (_v) {
|
3887
4013
|
{
|
3888
|
-
int res =
|
4014
|
+
int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
|
3889
4015
|
_v = SWIG_CheckState(res);
|
3890
4016
|
}
|
3891
4017
|
if (_v) {
|
3892
4018
|
{
|
3893
|
-
int res =
|
4019
|
+
int res = SWIG_AsVal_size_t(argv[2], NULL);
|
3894
4020
|
_v = SWIG_CheckState(res);
|
3895
4021
|
}
|
3896
4022
|
if (_v) {
|
@@ -3902,8 +4028,8 @@ SWIGINTERN VALUE _wrap_File_remove_block(int nargs, VALUE *args, VALUE self) {
|
|
3902
4028
|
|
3903
4029
|
fail:
|
3904
4030
|
Ruby_Format_OverloadedError( argc, 4, "File.remove_block",
|
3905
|
-
" void File.remove_block(
|
3906
|
-
" void File.remove_block(
|
4031
|
+
" void File.remove_block(TagLib::offset_t start, size_t length)\n"
|
4032
|
+
" void File.remove_block(TagLib::offset_t start)\n"
|
3907
4033
|
" void File.remove_block()\n");
|
3908
4034
|
|
3909
4035
|
return Qnil;
|
@@ -3985,11 +4111,11 @@ fail:
|
|
3985
4111
|
SWIGINTERN VALUE
|
3986
4112
|
_wrap_File_seek__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
3987
4113
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
3988
|
-
|
4114
|
+
TagLib::offset_t arg2 ;
|
3989
4115
|
TagLib::File::Position arg3 ;
|
3990
4116
|
void *argp1 = 0 ;
|
3991
4117
|
int res1 = 0 ;
|
3992
|
-
long val2 ;
|
4118
|
+
long long val2 ;
|
3993
4119
|
int ecode2 = 0 ;
|
3994
4120
|
int val3 ;
|
3995
4121
|
int ecode3 = 0 ;
|
@@ -4002,11 +4128,11 @@ _wrap_File_seek__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
4002
4128
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","seek", 1, self ));
|
4003
4129
|
}
|
4004
4130
|
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
4005
|
-
ecode2 =
|
4131
|
+
ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2);
|
4006
4132
|
if (!SWIG_IsOK(ecode2)) {
|
4007
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "
|
4133
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::offset_t","seek", 2, argv[0] ));
|
4008
4134
|
}
|
4009
|
-
arg2 = static_cast<
|
4135
|
+
arg2 = static_cast< TagLib::offset_t >(val2);
|
4010
4136
|
ecode3 = SWIG_AsVal_int(argv[1], &val3);
|
4011
4137
|
if (!SWIG_IsOK(ecode3)) {
|
4012
4138
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::File::Position","seek", 3, argv[1] ));
|
@@ -4022,10 +4148,10 @@ fail:
|
|
4022
4148
|
SWIGINTERN VALUE
|
4023
4149
|
_wrap_File_seek__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
4024
4150
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
4025
|
-
|
4151
|
+
TagLib::offset_t arg2 ;
|
4026
4152
|
void *argp1 = 0 ;
|
4027
4153
|
int res1 = 0 ;
|
4028
|
-
long val2 ;
|
4154
|
+
long long val2 ;
|
4029
4155
|
int ecode2 = 0 ;
|
4030
4156
|
|
4031
4157
|
if ((argc < 1) || (argc > 1)) {
|
@@ -4036,11 +4162,11 @@ _wrap_File_seek__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
4036
4162
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","seek", 1, self ));
|
4037
4163
|
}
|
4038
4164
|
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
4039
|
-
ecode2 =
|
4165
|
+
ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2);
|
4040
4166
|
if (!SWIG_IsOK(ecode2)) {
|
4041
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "
|
4167
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::offset_t","seek", 2, argv[0] ));
|
4042
4168
|
}
|
4043
|
-
arg2 = static_cast<
|
4169
|
+
arg2 = static_cast< TagLib::offset_t >(val2);
|
4044
4170
|
(arg1)->seek(arg2);
|
4045
4171
|
return Qnil;
|
4046
4172
|
fail:
|
@@ -4066,7 +4192,7 @@ SWIGINTERN VALUE _wrap_File_seek(int nargs, VALUE *args, VALUE self) {
|
|
4066
4192
|
_v = SWIG_CheckState(res);
|
4067
4193
|
if (_v) {
|
4068
4194
|
{
|
4069
|
-
int res =
|
4195
|
+
int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
|
4070
4196
|
_v = SWIG_CheckState(res);
|
4071
4197
|
}
|
4072
4198
|
if (_v) {
|
@@ -4081,7 +4207,7 @@ SWIGINTERN VALUE _wrap_File_seek(int nargs, VALUE *args, VALUE self) {
|
|
4081
4207
|
_v = SWIG_CheckState(res);
|
4082
4208
|
if (_v) {
|
4083
4209
|
{
|
4084
|
-
int res =
|
4210
|
+
int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
|
4085
4211
|
_v = SWIG_CheckState(res);
|
4086
4212
|
}
|
4087
4213
|
if (_v) {
|
@@ -4098,8 +4224,8 @@ SWIGINTERN VALUE _wrap_File_seek(int nargs, VALUE *args, VALUE self) {
|
|
4098
4224
|
|
4099
4225
|
fail:
|
4100
4226
|
Ruby_Format_OverloadedError( argc, 4, "File.seek",
|
4101
|
-
" void File.seek(
|
4102
|
-
" void File.seek(
|
4227
|
+
" void File.seek(TagLib::offset_t offset, TagLib::File::Position p)\n"
|
4228
|
+
" void File.seek(TagLib::offset_t offset)\n");
|
4103
4229
|
|
4104
4230
|
return Qnil;
|
4105
4231
|
}
|
@@ -4131,7 +4257,7 @@ _wrap_File_tell(int argc, VALUE *argv, VALUE self) {
|
|
4131
4257
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
4132
4258
|
void *argp1 = 0 ;
|
4133
4259
|
int res1 = 0 ;
|
4134
|
-
|
4260
|
+
TagLib::offset_t result;
|
4135
4261
|
VALUE vresult = Qnil;
|
4136
4262
|
|
4137
4263
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4142,8 +4268,10 @@ _wrap_File_tell(int argc, VALUE *argv, VALUE self) {
|
|
4142
4268
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File const *","tell", 1, self ));
|
4143
4269
|
}
|
4144
4270
|
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
4145
|
-
result = (
|
4146
|
-
|
4271
|
+
result = (TagLib::offset_t)((TagLib::File const *)arg1)->tell();
|
4272
|
+
{
|
4273
|
+
vresult = taglib_offset_t_to_ruby_int(result);
|
4274
|
+
}
|
4147
4275
|
return vresult;
|
4148
4276
|
fail:
|
4149
4277
|
return Qnil;
|
@@ -4155,7 +4283,7 @@ _wrap_File_length(int argc, VALUE *argv, VALUE self) {
|
|
4155
4283
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
4156
4284
|
void *argp1 = 0 ;
|
4157
4285
|
int res1 = 0 ;
|
4158
|
-
|
4286
|
+
TagLib::offset_t result;
|
4159
4287
|
VALUE vresult = Qnil;
|
4160
4288
|
|
4161
4289
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4166,64 +4294,12 @@ _wrap_File_length(int argc, VALUE *argv, VALUE self) {
|
|
4166
4294
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","length", 1, self ));
|
4167
4295
|
}
|
4168
4296
|
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
4169
|
-
result = (
|
4170
|
-
|
4171
|
-
|
4172
|
-
fail:
|
4173
|
-
return Qnil;
|
4174
|
-
}
|
4175
|
-
|
4176
|
-
|
4177
|
-
SWIGINTERN VALUE
|
4178
|
-
_wrap_File_readableq___(int argc, VALUE *argv, VALUE self) {
|
4179
|
-
char *arg1 = (char *) 0 ;
|
4180
|
-
int res1 ;
|
4181
|
-
char *buf1 = 0 ;
|
4182
|
-
int alloc1 = 0 ;
|
4183
|
-
bool result;
|
4184
|
-
VALUE vresult = Qnil;
|
4185
|
-
|
4186
|
-
if ((argc < 1) || (argc > 1)) {
|
4187
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4188
|
-
}
|
4189
|
-
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
4190
|
-
if (!SWIG_IsOK(res1)) {
|
4191
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","TagLib::File::isReadable", 1, argv[0] ));
|
4192
|
-
}
|
4193
|
-
arg1 = reinterpret_cast< char * >(buf1);
|
4194
|
-
result = (bool)TagLib::File::isReadable((char const *)arg1);
|
4195
|
-
vresult = SWIG_From_bool(static_cast< bool >(result));
|
4196
|
-
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
4197
|
-
return vresult;
|
4198
|
-
fail:
|
4199
|
-
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
4200
|
-
return Qnil;
|
4201
|
-
}
|
4202
|
-
|
4203
|
-
|
4204
|
-
SWIGINTERN VALUE
|
4205
|
-
_wrap_File_writableq___(int argc, VALUE *argv, VALUE self) {
|
4206
|
-
char *arg1 = (char *) 0 ;
|
4207
|
-
int res1 ;
|
4208
|
-
char *buf1 = 0 ;
|
4209
|
-
int alloc1 = 0 ;
|
4210
|
-
bool result;
|
4211
|
-
VALUE vresult = Qnil;
|
4212
|
-
|
4213
|
-
if ((argc < 1) || (argc > 1)) {
|
4214
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4215
|
-
}
|
4216
|
-
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
4217
|
-
if (!SWIG_IsOK(res1)) {
|
4218
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","TagLib::File::isWritable", 1, argv[0] ));
|
4297
|
+
result = (TagLib::offset_t)(arg1)->length();
|
4298
|
+
{
|
4299
|
+
vresult = taglib_offset_t_to_ruby_int(result);
|
4219
4300
|
}
|
4220
|
-
arg1 = reinterpret_cast< char * >(buf1);
|
4221
|
-
result = (bool)TagLib::File::isWritable((char const *)arg1);
|
4222
|
-
vresult = SWIG_From_bool(static_cast< bool >(result));
|
4223
|
-
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
4224
4301
|
return vresult;
|
4225
4302
|
fail:
|
4226
|
-
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
4227
4303
|
return Qnil;
|
4228
4304
|
}
|
4229
4305
|
|
@@ -4619,6 +4695,18 @@ fail:
|
|
4619
4695
|
}
|
4620
4696
|
|
4621
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
|
+
|
4622
4710
|
SWIGINTERN VALUE
|
4623
4711
|
_wrap_FileRef_default_file_extensions(int argc, VALUE *argv, VALUE self) {
|
4624
4712
|
TagLib::StringList result;
|
@@ -4704,162 +4792,6 @@ fail:
|
|
4704
4792
|
}
|
4705
4793
|
|
4706
4794
|
|
4707
|
-
SWIGINTERN VALUE
|
4708
|
-
_wrap_FileRef_create__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
4709
|
-
TagLib::FileName arg1 ;
|
4710
|
-
bool arg2 ;
|
4711
|
-
TagLib::AudioProperties::ReadStyle arg3 ;
|
4712
|
-
bool val2 ;
|
4713
|
-
int ecode2 = 0 ;
|
4714
|
-
int val3 ;
|
4715
|
-
int ecode3 = 0 ;
|
4716
|
-
TagLib::File *result = 0 ;
|
4717
|
-
VALUE vresult = Qnil;
|
4718
|
-
|
4719
|
-
if ((argc < 3) || (argc > 3)) {
|
4720
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4721
|
-
}
|
4722
|
-
{
|
4723
|
-
arg1 = ruby_string_to_taglib_filename(argv[0]);
|
4724
|
-
if ((const char *)(TagLib::FileName)(arg1) == NULL) {
|
4725
|
-
SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory for file name.");
|
4726
|
-
}
|
4727
|
-
}
|
4728
|
-
ecode2 = SWIG_AsVal_bool(argv[1], &val2);
|
4729
|
-
if (!SWIG_IsOK(ecode2)) {
|
4730
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","TagLib::FileRef::create", 2, argv[1] ));
|
4731
|
-
}
|
4732
|
-
arg2 = static_cast< bool >(val2);
|
4733
|
-
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4734
|
-
if (!SWIG_IsOK(ecode3)) {
|
4735
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::AudioProperties::ReadStyle","TagLib::FileRef::create", 3, argv[2] ));
|
4736
|
-
}
|
4737
|
-
arg3 = static_cast< TagLib::AudioProperties::ReadStyle >(val3);
|
4738
|
-
result = (TagLib::File *)TagLib::FileRef::create(SWIG_STD_MOVE(arg1),arg2,arg3);
|
4739
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__File, 0 | 0 );
|
4740
|
-
return vresult;
|
4741
|
-
fail:
|
4742
|
-
return Qnil;
|
4743
|
-
}
|
4744
|
-
|
4745
|
-
|
4746
|
-
SWIGINTERN VALUE
|
4747
|
-
_wrap_FileRef_create__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
4748
|
-
TagLib::FileName arg1 ;
|
4749
|
-
bool arg2 ;
|
4750
|
-
bool val2 ;
|
4751
|
-
int ecode2 = 0 ;
|
4752
|
-
TagLib::File *result = 0 ;
|
4753
|
-
VALUE vresult = Qnil;
|
4754
|
-
|
4755
|
-
if ((argc < 2) || (argc > 2)) {
|
4756
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4757
|
-
}
|
4758
|
-
{
|
4759
|
-
arg1 = ruby_string_to_taglib_filename(argv[0]);
|
4760
|
-
if ((const char *)(TagLib::FileName)(arg1) == NULL) {
|
4761
|
-
SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory for file name.");
|
4762
|
-
}
|
4763
|
-
}
|
4764
|
-
ecode2 = SWIG_AsVal_bool(argv[1], &val2);
|
4765
|
-
if (!SWIG_IsOK(ecode2)) {
|
4766
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","TagLib::FileRef::create", 2, argv[1] ));
|
4767
|
-
}
|
4768
|
-
arg2 = static_cast< bool >(val2);
|
4769
|
-
result = (TagLib::File *)TagLib::FileRef::create(SWIG_STD_MOVE(arg1),arg2);
|
4770
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__File, 0 | 0 );
|
4771
|
-
return vresult;
|
4772
|
-
fail:
|
4773
|
-
return Qnil;
|
4774
|
-
}
|
4775
|
-
|
4776
|
-
|
4777
|
-
SWIGINTERN VALUE
|
4778
|
-
_wrap_FileRef_create__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
4779
|
-
TagLib::FileName arg1 ;
|
4780
|
-
TagLib::File *result = 0 ;
|
4781
|
-
VALUE vresult = Qnil;
|
4782
|
-
|
4783
|
-
if ((argc < 1) || (argc > 1)) {
|
4784
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4785
|
-
}
|
4786
|
-
{
|
4787
|
-
arg1 = ruby_string_to_taglib_filename(argv[0]);
|
4788
|
-
if ((const char *)(TagLib::FileName)(arg1) == NULL) {
|
4789
|
-
SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory for file name.");
|
4790
|
-
}
|
4791
|
-
}
|
4792
|
-
result = (TagLib::File *)TagLib::FileRef::create(SWIG_STD_MOVE(arg1));
|
4793
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__File, 0 | 0 );
|
4794
|
-
return vresult;
|
4795
|
-
fail:
|
4796
|
-
return Qnil;
|
4797
|
-
}
|
4798
|
-
|
4799
|
-
|
4800
|
-
SWIGINTERN VALUE _wrap_FileRef_create(int nargs, VALUE *args, VALUE self) {
|
4801
|
-
int argc;
|
4802
|
-
VALUE argv[3];
|
4803
|
-
int ii;
|
4804
|
-
|
4805
|
-
argc = nargs;
|
4806
|
-
if (argc > 3) SWIG_fail;
|
4807
|
-
for (ii = 0; (ii < argc); ++ii) {
|
4808
|
-
argv[ii] = args[ii];
|
4809
|
-
}
|
4810
|
-
if (argc == 1) {
|
4811
|
-
int _v = 0;
|
4812
|
-
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
4813
|
-
_v = SWIG_CheckState(res);
|
4814
|
-
if (_v) {
|
4815
|
-
return _wrap_FileRef_create__SWIG_2(nargs, args, self);
|
4816
|
-
}
|
4817
|
-
}
|
4818
|
-
if (argc == 2) {
|
4819
|
-
int _v = 0;
|
4820
|
-
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
4821
|
-
_v = SWIG_CheckState(res);
|
4822
|
-
if (_v) {
|
4823
|
-
{
|
4824
|
-
int res = SWIG_AsVal_bool(argv[1], NULL);
|
4825
|
-
_v = SWIG_CheckState(res);
|
4826
|
-
}
|
4827
|
-
if (_v) {
|
4828
|
-
return _wrap_FileRef_create__SWIG_1(nargs, args, self);
|
4829
|
-
}
|
4830
|
-
}
|
4831
|
-
}
|
4832
|
-
if (argc == 3) {
|
4833
|
-
int _v = 0;
|
4834
|
-
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
4835
|
-
_v = SWIG_CheckState(res);
|
4836
|
-
if (_v) {
|
4837
|
-
{
|
4838
|
-
int res = SWIG_AsVal_bool(argv[1], NULL);
|
4839
|
-
_v = SWIG_CheckState(res);
|
4840
|
-
}
|
4841
|
-
if (_v) {
|
4842
|
-
{
|
4843
|
-
int res = SWIG_AsVal_int(argv[2], NULL);
|
4844
|
-
_v = SWIG_CheckState(res);
|
4845
|
-
}
|
4846
|
-
if (_v) {
|
4847
|
-
return _wrap_FileRef_create__SWIG_0(nargs, args, self);
|
4848
|
-
}
|
4849
|
-
}
|
4850
|
-
}
|
4851
|
-
}
|
4852
|
-
|
4853
|
-
fail:
|
4854
|
-
Ruby_Format_OverloadedError( argc, 3, "FileRef.create",
|
4855
|
-
" TagLib::File FileRef.create(TagLib::FileName fileName, bool readAudioProperties, TagLib::AudioProperties::ReadStyle audioPropertiesStyle)\n"
|
4856
|
-
" TagLib::File FileRef.create(TagLib::FileName fileName, bool readAudioProperties)\n"
|
4857
|
-
" TagLib::File * FileRef.create(TagLib::FileName fileName)\n");
|
4858
|
-
|
4859
|
-
return Qnil;
|
4860
|
-
}
|
4861
|
-
|
4862
|
-
|
4863
4795
|
SWIGINTERN VALUE
|
4864
4796
|
_wrap_FileRef_close(int argc, VALUE *argv, VALUE self) {
|
4865
4797
|
TagLib::FileRef *arg1 = (TagLib::FileRef *) 0 ;
|
@@ -4891,6 +4823,7 @@ static swig_type_info _swigt__p_TagLib__FileRef__FileTypeResolver = {"_p_TagLib_
|
|
4891
4823
|
static swig_type_info _swigt__p_TagLib__String = {"_p_TagLib__String", "TagLib::String *", 0, 0, (void*)0, 0};
|
4892
4824
|
static swig_type_info _swigt__p_TagLib__Tag = {"_p_TagLib__Tag", "TagLib::Tag *", 0, 0, (void*)0, 0};
|
4893
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};
|
4894
4827
|
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "TagLib::uchar *|unsigned char *", 0, 0, (void*)0, 0};
|
4895
4828
|
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "TagLib::uint *|unsigned int *", 0, 0, (void*)0, 0};
|
4896
4829
|
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "TagLib::ulong *|unsigned long *", 0, 0, (void*)0, 0};
|
@@ -4904,6 +4837,7 @@ static swig_type_info *swig_type_initial[] = {
|
|
4904
4837
|
&_swigt__p_TagLib__String,
|
4905
4838
|
&_swigt__p_TagLib__Tag,
|
4906
4839
|
&_swigt__p_char,
|
4840
|
+
&_swigt__p_long_long,
|
4907
4841
|
&_swigt__p_unsigned_char,
|
4908
4842
|
&_swigt__p_unsigned_int,
|
4909
4843
|
&_swigt__p_unsigned_long,
|
@@ -4917,6 +4851,7 @@ static swig_cast_info _swigc__p_TagLib__FileRef__FileTypeResolver[] = { {&_swig
|
|
4917
4851
|
static swig_cast_info _swigc__p_TagLib__String[] = { {&_swigt__p_TagLib__String, 0, 0, 0},{0, 0, 0, 0}};
|
4918
4852
|
static swig_cast_info _swigc__p_TagLib__Tag[] = { {&_swigt__p_TagLib__Tag, 0, 0, 0},{0, 0, 0, 0}};
|
4919
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}};
|
4920
4855
|
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
|
4921
4856
|
static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
|
4922
4857
|
static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -4930,6 +4865,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
4930
4865
|
_swigc__p_TagLib__String,
|
4931
4866
|
_swigc__p_TagLib__Tag,
|
4932
4867
|
_swigc__p_char,
|
4868
|
+
_swigc__p_long_long,
|
4933
4869
|
_swigc__p_unsigned_char,
|
4934
4870
|
_swigc__p_unsigned_int,
|
4935
4871
|
_swigc__p_unsigned_long,
|
@@ -5227,6 +5163,7 @@ SWIGEXPORT void Init_taglib_base(void) {
|
|
5227
5163
|
rb_define_method(SwigClassTag.klass, "track=", VALUEFUNC(_wrap_Tag_tracke___), -1);
|
5228
5164
|
rb_define_method(SwigClassTag.klass, "empty?", VALUEFUNC(_wrap_Tag_emptyq___), -1);
|
5229
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);
|
5230
5167
|
SwigClassTag.mark = 0;
|
5231
5168
|
SwigClassTag.destroy = (void (*)(void *)) free_TagLib_Tag;
|
5232
5169
|
SwigClassTag.trackObjects = 1;
|
@@ -5252,6 +5189,10 @@ SWIGEXPORT void Init_taglib_base(void) {
|
|
5252
5189
|
rb_define_const(SwigClassFile.klass, "Beginning", SWIG_From_int(static_cast< int >(TagLib::File::Beginning)));
|
5253
5190
|
rb_define_const(SwigClassFile.klass, "Current", SWIG_From_int(static_cast< int >(TagLib::File::Current)));
|
5254
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)));
|
5255
5196
|
rb_define_method(SwigClassFile.klass, "name", VALUEFUNC(_wrap_File_name), -1);
|
5256
5197
|
rb_define_method(SwigClassFile.klass, "tag", VALUEFUNC(_wrap_File_tag), -1);
|
5257
5198
|
rb_define_method(SwigClassFile.klass, "audio_properties", VALUEFUNC(_wrap_File_audio_properties), -1);
|
@@ -5269,8 +5210,6 @@ SWIGEXPORT void Init_taglib_base(void) {
|
|
5269
5210
|
rb_define_method(SwigClassFile.klass, "clear", VALUEFUNC(_wrap_File_clear), -1);
|
5270
5211
|
rb_define_method(SwigClassFile.klass, "tell", VALUEFUNC(_wrap_File_tell), -1);
|
5271
5212
|
rb_define_method(SwigClassFile.klass, "length", VALUEFUNC(_wrap_File_length), -1);
|
5272
|
-
rb_define_singleton_method(SwigClassFile.klass, "readable?", VALUEFUNC(_wrap_File_readableq___), -1);
|
5273
|
-
rb_define_singleton_method(SwigClassFile.klass, "writable?", VALUEFUNC(_wrap_File_writableq___), -1);
|
5274
5213
|
SwigClassFile.mark = 0;
|
5275
5214
|
SwigClassFile.destroy = (void (*)(void *)) free_TagLib_File;
|
5276
5215
|
SwigClassFile.trackObjects = 1;
|
@@ -5284,10 +5223,10 @@ SWIGEXPORT void Init_taglib_base(void) {
|
|
5284
5223
|
rb_define_method(SwigClassFileRef.klass, "file", VALUEFUNC(_wrap_FileRef_file), -1);
|
5285
5224
|
rb_define_method(SwigClassFileRef.klass, "save", VALUEFUNC(_wrap_FileRef_save), -1);
|
5286
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);
|
5287
5227
|
rb_define_singleton_method(SwigClassFileRef.klass, "default_file_extensions", VALUEFUNC(_wrap_FileRef_default_file_extensions), -1);
|
5288
5228
|
rb_define_method(SwigClassFileRef.klass, "null?", VALUEFUNC(_wrap_FileRef_nullq___), -1);
|
5289
5229
|
rb_define_method(SwigClassFileRef.klass, "==", VALUEFUNC(_wrap_FileRef___eq__), -1);
|
5290
|
-
rb_define_singleton_method(SwigClassFileRef.klass, "create", VALUEFUNC(_wrap_FileRef_create), -1);
|
5291
5230
|
rb_define_method(SwigClassFileRef.klass, "close", VALUEFUNC(_wrap_FileRef_close), -1);
|
5292
5231
|
SwigClassFileRef.mark = 0;
|
5293
5232
|
SwigClassFileRef.destroy = (void (*)(void *)) free_TagLib_FileRef;
|