From a48084c57aa44d0833e455f75c67703a91718d1f Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 10 Nov 2019 18:54:34 -0800 Subject: rototiller: add rototiller_module_t.setup() Wire up support for module settings, yes it's that small a change. I've forward-declared the settings related types in rototiller.h, if a module wants to actually wire up the .setup() method they'll need to include settings.h. --- src/rototiller.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rototiller.c') diff --git a/src/rototiller.c b/src/rototiller.c index 7203ca2..de580cd 100644 --- a/src/rototiller.c +++ b/src/rototiller.c @@ -233,7 +233,8 @@ static int setup_module(settings_t *settings, setting_desc_t **next_setting) if (!module) return -EINVAL; - /* TODO: here's where the module-specific settings would get hooked */ + if (module->setup) + return module->setup(settings, next_setting); return 0; } -- cgit v1.2.1