avio: Add an URLProtocol flag for indicating that a protocol uses network
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>
This commit is contained in:
@@ -565,6 +565,7 @@ URLProtocol ff_http_protocol = {
|
||||
.url_get_file_handle = http_get_file_handle,
|
||||
.priv_data_size = sizeof(HTTPContext),
|
||||
.priv_data_class = &http_context_class,
|
||||
.flags = URL_PROTOCOL_FLAG_NETWORK,
|
||||
};
|
||||
#endif
|
||||
#if CONFIG_HTTPS_PROTOCOL
|
||||
@@ -578,6 +579,7 @@ URLProtocol ff_https_protocol = {
|
||||
.url_get_file_handle = http_get_file_handle,
|
||||
.priv_data_size = sizeof(HTTPContext),
|
||||
.priv_data_class = &https_context_class,
|
||||
.flags = URL_PROTOCOL_FLAG_NETWORK,
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -693,5 +695,6 @@ URLProtocol ff_httpproxy_protocol = {
|
||||
.url_close = http_proxy_close,
|
||||
.url_get_file_handle = http_get_file_handle,
|
||||
.priv_data_size = sizeof(HTTPContext),
|
||||
.flags = URL_PROTOCOL_FLAG_NETWORK,
|
||||
};
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user