From b084bc28ede5d397e88a4e2bdad8c07a55069589 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Oct 2008 11:03:39 +0200 Subject: use the "bool" data type instead of "int" "bool" should be used in C99 programs for boolean values. --- src/playlist.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/playlist.h') diff --git a/src/playlist.h b/src/playlist.h index a5b340ddc..e50f57bc4 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -21,6 +21,7 @@ #include "locate.h" +#include #include #define PLAYLIST_FILE_SUFFIX "m3u" @@ -50,12 +51,12 @@ typedef struct _Playlist { int length; int current; int queued; - int repeat; - int random; + bool repeat; + bool random; uint32_t version; } Playlist; -extern int playlist_saveAbsolutePaths; +extern bool playlist_saveAbsolutePaths; extern int playlist_max_length; @@ -119,13 +120,13 @@ enum playlist_result swapSongsInPlaylistById(int id1, int id2); enum playlist_result loadPlaylist(struct client *client, const char *utf8file); -int getPlaylistRepeatStatus(void); +bool getPlaylistRepeatStatus(void); -void setPlaylistRepeatStatus(int status); +void setPlaylistRepeatStatus(bool status); -int getPlaylistRandomStatus(void); +bool getPlaylistRandomStatus(void); -void setPlaylistRandomStatus(int status); +void setPlaylistRandomStatus(bool status); int getPlaylistCurrentSong(void); -- cgit v1.2.3