From a53ae2782a6e8b1996c1d5dea4190eb11d06d056 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 22 Dec 2015 18:12:56 +0100 Subject: libjson: added printing support (thanks spew) --- sys/include/json.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/include/json.h') diff --git a/sys/include/json.h b/sys/include/json.h index 9544a1e65..efe5cb56a 100644 --- a/sys/include/json.h +++ b/sys/include/json.h @@ -4,6 +4,8 @@ typedef struct JSONEl JSONEl; typedef struct JSON JSON; +#pragma varargck type "J" JSON* + enum { JSONNull, JSONBool, @@ -33,3 +35,5 @@ JSON* jsonparse(char *); void jsonfree(JSON *); JSON* jsonbyname(JSON *, char *); char* jsonstr(JSON *); +int JSONfmt(Fmt*); +void JSONfmtinstall(void); -- cgit v1.2.3