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-block.h"
16#include "qapi-visit-block.h"
17
18const QEnumLookup BiosAtaTranslation_lookup = {
19 .array = (const char *const[]) {
20 [BIOS_ATA_TRANSLATION_AUTO] = "auto",
21 [BIOS_ATA_TRANSLATION_NONE] = "none",
22 [BIOS_ATA_TRANSLATION_LBA] = "lba",
23 [BIOS_ATA_TRANSLATION_LARGE] = "large",
24 [BIOS_ATA_TRANSLATION_RECHS] = "rechs",
25 },
26 .size = BIOS_ATA_TRANSLATION__MAX
27};
28
29const QEnumLookup FloppyDriveType_lookup = {
30 .array = (const char *const[]) {
31 [FLOPPY_DRIVE_TYPE_144] = "144",
32 [FLOPPY_DRIVE_TYPE_288] = "288",
33 [FLOPPY_DRIVE_TYPE_120] = "120",
34 [FLOPPY_DRIVE_TYPE_NONE] = "none",
35 [FLOPPY_DRIVE_TYPE_AUTO] = "auto",
36 },
37 .size = FLOPPY_DRIVE_TYPE__MAX
38};
39
40void qapi_free_BlockdevSnapshotInternal(BlockdevSnapshotInternal *obj)
41{
42 Visitor *v;
43
44 if (!obj) {
45 return;
46 }
47
48 v = qapi_dealloc_visitor_new();
49 visit_type_BlockdevSnapshotInternal(v, NULL, &obj, NULL);
50 visit_free(v);
51}
52
53void qapi_free_PRManagerInfo(PRManagerInfo *obj)
54{
55 Visitor *v;
56
57 if (!obj) {
58 return;
59 }
60
61 v = qapi_dealloc_visitor_new();
62 visit_type_PRManagerInfo(v, NULL, &obj, NULL);
63 visit_free(v);
64}
65
66void qapi_free_PRManagerInfoList(PRManagerInfoList *obj)
67{
68 Visitor *v;
69
70 if (!obj) {
71 return;
72 }
73
74 v = qapi_dealloc_visitor_new();
75 visit_type_PRManagerInfoList(v, NULL, &obj, NULL);
76 visit_free(v);
77}
78
79const QEnumLookup NbdServerRemoveMode_lookup = {
80 .array = (const char *const[]) {
81 [NBD_SERVER_REMOVE_MODE_SAFE] = "safe",
82 [NBD_SERVER_REMOVE_MODE_HARD] = "hard",
83 },
84 .size = NBD_SERVER_REMOVE_MODE__MAX
85};
86
87const QEnumLookup QuorumOpType_lookup = {
88 .array = (const char *const[]) {
89 [QUORUM_OP_TYPE_READ] = "read",
90 [QUORUM_OP_TYPE_WRITE] = "write",
91 [QUORUM_OP_TYPE_FLUSH] = "flush",
92 },
93 .size = QUORUM_OP_TYPE__MAX
94};
95
96/* Dummy declaration to prevent empty .o file */
97char qapi_dummy_qapi_types_block_c;
98