From 1304f27adbc3c4dd3b34f0a91b8ccb02c8d66c01 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Sun, 3 Aug 2008 20:57:48 +0200 Subject: - Correct typo in db schema. - Add mp3_list which given a query and a field number, prints out values from the query. --- include/mp3fs.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'include') diff --git a/include/mp3fs.h b/include/mp3fs.h index cbb1537..f8c5c5c 100644 --- a/include/mp3fs.h +++ b/include/mp3fs.h @@ -2,18 +2,11 @@ #define _MP3FS_H_ struct fuse_args; -#define DBNAME "music.db" +#define DBNAME "/home/lulf/dev/mp3fs/music.db" int mp3_run(int, char **); int mp3_initscan(char *); -/* - * Data passed to traverse function pointers.' - */ -struct filler_data { - void *buf; - fuse_fill_dir_t filler; -}; /* * Functions traversing the underlying filesystem and do operations on the @@ -23,4 +16,13 @@ typedef void traverse_fn_t(char *); void traverse_hierarchy(char *, traverse_fn_t); traverse_fn_t mp3_scan; +/* + * Data passed to mp3_list. + */ +struct filler_data { + void *buf; + fuse_fill_dir_t filler; +}; + +void mp3_list(char *, int, struct filler_data *); #endif -- cgit v1.2.3