mirror of
https://github.com/mii443/qemu.git
synced 2025-09-03 15:49:30 +00:00
qapi: Move compat policy from QObject to generic visitor
The next commit needs to access compat policy from the generic visitor core. Move it there from qobject input and output visitor. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20211025042405.3762351-4-armbru@redhat.com>
This commit is contained in:
@ -122,6 +122,9 @@ struct Visitor
|
||||
/* Must be set */
|
||||
VisitorType type;
|
||||
|
||||
/* Optional */
|
||||
struct CompatPolicy compat_policy;
|
||||
|
||||
/* Must be set for output visitors, optional otherwise. */
|
||||
void (*complete)(Visitor *v, void *opaque);
|
||||
|
||||
|
Reference in New Issue
Block a user