1 /* 2 * Copyright 2003-2021 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 <cstdint> 25 #endif 26 27 /** 28 * Codes for the type of a tag item. 29 */ 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_ORIGINAL_DATE, 50 TAG_COMPOSER, 51 TAG_COMPOSERSORT, 52 TAG_PERFORMER, 53 TAG_CONDUCTOR, 54 TAG_WORK, 55 TAG_MOVEMENT, 56 TAG_MOVEMENTNUMBER, 57 TAG_ENSEMBLE, 58 TAG_LOCATION, 59 TAG_GROUPING, 60 TAG_COMMENT, 61 TAG_DISC, 62 TAG_LABEL, 63 64 TAG_MUSICBRAINZ_ARTISTID, 65 TAG_MUSICBRAINZ_ALBUMID, 66 TAG_MUSICBRAINZ_ALBUMARTISTID, 67 TAG_MUSICBRAINZ_TRACKID, 68 TAG_MUSICBRAINZ_RELEASETRACKID, 69 TAG_MUSICBRAINZ_WORKID, 70 71 TAG_NUM_OF_ITEM_TYPES 72 }; 73 74 /** 75 * An array of strings, which map the #TagType to its machine 76 * readable name (specific to the MPD protocol). 77 */ 78 extern const char *const tag_item_names[]; 79 80 #endif 81