unicorn/qemu/include
Eric Blake eef0932471
qapi-visit: Add visitor.type classification
We have three classes of QAPI visitors: input, output, and dealloc.
Currently, all implementations of these visitors have one thing in
common based on their visitor type: the implementation used for the
visit_type_enum() callback. But since we plan to add more such
common behavior, in relation to documenting and further refining
the semantics, it makes more sense to have the visitor
implementations advertise which class they belong to, so the common
qapi-visit-core code can use that information in multiple places.

A later patch will better document the types of visitors directly
in visitor.h.

For this patch, knowing the class of a visitor implementation lets
us make input_type_enum() and output_type_enum() become static
functions, by replacing the callback function Visitor.type_enum()
with the simpler enum member Visitor.type. Share a common
assertion in qapi-visit-core as part of the refactoring.

Move comments in opts-visitor.c to match the refactored layout.

Backports commit 983f52d4b3f86fb9dc9f8b142132feb5a8723016 from qemu
2018-02-23 14:25:41 -05:00
..
crypto Drop unused crypto source files 2018-02-17 15:23:57 -05:00
exec exec-all: Remove externs 2018-02-23 12:43:03 -05:00
fpu fpu: Remove use of int_fast16_t in conversions to int16 2018-02-20 16:54:04 -05:00
hw qom: Allow properties to be registered against classes 2018-02-21 21:00:56 -05:00
qapi qapi-visit: Add visitor.type classification 2018-02-23 14:25:41 -05:00
qemu util: Fix MIN_NON_ZERO 2018-02-23 14:09:44 -05:00
qom include/qemu/osdep.h: Don't include qapi/error.h 2018-02-21 23:08:18 -05:00
sysemu oslib-win32: Change return type of function getpagesize 2018-02-17 19:10:37 -05:00
config.h import 2015-08-21 15:04:50 +08:00
elf.h fix merge conflicts 2017-03-10 21:04:33 +08:00
glib_compat.h glib_compat: backport hashtable iterator interfaces 2018-02-21 13:18:44 -05:00
qemu-common.h util: move declarations out of qemu-common.h 2018-02-22 09:25:48 -05:00