blob: cde328da9f73b1e2fe78b20de2ef16d94b9aac34 [file] [log] [blame]
Michael Rothc40cc0a2011-07-19 14:50:33 -05001/*
2 * Input Visitor
3 *
4 * Copyright IBM, Corp. 2011
5 *
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
8 *
9 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
10 * See the COPYING.LIB file in the top-level directory.
11 *
12 */
13
Daniel P. Berrangeb3db2112016-09-30 15:45:27 +010014#ifndef QOBJECT_INPUT_VISITOR_H
15#define QOBJECT_INPUT_VISITOR_H
Michael Rothc40cc0a2011-07-19 14:50:33 -050016
Paolo Bonzini7b1b5d12012-12-17 18:19:43 +010017#include "qapi/visitor.h"
18#include "qapi/qmp/qobject.h"
Michael Rothc40cc0a2011-07-19 14:50:33 -050019
Daniel P. Berrange09e68362016-09-30 15:45:27 +010020typedef struct QObjectInputVisitor QObjectInputVisitor;
Michael Rothc40cc0a2011-07-19 14:50:33 -050021
Eric Blakefc471c12016-04-28 15:45:13 -060022/*
Daniel P. Berrangeb3db2112016-09-30 15:45:27 +010023 * Return a new input visitor that converts a QObject to a QAPI object.
Eric Blakefc471c12016-04-28 15:45:13 -060024 *
25 * Set @strict to reject a parse that doesn't consume all keys of a
26 * dictionary; otherwise excess input is ignored.
27 */
Daniel P. Berrange09e68362016-09-30 15:45:27 +010028Visitor *qobject_input_visitor_new(QObject *obj, bool strict);
Michael Rothc40cc0a2011-07-19 14:50:33 -050029
30#endif