1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00
falk-werner_webfuse/lib/webfuse/impl/json/node_intern.h

61 lines
784 B
C
Raw Normal View History

2020-07-14 19:46:01 +00:00
#ifndef WF_IMPL_JSON_NODE_INTERN_H
#define WF_IMPL_JSON_NODE_INTERN_H
#include "webfuse/impl/json/node.h"
#ifdef __cplusplus
extern "C"
{
#endif
struct wf_json_string
{
char * data;
size_t size;
};
2020-07-14 19:46:01 +00:00
struct wf_json_array
{
struct wf_json * items;
size_t size;
};
struct wf_json_object_item;
struct wf_json_object
{
struct wf_json_object_item * items;
size_t size;
};
union wf_json_value
{
bool b;
int i;
struct wf_json_string s;
2020-07-14 19:46:01 +00:00
struct wf_json_array a;
struct wf_json_object o;
};
struct wf_json
{
enum wf_json_type type;
union wf_json_value value;
};
struct wf_json_object_item
{
struct wf_json json;
char * key;
};
extern void
wf_impl_json_cleanup(
struct wf_json * json);
#ifdef __cplusplus
}
#endif
#endif