summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-01-26 17:36:09 -0800
committerVito Caputo <vcaputo@pengaru.com>2020-01-26 17:36:09 -0800
commit827f6626b672c817df23728742b0d76f215ca09e (patch)
tree3b4273112dc0d7f8c4cd6dc1fcd8c77cf6eb6c01 /src
parentd9ef78ae11efaf88bcf2b964778890108084193b (diff)
rototiller: move rototiller_module_t.setup()
Cosmetic change, put setup with the other function pointers.
Diffstat (limited to 'src')
-rw-r--r--src/rototiller.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rototiller.h b/src/rototiller.h
index 4561ae5..e13a29a 100644
--- a/src/rototiller.h
+++ b/src/rototiller.h
@@ -9,6 +9,7 @@ typedef int (*rototiller_fragmenter_t)(void *context, const fb_fragment_t *fragm
typedef struct settings_t settings;
typedef struct setting_desc_t setting_desc_t;
+typedef struct knob_t knob_t;
typedef struct rototiller_module_t {
void * (*create_context)(unsigned ticks, unsigned n_cpus);
@@ -16,11 +17,12 @@ typedef struct rototiller_module_t {
void (*prepare_frame)(void *context, unsigned ticks, unsigned n_cpus, fb_fragment_t *fragment, rototiller_fragmenter_t *res_fragmenter);
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. */
char *name;
char *description;
char *author;
char *license;
- int (*setup)(const settings_t *settings, setting_desc_t **next_setting);
} rototiller_module_t;
const rototiller_module_t * rototiller_lookup_module(const char *name);
© All Rights Reserved