summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUlf Lilleengen <lulf@carrot.studby.ntnu.no>2008-08-05 21:50:54 +0200
committerUlf Lilleengen <lulf@carrot.studby.ntnu.no>2008-08-05 21:50:54 +0200
commit56e69975c0998e3d134865062f90d71fde8208d8 (patch)
treecba19d193b9154123c60ec2bf50a2cd304cd2820 /include
parentd96674123da3fb8e3d7b517c719512c69c249ba8 (diff)
- 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.
Diffstat (limited to 'include')
-rw-r--r--include/mp3fs.h4
1 files changed, 3 insertions, 1 deletions
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