|
|
|
@@ -35,6 +35,22 @@ |
|
|
|
|
|
|
|
#define AVIO_SEEKABLE_NORMAL 0x0001 /**< Seeking works like for a local file */ |
|
|
|
|
|
|
|
/** |
|
|
|
* Callback for checking whether to abort blocking functions. |
|
|
|
* AVERROR_EXIT is returned in this case by the interrupted |
|
|
|
* function. During blocking operations, callback is called with |
|
|
|
* opaque as parameter. If the callback returns 1, the |
|
|
|
* blocking operation will be aborted. |
|
|
|
* |
|
|
|
* No members can be added to this struct without a major bump, if |
|
|
|
* new elements have been added after this struct in AVFormatContext |
|
|
|
* or AVIOContext. |
|
|
|
*/ |
|
|
|
typedef struct { |
|
|
|
int (*callback)(void*); |
|
|
|
void *opaque; |
|
|
|
} AVIOInterruptCB; |
|
|
|
|
|
|
|
/** |
|
|
|
* Bytestream IO Context. |
|
|
|
* New fields can be added to the end with minor version bumps. |
|
|
|
@@ -109,6 +125,7 @@ typedef struct URLContext { |
|
|
|
void *priv_data; |
|
|
|
char *filename; /**< specified URL */ |
|
|
|
int is_connected; |
|
|
|
AVIOInterruptCB interrupt_callback; |
|
|
|
} URLContext; |
|
|
|
|
|
|
|
#define URL_PROTOCOL_FLAG_NESTED_SCHEME 1 /*< The protocol name can be the first part of a nested protocol scheme */ |
|
|
|
|