xqemu/qobject
Markus Armbruster a7c3181628 qobject: Clean up around qtype_code
QTYPE_NONE is a sentinel value.  No QObject has this type code.
Document it properly.

Fix dump_qobject() to abort() on QTYPE_NONE, just like for any other
invalid type code.

Fix to_json() to abort() on all invalid type codes, not just
QTYPE_MAX.

Clean up Property member qtype's type: it's a qtype_code.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2015-05-11 08:59:07 -04:00
..
Makefile.objs build: move qobject files to qobject/ and libqemuutil.a 2013-01-12 18:42:50 +01:00
json-lexer.c json-lexer: fix escaped backslash in single-quoted string 2014-06-23 11:01:24 -04:00
json-parser.c json-parser: drop superfluous assignment for token variable 2014-06-11 10:10:29 -04:00
json-streamer.c build: move qobject files to qobject/ and libqemuutil.a 2013-01-12 18:42:50 +01:00
qbool.c build: move qobject files to qobject/ and libqemuutil.a 2013-01-12 18:42:50 +01:00
qdict.c qdict: Add qdict_join() 2014-05-19 11:36:48 +02:00
qerror.c qerror: Remove assert_no_error() 2014-01-06 15:02:30 -05:00
qfloat.c build: move qobject files to qobject/ and libqemuutil.a 2013-01-12 18:42:50 +01:00
qint.c build: move qobject files to qobject/ and libqemuutil.a 2013-01-12 18:42:50 +01:00
qjson.c qobject: Clean up around qtype_code 2015-05-11 08:59:07 -04:00
qlist.c build: move qobject files to qobject/ and libqemuutil.a 2013-01-12 18:42:50 +01:00
qstring.c qstring: add qstring_get_length() 2013-04-05 08:42:29 -04:00