diff options
Diffstat (limited to 'src/input_stream.h')
-rw-r--r-- | src/input_stream.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/input_stream.h b/src/input_stream.h index 10ad97161..d5b1dae2e 100644 --- a/src/input_stream.h +++ b/src/input_stream.h @@ -88,6 +88,10 @@ struct input_stream { char *mime; }; +#ifdef __cplusplus +extern "C" { +#endif + /** * Opens a new input stream. You may not access it until the "ready" * flag is set. @@ -164,6 +168,13 @@ void input_stream_lock_wait_ready(struct input_stream *is); /** + * Determines whether seeking is cheap. This is true for local files. + */ +gcc_pure gcc_nonnull(1) +bool +input_stream_cheap_seeking(const struct input_stream *is); + +/** * Seeks to the specified position in the stream. This will most * likely fail if the "seekable" flag is false. * @@ -264,4 +275,8 @@ size_t input_stream_lock_read(struct input_stream *is, void *ptr, size_t size, GError **error_r); +#ifdef __cplusplus +} +#endif + #endif |