blob: cffa8e963aff2874451e70869be76ae060f35007 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include <yaml/yaml.h>
/*
* Create a new parser.
*/
yaml_parser_t *
yaml_parser_new(void)
{
yaml_parser_t *parser;
parser = malloc(sizeof(yaml_parser_t));
if (!parser) return NULL;
memset(parser, 0, sizeof(yaml_parser_t));
return parser;
}
/*
* Destroy a parser object.
*/
void
yaml_parser_delete(yaml_parser_t *parser)
{
free(parser);
}
|