diff options
author | Max Kellermann <max@duempel.org> | 2009-12-30 23:27:37 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-01-01 17:25:07 +0100 |
commit | d3b763a48c09a60a0c0b5ccb6cccd9376875c470 (patch) | |
tree | 83b8794f78ef8941806cf5757888d8abf2eaa126 /src/input/rewind_input_plugin.h | |
parent | 816b6ad4a71c3ade95e62b62396f2b0415c03f20 (diff) | |
download | mpd-d3b763a48c09a60a0c0b5ccb6cccd9376875c470.tar.gz mpd-d3b763a48c09a60a0c0b5ccb6cccd9376875c470.tar.xz mpd-d3b763a48c09a60a0c0b5ccb6cccd9376875c470.zip |
input_stream: return allocated input_stream objects
Major API redesign: don't let the caller allocate the input_stream
object. Let each input plugin allocate its own (derived/extended)
input_stream pointer. The "data" attribute can now be removed, and
all input plugins simply cast the input_stream pointer to their own
structure (with an "struct input_stream base" as the first attribute).
Diffstat (limited to 'src/input/rewind_input_plugin.h')
-rw-r--r-- | src/input/rewind_input_plugin.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input/rewind_input_plugin.h b/src/input/rewind_input_plugin.h index 83152e588..27ad169b6 100644 --- a/src/input/rewind_input_plugin.h +++ b/src/input/rewind_input_plugin.h @@ -33,15 +33,15 @@ struct input_stream; #ifdef ENABLE_CURL -void +struct input_stream * input_rewind_open(struct input_stream *is); #else -static inline void +static inline struct input_stream * input_rewind_open(struct input_stream *is) { - (void)is; + return is; } #endif |