aboutsummaryrefslogtreecommitdiff
path: root/include/qapi/compat-policy.h
blob: 1083f951228c47741b78591a2c96c6594a912b06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * 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/qapi-types-compat.h"

extern CompatPolicy compat_policy;

/*
 * 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