]> git.proxmox.com Git - mirror_qemu.git/blame - include/qapi/dealloc-visitor.h
Merge remote-tracking branch 'remotes/riku/tags/pull-linux-user-20160527' into staging
[mirror_qemu.git] / include / qapi / dealloc-visitor.h
CommitLineData
d5f3c29c
MR
1/*
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
7b1b5d19 17#include "qapi/visitor.h"
d5f3c29c
MR
18
19typedef struct QapiDeallocVisitor QapiDeallocVisitor;
20
adfb264c
EB
21/*
22 * The dealloc visitor is primarly used only by generated
23 * qapi_free_FOO() functions, and is the only visitor designed to work
24 * correctly in the face of a partially-constructed QAPI tree.
25 */
d5f3c29c
MR
26QapiDeallocVisitor *qapi_dealloc_visitor_new(void);
27void qapi_dealloc_visitor_cleanup(QapiDeallocVisitor *d);
28
29Visitor *qapi_dealloc_get_visitor(QapiDeallocVisitor *v);
30
31#endif