qemu/qapi
Eric Blake 04e070d217 qapi: Consolidate visitor small integer callbacks
Commit 4e27e819 introduced optional visitor callbacks for all
sorts of int types, but no visitor has supplied any of the
callbacks for sizes less than 64 bits.  In other words, the
generic implementation based on using type_[u]int64() followed
by bounds-checking works just fine. In the interest of
simplicity, it's easier to make the visitor callback interface
not have to worry about the other sizes.

Adding some helper functions minimizes the boilerplate required
to correct FIXMEs added earlier with regards to questionable
reuse of errp, particularly now that we can guarantee from a
single file audit that value is unchanged if an error is set.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <1454075341-13658-16-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2016-02-08 17:29:55 +01:00
..
block-core.json
block.json
common.json
crypto.json
event.json
introspect.json
Makefile.objs
opts-visitor.c qapi: Prefer type_int64 over type_int in visitors 2016-02-08 17:29:55 +01:00
qapi-dealloc-visitor.c qapi: Make all visitors supply uint64 callbacks 2016-02-08 17:29:55 +01:00
qapi-util.c qapi: Clean up includes 2016-02-04 17:41:30 +00:00
qapi-visit-core.c qapi: Consolidate visitor small integer callbacks 2016-02-08 17:29:55 +01:00
qmp-dispatch.c qapi: Clean up includes 2016-02-04 17:41:30 +00:00
qmp-event.c qapi: Clean up includes 2016-02-04 17:41:30 +00:00
qmp-input-visitor.c qapi: Make all visitors supply uint64 callbacks 2016-02-08 17:29:55 +01:00
qmp-output-visitor.c qapi: Make all visitors supply uint64 callbacks 2016-02-08 17:29:55 +01:00
qmp-registry.c qapi: Clean up includes 2016-02-04 17:41:30 +00:00
rocker.json
string-input-visitor.c qapi: Make all visitors supply uint64 callbacks 2016-02-08 17:29:55 +01:00
string-output-visitor.c qapi: Make all visitors supply uint64 callbacks 2016-02-08 17:29:55 +01:00
trace.json