taglib-ruby 1.0.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +33 -0
- data/.yardopts +1 -1
- data/CHANGELOG.md +15 -0
- data/Gemfile +2 -0
- data/Guardfile +4 -2
- data/README.md +56 -38
- data/Rakefile +8 -8
- data/docs/taglib/aiff.rb +0 -3
- data/docs/taglib/base.rb +0 -4
- data/docs/taglib/flac.rb +1 -3
- data/docs/taglib/id3v2.rb +1 -1
- data/docs/taglib/mp4.rb +2 -4
- data/docs/taglib/mpeg.rb +0 -1
- data/docs/taglib/ogg.rb +0 -4
- data/docs/taglib/vorbis.rb +0 -1
- data/docs/taglib/wav.rb +0 -4
- data/ext/extconf_common.rb +24 -28
- data/ext/taglib_aiff/extconf.rb +2 -0
- data/ext/taglib_aiff/taglib_aiff_wrap.cxx +217 -178
- data/ext/taglib_base/extconf.rb +2 -0
- data/ext/taglib_base/includes.i +25 -0
- data/ext/taglib_base/taglib_base.i +21 -0
- data/ext/taglib_base/taglib_base_wrap.cxx +233 -191
- data/ext/taglib_flac/extconf.rb +2 -0
- data/ext/taglib_flac/taglib_flac_wrap.cxx +228 -189
- data/ext/taglib_flac_picture/extconf.rb +2 -0
- data/ext/taglib_flac_picture/taglib_flac_picture_wrap.cxx +210 -168
- data/ext/taglib_id3v1/extconf.rb +2 -0
- data/ext/taglib_id3v1/taglib_id3v1_wrap.cxx +223 -182
- data/ext/taglib_id3v2/extconf.rb +2 -0
- data/ext/taglib_id3v2/taglib_id3v2.i +17 -0
- data/ext/taglib_id3v2/taglib_id3v2_wrap.cxx +2923 -999
- data/ext/taglib_mp4/extconf.rb +2 -0
- data/ext/taglib_mp4/taglib_mp4_wrap.cxx +311 -281
- data/ext/taglib_mpeg/extconf.rb +2 -0
- data/ext/taglib_mpeg/taglib_mpeg_wrap.cxx +243 -206
- data/ext/taglib_ogg/extconf.rb +2 -0
- data/ext/taglib_ogg/taglib_ogg_wrap.cxx +214 -171
- data/ext/taglib_vorbis/extconf.rb +2 -0
- data/ext/taglib_vorbis/taglib_vorbis_wrap.cxx +217 -178
- data/ext/taglib_wav/extconf.rb +2 -0
- data/ext/taglib_wav/taglib_wav_wrap.cxx +217 -178
- data/lib/taglib/aiff.rb +2 -0
- data/lib/taglib/base.rb +3 -1
- data/lib/taglib/flac.rb +2 -0
- data/lib/taglib/id3v1.rb +2 -0
- data/lib/taglib/id3v2.rb +2 -0
- data/lib/taglib/mp4.rb +10 -13
- data/lib/taglib/mpeg.rb +2 -0
- data/lib/taglib/ogg.rb +2 -0
- data/lib/taglib/version.rb +4 -2
- data/lib/taglib/vorbis.rb +2 -0
- data/lib/taglib/wav.rb +2 -1
- data/lib/taglib.rb +4 -3
- data/taglib-ruby.gemspec +165 -162
- data/tasks/docs_coverage.rake +10 -8
- data/tasks/ext.rake +26 -25
- data/tasks/gemspec_check.rake +7 -5
- data/tasks/swig.rake +10 -11
- data/test/aiff_examples_test.rb +8 -13
- data/test/aiff_file_test.rb +29 -29
- data/test/aiff_file_write_test.rb +19 -20
- data/test/base_test.rb +4 -2
- data/test/data/add-relative-volume.cpp +7 -3
- data/test/data/flac-create.cpp +15 -5
- data/test/data/flac_nopic.flac +0 -0
- data/test/data/get_picture_data.cpp +5 -1
- data/test/data/id3v1-create.cpp +6 -3
- data/test/data/mp4-create.cpp +12 -4
- data/test/data/vorbis-create.cpp +12 -5
- data/test/data/wav-create.cpp +18 -3
- data/test/file_test.rb +7 -5
- data/test/fileref_open_test.rb +12 -10
- data/test/fileref_properties_test.rb +6 -4
- data/test/fileref_write_test.rb +14 -13
- data/test/flac_file_test.rb +32 -27
- data/test/flac_file_write_test.rb +17 -18
- data/test/flac_picture_memory_test.rb +39 -0
- data/test/helper.rb +3 -1
- data/test/id3v1_genres_test.rb +14 -12
- data/test/id3v1_tag_test.rb +7 -5
- data/test/id3v2_frames_test.rb +103 -34
- data/test/id3v2_header_test.rb +14 -13
- data/test/id3v2_memory_test.rb +21 -20
- data/test/id3v2_relative_volume_test.rb +11 -9
- data/test/id3v2_tag_test.rb +16 -14
- data/test/id3v2_unicode_test.rb +12 -10
- data/test/id3v2_unknown_frames_test.rb +7 -5
- data/test/id3v2_write_test.rb +28 -29
- data/test/mp4_file_test.rb +27 -26
- data/test/mp4_file_write_test.rb +12 -13
- data/test/mp4_items_test.rb +78 -79
- data/test/mpeg_file_test.rb +32 -30
- data/test/tag_test.rb +5 -3
- data/test/unicode_filename_test.rb +7 -7
- data/test/vorbis_file_test.rb +14 -12
- data/test/vorbis_tag_test.rb +46 -44
- data/test/wav_examples_test.rb +8 -16
- data/test/wav_file_test.rb +29 -29
- data/test/wav_file_write_test.rb +22 -23
- metadata +24 -21
@@ -1,6 +1,6 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
-
* Version
|
3
|
+
* Version 4.0.2
|
4
4
|
*
|
5
5
|
* This file is not intended to be easily readable and contains a number of
|
6
6
|
* coding conventions designed to improve portability and efficiency. Do not make
|
@@ -11,7 +11,11 @@
|
|
11
11
|
static void free_taglib_mp4_file(void *ptr);
|
12
12
|
|
13
13
|
|
14
|
+
|
15
|
+
#ifndef SWIGRUBY
|
14
16
|
#define SWIGRUBY
|
17
|
+
#endif
|
18
|
+
|
15
19
|
|
16
20
|
|
17
21
|
#ifdef __cplusplus
|
@@ -104,9 +108,11 @@ template <typename T> T SwigValueInit() {
|
|
104
108
|
#endif
|
105
109
|
|
106
110
|
/* exporting methods */
|
107
|
-
#if (__GNUC__
|
108
|
-
#
|
109
|
-
#
|
111
|
+
#if defined(__GNUC__)
|
112
|
+
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
113
|
+
# ifndef GCC_HASCLASSVISIBILITY
|
114
|
+
# define GCC_HASCLASSVISIBILITY
|
115
|
+
# endif
|
110
116
|
# endif
|
111
117
|
#endif
|
112
118
|
|
@@ -226,9 +232,11 @@ template <typename T> T SwigValueInit() {
|
|
226
232
|
#endif
|
227
233
|
|
228
234
|
/* exporting methods */
|
229
|
-
#if (__GNUC__
|
230
|
-
#
|
231
|
-
#
|
235
|
+
#if defined(__GNUC__)
|
236
|
+
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
237
|
+
# ifndef GCC_HASCLASSVISIBILITY
|
238
|
+
# define GCC_HASCLASSVISIBILITY
|
239
|
+
# endif
|
232
240
|
# endif
|
233
241
|
#endif
|
234
242
|
|
@@ -326,6 +334,7 @@ template <typename T> T SwigValueInit() {
|
|
326
334
|
/* Flags for pointer conversions */
|
327
335
|
#define SWIG_POINTER_DISOWN 0x1
|
328
336
|
#define SWIG_CAST_NEW_MEMORY 0x2
|
337
|
+
#define SWIG_POINTER_NO_NULL 0x4
|
329
338
|
|
330
339
|
/* Flags for new pointer objects */
|
331
340
|
#define SWIG_POINTER_OWN 0x1
|
@@ -778,16 +787,16 @@ SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
|
|
778
787
|
char d = *(c++);
|
779
788
|
unsigned char uu;
|
780
789
|
if ((d >= '0') && (d <= '9'))
|
781
|
-
uu = ((d - '0') << 4);
|
790
|
+
uu = (unsigned char)((d - '0') << 4);
|
782
791
|
else if ((d >= 'a') && (d <= 'f'))
|
783
|
-
uu = ((d - ('a'-10)) << 4);
|
792
|
+
uu = (unsigned char)((d - ('a'-10)) << 4);
|
784
793
|
else
|
785
794
|
return (char *) 0;
|
786
795
|
d = *(c++);
|
787
796
|
if ((d >= '0') && (d <= '9'))
|
788
|
-
uu |= (d - '0');
|
797
|
+
uu |= (unsigned char)(d - '0');
|
789
798
|
else if ((d >= 'a') && (d <= 'f'))
|
790
|
-
uu |= (d - ('a'-10));
|
799
|
+
uu |= (unsigned char)(d - ('a'-10));
|
791
800
|
else
|
792
801
|
return (char *) 0;
|
793
802
|
*u = uu;
|
@@ -964,42 +973,53 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
964
973
|
#ifndef RSTRUCT_PTR
|
965
974
|
# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
|
966
975
|
#endif
|
976
|
+
#ifndef RTYPEDDATA_P
|
977
|
+
# define RTYPEDDATA_P(x) (TYPE(x) != T_DATA)
|
978
|
+
#endif
|
967
979
|
|
968
980
|
|
969
981
|
|
970
982
|
/*
|
971
|
-
*
|
972
|
-
*
|
983
|
+
* The following macros are used for providing the correct type of a
|
984
|
+
* function pointer to the Ruby C API.
|
985
|
+
* Starting with Ruby 2.7 (corresponding to RB_METHOD_DEFINITION_DECL being
|
986
|
+
* defined) these macros act transparently due to Ruby's moving away from
|
987
|
+
* ANYARGS and instead employing strict function signatures.
|
973
988
|
*
|
974
|
-
*
|
975
|
-
*
|
976
|
-
*
|
989
|
+
* Note: In case of C (not C++) the macros are transparent even before
|
990
|
+
* Ruby 2.7 due to the fact that the Ruby C API used function declarators
|
991
|
+
* with empty parentheses, which allows for an unspecified number of
|
992
|
+
* arguments.
|
977
993
|
*
|
978
|
-
*
|
979
|
-
*
|
980
|
-
*
|
994
|
+
* PROTECTFUNC(f) is used for the function pointer argument of the Ruby
|
995
|
+
* C API function rb_protect().
|
996
|
+
*
|
997
|
+
* VALUEFUNC(f) is used for the function pointer argument(s) of Ruby C API
|
998
|
+
* functions like rb_define_method() and rb_define_singleton_method().
|
999
|
+
*
|
1000
|
+
* VOIDFUNC(f) is used to typecast a C function that implements either
|
1001
|
+
* the "mark" or "free" stuff for a Ruby Data object, so that it can be
|
1002
|
+
* passed as an argument to Ruby C API functions like Data_Wrap_Struct()
|
981
1003
|
* and Data_Make_Struct().
|
1004
|
+
*
|
1005
|
+
* SWIG_RUBY_VOID_ANYARGS_FUNC(f) is used for the function pointer
|
1006
|
+
* argument(s) of Ruby C API functions like rb_define_virtual_variable().
|
1007
|
+
*
|
1008
|
+
* SWIG_RUBY_INT_ANYARGS_FUNC(f) is used for the function pointer
|
1009
|
+
* argument(s) of Ruby C API functions like st_foreach().
|
982
1010
|
*/
|
983
|
-
|
984
|
-
#
|
985
|
-
#
|
986
|
-
#
|
987
|
-
#
|
988
|
-
#
|
989
|
-
# else
|
990
|
-
# ifndef ANYARGS /* These definitions should work for Ruby 1.6 */
|
991
|
-
# define PROTECTFUNC(f) ((VALUE (*)()) f)
|
992
|
-
# define VALUEFUNC(f) ((VALUE (*)()) f)
|
993
|
-
# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
|
994
|
-
# else /* These definitions should work for Ruby 1.7+ */
|
995
|
-
# define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
|
996
|
-
# define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
|
997
|
-
# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
|
998
|
-
# endif
|
999
|
-
# endif
|
1011
|
+
#if defined(__cplusplus) && !defined(RB_METHOD_DEFINITION_DECL)
|
1012
|
+
# define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
|
1013
|
+
# define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
|
1014
|
+
# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
|
1015
|
+
# define SWIG_RUBY_VOID_ANYARGS_FUNC(f) ((void (*)(ANYARGS))(f))
|
1016
|
+
# define SWIG_RUBY_INT_ANYARGS_FUNC(f) ((int (*)(ANYARGS))(f))
|
1000
1017
|
#else
|
1018
|
+
# define PROTECTFUNC(f) (f)
|
1001
1019
|
# define VALUEFUNC(f) (f)
|
1002
1020
|
# define VOIDFUNC(f) (f)
|
1021
|
+
# define SWIG_RUBY_VOID_ANYARGS_FUNC(f) (f)
|
1022
|
+
# define SWIG_RUBY_INT_ANYARGS_FUNC(f) (f)
|
1003
1023
|
#endif
|
1004
1024
|
|
1005
1025
|
/* Don't use for expressions have side effect */
|
@@ -1187,7 +1207,7 @@ void Ruby_Format_OverloadedError(
|
|
1187
1207
|
/* -----------------------------------------------------------------------------
|
1188
1208
|
* rubytracking.swg
|
1189
1209
|
*
|
1190
|
-
* This file contains support for tracking mappings from
|
1210
|
+
* This file contains support for tracking mappings from
|
1191
1211
|
* Ruby objects to C++ objects. This functionality is needed
|
1192
1212
|
* to implement mark functions for Ruby's mark and sweep
|
1193
1213
|
* garbage collector.
|
@@ -1197,6 +1217,11 @@ void Ruby_Format_OverloadedError(
|
|
1197
1217
|
extern "C" {
|
1198
1218
|
#endif
|
1199
1219
|
|
1220
|
+
#if !defined(ST_DATA_T_DEFINED)
|
1221
|
+
/* Needs to be explicitly included for Ruby 1.8 and earlier */
|
1222
|
+
#include <st.h>
|
1223
|
+
#endif
|
1224
|
+
|
1200
1225
|
/* Ruby 1.8 actually assumes the first case. */
|
1201
1226
|
#if SIZEOF_VOIDP == SIZEOF_LONG
|
1202
1227
|
# define SWIG2NUM(v) LONG2NUM((unsigned long)v)
|
@@ -1208,109 +1233,69 @@ extern "C" {
|
|
1208
1233
|
# error sizeof(void*) is not the same as long or long long
|
1209
1234
|
#endif
|
1210
1235
|
|
1211
|
-
|
1212
|
-
|
1213
|
-
structs to Ruby Objects.
|
1236
|
+
/* Global hash table to store Trackings from C/C++
|
1237
|
+
structs to Ruby Objects.
|
1214
1238
|
*/
|
1215
|
-
static
|
1239
|
+
static st_table* swig_ruby_trackings = NULL;
|
1216
1240
|
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1241
|
+
static VALUE swig_ruby_trackings_count(ID id, VALUE *var) {
|
1242
|
+
return SWIG2NUM(swig_ruby_trackings->num_entries);
|
1243
|
+
}
|
1220
1244
|
|
1221
|
-
|
1245
|
+
|
1246
|
+
/* Setup a hash table to store Trackings */
|
1222
1247
|
SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
|
1223
|
-
/* Create a
|
1248
|
+
/* Create a hash table to store Trackings from C++
|
1224
1249
|
objects to Ruby objects. */
|
1225
1250
|
|
1226
|
-
/* Try to see if some other .so has already created a
|
1251
|
+
/* Try to see if some other .so has already created a
|
1227
1252
|
tracking hash table, which we keep hidden in an instance var
|
1228
1253
|
in the SWIG module.
|
1229
1254
|
This is done to allow multiple DSOs to share the same
|
1230
1255
|
tracking table.
|
1231
1256
|
*/
|
1232
|
-
|
1257
|
+
VALUE trackings_value = Qnil;
|
1258
|
+
/* change the variable name so that we can mix modules
|
1259
|
+
compiled with older SWIG's - this used to be called "@__trackings__" */
|
1260
|
+
ID trackings_id = rb_intern( "@__safetrackings__" );
|
1233
1261
|
VALUE verbose = rb_gv_get("VERBOSE");
|
1234
1262
|
rb_gv_set("VERBOSE", Qfalse);
|
1235
|
-
|
1263
|
+
trackings_value = rb_ivar_get( _mSWIG, trackings_id );
|
1236
1264
|
rb_gv_set("VERBOSE", verbose);
|
1237
1265
|
|
1238
|
-
/*
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
}
|
1249
|
-
|
1250
|
-
/* Get a Ruby number to reference a pointer */
|
1251
|
-
SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
|
1252
|
-
/* We cast the pointer to an unsigned long
|
1253
|
-
and then store a reference to it using
|
1254
|
-
a Ruby number object. */
|
1255
|
-
|
1256
|
-
/* Convert the pointer to a Ruby number */
|
1257
|
-
return SWIG2NUM(ptr);
|
1258
|
-
}
|
1259
|
-
|
1260
|
-
/* Get a Ruby number to reference an object */
|
1261
|
-
SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
|
1262
|
-
/* We cast the object to an unsigned long
|
1263
|
-
and then store a reference to it using
|
1264
|
-
a Ruby number object. */
|
1265
|
-
|
1266
|
-
/* Convert the Object to a Ruby number */
|
1267
|
-
return SWIG2NUM(object);
|
1268
|
-
}
|
1269
|
-
|
1270
|
-
/* Get a Ruby object from a previously stored reference */
|
1271
|
-
SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
|
1272
|
-
/* The provided Ruby number object is a reference
|
1273
|
-
to the Ruby object we want.*/
|
1266
|
+
/* The trick here is that we have to store the hash table
|
1267
|
+
pointer in a Ruby variable. We do not want Ruby's GC to
|
1268
|
+
treat this pointer as a Ruby object, so we convert it to
|
1269
|
+
a Ruby numeric value. */
|
1270
|
+
if (trackings_value == Qnil) {
|
1271
|
+
/* No, it hasn't. Create one ourselves */
|
1272
|
+
swig_ruby_trackings = st_init_numtable();
|
1273
|
+
rb_ivar_set( _mSWIG, trackings_id, SWIG2NUM(swig_ruby_trackings) );
|
1274
|
+
} else {
|
1275
|
+
swig_ruby_trackings = (st_table*)NUM2SWIG(trackings_value);
|
1276
|
+
}
|
1274
1277
|
|
1275
|
-
|
1276
|
-
|
1278
|
+
rb_define_virtual_variable("SWIG_TRACKINGS_COUNT",
|
1279
|
+
VALUEFUNC(swig_ruby_trackings_count),
|
1280
|
+
SWIG_RUBY_VOID_ANYARGS_FUNC((rb_gvar_setter_t*)NULL));
|
1277
1281
|
}
|
1278
1282
|
|
1279
1283
|
/* Add a Tracking from a C/C++ struct to a Ruby object */
|
1280
1284
|
SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) {
|
1281
|
-
/* In a Ruby hash table we store the pointer and
|
1282
|
-
the associated Ruby object. The trick here is
|
1283
|
-
that we cannot store the Ruby object directly - if
|
1284
|
-
we do then it cannot be garbage collected. So
|
1285
|
-
instead we typecast it as a unsigned long and
|
1286
|
-
convert it to a Ruby number object.*/
|
1287
|
-
|
1288
|
-
/* Get a reference to the pointer as a Ruby number */
|
1289
|
-
VALUE key = SWIG_RubyPtrToReference(ptr);
|
1290
|
-
|
1291
|
-
/* Get a reference to the Ruby object as a Ruby number */
|
1292
|
-
VALUE value = SWIG_RubyObjectToReference(object);
|
1293
|
-
|
1294
1285
|
/* Store the mapping to the global hash table. */
|
1295
|
-
|
1286
|
+
st_insert(swig_ruby_trackings, (st_data_t)ptr, object);
|
1296
1287
|
}
|
1297
1288
|
|
1298
1289
|
/* Get the Ruby object that owns the specified C/C++ struct */
|
1299
1290
|
SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
|
1300
|
-
/* Get a reference to the pointer as a Ruby number */
|
1301
|
-
VALUE key = SWIG_RubyPtrToReference(ptr);
|
1302
|
-
|
1303
1291
|
/* Now lookup the value stored in the global hash table */
|
1304
|
-
VALUE value
|
1305
|
-
|
1306
|
-
if (
|
1307
|
-
|
1292
|
+
VALUE value;
|
1293
|
+
|
1294
|
+
if (st_lookup(swig_ruby_trackings, (st_data_t)ptr, &value)) {
|
1295
|
+
return value;
|
1296
|
+
} else {
|
1308
1297
|
return Qnil;
|
1309
1298
|
}
|
1310
|
-
else {
|
1311
|
-
/* Convert this value to Ruby object */
|
1312
|
-
return SWIG_RubyReferenceToObject(value);
|
1313
|
-
}
|
1314
1299
|
}
|
1315
1300
|
|
1316
1301
|
/* Remove a Tracking from a C/C++ struct to a Ruby object. It
|
@@ -1318,25 +1303,39 @@ SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
|
|
1318
1303
|
since the same memory address may be reused later to create
|
1319
1304
|
a new object. */
|
1320
1305
|
SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) {
|
1321
|
-
/*
|
1322
|
-
|
1323
|
-
|
1324
|
-
/* Delete the object from the hash table by calling Ruby's
|
1325
|
-
do this we need to call the Hash.delete method.*/
|
1326
|
-
rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key);
|
1306
|
+
/* Delete the object from the hash table */
|
1307
|
+
st_delete(swig_ruby_trackings, (st_data_t *)&ptr, NULL);
|
1327
1308
|
}
|
1328
1309
|
|
1329
1310
|
/* This is a helper method that unlinks a Ruby object from its
|
1330
1311
|
underlying C++ object. This is needed if the lifetime of the
|
1331
|
-
Ruby object is longer than the C++ object */
|
1312
|
+
Ruby object is longer than the C++ object. */
|
1332
1313
|
SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
|
1333
1314
|
VALUE object = SWIG_RubyInstanceFor(ptr);
|
1334
1315
|
|
1335
1316
|
if (object != Qnil) {
|
1317
|
+
// object might have the T_ZOMBIE type, but that's just
|
1318
|
+
// because the GC has flagged it as such for a deferred
|
1319
|
+
// destruction. Until then, it's still a T_DATA object.
|
1336
1320
|
DATA_PTR(object) = 0;
|
1337
1321
|
}
|
1338
1322
|
}
|
1339
1323
|
|
1324
|
+
/* This is a helper method that iterates over all the trackings
|
1325
|
+
passing the C++ object pointer and its related Ruby object
|
1326
|
+
to the passed callback function. */
|
1327
|
+
|
1328
|
+
/* Proxy method to abstract the internal trackings datatype */
|
1329
|
+
static int swig_ruby_internal_iterate_callback(st_data_t ptr, st_data_t obj, st_data_t meth) {
|
1330
|
+
((void (*) (void *, VALUE))meth)((void *)ptr, (VALUE)obj);
|
1331
|
+
return ST_CONTINUE;
|
1332
|
+
}
|
1333
|
+
|
1334
|
+
SWIGRUNTIME void SWIG_RubyIterateTrackings( void(*meth)(void* ptr, VALUE obj) ) {
|
1335
|
+
st_foreach(swig_ruby_trackings,
|
1336
|
+
SWIG_RUBY_INT_ANYARGS_FUNC(swig_ruby_internal_iterate_callback),
|
1337
|
+
(st_data_t)meth);
|
1338
|
+
}
|
1340
1339
|
|
1341
1340
|
#ifdef __cplusplus
|
1342
1341
|
}
|
@@ -1395,7 +1394,7 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1395
1394
|
#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own)
|
1396
1395
|
#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags)
|
1397
1396
|
#define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own)
|
1398
|
-
#define swig_owntype
|
1397
|
+
#define swig_owntype swig_ruby_owntype
|
1399
1398
|
|
1400
1399
|
/* for raw packed data */
|
1401
1400
|
#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
|
@@ -1552,10 +1551,11 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
1552
1551
|
swig_class *sklass;
|
1553
1552
|
VALUE klass;
|
1554
1553
|
VALUE obj;
|
1555
|
-
|
1554
|
+
|
1556
1555
|
if (!ptr)
|
1557
1556
|
return Qnil;
|
1558
|
-
|
1557
|
+
|
1558
|
+
assert(type);
|
1559
1559
|
if (type->clientdata) {
|
1560
1560
|
sklass = (swig_class *) type->clientdata;
|
1561
1561
|
|
@@ -1563,7 +1563,7 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
1563
1563
|
track = sklass->trackObjects;
|
1564
1564
|
if (track) {
|
1565
1565
|
obj = SWIG_RubyInstanceFor(ptr);
|
1566
|
-
|
1566
|
+
|
1567
1567
|
/* Check the object's type and make sure it has the correct type.
|
1568
1568
|
It might not in cases where methods do things like
|
1569
1569
|
downcast methods. */
|
@@ -1595,7 +1595,7 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
1595
1595
|
obj = Data_Wrap_Struct(klass, 0, 0, ptr);
|
1596
1596
|
}
|
1597
1597
|
rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
|
1598
|
-
|
1598
|
+
|
1599
1599
|
return obj;
|
1600
1600
|
}
|
1601
1601
|
|
@@ -1615,26 +1615,30 @@ SWIGRUNTIMEINLINE char *
|
|
1615
1615
|
SWIG_Ruby_MangleStr(VALUE obj)
|
1616
1616
|
{
|
1617
1617
|
VALUE stype = rb_iv_get(obj, "@__swigtype__");
|
1618
|
+
if (NIL_P(stype))
|
1619
|
+
return NULL;
|
1618
1620
|
return StringValuePtr(stype);
|
1619
1621
|
}
|
1620
1622
|
|
1621
1623
|
/* Acquire a pointer value */
|
1622
|
-
typedef
|
1623
|
-
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1624
|
+
typedef struct {
|
1625
|
+
void (*datafree)(void *);
|
1626
|
+
int own;
|
1627
|
+
} swig_ruby_owntype;
|
1628
|
+
|
1629
|
+
SWIGRUNTIME swig_ruby_owntype
|
1630
|
+
SWIG_Ruby_AcquirePtr(VALUE obj, swig_ruby_owntype own) {
|
1631
|
+
swig_ruby_owntype oldown = {0, 0};
|
1632
|
+
if (TYPE(obj) == T_DATA && !RTYPEDDATA_P(obj)) {
|
1633
|
+
oldown.datafree = RDATA(obj)->dfree;
|
1634
|
+
RDATA(obj)->dfree = own.datafree;
|
1632
1635
|
}
|
1636
|
+
return oldown;
|
1633
1637
|
}
|
1634
1638
|
|
1635
1639
|
/* Convert a pointer value */
|
1636
1640
|
SWIGRUNTIME int
|
1637
|
-
SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
1641
|
+
SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, swig_ruby_owntype *own)
|
1638
1642
|
{
|
1639
1643
|
char *c;
|
1640
1644
|
swig_cast_info *tc;
|
@@ -1642,16 +1646,20 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1642
1646
|
|
1643
1647
|
/* Grab the pointer */
|
1644
1648
|
if (NIL_P(obj)) {
|
1645
|
-
|
1646
|
-
|
1649
|
+
if (ptr)
|
1650
|
+
*ptr = 0;
|
1651
|
+
return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK;
|
1647
1652
|
} else {
|
1648
|
-
if (TYPE(obj) != T_DATA) {
|
1653
|
+
if (TYPE(obj) != T_DATA || (TYPE(obj) == T_DATA && RTYPEDDATA_P(obj))) {
|
1649
1654
|
return SWIG_ERROR;
|
1650
1655
|
}
|
1651
1656
|
Data_Get_Struct(obj, void, vptr);
|
1652
1657
|
}
|
1653
1658
|
|
1654
|
-
if (own)
|
1659
|
+
if (own) {
|
1660
|
+
own->datafree = RDATA(obj)->dfree;
|
1661
|
+
own->own = 0;
|
1662
|
+
}
|
1655
1663
|
|
1656
1664
|
/* Check to see if the input object is giving up ownership
|
1657
1665
|
of the underlying C struct or C++ object. If so then we
|
@@ -1686,8 +1694,6 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1686
1694
|
/* The object has already been deleted */
|
1687
1695
|
return SWIG_ObjectPreviouslyDeletedError;
|
1688
1696
|
}
|
1689
|
-
*ptr = vptr;
|
1690
|
-
return SWIG_OK;
|
1691
1697
|
}
|
1692
1698
|
}
|
1693
1699
|
if ((c = SWIG_MangleStr(obj)) == NULL) {
|
@@ -1697,12 +1703,23 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1697
1703
|
if (!tc) {
|
1698
1704
|
return SWIG_ERROR;
|
1699
1705
|
} else {
|
1700
|
-
|
1701
|
-
|
1702
|
-
|
1706
|
+
if (ptr) {
|
1707
|
+
if (tc->type == ty) {
|
1708
|
+
*ptr = vptr;
|
1709
|
+
} else {
|
1710
|
+
int newmemory = 0;
|
1711
|
+
*ptr = SWIG_TypeCast(tc, vptr, &newmemory);
|
1712
|
+
if (newmemory == SWIG_CAST_NEW_MEMORY) {
|
1713
|
+
assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
|
1714
|
+
if (own)
|
1715
|
+
own->own = own->own | SWIG_CAST_NEW_MEMORY;
|
1716
|
+
}
|
1717
|
+
}
|
1718
|
+
}
|
1703
1719
|
}
|
1704
1720
|
} else {
|
1705
|
-
|
1721
|
+
if (ptr)
|
1722
|
+
*ptr = vptr;
|
1706
1723
|
}
|
1707
1724
|
|
1708
1725
|
return SWIG_OK;
|
@@ -1728,7 +1745,7 @@ SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
|
|
1728
1745
|
return rb_str_new2(result);
|
1729
1746
|
}
|
1730
1747
|
|
1731
|
-
/* Convert a packed
|
1748
|
+
/* Convert a packed pointer value */
|
1732
1749
|
SWIGRUNTIME int
|
1733
1750
|
SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) {
|
1734
1751
|
swig_cast_info *tc;
|
@@ -1841,15 +1858,14 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1841
1858
|
#define SWIGTYPE_p_TagLib__MP4__Properties swig_types[8]
|
1842
1859
|
#define SWIGTYPE_p_TagLib__MP4__Tag swig_types[9]
|
1843
1860
|
#define SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t swig_types[10]
|
1844
|
-
#define
|
1845
|
-
#define
|
1846
|
-
#define
|
1847
|
-
#define
|
1848
|
-
#define
|
1849
|
-
#define
|
1850
|
-
|
1851
|
-
static
|
1852
|
-
static swig_module_info swig_module = {swig_types, 18, 0, 0, 0, 0};
|
1861
|
+
#define SWIGTYPE_p_TagLib__Tag swig_types[11]
|
1862
|
+
#define SWIGTYPE_p_char swig_types[12]
|
1863
|
+
#define SWIGTYPE_p_unsigned_char swig_types[13]
|
1864
|
+
#define SWIGTYPE_p_unsigned_int swig_types[14]
|
1865
|
+
#define SWIGTYPE_p_unsigned_long swig_types[15]
|
1866
|
+
#define SWIGTYPE_p_wchar_t swig_types[16]
|
1867
|
+
static swig_type_info *swig_types[18];
|
1868
|
+
static swig_module_info swig_module = {swig_types, 17, 0, 0, 0, 0};
|
1853
1869
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
1854
1870
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
1855
1871
|
|
@@ -1864,7 +1880,7 @@ static VALUE mMP4;
|
|
1864
1880
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
1865
1881
|
|
1866
1882
|
|
1867
|
-
#define SWIGVERSION
|
1883
|
+
#define SWIGVERSION 0x040002
|
1868
1884
|
#define SWIG_VERSION SWIGVERSION
|
1869
1885
|
|
1870
1886
|
|
@@ -1886,6 +1902,8 @@ using namespace TagLib::MP4;
|
|
1886
1902
|
|
1887
1903
|
#include <taglib/tstring.h>
|
1888
1904
|
#include <taglib/tstringlist.h>
|
1905
|
+
#include <taglib/tbytevector.h>
|
1906
|
+
#include <taglib/tbytevectorlist.h>
|
1889
1907
|
#include <taglib/tfile.h>
|
1890
1908
|
|
1891
1909
|
#if defined(HAVE_RUBY_ENCODING_H) && HAVE_RUBY_ENCODING_H
|
@@ -1955,6 +1973,28 @@ TagLib::StringList ruby_array_to_taglib_string_list(VALUE ary) {
|
|
1955
1973
|
return result;
|
1956
1974
|
}
|
1957
1975
|
|
1976
|
+
VALUE taglib_bytevectorlist_to_ruby_array(const TagLib::ByteVectorList & list) {
|
1977
|
+
VALUE ary = rb_ary_new2(list.size());
|
1978
|
+
for (TagLib::ByteVectorList::ConstIterator it = list.begin(); it != list.end(); it++) {
|
1979
|
+
VALUE s = taglib_bytevector_to_ruby_string(*it);
|
1980
|
+
rb_ary_push(ary, s);
|
1981
|
+
}
|
1982
|
+
return ary;
|
1983
|
+
}
|
1984
|
+
|
1985
|
+
TagLib::ByteVectorList ruby_array_to_taglib_bytevectorlist(VALUE ary) {
|
1986
|
+
TagLib::ByteVectorList result = TagLib::ByteVectorList();
|
1987
|
+
if (NIL_P(ary)) {
|
1988
|
+
return result;
|
1989
|
+
}
|
1990
|
+
for (long i = 0; i < RARRAY_LEN(ary); i++) {
|
1991
|
+
VALUE e = rb_ary_entry(ary, i);
|
1992
|
+
TagLib::ByteVector s = ruby_string_to_taglib_bytevector(e);
|
1993
|
+
result.append(s);
|
1994
|
+
}
|
1995
|
+
return result;
|
1996
|
+
}
|
1997
|
+
|
1958
1998
|
VALUE taglib_filename_to_ruby_string(TagLib::FileName filename) {
|
1959
1999
|
VALUE result;
|
1960
2000
|
#ifdef _WIN32
|
@@ -2058,15 +2098,16 @@ SWIG_From_int (int value)
|
|
2058
2098
|
|
2059
2099
|
|
2060
2100
|
SWIGINTERN VALUE
|
2061
|
-
SWIG_ruby_failed(
|
2101
|
+
SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
|
2062
2102
|
{
|
2063
2103
|
return Qnil;
|
2064
2104
|
}
|
2065
2105
|
|
2066
2106
|
|
2067
|
-
/*@SWIG:/usr/local/share/swig/
|
2068
|
-
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE
|
2107
|
+
/*@SWIG:/usr/local/Cellar/swig/4.0.2/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2108
|
+
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
|
2069
2109
|
{
|
2110
|
+
VALUE *args = (VALUE *)arg;
|
2070
2111
|
VALUE obj = args[0];
|
2071
2112
|
VALUE type = TYPE(obj);
|
2072
2113
|
long *res = (long *)(args[1]);
|
@@ -2084,7 +2125,7 @@ SWIG_AsVal_long (VALUE obj, long* val)
|
|
2084
2125
|
VALUE a[2];
|
2085
2126
|
a[0] = obj;
|
2086
2127
|
a[1] = (VALUE)(&v);
|
2087
|
-
if (rb_rescue(
|
2128
|
+
if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LONG), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
|
2088
2129
|
if (val) *val = v;
|
2089
2130
|
return SWIG_OK;
|
2090
2131
|
}
|
@@ -2152,7 +2193,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
2152
2193
|
if (cptr) {
|
2153
2194
|
if (alloc) {
|
2154
2195
|
if (*alloc == SWIG_NEWOBJ) {
|
2155
|
-
*cptr = reinterpret_cast< char* >(memcpy(
|
2196
|
+
*cptr = reinterpret_cast< char* >(memcpy(new char[size], cstr, sizeof(char)*(size)));
|
2156
2197
|
} else {
|
2157
2198
|
*cptr = cstr;
|
2158
2199
|
*alloc = SWIG_OLDOBJ;
|
@@ -2180,9 +2221,10 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
2180
2221
|
|
2181
2222
|
|
2182
2223
|
|
2183
|
-
/*@SWIG:/usr/local/share/swig/
|
2184
|
-
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE
|
2224
|
+
/*@SWIG:/usr/local/Cellar/swig/4.0.2/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2225
|
+
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE arg)
|
2185
2226
|
{
|
2227
|
+
VALUE *args = (VALUE *)arg;
|
2186
2228
|
VALUE obj = args[0];
|
2187
2229
|
VALUE type = TYPE(obj);
|
2188
2230
|
unsigned long *res = (unsigned long *)(args[1]);
|
@@ -2200,7 +2242,7 @@ SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
|
2200
2242
|
VALUE a[2];
|
2201
2243
|
a[0] = obj;
|
2202
2244
|
a[1] = (VALUE)(&v);
|
2203
|
-
if (rb_rescue(
|
2245
|
+
if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
|
2204
2246
|
if (val) *val = v;
|
2205
2247
|
return SWIG_OK;
|
2206
2248
|
}
|
@@ -2257,9 +2299,16 @@ SWIG_AsVal_unsigned_SS_char (VALUE obj, unsigned char *val)
|
|
2257
2299
|
}
|
2258
2300
|
|
2259
2301
|
|
2260
|
-
|
2261
|
-
|
2302
|
+
#if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
|
2303
|
+
# define SWIG_LONG_LONG_AVAILABLE
|
2304
|
+
#endif
|
2305
|
+
|
2306
|
+
|
2307
|
+
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2308
|
+
/*@SWIG:/usr/local/Cellar/swig/4.0.2/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2309
|
+
SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE arg)
|
2262
2310
|
{
|
2311
|
+
VALUE *args = (VALUE *)arg;
|
2263
2312
|
VALUE obj = args[0];
|
2264
2313
|
VALUE type = TYPE(obj);
|
2265
2314
|
long long *res = (long long *)(args[1]);
|
@@ -2277,13 +2326,14 @@ SWIG_AsVal_long_SS_long (VALUE obj, long long *val)
|
|
2277
2326
|
VALUE a[2];
|
2278
2327
|
a[0] = obj;
|
2279
2328
|
a[1] = (VALUE)(&v);
|
2280
|
-
if (rb_rescue(
|
2329
|
+
if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
|
2281
2330
|
if (val) *val = v;
|
2282
2331
|
return SWIG_OK;
|
2283
2332
|
}
|
2284
2333
|
}
|
2285
2334
|
return SWIG_TypeError;
|
2286
2335
|
}
|
2336
|
+
#endif
|
2287
2337
|
|
2288
2338
|
|
2289
2339
|
SWIGINTERN int
|
@@ -2313,11 +2363,13 @@ SWIG_From_unsigned_SS_char (unsigned char value)
|
|
2313
2363
|
}
|
2314
2364
|
|
2315
2365
|
|
2366
|
+
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2316
2367
|
SWIGINTERNINLINE VALUE
|
2317
2368
|
SWIG_From_long_SS_long (long long value)
|
2318
2369
|
{
|
2319
2370
|
return LL2NUM(value);
|
2320
2371
|
}
|
2372
|
+
#endif
|
2321
2373
|
|
2322
2374
|
SWIGINTERN TagLib::MP4::Item *TagLib_MP4_Item_from_bool(bool q){
|
2323
2375
|
return new TagLib::MP4::Item(q);
|
@@ -2473,22 +2525,20 @@ fail:
|
|
2473
2525
|
}
|
2474
2526
|
|
2475
2527
|
|
2476
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
2477
2528
|
SWIGINTERN VALUE
|
2478
|
-
|
2529
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
2530
|
+
_wrap_Properties_allocate(VALUE self)
|
2479
2531
|
#else
|
2480
|
-
|
2481
|
-
_wrap_Properties_allocate(int argc, VALUE *argv, VALUE self) {
|
2532
|
+
_wrap_Properties_allocate(int argc, VALUE *argv, VALUE self)
|
2482
2533
|
#endif
|
2483
|
-
|
2484
|
-
|
2485
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MP4__Properties);
|
2534
|
+
{
|
2535
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MP4__Properties);
|
2486
2536
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
2487
|
-
|
2537
|
+
rb_obj_call_init(vresult, argc, argv);
|
2488
2538
|
#endif
|
2489
|
-
|
2490
|
-
|
2491
|
-
|
2539
|
+
return vresult;
|
2540
|
+
}
|
2541
|
+
|
2492
2542
|
|
2493
2543
|
SWIGINTERN VALUE
|
2494
2544
|
_wrap_new_Properties__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
@@ -2577,7 +2627,8 @@ fail:
|
|
2577
2627
|
|
2578
2628
|
|
2579
2629
|
SWIGINTERN void
|
2580
|
-
free_TagLib_MP4_Properties(
|
2630
|
+
free_TagLib_MP4_Properties(void *self) {
|
2631
|
+
TagLib::MP4::Properties *arg1 = (TagLib::MP4::Properties *)self;
|
2581
2632
|
SWIG_RubyRemoveTracking(arg1);
|
2582
2633
|
delete arg1;
|
2583
2634
|
}
|
@@ -2792,22 +2843,20 @@ fail:
|
|
2792
2843
|
}
|
2793
2844
|
|
2794
2845
|
|
2795
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
2796
2846
|
SWIGINTERN VALUE
|
2797
|
-
|
2847
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
2848
|
+
_wrap_Tag_allocate(VALUE self)
|
2798
2849
|
#else
|
2799
|
-
|
2800
|
-
_wrap_Tag_allocate(int argc, VALUE *argv, VALUE self) {
|
2850
|
+
_wrap_Tag_allocate(int argc, VALUE *argv, VALUE self)
|
2801
2851
|
#endif
|
2802
|
-
|
2803
|
-
|
2804
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MP4__Tag);
|
2852
|
+
{
|
2853
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MP4__Tag);
|
2805
2854
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
2806
|
-
|
2855
|
+
rb_obj_call_init(vresult, argc, argv);
|
2807
2856
|
#endif
|
2808
|
-
|
2809
|
-
|
2810
|
-
|
2857
|
+
return vresult;
|
2858
|
+
}
|
2859
|
+
|
2811
2860
|
|
2812
2861
|
SWIGINTERN VALUE
|
2813
2862
|
_wrap_new_Tag__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
@@ -2879,7 +2928,8 @@ fail:
|
|
2879
2928
|
|
2880
2929
|
|
2881
2930
|
SWIGINTERN void
|
2882
|
-
free_TagLib_MP4_Tag(
|
2931
|
+
free_TagLib_MP4_Tag(void *self) {
|
2932
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *)self;
|
2883
2933
|
SWIG_RubyRemoveTracking(arg1);
|
2884
2934
|
delete arg1;
|
2885
2935
|
}
|
@@ -3387,7 +3437,6 @@ fail:
|
|
3387
3437
|
}
|
3388
3438
|
|
3389
3439
|
|
3390
|
-
|
3391
3440
|
/*
|
3392
3441
|
Document-method: TagLib::MP4::Tag.[]=
|
3393
3442
|
|
@@ -3500,27 +3549,26 @@ fail:
|
|
3500
3549
|
|
3501
3550
|
|
3502
3551
|
SWIGINTERN void
|
3503
|
-
free_TagLib_MP4_CoverArt(
|
3552
|
+
free_TagLib_MP4_CoverArt(void *self) {
|
3553
|
+
TagLib::MP4::CoverArt *arg1 = (TagLib::MP4::CoverArt *)self;
|
3504
3554
|
SWIG_RubyRemoveTracking(arg1);
|
3505
3555
|
delete arg1;
|
3506
3556
|
}
|
3507
3557
|
|
3508
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
3509
3558
|
SWIGINTERN VALUE
|
3510
|
-
|
3559
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
3560
|
+
_wrap_CoverArt_allocate(VALUE self)
|
3511
3561
|
#else
|
3512
|
-
|
3513
|
-
_wrap_CoverArt_allocate(int argc, VALUE *argv, VALUE self) {
|
3562
|
+
_wrap_CoverArt_allocate(int argc, VALUE *argv, VALUE self)
|
3514
3563
|
#endif
|
3515
|
-
|
3516
|
-
|
3517
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MP4__CoverArt);
|
3564
|
+
{
|
3565
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MP4__CoverArt);
|
3518
3566
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
3519
|
-
|
3567
|
+
rb_obj_call_init(vresult, argc, argv);
|
3520
3568
|
#endif
|
3521
|
-
|
3522
|
-
|
3523
|
-
|
3569
|
+
return vresult;
|
3570
|
+
}
|
3571
|
+
|
3524
3572
|
|
3525
3573
|
SWIGINTERN VALUE
|
3526
3574
|
_wrap_new_CoverArt__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
@@ -3562,7 +3610,7 @@ SWIGINTERN VALUE _wrap_new_CoverArt(int nargs, VALUE *args, VALUE self) {
|
|
3562
3610
|
if (argc == 1) {
|
3563
3611
|
int _v;
|
3564
3612
|
void *vptr = 0;
|
3565
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__CoverArt,
|
3613
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__CoverArt, SWIG_POINTER_NO_NULL);
|
3566
3614
|
_v = SWIG_CheckState(res);
|
3567
3615
|
if (_v) {
|
3568
3616
|
return _wrap_new_CoverArt__SWIG_1(nargs, args, self);
|
@@ -3688,7 +3736,8 @@ fail:
|
|
3688
3736
|
|
3689
3737
|
|
3690
3738
|
SWIGINTERN void
|
3691
|
-
free_TagLib_MP4_Item(
|
3739
|
+
free_TagLib_MP4_Item(void *self) {
|
3740
|
+
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *)self;
|
3692
3741
|
SWIG_RubyRemoveTracking(arg1);
|
3693
3742
|
delete arg1;
|
3694
3743
|
}
|
@@ -3870,21 +3919,16 @@ fail:
|
|
3870
3919
|
SWIGINTERN VALUE
|
3871
3920
|
_wrap_new_Item__SWIG_9(int argc, VALUE *argv, VALUE self) {
|
3872
3921
|
TagLib::ByteVectorList *arg1 = 0 ;
|
3873
|
-
|
3874
|
-
int res1 = 0 ;
|
3922
|
+
TagLib::ByteVectorList tmp1 ;
|
3875
3923
|
TagLib::MP4::Item *result = 0 ;
|
3876
3924
|
|
3877
3925
|
if ((argc < 1) || (argc > 1)) {
|
3878
3926
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3879
3927
|
}
|
3880
|
-
|
3881
|
-
|
3882
|
-
|
3883
|
-
}
|
3884
|
-
if (!argp1) {
|
3885
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::ByteVectorList const &","Item", 1, argv[0]));
|
3928
|
+
{
|
3929
|
+
tmp1 = ruby_array_to_taglib_bytevectorlist(argv[0]);
|
3930
|
+
arg1 = &tmp1;
|
3886
3931
|
}
|
3887
|
-
arg1 = reinterpret_cast< TagLib::ByteVectorList * >(argp1);
|
3888
3932
|
result = (TagLib::MP4::Item *)new TagLib::MP4::Item((TagLib::ByteVectorList const &)*arg1);
|
3889
3933
|
DATA_PTR(self) = result;
|
3890
3934
|
SWIG_RubyAddTracking(result, self);
|
@@ -3894,22 +3938,20 @@ fail:
|
|
3894
3938
|
}
|
3895
3939
|
|
3896
3940
|
|
3897
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
3898
3941
|
SWIGINTERN VALUE
|
3899
|
-
|
3942
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
3943
|
+
_wrap_Item_allocate(VALUE self)
|
3900
3944
|
#else
|
3901
|
-
|
3902
|
-
_wrap_Item_allocate(int argc, VALUE *argv, VALUE self) {
|
3945
|
+
_wrap_Item_allocate(int argc, VALUE *argv, VALUE self)
|
3903
3946
|
#endif
|
3904
|
-
|
3905
|
-
|
3906
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MP4__Item);
|
3947
|
+
{
|
3948
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MP4__Item);
|
3907
3949
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
3908
|
-
|
3950
|
+
rb_obj_call_init(vresult, argc, argv);
|
3909
3951
|
#endif
|
3910
|
-
|
3911
|
-
|
3912
|
-
|
3952
|
+
return vresult;
|
3953
|
+
}
|
3954
|
+
|
3913
3955
|
|
3914
3956
|
SWIGINTERN VALUE
|
3915
3957
|
_wrap_new_Item__SWIG_10(int argc, VALUE *argv, VALUE self) {
|
@@ -3949,7 +3991,7 @@ SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
|
3949
3991
|
if (argc == 1) {
|
3950
3992
|
int _v;
|
3951
3993
|
void *vptr = 0;
|
3952
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__Item,
|
3994
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__Item, SWIG_POINTER_NO_NULL);
|
3953
3995
|
_v = SWIG_CheckState(res);
|
3954
3996
|
if (_v) {
|
3955
3997
|
return _wrap_new_Item__SWIG_1(nargs, args, self);
|
@@ -3958,16 +4000,7 @@ SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
|
3958
4000
|
if (argc == 1) {
|
3959
4001
|
int _v;
|
3960
4002
|
void *vptr = 0;
|
3961
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr,
|
3962
|
-
_v = SWIG_CheckState(res);
|
3963
|
-
if (_v) {
|
3964
|
-
return _wrap_new_Item__SWIG_8(nargs, args, self);
|
3965
|
-
}
|
3966
|
-
}
|
3967
|
-
if (argc == 1) {
|
3968
|
-
int _v;
|
3969
|
-
void *vptr = 0;
|
3970
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ByteVectorList, 0);
|
4003
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ByteVectorList, SWIG_POINTER_NO_NULL);
|
3971
4004
|
_v = SWIG_CheckState(res);
|
3972
4005
|
if (_v) {
|
3973
4006
|
return _wrap_new_Item__SWIG_9(nargs, args, self);
|
@@ -3976,7 +4009,7 @@ SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
|
3976
4009
|
if (argc == 1) {
|
3977
4010
|
int _v;
|
3978
4011
|
void *vptr = 0;
|
3979
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__CoverArtList,
|
4012
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__CoverArtList, SWIG_POINTER_NO_NULL);
|
3980
4013
|
_v = SWIG_CheckState(res);
|
3981
4014
|
if (_v) {
|
3982
4015
|
return _wrap_new_Item__SWIG_10(nargs, args, self);
|
@@ -4022,6 +4055,15 @@ SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
|
4022
4055
|
return _wrap_new_Item__SWIG_5(nargs, args, self);
|
4023
4056
|
}
|
4024
4057
|
}
|
4058
|
+
if (argc == 1) {
|
4059
|
+
int _v;
|
4060
|
+
{
|
4061
|
+
_v = TYPE(argv[0]) == T_ARRAY ? 1 : 0;
|
4062
|
+
}
|
4063
|
+
if (_v) {
|
4064
|
+
return _wrap_new_Item__SWIG_8(nargs, args, self);
|
4065
|
+
}
|
4066
|
+
}
|
4025
4067
|
if (argc == 1) {
|
4026
4068
|
int _v;
|
4027
4069
|
{
|
@@ -4256,7 +4298,9 @@ _wrap_Item_to_byte_vector_list(int argc, VALUE *argv, VALUE self) {
|
|
4256
4298
|
}
|
4257
4299
|
arg1 = reinterpret_cast< TagLib::MP4::Item * >(argp1);
|
4258
4300
|
result = ((TagLib::MP4::Item const *)arg1)->toByteVectorList();
|
4259
|
-
|
4301
|
+
{
|
4302
|
+
vresult = taglib_bytevectorlist_to_ruby_array(result);
|
4303
|
+
}
|
4260
4304
|
return vresult;
|
4261
4305
|
fail:
|
4262
4306
|
return Qnil;
|
@@ -4480,22 +4524,17 @@ fail:
|
|
4480
4524
|
SWIGINTERN VALUE
|
4481
4525
|
_wrap_Item_from_byte_vector_list(int argc, VALUE *argv, VALUE self) {
|
4482
4526
|
TagLib::ByteVectorList *arg1 = 0 ;
|
4483
|
-
|
4484
|
-
int res1 = 0 ;
|
4527
|
+
TagLib::ByteVectorList tmp1 ;
|
4485
4528
|
TagLib::MP4::Item *result = 0 ;
|
4486
4529
|
VALUE vresult = Qnil;
|
4487
4530
|
|
4488
4531
|
if ((argc < 1) || (argc > 1)) {
|
4489
4532
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4490
4533
|
}
|
4491
|
-
|
4492
|
-
|
4493
|
-
|
4494
|
-
}
|
4495
|
-
if (!argp1) {
|
4496
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::ByteVectorList const &","TagLib_MP4_Item_from_byte_vector_list", 1, argv[0]));
|
4534
|
+
{
|
4535
|
+
tmp1 = ruby_array_to_taglib_bytevectorlist(argv[0]);
|
4536
|
+
arg1 = &tmp1;
|
4497
4537
|
}
|
4498
|
-
arg1 = reinterpret_cast< TagLib::ByteVectorList * >(argp1);
|
4499
4538
|
result = (TagLib::MP4::Item *)TagLib_MP4_Item_from_byte_vector_list((TagLib::ByteVectorList const &)*arg1);
|
4500
4539
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
4501
4540
|
return vresult;
|
@@ -4576,22 +4615,20 @@ fail:
|
|
4576
4615
|
}
|
4577
4616
|
|
4578
4617
|
|
4579
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
4580
4618
|
SWIGINTERN VALUE
|
4581
|
-
|
4619
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
4620
|
+
_wrap_File_allocate(VALUE self)
|
4582
4621
|
#else
|
4583
|
-
|
4584
|
-
_wrap_File_allocate(int argc, VALUE *argv, VALUE self) {
|
4622
|
+
_wrap_File_allocate(int argc, VALUE *argv, VALUE self)
|
4585
4623
|
#endif
|
4586
|
-
|
4587
|
-
|
4588
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MP4__File);
|
4624
|
+
{
|
4625
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MP4__File);
|
4589
4626
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
4590
|
-
|
4627
|
+
rb_obj_call_init(vresult, argc, argv);
|
4591
4628
|
#endif
|
4592
|
-
|
4593
|
-
|
4594
|
-
|
4629
|
+
return vresult;
|
4630
|
+
}
|
4631
|
+
|
4595
4632
|
|
4596
4633
|
SWIGINTERN VALUE
|
4597
4634
|
_wrap_new_File__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
@@ -4814,22 +4851,20 @@ fail:
|
|
4814
4851
|
}
|
4815
4852
|
|
4816
4853
|
|
4817
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
4818
4854
|
SWIGINTERN VALUE
|
4819
|
-
|
4855
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
4856
|
+
_wrap_ItemMap_allocate(VALUE self)
|
4820
4857
|
#else
|
4821
|
-
|
4822
|
-
_wrap_ItemMap_allocate(int argc, VALUE *argv, VALUE self) {
|
4858
|
+
_wrap_ItemMap_allocate(int argc, VALUE *argv, VALUE self)
|
4823
4859
|
#endif
|
4824
|
-
|
4825
|
-
|
4826
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t);
|
4860
|
+
{
|
4861
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t);
|
4827
4862
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
4828
|
-
|
4863
|
+
rb_obj_call_init(vresult, argc, argv);
|
4829
4864
|
#endif
|
4830
|
-
|
4831
|
-
|
4832
|
-
|
4865
|
+
return vresult;
|
4866
|
+
}
|
4867
|
+
|
4833
4868
|
|
4834
4869
|
SWIGINTERN VALUE
|
4835
4870
|
_wrap_new_ItemMap__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
@@ -4874,7 +4909,7 @@ SWIGINTERN VALUE _wrap_new_ItemMap(int nargs, VALUE *args, VALUE self) {
|
|
4874
4909
|
if (argc == 1) {
|
4875
4910
|
int _v;
|
4876
4911
|
void *vptr = 0;
|
4877
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t,
|
4912
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, SWIG_POINTER_NO_NULL);
|
4878
4913
|
_v = SWIG_CheckState(res);
|
4879
4914
|
if (_v) {
|
4880
4915
|
return _wrap_new_ItemMap__SWIG_1(nargs, args, self);
|
@@ -4891,12 +4926,12 @@ fail:
|
|
4891
4926
|
|
4892
4927
|
|
4893
4928
|
SWIGINTERN void
|
4894
|
-
free_TagLib_Map_Sl_TagLib_String_Sc_TagLib_MP4_Item_Sg_(
|
4929
|
+
free_TagLib_Map_Sl_TagLib_String_Sc_TagLib_MP4_Item_Sg_(void *self) {
|
4930
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *)self;
|
4895
4931
|
SWIG_RubyRemoveTracking(arg1);
|
4896
4932
|
delete arg1;
|
4897
4933
|
}
|
4898
4934
|
|
4899
|
-
|
4900
4935
|
/*
|
4901
4936
|
Document-method: TagLib::MP4::ItemMap.size
|
4902
4937
|
|
@@ -4983,7 +5018,6 @@ fail:
|
|
4983
5018
|
}
|
4984
5019
|
|
4985
5020
|
|
4986
|
-
|
4987
5021
|
/*
|
4988
5022
|
Document-method: TagLib::MP4::ItemMap.to_a
|
4989
5023
|
|
@@ -5188,7 +5222,6 @@ static swig_type_info _swigt__p_TagLib__MP4__Item = {"_p_TagLib__MP4__Item", "Ta
|
|
5188
5222
|
static swig_type_info _swigt__p_TagLib__MP4__Properties = {"_p_TagLib__MP4__Properties", "TagLib::MP4::Properties *", 0, 0, (void*)0, 0};
|
5189
5223
|
static swig_type_info _swigt__p_TagLib__MP4__Tag = {"_p_TagLib__MP4__Tag", "TagLib::MP4::Tag *", 0, 0, (void*)0, 0};
|
5190
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 > *|TagLib::MP4::ItemListMap *|TagLib::MP4::ItemMap *", 0, 0, (void*)0, 0};
|
5191
|
-
static swig_type_info _swigt__p_TagLib__StringList = {"_p_TagLib__StringList", "TagLib::StringList *", 0, 0, (void*)0, 0};
|
5192
5225
|
static swig_type_info _swigt__p_TagLib__Tag = {"_p_TagLib__Tag", "TagLib::Tag *", 0, 0, (void*)0, 0};
|
5193
5226
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
5194
5227
|
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "TagLib::uchar *|unsigned char *", 0, 0, (void*)0, 0};
|
@@ -5208,7 +5241,6 @@ static swig_type_info *swig_type_initial[] = {
|
|
5208
5241
|
&_swigt__p_TagLib__MP4__Properties,
|
5209
5242
|
&_swigt__p_TagLib__MP4__Tag,
|
5210
5243
|
&_swigt__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t,
|
5211
|
-
&_swigt__p_TagLib__StringList,
|
5212
5244
|
&_swigt__p_TagLib__Tag,
|
5213
5245
|
&_swigt__p_char,
|
5214
5246
|
&_swigt__p_unsigned_char,
|
@@ -5228,7 +5260,6 @@ static swig_cast_info _swigc__p_TagLib__MP4__Item[] = { {&_swigt__p_TagLib__MP4
|
|
5228
5260
|
static swig_cast_info _swigc__p_TagLib__MP4__Properties[] = { {&_swigt__p_TagLib__MP4__Properties, 0, 0, 0},{0, 0, 0, 0}};
|
5229
5261
|
static swig_cast_info _swigc__p_TagLib__MP4__Tag[] = { {&_swigt__p_TagLib__MP4__Tag, 0, 0, 0},{0, 0, 0, 0}};
|
5230
5262
|
static swig_cast_info _swigc__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t[] = { {&_swigt__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0, 0, 0},{0, 0, 0, 0}};
|
5231
|
-
static swig_cast_info _swigc__p_TagLib__StringList[] = { {&_swigt__p_TagLib__StringList, 0, 0, 0},{0, 0, 0, 0}};
|
5232
5263
|
static swig_cast_info _swigc__p_TagLib__Tag[] = { {&_swigt__p_TagLib__Tag, 0, 0, 0}, {&_swigt__p_TagLib__MP4__Tag, _p_TagLib__MP4__TagTo_p_TagLib__Tag, 0, 0},{0, 0, 0, 0}};
|
5233
5264
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
5234
5265
|
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -5248,7 +5279,6 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
5248
5279
|
_swigc__p_TagLib__MP4__Properties,
|
5249
5280
|
_swigc__p_TagLib__MP4__Tag,
|
5250
5281
|
_swigc__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t,
|
5251
|
-
_swigc__p_TagLib__StringList,
|
5252
5282
|
_swigc__p_TagLib__Tag,
|
5253
5283
|
_swigc__p_char,
|
5254
5284
|
_swigc__p_unsigned_char,
|
@@ -5360,7 +5390,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
5360
5390
|
|
5361
5391
|
/* Now work on filling in swig_module.types */
|
5362
5392
|
#ifdef SWIGRUNTIME_DEBUG
|
5363
|
-
printf("SWIG_InitializeModule: size %
|
5393
|
+
printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
|
5364
5394
|
#endif
|
5365
5395
|
for (i = 0; i < swig_module.size; ++i) {
|
5366
5396
|
swig_type_info *type = 0;
|
@@ -5368,7 +5398,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
5368
5398
|
swig_cast_info *cast;
|
5369
5399
|
|
5370
5400
|
#ifdef SWIGRUNTIME_DEBUG
|
5371
|
-
printf("SWIG_InitializeModule: type %
|
5401
|
+
printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
|
5372
5402
|
#endif
|
5373
5403
|
|
5374
5404
|
/* if there is another module already loaded */
|
@@ -5444,7 +5474,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
5444
5474
|
for (i = 0; i < swig_module.size; ++i) {
|
5445
5475
|
int j = 0;
|
5446
5476
|
swig_cast_info *cast = swig_module.cast_initial[i];
|
5447
|
-
printf("SWIG_InitializeModule: type %
|
5477
|
+
printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
|
5448
5478
|
while (cast->type) {
|
5449
5479
|
printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
|
5450
5480
|
cast++;
|