TagType: rename enum tag_type to TagType
This commit is contained in:
@@ -81,7 +81,7 @@ adplug_file_decode(struct decoder *decoder, const char *path_fs)
|
||||
}
|
||||
|
||||
static void
|
||||
adplug_scan_tag(enum tag_type type, const std::string &value,
|
||||
adplug_scan_tag(TagType type, const std::string &value,
|
||||
const struct tag_handler *handler, void *handler_ctx)
|
||||
{
|
||||
if (!value.empty())
|
||||
|
@@ -202,7 +202,7 @@ static void
|
||||
dsdiff_handle_native_tag(struct input_stream *is,
|
||||
const struct tag_handler *handler,
|
||||
void *handler_ctx, input_stream::offset_type tagoffset,
|
||||
enum tag_type type)
|
||||
TagType type)
|
||||
{
|
||||
if (!dsdlib_skip_to(nullptr, is, tagoffset))
|
||||
return;
|
||||
|
@@ -36,7 +36,7 @@ static const struct tag_table ffmpeg_tags[] = {
|
||||
};
|
||||
|
||||
static void
|
||||
ffmpeg_copy_metadata(enum tag_type type,
|
||||
ffmpeg_copy_metadata(TagType type,
|
||||
AVDictionary *m, const char *name,
|
||||
const struct tag_handler *handler, void *handler_ctx)
|
||||
{
|
||||
@@ -63,7 +63,7 @@ ffmpeg_scan_dictionary(AVDictionary *dict,
|
||||
const struct tag_handler *handler, void *handler_ctx)
|
||||
{
|
||||
for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; ++i)
|
||||
ffmpeg_copy_metadata(tag_type(i), dict, tag_item_names[i],
|
||||
ffmpeg_copy_metadata(TagType(i), dict, tag_item_names[i],
|
||||
handler, handler_ctx);
|
||||
|
||||
for (const struct tag_table *i = ffmpeg_tags;
|
||||
|
@@ -152,7 +152,7 @@ flac_comment_value(const FLAC__StreamMetadata_VorbisComment_Entry *entry,
|
||||
*/
|
||||
static bool
|
||||
flac_copy_comment(const FLAC__StreamMetadata_VorbisComment_Entry *entry,
|
||||
const char *name, enum tag_type tag_type,
|
||||
const char *name, TagType tag_type,
|
||||
const struct tag_handler *handler, void *handler_ctx)
|
||||
{
|
||||
const char *value;
|
||||
@@ -193,7 +193,7 @@ flac_scan_comment(const FLAC__StreamMetadata_VorbisComment_Entry *entry,
|
||||
|
||||
for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; ++i)
|
||||
if (flac_copy_comment(entry,
|
||||
tag_item_names[i], (enum tag_type)i,
|
||||
tag_item_names[i], (TagType)i,
|
||||
handler, handler_ctx))
|
||||
return;
|
||||
}
|
||||
|
@@ -34,7 +34,7 @@ ScanOneOpusTag(const char *name, const char *value,
|
||||
tag_handler_invoke_pair(handler, ctx, name, value);
|
||||
|
||||
if (handler->tag != nullptr) {
|
||||
enum tag_type t = tag_table_lookup_i(xiph_tags, name);
|
||||
TagType t = tag_table_lookup_i(xiph_tags, name);
|
||||
if (t != TAG_NUM_OF_ITEM_TYPES)
|
||||
tag_handler_invoke_tag(handler, ctx, t, value);
|
||||
}
|
||||
|
@@ -84,7 +84,7 @@ vorbis_comments_to_replay_gain(struct replay_gain_info *rgi, char **comments)
|
||||
*/
|
||||
static bool
|
||||
vorbis_copy_comment(const char *comment,
|
||||
const char *name, enum tag_type tag_type,
|
||||
const char *name, TagType tag_type,
|
||||
const struct tag_handler *handler, void *handler_ctx)
|
||||
{
|
||||
const char *value;
|
||||
@@ -122,7 +122,7 @@ vorbis_scan_comment(const char *comment,
|
||||
|
||||
for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; ++i)
|
||||
if (vorbis_copy_comment(comment,
|
||||
tag_item_names[i], tag_type(i),
|
||||
tag_item_names[i], TagType(i),
|
||||
handler, handler_ctx))
|
||||
return;
|
||||
}
|
||||
|
@@ -260,7 +260,7 @@ wavpack_replaygain(struct replay_gain_info *replay_gain_info,
|
||||
|
||||
static void
|
||||
wavpack_scan_tag_item(WavpackContext *wpc, const char *name,
|
||||
enum tag_type type,
|
||||
TagType type,
|
||||
const struct tag_handler *handler, void *handler_ctx)
|
||||
{
|
||||
char buffer[1024];
|
||||
@@ -312,7 +312,7 @@ wavpack_scan_file(const char *fname,
|
||||
for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; ++i) {
|
||||
const char *name = tag_item_names[i];
|
||||
if (name != nullptr)
|
||||
wavpack_scan_tag_item(wpc, name, (enum tag_type)i,
|
||||
wavpack_scan_tag_item(wpc, name, (TagType)i,
|
||||
handler, handler_ctx);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user