diff options
author | Richard Henderson | 2021-10-30 04:42:36 +0200 |
---|---|---|
committer | Richard Henderson | 2021-10-30 04:42:36 +0200 |
commit | dd61b91c080cdfba1360a5ea1e4693fffb3445b0 (patch) | |
tree | f5b3cec0b0af415826cdf979ba49fe7e6fc0f8dc /include/qapi/util.h | |
parent | Merge remote-tracking branch 'remotes/ehabkost/tags/x86-next-pull-request' in... (diff) | |
parent | qapi: Extend -compat to set policy for unstable interfaces (diff) | |
download | qemu-dd61b91c080cdfba1360a5ea1e4693fffb3445b0.tar.gz qemu-dd61b91c080cdfba1360a5ea1e4693fffb3445b0.tar.xz qemu-dd61b91c080cdfba1360a5ea1e4693fffb3445b0.zip |
Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2021-10-29' into staging
QAPI patches patches for 2021-10-29
# gpg: Signature made Fri 29 Oct 2021 12:28:53 PM PDT
# gpg: using RSA key 354BC8B3D7EB2A6B68674E5F3870B400EB918653
# gpg: issuer "armbru@redhat.com"
# gpg: Good signature from "Markus Armbruster <armbru@redhat.com>" [full]
# gpg: aka "Markus Armbruster <armbru@pond.sub.org>" [full]
* remotes/armbru/tags/pull-qapi-2021-10-29:
qapi: Extend -compat to set policy for unstable interfaces
qapi: Factor out compat_policy_input_ok()
qapi: Generalize enum member policy checking
qapi: Generalize command policy checking
qapi: Generalize struct member policy checking
qapi: Tools for sets of special feature flags in generated code
qapi: Eliminate QCO_NO_OPTIONS for a slight simplification
qapi: Mark unstable QMP parts with feature 'unstable'
qapi: New special feature flag "unstable"
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/qapi/util.h')
-rw-r--r-- | include/qapi/util.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/qapi/util.h b/include/qapi/util.h index 257c600f99..81a2b13a33 100644 --- a/include/qapi/util.h +++ b/include/qapi/util.h @@ -11,12 +11,14 @@ #ifndef QAPI_UTIL_H #define QAPI_UTIL_H -/* QEnumLookup flags */ -#define QAPI_ENUM_DEPRECATED 1 +typedef enum { + QAPI_DEPRECATED, + QAPI_UNSTABLE, +} QapiSpecialFeature; typedef struct QEnumLookup { const char *const *array; - const unsigned char *const flags; + const unsigned char *const special_features; const int size; } QEnumLookup; |