diff --git a/module.h b/module.h index 012a2fd..450dcd6 100644 --- a/module.h +++ b/module.h @@ -3,12 +3,22 @@ #include #include +#include "config-verify.h" #include "particle.h" #include "tag.h" +#include "yml.h" struct bar; struct module; +struct module_info { + struct module *(*from_conf)(const struct yml_node *node, + const struct font *parent_font); + + size_t attr_count; /* TODO: remove, NULL-terminate attr list instead */ + const struct attr_info attrs[]; +}; + struct module_run_context { struct module *module; int ready_fd;