Loading...
Searching...
No Matches
yaml.h
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2018, Olivier MATZ <zer0@droids-corp.org>
*/
#pragma once
#include <stdio.h>
struct ec_node;
struct ec_node *ec_yaml_import(const char *filename);
int ec_yaml_export(FILE *out, const struct ec_node *node);
ec_node
struct ec_node * ec_node(const char *typename, const char *id)
Create a new node from its type name.
ec_yaml_import
struct ec_node * ec_yaml_import(const char *filename)
Parse a YAML file and build an ec_node tree from it.
ec_yaml_export
int ec_yaml_export(FILE *out, const struct ec_node *node)
Export an ec_node tree to a YAML formatted stream.