summaryrefslogtreecommitdiff
path: root/src/til_stream.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-06-15 19:08:21 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-06-15 19:08:21 -0700
commit74a734206e04ec674b0af0179d64a2e8bcc161d9 (patch)
treea89b1edb713f78645ae7260f7f02020bc9e61bdd /src/til_stream.h
parent7cd37f555eb70dd677b2b10b4b18fa431f01626c (diff)
til_stream: introduce til_stream_{end,active}()
rkt needs a way to signal the end of a sequence, this will probably get more work in the future but something simple is fine for now
Diffstat (limited to 'src/til_stream.h')
-rw-r--r--src/til_stream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/til_stream.h b/src/til_stream.h
index cb3c98e..e6346fd 100644
--- a/src/til_stream.h
+++ b/src/til_stream.h
@@ -45,6 +45,8 @@ typedef struct til_stream_hooks_t {
til_stream_t * til_stream_new(void);
til_stream_t * til_stream_free(til_stream_t *stream);
+void til_stream_end(til_stream_t *stream);
+int til_stream_active(til_stream_t *stream);
int til_stream_set_hooks(til_stream_t *stream, const til_stream_hooks_t *hooks, void *context);
int til_stream_unset_hooks(til_stream_t *stream, const til_stream_hooks_t *hooks);
© All Rights Reserved