From 5fabb4d6e75806729a710673b7657df2b440c801 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Sat, 9 Aug 2008 16:19:57 +0200 Subject: - Change lookup_fn to return values, so we can stop the lookup_finish loop on the SQL results. --- include/mp3fs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mp3fs.h b/include/mp3fs.h index 4966aee..847f047 100644 --- a/include/mp3fs.h +++ b/include/mp3fs.h @@ -35,7 +35,8 @@ struct file_data { #define LIST_DATATYPE_STRING 1 #define LIST_DATATYPE_INT 2 -typedef void lookup_fn_t(void *, const char *); +/* A lookup functions returns 0 if it's finished. */ +typedef int lookup_fn_t(void *, const char *); /* Lookup function listing each row. */ lookup_fn_t mp3_lookup_list; /* Lookup function opening the first file match. */ -- cgit v1.2.3