diff options
author | 2009-10-25 21:16:35 +0100 | |
---|---|---|
committer | 2009-10-25 21:16:35 +0100 | |
commit | 1205684e301f998f26a1dc8828e1f628ef0160f6 (patch) | |
tree | 3347a4cfab6edd8432c91c4f33d96564078e887c /deadbeef.h | |
parent | 3e5687aef0a52ee3e500741f4623145a351d41dd (diff) |
added vfs filetype detection based on content-type
Diffstat (limited to 'deadbeef.h')
-rw-r--r-- | deadbeef.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -235,6 +235,7 @@ typedef struct { int64_t (*ftell) (DB_FILE *stream); void (*rewind) (DB_FILE *stream); int64_t (*fgetlength) (DB_FILE *stream); + const char *(*fget_content_type) (DB_FILE *stream); // message passing int (*sendmessage) (uint32_t id, uintptr_t ctx, uint32_t p1, uint32_t p2); // configuration access @@ -388,6 +389,7 @@ typedef struct DB_vfs_s { int64_t (*tell) (DB_FILE *stream); void (*rewind) (DB_FILE *stream); int64_t (*getlength)(DB_FILE *stream); + const char * (*get_content_type) (DB_FILE *stream); const char **scheme_names; // NULL-terminated list of supported schemes, e.g. {"http", "ftp", NULL} unsigned streaming : 1; } DB_vfs_t; |