__ec_config_schema_dump(out, schema, schema_len, 0);
}
+enum ec_config_type ec_config_get_type(const struct ec_config *config)
+{
+ return config->type;
+}
+
struct ec_config *
ec_config_bool(bool boolean)
{
#include <sys/queue.h>
#include <stdbool.h>
#include <stdint.h>
+#include <stdio.h>
#ifndef EC_COUNT_OF //XXX
#define EC_COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / \
/* config */
+/**
+ * Get the type of the configuration.
+ *
+ * @param config
+ * The configuration.
+ * @return
+ * The configuration type.
+ */
+enum ec_config_type ec_config_get_type(const struct ec_config *config);
+
/**
* Create a boolean configuration value.
*