From 1ae3bdb7e6d5a5c4135f6046be9259d6f716498a Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Sat, 24 Feb 2007 00:54:54 +0000 Subject: Moving a bunch of the LocateTagItem code to locate.[ch] so that it can later be used for playlist searching. git-svn-id: https://svn.musicpd.org/mpd/trunk@5419 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/dbUtils.h | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'src/dbUtils.h') diff --git a/src/dbUtils.h b/src/dbUtils.h index ebd4dcfba..632772023 100644 --- a/src/dbUtils.h +++ b/src/dbUtils.h @@ -21,30 +21,7 @@ #include -#include "tag.h" - -#define LOCATE_TAG_FILE_TYPE TAG_NUM_OF_ITEM_TYPES+10 -#define LOCATE_TAG_ANY_TYPE TAG_NUM_OF_ITEM_TYPES+20 - -/* struct used for search, find, list queries */ -typedef struct _LocateTagItem { - mpd_sint8 tagType; - /* what we are looking for */ - char *needle; -} LocateTagItem; - -int getLocateTagItemType(char *str); - -/* returns NULL if not a known type */ -LocateTagItem *newLocateTagItem(char *typeString, char *needle); - -/* return number of items or -1 on error */ -int newLocateTagItemArrayFromArgArray(char *argArray[], int numArgs, - LocateTagItem ** arrayRet); - -void freeLocateTagItemArray(int count, LocateTagItem * array); - -void freeLocateTagItem(LocateTagItem * item); +#include "locate.h" int printAllIn(int fd, char *name); -- cgit v1.2.3