1 | /* AUTOMATICALLY GENERATED, DO NOT MODIFY */ |
2 | |
3 | /* |
4 | * Schema-defined QAPI types |
5 | * |
6 | * Copyright IBM, Corp. 2011 |
7 | * Copyright (c) 2013-2018 Red Hat Inc. |
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 | #include "qemu/osdep.h" |
14 | #include "qapi/dealloc-visitor.h" |
15 | #include "qapi-types-qom.h" |
16 | #include "qapi-visit-qom.h" |
17 | |
18 | void qapi_free_ObjectPropertyInfo(ObjectPropertyInfo *obj) |
19 | { |
20 | Visitor *v; |
21 | |
22 | if (!obj) { |
23 | return; |
24 | } |
25 | |
26 | v = qapi_dealloc_visitor_new(); |
27 | visit_type_ObjectPropertyInfo(v, NULL, &obj, NULL); |
28 | visit_free(v); |
29 | } |
30 | |
31 | void qapi_free_ObjectPropertyInfoList(ObjectPropertyInfoList *obj) |
32 | { |
33 | Visitor *v; |
34 | |
35 | if (!obj) { |
36 | return; |
37 | } |
38 | |
39 | v = qapi_dealloc_visitor_new(); |
40 | visit_type_ObjectPropertyInfoList(v, NULL, &obj, NULL); |
41 | visit_free(v); |
42 | } |
43 | |
44 | void qapi_free_ObjectTypeInfo(ObjectTypeInfo *obj) |
45 | { |
46 | Visitor *v; |
47 | |
48 | if (!obj) { |
49 | return; |
50 | } |
51 | |
52 | v = qapi_dealloc_visitor_new(); |
53 | visit_type_ObjectTypeInfo(v, NULL, &obj, NULL); |
54 | visit_free(v); |
55 | } |
56 | |
57 | void qapi_free_ObjectTypeInfoList(ObjectTypeInfoList *obj) |
58 | { |
59 | Visitor *v; |
60 | |
61 | if (!obj) { |
62 | return; |
63 | } |
64 | |
65 | v = qapi_dealloc_visitor_new(); |
66 | visit_type_ObjectTypeInfoList(v, NULL, &obj, NULL); |
67 | visit_free(v); |
68 | } |
69 | |
70 | /* Dummy declaration to prevent empty .o file */ |
71 | char qapi_dummy_qapi_types_qom_c; |
72 | |