summaryrefslogtreecommitdiff
path: root/vfs_stdio.c
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 /vfs_stdio.c
parent3e5687aef0a52ee3e500741f4623145a351d41dd (diff)
added vfs filetype detection based on content-type
Diffstat (limited to 'vfs_stdio.c')
-rw-r--r--vfs_stdio.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/vfs_stdio.c b/vfs_stdio.c
index 62fb1bee..d98002bd 100644
--- a/vfs_stdio.c
+++ b/vfs_stdio.c
@@ -88,6 +88,11 @@ stdio_getlength (DB_FILE *stream) {
return sz;
}
+const char *
+stdio_get_content_type (DB_FILE *stream) {
+ return NULL;
+}
+
// standard stdio vfs
static DB_vfs_t plugin = {
DB_PLUGIN_SET_API_VERSION
@@ -106,6 +111,7 @@ static DB_vfs_t plugin = {
.tell = stdio_tell,
.rewind = stdio_rewind,
.getlength = stdio_getlength,
+ .get_content_type = stdio_get_content_type,
.scheme_names = NULL // this is NULL because that's a fallback vfs, used when no other matching vfs plugin found
};
@@ -114,3 +120,4 @@ stdio_load (DB_functions_t *api) {
deadbeef = api;
return DB_PLUGIN (&plugin);
}
+