summaryrefslogtreecommitdiff
path: root/libavformat/avio.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-04-07 19:17:55 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-08 07:07:58 +0200
commit026e175775cd9355067e9ff93fb6df3f64b365c2 (patch)
tree8cba1b6f5d827ae574b6df07c7b24e02bebbbaa2 /libavformat/avio.c
parenta2031251c7eedd0d82cb9e08717990fa2ae6299f (diff)
avio: deprecate the typedef for URLInterruptCB
There's no particular reason to pollute the namespace with a typedef for it.
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r--libavformat/avio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c
index 1d40da67ee..e043058974 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -49,7 +49,7 @@ static const AVClass urlcontext_class =
static int default_interrupt_cb(void);
URLProtocol *first_protocol = NULL;
-URLInterruptCB *url_interrupt_cb = default_interrupt_cb;
+int (*url_interrupt_cb)(void) = default_interrupt_cb;
URLProtocol *av_protocol_next(URLProtocol *p)
{
@@ -389,7 +389,7 @@ static int default_interrupt_cb(void)
return 0;
}
-void avio_set_interrupt_cb(URLInterruptCB *interrupt_cb)
+void avio_set_interrupt_cb(int (*interrupt_cb)(void))
{
if (!interrupt_cb)
interrupt_cb = default_interrupt_cb;