summaryrefslogtreecommitdiff
path: root/libavformat/avio.h
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.h
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.h')
-rw-r--r--libavformat/avio.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index e9aa49991e..701f3fe66c 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -90,11 +90,9 @@ typedef struct URLPollEntry {
* silently ignored.
*/
#define URL_FLAG_NONBLOCK 4
-#endif
typedef int URLInterruptCB(void);
-#if FF_API_OLD_AVIO
/**
* @defgroup old_url_funcs Old url_* functions
* @deprecated use the buffered API based on AVIOContext instead
@@ -117,7 +115,7 @@ attribute_deprecated void url_get_filename(URLContext *h, char *buf, int buf_siz
attribute_deprecated int av_url_read_pause(URLContext *h, int pause);
attribute_deprecated int64_t av_url_read_seek(URLContext *h, int stream_index,
int64_t timestamp, int flags);
-attribute_deprecated void url_set_interrupt_cb(URLInterruptCB *interrupt_cb);
+attribute_deprecated void url_set_interrupt_cb(int (*interrupt_cb)(void));
#endif
/**
@@ -132,7 +130,7 @@ int url_exist(const char *url);
* in this case by the interrupted function. 'NULL' means no interrupt
* callback is given.
*/
-void avio_set_interrupt_cb(URLInterruptCB *interrupt_cb);
+void avio_set_interrupt_cb(int (*interrupt_cb)(void));
#if FF_API_OLD_AVIO
/* not implemented */