diff options
author | Ulf Lilleengen <lulf@nobby.studby.ntnu.no> | 2008-08-03 20:57:48 +0200 |
---|---|---|
committer | Ulf Lilleengen <lulf@nobby.studby.ntnu.no> | 2008-08-03 20:57:48 +0200 |
commit | 1304f27adbc3c4dd3b34f0a91b8ccb02c8d66c01 (patch) | |
tree | 10e85f8e2e46990da5d714438dbd5715c36af9ce /include | |
parent | bd55a14447d53fef7e50797ed830b2d12f8ad334 (diff) |
- Correct typo in db schema.
- Add mp3_list which given a query and a field number, prints out values from
the query.
Diffstat (limited to 'include')
-rw-r--r-- | include/mp3fs.h | 18 |
1 files changed, 10 insertions, 8 deletions
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 |