It is only used in commented-out (and nonworking) code in async.c.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
/*
* test normal read
*/
- ret = ffurl_open(&h, "async:async-test:", AVIO_FLAG_READ, NULL, NULL);
+ ret = ffurl_open_whitelist(&h, "async:async-test:", AVIO_FLAG_READ,
+ NULL, NULL, NULL, NULL, NULL);
printf("open: %d\n", ret);
size = ffurl_size(h);
*/
ffurl_close(h);
av_dict_set_int(&opts, "async-test-read-error", -10000, 0);
- ret = ffurl_open(&h, "async:async-test:", AVIO_FLAG_READ, NULL, &opts);
+ ret = ffurl_open_whitelist(&h, "async:async-test:", AVIO_FLAG_READ,
+ NULL, &opts, NULL, NULL, NULL);
printf("open: %d\n", ret);
ret = ffurl_read(h, buf, 1);
return ret;
}
-int ffurl_open(URLContext **puc, const char *filename, int flags,
- const AVIOInterruptCB *int_cb, AVDictionary **options)
-{
- return ffurl_open_whitelist(puc, filename, flags,
- int_cb, options, NULL, NULL, NULL);
-}
-
static inline int retry_transfer_wrapper(URLContext *h, uint8_t *buf,
int size, int size_min,
int (*transfer_func)(URLContext *h,
int (*url_open)( URLContext *h, const char *url, int flags);
/**
* This callback is to be used by protocols which open further nested
- * protocols. options are then to be passed to ffurl_open()/ffurl_connect()
- * for those nested protocols.
+ * protocols. options are then to be passed to ffurl_open_whitelist()
+ * or ffurl_connect() for those nested protocols.
*/
int (*url_open2)(URLContext *h, const char *url, int flags, AVDictionary **options);
int (*url_accept)(URLContext *s, URLContext **c);
const char *whitelist, const char* blacklist,
URLContext *parent);
-int ffurl_open(URLContext **puc, const char *filename, int flags,
- const AVIOInterruptCB *int_cb, AVDictionary **options);
-
/**
* Accept an URLContext c on an URLContext s
*