aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderPlugin.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-23 22:08:59 +0200
committerMax Kellermann <max@duempel.org>2013-10-23 23:12:02 +0200
commit93deb844996120b6326345d6d87e803142dd1968 (patch)
treed6c00669efffad1b15fc45e03158d6838a7e5827 /src/DecoderPlugin.hxx
parentc4d4011c63808a64ca20a4b03fd455a83c23cc33 (diff)
downloadmpd-93deb844996120b6326345d6d87e803142dd1968.tar.gz
mpd-93deb844996120b6326345d6d87e803142dd1968.tar.xz
mpd-93deb844996120b6326345d6d87e803142dd1968.zip
input_stream: rename struct to InputStream
Diffstat (limited to 'src/DecoderPlugin.hxx')
-rw-r--r--src/DecoderPlugin.hxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/DecoderPlugin.hxx b/src/DecoderPlugin.hxx
index 600d4e3b3..6b0340123 100644
--- a/src/DecoderPlugin.hxx
+++ b/src/DecoderPlugin.hxx
@@ -23,7 +23,7 @@
#include "Compiler.h"
struct config_param;
-struct input_stream;
+struct InputStream;
struct Tag;
struct tag_handler;
@@ -59,7 +59,7 @@ struct DecoderPlugin {
* possible, it is recommended to implement this method,
* because it is more versatile.
*/
- void (*stream_decode)(Decoder &decoder, input_stream *is);
+ void (*stream_decode)(Decoder &decoder, InputStream &is);
/**
* Decode a local file.
@@ -82,7 +82,7 @@ struct DecoderPlugin {
*
* @return false if the operation has failed
*/
- bool (*scan_stream)(struct input_stream *is,
+ bool (*scan_stream)(InputStream &is,
const struct tag_handler *handler,
void *handler_ctx);
@@ -127,8 +127,8 @@ struct DecoderPlugin {
/**
* Decode a stream.
*/
- void StreamDecode(Decoder &decoder, input_stream &is) const {
- stream_decode(decoder, &is);
+ void StreamDecode(Decoder &decoder, InputStream &is) const {
+ stream_decode(decoder, is);
}
/**
@@ -151,10 +151,10 @@ struct DecoderPlugin {
/**
* Read the tag of a stream.
*/
- bool ScanStream(input_stream &is,
+ bool ScanStream(InputStream &is,
const tag_handler &handler, void *handler_ctx) const {
return scan_stream != nullptr
- ? scan_stream(&is, &handler, handler_ctx)
+ ? scan_stream(is, &handler, handler_ctx)
: false;
}