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-25 23:37:37 -08:00
|
|
|
void json_init(void);
|
|
|
|
|
void json_cleanup(void);
|
2016-02-26 14:09:37 -08:00
|
|
|
bool __attribute__ ((warn_unused_result)) json_parse(struct buf *, struct packet *, void *);
|
2016-02-17 00:21:28 +00:00
|
|
|
void json_serialize(struct packet *, struct buf *);
|
2016-02-27 16:23:26 -08:00
|
|
|
void json_hello(struct buf **);
|
2016-02-17 08:30:32 +00:00
|
|
|
|
|
|
|
|
int json_buf_append_callback(const char *, size_t, void *);
|