From 7cf67353631f5414cb89bc65d30b32d85f279e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 13 Jan 2019 17:46:24 +0100 Subject: [PATCH] plugin: typedef for configuration verification function pointer --- plugin.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugin.h b/plugin.h index d315b6f..2e923c9 100644 --- a/plugin.h +++ b/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); };