aboutsummaryrefslogtreecommitdiff
path: root/src/input_stream.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-16 21:06:12 +0200
committerMax Kellermann <max@duempel.org>2011-09-16 21:22:02 +0200
commit29241c4f835797f635816a9f37528aa981f722b5 (patch)
treeda166b242c4d960619498b9b7bd13ec44415915d /src/input_stream.h
parent6f655eb9b90e0855112038c0779eb61194cb7ef6 (diff)
input_plugin: add method check()
To check for errors without reading. The decoder thread wants to do that, before it passes the input stream to the plugin.
Diffstat (limited to 'src/input_stream.h')
-rw-r--r--src/input_stream.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/input_stream.h b/src/input_stream.h
index 2901f6ea..7866562a 100644
--- a/src/input_stream.h
+++ b/src/input_stream.h
@@ -91,6 +91,15 @@ void
input_stream_close(struct input_stream *is);
/**
+ * Check for errors that may have occurred in the I/O thread.
+ *
+ * @return false on error
+ */
+gcc_nonnull(1)
+bool
+input_stream_check(struct input_stream *is, GError **error_r);
+
+/**
* Update the public attributes. Call before accessing attributes
* such as "ready" or "offset".
*/