diff options
author | Kjetil Ørbekk <orbekk@pvv.ntnu.no> | 2008-08-12 15:04:55 +0200 |
---|---|---|
committer | Kjetil Ørbekk <orbekk@pvv.ntnu.no> | 2008-08-12 21:42:56 +0200 |
commit | b401c0765b296f2660550592cd4bd043f5f8203b (patch) | |
tree | 77a6a8ba451282ff9f4b68b210cf934ff0f16253 /include | |
parent | b4bb0a2ce7f9edd8de508432d17bc165fb108b63 (diff) |
- Restructured mp3_getattr
Diffstat (limited to 'include')
-rw-r--r-- | include/mp3fs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mp3fs.h b/include/mp3fs.h index adc41db..4ecb6c8 100644 --- a/include/mp3fs.h +++ b/include/mp3fs.h @@ -35,6 +35,8 @@ struct file_data { #define LIST_DATATYPE_STRING 1 #define LIST_DATATYPE_INT 2 +enum mp3_filetype { MP3_NOTFOUND, MP3_FILE, MP3_DIRECTORY }; + /* A lookup functions returns 0 if it's finished. */ typedef int lookup_fn_t(void *, const char *); /* Lookup function listing each row. */ @@ -57,4 +59,5 @@ char *mp3_gettoken(const char *, int); int mp3_numtoken(const char *); int mp3_file_data_for_path(const char *, void *); +enum mp3_filetype mp3_get_filetype(const char *); #endif |