aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmpdclient.h
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2005-06-16 21:08:59 +0000
committerKalle Wallin <kaw@linux.se>2005-06-16 21:08:59 +0000
commite4c13d522d7a417f1c42c9d4587f423530bc3ca7 (patch)
tree7afbcce0402a252e31ddc05a0fc32950a59c9f68 /src/libmpdclient.h
parentaa11ee4b0f6b186c0beca5b6bc1f818cebe981f5 (diff)
downloadmpd-e4c13d522d7a417f1c42c9d4587f423530bc3ca7.tar.gz
mpd-e4c13d522d7a417f1c42c9d4587f423530bc3ca7.tar.xz
mpd-e4c13d522d7a417f1c42c9d4587f423530bc3ca7.zip
Test new search functionality with qball's version of libmpdclient
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3360 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/libmpdclient.h33
1 files changed, 32 insertions, 1 deletions
diff --git a/src/libmpdclient.h b/src/libmpdclient.h
index 79a94d8ee..dbbd1019e 100644
--- a/src/libmpdclient.h
+++ b/src/libmpdclient.h
@@ -35,7 +35,7 @@
#define LIBMPDCLIENT_H
#include <sys/time.h>
-
+#include <stdarg.h>
#define MPD_BUFFER_MAX_LENGTH 50000
#define MPD_WELCOME_MESSAGE "OK MPD "
@@ -71,6 +71,26 @@
extern "C" {
#endif
+
+enum
+{
+ 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_FILENAME,
+ MPD_TAG_NUM_OF_ITEM_TYPES
+}mpd_TagItems;
+
+
+extern char * mpdTagItemKeys[MPD_TAG_NUM_OF_ITEM_TYPES];
+
/* internal stuff don't touch this struct */
typedef struct _mpd_ReturnElement {
char * name;
@@ -388,21 +408,32 @@ void mpd_sendSearchCommand(mpd_Connection * connection, int table,
void mpd_sendFindCommand(mpd_Connection * connection, int table,
const char * str);
+
+void mpd_sendSearchTagCommand(mpd_Connection *connection, ...);
+void mpd_sendFindTagCommand(mpd_Connection *connection, ...);
+void mpd_sendVSearchTagCommand(mpd_Connection *connection, va_list arglist);
+void mpd_sendVFindTagCommand(mpd_Connection *connection, va_list arglist);
/* LIST TAG COMMANDS */
/* use this function fetch next artist entry, be sure to free the returned
* string. NULL means there are no more. Best used with sendListArtists
*/
+
char * mpd_getNextArtist(mpd_Connection * connection);
char * mpd_getNextAlbum(mpd_Connection * connection);
+char * mpd_getNextTag(mpd_Connection *connection, int table);
+
/* list artist or albums by artist, arg1 should be set to the artist if
* listing albums by a artist, otherwise NULL for listing all artists or albums
*/
void mpd_sendListCommand(mpd_Connection * connection, int table,
const char * arg1);
+void mpd_sendListTagCommand(mpd_Connection * connection, int table,...);
+void mpd_sendVListTagCommand(mpd_Connection * connection,int ret_table, va_list arglist);
+
/* SIMPLE COMMANDS */
void mpd_sendAddCommand(mpd_Connection * connection, const char * file);