unicorn/qemu/qapi
Eric Blake 4100f3b78a
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.

Backports commit 04e070d217b4414f1f91aa8ad25fc0ae7ca0be93 from qemu
2018-02-19 23:21:56 -05:00
..
common.json qapi: Add alias for ErrorClass 2018-02-19 20:38:51 -05:00
Makefile.objs
qapi-dealloc-visitor.c qapi: Introduce a first class 'any' type 2018-02-19 17:46:58 -05:00
qapi-visit-core.c qapi: Consolidate visitor small integer callbacks 2018-02-19 23:21:56 -05:00
qmp-input-visitor.c qapi: Simplify visits of optional fields 2018-02-19 22:01:27 -05:00
qmp-output-visitor.c qapi: Introduce a first class 'any' type 2018-02-19 17:46:58 -05:00
string-input-visitor.c qapi: Simplify visits of optional fields 2018-02-19 22:01:27 -05:00