blob: c36715fdf3c7dcb755864c75af0c1e3b446be3a6 [file] [log] [blame]
Michael Rothd5f3c292011-07-19 14:50:35 -05001/*
2 * Dealloc Visitor
3 *
4 * Copyright IBM, Corp. 2011
5 *
6 * Authors:
7 * Michael Roth <mdroth@linux.vnet.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
14#ifndef QAPI_DEALLOC_VISITOR_H
15#define QAPI_DEALLOC_VISITOR_H
16
Paolo Bonzini7b1b5d12012-12-17 18:19:43 +010017#include "qapi/visitor.h"
Michael Rothd5f3c292011-07-19 14:50:35 -050018
19typedef struct QapiDeallocVisitor QapiDeallocVisitor;
20
Eric Blakeadfb2642016-04-28 15:45:20 -060021/*
Stefan Weil5bb85902016-11-19 20:47:15 +010022 * The dealloc visitor is primarily used only by generated
Eric Blakeadfb2642016-04-28 15:45:20 -060023 * qapi_free_FOO() functions, and is the only visitor designed to work
24 * correctly in the face of a partially-constructed QAPI tree.
25 */
Eric Blake2c0ef9f2016-06-09 10:48:35 -060026Visitor *qapi_dealloc_visitor_new(void);
Michael Rothd5f3c292011-07-19 14:50:35 -050027
28#endif