This definition is in two files, since the definitions will move
to the private header at the next bump.
Signed-off-by: Martin Storsjö <martin@martin.st>
| ... | ... |
@@ -146,6 +146,7 @@ typedef struct URLContext {
|
| 146 | 146 |
} URLContext; |
| 147 | 147 |
|
| 148 | 148 |
#define URL_PROTOCOL_FLAG_NESTED_SCHEME 1 /*< The protocol name can be the first part of a nested protocol scheme */ |
| 149 |
+#define URL_PROTOCOL_FLAG_NETWORK 2 /*< The protocol uses network */ |
|
| 149 | 150 |
|
| 150 | 151 |
/** |
| 151 | 152 |
* @deprecated This struct is to be made private. Use the higher-level |
| ... | ... |
@@ -565,6 +565,7 @@ URLProtocol ff_http_protocol = {
|
| 565 | 565 |
.url_get_file_handle = http_get_file_handle, |
| 566 | 566 |
.priv_data_size = sizeof(HTTPContext), |
| 567 | 567 |
.priv_data_class = &http_context_class, |
| 568 |
+ .flags = URL_PROTOCOL_FLAG_NETWORK, |
|
| 568 | 569 |
}; |
| 569 | 570 |
#endif |
| 570 | 571 |
#if CONFIG_HTTPS_PROTOCOL |
| ... | ... |
@@ -578,6 +579,7 @@ URLProtocol ff_https_protocol = {
|
| 578 | 578 |
.url_get_file_handle = http_get_file_handle, |
| 579 | 579 |
.priv_data_size = sizeof(HTTPContext), |
| 580 | 580 |
.priv_data_class = &https_context_class, |
| 581 |
+ .flags = URL_PROTOCOL_FLAG_NETWORK, |
|
| 581 | 582 |
}; |
| 582 | 583 |
#endif |
| 583 | 584 |
|
| ... | ... |
@@ -693,5 +695,6 @@ URLProtocol ff_httpproxy_protocol = {
|
| 693 | 693 |
.url_close = http_proxy_close, |
| 694 | 694 |
.url_get_file_handle = http_get_file_handle, |
| 695 | 695 |
.priv_data_size = sizeof(HTTPContext), |
| 696 |
+ .flags = URL_PROTOCOL_FLAG_NETWORK, |
|
| 696 | 697 |
}; |
| 697 | 698 |
#endif |
| ... | ... |
@@ -162,6 +162,7 @@ URLProtocol ff_rtmp_protocol = {
|
| 162 | 162 |
.url_read_seek = rtmp_read_seek, |
| 163 | 163 |
.url_get_file_handle = rtmp_get_file_handle, |
| 164 | 164 |
.priv_data_size = sizeof(RTMP), |
| 165 |
+ .flags = URL_PROTOCOL_FLAG_NETWORK, |
|
| 165 | 166 |
}; |
| 166 | 167 |
|
| 167 | 168 |
URLProtocol ff_rtmpt_protocol = {
|
| ... | ... |
@@ -174,6 +175,7 @@ URLProtocol ff_rtmpt_protocol = {
|
| 174 | 174 |
.url_read_seek = rtmp_read_seek, |
| 175 | 175 |
.url_get_file_handle = rtmp_get_file_handle, |
| 176 | 176 |
.priv_data_size = sizeof(RTMP), |
| 177 |
+ .flags = URL_PROTOCOL_FLAG_NETWORK, |
|
| 177 | 178 |
}; |
| 178 | 179 |
|
| 179 | 180 |
URLProtocol ff_rtmpe_protocol = {
|
| ... | ... |
@@ -186,6 +188,7 @@ URLProtocol ff_rtmpe_protocol = {
|
| 186 | 186 |
.url_read_seek = rtmp_read_seek, |
| 187 | 187 |
.url_get_file_handle = rtmp_get_file_handle, |
| 188 | 188 |
.priv_data_size = sizeof(RTMP), |
| 189 |
+ .flags = URL_PROTOCOL_FLAG_NETWORK, |
|
| 189 | 190 |
}; |
| 190 | 191 |
|
| 191 | 192 |
URLProtocol ff_rtmpte_protocol = {
|
| ... | ... |
@@ -198,6 +201,7 @@ URLProtocol ff_rtmpte_protocol = {
|
| 198 | 198 |
.url_read_seek = rtmp_read_seek, |
| 199 | 199 |
.url_get_file_handle = rtmp_get_file_handle, |
| 200 | 200 |
.priv_data_size = sizeof(RTMP), |
| 201 |
+ .flags = URL_PROTOCOL_FLAG_NETWORK, |
|
| 201 | 202 |
}; |
| 202 | 203 |
|
| 203 | 204 |
URLProtocol ff_rtmps_protocol = {
|
| ... | ... |
@@ -210,4 +214,5 @@ URLProtocol ff_rtmps_protocol = {
|
| 210 | 210 |
.url_read_seek = rtmp_read_seek, |
| 211 | 211 |
.url_get_file_handle = rtmp_get_file_handle, |
| 212 | 212 |
.priv_data_size = sizeof(RTMP), |
| 213 |
+ .flags = URL_PROTOCOL_FLAG_NETWORK, |
|
| 213 | 214 |
}; |
| ... | ... |
@@ -33,6 +33,7 @@ |
| 33 | 33 |
|
| 34 | 34 |
#if !FF_API_OLD_AVIO |
| 35 | 35 |
#define URL_PROTOCOL_FLAG_NESTED_SCHEME 1 /*< The protocol name can be the first part of a nested protocol scheme */ |
| 36 |
+#define URL_PROTOCOL_FLAG_NETWORK 2 /*< The protocol uses network */ |
|
| 36 | 37 |
|
| 37 | 38 |
extern int (*url_interrupt_cb)(void); |
| 38 | 39 |
|