aboutsummaryrefslogtreecommitdiffstats
path: root/src/locate.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-24 15:27:05 +0100
committerMax Kellermann <max@duempel.org>2009-01-24 15:27:05 +0100
commit535cf5b5c95ab4f26baaabb228a72eebc1cba9c5 (patch)
tree11a6183dac20de77095d7d9b52b8bd5047d3d62d /src/locate.h
parent3582977e01d19556dcc7e44a6b71628a9f0a1d02 (diff)
downloadmpd-535cf5b5c95ab4f26baaabb228a72eebc1cba9c5.tar.gz
mpd-535cf5b5c95ab4f26baaabb228a72eebc1cba9c5.tar.xz
mpd-535cf5b5c95ab4f26baaabb228a72eebc1cba9c5.zip
locate: use bool instead of int
Use the C99 bool type instead of integer values (1/0 or 0/-1).
Diffstat (limited to 'src/locate.h')
-rw-r--r--src/locate.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/locate.h b/src/locate.h
index 92bedd90e..7442cb3a3 100644
--- a/src/locate.h
+++ b/src/locate.h
@@ -20,6 +20,7 @@
#define MPD_LOCATE_H
#include <stdint.h>
+#include <stdbool.h>
#define LOCATE_TAG_FILE_TYPE TAG_NUM_OF_ITEM_TYPES+10
#define LOCATE_TAG_ANY_TYPE TAG_NUM_OF_ITEM_TYPES+20
@@ -50,11 +51,11 @@ locate_item_list_free(int count, struct locate_item *array);
void
locate_item_free(struct locate_item *item);
-int
+bool
locate_song_search(const struct song *song, int numItems,
const struct locate_item *items);
-int
+bool
locate_song_match(const struct song *song, int numItems,
const struct locate_item *items);