summaryrefslogtreecommitdiff
path: root/src/tag.c
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-03-31 18:43:16 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-03-31 18:43:16 +0000
commite3e4964f59ab9201a8ee686f898dc68df3fe416d (patch)
tree48627dd6b666873efafd305c87041876184bf4e8 /src/tag.c
parent2215c1796d68f680fa92631eeb745a4af8ca5fde (diff)
Adding tagtypes command to list available tag types (takes metadata_to_use
into account). git-svn-id: https://svn.musicpd.org/mpd/trunk@5792 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tag.c b/src/tag.c
index 36edef793..8279eb06b 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -116,6 +116,16 @@ void initTagConfig(void)
free(temp);
}
+void printTagTypes(int fd)
+{
+ int i;
+
+ for (i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++) {
+ if (ignoreTagItems[i] == 0)
+ fdprintf(fd, "tagtype: %s\n", mpdTagItemKeys[i]);
+ }
+}
+
void printMpdTag(int fd, MpdTag * tag)
{
int i;