diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-12-22 18:12:56 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-12-22 18:12:56 +0100 |
commit | a53ae2782a6e8b1996c1d5dea4190eb11d06d056 (patch) | |
tree | 4d394ca68c430addd1310d38fdd145dc9865d428 /sys/include/json.h | |
parent | f6e8b115d49e8aec463e3a495d53ee11031a4db6 (diff) |
libjson: added printing support (thanks spew)
Diffstat (limited to 'sys/include/json.h')
-rw-r--r-- | sys/include/json.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |