From b83d069266836edfe998c9fbf75c039cdeafa6d0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 8 Jan 2013 01:02:06 +0100 Subject: decoder/OggUtil: add struct forward declarations --- src/decoder/OggUtil.cxx | 4 ++-- src/decoder/OggUtil.hxx | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/decoder/OggUtil.cxx b/src/decoder/OggUtil.cxx index 00dae2887..7dda282c8 100644 --- a/src/decoder/OggUtil.cxx +++ b/src/decoder/OggUtil.cxx @@ -23,7 +23,7 @@ bool OggFeed(ogg_sync_state &oy, struct decoder *decoder, - struct input_stream *input_stream, size_t size) + input_stream *input_stream, size_t size) { char *buffer = ogg_sync_buffer(&oy, size); if (buffer == nullptr) @@ -40,7 +40,7 @@ OggFeed(ogg_sync_state &oy, struct decoder *decoder, bool OggExpectPage(ogg_sync_state &oy, ogg_page &page, - struct decoder *decoder, struct input_stream *input_stream) + decoder *decoder, input_stream *input_stream) { while (true) { int r = ogg_sync_pageout(&oy, &page); diff --git a/src/decoder/OggUtil.hxx b/src/decoder/OggUtil.hxx index 95bf6472f..c0be21faa 100644 --- a/src/decoder/OggUtil.hxx +++ b/src/decoder/OggUtil.hxx @@ -26,14 +26,17 @@ #include +struct input_stream; +struct decoder; + /** * Feed data from the #input_stream into the #ogg_sync_state. * * @return false on error or end-of-file */ bool -OggFeed(ogg_sync_state &oy, struct decoder *decoder, - struct input_stream *input_stream, size_t size); +OggFeed(ogg_sync_state &oy, struct decoder *decoder, input_stream *is, + size_t size); /** * Feed into the #ogg_sync_state until a page gets available. Garbage @@ -43,6 +46,6 @@ OggFeed(ogg_sync_state &oy, struct decoder *decoder, */ bool OggExpectPage(ogg_sync_state &oy, ogg_page &page, - struct decoder *decoder, struct input_stream *input_stream); + decoder *decoder, input_stream *input_stream); #endif -- cgit v1.2.3