diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/mnode.h | 1 | ||||
| -rw-r--r-- | include/mp3fs.h | 11 |
2 files changed, 11 insertions, 1 deletions
diff --git a/include/mnode.h b/include/mnode.h index 891ad3d..ff27eb7 100644 --- a/include/mnode.h +++ b/include/mnode.h @@ -1,5 +1,6 @@ #ifndef _MP3NODE_H_ #define _MP3NODE_H_ +#include <queue.h> struct TagLib_File; struct mnode { diff --git a/include/mp3fs.h b/include/mp3fs.h index 5d17726..a8593e2 100644 --- a/include/mp3fs.h +++ b/include/mp3fs.h @@ -5,7 +5,7 @@ struct collection; struct mnode; int mp3_run(int, char **); -struct collection *mp3_initscan(void); +void mp3_initscan(char *); /* * Data passed to traverse function pointers.' */ @@ -26,4 +26,13 @@ traverse_fn_t mp3_scan; * Functions performing queries on the collection. */ struct collection *mp3_select(char *, char *, char *); + +/* + * Use a selection to input a certain tag field into a filler. + */ +/* XXX: no need to use bitmask since we only need one field at a time? */ +#define FILTER_ARTIST 0 +#define FILTER_GENRE 1 +#define FILTER_TITLE 2 +void mp3_filter(struct collection *, int, struct filler_data *); #endif |
