meson: remove dead dictionary access
[qemu/ar7.git] / include / qapi / compat-policy.h
blob8b7b25c0b5ad37106d793e94d063a34fcc2560df
1 /*
2 * Policy for handling "funny" management interfaces
4 * Copyright (C) 2020 Red Hat, Inc.
6 * Authors:
7 * Markus Armbruster <armbru@redhat.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or
10 * later. See the COPYING file in the top-level directory.
13 #ifndef QAPI_COMPAT_POLICY_H
14 #define QAPI_COMPAT_POLICY_H
16 #include "qapi/error.h"
17 #include "qapi/qapi-types-compat.h"
19 extern CompatPolicy compat_policy;
21 bool compat_policy_input_ok(unsigned special_features,
22 const CompatPolicy *policy,
23 ErrorClass error_class,
24 const char *kind, const char *name,
25 Error **errp);
28 * Create a QObject input visitor for @obj for use with QMP
30 * This is like qobject_input_visitor_new(), except it obeys the
31 * policy for handling deprecated management interfaces set with
32 * -compat.
34 Visitor *qobject_input_visitor_new_qmp(QObject *obj);
37 * Create a QObject output visitor for @obj for use with QMP
39 * This is like qobject_output_visitor_new(), except it obeys the
40 * policy for handling deprecated management interfaces set with
41 * -compat.
43 Visitor *qobject_output_visitor_new_qmp(QObject **result);
45 #endif