aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 11:03:39 +0200
committerMax Kellermann <max@duempel.org>2008-10-08 11:03:39 +0200
commitb084bc28ede5d397e88a4e2bdad8c07a55069589 (patch)
treed61d58cc73ed7d591df05fee2f4a48682e8d9c8c /src/playlist.h
parent71351160b1b6fd4203f27f9159ae39a476483e1a (diff)
downloadmpd-b084bc28ede5d397e88a4e2bdad8c07a55069589.tar.gz
mpd-b084bc28ede5d397e88a4e2bdad8c07a55069589.tar.xz
mpd-b084bc28ede5d397e88a4e2bdad8c07a55069589.zip
use the "bool" data type instead of "int"
"bool" should be used in C99 programs for boolean values.
Diffstat (limited to '')
-rw-r--r--src/playlist.h15
1 files changed, 8 insertions, 7 deletions
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 <stdbool.h>
#include <stdio.h>
#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);