From d562ba5fbbe117585eaade40a8e9c6ef1bf7ca1f 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. --- src/song_print.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/song_print.c') diff --git a/src/song_print.c b/src/song_print.c index 647e6d594..cfd6a7357 100644 --- a/src/song_print.c +++ b/src/song_print.c @@ -17,12 +17,14 @@ */ #include "song_print.h" +#include "song.h" #include "songvec.h" #include "directory.h" #include "tag_print.h" #include "client.h" -void song_print_url(struct client *client, Song * song) +void +song_print_url(struct client *client, struct song *song) { if (song->parentDir && song->parentDir->path) { client_printf(client, "%s%s/%s\n", SONG_FILE, @@ -32,7 +34,8 @@ void song_print_url(struct client *client, Song * song) } } -int song_print_info(struct client *client, Song * song) +int +song_print_info(struct client *client, struct song *song) { song_print_url(client, song); @@ -43,7 +46,7 @@ int song_print_info(struct client *client, Song * song) } static int -song_print_info_x(Song *song, void *data) +song_print_info_x(struct song *song, void *data) { struct client *client = data; return song_print_info(client, song); -- cgit v1.2.3