mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00

The "special_features" field / parameter holds the subset of schema features that are for internal code use. Specifically 'DEPRECATED' and 'UNSTABLE'. This special casing of internal features is going to be removed, so prepare for that by renaming to 'features'. Using a fixed size type is also best practice for bit fields. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20250205123550.2754387-3-berrange@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
/*
|
|
* Policy for handling "funny" management interfaces
|
|
*
|
|
* Copyright (C) 2020 Red Hat, Inc.
|
|
*
|
|
* Authors:
|
|
* Markus Armbruster <armbru@redhat.com>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or
|
|
* later. See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef QAPI_COMPAT_POLICY_H
|
|
#define QAPI_COMPAT_POLICY_H
|
|
|
|
#include "qapi/error.h"
|
|
#include "qapi/qapi-types-compat.h"
|
|
|
|
extern CompatPolicy compat_policy;
|
|
|
|
bool compat_policy_input_ok(uint64_t features,
|
|
const CompatPolicy *policy,
|
|
ErrorClass error_class,
|
|
const char *kind, const char *name,
|
|
Error **errp);
|
|
|
|
/*
|
|
* Create a QObject input visitor for @obj for use with QMP
|
|
*
|
|
* This is like qobject_input_visitor_new(), except it obeys the
|
|
* policy for handling deprecated management interfaces set with
|
|
* -compat.
|
|
*/
|
|
Visitor *qobject_input_visitor_new_qmp(QObject *obj);
|
|
|
|
/*
|
|
* Create a QObject output visitor for @obj for use with QMP
|
|
*
|
|
* This is like qobject_output_visitor_new(), except it obeys the
|
|
* policy for handling deprecated management interfaces set with
|
|
* -compat.
|
|
*/
|
|
Visitor *qobject_output_visitor_new_qmp(QObject **result);
|
|
|
|
#endif
|