osdep: include glib-compat.h before other QEMU headers
[qemu/ar7.git] / include / qapi / compat-policy.h
blob1083f951228c47741b78591a2c96c6594a912b06
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/qapi-types-compat.h"
18 extern CompatPolicy compat_policy;
21 * Create a QObject input visitor for @obj for use with QMP
23 * This is like qobject_input_visitor_new(), except it obeys the
24 * policy for handling deprecated management interfaces set with
25 * -compat.
27 Visitor *qobject_input_visitor_new_qmp(QObject *obj);
30 * Create a QObject output visitor for @obj for use with QMP
32 * This is like qobject_output_visitor_new(), except it obeys the
33 * policy for handling deprecated management interfaces set with
34 * -compat.
36 Visitor *qobject_output_visitor_new_qmp(QObject **result);
38 #endif