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#ifndef QAPI_TYPES_DUMP_H
14#define QAPI_TYPES_DUMP_H
15
16#include "qapi/qapi-builtin-types.h"
17
18typedef enum DumpGuestMemoryFormat {
19 DUMP_GUEST_MEMORY_FORMAT_ELF,
20 DUMP_GUEST_MEMORY_FORMAT_KDUMP_ZLIB,
21 DUMP_GUEST_MEMORY_FORMAT_KDUMP_LZO,
22 DUMP_GUEST_MEMORY_FORMAT_KDUMP_SNAPPY,
23 DUMP_GUEST_MEMORY_FORMAT_WIN_DMP,
24 DUMP_GUEST_MEMORY_FORMAT__MAX,
25} DumpGuestMemoryFormat;
26
27#define DumpGuestMemoryFormat_str(val) \
28 qapi_enum_lookup(&DumpGuestMemoryFormat_lookup, (val))
29
30extern const QEnumLookup DumpGuestMemoryFormat_lookup;
31
32typedef struct q_obj_dump_guest_memory_arg q_obj_dump_guest_memory_arg;
33
34typedef enum DumpStatus {
35 DUMP_STATUS_NONE,
36 DUMP_STATUS_ACTIVE,
37 DUMP_STATUS_COMPLETED,
38 DUMP_STATUS_FAILED,
39 DUMP_STATUS__MAX,
40} DumpStatus;
41
42#define DumpStatus_str(val) \
43 qapi_enum_lookup(&DumpStatus_lookup, (val))
44
45extern const QEnumLookup DumpStatus_lookup;
46
47typedef struct DumpQueryResult DumpQueryResult;
48
49typedef struct q_obj_DUMP_COMPLETED_arg q_obj_DUMP_COMPLETED_arg;
50
51typedef struct DumpGuestMemoryFormatList DumpGuestMemoryFormatList;
52
53typedef struct DumpGuestMemoryCapability DumpGuestMemoryCapability;
54
55struct q_obj_dump_guest_memory_arg {
56 bool paging;
57 char *protocol;
58 bool has_detach;
59 bool detach;
60 bool has_begin;
61 int64_t begin;
62 bool has_length;
63 int64_t length;
64 bool has_format;
65 DumpGuestMemoryFormat format;
66};
67
68struct DumpQueryResult {
69 DumpStatus status;
70 int64_t completed;
71 int64_t total;
72};
73
74void qapi_free_DumpQueryResult(DumpQueryResult *obj);
75
76struct q_obj_DUMP_COMPLETED_arg {
77 DumpQueryResult *result;
78 bool has_error;
79 char *error;
80};
81
82struct DumpGuestMemoryFormatList {
83 DumpGuestMemoryFormatList *next;
84 DumpGuestMemoryFormat value;
85};
86
87void qapi_free_DumpGuestMemoryFormatList(DumpGuestMemoryFormatList *obj);
88
89struct DumpGuestMemoryCapability {
90 DumpGuestMemoryFormatList *formats;
91};
92
93void qapi_free_DumpGuestMemoryCapability(DumpGuestMemoryCapability *obj);
94
95#endif /* QAPI_TYPES_DUMP_H */
96