diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-01-04 13:47:12 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-01-04 13:47:12 +0100 |
commit | 226f1af1a67221ca383c5ac9f8678f2e036a01ad (patch) | |
tree | e1d45b6fa11af33887429e2095c2540223382df9 /deadbeef.h | |
parent | 227553719dbe3aa3db7cde81e8071e7d6c4b11ee (diff) |
new API and vfs_zip patch, fixing bug #986, vfs.scandir not being able to handle pathes longer than 256 bytes because of dirent misuse
Diffstat (limited to 'deadbeef.h')
-rw-r--r-- | deadbeef.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1374,8 +1374,15 @@ typedef struct DB_vfs_s { // in icy protocol void (*set_track) (DB_FILE *f, DB_playItem_t *it); -// folder access, follows dirent API, and uses dirent data structures + // folder access, follows dirent API, and uses dirent data structures int (*scandir) (const char *dir, struct dirent ***namelist, int (*selector) (const struct dirent *), int (*cmp) (const struct dirent **, const struct dirent **)); + +#if (DDB_API_LEVEL >= 6) + // returns URI scheme for a given file name, e.g. "zip://" + // can be NULL + // can return NULL + const char *(*get_scheme_for_name) (const char *fname); +#endif } DB_vfs_t; // gui plugin |