diff options
Diffstat (limited to 'stream/stream.h')
-rw-r--r-- | stream/stream.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h index 2c78a35959..c127860ceb 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -48,6 +48,9 @@ #define STREAM_ORIGIN_MASK (7 << 2) // for extracting origin value from flags +#define STREAM_LOCAL_FS_ONLY (1 << 5) // stream_file only, no URLs +#define STREAM_LESS_NOISE (1 << 6) // try to log errors only + // end flags for stream_open_ext (the naming convention sucks) #define STREAM_UNSAFE -3 @@ -109,6 +112,7 @@ typedef struct stream_info_st { int (*open2)(struct stream *st, struct stream_open_args *args); const char *const *protocols; bool can_write; // correctly checks for READ/WRITE modes + bool local_fs; // supports STREAM_LOCAL_FS_ONLY int stream_origin; // 0 or set of STREAM_ORIGIN_*; if 0, the same origin // is set, or the stream's open() function handles it } stream_info_t; @@ -218,6 +222,7 @@ struct bstr stream_read_complete(struct stream *s, void *talloc_ctx, int max_size); struct bstr stream_read_file(const char *filename, void *talloc_ctx, struct mpv_global *global, int max_size); + int stream_control(stream_t *s, int cmd, void *arg); void free_stream(stream_t *s); |