summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUlf Lilleengen <lulf@carrot.studby.ntnu.no>2008-08-09 16:19:57 +0200
committerUlf Lilleengen <lulf@carrot.studby.ntnu.no>2008-08-09 16:19:57 +0200
commit5fabb4d6e75806729a710673b7657df2b440c801 (patch)
treea51171927490b5b0b9d7bd5428480d3d77eb33c8 /include
parent64e1a2a9e5cc03d234fa4cf1a3577dcf84e5e22e (diff)
- Change lookup_fn to return values, so we can stop the lookup_finish loop on
the SQL results.
Diffstat (limited to 'include')
-rw-r--r--include/mp3fs.h3
1 files changed, 2 insertions, 1 deletions
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. */