-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlibvirt_generated_enums.h
3517 lines (3342 loc) · 103 KB
/
libvirt_generated_enums.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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* This file is part of the libvirt-go-module 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) 2022 Red Hat, Inc.
*
*/
/****************************************************************************
* THIS CODE HAS BEEN GENERATED. DO NOT CHANGE IT DIRECTLY *
****************************************************************************/
#pragma once
/* enum virBlkioParameterType */
# if !LIBVIR_CHECK_VERSION(0, 9, 0)
# define VIR_DOMAIN_BLKIO_PARAM_INT VIR_TYPED_PARAM_INT
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 0)
# define VIR_DOMAIN_BLKIO_PARAM_UINT VIR_TYPED_PARAM_UINT
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 0)
# define VIR_DOMAIN_BLKIO_PARAM_LLONG VIR_TYPED_PARAM_LLONG
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 0)
# define VIR_DOMAIN_BLKIO_PARAM_ULLONG VIR_TYPED_PARAM_ULLONG
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 0)
# define VIR_DOMAIN_BLKIO_PARAM_DOUBLE VIR_TYPED_PARAM_DOUBLE
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 0)
# define VIR_DOMAIN_BLKIO_PARAM_BOOLEAN VIR_TYPED_PARAM_BOOLEAN
# endif
/* enum virCPUCompareResult */
# if !LIBVIR_CHECK_VERSION(0, 7, 5)
# define VIR_CPU_COMPARE_ERROR -1
# endif
# if !LIBVIR_CHECK_VERSION(0, 7, 5)
# define VIR_CPU_COMPARE_INCOMPATIBLE 0
# endif
# if !LIBVIR_CHECK_VERSION(0, 7, 5)
# define VIR_CPU_COMPARE_IDENTICAL 1
# endif
# if !LIBVIR_CHECK_VERSION(0, 7, 5)
# define VIR_CPU_COMPARE_SUPERSET 2
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_CPU_COMPARE_LAST 3
# endif
/* enum virConnectBaselineCPUFlags */
# if !LIBVIR_CHECK_VERSION(1, 1, 2)
# define VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 14)
# define VIR_CONNECT_BASELINE_CPU_MIGRATABLE (1 << 1)
# endif
/* enum virConnectCloseReason */
# if !LIBVIR_CHECK_VERSION(0, 10, 0)
# define VIR_CONNECT_CLOSE_REASON_ERROR 0
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 0)
# define VIR_CONNECT_CLOSE_REASON_EOF 1
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 0)
# define VIR_CONNECT_CLOSE_REASON_KEEPALIVE 2
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 0)
# define VIR_CONNECT_CLOSE_REASON_CLIENT 3
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 0)
# define VIR_CONNECT_CLOSE_REASON_LAST 4
# endif
/* enum virConnectCompareCPUFlags */
# if !LIBVIR_CHECK_VERSION(1, 2, 6)
# define VIR_CONNECT_COMPARE_CPU_FAIL_INCOMPATIBLE (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(6, 9, 0)
# define VIR_CONNECT_COMPARE_CPU_VALIDATE_XML (1 << 1)
# endif
/* enum virConnectCredentialType */
# if !LIBVIR_CHECK_VERSION(0, 4, 1)
# define VIR_CRED_USERNAME 1
# endif
# if !LIBVIR_CHECK_VERSION(0, 4, 1)
# define VIR_CRED_AUTHNAME 2
# endif
# if !LIBVIR_CHECK_VERSION(0, 4, 1)
# define VIR_CRED_LANGUAGE 3
# endif
# if !LIBVIR_CHECK_VERSION(0, 4, 1)
# define VIR_CRED_CNONCE 4
# endif
# if !LIBVIR_CHECK_VERSION(0, 4, 1)
# define VIR_CRED_PASSPHRASE 5
# endif
# if !LIBVIR_CHECK_VERSION(0, 4, 1)
# define VIR_CRED_ECHOPROMPT 6
# endif
# if !LIBVIR_CHECK_VERSION(0, 4, 1)
# define VIR_CRED_NOECHOPROMPT 7
# endif
# if !LIBVIR_CHECK_VERSION(0, 4, 1)
# define VIR_CRED_REALM 8
# endif
# if !LIBVIR_CHECK_VERSION(0, 4, 1)
# define VIR_CRED_EXTERNAL 9
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_CRED_LAST 10
# endif
/* enum virConnectDomainEventAgentLifecycleReason */
# if !LIBVIR_CHECK_VERSION(1, 2, 11)
# define VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_UNKNOWN 0
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 11)
# define VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_DOMAIN_STARTED 1
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 11)
# define VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_CHANNEL 2
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 11)
# define VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_LAST 3
# endif
/* enum virConnectDomainEventAgentLifecycleState */
# if !LIBVIR_CHECK_VERSION(1, 2, 11)
# define VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_CONNECTED 1
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 11)
# define VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_DISCONNECTED 2
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 11)
# define VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_LAST 3
# endif
/* enum virConnectDomainEventBlockJobStatus */
# if !LIBVIR_CHECK_VERSION(0, 9, 4)
# define VIR_DOMAIN_BLOCK_JOB_COMPLETED 0
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 4)
# define VIR_DOMAIN_BLOCK_JOB_FAILED 1
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 12)
# define VIR_DOMAIN_BLOCK_JOB_CANCELED 2
# endif
# if !LIBVIR_CHECK_VERSION(1, 0, 0)
# define VIR_DOMAIN_BLOCK_JOB_READY 3
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_DOMAIN_BLOCK_JOB_LAST 4
# endif
/* enum virConnectDomainEventDiskChangeReason */
# if !LIBVIR_CHECK_VERSION(0, 9, 7)
# define VIR_DOMAIN_EVENT_DISK_CHANGE_MISSING_ON_START 0
# endif
# if !LIBVIR_CHECK_VERSION(1, 1, 2)
# define VIR_DOMAIN_EVENT_DISK_DROP_MISSING_ON_START 1
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_DOMAIN_EVENT_DISK_CHANGE_LAST 2
# endif
/* enum virConnectFlags */
# if !LIBVIR_CHECK_VERSION(0, 4, 1)
# define VIR_CONNECT_RO (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 7)
# define VIR_CONNECT_NO_ALIASES (1 << 1)
# endif
/* enum virConnectGetAllDomainStatsFlags */
# if !LIBVIR_CHECK_VERSION(1, 2, 8)
# define VIR_CONNECT_GET_ALL_DOMAINS_STATS_ACTIVE VIR_CONNECT_LIST_DOMAINS_ACTIVE
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 8)
# define VIR_CONNECT_GET_ALL_DOMAINS_STATS_INACTIVE VIR_CONNECT_LIST_DOMAINS_INACTIVE
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 8)
# define VIR_CONNECT_GET_ALL_DOMAINS_STATS_PERSISTENT VIR_CONNECT_LIST_DOMAINS_PERSISTENT
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 8)
# define VIR_CONNECT_GET_ALL_DOMAINS_STATS_TRANSIENT VIR_CONNECT_LIST_DOMAINS_TRANSIENT
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 8)
# define VIR_CONNECT_GET_ALL_DOMAINS_STATS_RUNNING VIR_CONNECT_LIST_DOMAINS_RUNNING
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 8)
# define VIR_CONNECT_GET_ALL_DOMAINS_STATS_PAUSED VIR_CONNECT_LIST_DOMAINS_PAUSED
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 8)
# define VIR_CONNECT_GET_ALL_DOMAINS_STATS_SHUTOFF VIR_CONNECT_LIST_DOMAINS_SHUTOFF
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 8)
# define VIR_CONNECT_GET_ALL_DOMAINS_STATS_OTHER VIR_CONNECT_LIST_DOMAINS_OTHER
# endif
# if !LIBVIR_CHECK_VERSION(4, 5, 0)
# define VIR_CONNECT_GET_ALL_DOMAINS_STATS_NOWAIT (1 << 29)
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 12)
# define VIR_CONNECT_GET_ALL_DOMAINS_STATS_BACKING (1 << 30)
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 8)
# define VIR_CONNECT_GET_ALL_DOMAINS_STATS_ENFORCE_STATS (1U << 31)
# endif
/* enum virConnectGetDomainCapabilitiesFlags */
# if !LIBVIR_CHECK_VERSION(11, 0, 0)
# define VIR_CONNECT_GET_DOMAIN_CAPABILITIES_DISABLE_DEPRECATED_FEATURES (1 << 0)
# endif
/* enum virConnectListAllDomainsFlags */
# if !LIBVIR_CHECK_VERSION(0, 9, 13)
# define VIR_CONNECT_LIST_DOMAINS_ACTIVE (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 13)
# define VIR_CONNECT_LIST_DOMAINS_INACTIVE (1 << 1)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 13)
# define VIR_CONNECT_LIST_DOMAINS_PERSISTENT (1 << 2)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 13)
# define VIR_CONNECT_LIST_DOMAINS_TRANSIENT (1 << 3)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 13)
# define VIR_CONNECT_LIST_DOMAINS_RUNNING (1 << 4)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 13)
# define VIR_CONNECT_LIST_DOMAINS_PAUSED (1 << 5)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 13)
# define VIR_CONNECT_LIST_DOMAINS_SHUTOFF (1 << 6)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 13)
# define VIR_CONNECT_LIST_DOMAINS_OTHER (1 << 7)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 13)
# define VIR_CONNECT_LIST_DOMAINS_MANAGEDSAVE (1 << 8)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 13)
# define VIR_CONNECT_LIST_DOMAINS_NO_MANAGEDSAVE (1 << 9)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 13)
# define VIR_CONNECT_LIST_DOMAINS_AUTOSTART (1 << 10)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 13)
# define VIR_CONNECT_LIST_DOMAINS_NO_AUTOSTART (1 << 11)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 13)
# define VIR_CONNECT_LIST_DOMAINS_HAS_SNAPSHOT (1 << 12)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 13)
# define VIR_CONNECT_LIST_DOMAINS_NO_SNAPSHOT (1 << 13)
# endif
# if !LIBVIR_CHECK_VERSION(5, 6, 0)
# define VIR_CONNECT_LIST_DOMAINS_HAS_CHECKPOINT (1 << 14)
# endif
# if !LIBVIR_CHECK_VERSION(5, 6, 0)
# define VIR_CONNECT_LIST_DOMAINS_NO_CHECKPOINT (1 << 15)
# endif
/* enum virConnectListAllInterfacesFlags */
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_INTERFACES_INACTIVE (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_INTERFACES_ACTIVE (1 << 1)
# endif
/* enum virConnectListAllNetworksFlags */
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_NETWORKS_INACTIVE (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_NETWORKS_ACTIVE (1 << 1)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_NETWORKS_PERSISTENT (1 << 2)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_NETWORKS_TRANSIENT (1 << 3)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_NETWORKS_AUTOSTART (1 << 4)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_NETWORKS_NO_AUTOSTART (1 << 5)
# endif
/* enum virConnectListAllNodeDeviceFlags */
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_SYSTEM (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_PCI_DEV (1 << 1)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_USB_DEV (1 << 2)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_USB_INTERFACE (1 << 3)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_NET (1 << 4)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_HOST (1 << 5)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_TARGET (1 << 6)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI (1 << 7)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_STORAGE (1 << 8)
# endif
# if !LIBVIR_CHECK_VERSION(1, 0, 4)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_FC_HOST (1 << 9)
# endif
# if !LIBVIR_CHECK_VERSION(1, 0, 4)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_VPORTS (1 << 10)
# endif
# if !LIBVIR_CHECK_VERSION(1, 1, 0)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_GENERIC (1 << 11)
# endif
# if !LIBVIR_CHECK_VERSION(3, 1, 0)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_DRM (1 << 12)
# endif
# if !LIBVIR_CHECK_VERSION(3, 4, 0)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_MDEV_TYPES (1 << 13)
# endif
# if !LIBVIR_CHECK_VERSION(3, 4, 0)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_MDEV (1 << 14)
# endif
# if !LIBVIR_CHECK_VERSION(3, 4, 0)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_CCW_DEV (1 << 15)
# endif
# if !LIBVIR_CHECK_VERSION(6, 8, 0)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_CSS_DEV (1 << 16)
# endif
# if !LIBVIR_CHECK_VERSION(6, 9, 0)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_VDPA (1 << 17)
# endif
# if !LIBVIR_CHECK_VERSION(7, 0, 0)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_CARD (1 << 18)
# endif
# if !LIBVIR_CHECK_VERSION(7, 0, 0)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_QUEUE (1 << 19)
# endif
# if !LIBVIR_CHECK_VERSION(7, 0, 0)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_MATRIX (1 << 20)
# endif
# if !LIBVIR_CHECK_VERSION(7, 9, 0)
# define VIR_CONNECT_LIST_NODE_DEVICES_CAP_VPD (1 << 21)
# endif
# if !LIBVIR_CHECK_VERSION(10, 1, 0)
# define VIR_CONNECT_LIST_NODE_DEVICES_PERSISTENT (1 << 28)
# endif
# if !LIBVIR_CHECK_VERSION(10, 1, 0)
# define VIR_CONNECT_LIST_NODE_DEVICES_TRANSIENT (1 << 29)
# endif
# if !LIBVIR_CHECK_VERSION(7, 3, 0)
# define VIR_CONNECT_LIST_NODE_DEVICES_INACTIVE (1 << 30)
# endif
# if !LIBVIR_CHECK_VERSION(7, 3, 0)
# define VIR_CONNECT_LIST_NODE_DEVICES_ACTIVE (1U << 31)
# endif
/* enum virConnectListAllSecretsFlags */
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_SECRETS_EPHEMERAL (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_SECRETS_NO_EPHEMERAL (1 << 1)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_SECRETS_PRIVATE (1 << 2)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_SECRETS_NO_PRIVATE (1 << 3)
# endif
/* enum virConnectListAllStoragePoolsFlags */
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_STORAGE_POOLS_INACTIVE (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_STORAGE_POOLS_ACTIVE (1 << 1)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_STORAGE_POOLS_PERSISTENT (1 << 2)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_STORAGE_POOLS_TRANSIENT (1 << 3)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_STORAGE_POOLS_AUTOSTART (1 << 4)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_STORAGE_POOLS_NO_AUTOSTART (1 << 5)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_STORAGE_POOLS_DIR (1 << 6)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_STORAGE_POOLS_FS (1 << 7)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_STORAGE_POOLS_NETFS (1 << 8)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_STORAGE_POOLS_LOGICAL (1 << 9)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_STORAGE_POOLS_DISK (1 << 10)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_STORAGE_POOLS_ISCSI (1 << 11)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_STORAGE_POOLS_SCSI (1 << 12)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_STORAGE_POOLS_MPATH (1 << 13)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_STORAGE_POOLS_RBD (1 << 14)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_CONNECT_LIST_STORAGE_POOLS_SHEEPDOG (1 << 15)
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 1)
# define VIR_CONNECT_LIST_STORAGE_POOLS_GLUSTER (1 << 16)
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 8)
# define VIR_CONNECT_LIST_STORAGE_POOLS_ZFS (1 << 17)
# endif
# if !LIBVIR_CHECK_VERSION(3, 1, 0)
# define VIR_CONNECT_LIST_STORAGE_POOLS_VSTORAGE (1 << 18)
# endif
# if !LIBVIR_CHECK_VERSION(5, 6, 0)
# define VIR_CONNECT_LIST_STORAGE_POOLS_ISCSI_DIRECT (1 << 19)
# endif
/* enum virDomainAbortJobFlagsValues */
# if !LIBVIR_CHECK_VERSION(8, 5, 0)
# define VIR_DOMAIN_ABORT_JOB_POSTCOPY (1 << 0)
# endif
/* enum virDomainAgentResponseTimeoutValues */
# if !LIBVIR_CHECK_VERSION(5, 10, 0)
# define VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_BLOCK -2
# endif
# if !LIBVIR_CHECK_VERSION(5, 10, 0)
# define VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_DEFAULT -1
# endif
# if !LIBVIR_CHECK_VERSION(5, 10, 0)
# define VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_NOWAIT 0
# endif
/* enum virDomainAuthorizedSSHKeysSetFlags */
# if !LIBVIR_CHECK_VERSION(6, 10, 0)
# define VIR_DOMAIN_AUTHORIZED_SSH_KEYS_SET_APPEND (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(6, 10, 0)
# define VIR_DOMAIN_AUTHORIZED_SSH_KEYS_SET_REMOVE (1 << 1)
# endif
/* enum virDomainBackupBeginFlags */
# if !LIBVIR_CHECK_VERSION(6, 0, 0)
# define VIR_DOMAIN_BACKUP_BEGIN_REUSE_EXTERNAL (1 << 0)
# endif
/* enum virDomainBlockCommitFlags */
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_DOMAIN_BLOCK_COMMIT_SHALLOW (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_DOMAIN_BLOCK_COMMIT_DELETE (1 << 1)
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 6)
# define VIR_DOMAIN_BLOCK_COMMIT_ACTIVE (1 << 2)
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 7)
# define VIR_DOMAIN_BLOCK_COMMIT_RELATIVE (1 << 3)
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 9)
# define VIR_DOMAIN_BLOCK_COMMIT_BANDWIDTH_BYTES (1 << 4)
# endif
/* enum virDomainBlockCopyFlags */
# if !LIBVIR_CHECK_VERSION(1, 2, 8)
# define VIR_DOMAIN_BLOCK_COPY_SHALLOW (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 8)
# define VIR_DOMAIN_BLOCK_COPY_REUSE_EXT (1 << 1)
# endif
# if !LIBVIR_CHECK_VERSION(3, 5, 0)
# define VIR_DOMAIN_BLOCK_COPY_TRANSIENT_JOB (1 << 2)
# endif
# if !LIBVIR_CHECK_VERSION(8, 0, 0)
# define VIR_DOMAIN_BLOCK_COPY_SYNCHRONOUS_WRITES (1 << 3)
# endif
/* enum virDomainBlockJobAbortFlags */
# if !LIBVIR_CHECK_VERSION(0, 9, 12)
# define VIR_DOMAIN_BLOCK_JOB_ABORT_ASYNC (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 12)
# define VIR_DOMAIN_BLOCK_JOB_ABORT_PIVOT (1 << 1)
# endif
/* enum virDomainBlockJobInfoFlags */
# if !LIBVIR_CHECK_VERSION(1, 2, 9)
# define VIR_DOMAIN_BLOCK_JOB_INFO_BANDWIDTH_BYTES (1 << 0)
# endif
/* enum virDomainBlockJobSetSpeedFlags */
# if !LIBVIR_CHECK_VERSION(1, 2, 9)
# define VIR_DOMAIN_BLOCK_JOB_SPEED_BANDWIDTH_BYTES (1 << 0)
# endif
/* enum virDomainBlockJobType */
# if !LIBVIR_CHECK_VERSION(0, 9, 4)
# define VIR_DOMAIN_BLOCK_JOB_TYPE_UNKNOWN 0
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 4)
# define VIR_DOMAIN_BLOCK_JOB_TYPE_PULL 1
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 12)
# define VIR_DOMAIN_BLOCK_JOB_TYPE_COPY 2
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 2)
# define VIR_DOMAIN_BLOCK_JOB_TYPE_COMMIT 3
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 6)
# define VIR_DOMAIN_BLOCK_JOB_TYPE_ACTIVE_COMMIT 4
# endif
# if !LIBVIR_CHECK_VERSION(6, 0, 0)
# define VIR_DOMAIN_BLOCK_JOB_TYPE_BACKUP 5
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_DOMAIN_BLOCK_JOB_TYPE_LAST 6
# endif
/* enum virDomainBlockPullFlags */
# if !LIBVIR_CHECK_VERSION(1, 2, 9)
# define VIR_DOMAIN_BLOCK_PULL_BANDWIDTH_BYTES (1 << 6)
# endif
/* enum virDomainBlockRebaseFlags */
# if !LIBVIR_CHECK_VERSION(0, 9, 12)
# define VIR_DOMAIN_BLOCK_REBASE_SHALLOW (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 12)
# define VIR_DOMAIN_BLOCK_REBASE_REUSE_EXT (1 << 1)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 12)
# define VIR_DOMAIN_BLOCK_REBASE_COPY_RAW (1 << 2)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 12)
# define VIR_DOMAIN_BLOCK_REBASE_COPY (1 << 3)
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 7)
# define VIR_DOMAIN_BLOCK_REBASE_RELATIVE (1 << 4)
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 9)
# define VIR_DOMAIN_BLOCK_REBASE_COPY_DEV (1 << 5)
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 9)
# define VIR_DOMAIN_BLOCK_REBASE_BANDWIDTH_BYTES (1 << 6)
# endif
/* enum virDomainBlockResizeFlags */
# if !LIBVIR_CHECK_VERSION(0, 9, 11)
# define VIR_DOMAIN_BLOCK_RESIZE_BYTES (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(10, 0, 0)
# define VIR_DOMAIN_BLOCK_RESIZE_CAPACITY (1 << 1)
# endif
/* enum virDomainBlockedReason */
# if !LIBVIR_CHECK_VERSION(0, 9, 2)
# define VIR_DOMAIN_BLOCKED_UNKNOWN 0
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_DOMAIN_BLOCKED_LAST 1
# endif
/* enum virDomainChannelFlags */
# if !LIBVIR_CHECK_VERSION(1, 0, 2)
# define VIR_DOMAIN_CHANNEL_FORCE (1 << 0)
# endif
/* enum virDomainCheckpointCreateFlags */
# if !LIBVIR_CHECK_VERSION(5, 6, 0)
# define VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(5, 6, 0)
# define VIR_DOMAIN_CHECKPOINT_CREATE_QUIESCE (1 << 1)
# endif
# if !LIBVIR_CHECK_VERSION(6, 10, 0)
# define VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE_VALIDATE (1 << 2)
# endif
/* enum virDomainCheckpointDeleteFlags */
# if !LIBVIR_CHECK_VERSION(5, 6, 0)
# define VIR_DOMAIN_CHECKPOINT_DELETE_CHILDREN (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(5, 6, 0)
# define VIR_DOMAIN_CHECKPOINT_DELETE_METADATA_ONLY (1 << 1)
# endif
# if !LIBVIR_CHECK_VERSION(5, 6, 0)
# define VIR_DOMAIN_CHECKPOINT_DELETE_CHILDREN_ONLY (1 << 2)
# endif
/* enum virDomainCheckpointListFlags */
# if !LIBVIR_CHECK_VERSION(5, 6, 0)
# define VIR_DOMAIN_CHECKPOINT_LIST_DESCENDANTS (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(5, 6, 0)
# define VIR_DOMAIN_CHECKPOINT_LIST_ROOTS (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(5, 6, 0)
# define VIR_DOMAIN_CHECKPOINT_LIST_TOPOLOGICAL (1 << 1)
# endif
# if !LIBVIR_CHECK_VERSION(5, 6, 0)
# define VIR_DOMAIN_CHECKPOINT_LIST_LEAVES (1 << 2)
# endif
# if !LIBVIR_CHECK_VERSION(5, 6, 0)
# define VIR_DOMAIN_CHECKPOINT_LIST_NO_LEAVES (1 << 3)
# endif
/* enum virDomainCheckpointXMLFlags */
# if !LIBVIR_CHECK_VERSION(5, 6, 0)
# define VIR_DOMAIN_CHECKPOINT_XML_SECURE (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(5, 6, 0)
# define VIR_DOMAIN_CHECKPOINT_XML_NO_DOMAIN (1 << 1)
# endif
# if !LIBVIR_CHECK_VERSION(5, 6, 0)
# define VIR_DOMAIN_CHECKPOINT_XML_SIZE (1 << 2)
# endif
/* enum virDomainConsoleFlags */
# if !LIBVIR_CHECK_VERSION(0, 9, 11)
# define VIR_DOMAIN_CONSOLE_FORCE (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 11)
# define VIR_DOMAIN_CONSOLE_SAFE (1 << 1)
# endif
/* enum virDomainControlErrorReason */
# if !LIBVIR_CHECK_VERSION(1, 2, 14)
# define VIR_DOMAIN_CONTROL_ERROR_REASON_NONE 0
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 14)
# define VIR_DOMAIN_CONTROL_ERROR_REASON_UNKNOWN 1
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 14)
# define VIR_DOMAIN_CONTROL_ERROR_REASON_MONITOR 2
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 14)
# define VIR_DOMAIN_CONTROL_ERROR_REASON_INTERNAL 3
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 14)
# define VIR_DOMAIN_CONTROL_ERROR_REASON_LAST 4
# endif
/* enum virDomainControlState */
# if !LIBVIR_CHECK_VERSION(0, 9, 3)
# define VIR_DOMAIN_CONTROL_OK 0
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 3)
# define VIR_DOMAIN_CONTROL_JOB 1
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 3)
# define VIR_DOMAIN_CONTROL_OCCUPIED 2
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 3)
# define VIR_DOMAIN_CONTROL_ERROR 3
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_DOMAIN_CONTROL_LAST 4
# endif
/* enum virDomainCoreDumpFlags */
# if !LIBVIR_CHECK_VERSION(0, 7, 5)
# define VIR_DUMP_CRASH (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(0, 7, 5)
# define VIR_DUMP_LIVE (1 << 1)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 4)
# define VIR_DUMP_BYPASS_CACHE (1 << 2)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 7)
# define VIR_DUMP_RESET (1 << 3)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 13)
# define VIR_DUMP_MEMORY_ONLY (1 << 4)
# endif
/* enum virDomainCoreDumpFormat */
# if !LIBVIR_CHECK_VERSION(1, 2, 3)
# define VIR_DOMAIN_CORE_DUMP_FORMAT_RAW 0
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 3)
# define VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_ZLIB 1
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 3)
# define VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_LZO 2
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 3)
# define VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_SNAPPY 3
# endif
# if !LIBVIR_CHECK_VERSION(7, 4, 0)
# define VIR_DOMAIN_CORE_DUMP_FORMAT_WIN_DMP 4
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 3)
# define VIR_DOMAIN_CORE_DUMP_FORMAT_LAST 5
# endif
/* enum virDomainCrashedReason */
# if !LIBVIR_CHECK_VERSION(0, 9, 2)
# define VIR_DOMAIN_CRASHED_UNKNOWN 0
# endif
# if !LIBVIR_CHECK_VERSION(1, 1, 1)
# define VIR_DOMAIN_CRASHED_PANICKED 1
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_DOMAIN_CRASHED_LAST 2
# endif
/* enum virDomainCreateFlags */
# if !LIBVIR_CHECK_VERSION(0, 0, 1)
# define VIR_DOMAIN_NONE 0
# endif
# if !LIBVIR_CHECK_VERSION(0, 8, 2)
# define VIR_DOMAIN_START_PAUSED (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 3)
# define VIR_DOMAIN_START_AUTODESTROY (1 << 1)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 4)
# define VIR_DOMAIN_START_BYPASS_CACHE (1 << 2)
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 5)
# define VIR_DOMAIN_START_FORCE_BOOT (1 << 3)
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 12)
# define VIR_DOMAIN_START_VALIDATE (1 << 4)
# endif
# if !LIBVIR_CHECK_VERSION(8, 1, 0)
# define VIR_DOMAIN_START_RESET_NVRAM (1 << 5)
# endif
/* enum virDomainDefineFlags */
# if !LIBVIR_CHECK_VERSION(1, 2, 12)
# define VIR_DOMAIN_DEFINE_VALIDATE (1 << 0)
# endif
/* enum virDomainDestroyFlagsValues */
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_DOMAIN_DESTROY_DEFAULT 0
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_DOMAIN_DESTROY_GRACEFUL (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(8, 3, 0)
# define VIR_DOMAIN_DESTROY_REMOVE_LOGS (1 << 1)
# endif
/* enum virDomainDeviceModifyFlags */
# if !LIBVIR_CHECK_VERSION(0, 7, 7)
# define VIR_DOMAIN_DEVICE_MODIFY_CURRENT VIR_DOMAIN_AFFECT_CURRENT
# endif
# if !LIBVIR_CHECK_VERSION(0, 7, 7)
# define VIR_DOMAIN_DEVICE_MODIFY_LIVE VIR_DOMAIN_AFFECT_LIVE
# endif
# if !LIBVIR_CHECK_VERSION(0, 7, 7)
# define VIR_DOMAIN_DEVICE_MODIFY_CONFIG VIR_DOMAIN_AFFECT_CONFIG
# endif
# if !LIBVIR_CHECK_VERSION(0, 8, 6)
# define VIR_DOMAIN_DEVICE_MODIFY_FORCE (1 << 2)
# endif
/* enum virDomainDirtyRateCalcFlags */
# if !LIBVIR_CHECK_VERSION(8, 1, 0)
# define VIR_DOMAIN_DIRTYRATE_MODE_PAGE_SAMPLING 0
# endif
# if !LIBVIR_CHECK_VERSION(8, 1, 0)
# define VIR_DOMAIN_DIRTYRATE_MODE_DIRTY_BITMAP (1 << 0)
# endif
# if !LIBVIR_CHECK_VERSION(8, 1, 0)
# define VIR_DOMAIN_DIRTYRATE_MODE_DIRTY_RING (1 << 1)
# endif
/* enum virDomainDirtyRateStatus */
# if !LIBVIR_CHECK_VERSION(7, 2, 0)
# define VIR_DOMAIN_DIRTYRATE_UNSTARTED 0
# endif
# if !LIBVIR_CHECK_VERSION(7, 2, 0)
# define VIR_DOMAIN_DIRTYRATE_MEASURING 1
# endif
# if !LIBVIR_CHECK_VERSION(7, 2, 0)
# define VIR_DOMAIN_DIRTYRATE_MEASURED 2
# endif
# if !LIBVIR_CHECK_VERSION(7, 2, 0)
# define VIR_DOMAIN_DIRTYRATE_LAST 3
# endif
/* enum virDomainDiskErrorCode */
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_DOMAIN_DISK_ERROR_NONE 0
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_DOMAIN_DISK_ERROR_UNSPEC 1
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_DOMAIN_DISK_ERROR_NO_SPACE 2
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_DOMAIN_DISK_ERROR_LAST 3
# endif
/* enum virDomainEventCrashedDetailType */
# if !LIBVIR_CHECK_VERSION(1, 1, 1)
# define VIR_DOMAIN_EVENT_CRASHED_PANICKED 0
# endif
# if !LIBVIR_CHECK_VERSION(6, 1, 0)
# define VIR_DOMAIN_EVENT_CRASHED_CRASHLOADED 1
# endif
# if !LIBVIR_CHECK_VERSION(1, 1, 1)
# define VIR_DOMAIN_EVENT_CRASHED_LAST 2
# endif
/* enum virDomainEventDefinedDetailType */
# if !LIBVIR_CHECK_VERSION(0, 5, 0)
# define VIR_DOMAIN_EVENT_DEFINED_ADDED 0
# endif
# if !LIBVIR_CHECK_VERSION(0, 5, 0)
# define VIR_DOMAIN_EVENT_DEFINED_UPDATED 1
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 19)
# define VIR_DOMAIN_EVENT_DEFINED_RENAMED 2
# endif
# if !LIBVIR_CHECK_VERSION(1, 3, 3)
# define VIR_DOMAIN_EVENT_DEFINED_FROM_SNAPSHOT 3
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_DOMAIN_EVENT_DEFINED_LAST 4
# endif
/* enum virDomainEventGraphicsAddressType */
# if !LIBVIR_CHECK_VERSION(0, 8, 0)
# define VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV4 0
# endif
# if !LIBVIR_CHECK_VERSION(0, 8, 0)
# define VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV6 1
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 7)
# define VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_UNIX 2
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_LAST 3
# endif
/* enum virDomainEventGraphicsPhase */
# if !LIBVIR_CHECK_VERSION(0, 8, 0)
# define VIR_DOMAIN_EVENT_GRAPHICS_CONNECT 0
# endif
# if !LIBVIR_CHECK_VERSION(0, 8, 0)
# define VIR_DOMAIN_EVENT_GRAPHICS_INITIALIZE 1
# endif
# if !LIBVIR_CHECK_VERSION(0, 8, 0)
# define VIR_DOMAIN_EVENT_GRAPHICS_DISCONNECT 2
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 10)
# define VIR_DOMAIN_EVENT_GRAPHICS_LAST 3
# endif
/* enum virDomainEventID */
# if !LIBVIR_CHECK_VERSION(0, 8, 0)
# define VIR_DOMAIN_EVENT_ID_LIFECYCLE 0
# endif
# if !LIBVIR_CHECK_VERSION(0, 8, 0)
# define VIR_DOMAIN_EVENT_ID_REBOOT 1
# endif
# if !LIBVIR_CHECK_VERSION(0, 8, 0)
# define VIR_DOMAIN_EVENT_ID_RTC_CHANGE 2
# endif
# if !LIBVIR_CHECK_VERSION(0, 8, 0)
# define VIR_DOMAIN_EVENT_ID_WATCHDOG 3
# endif
# if !LIBVIR_CHECK_VERSION(0, 8, 0)
# define VIR_DOMAIN_EVENT_ID_IO_ERROR 4
# endif
# if !LIBVIR_CHECK_VERSION(0, 8, 0)
# define VIR_DOMAIN_EVENT_ID_GRAPHICS 5
# endif
# if !LIBVIR_CHECK_VERSION(0, 8, 1)
# define VIR_DOMAIN_EVENT_ID_IO_ERROR_REASON 6
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 2)
# define VIR_DOMAIN_EVENT_ID_CONTROL_ERROR 7
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 4)
# define VIR_DOMAIN_EVENT_ID_BLOCK_JOB 8
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 7)
# define VIR_DOMAIN_EVENT_ID_DISK_CHANGE 9
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 11)
# define VIR_DOMAIN_EVENT_ID_TRAY_CHANGE 10
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 11)
# define VIR_DOMAIN_EVENT_ID_PMWAKEUP 11
# endif
# if !LIBVIR_CHECK_VERSION(0, 9, 11)
# define VIR_DOMAIN_EVENT_ID_PMSUSPEND 12
# endif
# if !LIBVIR_CHECK_VERSION(0, 10, 0)
# define VIR_DOMAIN_EVENT_ID_BALLOON_CHANGE 13
# endif
# if !LIBVIR_CHECK_VERSION(1, 0, 0)
# define VIR_DOMAIN_EVENT_ID_PMSUSPEND_DISK 14
# endif
# if !LIBVIR_CHECK_VERSION(1, 1, 1)
# define VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED 15
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 6)
# define VIR_DOMAIN_EVENT_ID_BLOCK_JOB_2 16
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 9)
# define VIR_DOMAIN_EVENT_ID_TUNABLE 17
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 11)
# define VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE 18
# endif
# if !LIBVIR_CHECK_VERSION(1, 2, 15)
# define VIR_DOMAIN_EVENT_ID_DEVICE_ADDED 19
# endif
# if !LIBVIR_CHECK_VERSION(1, 3, 2)
# define VIR_DOMAIN_EVENT_ID_MIGRATION_ITERATION 20
# endif
# if !LIBVIR_CHECK_VERSION(1, 3, 3)
# define VIR_DOMAIN_EVENT_ID_JOB_COMPLETED 21
# endif
# if !LIBVIR_CHECK_VERSION(1, 3, 4)
# define VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED 22
# endif
# if !LIBVIR_CHECK_VERSION(3, 0, 0)
# define VIR_DOMAIN_EVENT_ID_METADATA_CHANGE 23
# endif
# if !LIBVIR_CHECK_VERSION(3, 2, 0)
# define VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD 24
# endif
# if !LIBVIR_CHECK_VERSION(6, 9, 0)
# define VIR_DOMAIN_EVENT_ID_MEMORY_FAILURE 25
# endif
# if !LIBVIR_CHECK_VERSION(7, 9, 0)
# define VIR_DOMAIN_EVENT_ID_MEMORY_DEVICE_SIZE_CHANGE 26
# endif
# if !LIBVIR_CHECK_VERSION(0, 8, 0)
# define VIR_DOMAIN_EVENT_ID_LAST 27
# endif
/* enum virDomainEventIOErrorAction */
# if !LIBVIR_CHECK_VERSION(0, 8, 0)
# define VIR_DOMAIN_EVENT_IO_ERROR_NONE 0
# endif
# if !LIBVIR_CHECK_VERSION(0, 8, 0)
# define VIR_DOMAIN_EVENT_IO_ERROR_PAUSE 1
# endif
# if !LIBVIR_CHECK_VERSION(0, 8, 0)
# define VIR_DOMAIN_EVENT_IO_ERROR_REPORT 2