diff options
author | Markus Armbruster <armbru@redhat.com> | 2021-10-25 06:24:03 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2021-10-27 17:19:15 +0200 |
commit | ed29bb28f8b0b17e965efcc2535fc32e101e3ceb (patch) | |
tree | 1bfd2967f141c4d71fc7bb08f71481b25cc1d6b9 /include/qapi/visitor.h | |
parent | b6c18755e41f7b40aad4c2c8188fb1719535699d (diff) | |
download | qemu-ed29bb28f8b0b17e965efcc2535fc32e101e3ceb.zip qemu-ed29bb28f8b0b17e965efcc2535fc32e101e3ceb.tar.gz qemu-ed29bb28f8b0b17e965efcc2535fc32e101e3ceb.tar.bz2 |
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>
Diffstat (limited to 'include/qapi/visitor.h')
-rw-r--r-- | include/qapi/visitor.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/qapi/visitor.h b/include/qapi/visitor.h index b3c9ef7..dcb9601 100644 --- a/include/qapi/visitor.h +++ b/include/qapi/visitor.h @@ -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 @@ -478,6 +479,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. * * @name expresses the relationship of this enum to its parent |