unicorn/qemu/include/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
..
qmp qapi: Convert QType into QAPI built-in enum type 2018-02-19 21:47:05 -05:00
dealloc-visitor.h import 2015-08-21 15:04:50 +08:00
error.h qapi: Change munging of CamelCase enum values 2018-02-19 20:40:15 -05:00
qmp-input-visitor.h import 2015-08-21 15:04:50 +08:00
qmp-output-visitor.h import 2015-08-21 15:04:50 +08:00
string-input-visitor.h import 2015-08-21 15:04:50 +08:00
visitor-impl.h qapi: Consolidate visitor small integer callbacks 2018-02-19 23:21:56 -05:00
visitor.h qapi: Swap visit_* arguments for consistent 'name' placement 2018-02-19 22:45:07 -05:00