summaryrefslogtreecommitdiff
path: root/src/rototiller.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2019-11-14 20:47:20 -0800
committerVito Caputo <vcaputo@pengaru.com>2019-11-14 20:47:20 -0800
commit3f260bcbcd9d29457d9dbd4f27a913c8d2e5d555 (patch)
treeea3827fd48855c0b72576e8bf9fb9f9a80c2091a /src/rototiller.h
parent8acb27a788f24f85f38cf4ca45f2c3124128fa26 (diff)
rototiller: add some public module interfaces
Adds: rototiller_lookup_module() rototiller_get_modules() rototiller_module_render() there should probably be more helpers for dealing with context create and destroy, but this is enough for some experimentation.
Diffstat (limited to 'src/rototiller.h')
-rw-r--r--src/rototiller.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rototiller.h b/src/rototiller.h
index c578bd5..ca2559a 100644
--- a/src/rototiller.h
+++ b/src/rototiller.h
@@ -23,4 +23,8 @@ typedef struct rototiller_module_t {
int (*setup)(const settings_t *settings, setting_desc_t **next_setting);
} rototiller_module_t;
+const rototiller_module_t * rototiller_lookup_module(const char *name);
+void rototiller_get_modules(const rototiller_module_t ***res_modules, size_t *res_n_modules);
+void rototiller_module_render(const rototiller_module_t *module, void *context, fb_fragment_t *fragment);
+
#endif
© All Rights Reserved