summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-01-31 22:20:57 +0100
committerGravatar waker <wakeroid@gmail.com>2011-01-31 22:20:57 +0100
commit0af105f3e8deb6aba0297f6b51b2d1c57a52d2a8 (patch)
treeee0c1ade8a2fd41f92bdff96fd5cf82088ea32be /deadbeef.h
parentfec8a409dc51f5bab8ad7af03bb740425e3fca9f (diff)
improved/finalized new vfs scandir API
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/deadbeef.h b/deadbeef.h
index 49abfdee..3ccb5283 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -822,13 +822,13 @@ typedef struct DB_vfs_s {
DB_plugin_t plugin;
// capabilities
- const char **(*get_schemes) (void); // NULL-terminated list of supported schemes, e.g. {"http", "ftp", NULL}; can be NULL
+ const char **(*get_schemes) (void); // NULL-terminated list of supported schemes, e.g. {"http://", "ftp://", NULL}; can be NULL
const char **(*get_container_extensions) (void); // NULL-terminated list of supported container files, e.g. { "zip", NULL }; can be NULL
int (*is_streaming) (void); // return 1 if the plugin streaming data over slow connection, e.g. http; plugins will avoid scanning entire files if this is the case
- const char * (*is_container) (const char *fname); // should return scheme name, if the file is supported container format. "zip" is an example
+ int (*is_container) (const char *fname); // should return 1 if this plugin can parse specified file
// this is an evil hack to interrupt frozen vfs_curl streams
// FIXME: pass it through command API
@@ -841,7 +841,7 @@ typedef struct DB_vfs_s {
int (*seek) (DB_FILE *stream, int64_t offset, int whence);
int64_t (*tell) (DB_FILE *stream);
void (*rewind) (DB_FILE *stream);
- int64_t (*getlength)(DB_FILE *stream);
+ int64_t (*getlength) (DB_FILE *stream);
// should return mime-type of a stream, if known; can be NULL
const char * (*get_content_type) (DB_FILE *stream);