mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +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:
@@ -16,6 +16,7 @@
|
||||
#define QAPI_VISITOR_H
|
||||
|
||||
#include "qapi/qapi-builtin-types.h"
|
||||
#include "qapi/qapi-types-compat.h"
|
||||
|
||||
/*
|
||||
* The QAPI schema defines both a set of C data types, and a QMP wire
|
||||
@@ -477,6 +478,14 @@ bool visit_deprecated_accept(Visitor *v, const char *name, Error **errp);
|
||||
*/
|
||||
bool visit_deprecated(Visitor *v, const char *name);
|
||||
|
||||
/*
|
||||
* Set policy for handling deprecated management interfaces.
|
||||
*
|
||||
* Intended use: call visit_set_policy(v, &compat_policy) when
|
||||
* visiting management interface input or output.
|
||||
*/
|
||||
void visit_set_policy(Visitor *v, CompatPolicy *policy);
|
||||
|
||||
/*
|
||||
* Visit an enum value.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user