diff options
author | Max Kellermann <max@duempel.org> | 2013-10-21 21:12:37 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-21 21:12:37 +0200 |
commit | 82059645f18e4a8aa734e0a376d10bb52fc1cc7d (patch) | |
tree | e2d1c113c887cdafe95ec07419150d6b768211b6 /src/DecoderPlugin.hxx | |
parent | 13e9f18403b98f8123b1b983c4680957d684e47b (diff) | |
download | mpd-82059645f18e4a8aa734e0a376d10bb52fc1cc7d.tar.gz mpd-82059645f18e4a8aa734e0a376d10bb52fc1cc7d.tar.xz mpd-82059645f18e4a8aa734e0a376d10bb52fc1cc7d.zip |
decoder: rename the struct to "Decoder"
Diffstat (limited to '')
-rw-r--r-- | src/DecoderPlugin.hxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/DecoderPlugin.hxx b/src/DecoderPlugin.hxx index 7aa508c53..600d4e3b3 100644 --- a/src/DecoderPlugin.hxx +++ b/src/DecoderPlugin.hxx @@ -31,7 +31,7 @@ struct tag_handler; * Opaque handle which the decoder plugin passes to the functions in * this header. */ -struct decoder; +struct Decoder; struct DecoderPlugin { const char *name; @@ -59,15 +59,14 @@ struct DecoderPlugin { * possible, it is recommended to implement this method, * because it is more versatile. */ - void (*stream_decode)(struct decoder *decoder, - struct input_stream *is); + void (*stream_decode)(Decoder &decoder, input_stream *is); /** * Decode a local file. * * Either implement this method or stream_decode(). */ - void (*file_decode)(struct decoder *decoder, const char *path_fs); + void (*file_decode)(Decoder &decoder, const char *path_fs); /** * Scan metadata of a file. @@ -128,15 +127,15 @@ struct DecoderPlugin { /** * Decode a stream. */ - void StreamDecode(decoder &decoder, input_stream &is) const { - stream_decode(&decoder, &is); + void StreamDecode(Decoder &decoder, input_stream &is) const { + stream_decode(decoder, &is); } /** * Decode a file. */ - void FileDecode(decoder &decoder, const char *path_fs) const { - file_decode(&decoder, path_fs); + void FileDecode(Decoder &decoder, const char *path_fs) const { + file_decode(decoder, path_fs); } /** |