From 226f1af1a67221ca383c5ac9f8678f2e036a01ad Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sat, 4 Jan 2014 13:47:12 +0100 Subject: 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 --- deadbeef.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'deadbeef.h') diff --git a/deadbeef.h b/deadbeef.h index 496766c4..f0357198 100644 --- a/deadbeef.h +++ b/deadbeef.h @@ -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 -- cgit v1.2.3