unsigned int base;
};
+/* XXX to utils.c ? */
static int parse_llint(struct ec_node_int_uint *node, const char *str,
int64_t *val)
{
.desc = "The base to use. If unset or 0, try to guess.",
.type = EC_CONFIG_TYPE_UINT64,
},
+ {
+ .type = EC_CONFIG_TYPE_NONE,
+ },
};
static int ec_node_int_set_config(struct ec_node *gen_node,
static struct ec_node_type ec_node_int_type = {
.name = "int",
.schema = ec_node_int_schema,
- .schema_len = EC_COUNT_OF(ec_node_int_schema),
.set_config = ec_node_int_set_config,
.parse = ec_node_int_uint_parse,
.complete = ec_node_complete_unknown,
.desc = "The base to use. If unset or 0, try to guess.",
.type = EC_CONFIG_TYPE_UINT64,
},
+ {
+ .type = EC_CONFIG_TYPE_NONE,
+ },
};
static int ec_node_uint_set_config(struct ec_node *gen_node,
static struct ec_node_type ec_node_uint_type = {
.name = "uint",
.schema = ec_node_uint_schema,
- .schema_len = EC_COUNT_OF(ec_node_uint_schema),
.set_config = ec_node_uint_set_config,
.parse = ec_node_int_uint_parse,
.complete = ec_node_complete_unknown,