aboutsummaryrefslogtreecommitdiff
path: root/src/input_internal.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-14 21:46:41 +0200
committerMax Kellermann <max@duempel.org>2011-09-16 21:22:13 +0200
commit754f26a97c816781e80500d98f2515ae97836145 (patch)
treecaa7dbaa879b29d018a4559524390670ad33a605 /src/input_internal.h
parent29241c4f835797f635816a9f37528aa981f722b5 (diff)
input_stream: non-blocking I/O
Add GMutex, GCond attributes which will be used by callers to conditionally wait on the stream. Remove the (now-useless) plugin method buffer(), wait on GCond instead. Lock the input_stream before each method call. Do the same with the playlist plugins.
Diffstat (limited to 'src/input_internal.h')
-rw-r--r--src/input_internal.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/input_internal.h b/src/input_internal.h
index 260ea12a..d95142e4 100644
--- a/src/input_internal.h
+++ b/src/input_internal.h
@@ -22,14 +22,22 @@
#include "check.h"
+#include <glib.h>
+
struct input_stream;
struct input_plugin;
void
input_stream_init(struct input_stream *is, const struct input_plugin *plugin,
- const char *uri);
+ const char *uri, GMutex *mutex, GCond *cond);
void
input_stream_deinit(struct input_stream *is);
+void
+input_stream_signal_client(struct input_stream *is);
+
+void
+input_stream_set_ready(struct input_stream *is);
+
#endif