aboutsummaryrefslogtreecommitdiffstats
path: root/src/locate.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-24 14:52:05 +0100
committerMax Kellermann <max@duempel.org>2009-01-24 14:52:05 +0100
commit53e712aca40d631bd26a2af4c0731aa8924cde5b (patch)
tree22654ae1cc2cfc2ef72c9fba38c8639064090ae8 /src/locate.h
parent627d590ce524faf7ec197c54e65076107af27fe9 (diff)
downloadmpd-53e712aca40d631bd26a2af4c0731aa8924cde5b.tar.gz
mpd-53e712aca40d631bd26a2af4c0731aa8924cde5b.tar.xz
mpd-53e712aca40d631bd26a2af4c0731aa8924cde5b.zip
locate: renamed LocateTagItem to "struct locate_item"
No CamelCase and no typedefs.
Diffstat (limited to 'src/locate.h')
-rw-r--r--src/locate.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/locate.h b/src/locate.h
index fbcc8831d..3ae70ceab 100644
--- a/src/locate.h
+++ b/src/locate.h
@@ -27,31 +27,33 @@
struct song;
/* struct used for search, find, list queries */
-typedef struct _LocateTagItem {
+struct locate_item {
int8_t tagType;
/* what we are looking for */
char *needle;
-} LocateTagItem;
+};
int getLocateTagItemType(const char *str);
/* returns NULL if not a known type */
-LocateTagItem *newLocateTagItem(const char *typeString, const char *needle);
+struct locate_item *
+newLocateTagItem(const char *typeString, const char *needle);
/* return number of items or -1 on error */
-int newLocateTagItemArrayFromArgArray(char *argArray[], int numArgs,
- LocateTagItem ** arrayRet);
+int
+newLocateTagItemArrayFromArgArray(char *argArray[], int numArgs,
+ struct locate_item **arrayRet);
-void freeLocateTagItemArray(int count, LocateTagItem * array);
+void freeLocateTagItemArray(int count, struct locate_item *array);
-void freeLocateTagItem(LocateTagItem * item);
+void freeLocateTagItem(struct locate_item *item);
int
strstrSearchTags(const struct song *song, int numItems,
- const LocateTagItem * items);
+ const struct locate_item *items);
int
tagItemsFoundAndMatches(const struct song *song, int numItems,
- const LocateTagItem * items);
+ const struct locate_item *items);
#endif