summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-08 12:22:39 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-08 12:22:39 +0100
commit16f075f95d55466856cf7f3fdea2c503b2fcd7cf (patch)
treead8c457b89cd4b112b4720f186af2a26c6a037ca /deadbeef.h
parent9743e5efa30faa3eedaadc534d821a29ba41290e (diff)
now it's possible to interrupt hanging file operations (e.g. slow http)
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/deadbeef.h b/deadbeef.h
index 20fccd5d..b97de2e8 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -240,6 +240,7 @@ typedef struct {
const char *(*fget_content_type) (DB_FILE *stream);
const char *(*fget_content_name) (DB_FILE *stream);
const char *(*fget_content_genre) (DB_FILE *stream);
+ void (*fstop) (DB_FILE *stream);
// message passing
int (*sendmessage) (uint32_t id, uintptr_t ctx, uint32_t p1, uint32_t p2);
// configuration access
@@ -293,6 +294,7 @@ typedef struct DB_plugin_s {
} DB_plugin_t;
typedef struct {
+ DB_FILE *file;
int bps;
int channels;
int samplerate;
@@ -396,6 +398,7 @@ typedef struct DB_vfs_s {
int64_t (*tell) (DB_FILE *stream);
void (*rewind) (DB_FILE *stream);
int64_t (*getlength)(DB_FILE *stream);
+ void (*stop)(DB_FILE *stream);
const char * (*get_content_type) (DB_FILE *stream);
const char * (*get_content_name) (DB_FILE *stream);
const char * (*get_content_genre) (DB_FILE *stream);