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 output visitor for @obj for use with QMP 22 * 23 * This is like qobject_output_visitor_new(), except it obeys the 24 * policy for handling deprecated management interfaces set with 25 * -compat. 26 */ 27 Visitor *qobject_output_visitor_new_qmp(QObject **result); 28 29 #endif 30