This repository has been archived by the owner on Jan 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
/
error_compat.h
235 lines (159 loc) · 4.04 KB
/
error_compat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
/*
* This file is part of the libvirt-go project
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* Copyright (c) 2013 Alex Zorin
* Copyright (C) 2016 Red Hat, Inc.
*
*/
#ifndef LIBVIRT_GO_ERROR_COMPAT_H__
#define LIBVIRT_GO_ERROR_COMPAT_H__
/* 1.2.2 */
#ifndef VIR_FROM_BHYVE
#define VIR_FROM_BHYVE 57
#endif
/* 1.2.3 */
#ifndef VIR_FROM_CRYPTO
#define VIR_FROM_CRYPTO 58
#endif
/* 1.2.4 */
#ifndef VIR_FROM_FIREWALL
#define VIR_FROM_FIREWALL 59
#endif
/* 1.2.6 */
#ifndef VIR_ERR_CPU_INCOMPATIBLE
#define VIR_ERR_CPU_INCOMPATIBLE 91
#endif
/* 1.2.9 */
#ifndef VIR_FROM_POLKIT
#define VIR_FROM_POLKIT 60
#endif
/* 1.2.12 */
#ifndef VIR_ERR_XML_INVALID_SCHEMA
#define VIR_ERR_XML_INVALID_SCHEMA 92
#endif
/* 1.2.14 */
#ifndef VIR_FROM_THREAD
#define VIR_FROM_THREAD 61
#endif
/* 1.2.17 */
#ifndef VIR_FROM_ADMIN
#define VIR_FROM_ADMIN 62
#endif
/* 1.2.18 */
#ifndef VIR_ERR_MIGRATE_FINISH_OK
#define VIR_ERR_MIGRATE_FINISH_OK 93
#endif
/* 1.3.0 */
#ifndef VIR_FROM_LOGGING
#define VIR_FROM_LOGGING 63
#endif
/* 1.3.2 */
#ifndef VIR_FROM_XENXL
#define VIR_FROM_XENXL 64
#endif
/* 1.3.3 */
#ifndef VIR_FROM_PERF
#define VIR_FROM_PERF 65
#endif
#ifndef VIR_ERR_AUTH_UNAVAILABLE
#define VIR_ERR_AUTH_UNAVAILABLE 94
#endif
#ifndef VIR_ERR_NO_SERVER
#define VIR_ERR_NO_SERVER 95
#endif
/* 1.3.5 */
#ifndef VIR_ERR_NO_CLIENT
#define VIR_ERR_NO_CLIENT 96
#endif
/* 2.3.0 */
#ifndef VIR_ERR_AGENT_UNSYNCED
#define VIR_ERR_AGENT_UNSYNCED 97
#endif
/* 2.5.0 */
#ifndef VIR_ERR_LIBSSH
#define VIR_ERR_LIBSSH 98
#endif
#ifndef VIR_FROM_LIBSSH
#define VIR_FROM_LIBSSH 66
#endif
/* 3.7.0 */
#ifndef VIR_FROM_RESCTRL
#define VIR_FROM_RESCTRL 67
#endif
/* 4.1.0 */
#ifndef VIR_ERR_DEVICE_MISSING
#define VIR_ERR_DEVICE_MISSING 99
#endif
/* 4.5.0 */
#ifndef VIR_ERR_INVALID_NWFILTER_BINDING
#define VIR_ERR_INVALID_NWFILTER_BINDING 100
#endif
#ifndef VIR_ERR_NO_NWFILTER_BINDING
#define VIR_ERR_NO_NWFILTER_BINDING 101
#endif
/* 5.1.0 */
#ifndef VIR_FROM_FIREWALLD
#define VIR_FROM_FIREWALLD 68
#endif
/* 5.2.0 */
#ifndef VIR_ERR_INVALID_DOMAIN_CHECKPOINT
#define VIR_ERR_INVALID_DOMAIN_CHECKPOINT 102
#endif
#ifndef VIR_ERR_NO_DOMAIN_CHECKPOINT
#define VIR_ERR_NO_DOMAIN_CHECKPOINT 103
#endif
#ifndef VIR_ERR_NO_DOMAIN_BACKUP
#define VIR_ERR_NO_DOMAIN_BACKUP 104
#endif
#ifndef VIR_FROM_DOMAIN_CHECKPOINT
#define VIR_FROM_DOMAIN_CHECKPOINT 69
#endif
/* 5.5.0 */
#ifndef VIR_ERR_INVALID_NETWORK_PORT
#define VIR_ERR_INVALID_NETWORK_PORT 105
#endif
#ifndef VIR_ERR_NETWORK_PORT_EXIST
#define VIR_ERR_NETWORK_PORT_EXIST 106
#endif
#ifndef VIR_ERR_NO_NETWORK_PORT
#define VIR_ERR_NO_NETWORK_PORT 107
#endif
/* 5.6.0 */
#ifndef VIR_FROM_TPM
#define VIR_FROM_TPM 70
#endif
/* 5.10.0 */
#ifndef VIR_FROM_BPF
#define VIR_FROM_BPF 71
#endif
/* 6.1.0 */
#ifndef VIR_ERR_NO_HOSTNAME
#define VIR_ERR_NO_HOSTNAME 108
#endif
/* 6.10.0 */
#ifndef VIR_ERR_CHECKPOINT_INCONSISTENT
#define VIR_ERR_CHECKPOINT_INCONSISTENT 109
#endif
/* 7.0.0 */
#ifndef VIR_ERR_MULTIPLE_DOMAINS
#define VIR_ERR_MULTIPLE_DOMAINS 110
#endif
#endif /* LIBVIRT_GO_ERROR_COMPAT_H__ */