MPD 0.20.6

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

TagType.h
Go to the documentation of this file.
1 /*
2 * Copyright 2003-2017 The Music Player Daemon Project
3 * http://www.musicpd.org
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #ifndef MPD_TAG_TYPE_H
21 #define MPD_TAG_TYPE_H
22
23 #ifdef __cplusplus
24 #include <stdint.h>
25 #endif
26
30 enum TagType
31 #ifdef __cplusplus
32 /* the size of this enum is 1 byte; this is only relevant for C++
33 code; the only C sources including this header don't use instances
34 of this enum, they only refer to the integer values */
35 : uint8_t
36 #endif
37 {
38 TAG_ARTIST,
39 TAG_ARTIST_SORT,
40 TAG_ALBUM,
41 TAG_ALBUM_SORT,
42 TAG_ALBUM_ARTIST,
43 TAG_ALBUM_ARTIST_SORT,
44 TAG_TITLE,
45 TAG_TRACK,
46 TAG_NAME,
47 TAG_GENRE,
48 TAG_DATE,
49 TAG_COMPOSER,
50 TAG_PERFORMER,
51 TAG_COMMENT,
52 TAG_DISC,
53
54 TAG_MUSICBRAINZ_ARTISTID,
55 TAG_MUSICBRAINZ_ALBUMID,
56 TAG_MUSICBRAINZ_ALBUMARTISTID,
57 TAG_MUSICBRAINZ_TRACKID,
58 TAG_MUSICBRAINZ_RELEASETRACKID,
59
60 TAG_NUM_OF_ITEM_TYPES
61 };
62
67 extern const char *const tag_item_names[];
68
69 #endif
TAG_COMPOSER
Definition: TagType.h:49
TAG_NAME
Definition: TagType.h:46
TAG_MUSICBRAINZ_ARTISTID
Definition: TagType.h:54
TAG_ARTIST
Definition: TagType.h:38
TAG_ARTIST_SORT
Definition: TagType.h:39
TAG_TITLE
Definition: TagType.h:44
TAG_ALBUM
Definition: TagType.h:40
TAG_DISC
Definition: TagType.h:52
TAG_TRACK
Definition: TagType.h:45
TAG_MUSICBRAINZ_ALBUMID
Definition: TagType.h:55
TAG_PERFORMER
Definition: TagType.h:50
TagType
TagType
Codes for the type of a tag item.
Definition: TagType.h:30
TAG_DATE
Definition: TagType.h:48
tag_item_names
const char *const tag_item_names[]
An array of strings, which map the TagType to its machine readable name (specific to the MPD protocol...
TAG_MUSICBRAINZ_ALBUMARTISTID
Definition: TagType.h:56
TAG_MUSICBRAINZ_RELEASETRACKID
Definition: TagType.h:58
TAG_ALBUM_SORT
Definition: TagType.h:41
TAG_COMMENT
Definition: TagType.h:51
TAG_ALBUM_ARTIST_SORT
Definition: TagType.h:43
TAG_ALBUM_ARTIST
Definition: TagType.h:42
TAG_GENRE
Definition: TagType.h:47
TAG_NUM_OF_ITEM_TYPES
Definition: TagType.h:60
TAG_MUSICBRAINZ_TRACKID
Definition: TagType.h:57