summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-01-04 13:47:12 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-01-04 13:47:12 +0100
commit226f1af1a67221ca383c5ac9f8678f2e036a01ad (patch)
treee1d45b6fa11af33887429e2095c2540223382df9 /deadbeef.h
parent227553719dbe3aa3db7cde81e8071e7d6c4b11ee (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.h9
1 files changed, 8 insertions, 1 deletions
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