| 348 | } |
| 349 | |
| 350 | int ffurl_alloc(URLContext **puc, const char *filename, int flags, |
| 351 | const AVIOInterruptCB *int_cb) |
| 352 | { |
| 353 | const URLProtocol *p = NULL; |
| 354 | |
| 355 | p = url_find_protocol(filename); |
| 356 | if (p) |
| 357 | return url_alloc_for_protocol(puc, p, filename, flags, int_cb); |
| 358 | |
| 359 | *puc = NULL; |
| 360 | return AVERROR_PROTOCOL_NOT_FOUND; |
| 361 | } |
| 362 | |
| 363 | int ffurl_open_whitelist(URLContext **puc, const char *filename, int flags, |
| 364 | const AVIOInterruptCB *int_cb, AVDictionary **options, |
no test coverage detected