diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-11-18 14:06:14 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-11-18 14:06:14 -0800 |
commit | cbad9f25255dbfbd2a08055a3c9523c62d7b0185 (patch) | |
tree | 2cde0c36612e113ee933100b6fc947169943c41d /src/til_stream.h | |
parent | 059f5cdff85a974a6544122c41268a44b18fbb36 (diff) |
til_stream: introduce "pre" module contexts on stream
This adds an api for maintaining a list of pre-render module
contexts on-stream which will be rendered via til_stream_render()
before rendering hte main module context on the stream that's
been set via til_stream_set_module_context().
til_stream_add_pre_module_context()
til_stream_del_pre_module_context()
are the new functions, no references are taken for now (but
comments note the possibility of adding that)
This is just a preparatory commit, no real functional difference.
Diffstat (limited to 'src/til_stream.h')
-rw-r--r-- | src/til_stream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/til_stream.h b/src/til_stream.h index 42fb8e8..331ec37 100644 --- a/src/til_stream.h +++ b/src/til_stream.h @@ -81,6 +81,8 @@ unsigned til_stream_gc_module_contexts(til_stream_t *stream); void til_stream_fprint_module_contexts(til_stream_t *stream, FILE *out); void til_stream_set_module_context(til_stream_t *stream, til_module_context_t *context); +int til_stream_add_pre_module_context(til_stream_t *stream, til_module_context_t *context); +int til_stream_del_pre_module_context(til_stream_t *stream, til_module_context_t *context); void til_stream_render(til_stream_t *stream, unsigned ticks, til_fb_fragment_t **fragment_ptr); #endif |