json input support, some shutdown fixes. json needs cleanup.

This commit is contained in:
Ian Gulliver
2016-02-23 13:49:23 -08:00
parent 07d273236d
commit d2e521e90c
14 changed files with 212 additions and 23 deletions

View File

@@ -1,9 +1,13 @@
#pragma once
#include <stdbool.h>
struct buf;
struct packet;
void json_init();
void json_cleanup();
bool json_parse(struct buf *, struct packet *, void *);
void json_serialize(struct packet *, struct buf *);
int json_buf_append_callback(const char *, size_t, void *);