diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2007-03-31 18:43:16 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2007-03-31 18:43:16 +0000 |
commit | e3e4964f59ab9201a8ee686f898dc68df3fe416d (patch) | |
tree | 48627dd6b666873efafd305c87041876184bf4e8 /src/tag.c | |
parent | 2215c1796d68f680fa92631eeb745a4af8ca5fde (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.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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; |