X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=include%2Fecoli_yaml.h;fp=include%2Fecoli_yaml.h;h=a63d837eca0d38c0d5087f0b1d033d38475238c6;hb=18d03456d96f7a086a2ccc82ce97fcf056848d90;hp=0000000000000000000000000000000000000000;hpb=a1571d413d2acac5d4a4fbdf2e50b2d1a6da3aa6;p=protos%2Flibecoli.git diff --git a/include/ecoli_yaml.h b/include/ecoli_yaml.h new file mode 100644 index 0000000..a63d837 --- /dev/null +++ b/include/ecoli_yaml.h @@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright 2018, Olivier MATZ + */ + +/** + * Interface to import/export ecoli data structures in YAML. + */ + +#ifndef ECOLI_NODE_YAML_ +#define ECOLI_NODE_YAML_ + +struct ec_node; + +/** + * Parse a YAML file and build an ec_node tree from it. + * + * @param filename + * The path to the file to be parsed. + * @return + * The ec_node tree on success, or NULL on error (errno is set). + * The returned node must be freed by the caller with ec_node_free(). + */ +struct ec_node *ec_yaml_import(const char *filename); + +#endif