From cbad9f25255dbfbd2a08055a3c9523c62d7b0185 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 18 Nov 2023 14:06:14 -0800 Subject: 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. --- src/til_stream.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/til_stream.h') 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 -- cgit v1.2.1