Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

moved enum mpd_TagItems to mpd/tag.h

  • Loading branch information...
commit 07e08712ce913eb5eda6a190908b3ab7dee01a0e 1 parent 6dc7580
@MaxKellermann MaxKellermann authored
Showing with 56 additions and 18 deletions.
  1. +1 −0  Makefile.am
  2. +1 −18 include/mpd/client.h
  3. +54 −0 include/mpd/tag.h
View
1  Makefile.am
@@ -17,6 +17,7 @@ mpdinclude_HEADERS = \
include/mpd/send.h \
include/mpd/status.h \
include/mpd/stats.h \
+ include/mpd/tag.h \
include/mpd/output.h \
include/mpd/return_element.h \
include/mpd/song.h
View
19 include/mpd/client.h
@@ -38,6 +38,7 @@
#include <mpd/command.h>
#include <mpd/song.h>
#include <mpd/directory.h>
+#include <mpd/tag.h>
#ifdef WIN32
# define __W32API_USE_DLLIMPORT__ 1
@@ -47,24 +48,6 @@
extern "C" {
#endif
-typedef enum mpd_TagItems
-{
- MPD_TAG_ITEM_ARTIST,
- MPD_TAG_ITEM_ALBUM,
- MPD_TAG_ITEM_TITLE,
- MPD_TAG_ITEM_TRACK,
- MPD_TAG_ITEM_NAME,
- MPD_TAG_ITEM_GENRE,
- MPD_TAG_ITEM_DATE,
- MPD_TAG_ITEM_COMPOSER,
- MPD_TAG_ITEM_PERFORMER,
- MPD_TAG_ITEM_COMMENT,
- MPD_TAG_ITEM_DISC,
- MPD_TAG_ITEM_FILENAME,
- MPD_TAG_ITEM_ANY,
- MPD_TAG_NUM_OF_ITEM_TYPES
-} mpd_TagItems;
-
extern const char *const mpdTagItemKeys[MPD_TAG_NUM_OF_ITEM_TYPES];
/* PLAYLISTFILE STUFF */
View
54 include/mpd/tag.h
@@ -0,0 +1,54 @@
+/* libmpdclient
+ (c) 2003-2009 The Music Player Daemon Project
+ This project's homepage is: http://www.musicpd.org
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ - Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ - Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ - Neither the name of the Music Player Daemon nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+#ifndef LIBMPDCLIENT_TAG_H
+#define LIBMPDCLIENT_TAG_H
+
+typedef enum mpd_TagItems
+{
+ MPD_TAG_ITEM_ARTIST,
+ MPD_TAG_ITEM_ALBUM,
+ MPD_TAG_ITEM_TITLE,
+ MPD_TAG_ITEM_TRACK,
+ MPD_TAG_ITEM_NAME,
+ MPD_TAG_ITEM_GENRE,
+ MPD_TAG_ITEM_DATE,
+ MPD_TAG_ITEM_COMPOSER,
+ MPD_TAG_ITEM_PERFORMER,
+ MPD_TAG_ITEM_COMMENT,
+ MPD_TAG_ITEM_DISC,
+ MPD_TAG_ITEM_FILENAME,
+ MPD_TAG_ITEM_ANY,
+ MPD_TAG_NUM_OF_ITEM_TYPES
+} mpd_TagItems;
+
+#endif
Please sign in to comment.
Something went wrong with that request. Please try again.