17b1b5d19SPaolo Bonzini /* 27b1b5d19SPaolo Bonzini * Dealloc Visitor 37b1b5d19SPaolo Bonzini * 47b1b5d19SPaolo Bonzini * Copyright IBM, Corp. 2011 57b1b5d19SPaolo Bonzini * 67b1b5d19SPaolo Bonzini * Authors: 77b1b5d19SPaolo Bonzini * Michael Roth <mdroth@linux.vnet.ibm.com> 87b1b5d19SPaolo Bonzini * 97b1b5d19SPaolo Bonzini * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 107b1b5d19SPaolo Bonzini * See the COPYING.LIB file in the top-level directory. 117b1b5d19SPaolo Bonzini * 127b1b5d19SPaolo Bonzini */ 137b1b5d19SPaolo Bonzini 147b1b5d19SPaolo Bonzini #ifndef QAPI_DEALLOC_VISITOR_H 157b1b5d19SPaolo Bonzini #define QAPI_DEALLOC_VISITOR_H 167b1b5d19SPaolo Bonzini 177b1b5d19SPaolo Bonzini #include "qapi/visitor.h" 187b1b5d19SPaolo Bonzini 197b1b5d19SPaolo Bonzini typedef struct QapiDeallocVisitor QapiDeallocVisitor; 207b1b5d19SPaolo Bonzini 21adfb264cSEric Blake /* 22adfb264cSEric Blake * The dealloc visitor is primarly used only by generated 23adfb264cSEric Blake * qapi_free_FOO() functions, and is the only visitor designed to work 24adfb264cSEric Blake * correctly in the face of a partially-constructed QAPI tree. 25adfb264cSEric Blake */ 26*2c0ef9f4SEric Blake Visitor *qapi_dealloc_visitor_new(void); 277b1b5d19SPaolo Bonzini 287b1b5d19SPaolo Bonzini #endif 29