Mercurial > libavformat.hg
changeset 4959:089a36c3c0db libavformat
Define struct URLContext and typedef it to URLContext in one step.
author | stefano |
---|---|
date | Mon, 25 May 2009 22:17:27 +0000 |
parents | a73454df532f |
children | f8637caf2f37 |
files | avio.h |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/avio.h Mon May 25 22:05:43 2009 +0000 +++ b/avio.h Mon May 25 22:17:27 2009 +0000 @@ -41,7 +41,7 @@ * version bump. * sizeof(URLContext) must not be used outside libav*. */ -struct URLContext { +typedef struct URLContext { #if LIBAVFORMAT_VERSION_MAJOR >= 53 const AVClass *av_class; ///< information for av_log(). Set by url_open(). #endif @@ -51,9 +51,7 @@ int max_packet_size; /**< if non zero, the stream is packetized with this max packet size */ void *priv_data; char *filename; /**< specified filename */ -}; - -typedef struct URLContext URLContext; +} URLContext; typedef struct URLPollEntry { URLContext *handle;