]> git.droids-corp.org - protos/libecoli.git/blobdiff - lib/ecoli_config.h
get config type
[protos/libecoli.git] / lib / ecoli_config.h
index fa6b5010828c0ecf3ba1e0db309f3a4c100ddd4d..96e47b322cdcc2454effbcee229426e1d1cf276a 100644 (file)
@@ -8,6 +8,7 @@
 #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])) / \
@@ -109,6 +110,16 @@ void ec_config_schema_dump(FILE *out, const struct ec_config_schema *schema,
 
 /* 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.
  *