forked from external/yambar
plugin: typedef for configuration verification function pointer
This commit is contained in:
parent
1c18dbf1a0
commit
7cf6735363
1 changed files with 5 additions and 3 deletions
8
plugin.h
8
plugin.h
|
@ -4,20 +4,22 @@
|
|||
#include "module.h"
|
||||
#include "particle.h"
|
||||
|
||||
typedef bool (*verify_func_t)(keychain_t *chain, const struct yml_node *node);
|
||||
|
||||
struct module_iface {
|
||||
bool (*verify_conf)(keychain_t *chain, const struct yml_node *node);
|
||||
verify_func_t verify_conf;
|
||||
struct module *(*from_conf)(
|
||||
const struct yml_node *node, struct conf_inherit inherited);
|
||||
};
|
||||
|
||||
struct particle_iface {
|
||||
bool (*verify_conf)(keychain_t *chain, const struct yml_node *node);
|
||||
verify_func_t verify_conf;
|
||||
struct particle *(*from_conf)(
|
||||
const struct yml_node *node, struct particle *common);
|
||||
};
|
||||
|
||||
struct deco_iface {
|
||||
bool (*verify_conf)(keychain_t *chain, const struct yml_node *node);
|
||||
verify_func_t verify_conf;
|
||||
struct deco *(*from_conf)(const struct yml_node *node);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue