From 79e8abb461fa848cce3717333ee5cfa55ee91c71 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Oct 2008 10:49:11 +0200 Subject: 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 ] --- src/songvec.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/songvec.h') diff --git a/src/songvec.h b/src/songvec.h index dbe6be508..341c404c7 100644 --- a/src/songvec.h +++ b/src/songvec.h @@ -5,20 +5,21 @@ #include "os_compat.h" struct songvec { - Song **base; + struct mpd_song **base; size_t nr; }; void songvec_sort(struct songvec *sv); -Song *songvec_find(struct songvec *sv, const char *url); +struct mpd_song *songvec_find(struct songvec *sv, const char *url); -int songvec_delete(struct songvec *sv, const Song *del); +int songvec_delete(struct songvec *sv, const struct mpd_song *del); -void songvec_add(struct songvec *sv, Song *add); +void songvec_add(struct songvec *sv, struct mpd_song *add); void songvec_destroy(struct songvec *sv); -int songvec_for_each(struct songvec *sv, int (*fn)(Song *, void *), void *arg); +int songvec_for_each(struct songvec *sv, + int (*fn)(struct mpd_song *, void *), void *arg); #endif /* SONGVEC_H */ -- cgit v1.2.3