struct ec_node_type {
TAILQ_ENTRY(ec_node_type) next; /**< Next in list. */
const char *name; /**< Node type name. */
- /** Generic configuration schema. */
+ /** Configuration schema array, must be terminated by a sentinel
+ * (.type = EC_CONFIG_TYPE_NONE). */
const struct ec_config_schema *schema;
- size_t schema_len; /**< Number of elts in schema array. */
ec_node_set_config_t set_config; /* validate/ack a config change */
ec_node_parse_t parse;
ec_node_complete_t complete;
*/
void ec_node_type_dump(FILE *out);
+/**
+ * Get the config schema of a node type.
+ */
+const struct ec_config_schema *
+ec_node_type_schema(const struct ec_node_type *type);
+
+/**
+ * Get the name of a node type.
+ */
+const char *
+ec_node_type_name(const struct ec_node_type *type);
+
enum ec_node_free_state {
EC_NODE_FREE_STATE_NONE,
EC_NODE_FREE_STATE_TRAVERSED,