forked from external/yambar
modules: don't assume module content is a dictionary
This is done by having each module implement a top-level verifier function.
This commit is contained in:
parent
e471c2357d
commit
9944a8f972
13 changed files with 146 additions and 56 deletions
2
module.h
2
module.h
|
@ -12,9 +12,9 @@ struct bar;
|
|||
struct module;
|
||||
|
||||
struct module_info {
|
||||
bool (*verify_conf)(keychain_t *chain, const struct yml_node *node);
|
||||
struct module *(*from_conf)(const struct yml_node *node,
|
||||
const struct font *parent_font);
|
||||
const struct attr_info attrs[];
|
||||
};
|
||||
|
||||
struct module_run_context {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue