aboutsummaryrefslogtreecommitdiffstats
path: root/src/locate.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 10:49:11 +0200
committerEric Wong <normalperson@yhbt.net>2008-10-11 19:21:47 -0700
commit79e8abb461fa848cce3717333ee5cfa55ee91c71 (patch)
treef8c3cc49a2503ebedeedcdec71e2d2eb91e1db96 /src/locate.c
parentc84c73df00e5e1710d84fdb4be6352d849da8f2b (diff)
downloadmpd-79e8abb461fa848cce3717333ee5cfa55ee91c71.tar.gz
mpd-79e8abb461fa848cce3717333ee5cfa55ee91c71.tar.xz
mpd-79e8abb461fa848cce3717333ee5cfa55ee91c71.zip
song: converted typedef Song to struct song
Again, a data type which can be forward-declared. [ew: * used "struct mpd_song" instead to avoid token duplication (like I did with "struct mpd_tag") as there's no good abbreviation for "song" and identical tokens on the same line don't read well * rewritten using perl -i -p -e 's/\bSong\b/struct mpd_song/g' src/*.[ch] since it was too hard to merge * also, I don't care much for forward declarations ]
Diffstat (limited to 'src/locate.c')
-rw-r--r--src/locate.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/locate.c b/src/locate.c
index 6101dd95b..dfe1e2236 100644
--- a/src/locate.c
+++ b/src/locate.c
@@ -121,7 +121,8 @@ void freeLocateTagItem(LocateTagItem * item)
free(item);
}
-static int strstrSearchTag(Song * song, enum tag_type type, char *str)
+static int strstrSearchTag(struct mpd_song * song,
+ enum tag_type type, char *str)
{
int i;
char *duplicate;
@@ -166,7 +167,8 @@ static int strstrSearchTag(Song * song, enum tag_type type, char *str)
return ret;
}
-int strstrSearchTags(Song * song, int numItems, LocateTagItem * items)
+int
+strstrSearchTags(struct mpd_song * song, int numItems, LocateTagItem * items)
{
int i;
@@ -180,7 +182,8 @@ int strstrSearchTags(Song * song, int numItems, LocateTagItem * items)
return 1;
}
-static int tagItemFoundAndMatches(Song * song, enum tag_type type, char *str)
+static int
+tagItemFoundAndMatches(struct mpd_song * song, enum tag_type type, char *str)
{
int i;
int8_t visitedTypes[TAG_NUM_OF_ITEM_TYPES] = { 0 };
@@ -220,7 +223,8 @@ static int tagItemFoundAndMatches(Song * song, enum tag_type type, char *str)
}
-int tagItemsFoundAndMatches(Song * song, int numItems, LocateTagItem * items)
+int tagItemsFoundAndMatches(struct mpd_song * song,
+ int numItems, LocateTagItem * items)
{
int i;