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
2020-07-14 21:46:01 +02:00

55 lines
707 B
C

#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_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;
char * s;
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