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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
|
/* this is a file autogenerated by spice_codegen.py */
/*
* Copyright (C) 2013 Red Hat, Inc.
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#ifndef _H_SPICE_ENUMS
#define _H_SPICE_ENUMS
typedef enum SpiceLinkErr {
SPICE_LINK_ERR_OK,
SPICE_LINK_ERR_ERROR,
SPICE_LINK_ERR_INVALID_MAGIC,
SPICE_LINK_ERR_INVALID_DATA,
SPICE_LINK_ERR_VERSION_MISMATCH,
SPICE_LINK_ERR_NEED_SECURED,
SPICE_LINK_ERR_NEED_UNSECURED,
SPICE_LINK_ERR_PERMISSION_DENIED,
SPICE_LINK_ERR_BAD_CONNECTION_ID,
SPICE_LINK_ERR_CHANNEL_NOT_AVAILABLE,
SPICE_LINK_ERR_ENUM_END
} SpiceLinkErr;
static const value_string spice_link_err_vs[] = {
{ SPICE_LINK_ERR_OK, "OK" },
{ SPICE_LINK_ERR_ERROR, "ERROR" },
{ SPICE_LINK_ERR_INVALID_MAGIC, "INVALID_MAGIC" },
{ SPICE_LINK_ERR_INVALID_DATA, "INVALID_DATA" },
{ SPICE_LINK_ERR_VERSION_MISMATCH, "VERSION_MISMATCH" },
{ SPICE_LINK_ERR_NEED_SECURED, "NEED_SECURED" },
{ SPICE_LINK_ERR_NEED_UNSECURED, "NEED_UNSECURED" },
{ SPICE_LINK_ERR_PERMISSION_DENIED, "PERMISSION_DENIED" },
{ SPICE_LINK_ERR_BAD_CONNECTION_ID, "BAD_CONNECTION_ID" },
{ SPICE_LINK_ERR_CHANNEL_NOT_AVAILABLE, "CHANNEL_NOT_AVAILABLE" },
{ 0, NULL } };
typedef enum SpiceWarnCode {
SPICE_WARN_GENERAL,
SPICE_WARN_CODE_ENUM_END
} SpiceWarnCode;
static const value_string spice_warn_code_vs[] = {
{ SPICE_WARN_GENERAL, "WARN_GENERAL" },
{ 0, NULL } };
typedef enum SpiceInfoCode {
SPICE_INFO_GENERAL,
SPICE_INFO_CODE_ENUM_END
} SpiceInfoCode;
static const value_string spice_info_code_vs[] = {
{ SPICE_INFO_GENERAL, "INFO_GENERAL" },
{ 0, NULL } };
typedef enum SpiceMigrateFlags {
SPICE_MIGRATE_NEED_FLUSH = (1 << 0),
SPICE_MIGRATE_NEED_DATA_TRANSFER = (1 << 1),
SPICE_MIGRATE_FLAGS_MASK = 0x3
} SpiceMigrateFlags;
static const value_string spice_migrate_flags_vs[] = {
{ SPICE_MIGRATE_NEED_FLUSH, "NEED_FLUSH" },
{ SPICE_MIGRATE_NEED_DATA_TRANSFER, "NEED_DATA_TRANSFER" },
{ 0, NULL } };
typedef enum SpiceCompositeFlags {
SPICE_COMPOSITE_OP0 = (1 << 0),
SPICE_COMPOSITE_OP1 = (1 << 1),
SPICE_COMPOSITE_OP2 = (1 << 2),
SPICE_COMPOSITE_OP3 = (1 << 3),
SPICE_COMPOSITE_OP4 = (1 << 4),
SPICE_COMPOSITE_OP5 = (1 << 5),
SPICE_COMPOSITE_OP6 = (1 << 6),
SPICE_COMPOSITE_OP7 = (1 << 7),
SPICE_COMPOSITE_SRC_FILTER0 = (1 << 8),
SPICE_COMPOSITE_SRC_FILTER1 = (1 << 9),
SPICE_COMPOSITE_SRC_FILTER2 = (1 << 10),
SPICE_COMPOSITE_MASK_FILTER0 = (1 << 11),
SPICE_COMPOSITE_MASK_FILTER1 = (1 << 12),
SPICE_COMPOSITE_MASK_FILTER2 = (1 << 13),
SPICE_COMPOSITE_SRC_REPEAT0 = (1 << 14),
SPICE_COMPOSITE_SRC_REPEAT1 = (1 << 15),
SPICE_COMPOSITE_MASK_REPEAT0 = (1 << 16),
SPICE_COMPOSITE_MASK_REPEAT1 = (1 << 17),
SPICE_COMPOSITE_COMPONENT_ALPHA = (1 << 18),
SPICE_COMPOSITE_HAS_MASK = (1 << 19),
SPICE_COMPOSITE_HAS_SRC_TRANSFORM = (1 << 20),
SPICE_COMPOSITE_HAS_MASK_TRANSFORM = (1 << 21),
SPICE_COMPOSITE_SOURCE_OPAQUE = (1 << 22),
SPICE_COMPOSITE_MASK_OPAQUE = (1 << 23),
SPICE_COMPOSITE_DEST_OPAQUE = (1 << 24),
SPICE_COMPOSITE_FLAGS_MASK = 0x1ffffff
} SpiceCompositeFlags;
static const value_string spice_composite_flags_vs[] = {
{ SPICE_COMPOSITE_OP0, "OP0" },
{ SPICE_COMPOSITE_OP1, "OP1" },
{ SPICE_COMPOSITE_OP2, "OP2" },
{ SPICE_COMPOSITE_OP3, "OP3" },
{ SPICE_COMPOSITE_OP4, "OP4" },
{ SPICE_COMPOSITE_OP5, "OP5" },
{ SPICE_COMPOSITE_OP6, "OP6" },
{ SPICE_COMPOSITE_OP7, "OP7" },
{ SPICE_COMPOSITE_SRC_FILTER0, "SRC_FILTER0" },
{ SPICE_COMPOSITE_SRC_FILTER1, "SRC_FILTER1" },
{ SPICE_COMPOSITE_SRC_FILTER2, "SRC_FILTER2" },
{ SPICE_COMPOSITE_MASK_FILTER0, "MASK_FILTER0" },
{ SPICE_COMPOSITE_MASK_FILTER1, "MASK_FILTER1" },
{ SPICE_COMPOSITE_MASK_FILTER2, "MASK_FILTER2" },
{ SPICE_COMPOSITE_SRC_REPEAT0, "SRC_REPEAT0" },
{ SPICE_COMPOSITE_SRC_REPEAT1, "SRC_REPEAT1" },
{ SPICE_COMPOSITE_MASK_REPEAT0, "MASK_REPEAT0" },
{ SPICE_COMPOSITE_MASK_REPEAT1, "MASK_REPEAT1" },
{ SPICE_COMPOSITE_COMPONENT_ALPHA, "COMPONENT_ALPHA" },
{ SPICE_COMPOSITE_HAS_MASK, "HAS_MASK" },
{ SPICE_COMPOSITE_HAS_SRC_TRANSFORM, "HAS_SRC_TRANSFORM" },
{ SPICE_COMPOSITE_HAS_MASK_TRANSFORM, "HAS_MASK_TRANSFORM" },
{ SPICE_COMPOSITE_SOURCE_OPAQUE, "SOURCE_OPAQUE" },
{ SPICE_COMPOSITE_MASK_OPAQUE, "MASK_OPAQUE" },
{ SPICE_COMPOSITE_DEST_OPAQUE, "DEST_OPAQUE" },
{ 0, NULL } };
typedef enum SpiceNotifySeverity {
SPICE_NOTIFY_SEVERITY_INFO,
SPICE_NOTIFY_SEVERITY_WARN,
SPICE_NOTIFY_SEVERITY_ERROR,
SPICE_NOTIFY_SEVERITY_ENUM_END
} SpiceNotifySeverity;
static const value_string spice_notify_severity_vs[] = {
{ SPICE_NOTIFY_SEVERITY_INFO, "INFO" },
{ SPICE_NOTIFY_SEVERITY_WARN, "WARN" },
{ SPICE_NOTIFY_SEVERITY_ERROR, "ERROR" },
{ 0, NULL } };
typedef enum SpiceNotifyVisibility {
SPICE_NOTIFY_VISIBILITY_LOW,
SPICE_NOTIFY_VISIBILITY_MEDIUM,
SPICE_NOTIFY_VISIBILITY_HIGH,
SPICE_NOTIFY_VISIBILITY_ENUM_END
} SpiceNotifyVisibility;
static const value_string spice_notify_visibility_vs[] = {
{ SPICE_NOTIFY_VISIBILITY_LOW, "LOW" },
{ SPICE_NOTIFY_VISIBILITY_MEDIUM, "MEDIUM" },
{ SPICE_NOTIFY_VISIBILITY_HIGH, "HIGH" },
{ 0, NULL } };
typedef enum SpiceMouseMode {
SPICE_MOUSE_MODE_SERVER = (1 << 0),
SPICE_MOUSE_MODE_CLIENT = (1 << 1),
SPICE_MOUSE_MODE_MASK = 0x3
} SpiceMouseMode;
static const value_string spice_mouse_mode_vs[] = {
{ SPICE_MOUSE_MODE_SERVER, "SERVER" },
{ SPICE_MOUSE_MODE_CLIENT, "CLIENT" },
{ 0, NULL } };
typedef enum SpicePubkeyType {
SPICE_PUBKEY_TYPE_INVALID,
SPICE_PUBKEY_TYPE_RSA,
SPICE_PUBKEY_TYPE_RSA2,
SPICE_PUBKEY_TYPE_DSA,
SPICE_PUBKEY_TYPE_DSA1,
SPICE_PUBKEY_TYPE_DSA2,
SPICE_PUBKEY_TYPE_DSA3,
SPICE_PUBKEY_TYPE_DSA4,
SPICE_PUBKEY_TYPE_DH,
SPICE_PUBKEY_TYPE_EC,
SPICE_PUBKEY_TYPE_ENUM_END
} SpicePubkeyType;
static const value_string spice_pubkey_type_vs[] = {
{ SPICE_PUBKEY_TYPE_INVALID, "INVALID" },
{ SPICE_PUBKEY_TYPE_RSA, "RSA" },
{ SPICE_PUBKEY_TYPE_RSA2, "RSA2" },
{ SPICE_PUBKEY_TYPE_DSA, "DSA" },
{ SPICE_PUBKEY_TYPE_DSA1, "DSA1" },
{ SPICE_PUBKEY_TYPE_DSA2, "DSA2" },
{ SPICE_PUBKEY_TYPE_DSA3, "DSA3" },
{ SPICE_PUBKEY_TYPE_DSA4, "DSA4" },
{ SPICE_PUBKEY_TYPE_DH, "DH" },
{ SPICE_PUBKEY_TYPE_EC, "EC" },
{ 0, NULL } };
typedef enum SpiceDataCompressionType {
SPICE_DATA_COMPRESSION_TYPE_NONE,
SPICE_DATA_COMPRESSION_TYPE_LZ4,
SPICE_DATA_COMPRESSION_TYPE_ENUM_END
} SpiceDataCompressionType;
static const value_string spice_data_compression_type_vs[] = {
{ SPICE_DATA_COMPRESSION_TYPE_NONE, "NONE" },
{ SPICE_DATA_COMPRESSION_TYPE_LZ4, "LZ4" },
{ 0, NULL } };
typedef enum SpiceClipType {
SPICE_CLIP_TYPE_NONE,
SPICE_CLIP_TYPE_RECTS,
SPICE_CLIP_TYPE_ENUM_END
} SpiceClipType;
static const value_string spice_clip_type_vs[] = {
{ SPICE_CLIP_TYPE_NONE, "NONE" },
{ SPICE_CLIP_TYPE_RECTS, "RECTS" },
{ 0, NULL } };
typedef enum SpicePathFlags {
SPICE_PATH_BEGIN = (1 << 0),
SPICE_PATH_END = (1 << 1),
SPICE_PATH_CLOSE = (1 << 3),
SPICE_PATH_BEZIER = (1 << 4),
SPICE_PATH_FLAGS_MASK = 0x1b
} SpicePathFlags;
static const value_string spice_path_flags_vs[] = {
{ SPICE_PATH_BEGIN, "BEGIN" },
{ SPICE_PATH_END, "END" },
{ SPICE_PATH_CLOSE, "CLOSE" },
{ SPICE_PATH_BEZIER, "BEZIER" },
{ 0, NULL } };
typedef enum SpiceVideoCodecType {
SPICE_VIDEO_CODEC_TYPE_MJPEG = 1,
SPICE_VIDEO_CODEC_TYPE_VP8,
SPICE_VIDEO_CODEC_TYPE_H264,
SPICE_VIDEO_CODEC_TYPE_VP9,
SPICE_VIDEO_CODEC_TYPE_H265,
SPICE_VIDEO_CODEC_TYPE_ENUM_END
} SpiceVideoCodecType;
static const value_string spice_video_codec_type_vs[] = {
{ SPICE_VIDEO_CODEC_TYPE_MJPEG, "MJPEG" },
{ SPICE_VIDEO_CODEC_TYPE_VP8, "VP8" },
{ SPICE_VIDEO_CODEC_TYPE_H264, "H264" },
{ SPICE_VIDEO_CODEC_TYPE_VP9, "VP9" },
{ SPICE_VIDEO_CODEC_TYPE_H265, "H265" },
{ 0, NULL } };
typedef enum SpiceStreamFlags {
SPICE_STREAM_FLAGS_TOP_DOWN = (1 << 0),
SPICE_STREAM_FLAGS_MASK = 0x1
} SpiceStreamFlags;
static const value_string spice_stream_flags_vs[] = {
{ SPICE_STREAM_FLAGS_TOP_DOWN, "TOP_DOWN" },
{ 0, NULL } };
typedef enum SpiceBrushType {
SPICE_BRUSH_TYPE_NONE,
SPICE_BRUSH_TYPE_SOLID,
SPICE_BRUSH_TYPE_PATTERN,
SPICE_BRUSH_TYPE_ENUM_END
} SpiceBrushType;
static const value_string spice_brush_type_vs[] = {
{ SPICE_BRUSH_TYPE_NONE, "NONE" },
{ SPICE_BRUSH_TYPE_SOLID, "SOLID" },
{ SPICE_BRUSH_TYPE_PATTERN, "PATTERN" },
{ 0, NULL } };
typedef enum SpiceMaskFlags {
SPICE_MASK_FLAGS_INVERS = (1 << 0),
SPICE_MASK_FLAGS_MASK = 0x1
} SpiceMaskFlags;
static const value_string spice_mask_flags_vs[] = {
{ SPICE_MASK_FLAGS_INVERS, "INVERS" },
{ 0, NULL } };
typedef enum SpiceImageType {
SPICE_IMAGE_TYPE_BITMAP,
SPICE_IMAGE_TYPE_QUIC,
SPICE_IMAGE_TYPE_RESERVED,
SPICE_IMAGE_TYPE_LZ_PLT = 100,
SPICE_IMAGE_TYPE_LZ_RGB,
SPICE_IMAGE_TYPE_GLZ_RGB,
SPICE_IMAGE_TYPE_FROM_CACHE,
SPICE_IMAGE_TYPE_SURFACE,
SPICE_IMAGE_TYPE_JPEG,
SPICE_IMAGE_TYPE_FROM_CACHE_LOSSLESS,
SPICE_IMAGE_TYPE_ZLIB_GLZ_RGB,
SPICE_IMAGE_TYPE_JPEG_ALPHA,
SPICE_IMAGE_TYPE_LZ4,
SPICE_IMAGE_TYPE_ENUM_END
} SpiceImageType;
static const value_string spice_image_type_vs[] = {
{ SPICE_IMAGE_TYPE_BITMAP, "BITMAP" },
{ SPICE_IMAGE_TYPE_QUIC, "QUIC" },
{ SPICE_IMAGE_TYPE_RESERVED, "RESERVED" },
{ SPICE_IMAGE_TYPE_LZ_PLT, "LZ_PLT" },
{ SPICE_IMAGE_TYPE_LZ_RGB, "LZ_RGB" },
{ SPICE_IMAGE_TYPE_GLZ_RGB, "GLZ_RGB" },
{ SPICE_IMAGE_TYPE_FROM_CACHE, "FROM_CACHE" },
{ SPICE_IMAGE_TYPE_SURFACE, "SURFACE" },
{ SPICE_IMAGE_TYPE_JPEG, "JPEG" },
{ SPICE_IMAGE_TYPE_FROM_CACHE_LOSSLESS, "FROM_CACHE_LOSSLESS" },
{ SPICE_IMAGE_TYPE_ZLIB_GLZ_RGB, "ZLIB_GLZ_RGB" },
{ SPICE_IMAGE_TYPE_JPEG_ALPHA, "JPEG_ALPHA" },
{ SPICE_IMAGE_TYPE_LZ4, "LZ4" },
{ 0, NULL } };
typedef enum SpiceImageCompression {
SPICE_IMAGE_COMPRESSION_INVALID,
SPICE_IMAGE_COMPRESSION_OFF,
SPICE_IMAGE_COMPRESSION_AUTO_GLZ,
SPICE_IMAGE_COMPRESSION_AUTO_LZ,
SPICE_IMAGE_COMPRESSION_QUIC,
SPICE_IMAGE_COMPRESSION_GLZ,
SPICE_IMAGE_COMPRESSION_LZ,
SPICE_IMAGE_COMPRESSION_LZ4,
SPICE_IMAGE_COMPRESSION_ENUM_END
} SpiceImageCompression;
static const value_string spice_image_compression_vs[] = {
{ SPICE_IMAGE_COMPRESSION_INVALID, "INVALID" },
{ SPICE_IMAGE_COMPRESSION_OFF, "OFF" },
{ SPICE_IMAGE_COMPRESSION_AUTO_GLZ, "AUTO_GLZ" },
{ SPICE_IMAGE_COMPRESSION_AUTO_LZ, "AUTO_LZ" },
{ SPICE_IMAGE_COMPRESSION_QUIC, "QUIC" },
{ SPICE_IMAGE_COMPRESSION_GLZ, "GLZ" },
{ SPICE_IMAGE_COMPRESSION_LZ, "LZ" },
{ SPICE_IMAGE_COMPRESSION_LZ4, "LZ4" },
{ 0, NULL } };
typedef enum SpiceImageFlags {
SPICE_IMAGE_FLAGS_CACHE_ME = (1 << 0),
SPICE_IMAGE_FLAGS_HIGH_BITS_SET = (1 << 1),
SPICE_IMAGE_FLAGS_CACHE_REPLACE_ME = (1 << 2),
SPICE_IMAGE_FLAGS_MASK = 0x7
} SpiceImageFlags;
static const value_string spice_image_flags_vs[] = {
{ SPICE_IMAGE_FLAGS_CACHE_ME, "CACHE_ME" },
{ SPICE_IMAGE_FLAGS_HIGH_BITS_SET, "HIGH_BITS_SET" },
{ SPICE_IMAGE_FLAGS_CACHE_REPLACE_ME, "CACHE_REPLACE_ME" },
{ 0, NULL } };
typedef enum SpiceBitmapFmt {
SPICE_BITMAP_FMT_INVALID,
SPICE_BITMAP_FMT_1BIT_LE,
SPICE_BITMAP_FMT_1BIT_BE,
SPICE_BITMAP_FMT_4BIT_LE,
SPICE_BITMAP_FMT_4BIT_BE,
SPICE_BITMAP_FMT_8BIT,
SPICE_BITMAP_FMT_16BIT,
SPICE_BITMAP_FMT_24BIT,
SPICE_BITMAP_FMT_32BIT,
SPICE_BITMAP_FMT_RGBA,
SPICE_BITMAP_FMT_8BIT_A,
SPICE_BITMAP_FMT_ENUM_END
} SpiceBitmapFmt;
static const value_string spice_bitmap_fmt_vs[] = {
{ SPICE_BITMAP_FMT_INVALID, "INVALID" },
{ SPICE_BITMAP_FMT_1BIT_LE, "1BIT_LE" },
{ SPICE_BITMAP_FMT_1BIT_BE, "1BIT_BE" },
{ SPICE_BITMAP_FMT_4BIT_LE, "4BIT_LE" },
{ SPICE_BITMAP_FMT_4BIT_BE, "4BIT_BE" },
{ SPICE_BITMAP_FMT_8BIT, "8BIT" },
{ SPICE_BITMAP_FMT_16BIT, "16BIT" },
{ SPICE_BITMAP_FMT_24BIT, "24BIT" },
{ SPICE_BITMAP_FMT_32BIT, "32BIT" },
{ SPICE_BITMAP_FMT_RGBA, "RGBA" },
{ SPICE_BITMAP_FMT_8BIT_A, "8BIT_A" },
{ 0, NULL } };
typedef enum SpiceBitmapFlags {
SPICE_BITMAP_FLAGS_PAL_CACHE_ME = (1 << 0),
SPICE_BITMAP_FLAGS_PAL_FROM_CACHE = (1 << 1),
SPICE_BITMAP_FLAGS_TOP_DOWN = (1 << 2),
SPICE_BITMAP_FLAGS_MASK = 0x7
} SpiceBitmapFlags;
static const value_string spice_bitmap_flags_vs[] = {
{ SPICE_BITMAP_FLAGS_PAL_CACHE_ME, "PAL_CACHE_ME" },
{ SPICE_BITMAP_FLAGS_PAL_FROM_CACHE, "PAL_FROM_CACHE" },
{ SPICE_BITMAP_FLAGS_TOP_DOWN, "TOP_DOWN" },
{ 0, NULL } };
typedef enum SpiceJpegAlphaFlags {
SPICE_JPEG_ALPHA_FLAGS_TOP_DOWN = (1 << 0),
SPICE_JPEG_ALPHA_FLAGS_MASK = 0x1
} SpiceJpegAlphaFlags;
static const value_string spice_jpeg_alpha_flags_vs[] = {
{ SPICE_JPEG_ALPHA_FLAGS_TOP_DOWN, "TOP_DOWN" },
{ 0, NULL } };
typedef enum SpiceImageScaleMode {
SPICE_IMAGE_SCALE_MODE_INTERPOLATE,
SPICE_IMAGE_SCALE_MODE_NEAREST,
SPICE_IMAGE_SCALE_MODE_ENUM_END
} SpiceImageScaleMode;
static const value_string spice_image_scale_mode_vs[] = {
{ SPICE_IMAGE_SCALE_MODE_INTERPOLATE, "INTERPOLATE" },
{ SPICE_IMAGE_SCALE_MODE_NEAREST, "NEAREST" },
{ 0, NULL } };
typedef enum SpiceRopd {
SPICE_ROPD_INVERS_SRC = (1 << 0),
SPICE_ROPD_INVERS_BRUSH = (1 << 1),
SPICE_ROPD_INVERS_DEST = (1 << 2),
SPICE_ROPD_OP_PUT = (1 << 3),
SPICE_ROPD_OP_OR = (1 << 4),
SPICE_ROPD_OP_AND = (1 << 5),
SPICE_ROPD_OP_XOR = (1 << 6),
SPICE_ROPD_OP_BLACKNESS = (1 << 7),
SPICE_ROPD_OP_WHITENESS = (1 << 8),
SPICE_ROPD_OP_INVERS = (1 << 9),
SPICE_ROPD_INVERS_RES = (1 << 10),
SPICE_ROPD_MASK = 0x7ff
} SpiceRopd;
static const value_string spice_ropd_vs[] = {
{ SPICE_ROPD_INVERS_SRC, "INVERS_SRC" },
{ SPICE_ROPD_INVERS_BRUSH, "INVERS_BRUSH" },
{ SPICE_ROPD_INVERS_DEST, "INVERS_DEST" },
{ SPICE_ROPD_OP_PUT, "OP_PUT" },
{ SPICE_ROPD_OP_OR, "OP_OR" },
{ SPICE_ROPD_OP_AND, "OP_AND" },
{ SPICE_ROPD_OP_XOR, "OP_XOR" },
{ SPICE_ROPD_OP_BLACKNESS, "OP_BLACKNESS" },
{ SPICE_ROPD_OP_WHITENESS, "OP_WHITENESS" },
{ SPICE_ROPD_OP_INVERS, "OP_INVERS" },
{ SPICE_ROPD_INVERS_RES, "INVERS_RES" },
{ 0, NULL } };
typedef enum SpiceLineFlags {
SPICE_LINE_FLAGS_START_WITH_GAP = (1 << 2),
SPICE_LINE_FLAGS_STYLED = (1 << 3),
SPICE_LINE_FLAGS_MASK = 0xc
} SpiceLineFlags;
static const value_string spice_line_flags_vs[] = {
{ SPICE_LINE_FLAGS_START_WITH_GAP, "START_WITH_GAP" },
{ SPICE_LINE_FLAGS_STYLED, "STYLED" },
{ 0, NULL } };
typedef enum SpiceStringFlags {
SPICE_STRING_FLAGS_RASTER_A1 = (1 << 0),
SPICE_STRING_FLAGS_RASTER_A4 = (1 << 1),
SPICE_STRING_FLAGS_RASTER_A8 = (1 << 2),
SPICE_STRING_FLAGS_RASTER_TOP_DOWN = (1 << 3),
SPICE_STRING_FLAGS_MASK = 0xf
} SpiceStringFlags;
static const value_string spice_string_flags_vs[] = {
{ SPICE_STRING_FLAGS_RASTER_A1, "RASTER_A1" },
{ SPICE_STRING_FLAGS_RASTER_A4, "RASTER_A4" },
{ SPICE_STRING_FLAGS_RASTER_A8, "RASTER_A8" },
{ SPICE_STRING_FLAGS_RASTER_TOP_DOWN, "RASTER_TOP_DOWN" },
{ 0, NULL } };
typedef enum SpiceSurfaceFlags {
SPICE_SURFACE_FLAGS_PRIMARY = (1 << 0),
SPICE_SURFACE_FLAGS_STREAMING_MODE = (1 << 1),
SPICE_SURFACE_FLAGS_MASK = 0x3
} SpiceSurfaceFlags;
static const value_string spice_surface_flags_vs[] = {
{ SPICE_SURFACE_FLAGS_PRIMARY, "PRIMARY" },
{ SPICE_SURFACE_FLAGS_STREAMING_MODE, "STREAMING_MODE" },
{ 0, NULL } };
typedef enum SpiceSurfaceFmt {
SPICE_SURFACE_FMT_INVALID,
SPICE_SURFACE_FMT_1_A,
SPICE_SURFACE_FMT_8_A = 8,
SPICE_SURFACE_FMT_16_555 = 16,
SPICE_SURFACE_FMT_32_xRGB = 32,
SPICE_SURFACE_FMT_16_565 = 80,
SPICE_SURFACE_FMT_32_ARGB = 96,
SPICE_SURFACE_FMT_ENUM_END
} SpiceSurfaceFmt;
static const value_string spice_surface_fmt_vs[] = {
{ SPICE_SURFACE_FMT_INVALID, "INVALID" },
{ SPICE_SURFACE_FMT_1_A, "1_A" },
{ SPICE_SURFACE_FMT_8_A, "8_A" },
{ SPICE_SURFACE_FMT_16_555, "16_555" },
{ SPICE_SURFACE_FMT_32_xRGB, "32_xRGB" },
{ SPICE_SURFACE_FMT_16_565, "16_565" },
{ SPICE_SURFACE_FMT_32_ARGB, "32_ARGB" },
{ 0, NULL } };
typedef enum SpiceAlphaFlags {
SPICE_ALPHA_FLAGS_DEST_HAS_ALPHA = (1 << 0),
SPICE_ALPHA_FLAGS_SRC_SURFACE_HAS_ALPHA = (1 << 1),
SPICE_ALPHA_FLAGS_MASK = 0x3
} SpiceAlphaFlags;
static const value_string spice_alpha_flags_vs[] = {
{ SPICE_ALPHA_FLAGS_DEST_HAS_ALPHA, "DEST_HAS_ALPHA" },
{ SPICE_ALPHA_FLAGS_SRC_SURFACE_HAS_ALPHA, "SRC_SURFACE_HAS_ALPHA" },
{ 0, NULL } };
typedef enum SpiceResourceType {
SPICE_RES_TYPE_INVALID,
SPICE_RES_TYPE_PIXMAP,
SPICE_RESOURCE_TYPE_ENUM_END
} SpiceResourceType;
static const value_string spice_resource_type_vs[] = {
{ SPICE_RES_TYPE_INVALID, "INVALID" },
{ SPICE_RES_TYPE_PIXMAP, "PIXMAP" },
{ 0, NULL } };
typedef enum SpiceGlScanoutFlags {
SPICE_GL_SCANOUT_FLAGS_Y0TOP = (1 << 0),
SPICE_GL_SCANOUT_FLAGS_MASK = 0x1
} SpiceGlScanoutFlags;
static const value_string spice_gl_scanout_flags_vs[] = {
{ SPICE_GL_SCANOUT_FLAGS_Y0TOP, "Y0TOP" },
{ 0, NULL } };
typedef enum SpiceKeyboardModifierFlags {
SPICE_KEYBOARD_MODIFIER_FLAGS_SCROLL_LOCK = (1 << 0),
SPICE_KEYBOARD_MODIFIER_FLAGS_NUM_LOCK = (1 << 1),
SPICE_KEYBOARD_MODIFIER_FLAGS_CAPS_LOCK = (1 << 2),
SPICE_KEYBOARD_MODIFIER_FLAGS_MASK = 0x7
} SpiceKeyboardModifierFlags;
static const value_string spice_keyboard_modifier_flags_vs[] = {
{ SPICE_KEYBOARD_MODIFIER_FLAGS_SCROLL_LOCK, "SCROLL_LOCK" },
{ SPICE_KEYBOARD_MODIFIER_FLAGS_NUM_LOCK, "NUM_LOCK" },
{ SPICE_KEYBOARD_MODIFIER_FLAGS_CAPS_LOCK, "CAPS_LOCK" },
{ 0, NULL } };
typedef enum SpiceMouseButton {
SPICE_MOUSE_BUTTON_INVALID,
SPICE_MOUSE_BUTTON_LEFT,
SPICE_MOUSE_BUTTON_MIDDLE,
SPICE_MOUSE_BUTTON_RIGHT,
SPICE_MOUSE_BUTTON_UP,
SPICE_MOUSE_BUTTON_DOWN,
SPICE_MOUSE_BUTTON_ENUM_END
} SpiceMouseButton;
static const value_string spice_mouse_button_vs[] = {
{ SPICE_MOUSE_BUTTON_INVALID, "INVALID" },
{ SPICE_MOUSE_BUTTON_LEFT, "LEFT" },
{ SPICE_MOUSE_BUTTON_MIDDLE, "MIDDLE" },
{ SPICE_MOUSE_BUTTON_RIGHT, "RIGHT" },
{ SPICE_MOUSE_BUTTON_UP, "UP" },
{ SPICE_MOUSE_BUTTON_DOWN, "DOWN" },
{ 0, NULL } };
typedef enum SpiceMouseButtonMask {
SPICE_MOUSE_BUTTON_MASK_LEFT = (1 << 0),
SPICE_MOUSE_BUTTON_MASK_MIDDLE = (1 << 1),
SPICE_MOUSE_BUTTON_MASK_RIGHT = (1 << 2),
SPICE_MOUSE_BUTTON_MASK_MASK = 0x7
} SpiceMouseButtonMask;
static const value_string spice_mouse_button_mask_vs[] = {
{ SPICE_MOUSE_BUTTON_MASK_LEFT, "LEFT" },
{ SPICE_MOUSE_BUTTON_MASK_MIDDLE, "MIDDLE" },
{ SPICE_MOUSE_BUTTON_MASK_RIGHT, "RIGHT" },
{ 0, NULL } };
typedef enum SpiceCursorType {
SPICE_CURSOR_TYPE_ALPHA,
SPICE_CURSOR_TYPE_MONO,
SPICE_CURSOR_TYPE_COLOR4,
SPICE_CURSOR_TYPE_COLOR8,
SPICE_CURSOR_TYPE_COLOR16,
SPICE_CURSOR_TYPE_COLOR24,
SPICE_CURSOR_TYPE_COLOR32,
SPICE_CURSOR_TYPE_ENUM_END
} SpiceCursorType;
static const value_string spice_cursor_type_vs[] = {
{ SPICE_CURSOR_TYPE_ALPHA, "ALPHA" },
{ SPICE_CURSOR_TYPE_MONO, "MONO" },
{ SPICE_CURSOR_TYPE_COLOR4, "COLOR4" },
{ SPICE_CURSOR_TYPE_COLOR8, "COLOR8" },
{ SPICE_CURSOR_TYPE_COLOR16, "COLOR16" },
{ SPICE_CURSOR_TYPE_COLOR24, "COLOR24" },
{ SPICE_CURSOR_TYPE_COLOR32, "COLOR32" },
{ 0, NULL } };
typedef enum SpiceCursorFlags {
SPICE_CURSOR_FLAGS_NONE = (1 << 0),
SPICE_CURSOR_FLAGS_CACHE_ME = (1 << 1),
SPICE_CURSOR_FLAGS_FROM_CACHE = (1 << 2),
SPICE_CURSOR_FLAGS_MASK = 0x7
} SpiceCursorFlags;
static const value_string spice_cursor_flags_vs[] = {
{ SPICE_CURSOR_FLAGS_NONE, "NONE" },
{ SPICE_CURSOR_FLAGS_CACHE_ME, "CACHE_ME" },
{ SPICE_CURSOR_FLAGS_FROM_CACHE, "FROM_CACHE" },
{ 0, NULL } };
typedef enum SpiceAudioDataMode {
SPICE_AUDIO_DATA_MODE_INVALID,
SPICE_AUDIO_DATA_MODE_RAW,
SPICE_AUDIO_DATA_MODE_CELT_0_5_1,
SPICE_AUDIO_DATA_MODE_OPUS,
SPICE_AUDIO_DATA_MODE_ENUM_END
} SpiceAudioDataMode;
static const value_string spice_audio_data_mode_vs[] = {
{ SPICE_AUDIO_DATA_MODE_INVALID, "INVALID" },
{ SPICE_AUDIO_DATA_MODE_RAW, "RAW" },
{ SPICE_AUDIO_DATA_MODE_CELT_0_5_1, "CELT_0_5_1" },
{ SPICE_AUDIO_DATA_MODE_OPUS, "OPUS" },
{ 0, NULL } };
typedef enum SpiceAudioFmt {
SPICE_AUDIO_FMT_INVALID,
SPICE_AUDIO_FMT_S16,
SPICE_AUDIO_FMT_ENUM_END
} SpiceAudioFmt;
static const value_string spice_audio_fmt_vs[] = {
{ SPICE_AUDIO_FMT_INVALID, "INVALID" },
{ SPICE_AUDIO_FMT_S16, "S16" },
{ 0, NULL } };
typedef enum SpiceTunnelServiceType {
SPICE_TUNNEL_SERVICE_TYPE_INVALID,
SPICE_TUNNEL_SERVICE_TYPE_GENERIC,
SPICE_TUNNEL_SERVICE_TYPE_IPP,
SPICE_TUNNEL_SERVICE_TYPE_ENUM_END
} SpiceTunnelServiceType;
static const value_string spice_tunnel_service_type_vs[] = {
{ SPICE_TUNNEL_SERVICE_TYPE_INVALID, "INVALID" },
{ SPICE_TUNNEL_SERVICE_TYPE_GENERIC, "GENERIC" },
{ SPICE_TUNNEL_SERVICE_TYPE_IPP, "IPP" },
{ 0, NULL } };
typedef enum SpiceTunnelIpType {
SPICE_TUNNEL_IP_TYPE_INVALID,
SPICE_TUNNEL_IP_TYPE_IPv4,
SPICE_TUNNEL_IP_TYPE_ENUM_END
} SpiceTunnelIpType;
static const value_string spice_tunnel_ip_type_vs[] = {
{ SPICE_TUNNEL_IP_TYPE_INVALID, "INVALID" },
{ SPICE_TUNNEL_IP_TYPE_IPv4, "IPv4" },
{ 0, NULL } };
typedef enum SpiceVscMessageType {
SPICE_VSC_MESSAGE_TYPE_Init = 1,
SPICE_VSC_MESSAGE_TYPE_Error,
SPICE_VSC_MESSAGE_TYPE_ReaderAdd,
SPICE_VSC_MESSAGE_TYPE_ReaderRemove,
SPICE_VSC_MESSAGE_TYPE_ATR,
SPICE_VSC_MESSAGE_TYPE_CardRemove,
SPICE_VSC_MESSAGE_TYPE_APDU,
SPICE_VSC_MESSAGE_TYPE_Flush,
SPICE_VSC_MESSAGE_TYPE_FlushComplete,
SPICE_VSC_MESSAGE_TYPE_ENUM_END
} SpiceVscMessageType;
static const value_string spice_vsc_message_type_vs[] = {
{ SPICE_VSC_MESSAGE_TYPE_Init, "Init" },
{ SPICE_VSC_MESSAGE_TYPE_Error, "Error" },
{ SPICE_VSC_MESSAGE_TYPE_ReaderAdd, "ReaderAdd" },
{ SPICE_VSC_MESSAGE_TYPE_ReaderRemove, "ReaderRemove" },
{ SPICE_VSC_MESSAGE_TYPE_ATR, "ATR" },
{ SPICE_VSC_MESSAGE_TYPE_CardRemove, "CardRemove" },
{ SPICE_VSC_MESSAGE_TYPE_APDU, "APDU" },
{ SPICE_VSC_MESSAGE_TYPE_Flush, "Flush" },
{ SPICE_VSC_MESSAGE_TYPE_FlushComplete, "FlushComplete" },
{ 0, NULL } };
enum {
SPICE_CHANNEL_MAIN = 1,
SPICE_CHANNEL_DISPLAY,
SPICE_CHANNEL_INPUTS,
SPICE_CHANNEL_CURSOR,
SPICE_CHANNEL_PLAYBACK,
SPICE_CHANNEL_RECORD,
SPICE_CHANNEL_TUNNEL,
SPICE_CHANNEL_SMARTCARD,
SPICE_CHANNEL_USBREDIR,
SPICE_CHANNEL_PORT,
SPICE_CHANNEL_WEBDAV,
SPICE_END_CHANNEL
};
static const value_string channel_types_vs[] = {
{ SPICE_CHANNEL_MAIN, "MAIN" },
{ SPICE_CHANNEL_DISPLAY, "DISPLAY" },
{ SPICE_CHANNEL_INPUTS, "INPUTS" },
{ SPICE_CHANNEL_CURSOR, "CURSOR" },
{ SPICE_CHANNEL_PLAYBACK, "PLAYBACK" },
{ SPICE_CHANNEL_RECORD, "RECORD" },
{ SPICE_CHANNEL_TUNNEL, "TUNNEL" },
{ SPICE_CHANNEL_SMARTCARD, "SMARTCARD" },
{ SPICE_CHANNEL_USBREDIR, "USBREDIR" },
{ SPICE_CHANNEL_PORT, "PORT" },
{ SPICE_CHANNEL_WEBDAV, "WEBDAV" },
{ 0, NULL }
};
enum {
SPICE_MSG_MIGRATE = 1,
SPICE_MSG_MIGRATE_DATA,
SPICE_MSG_SET_ACK,
SPICE_MSG_PING,
SPICE_MSG_WAIT_FOR_CHANNELS,
SPICE_MSG_DISCONNECTING,
SPICE_MSG_NOTIFY,
SPICE_MSG_LIST,
SPICE_MSG_BASE_LAST = 100,
};
static const value_string spice_msg_vs[] = {
{ SPICE_MSG_MIGRATE, "Server MIGRATE" },
{ SPICE_MSG_MIGRATE_DATA, "Server MIGRATE_DATA" },
{ SPICE_MSG_SET_ACK, "Server SET_ACK" },
{ SPICE_MSG_PING, "Server PING" },
{ SPICE_MSG_WAIT_FOR_CHANNELS, "Server WAIT_FOR_CHANNELS" },
{ SPICE_MSG_DISCONNECTING, "Server DISCONNECTING" },
{ SPICE_MSG_NOTIFY, "Server NOTIFY" },
{ SPICE_MSG_LIST, "Server LIST" },
{ SPICE_MSG_BASE_LAST, "Server BASE_LAST" },
{ 0, NULL }
};
enum {
SPICE_MSGC_ACK_SYNC = 1,
SPICE_MSGC_ACK,
SPICE_MSGC_PONG,
SPICE_MSGC_MIGRATE_FLUSH_MARK,
SPICE_MSGC_MIGRATE_DATA,
SPICE_MSGC_DISCONNECTING,
};
static const value_string spice_msgc_vs[] = {
{ SPICE_MSGC_ACK_SYNC, "Client ACK_SYNC" },
{ SPICE_MSGC_ACK, "Client ACK" },
{ SPICE_MSGC_PONG, "Client PONG" },
{ SPICE_MSGC_MIGRATE_FLUSH_MARK, "Client MIGRATE_FLUSH_MARK" },
{ SPICE_MSGC_MIGRATE_DATA, "Client MIGRATE_DATA" },
{ SPICE_MSGC_DISCONNECTING, "Client DISCONNECTING" },
{ 0, NULL }
};
enum {
SPICE_MSG_MAIN_MIGRATE_BEGIN = 101,
SPICE_MSG_MAIN_MIGRATE_CANCEL,
SPICE_MSG_MAIN_INIT,
SPICE_MSG_MAIN_CHANNELS_LIST,
SPICE_MSG_MAIN_MOUSE_MODE,
SPICE_MSG_MAIN_MULTI_MEDIA_TIME,
SPICE_MSG_MAIN_AGENT_CONNECTED,
SPICE_MSG_MAIN_AGENT_DISCONNECTED,
SPICE_MSG_MAIN_AGENT_DATA,
SPICE_MSG_MAIN_AGENT_TOKEN,
SPICE_MSG_MAIN_MIGRATE_SWITCH_HOST,
SPICE_MSG_MAIN_MIGRATE_END,
SPICE_MSG_MAIN_NAME,
SPICE_MSG_MAIN_UUID,
SPICE_MSG_MAIN_AGENT_CONNECTED_TOKENS,
SPICE_MSG_MAIN_MIGRATE_BEGIN_SEAMLESS,
SPICE_MSG_MAIN_MIGRATE_DST_SEAMLESS_ACK,
SPICE_MSG_MAIN_MIGRATE_DST_SEAMLESS_NACK,
SPICE_MSG_END_MAIN
};
static const value_string spice_msg_main_vs[] = {
{ SPICE_MSG_MAIN_MIGRATE_BEGIN, "Server MIGRATE_BEGIN" },
{ SPICE_MSG_MAIN_MIGRATE_CANCEL, "Server MIGRATE_CANCEL" },
{ SPICE_MSG_MAIN_INIT, "Server INIT" },
{ SPICE_MSG_MAIN_CHANNELS_LIST, "Server CHANNELS_LIST" },
{ SPICE_MSG_MAIN_MOUSE_MODE, "Server MOUSE_MODE" },
{ SPICE_MSG_MAIN_MULTI_MEDIA_TIME, "Server MULTI_MEDIA_TIME" },
{ SPICE_MSG_MAIN_AGENT_CONNECTED, "Server AGENT_CONNECTED" },
{ SPICE_MSG_MAIN_AGENT_DISCONNECTED, "Server AGENT_DISCONNECTED" },
{ SPICE_MSG_MAIN_AGENT_DATA, "Server AGENT_DATA" },
{ SPICE_MSG_MAIN_AGENT_TOKEN, "Server AGENT_TOKEN" },
{ SPICE_MSG_MAIN_MIGRATE_SWITCH_HOST, "Server MIGRATE_SWITCH_HOST" },
{ SPICE_MSG_MAIN_MIGRATE_END, "Server MIGRATE_END" },
{ SPICE_MSG_MAIN_NAME, "Server NAME" },
{ SPICE_MSG_MAIN_UUID, "Server UUID" },
{ SPICE_MSG_MAIN_AGENT_CONNECTED_TOKENS, "Server AGENT_CONNECTED_TOKENS" },
{ SPICE_MSG_MAIN_MIGRATE_BEGIN_SEAMLESS, "Server MIGRATE_BEGIN_SEAMLESS" },
{ SPICE_MSG_MAIN_MIGRATE_DST_SEAMLESS_ACK, "Server MIGRATE_DST_SEAMLESS_ACK" },
{ SPICE_MSG_MAIN_MIGRATE_DST_SEAMLESS_NACK, "Server MIGRATE_DST_SEAMLESS_NACK" },
{ 0, NULL }
};
enum {
SPICE_MSGC_MAIN_CLIENT_INFO = 101,
SPICE_MSGC_MAIN_MIGRATE_CONNECTED,
SPICE_MSGC_MAIN_MIGRATE_CONNECT_ERROR,
SPICE_MSGC_MAIN_ATTACH_CHANNELS,
SPICE_MSGC_MAIN_MOUSE_MODE_REQUEST,
SPICE_MSGC_MAIN_AGENT_START,
SPICE_MSGC_MAIN_AGENT_DATA,
SPICE_MSGC_MAIN_AGENT_TOKEN,
SPICE_MSGC_MAIN_MIGRATE_END,
SPICE_MSGC_MAIN_MIGRATE_DST_DO_SEAMLESS,
SPICE_MSGC_MAIN_MIGRATE_CONNECTED_SEAMLESS,
SPICE_MSGC_END_MAIN
};
static const value_string spice_msgc_main_vs[] = {
{ SPICE_MSGC_MAIN_CLIENT_INFO, "Client CLIENT_INFO" },
{ SPICE_MSGC_MAIN_MIGRATE_CONNECTED, "Client MIGRATE_CONNECTED" },
{ SPICE_MSGC_MAIN_MIGRATE_CONNECT_ERROR, "Client MIGRATE_CONNECT_ERROR" },
{ SPICE_MSGC_MAIN_ATTACH_CHANNELS, "Client ATTACH_CHANNELS" },
{ SPICE_MSGC_MAIN_MOUSE_MODE_REQUEST, "Client MOUSE_MODE_REQUEST" },
{ SPICE_MSGC_MAIN_AGENT_START, "Client AGENT_START" },
{ SPICE_MSGC_MAIN_AGENT_DATA, "Client AGENT_DATA" },
{ SPICE_MSGC_MAIN_AGENT_TOKEN, "Client AGENT_TOKEN" },
{ SPICE_MSGC_MAIN_MIGRATE_END, "Client MIGRATE_END" },
{ SPICE_MSGC_MAIN_MIGRATE_DST_DO_SEAMLESS, "Client MIGRATE_DST_DO_SEAMLESS" },
{ SPICE_MSGC_MAIN_MIGRATE_CONNECTED_SEAMLESS, "Client MIGRATE_CONNECTED_SEAMLESS" },
{ 0, NULL }
};
enum {
SPICE_MSG_DISPLAY_MODE = 101,
SPICE_MSG_DISPLAY_MARK,
SPICE_MSG_DISPLAY_RESET,
SPICE_MSG_DISPLAY_COPY_BITS,
SPICE_MSG_DISPLAY_INVAL_LIST,
SPICE_MSG_DISPLAY_INVAL_ALL_PIXMAPS,
SPICE_MSG_DISPLAY_INVAL_PALETTE,
SPICE_MSG_DISPLAY_INVAL_ALL_PALETTES,
SPICE_MSG_DISPLAY_STREAM_CREATE = 122,
SPICE_MSG_DISPLAY_STREAM_DATA,
SPICE_MSG_DISPLAY_STREAM_CLIP,
SPICE_MSG_DISPLAY_STREAM_DESTROY,
SPICE_MSG_DISPLAY_STREAM_DESTROY_ALL,
SPICE_MSG_DISPLAY_DRAW_FILL = 302,
SPICE_MSG_DISPLAY_DRAW_OPAQUE,
SPICE_MSG_DISPLAY_DRAW_COPY,
SPICE_MSG_DISPLAY_DRAW_BLEND,
SPICE_MSG_DISPLAY_DRAW_BLACKNESS,
SPICE_MSG_DISPLAY_DRAW_WHITENESS,
SPICE_MSG_DISPLAY_DRAW_INVERS,
SPICE_MSG_DISPLAY_DRAW_ROP3,
SPICE_MSG_DISPLAY_DRAW_STROKE,
SPICE_MSG_DISPLAY_DRAW_TEXT,
SPICE_MSG_DISPLAY_DRAW_TRANSPARENT,
SPICE_MSG_DISPLAY_DRAW_ALPHA_BLEND,
SPICE_MSG_DISPLAY_SURFACE_CREATE,
SPICE_MSG_DISPLAY_SURFACE_DESTROY,
SPICE_MSG_DISPLAY_STREAM_DATA_SIZED,
SPICE_MSG_DISPLAY_MONITORS_CONFIG,
SPICE_MSG_DISPLAY_DRAW_COMPOSITE,
SPICE_MSG_DISPLAY_STREAM_ACTIVATE_REPORT,
SPICE_MSG_DISPLAY_GL_SCANOUT_UNIX,
SPICE_MSG_DISPLAY_GL_DRAW,
SPICE_MSG_END_DISPLAY
};
static const value_string spice_msg_display_vs[] = {
{ SPICE_MSG_DISPLAY_MODE, "Server MODE" },
{ SPICE_MSG_DISPLAY_MARK, "Server MARK" },
{ SPICE_MSG_DISPLAY_RESET, "Server RESET" },
{ SPICE_MSG_DISPLAY_COPY_BITS, "Server COPY_BITS" },
{ SPICE_MSG_DISPLAY_INVAL_LIST, "Server INVAL_LIST" },
{ SPICE_MSG_DISPLAY_INVAL_ALL_PIXMAPS, "Server INVAL_ALL_PIXMAPS" },
{ SPICE_MSG_DISPLAY_INVAL_PALETTE, "Server INVAL_PALETTE" },
{ SPICE_MSG_DISPLAY_INVAL_ALL_PALETTES, "Server INVAL_ALL_PALETTES" },
{ SPICE_MSG_DISPLAY_STREAM_CREATE, "Server STREAM_CREATE" },
{ SPICE_MSG_DISPLAY_STREAM_DATA, "Server STREAM_DATA" },
{ SPICE_MSG_DISPLAY_STREAM_CLIP, "Server STREAM_CLIP" },
{ SPICE_MSG_DISPLAY_STREAM_DESTROY, "Server STREAM_DESTROY" },
{ SPICE_MSG_DISPLAY_STREAM_DESTROY_ALL, "Server STREAM_DESTROY_ALL" },
{ SPICE_MSG_DISPLAY_DRAW_FILL, "Server DRAW_FILL" },
{ SPICE_MSG_DISPLAY_DRAW_OPAQUE, "Server DRAW_OPAQUE" },
{ SPICE_MSG_DISPLAY_DRAW_COPY, "Server DRAW_COPY" },
{ SPICE_MSG_DISPLAY_DRAW_BLEND, "Server DRAW_BLEND" },
{ SPICE_MSG_DISPLAY_DRAW_BLACKNESS, "Server DRAW_BLACKNESS" },
{ SPICE_MSG_DISPLAY_DRAW_WHITENESS, "Server DRAW_WHITENESS" },
{ SPICE_MSG_DISPLAY_DRAW_INVERS, "Server DRAW_INVERS" },
{ SPICE_MSG_DISPLAY_DRAW_ROP3, "Server DRAW_ROP3" },
{ SPICE_MSG_DISPLAY_DRAW_STROKE, "Server DRAW_STROKE" },
{ SPICE_MSG_DISPLAY_DRAW_TEXT, "Server DRAW_TEXT" },
{ SPICE_MSG_DISPLAY_DRAW_TRANSPARENT, "Server DRAW_TRANSPARENT" },
{ SPICE_MSG_DISPLAY_DRAW_ALPHA_BLEND, "Server DRAW_ALPHA_BLEND" },
{ SPICE_MSG_DISPLAY_SURFACE_CREATE, "Server SURFACE_CREATE" },
{ SPICE_MSG_DISPLAY_SURFACE_DESTROY, "Server SURFACE_DESTROY" },
{ SPICE_MSG_DISPLAY_STREAM_DATA_SIZED, "Server STREAM_DATA_SIZED" },
{ SPICE_MSG_DISPLAY_MONITORS_CONFIG, "Server MONITORS_CONFIG" },
{ SPICE_MSG_DISPLAY_DRAW_COMPOSITE, "Server DRAW_COMPOSITE" },
{ SPICE_MSG_DISPLAY_STREAM_ACTIVATE_REPORT, "Server STREAM_ACTIVATE_REPORT" },
{ SPICE_MSG_DISPLAY_GL_SCANOUT_UNIX, "Server GL_SCANOUT_UNIX" },
{ SPICE_MSG_DISPLAY_GL_DRAW, "Server GL_DRAW" },
{ 0, NULL }
};
enum {
SPICE_MSGC_DISPLAY_INIT = 101,
SPICE_MSGC_DISPLAY_STREAM_REPORT,
SPICE_MSGC_DISPLAY_PREFERRED_COMPRESSION,
SPICE_MSGC_DISPLAY_GL_DRAW_DONE,
SPICE_MSGC_DISPLAY_PREFERRED_VIDEO_CODEC_TYPE,
SPICE_MSGC_END_DISPLAY
};
static const value_string spice_msgc_display_vs[] = {
{ SPICE_MSGC_DISPLAY_INIT, "Client INIT" },
{ SPICE_MSGC_DISPLAY_STREAM_REPORT, "Client STREAM_REPORT" },
{ SPICE_MSGC_DISPLAY_PREFERRED_COMPRESSION, "Client PREFERRED_COMPRESSION" },
{ SPICE_MSGC_DISPLAY_GL_DRAW_DONE, "Client GL_DRAW_DONE" },
{ SPICE_MSGC_DISPLAY_PREFERRED_VIDEO_CODEC_TYPE, "Client PREFERRED_VIDEO_CODEC_TYPE" },
{ 0, NULL }
};
enum {
SPICE_MSG_INPUTS_INIT = 101,
SPICE_MSG_INPUTS_KEY_MODIFIERS,
SPICE_MSG_INPUTS_MOUSE_MOTION_ACK = 111,
SPICE_MSG_END_INPUTS
};
static const value_string spice_msg_inputs_vs[] = {
{ SPICE_MSG_INPUTS_INIT, "Server INIT" },
{ SPICE_MSG_INPUTS_KEY_MODIFIERS, "Server KEY_MODIFIERS" },
{ SPICE_MSG_INPUTS_MOUSE_MOTION_ACK, "Server MOUSE_MOTION_ACK" },
{ 0, NULL }
};
enum {
SPICE_MSGC_INPUTS_KEY_DOWN = 101,
SPICE_MSGC_INPUTS_KEY_UP,
SPICE_MSGC_INPUTS_KEY_MODIFIERS,
SPICE_MSGC_INPUTS_KEY_SCANCODE,
SPICE_MSGC_INPUTS_MOUSE_MOTION = 111,
SPICE_MSGC_INPUTS_MOUSE_POSITION,
SPICE_MSGC_INPUTS_MOUSE_PRESS,
SPICE_MSGC_INPUTS_MOUSE_RELEASE,
SPICE_MSGC_END_INPUTS
};
static const value_string spice_msgc_inputs_vs[] = {
{ SPICE_MSGC_INPUTS_KEY_DOWN, "Client KEY_DOWN" },
{ SPICE_MSGC_INPUTS_KEY_UP, "Client KEY_UP" },
{ SPICE_MSGC_INPUTS_KEY_MODIFIERS, "Client KEY_MODIFIERS" },
{ SPICE_MSGC_INPUTS_KEY_SCANCODE, "Client KEY_SCANCODE" },
{ SPICE_MSGC_INPUTS_MOUSE_MOTION, "Client MOUSE_MOTION" },
{ SPICE_MSGC_INPUTS_MOUSE_POSITION, "Client MOUSE_POSITION" },
{ SPICE_MSGC_INPUTS_MOUSE_PRESS, "Client MOUSE_PRESS" },
{ SPICE_MSGC_INPUTS_MOUSE_RELEASE, "Client MOUSE_RELEASE" },
{ 0, NULL }
};
enum {
SPICE_MSG_CURSOR_INIT = 101,
SPICE_MSG_CURSOR_RESET,
SPICE_MSG_CURSOR_SET,
SPICE_MSG_CURSOR_MOVE,
SPICE_MSG_CURSOR_HIDE,
SPICE_MSG_CURSOR_TRAIL,
SPICE_MSG_CURSOR_INVAL_ONE,
SPICE_MSG_CURSOR_INVAL_ALL,
SPICE_MSG_END_CURSOR
};
static const value_string spice_msg_cursor_vs[] = {
{ SPICE_MSG_CURSOR_INIT, "Server INIT" },
{ SPICE_MSG_CURSOR_RESET, "Server RESET" },
{ SPICE_MSG_CURSOR_SET, "Server SET" },
{ SPICE_MSG_CURSOR_MOVE, "Server MOVE" },
{ SPICE_MSG_CURSOR_HIDE, "Server HIDE" },
{ SPICE_MSG_CURSOR_TRAIL, "Server TRAIL" },
{ SPICE_MSG_CURSOR_INVAL_ONE, "Server INVAL_ONE" },
{ SPICE_MSG_CURSOR_INVAL_ALL, "Server INVAL_ALL" },
{ 0, NULL }
};
enum {
SPICE_MSG_PLAYBACK_DATA = 101,
SPICE_MSG_PLAYBACK_MODE,
SPICE_MSG_PLAYBACK_START,
SPICE_MSG_PLAYBACK_STOP,
SPICE_MSG_PLAYBACK_VOLUME,
SPICE_MSG_PLAYBACK_MUTE,
SPICE_MSG_PLAYBACK_LATENCY,
SPICE_MSG_END_PLAYBACK
};
static const value_string spice_msg_playback_vs[] = {
{ SPICE_MSG_PLAYBACK_DATA, "Server DATA" },
{ SPICE_MSG_PLAYBACK_MODE, "Server MODE" },
{ SPICE_MSG_PLAYBACK_START, "Server START" },
{ SPICE_MSG_PLAYBACK_STOP, "Server STOP" },
{ SPICE_MSG_PLAYBACK_VOLUME, "Server VOLUME" },
{ SPICE_MSG_PLAYBACK_MUTE, "Server MUTE" },
{ SPICE_MSG_PLAYBACK_LATENCY, "Server LATENCY" },
{ 0, NULL }
};
enum {
SPICE_MSG_RECORD_START = 101,
SPICE_MSG_RECORD_STOP,
SPICE_MSG_RECORD_VOLUME,
SPICE_MSG_RECORD_MUTE,
SPICE_MSG_END_RECORD
};
static const value_string spice_msg_record_vs[] = {
{ SPICE_MSG_RECORD_START, "Server START" },
{ SPICE_MSG_RECORD_STOP, "Server STOP" },
{ SPICE_MSG_RECORD_VOLUME, "Server VOLUME" },
{ SPICE_MSG_RECORD_MUTE, "Server MUTE" },
{ 0, NULL }
};
enum {
SPICE_MSGC_RECORD_DATA = 101,
SPICE_MSGC_RECORD_MODE,
SPICE_MSGC_RECORD_START_MARK,
SPICE_MSGC_END_RECORD
};
static const value_string spice_msgc_record_vs[] = {
{ SPICE_MSGC_RECORD_DATA, "Client DATA" },
{ SPICE_MSGC_RECORD_MODE, "Client MODE" },
{ SPICE_MSGC_RECORD_START_MARK, "Client START_MARK" },
{ 0, NULL }
};
enum {
SPICE_MSG_TUNNEL_INIT = 101,
SPICE_MSG_TUNNEL_SERVICE_IP_MAP,
SPICE_MSG_TUNNEL_SOCKET_OPEN,
SPICE_MSG_TUNNEL_SOCKET_FIN,
SPICE_MSG_TUNNEL_SOCKET_CLOSE,
SPICE_MSG_TUNNEL_SOCKET_DATA,
SPICE_MSG_TUNNEL_SOCKET_CLOSED_ACK,
SPICE_MSG_TUNNEL_SOCKET_TOKEN,
SPICE_MSG_END_TUNNEL
};
static const value_string spice_msg_tunnel_vs[] = {
{ SPICE_MSG_TUNNEL_INIT, "Server INIT" },
{ SPICE_MSG_TUNNEL_SERVICE_IP_MAP, "Server SERVICE_IP_MAP" },
{ SPICE_MSG_TUNNEL_SOCKET_OPEN, "Server SOCKET_OPEN" },
{ SPICE_MSG_TUNNEL_SOCKET_FIN, "Server SOCKET_FIN" },
{ SPICE_MSG_TUNNEL_SOCKET_CLOSE, "Server SOCKET_CLOSE" },
{ SPICE_MSG_TUNNEL_SOCKET_DATA, "Server SOCKET_DATA" },
{ SPICE_MSG_TUNNEL_SOCKET_CLOSED_ACK, "Server SOCKET_CLOSED_ACK" },
{ SPICE_MSG_TUNNEL_SOCKET_TOKEN, "Server SOCKET_TOKEN" },
{ 0, NULL }
};
enum {
SPICE_MSGC_TUNNEL_SERVICE_ADD = 101,
SPICE_MSGC_TUNNEL_SERVICE_REMOVE,
SPICE_MSGC_TUNNEL_SOCKET_OPEN_ACK,
SPICE_MSGC_TUNNEL_SOCKET_OPEN_NACK,
SPICE_MSGC_TUNNEL_SOCKET_FIN,
SPICE_MSGC_TUNNEL_SOCKET_CLOSED,
SPICE_MSGC_TUNNEL_SOCKET_CLOSED_ACK,
SPICE_MSGC_TUNNEL_SOCKET_DATA,
SPICE_MSGC_TUNNEL_SOCKET_TOKEN,
SPICE_MSGC_END_TUNNEL
};
static const value_string spice_msgc_tunnel_vs[] = {
{ SPICE_MSGC_TUNNEL_SERVICE_ADD, "Client SERVICE_ADD" },
{ SPICE_MSGC_TUNNEL_SERVICE_REMOVE, "Client SERVICE_REMOVE" },
{ SPICE_MSGC_TUNNEL_SOCKET_OPEN_ACK, "Client SOCKET_OPEN_ACK" },
{ SPICE_MSGC_TUNNEL_SOCKET_OPEN_NACK, "Client SOCKET_OPEN_NACK" },
{ SPICE_MSGC_TUNNEL_SOCKET_FIN, "Client SOCKET_FIN" },
{ SPICE_MSGC_TUNNEL_SOCKET_CLOSED, "Client SOCKET_CLOSED" },
{ SPICE_MSGC_TUNNEL_SOCKET_CLOSED_ACK, "Client SOCKET_CLOSED_ACK" },
{ SPICE_MSGC_TUNNEL_SOCKET_DATA, "Client SOCKET_DATA" },
{ SPICE_MSGC_TUNNEL_SOCKET_TOKEN, "Client SOCKET_TOKEN" },
{ 0, NULL }
};
enum {
SPICE_MSG_SMARTCARD_DATA = 101,
SPICE_MSG_END_SMARTCARD
};
static const value_string spice_msg_smartcard_vs[] = {
{ SPICE_MSG_SMARTCARD_DATA, "Server DATA" },
{ 0, NULL }
};
enum {
SPICE_MSGC_SMARTCARD_HEADER = 101,
SPICE_MSGC_END_SMARTCARD
};
static const value_string spice_msgc_smartcard_vs[] = {
{ SPICE_MSGC_SMARTCARD_HEADER, "Client HEADER" },
{ 0, NULL }
};
enum {
SPICE_MSG_SPICEVMC_DATA = 101,
SPICE_MSG_SPICEVMC_COMPRESSED_DATA,
SPICE_MSG_END_SPICEVMC
};
static const value_string spice_msg_spicevmc_vs[] = {
{ SPICE_MSG_SPICEVMC_DATA, "Server DATA" },
{ SPICE_MSG_SPICEVMC_COMPRESSED_DATA, "Server COMPRESSED_DATA" },
{ 0, NULL }
};
enum {
SPICE_MSGC_SPICEVMC_DATA = 101,
SPICE_MSGC_SPICEVMC_COMPRESSED_DATA,
SPICE_MSGC_END_SPICEVMC
};
static const value_string spice_msgc_spicevmc_vs[] = {
{ SPICE_MSGC_SPICEVMC_DATA, "Client DATA" },
{ SPICE_MSGC_SPICEVMC_COMPRESSED_DATA, "Client COMPRESSED_DATA" },
{ 0, NULL }
};
enum {
SPICE_MSG_PORT_INIT = 201,
SPICE_MSG_PORT_EVENT,
SPICE_MSG_END_PORT
};
static const value_string spice_msg_port_vs[] = {
{ SPICE_MSG_PORT_INIT, "Server INIT" },
{ SPICE_MSG_PORT_EVENT, "Server EVENT" },
{ 0, NULL }
};
enum {
SPICE_MSGC_PORT_EVENT = 201,
SPICE_MSGC_END_PORT
};
static const value_string spice_msgc_port_vs[] = {
{ SPICE_MSGC_PORT_EVENT, "Client EVENT" },
{ 0, NULL }
};
#endif /* _H_SPICE_ENUMS */
|