cfengine  3.15.4
About: CFEngine is a configuration management system for configuring and maintaining Unix-like computers (using an own high level policy language). Community version.
  Fossies Dox: cfengine-3.15.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

json-yaml.h File Reference
#include <json.h>
Include dependency graph for json-yaml.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

JsonParseError JsonParseYamlString (const char **data, JsonElement **json_out)
 Parse a YAML string to create a JsonElement. More...
 
JsonParseError JsonParseYamlFile (const char *path, size_t size_max, JsonElement **json_out)
 Convenience function to parse JSON from a YAML file. More...
 

Function Documentation

◆ JsonParseYamlFile()

JsonParseError JsonParseYamlFile ( const char *  path,
size_t  size_max,
JsonElement **  json_out 
)

Convenience function to parse JSON from a YAML file.

Parameters
pathPath to the file
size_maxMaximum size to read in memory
json_outResulting JSON object
Returns
See JsonParseError and JsonParseErrorToString

Definition at line 32 of file json-yaml.c.

References JsonParseAnyFile().

◆ JsonParseYamlString()

JsonParseError JsonParseYamlString ( const char **  data,
JsonElement **  json_out 
)

Parse a YAML string to create a JsonElement.

Parameters
data[in Pointer to the string to parse
json_outResulting JSON object
Returns
See JsonParseError and JsonParseErrorToString

Definition at line 360 of file json-yaml.c.

References JSON_PARSE_ERROR_NO_LIBYAML.

Referenced by FnCallParseJson(), JsonParseAnyFile(), and yyparse().