diff options
Diffstat (limited to 'src/input_stream.h')
-rw-r--r-- | src/input_stream.h | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/src/input_stream.h b/src/input_stream.h index 056d008a7..529ed8762 100644 --- a/src/input_stream.h +++ b/src/input_stream.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2010 The Music Player Daemon Project + * Copyright (C) 2003-2011 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -71,26 +71,6 @@ struct input_stream { char *mime; }; -static inline void -input_stream_init(struct input_stream *is, const struct input_plugin *plugin, - const char *uri) -{ - is->plugin = plugin; - is->uri = g_strdup(uri); - is->ready = false; - is->seekable = false; - is->size = -1; - is->offset = 0; - is->mime = NULL; -} - -static inline void -input_stream_deinit(struct input_stream *is) -{ - g_free(is->uri); - g_free(is->mime); -} - /** * Opens a new input stream. You may not access it until the "ready" * flag is set. @@ -107,6 +87,13 @@ void input_stream_close(struct input_stream *is); /** + * Update the public attributes. Call before accessing attributes + * such as "ready" or "offset". + */ +void +input_stream_update(struct input_stream *is); + +/** * Seeks to the specified position in the stream. This will most * likely fail if the "seekable" flag is false. * |