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-dump.h"
16#include "qapi-visit-dump.h"
17
18const QEnumLookup DumpGuestMemoryFormat_lookup = {
19 .array = (const char *const[]) {
20 [DUMP_GUEST_MEMORY_FORMAT_ELF] = "elf",
21 [DUMP_GUEST_MEMORY_FORMAT_KDUMP_ZLIB] = "kdump-zlib",
22 [DUMP_GUEST_MEMORY_FORMAT_KDUMP_LZO] = "kdump-lzo",
23 [DUMP_GUEST_MEMORY_FORMAT_KDUMP_SNAPPY] = "kdump-snappy",
24 [DUMP_GUEST_MEMORY_FORMAT_WIN_DMP] = "win-dmp",
25 },
26 .size = DUMP_GUEST_MEMORY_FORMAT__MAX
27};
28
29const QEnumLookup DumpStatus_lookup = {
30 .array = (const char *const[]) {
31 [DUMP_STATUS_NONE] = "none",
32 [DUMP_STATUS_ACTIVE] = "active",
33 [DUMP_STATUS_COMPLETED] = "completed",
34 [DUMP_STATUS_FAILED] = "failed",
35 },
36 .size = DUMP_STATUS__MAX
37};
38
39void qapi_free_DumpQueryResult(DumpQueryResult *obj)
40{
41 Visitor *v;
42
43 if (!obj) {
44 return;
45 }
46
47 v = qapi_dealloc_visitor_new();
48 visit_type_DumpQueryResult(v, NULL, &obj, NULL);
49 visit_free(v);
50}
51
52void qapi_free_DumpGuestMemoryFormatList(DumpGuestMemoryFormatList *obj)
53{
54 Visitor *v;
55
56 if (!obj) {
57 return;
58 }
59
60 v = qapi_dealloc_visitor_new();
61 visit_type_DumpGuestMemoryFormatList(v, NULL, &obj, NULL);
62 visit_free(v);
63}
64
65void qapi_free_DumpGuestMemoryCapability(DumpGuestMemoryCapability *obj)
66{
67 Visitor *v;
68
69 if (!obj) {
70 return;
71 }
72
73 v = qapi_dealloc_visitor_new();
74 visit_type_DumpGuestMemoryCapability(v, NULL, &obj, NULL);
75 visit_free(v);
76}
77
78/* Dummy declaration to prevent empty .o file */
79char qapi_dummy_qapi_types_dump_c;
80