From 535cf5b5c95ab4f26baaabb228a72eebc1cba9c5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 24 Jan 2009 15:27:05 +0100 Subject: locate: use bool instead of int Use the C99 bool type instead of integer values (1/0 or 0/-1). --- src/locate.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/locate.h') 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 +#include #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); -- cgit v1.2.3