From: Olivier Matz Date: Thu, 29 Nov 2018 18:58:55 +0000 (+0100) Subject: use config for any node X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5d0480a1481f92d9972b4cb6ac42a747aae2c099;p=protos%2Flibecoli.git use config for any node --- diff --git a/libecoli/ecoli_node_any.c b/libecoli/ecoli_node_any.c index 197a2c5..988938c 100644 --- a/libecoli/ecoli_node_any.c +++ b/libecoli/ecoli_node_any.c @@ -14,6 +14,7 @@ #include #include #include +#include #include EC_LOG_TYPE_REGISTER(node_any); @@ -35,8 +36,24 @@ static int ec_node_any_parse(const struct ec_node *gen_node, return 1; } +static const struct ec_config_schema ec_node_any_schema[] = { + { + .type = EC_CONFIG_TYPE_NONE, + }, +}; + +static int ec_node_any_set_config(struct ec_node *gen_node, + const struct ec_config *config) +{ + (void)gen_node; + (void)config; + return 0; +} + static struct ec_node_type ec_node_any_type = { .name = "any", + .schema = ec_node_any_schema, + .set_config = ec_node_any_set_config, .parse = ec_node_any_parse, .complete = ec_node_complete_unknown, .size = sizeof(struct ec_node_any),