From 3f260bcbcd9d29457d9dbd4f27a913c8d2e5d555 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 14 Nov 2019 20:47:20 -0800 Subject: 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. --- src/rototiller.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/rototiller.h') 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 -- cgit v1.2.1