1/* AUTOMATICALLY GENERATED, DO NOT MODIFY */
2
3/*
4 * Built-in 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_BUILTIN_TYPES_H
14#define QAPI_BUILTIN_TYPES_H
15
16#include "qapi/util.h"
17
18typedef struct strList strList;
19
20typedef struct numberList numberList;
21
22typedef struct intList intList;
23
24typedef struct int8List int8List;
25
26typedef struct int16List int16List;
27
28typedef struct int32List int32List;
29
30typedef struct int64List int64List;
31
32typedef struct uint8List uint8List;
33
34typedef struct uint16List uint16List;
35
36typedef struct uint32List uint32List;
37
38typedef struct uint64List uint64List;
39
40typedef struct sizeList sizeList;
41
42typedef struct boolList boolList;
43
44typedef struct anyList anyList;
45
46typedef struct nullList nullList;
47
48typedef enum QType {
49 QTYPE_NONE,
50 QTYPE_QNULL,
51 QTYPE_QNUM,
52 QTYPE_QSTRING,
53 QTYPE_QDICT,
54 QTYPE_QLIST,
55 QTYPE_QBOOL,
56 QTYPE__MAX,
57} QType;
58
59#define QType_str(val) \
60 qapi_enum_lookup(&QType_lookup, (val))
61
62extern const QEnumLookup QType_lookup;
63
64struct strList {
65 strList *next;
66 char *value;
67};
68
69void qapi_free_strList(strList *obj);
70
71struct numberList {
72 numberList *next;
73 double value;
74};
75
76void qapi_free_numberList(numberList *obj);
77
78struct intList {
79 intList *next;
80 int64_t value;
81};
82
83void qapi_free_intList(intList *obj);
84
85struct int8List {
86 int8List *next;
87 int8_t value;
88};
89
90void qapi_free_int8List(int8List *obj);
91
92struct int16List {
93 int16List *next;
94 int16_t value;
95};
96
97void qapi_free_int16List(int16List *obj);
98
99struct int32List {
100 int32List *next;
101 int32_t value;
102};
103
104void qapi_free_int32List(int32List *obj);
105
106struct int64List {
107 int64List *next;
108 int64_t value;
109};
110
111void qapi_free_int64List(int64List *obj);
112
113struct uint8List {
114 uint8List *next;
115 uint8_t value;
116};
117
118void qapi_free_uint8List(uint8List *obj);
119
120struct uint16List {
121 uint16List *next;
122 uint16_t value;
123};
124
125void qapi_free_uint16List(uint16List *obj);
126
127struct uint32List {
128 uint32List *next;
129 uint32_t value;
130};
131
132void qapi_free_uint32List(uint32List *obj);
133
134struct uint64List {
135 uint64List *next;
136 uint64_t value;
137};
138
139void qapi_free_uint64List(uint64List *obj);
140
141struct sizeList {
142 sizeList *next;
143 uint64_t value;
144};
145
146void qapi_free_sizeList(sizeList *obj);
147
148struct boolList {
149 boolList *next;
150 bool value;
151};
152
153void qapi_free_boolList(boolList *obj);
154
155struct anyList {
156 anyList *next;
157 QObject *value;
158};
159
160void qapi_free_anyList(anyList *obj);
161
162struct nullList {
163 nullList *next;
164 QNull *value;
165};
166
167void qapi_free_nullList(nullList *obj);
168
169#endif /* QAPI_BUILTIN_TYPES_H */
170