From c4a090ddb564b87fd9d6d4f83e0f134a77c96007 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sun, 6 Nov 2011 22:10:21 +0200 Subject: avio: Add an internal utility function for checking the new interrupt callback Signed-off-by: Anton Khirnov --- libavformat/url.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavformat/url.h') diff --git a/libavformat/url.h b/libavformat/url.h index c0f532278f..de10033710 100644 --- a/libavformat/url.h +++ b/libavformat/url.h @@ -170,6 +170,12 @@ int ffurl_get_file_handle(URLContext *h); */ int ffurl_register_protocol(URLProtocol *protocol, int size); +/** + * Check if the user has requested to interrup a blocking function + * associated with cb. + */ +int ff_check_interrupt(AVIOInterruptCB *cb); + /* udp.c */ int ff_udp_set_remote_url(URLContext *h, const char *uri); int ff_udp_get_local_port(URLContext *h); -- cgit v1.2.3