xref: /openbmc/qemu/include/qapi/compat-policy.h (revision d177892d)
1 /*
2  * Policy for handling "funny" management interfaces
3  *
4  * Copyright (C) 2020 Red Hat, Inc.
5  *
6  * Authors:
7  *  Markus Armbruster <armbru@redhat.com>
8  *
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.
11  */
12 
13 #ifndef QAPI_COMPAT_POLICY_H
14 #define QAPI_COMPAT_POLICY_H
15 
16 #include "qapi/qapi-types-compat.h"
17 
18 extern CompatPolicy compat_policy;
19 
20 /*
21  * Create a QObject input visitor for @obj for use with QMP
22  *
23  * This is like qobject_input_visitor_new(), except it obeys the
24  * policy for handling deprecated management interfaces set with
25  * -compat.
26  */
27 Visitor *qobject_input_visitor_new_qmp(QObject *obj);
28 
29 /*
30  * Create a QObject output visitor for @obj for use with QMP
31  *
32  * This is like qobject_output_visitor_new(), except it obeys the
33  * policy for handling deprecated management interfaces set with
34  * -compat.
35  */
36 Visitor *qobject_output_visitor_new_qmp(QObject **result);
37 
38 #endif
39