From 53e712aca40d631bd26a2af4c0731aa8924cde5b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 24 Jan 2009 14:52:05 +0100 Subject: locate: renamed LocateTagItem to "struct locate_item" No CamelCase and no typedefs. --- src/locate.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/locate.h') 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 -- cgit v1.2.3