Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
6a9ab8bc
Commit
6a9ab8bc
authored
Jul 30, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag: move enum tag_type to TagType.h
parent
9a0061c5
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
73 additions
and
45 deletions
+73
-45
Makefile.am
Makefile.am
+1
-0
DatabaseHelpers.hxx
src/DatabaseHelpers.hxx
+2
-2
DatabasePlugin.hxx
src/DatabasePlugin.hxx
+1
-4
IcyMetaDataServer.hxx
src/IcyMetaDataServer.hxx
+1
-1
TagHandler.cxx
src/TagHandler.cxx
+1
-0
TagHandler.hxx
src/TagHandler.hxx
+1
-1
TagInternal.hxx
src/TagInternal.hxx
+1
-1
TagNames.c
src/TagNames.c
+1
-1
TagPool.cxx
src/TagPool.cxx
+1
-0
TagPool.hxx
src/TagPool.hxx
+1
-1
TagTable.hxx
src/TagTable.hxx
+3
-1
TagType.h
src/TagType.h
+56
-0
UpdateContainer.cxx
src/UpdateContainer.cxx
+1
-0
ProxyDatabasePlugin.cxx
src/db/ProxyDatabasePlugin.cxx
+1
-0
tag.h
src/tag.h
+1
-33
No files found.
Makefile.am
View file @
6a9ab8bc
...
@@ -216,6 +216,7 @@ src_mpd_SOURCES = \
...
@@ -216,6 +216,7 @@ src_mpd_SOURCES = \
src/SocketUtil.cxx src/SocketUtil.hxx
\
src/SocketUtil.cxx src/SocketUtil.hxx
\
src/StateFile.cxx src/StateFile.hxx
\
src/StateFile.cxx src/StateFile.hxx
\
src/Stats.cxx
\
src/Stats.cxx
\
src/TagType.h
\
src/Tag.cxx
\
src/Tag.cxx
\
src/TagTable.hxx
\
src/TagTable.hxx
\
src/TagNames.c
\
src/TagNames.c
\
...
...
src/DatabaseHelpers.hxx
View file @
6a9ab8bc
/*
/*
* Copyright (C) 2003-201
2
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
* http://www.musicpd.org
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#define MPD_MEMORY_DATABASE_PLUGIN_HXX
#define MPD_MEMORY_DATABASE_PLUGIN_HXX
#include "DatabaseVisitor.hxx"
#include "DatabaseVisitor.hxx"
#include "
tag
.h"
#include "
TagType
.h"
#include "gcc.h"
#include "gcc.h"
class
Database
;
class
Database
;
...
...
src/DatabasePlugin.hxx
View file @
6a9ab8bc
...
@@ -27,12 +27,9 @@
...
@@ -27,12 +27,9 @@
#define MPD_DATABASE_PLUGIN_HXX
#define MPD_DATABASE_PLUGIN_HXX
#include "DatabaseVisitor.hxx"
#include "DatabaseVisitor.hxx"
#include "TagType.h"
#include "gcc.h"
#include "gcc.h"
extern
"C"
{
#include "tag.h"
}
struct
config_param
;
struct
config_param
;
struct
DatabaseSelection
;
struct
DatabaseSelection
;
struct
db_visitor
;
struct
db_visitor
;
...
...
src/IcyMetaDataServer.hxx
View file @
6a9ab8bc
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#ifndef MPD_ICY_META_DATA_SERVER_HXX
#ifndef MPD_ICY_META_DATA_SERVER_HXX
#define MPD_ICY_META_DATA_SERVER_HXX
#define MPD_ICY_META_DATA_SERVER_HXX
#include "
tag
.h"
#include "
TagType
.h"
class
Page
;
class
Page
;
...
...
src/TagHandler.cxx
View file @
6a9ab8bc
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
#include "config.h"
#include "config.h"
#include "TagHandler.hxx"
#include "TagHandler.hxx"
#include "tag.h"
#include <glib.h>
#include <glib.h>
...
...
src/TagHandler.hxx
View file @
6a9ab8bc
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#define MPD_TAG_HANDLER_HXX
#define MPD_TAG_HANDLER_HXX
#include "check.h"
#include "check.h"
#include "
tag
.h"
#include "
TagType
.h"
#include <assert.h>
#include <assert.h>
...
...
src/TagInternal.hxx
View file @
6a9ab8bc
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#ifndef MPD_TAG_INTERNAL_HXX
#ifndef MPD_TAG_INTERNAL_HXX
#define MPD_TAG_INTERNAL_HXX
#define MPD_TAG_INTERNAL_HXX
#include "
tag
.h"
#include "
TagType
.h"
extern
bool
ignore_tag_items
[
TAG_NUM_OF_ITEM_TYPES
];
extern
bool
ignore_tag_items
[
TAG_NUM_OF_ITEM_TYPES
];
...
...
src/TagNames.c
View file @
6a9ab8bc
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
*/
*/
#include "config.h"
#include "config.h"
#include "
tag
.h"
#include "
TagType
.h"
const
char
*
tag_item_names
[
TAG_NUM_OF_ITEM_TYPES
]
=
{
const
char
*
tag_item_names
[
TAG_NUM_OF_ITEM_TYPES
]
=
{
[
TAG_ARTIST
]
=
"Artist"
,
[
TAG_ARTIST
]
=
"Artist"
,
...
...
src/TagPool.cxx
View file @
6a9ab8bc
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
#include "config.h"
#include "config.h"
#include "TagPool.hxx"
#include "TagPool.hxx"
#include "tag.h"
#include <glib.h>
#include <glib.h>
...
...
src/TagPool.hxx
View file @
6a9ab8bc
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#ifndef MPD_TAG_POOL_HXX
#ifndef MPD_TAG_POOL_HXX
#define MPD_TAG_POOL_HXX
#define MPD_TAG_POOL_HXX
#include "
tag
.h"
#include "
TagType
.h"
#include "thread/Mutex.hxx"
#include "thread/Mutex.hxx"
extern
Mutex
tag_pool_lock
;
extern
Mutex
tag_pool_lock
;
...
...
src/TagTable.hxx
View file @
6a9ab8bc
...
@@ -20,11 +20,13 @@
...
@@ -20,11 +20,13 @@
#ifndef MPD_TAG_TABLE_HXX
#ifndef MPD_TAG_TABLE_HXX
#define MPD_TAG_TABLE_HXX
#define MPD_TAG_TABLE_HXX
#include "
tag
.h"
#include "
TagType
.h"
#include "gcc.h"
#include "gcc.h"
#include <glib.h>
#include <glib.h>
#include <string.h>
struct
tag_table
{
struct
tag_table
{
const
char
*
name
;
const
char
*
name
;
...
...
src/TagType.h
0 → 100644
View file @
6a9ab8bc
/*
* Copyright (C) 2003-2013 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_TAG_TYPE_H
#define MPD_TAG_TYPE_H
/**
* Codes for the type of a tag item.
*/
enum
tag_type
{
TAG_ARTIST
,
TAG_ARTIST_SORT
,
TAG_ALBUM
,
TAG_ALBUM_ARTIST
,
TAG_ALBUM_ARTIST_SORT
,
TAG_TITLE
,
TAG_TRACK
,
TAG_NAME
,
TAG_GENRE
,
TAG_DATE
,
TAG_COMPOSER
,
TAG_PERFORMER
,
TAG_COMMENT
,
TAG_DISC
,
TAG_MUSICBRAINZ_ARTISTID
,
TAG_MUSICBRAINZ_ALBUMID
,
TAG_MUSICBRAINZ_ALBUMARTISTID
,
TAG_MUSICBRAINZ_TRACKID
,
TAG_NUM_OF_ITEM_TYPES
};
/**
* An array of strings, which map the #tag_type to its machine
* readable name (specific to the MPD protocol).
*/
extern
const
char
*
tag_item_names
[];
#endif
src/UpdateContainer.cxx
View file @
6a9ab8bc
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#include "Mapper.hxx"
#include "Mapper.hxx"
#include "fs/Path.hxx"
#include "fs/Path.hxx"
#include "TagHandler.hxx"
#include "TagHandler.hxx"
#include "tag.h"
#include <glib.h>
#include <glib.h>
...
...
src/db/ProxyDatabasePlugin.cxx
View file @
6a9ab8bc
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
#include "Song.hxx"
#include "Song.hxx"
#include "gcc.h"
#include "gcc.h"
#include "conf.h"
#include "conf.h"
#include "tag.h"
extern
"C"
{
extern
"C"
{
#include "db_error.h"
#include "db_error.h"
...
...
src/tag.h
View file @
6a9ab8bc
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
#ifndef MPD_TAG_H
#ifndef MPD_TAG_H
#define MPD_TAG_H
#define MPD_TAG_H
#include "TagType.h"
#include "gcc.h"
#include "gcc.h"
#include <stdint.h>
#include <stdint.h>
...
@@ -28,39 +29,6 @@
...
@@ -28,39 +29,6 @@
#include <string.h>
#include <string.h>
/**
/**
* Codes for the type of a tag item.
*/
enum
tag_type
{
TAG_ARTIST
,
TAG_ARTIST_SORT
,
TAG_ALBUM
,
TAG_ALBUM_ARTIST
,
TAG_ALBUM_ARTIST_SORT
,
TAG_TITLE
,
TAG_TRACK
,
TAG_NAME
,
TAG_GENRE
,
TAG_DATE
,
TAG_COMPOSER
,
TAG_PERFORMER
,
TAG_COMMENT
,
TAG_DISC
,
TAG_MUSICBRAINZ_ARTISTID
,
TAG_MUSICBRAINZ_ALBUMID
,
TAG_MUSICBRAINZ_ALBUMARTISTID
,
TAG_MUSICBRAINZ_TRACKID
,
TAG_NUM_OF_ITEM_TYPES
};
/**
* An array of strings, which map the #tag_type to its machine
* readable name (specific to the MPD protocol).
*/
extern
const
char
*
tag_item_names
[];
/**
* One tag value. It is a mapping of #tag_type to am arbitrary string
* One tag value. It is a mapping of #tag_type to am arbitrary string
* value. Each tag can have multiple items of one tag type (although
* value. Each tag can have multiple items of one tag type (although
* few clients support that).
* few clients support that).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment