add XXX for later
[protos/libecoli.git] / lib / ecoli_node_int.c
index b42a912..9b56e22 100644 (file)
@@ -40,6 +40,7 @@ struct ec_node_int_uint {
        unsigned int base;
 };
 
+/* XXX to utils.c ? */
 static int parse_llint(struct ec_node_int_uint *node, const char *str,
        int64_t *val)
 {
@@ -154,6 +155,9 @@ static const struct ec_config_schema ec_node_int_schema[] = {
                .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,
@@ -201,7 +205,6 @@ fail:
 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,
@@ -265,6 +268,9 @@ static const struct ec_config_schema ec_node_uint_schema[] = {
                .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,
@@ -312,7 +318,6 @@ fail:
 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,