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