diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2007-02-24 00:54:54 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2007-02-24 00:54:54 +0000 |
commit | 1ae3bdb7e6d5a5c4135f6046be9259d6f716498a (patch) | |
tree | b8e70764ebecf56536c683f98ab3e13a140f60cd /src/dbUtils.h | |
parent | d7e20861d490cf0743f740cec3506fd3aca3d34b (diff) | |
download | mpd-1ae3bdb7e6d5a5c4135f6046be9259d6f716498a.tar.gz mpd-1ae3bdb7e6d5a5c4135f6046be9259d6f716498a.tar.xz mpd-1ae3bdb7e6d5a5c4135f6046be9259d6f716498a.zip |
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
Diffstat (limited to 'src/dbUtils.h')
-rw-r--r-- | src/dbUtils.h | 25 |
1 files changed, 1 insertions, 24 deletions
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 <stdio.h> -#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); |