INGOR
Loading...
Searching...
No Matches
ytJSON.h
1/*
2 util/ytJSON.{h,c} : JASON Parser
3 Copyright (C) 2018, Yoshinori Tamada <tamada A T ytlab.jp>
4 All rights reserved.
5
6 See LICENSE.txt for details of the licensing agreement.
7*/
8#ifndef __YTLIB_JSON_H
9#define __YTLIB_JSON_H
10
11#include "ytKeyValues.h"
12
15#define ytJSON_OPT_HYPHEN_BREAK 0x00000001
16
19#define ytJSON_OPT_FORMAT 0x00000001
20
21ytKeyValues * ytJSON_parseStr(const char * str);
22ytKeyValues * ytJSON_parse(FILE * fp, int opt);
23void ytJSON_print(const ytKeyValues * kv, FILE * fp, int opt);
24void ytJSON_debug(int argc, char * argv[]);
25
26#endif /* __YTLIB_JSON_H */
key-value pairs.