diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-06-02 18:04:00 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-06-03 07:42:02 -0700 |
commit | 8dc099b955197c7100937d5fafc60c4b9681a5ab (patch) | |
tree | 2ea4d33ebbb24231f604ace3e7a7ef3e4364aa0b /src/til.h | |
parent | 63815bbe5afa2d472444ee3a3ac4b179c888ec06 (diff) |
til: add til_get_module_names() helper
Composite modules that want to provide "all" aliases for modules
like rtv have to construct a comma-separated string of all module
names, usually filtered by some flags.
This helper does just that, but it does add yet another
open_memstream() user to revisit when those all get fixed up.
Diffstat (limited to 'src/til.h')
-rw-r--r-- | src/til.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -42,6 +42,7 @@ void til_quiesce(void); void til_shutdown(void); const til_module_t * til_lookup_module(const char *name); void til_get_modules(const til_module_t ***res_modules, size_t *res_n_modules); +char * til_get_module_names(unsigned flags_excluded); void til_module_render(til_module_context_t *context, til_stream_t *stream, unsigned ticks, til_fb_fragment_t **fragment_ptr); int til_module_create_context(const til_module_t *module, til_stream_t *stream, unsigned seed, unsigned ticks, unsigned n_cpus, til_setup_t *setup, til_module_context_t **res_context); til_module_context_t * til_module_destroy_context(til_module_context_t *context, til_stream_t *stream); |