virtio: add check for descriptor's mapped address
[qemu/ar7.git] / include / qapi / dealloc-visitor.h
blobb3e5c85fd813c380d2474d8337809db4c9351cb3
1 /*
2 * Dealloc Visitor
4 * Copyright IBM, Corp. 2011
6 * Authors:
7 * Michael Roth <mdroth@linux.vnet.ibm.com>
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.
14 #ifndef QAPI_DEALLOC_VISITOR_H
15 #define QAPI_DEALLOC_VISITOR_H
17 #include "qapi/visitor.h"
19 typedef struct QapiDeallocVisitor QapiDeallocVisitor;
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.
26 Visitor *qapi_dealloc_visitor_new(void);
28 #endif