diff options
author | Max Kellermann <max@duempel.org> | 2013-01-28 20:32:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-28 23:29:43 +0100 |
commit | dcf55c7e328578d435eb14277cb6ba9e072f7e9c (patch) | |
tree | 0488d2de5ecfd090cce2e00cfbc4cdcd342c8194 /src/InputInternal.cxx | |
parent | e565cd440497d3b693e281046af485c667491441 (diff) | |
download | mpd-dcf55c7e328578d435eb14277cb6ba9e072f7e9c.tar.gz mpd-dcf55c7e328578d435eb14277cb6ba9e072f7e9c.tar.xz mpd-dcf55c7e328578d435eb14277cb6ba9e072f7e9c.zip |
InputStream: add constructor/destructor
Eliminate input_stream_init() and input_stream_deinit().
Diffstat (limited to 'src/InputInternal.cxx')
-rw-r--r-- | src/InputInternal.cxx | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/InputInternal.cxx b/src/InputInternal.cxx index 52ca4cf00..a154b68da 100644 --- a/src/InputInternal.cxx +++ b/src/InputInternal.cxx @@ -21,37 +21,6 @@ #include "InputInternal.hxx" #include "InputStream.hxx" -#include <assert.h> - -void -input_stream_init(struct input_stream *is, const struct input_plugin *plugin, - const char *uri, Mutex &mutex, Cond &cond) -{ - assert(is != NULL); - assert(plugin != NULL); - assert(uri != NULL); - - is->plugin = plugin; - is->uri = g_strdup(uri); - is->mutex = &mutex; - is->cond = &cond; - is->ready = false; - is->seekable = false; - is->size = -1; - is->offset = 0; - is->mime = NULL; -} - -void -input_stream_deinit(struct input_stream *is) -{ - assert(is != NULL); - assert(is->plugin != NULL); - - g_free(is->uri); - g_free(is->mime); -} - void input_stream_signal_client(struct input_stream *is) { |