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.
@@ -5,8 +5,6 @@
5
5
  #include <taglib/mp4properties.h>
6
6
  #include <taglib/mp4tag.h>
7
7
  #include <taglib/mp4atom.h>
8
- // To resolve some symbols, like AtomDataType in Item.
9
- using namespace TagLib::MP4;
10
8
  %}
11
9
 
12
10
  %include "../taglib_base/includes.i"
@@ -77,6 +75,8 @@ namespace TagLib {
77
75
 
78
76
  %ignore TagLib::Map<TagLib::String, TagLib::MP4::Item>::begin;
79
77
  %ignore TagLib::Map<TagLib::String, TagLib::MP4::Item>::end;
78
+ %ignore TagLib::Map<TagLib::String, TagLib::MP4::Item>::cbegin;
79
+ %ignore TagLib::Map<TagLib::String, TagLib::MP4::Item>::cend;
80
80
  %ignore TagLib::Map<TagLib::String, TagLib::MP4::Item>::insert;
81
81
  %ignore TagLib::Map<TagLib::String, TagLib::MP4::Item>::find;
82
82
  // We will create a safe version of these below in an %extend
@@ -84,16 +84,6 @@ namespace TagLib {
84
84
  %ignore TagLib::Map<TagLib::String, TagLib::MP4::Item>::erase(Iterator);
85
85
  %ignore TagLib::Map<TagLib::String, TagLib::MP4::Item>::erase(const TagLib::String &);
86
86
 
87
- %ignore TagLib::MP4::Tag::itemListMap; // Deprecated.
88
-
89
- %rename("__getitem__") TagLib::MP4::Tag::item;
90
-
91
- // We will create a safe version of these below in an %extend
92
- // TagLib::MP4::Tag::item does not need to be reimplemented as it return an Item by value.
93
- %ignore TagLib::MP4::Tag::setItem;
94
- %ignore TagLib::MP4::Tag::removeItem;
95
-
96
- %include <taglib/mp4tag.h>
97
87
 
98
88
  %typemap(out) TagLib::MP4::CoverArtList {
99
89
  $result = taglib_cover_art_list_to_ruby_array($1);
@@ -117,13 +107,32 @@ namespace TagLib {
117
107
  %ignore TagLib::MP4::Item::setAtomDataType;
118
108
 
119
109
  %warnfilter(SWIGWARN_PARSE_NAMED_NESTED_CLASS) IntPair;
110
+ %ignore ItemMap;
120
111
  %include <taglib/mp4item.h>
121
112
 
113
+ namespace TagLib {
114
+ namespace MP4 {
115
+ %template(ItemMap) ::TagLib::Map<String, Item>;
116
+ }
117
+ }
118
+
119
+ %ignore TagLib::MP4::Tag::itemListMap; // Deprecated.
120
+
121
+ %rename("__getitem__") TagLib::MP4::Tag::item;
122
+
123
+ // We will create a safe version of these below in an %extend
124
+ // TagLib::MP4::Tag::item does not need to be reimplemented as it return an Item by value.
125
+ %ignore TagLib::MP4::Tag::setItem;
126
+ %ignore TagLib::MP4::Tag::removeItem;
127
+
128
+ %include <taglib/mp4tag.h>
129
+
122
130
  %freefunc TagLib::MP4::File "free_taglib_mp4_file";
123
131
 
124
132
  // Ignore IOStream and all the constructors using it.
125
133
  %ignore IOStream;
126
134
  %ignore TagLib::MP4::File::File(IOStream *, bool, Properties::ReadStyle);
135
+ %ignore TagLib::MP4::File::File(IOStream *, bool, Properties::ReadStyle, ItemFactory *);
127
136
  %ignore TagLib::MP4::File::File(IOStream *, bool);
128
137
  %ignore TagLib::MP4::File::File(IOStream *);
129
138
  %ignore TagLib::MP4::File::isSupported(IOStream *);
@@ -136,12 +145,6 @@ namespace TagLib {
136
145
  %rename("mp4_tag?") TagLib::MP4::File::hasMP4Tag;
137
146
  %include <taglib/mp4file.h>
138
147
 
139
- namespace TagLib {
140
- namespace MP4 {
141
- %template(ItemMap) ::TagLib::Map<String, Item>;
142
- }
143
- }
144
-
145
148
  // Unlink Ruby objects from the deleted C++ objects. Otherwise Ruby code
146
149
  // that calls a method on a tag after the file is deleted segfaults.
147
150
  %begin %{