2016-02-16 02:28:05 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
2016-02-23 13:49:23 -08:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
2016-02-22 16:41:34 -08:00
|
|
|
struct buf;
|
2016-02-22 16:58:13 -08:00
|
|
|
struct packet;
|
2016-02-22 16:41:34 -08:00
|
|
|
|
2016-02-16 02:28:05 +00:00
|
|
|
void json_init();
|
2016-02-23 13:49:23 -08:00
|
|
|
void json_cleanup();
|
|
|
|
|
bool json_parse(struct buf *, struct packet *, void *);
|
2016-02-17 00:21:28 +00:00
|
|
|
void json_serialize(struct packet *, struct buf *);
|
2016-02-17 08:30:32 +00:00
|
|
|
|
|
|
|
|
int json_buf_append_callback(const char *, size_t, void *);
|