From 56e69975c0998e3d134865062f90d71fde8208d8 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Tue, 5 Aug 2008 21:50:54 +0200 Subject: - Abstract out the methods listing artists and genre into their own functions. - Use a format string in mp3_list to determine what type of arguments to be bound to the sqlite3 statement. This got a bit uglier than expected, so it may be removed later. But it's the best we've got for now. This revision have not been tested to work. --- include/mp3fs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mp3fs.h b/include/mp3fs.h index 816af61..4be9c44 100644 --- a/include/mp3fs.h +++ b/include/mp3fs.h @@ -24,7 +24,9 @@ struct filler_data { fuse_fill_dir_t filler; }; -void mp3_list(int, struct filler_data *, char *); +void mp3_list(int, struct filler_data *, const char *, const char *, ...); +void mp3_list_artist(char *, struct filler_data *); +void mp3_list_genre(char *, struct filler_data *); char *mp3_gettoken(const char *, int); int mp3_numtoken(const char *); #endif -- cgit v1.2.3