X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Fecoli_config.h;h=9d7c628ea2e2a6b38a1afa442562ce0d3ec2f0e6;hb=15718f19cbf3868bf6fba79f4e26b5254c57873e;hp=706af79f398d5b26b81c9da14c613facdc705c80;hpb=d8c60a316b5c2a8b959f6191274504d433cf64f0;p=protos%2Flibecoli.git diff --git a/lib/ecoli_config.h b/lib/ecoli_config.h index 706af79..9d7c628 100644 --- a/lib/ecoli_config.h +++ b/lib/ecoli_config.h @@ -113,6 +113,28 @@ const struct ec_config_schema * ec_config_schema_lookup(const struct ec_config_schema *schema, const char *key); +/** + * Get the type of a schema entry. + * + * @param schema_elt + * Pointer to an element of the schema array. + * @return + * The type of the schema entry. + */ +enum ec_config_type +ec_config_schema_type(const struct ec_config_schema *schema_elt); + +/** + * Get the subschema of a schema entry. + * + * @param schema_elt + * Pointer to an element of the schema array. + * @return + * The subschema if any, or NULL. + */ +const struct ec_config_schema * +ec_config_schema_sub(const struct ec_config_schema *schema_elt); + /** * Check if a key name is reserved in a config dict. *