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-misc-target.h" |
16 | #include "qapi-visit-misc-target.h" |
17 | |
18 | #if defined(TARGET_I386) |
19 | const QEnumLookup SevState_lookup = { |
20 | .array = (const char *const[]) { |
21 | [SEV_STATE_UNINIT] = "uninit" , |
22 | [SEV_STATE_LAUNCH_UPDATE] = "launch-update" , |
23 | [SEV_STATE_LAUNCH_SECRET] = "launch-secret" , |
24 | [SEV_STATE_RUNNING] = "running" , |
25 | [SEV_STATE_SEND_UPDATE] = "send-update" , |
26 | [SEV_STATE_RECEIVE_UPDATE] = "receive-update" , |
27 | }, |
28 | .size = SEV_STATE__MAX |
29 | }; |
30 | #endif /* defined(TARGET_I386) */ |
31 | |
32 | #if defined(TARGET_I386) |
33 | void qapi_free_SevInfo(SevInfo *obj) |
34 | { |
35 | Visitor *v; |
36 | |
37 | if (!obj) { |
38 | return; |
39 | } |
40 | |
41 | v = qapi_dealloc_visitor_new(); |
42 | visit_type_SevInfo(v, NULL, &obj, NULL); |
43 | visit_free(v); |
44 | } |
45 | #endif /* defined(TARGET_I386) */ |
46 | |
47 | #if defined(TARGET_I386) |
48 | void qapi_free_SevLaunchMeasureInfo(SevLaunchMeasureInfo *obj) |
49 | { |
50 | Visitor *v; |
51 | |
52 | if (!obj) { |
53 | return; |
54 | } |
55 | |
56 | v = qapi_dealloc_visitor_new(); |
57 | visit_type_SevLaunchMeasureInfo(v, NULL, &obj, NULL); |
58 | visit_free(v); |
59 | } |
60 | #endif /* defined(TARGET_I386) */ |
61 | |
62 | #if defined(TARGET_I386) |
63 | void qapi_free_SevCapability(SevCapability *obj) |
64 | { |
65 | Visitor *v; |
66 | |
67 | if (!obj) { |
68 | return; |
69 | } |
70 | |
71 | v = qapi_dealloc_visitor_new(); |
72 | visit_type_SevCapability(v, NULL, &obj, NULL); |
73 | visit_free(v); |
74 | } |
75 | #endif /* defined(TARGET_I386) */ |
76 | |
77 | #if defined(TARGET_ARM) |
78 | void qapi_free_GICCapability(GICCapability *obj) |
79 | { |
80 | Visitor *v; |
81 | |
82 | if (!obj) { |
83 | return; |
84 | } |
85 | |
86 | v = qapi_dealloc_visitor_new(); |
87 | visit_type_GICCapability(v, NULL, &obj, NULL); |
88 | visit_free(v); |
89 | } |
90 | #endif /* defined(TARGET_ARM) */ |
91 | |
92 | #if defined(TARGET_ARM) |
93 | void qapi_free_GICCapabilityList(GICCapabilityList *obj) |
94 | { |
95 | Visitor *v; |
96 | |
97 | if (!obj) { |
98 | return; |
99 | } |
100 | |
101 | v = qapi_dealloc_visitor_new(); |
102 | visit_type_GICCapabilityList(v, NULL, &obj, NULL); |
103 | visit_free(v); |
104 | } |
105 | #endif /* defined(TARGET_ARM) */ |
106 | |
107 | /* Dummy declaration to prevent empty .o file */ |
108 | char qapi_dummy_qapi_types_misc_target_c; |
109 | |