summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-10-25 21:16:35 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-10-25 21:16:35 +0100
commit1205684e301f998f26a1dc8828e1f628ef0160f6 (patch)
tree3347a4cfab6edd8432c91c4f33d96564078e887c /deadbeef.h
parent3e5687aef0a52ee3e500741f4623145a351d41dd (diff)
added vfs filetype detection based on content-type
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/deadbeef.h b/deadbeef.h
index e10029d5..3b8c1552 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -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;