aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-16 19:11:39 +0200
committerMax Kellermann <max@duempel.org>2008-09-16 19:11:39 +0200
commitac9b642dde4c63f35936d19ed937481bc73f8db4 (patch)
tree377cc9e6a412172389897e5922aefc384c05b3d9 /src/song.h
parent8135d7dbf86043fb5f4e960ef4d976e4908631f3 (diff)
downloadmpd-ac9b642dde4c63f35936d19ed937481bc73f8db4.tar.gz
mpd-ac9b642dde4c63f35936d19ed937481bc73f8db4.tar.xz
mpd-ac9b642dde4c63f35936d19ed937481bc73f8db4.zip
song: use struct mpd_song
Use a forward declared struct mpd_song instead of the typedef mpd_Song.
Diffstat (limited to 'src/song.h')
-rw-r--r--src/song.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/song.h b/src/song.h
index e618a47de..e3ad7e959 100644
--- a/src/song.h
+++ b/src/song.h
@@ -41,7 +41,7 @@
/* mpd_Song
* for storing song info returned by mpd
*/
-typedef struct _mpd_Song {
+typedef struct mpd_song {
/* filename of song */
char * file;
/* artist, maybe NULL if there is no tag */
@@ -85,17 +85,17 @@ typedef struct _mpd_Song {
* use mpd_freeSong to free the memory for the mpd_Song, it will also
* free memory for file, artist, etc, so don't do it yourself
*/
-mpd_Song * mpd_newSong(void);
+struct mpd_song *mpd_newSong(void);
/* mpd_freeSong
* use to free memory allocated by mpd_newSong
* also it will free memory pointed to by file, artist, etc, so be careful
*/
-void mpd_freeSong(mpd_Song * song);
+void mpd_freeSong(struct mpd_song *song);
/* mpd_songDup
* works like strDup, but for a mpd_Song
*/
-mpd_Song * mpd_songDup(const mpd_Song * song);
+struct mpd_song *mpd_songDup(const struct mpd_song *song);
#endif