json: Clean up headers
commit86cdf9ec8dec2763702cc52fa412d108a5dc9608
authorMarkus Armbruster <armbru@redhat.com>
Thu, 23 Aug 2018 16:40:20 +0000 (23 18:40 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 24 Aug 2018 18:26:37 +0000 (24 20:26 +0200)
tree80f5cade21719e7b4a039138d2d2c2758e288dcb
parent812ce33eadfc419795a5d1c7fe8f487fdfe2188c
json: Clean up headers

The JSON parser has three public headers, json-lexer.h, json-parser.h,
json-streamer.h.  They all contain stuff that is of no interest
outside qobject/json-*.c.

Collect the public interface in include/qapi/qmp/json-parser.h, and
everything else in qobject/json-parser-int.h.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180823164025.12553-54-armbru@redhat.com>
include/qapi/qmp/json-parser.h [moved from include/qapi/qmp/json-streamer.h with 77% similarity]
monitor.c
qga/main.c
qobject/json-lexer.c
qobject/json-parser-int.h [moved from include/qapi/qmp/json-lexer.h with 62% similarity]
qobject/json-parser.c
qobject/json-streamer.c
qobject/qjson.c
tests/libqtest.c