From f07b311173e1231f6c0c85a47d6068de7aa00761 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 26 Jan 2020 18:02:54 -0800 Subject: knobs: add experimental rudimentary knobs API This is intended for modules to expose bindings for floats affecting rendering output that may be varied at runtime frame-to-frame. See the comment in knobs.h for more information. This commit only introduces the concept, no modules utilize it yet. --- src/rototiller.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rototiller.h') diff --git a/src/rototiller.h b/src/rototiller.h index e13a29a..e185624 100644 --- a/src/rototiller.h +++ b/src/rototiller.h @@ -18,7 +18,7 @@ typedef struct rototiller_module_t { void (*render_fragment)(void *context, unsigned ticks, unsigned cpu, fb_fragment_t *fragment); void (*finish_frame)(void *context, unsigned ticks, fb_fragment_t *fragment); int (*setup)(const settings_t *settings, setting_desc_t **next_setting); - knob_t *(*knobs)(void *context); /* when present, returns NULL-terminated array knobs for the supplied context, not to be freed - likely context-resident. */ + size_t (*knobs)(void *context, knob_t **res_knobs); char *name; char *description; char *author; -- cgit v1.2.1