@girs/spiceclientglib-2.0 2.0.0-3.2.5 → 2.0.0-3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +8 -8
- package/spiceclientglib-2.0.d.cts +330 -11
- package/spiceclientglib-2.0.d.ts +330 -11
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for SpiceClientGLib-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for SpiceClientGLib-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
GObject for communicating with Spice servers.
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/spiceclientglib-2.0",
|
|
3
|
-
"version": "2.0.0-3.2.
|
|
3
|
+
"version": "2.0.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for SpiceClientGLib-2.0, generated from library version 2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "spiceclientglib-2.0.js",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit spiceclientglib-2.0.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
29
|
-
"@girs/gjs": "^3.2.
|
|
30
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
31
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
32
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
33
|
-
"@girs/gst-1.0": "^1.23.0-3.2.
|
|
34
|
-
"@girs/gstbase-1.0": "^1.0.0-3.2.
|
|
28
|
+
"@girs/gio-2.0": "^2.78.0-3.2.7",
|
|
29
|
+
"@girs/gjs": "^3.2.7",
|
|
30
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
31
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.7",
|
|
32
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7",
|
|
33
|
+
"@girs/gst-1.0": "^1.23.0-3.2.7",
|
|
34
|
+
"@girs/gstbase-1.0": "^1.0.0-3.2.7"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typescript": "*"
|
|
@@ -525,7 +525,7 @@ export function util_get_debug(): boolean
|
|
|
525
525
|
* Gets the version string
|
|
526
526
|
* @returns Spice-GTK version as a const string.
|
|
527
527
|
*/
|
|
528
|
-
export function util_get_version_string(): string
|
|
528
|
+
export function util_get_version_string(): string
|
|
529
529
|
/**
|
|
530
530
|
* Enable or disable Spice-GTK debugging messages.
|
|
531
531
|
* @param enabled %TRUE or %FALSE
|
|
@@ -554,6 +554,7 @@ export module Audio {
|
|
|
554
554
|
* #SpiceSession this #SpiceAudio is associated with
|
|
555
555
|
*/
|
|
556
556
|
session?: Session | null
|
|
557
|
+
mainContext?: GLib.MainContext | null
|
|
557
558
|
}
|
|
558
559
|
|
|
559
560
|
}
|
|
@@ -563,6 +564,7 @@ export interface Audio {
|
|
|
563
564
|
// Own properties of SpiceClientGLib-2.0.SpiceClientGLib.Audio
|
|
564
565
|
|
|
565
566
|
readonly main_context: GLib.MainContext
|
|
567
|
+
readonly mainContext: GLib.MainContext
|
|
566
568
|
/**
|
|
567
569
|
* #SpiceSession this #SpiceAudio is associated with
|
|
568
570
|
*/
|
|
@@ -672,6 +674,9 @@ export module Channel {
|
|
|
672
674
|
channel_id?: number | null
|
|
673
675
|
channel_type?: number | null
|
|
674
676
|
spice_session?: Session | null
|
|
677
|
+
channelId?: number | null
|
|
678
|
+
channelType?: number | null
|
|
679
|
+
spiceSession?: Session | null
|
|
675
680
|
}
|
|
676
681
|
|
|
677
682
|
}
|
|
@@ -681,7 +686,9 @@ export interface Channel {
|
|
|
681
686
|
// Own properties of SpiceClientGLib-2.0.SpiceClientGLib.Channel
|
|
682
687
|
|
|
683
688
|
readonly channel_id: number
|
|
689
|
+
readonly channelId: number
|
|
684
690
|
readonly channel_type: number
|
|
691
|
+
readonly channelType: number
|
|
685
692
|
/**
|
|
686
693
|
* Get the underlying #GSocket. Note that you should not read or
|
|
687
694
|
* write any data to it directly since this will likely corrupt
|
|
@@ -690,7 +697,9 @@ export interface Channel {
|
|
|
690
697
|
*/
|
|
691
698
|
readonly socket: Gio.Socket
|
|
692
699
|
readonly spice_session: Session
|
|
700
|
+
readonly spiceSession: Session
|
|
693
701
|
readonly total_read_bytes: number
|
|
702
|
+
readonly totalReadBytes: number
|
|
694
703
|
|
|
695
704
|
// Own fields of SpiceClientGLib-2.0.SpiceClientGLib.Channel
|
|
696
705
|
|
|
@@ -862,13 +871,13 @@ export class Channel extends GObject.Object {
|
|
|
862
871
|
* @param str a string representation of the channel-type property
|
|
863
872
|
* @returns the channel-type property value for a @str channel
|
|
864
873
|
*/
|
|
865
|
-
static string_to_type(str: string
|
|
874
|
+
static string_to_type(str: string): number
|
|
866
875
|
/**
|
|
867
876
|
* Convert a channel-type property value to a string.
|
|
868
877
|
* @param type a channel-type property value
|
|
869
878
|
* @returns string representation of @type.
|
|
870
879
|
*/
|
|
871
|
-
static type_to_string(type: number): string
|
|
880
|
+
static type_to_string(type: number): string
|
|
872
881
|
}
|
|
873
882
|
|
|
874
883
|
export module CursorChannel {
|
|
@@ -1156,6 +1165,10 @@ export interface DisplayChannel {
|
|
|
1156
1165
|
* The last #SpiceGlScanout received.
|
|
1157
1166
|
*/
|
|
1158
1167
|
readonly gl_scanout: GlScanout
|
|
1168
|
+
/**
|
|
1169
|
+
* The last #SpiceGlScanout received.
|
|
1170
|
+
*/
|
|
1171
|
+
readonly glScanout: GlScanout
|
|
1159
1172
|
readonly height: number
|
|
1160
1173
|
/**
|
|
1161
1174
|
* Current monitors configuration.
|
|
@@ -1167,6 +1180,12 @@ export interface DisplayChannel {
|
|
|
1167
1180
|
* reboot or dynamically adjust this.
|
|
1168
1181
|
*/
|
|
1169
1182
|
readonly monitors_max: number
|
|
1183
|
+
/**
|
|
1184
|
+
* The maximum number of monitors the server or guest supports.
|
|
1185
|
+
* May change during client lifetime, for instance guest may
|
|
1186
|
+
* reboot or dynamically adjust this.
|
|
1187
|
+
*/
|
|
1188
|
+
readonly monitorsMax: number
|
|
1170
1189
|
readonly width: number
|
|
1171
1190
|
|
|
1172
1191
|
// Own fields of SpiceClientGLib-2.0.SpiceClientGLib.DisplayChannel
|
|
@@ -1480,7 +1499,9 @@ export interface FileTransferTask {
|
|
|
1480
1499
|
readonly id: number
|
|
1481
1500
|
readonly progress: number
|
|
1482
1501
|
readonly total_bytes: number
|
|
1502
|
+
readonly totalBytes: number
|
|
1483
1503
|
readonly transferred_bytes: number
|
|
1504
|
+
readonly transferredBytes: number
|
|
1484
1505
|
|
|
1485
1506
|
// Owm methods of SpiceClientGLib-2.0.SpiceClientGLib.FileTransferTask
|
|
1486
1507
|
|
|
@@ -1562,6 +1583,7 @@ export interface InputsChannel {
|
|
|
1562
1583
|
// Own properties of SpiceClientGLib-2.0.SpiceClientGLib.InputsChannel
|
|
1563
1584
|
|
|
1564
1585
|
readonly key_modifiers: number
|
|
1586
|
+
readonly keyModifiers: number
|
|
1565
1587
|
|
|
1566
1588
|
// Own fields of SpiceClientGLib-2.0.SpiceClientGLib.InputsChannel
|
|
1567
1589
|
|
|
@@ -1849,6 +1871,20 @@ export module MainChannel {
|
|
|
1849
1871
|
* -1 for unlimited size);
|
|
1850
1872
|
*/
|
|
1851
1873
|
max_clipboard?: number | null
|
|
1874
|
+
colorDepth?: number | null
|
|
1875
|
+
disableAnimation?: boolean | null
|
|
1876
|
+
/**
|
|
1877
|
+
* Disable automatic horizontal display position alignment.
|
|
1878
|
+
*/
|
|
1879
|
+
disableDisplayAlign?: boolean | null
|
|
1880
|
+
disableDisplayPosition?: boolean | null
|
|
1881
|
+
disableFontSmooth?: boolean | null
|
|
1882
|
+
disableWallpaper?: boolean | null
|
|
1883
|
+
/**
|
|
1884
|
+
* Maximum size of clipboard operations in bytes (default 100MB,
|
|
1885
|
+
* -1 for unlimited size);
|
|
1886
|
+
*/
|
|
1887
|
+
maxClipboard?: number | null
|
|
1852
1888
|
}
|
|
1853
1889
|
|
|
1854
1890
|
}
|
|
@@ -1858,21 +1894,37 @@ export interface MainChannel {
|
|
|
1858
1894
|
// Own properties of SpiceClientGLib-2.0.SpiceClientGLib.MainChannel
|
|
1859
1895
|
|
|
1860
1896
|
readonly agent_caps_0: number
|
|
1897
|
+
readonly agentCaps0: number
|
|
1861
1898
|
readonly agent_connected: boolean
|
|
1899
|
+
readonly agentConnected: boolean
|
|
1862
1900
|
color_depth: number
|
|
1901
|
+
colorDepth: number
|
|
1863
1902
|
disable_animation: boolean
|
|
1903
|
+
disableAnimation: boolean
|
|
1864
1904
|
/**
|
|
1865
1905
|
* Disable automatic horizontal display position alignment.
|
|
1866
1906
|
*/
|
|
1867
1907
|
disable_display_align: boolean
|
|
1908
|
+
/**
|
|
1909
|
+
* Disable automatic horizontal display position alignment.
|
|
1910
|
+
*/
|
|
1911
|
+
disableDisplayAlign: boolean
|
|
1868
1912
|
disable_display_position: boolean
|
|
1913
|
+
disableDisplayPosition: boolean
|
|
1869
1914
|
disable_font_smooth: boolean
|
|
1915
|
+
disableFontSmooth: boolean
|
|
1870
1916
|
disable_wallpaper: boolean
|
|
1917
|
+
disableWallpaper: boolean
|
|
1871
1918
|
/**
|
|
1872
1919
|
* Maximum size of clipboard operations in bytes (default 100MB,
|
|
1873
1920
|
* -1 for unlimited size);
|
|
1874
1921
|
*/
|
|
1875
1922
|
max_clipboard: number
|
|
1923
|
+
/**
|
|
1924
|
+
* Maximum size of clipboard operations in bytes (default 100MB,
|
|
1925
|
+
* -1 for unlimited size);
|
|
1926
|
+
*/
|
|
1927
|
+
maxClipboard: number
|
|
1876
1928
|
/**
|
|
1877
1929
|
* Spice protocol specifies two mouse modes, client mode and
|
|
1878
1930
|
* server mode. In client mode (%SPICE_MOUSE_MODE_CLIENT), the
|
|
@@ -1883,6 +1935,16 @@ export interface MainChannel {
|
|
|
1883
1935
|
* position and shape commands.
|
|
1884
1936
|
*/
|
|
1885
1937
|
readonly mouse_mode: number
|
|
1938
|
+
/**
|
|
1939
|
+
* Spice protocol specifies two mouse modes, client mode and
|
|
1940
|
+
* server mode. In client mode (%SPICE_MOUSE_MODE_CLIENT), the
|
|
1941
|
+
* affective mouse is the client side mouse: the client sends
|
|
1942
|
+
* mouse position within the display and the server sends mouse
|
|
1943
|
+
* shape messages. In server mode (%SPICE_MOUSE_MODE_SERVER), the
|
|
1944
|
+
* client sends relative mouse movements and the server sends
|
|
1945
|
+
* position and shape commands.
|
|
1946
|
+
*/
|
|
1947
|
+
readonly mouseMode: number
|
|
1886
1948
|
|
|
1887
1949
|
// Own fields of SpiceClientGLib-2.0.SpiceClientGLib.MainChannel
|
|
1888
1950
|
|
|
@@ -2427,6 +2489,7 @@ export module PlaybackChannel {
|
|
|
2427
2489
|
mute?: boolean | null
|
|
2428
2490
|
nchannels?: number | null
|
|
2429
2491
|
volume?: any | null
|
|
2492
|
+
minLatency?: number | null
|
|
2430
2493
|
}
|
|
2431
2494
|
|
|
2432
2495
|
}
|
|
@@ -2436,6 +2499,7 @@ export interface PlaybackChannel {
|
|
|
2436
2499
|
// Own properties of SpiceClientGLib-2.0.SpiceClientGLib.PlaybackChannel
|
|
2437
2500
|
|
|
2438
2501
|
min_latency: number
|
|
2502
|
+
minLatency: number
|
|
2439
2503
|
mute: boolean
|
|
2440
2504
|
nchannels: number
|
|
2441
2505
|
volume: any
|
|
@@ -2678,7 +2742,9 @@ export interface PortChannel {
|
|
|
2678
2742
|
// Own properties of SpiceClientGLib-2.0.SpiceClientGLib.PortChannel
|
|
2679
2743
|
|
|
2680
2744
|
readonly port_name: string | null
|
|
2745
|
+
readonly portName: string | null
|
|
2681
2746
|
readonly port_opened: boolean
|
|
2747
|
+
readonly portOpened: boolean
|
|
2682
2748
|
|
|
2683
2749
|
// Own fields of SpiceClientGLib-2.0.SpiceClientGLib.PortChannel
|
|
2684
2750
|
|
|
@@ -3382,6 +3448,91 @@ export module Session {
|
|
|
3382
3448
|
* certificate should be checked
|
|
3383
3449
|
*/
|
|
3384
3450
|
verify?: SessionVerify | null
|
|
3451
|
+
/**
|
|
3452
|
+
* File holding the CA certificates for the host the client is
|
|
3453
|
+
* connecting to
|
|
3454
|
+
*/
|
|
3455
|
+
caFile?: string | null
|
|
3456
|
+
/**
|
|
3457
|
+
* Images cache size. If 0, don't set.
|
|
3458
|
+
*/
|
|
3459
|
+
cacheSize?: number | null
|
|
3460
|
+
certSubject?: string | null
|
|
3461
|
+
clientSockets?: boolean | null
|
|
3462
|
+
/**
|
|
3463
|
+
* Display color depth to set on new display channels. If 0, don't set.
|
|
3464
|
+
*/
|
|
3465
|
+
colorDepth?: number | null
|
|
3466
|
+
/**
|
|
3467
|
+
* A string array of effects to disable. The settings will
|
|
3468
|
+
* be applied on new display channels. The following effets can be
|
|
3469
|
+
* disabled "wallpaper", "font-smooth", "animation", and "all",
|
|
3470
|
+
* which will disable all the effects. If NULL, don't apply changes.
|
|
3471
|
+
*/
|
|
3472
|
+
disableEffects?: string[] | null
|
|
3473
|
+
/**
|
|
3474
|
+
* If set to TRUE, the audio channels will be enabled for
|
|
3475
|
+
* playback and recording.
|
|
3476
|
+
*/
|
|
3477
|
+
enableAudio?: boolean | null
|
|
3478
|
+
/**
|
|
3479
|
+
* If set to TRUE, the smartcard channel will be enabled and smartcard
|
|
3480
|
+
* events will be forwarded to the guest
|
|
3481
|
+
*/
|
|
3482
|
+
enableSmartcard?: boolean | null
|
|
3483
|
+
/**
|
|
3484
|
+
* If set to TRUE, the usbredir channel will be enabled and USB devices
|
|
3485
|
+
* can be redirected to the guest
|
|
3486
|
+
*/
|
|
3487
|
+
enableUsbredir?: boolean | null
|
|
3488
|
+
/**
|
|
3489
|
+
* Whether to enable gl-scanout (Unix only). Set to TRUE by
|
|
3490
|
+
* default on EGL-enabled host, unless SPICE_DISABLE_GL_SCANOUT
|
|
3491
|
+
* environment variable is set.
|
|
3492
|
+
*/
|
|
3493
|
+
glScanout?: boolean | null
|
|
3494
|
+
/**
|
|
3495
|
+
* Glz window size. If 0, don't set.
|
|
3496
|
+
*/
|
|
3497
|
+
glzWindowSize?: number | null
|
|
3498
|
+
inhibitKeyboardGrab?: boolean | null
|
|
3499
|
+
/**
|
|
3500
|
+
* Whether this connection is read-only mode.
|
|
3501
|
+
*/
|
|
3502
|
+
readOnly?: boolean | null
|
|
3503
|
+
/**
|
|
3504
|
+
* A string array of channel types to be secured.
|
|
3505
|
+
*/
|
|
3506
|
+
secureChannels?: string[] | null
|
|
3507
|
+
/**
|
|
3508
|
+
* Whether to share the directory read-only.
|
|
3509
|
+
*/
|
|
3510
|
+
shareDirRo?: boolean | null
|
|
3511
|
+
/**
|
|
3512
|
+
* Location of the shared directory
|
|
3513
|
+
*/
|
|
3514
|
+
sharedDir?: string | null
|
|
3515
|
+
/**
|
|
3516
|
+
* This property is used when one wants to simulate a smartcard with no
|
|
3517
|
+
* hardware smartcard reader. If it's set to a NULL-terminated string
|
|
3518
|
+
* array containing the names of 3 valid certificates, these will be
|
|
3519
|
+
* used to simulate a smartcard in the guest
|
|
3520
|
+
* See also spice_smartcard_manager_insert_card()
|
|
3521
|
+
*/
|
|
3522
|
+
smartcardCertificates?: string[] | null
|
|
3523
|
+
/**
|
|
3524
|
+
* Path to the NSS certificate database containing the certificates to
|
|
3525
|
+
* use to simulate a software smartcard
|
|
3526
|
+
*/
|
|
3527
|
+
smartcardDb?: string | null
|
|
3528
|
+
/**
|
|
3529
|
+
* Port to connect to for TLS sessions
|
|
3530
|
+
*/
|
|
3531
|
+
tlsPort?: string | null
|
|
3532
|
+
/**
|
|
3533
|
+
* Path of the Unix socket to connect to
|
|
3534
|
+
*/
|
|
3535
|
+
unixPath?: string | null
|
|
3385
3536
|
}
|
|
3386
3537
|
|
|
3387
3538
|
}
|
|
@@ -3404,17 +3555,32 @@ export interface Session {
|
|
|
3404
3555
|
* connecting to
|
|
3405
3556
|
*/
|
|
3406
3557
|
ca_file: string | null
|
|
3558
|
+
/**
|
|
3559
|
+
* File holding the CA certificates for the host the client is
|
|
3560
|
+
* connecting to
|
|
3561
|
+
*/
|
|
3562
|
+
caFile: string | null
|
|
3407
3563
|
/**
|
|
3408
3564
|
* Images cache size. If 0, don't set.
|
|
3409
3565
|
*/
|
|
3410
3566
|
cache_size: number
|
|
3567
|
+
/**
|
|
3568
|
+
* Images cache size. If 0, don't set.
|
|
3569
|
+
*/
|
|
3570
|
+
cacheSize: number
|
|
3411
3571
|
cert_subject: string | null
|
|
3572
|
+
certSubject: string | null
|
|
3412
3573
|
ciphers: string | null
|
|
3413
3574
|
client_sockets: boolean
|
|
3575
|
+
clientSockets: boolean
|
|
3414
3576
|
/**
|
|
3415
3577
|
* Display color depth to set on new display channels. If 0, don't set.
|
|
3416
3578
|
*/
|
|
3417
3579
|
color_depth: number
|
|
3580
|
+
/**
|
|
3581
|
+
* Display color depth to set on new display channels. If 0, don't set.
|
|
3582
|
+
*/
|
|
3583
|
+
colorDepth: number
|
|
3418
3584
|
/**
|
|
3419
3585
|
* A string array of effects to disable. The settings will
|
|
3420
3586
|
* be applied on new display channels. The following effets can be
|
|
@@ -3422,41 +3588,79 @@ export interface Session {
|
|
|
3422
3588
|
* which will disable all the effects. If NULL, don't apply changes.
|
|
3423
3589
|
*/
|
|
3424
3590
|
disable_effects: string[]
|
|
3591
|
+
/**
|
|
3592
|
+
* A string array of effects to disable. The settings will
|
|
3593
|
+
* be applied on new display channels. The following effets can be
|
|
3594
|
+
* disabled "wallpaper", "font-smooth", "animation", and "all",
|
|
3595
|
+
* which will disable all the effects. If NULL, don't apply changes.
|
|
3596
|
+
*/
|
|
3597
|
+
disableEffects: string[]
|
|
3425
3598
|
/**
|
|
3426
3599
|
* If set to TRUE, the audio channels will be enabled for
|
|
3427
3600
|
* playback and recording.
|
|
3428
3601
|
*/
|
|
3429
3602
|
enable_audio: boolean
|
|
3603
|
+
/**
|
|
3604
|
+
* If set to TRUE, the audio channels will be enabled for
|
|
3605
|
+
* playback and recording.
|
|
3606
|
+
*/
|
|
3607
|
+
enableAudio: boolean
|
|
3430
3608
|
/**
|
|
3431
3609
|
* If set to TRUE, the smartcard channel will be enabled and smartcard
|
|
3432
3610
|
* events will be forwarded to the guest
|
|
3433
3611
|
*/
|
|
3434
3612
|
enable_smartcard: boolean
|
|
3613
|
+
/**
|
|
3614
|
+
* If set to TRUE, the smartcard channel will be enabled and smartcard
|
|
3615
|
+
* events will be forwarded to the guest
|
|
3616
|
+
*/
|
|
3617
|
+
enableSmartcard: boolean
|
|
3435
3618
|
/**
|
|
3436
3619
|
* If set to TRUE, the usbredir channel will be enabled and USB devices
|
|
3437
3620
|
* can be redirected to the guest
|
|
3438
3621
|
*/
|
|
3439
3622
|
enable_usbredir: boolean
|
|
3623
|
+
/**
|
|
3624
|
+
* If set to TRUE, the usbredir channel will be enabled and USB devices
|
|
3625
|
+
* can be redirected to the guest
|
|
3626
|
+
*/
|
|
3627
|
+
enableUsbredir: boolean
|
|
3440
3628
|
/**
|
|
3441
3629
|
* Whether to enable gl-scanout (Unix only). Set to TRUE by
|
|
3442
3630
|
* default on EGL-enabled host, unless SPICE_DISABLE_GL_SCANOUT
|
|
3443
3631
|
* environment variable is set.
|
|
3444
3632
|
*/
|
|
3445
3633
|
gl_scanout: boolean
|
|
3634
|
+
/**
|
|
3635
|
+
* Whether to enable gl-scanout (Unix only). Set to TRUE by
|
|
3636
|
+
* default on EGL-enabled host, unless SPICE_DISABLE_GL_SCANOUT
|
|
3637
|
+
* environment variable is set.
|
|
3638
|
+
*/
|
|
3639
|
+
glScanout: boolean
|
|
3446
3640
|
/**
|
|
3447
3641
|
* Glz window size. If 0, don't set.
|
|
3448
3642
|
*/
|
|
3449
3643
|
glz_window_size: number
|
|
3644
|
+
/**
|
|
3645
|
+
* Glz window size. If 0, don't set.
|
|
3646
|
+
*/
|
|
3647
|
+
glzWindowSize: number
|
|
3450
3648
|
/**
|
|
3451
3649
|
* URL of the SPICE host to connect to
|
|
3452
3650
|
*/
|
|
3453
3651
|
host: string | null
|
|
3454
3652
|
inhibit_keyboard_grab: boolean
|
|
3653
|
+
inhibitKeyboardGrab: boolean
|
|
3455
3654
|
/**
|
|
3456
3655
|
* #SpiceSessionMigration bit field indicating if a migration is in
|
|
3457
3656
|
* progress
|
|
3458
3657
|
*/
|
|
3459
3658
|
readonly migration_state: SessionMigration
|
|
3659
|
+
/**
|
|
3660
|
+
* #SpiceSessionMigration bit field indicating if a migration is in
|
|
3661
|
+
* progress
|
|
3662
|
+
*/
|
|
3663
|
+
readonly migrationState: SessionMigration
|
|
3460
3664
|
/**
|
|
3461
3665
|
* Spice server name.
|
|
3462
3666
|
*/
|
|
@@ -3483,18 +3687,34 @@ export interface Session {
|
|
|
3483
3687
|
* Whether this connection is read-only mode.
|
|
3484
3688
|
*/
|
|
3485
3689
|
read_only: boolean
|
|
3690
|
+
/**
|
|
3691
|
+
* Whether this connection is read-only mode.
|
|
3692
|
+
*/
|
|
3693
|
+
readOnly: boolean
|
|
3486
3694
|
/**
|
|
3487
3695
|
* A string array of channel types to be secured.
|
|
3488
3696
|
*/
|
|
3489
3697
|
secure_channels: string[]
|
|
3698
|
+
/**
|
|
3699
|
+
* A string array of channel types to be secured.
|
|
3700
|
+
*/
|
|
3701
|
+
secureChannels: string[]
|
|
3490
3702
|
/**
|
|
3491
3703
|
* Whether to share the directory read-only.
|
|
3492
3704
|
*/
|
|
3493
3705
|
share_dir_ro: boolean
|
|
3706
|
+
/**
|
|
3707
|
+
* Whether to share the directory read-only.
|
|
3708
|
+
*/
|
|
3709
|
+
shareDirRo: boolean
|
|
3494
3710
|
/**
|
|
3495
3711
|
* Location of the shared directory
|
|
3496
3712
|
*/
|
|
3497
3713
|
shared_dir: string | null
|
|
3714
|
+
/**
|
|
3715
|
+
* Location of the shared directory
|
|
3716
|
+
*/
|
|
3717
|
+
sharedDir: string | null
|
|
3498
3718
|
/**
|
|
3499
3719
|
* This property is used when one wants to simulate a smartcard with no
|
|
3500
3720
|
* hardware smartcard reader. If it's set to a NULL-terminated string
|
|
@@ -3503,19 +3723,40 @@ export interface Session {
|
|
|
3503
3723
|
* See also spice_smartcard_manager_insert_card()
|
|
3504
3724
|
*/
|
|
3505
3725
|
smartcard_certificates: string[]
|
|
3726
|
+
/**
|
|
3727
|
+
* This property is used when one wants to simulate a smartcard with no
|
|
3728
|
+
* hardware smartcard reader. If it's set to a NULL-terminated string
|
|
3729
|
+
* array containing the names of 3 valid certificates, these will be
|
|
3730
|
+
* used to simulate a smartcard in the guest
|
|
3731
|
+
* See also spice_smartcard_manager_insert_card()
|
|
3732
|
+
*/
|
|
3733
|
+
smartcardCertificates: string[]
|
|
3506
3734
|
/**
|
|
3507
3735
|
* Path to the NSS certificate database containing the certificates to
|
|
3508
3736
|
* use to simulate a software smartcard
|
|
3509
3737
|
*/
|
|
3510
3738
|
smartcard_db: string | null
|
|
3739
|
+
/**
|
|
3740
|
+
* Path to the NSS certificate database containing the certificates to
|
|
3741
|
+
* use to simulate a software smartcard
|
|
3742
|
+
*/
|
|
3743
|
+
smartcardDb: string | null
|
|
3511
3744
|
/**
|
|
3512
3745
|
* Port to connect to for TLS sessions
|
|
3513
3746
|
*/
|
|
3514
3747
|
tls_port: string | null
|
|
3748
|
+
/**
|
|
3749
|
+
* Port to connect to for TLS sessions
|
|
3750
|
+
*/
|
|
3751
|
+
tlsPort: string | null
|
|
3515
3752
|
/**
|
|
3516
3753
|
* Path of the Unix socket to connect to
|
|
3517
3754
|
*/
|
|
3518
3755
|
unix_path: string | null
|
|
3756
|
+
/**
|
|
3757
|
+
* Path of the Unix socket to connect to
|
|
3758
|
+
*/
|
|
3759
|
+
unixPath: string | null
|
|
3519
3760
|
/**
|
|
3520
3761
|
* URI of the SPICE host to connect to. The URI is of the form
|
|
3521
3762
|
* spice://hostname?port=XXX or spice://hostname?tls_port=XXX
|
|
@@ -4028,16 +4269,16 @@ export interface URI {
|
|
|
4028
4269
|
|
|
4029
4270
|
// Owm methods of SpiceClientGLib-2.0.SpiceClientGLib.URI
|
|
4030
4271
|
|
|
4031
|
-
get_hostname(): string
|
|
4032
|
-
get_password(): string
|
|
4272
|
+
get_hostname(): string
|
|
4273
|
+
get_password(): string
|
|
4033
4274
|
get_port(): number
|
|
4034
|
-
get_scheme(): string
|
|
4035
|
-
get_user(): string
|
|
4036
|
-
set_hostname(hostname: string
|
|
4037
|
-
set_password(password: string
|
|
4275
|
+
get_scheme(): string
|
|
4276
|
+
get_user(): string
|
|
4277
|
+
set_hostname(hostname: string): void
|
|
4278
|
+
set_password(password: string): void
|
|
4038
4279
|
set_port(port: number): void
|
|
4039
|
-
set_scheme(scheme: string
|
|
4040
|
-
set_user(user: string
|
|
4280
|
+
set_scheme(scheme: string): void
|
|
4281
|
+
set_user(user: string): void
|
|
4041
4282
|
to_string(): string | null
|
|
4042
4283
|
|
|
4043
4284
|
// Class property signals of SpiceClientGLib-2.0.SpiceClientGLib.URI
|
|
@@ -4160,6 +4401,43 @@ export module UsbDeviceManager {
|
|
|
4160
4401
|
* #SpiceSession this #SpiceUsbDeviceManager is associated with
|
|
4161
4402
|
*/
|
|
4162
4403
|
session?: Session | null
|
|
4404
|
+
/**
|
|
4405
|
+
* Set this to TRUE to automatically redirect newly plugged in device.
|
|
4406
|
+
*
|
|
4407
|
+
* Note when #SpiceGtkSession's auto-usbredir property is TRUE, this
|
|
4408
|
+
* property is controlled by #SpiceGtkSession.
|
|
4409
|
+
*/
|
|
4410
|
+
autoConnect?: boolean | null
|
|
4411
|
+
/**
|
|
4412
|
+
* Set a string specifying a filter to use to determine which USB devices
|
|
4413
|
+
* to autoconnect when plugged in, a filter consists of one or more rules.
|
|
4414
|
+
* Where each rule has the form of:
|
|
4415
|
+
*
|
|
4416
|
+
* `class,``vendor,``product,``version,``allow`
|
|
4417
|
+
*
|
|
4418
|
+
* Use -1 for `class/``vendor/``product/``version` to accept any value.
|
|
4419
|
+
*
|
|
4420
|
+
* And the rules themselves are concatenated like this:
|
|
4421
|
+
*
|
|
4422
|
+
* `rule1`|`rule2`|`rule3`
|
|
4423
|
+
*
|
|
4424
|
+
* The default setting filters out HID (class 0x03) USB devices from auto
|
|
4425
|
+
* connect and auto connects anything else. Note the explicit allow rule at
|
|
4426
|
+
* the end, this is necessary since by default all devices without a
|
|
4427
|
+
* matching filter rule will not auto-connect.
|
|
4428
|
+
*
|
|
4429
|
+
* Filter strings in this format can be easily created with the RHEV-M
|
|
4430
|
+
* USB filter editor tool.
|
|
4431
|
+
*/
|
|
4432
|
+
autoConnectFilter?: string | null
|
|
4433
|
+
/**
|
|
4434
|
+
* Set a string specifying a filter selecting USB devices to automatically
|
|
4435
|
+
* redirect after a Spice connection has been established.
|
|
4436
|
+
*
|
|
4437
|
+
* See #SpiceUsbDeviceManager:auto-connect-filter for the filter string
|
|
4438
|
+
* format.
|
|
4439
|
+
*/
|
|
4440
|
+
redirectOnConnect?: string | null
|
|
4163
4441
|
}
|
|
4164
4442
|
|
|
4165
4443
|
}
|
|
@@ -4175,6 +4453,13 @@ export interface UsbDeviceManager extends Gio.Initable {
|
|
|
4175
4453
|
* property is controlled by #SpiceGtkSession.
|
|
4176
4454
|
*/
|
|
4177
4455
|
auto_connect: boolean
|
|
4456
|
+
/**
|
|
4457
|
+
* Set this to TRUE to automatically redirect newly plugged in device.
|
|
4458
|
+
*
|
|
4459
|
+
* Note when #SpiceGtkSession's auto-usbredir property is TRUE, this
|
|
4460
|
+
* property is controlled by #SpiceGtkSession.
|
|
4461
|
+
*/
|
|
4462
|
+
autoConnect: boolean
|
|
4178
4463
|
/**
|
|
4179
4464
|
* Set a string specifying a filter to use to determine which USB devices
|
|
4180
4465
|
* to autoconnect when plugged in, a filter consists of one or more rules.
|
|
@@ -4197,10 +4482,36 @@ export interface UsbDeviceManager extends Gio.Initable {
|
|
|
4197
4482
|
* USB filter editor tool.
|
|
4198
4483
|
*/
|
|
4199
4484
|
auto_connect_filter: string | null
|
|
4485
|
+
/**
|
|
4486
|
+
* Set a string specifying a filter to use to determine which USB devices
|
|
4487
|
+
* to autoconnect when plugged in, a filter consists of one or more rules.
|
|
4488
|
+
* Where each rule has the form of:
|
|
4489
|
+
*
|
|
4490
|
+
* `class,``vendor,``product,``version,``allow`
|
|
4491
|
+
*
|
|
4492
|
+
* Use -1 for `class/``vendor/``product/``version` to accept any value.
|
|
4493
|
+
*
|
|
4494
|
+
* And the rules themselves are concatenated like this:
|
|
4495
|
+
*
|
|
4496
|
+
* `rule1`|`rule2`|`rule3`
|
|
4497
|
+
*
|
|
4498
|
+
* The default setting filters out HID (class 0x03) USB devices from auto
|
|
4499
|
+
* connect and auto connects anything else. Note the explicit allow rule at
|
|
4500
|
+
* the end, this is necessary since by default all devices without a
|
|
4501
|
+
* matching filter rule will not auto-connect.
|
|
4502
|
+
*
|
|
4503
|
+
* Filter strings in this format can be easily created with the RHEV-M
|
|
4504
|
+
* USB filter editor tool.
|
|
4505
|
+
*/
|
|
4506
|
+
autoConnectFilter: string | null
|
|
4200
4507
|
/**
|
|
4201
4508
|
* Get the number of available channels for redirecting USB devices.
|
|
4202
4509
|
*/
|
|
4203
4510
|
readonly free_channels: number
|
|
4511
|
+
/**
|
|
4512
|
+
* Get the number of available channels for redirecting USB devices.
|
|
4513
|
+
*/
|
|
4514
|
+
readonly freeChannels: number
|
|
4204
4515
|
/**
|
|
4205
4516
|
* Set a string specifying a filter selecting USB devices to automatically
|
|
4206
4517
|
* redirect after a Spice connection has been established.
|
|
@@ -4209,6 +4520,14 @@ export interface UsbDeviceManager extends Gio.Initable {
|
|
|
4209
4520
|
* format.
|
|
4210
4521
|
*/
|
|
4211
4522
|
redirect_on_connect: string | null
|
|
4523
|
+
/**
|
|
4524
|
+
* Set a string specifying a filter selecting USB devices to automatically
|
|
4525
|
+
* redirect after a Spice connection has been established.
|
|
4526
|
+
*
|
|
4527
|
+
* See #SpiceUsbDeviceManager:auto-connect-filter for the filter string
|
|
4528
|
+
* format.
|
|
4529
|
+
*/
|
|
4530
|
+
redirectOnConnect: string | null
|
|
4212
4531
|
/**
|
|
4213
4532
|
* #SpiceSession this #SpiceUsbDeviceManager is associated with
|
|
4214
4533
|
*/
|
package/spiceclientglib-2.0.d.ts
CHANGED
|
@@ -527,7 +527,7 @@ function util_get_debug(): boolean
|
|
|
527
527
|
* Gets the version string
|
|
528
528
|
* @returns Spice-GTK version as a const string.
|
|
529
529
|
*/
|
|
530
|
-
function util_get_version_string(): string
|
|
530
|
+
function util_get_version_string(): string
|
|
531
531
|
/**
|
|
532
532
|
* Enable or disable Spice-GTK debugging messages.
|
|
533
533
|
* @param enabled %TRUE or %FALSE
|
|
@@ -556,6 +556,7 @@ module Audio {
|
|
|
556
556
|
* #SpiceSession this #SpiceAudio is associated with
|
|
557
557
|
*/
|
|
558
558
|
session?: Session | null
|
|
559
|
+
mainContext?: GLib.MainContext | null
|
|
559
560
|
}
|
|
560
561
|
|
|
561
562
|
}
|
|
@@ -565,6 +566,7 @@ interface Audio {
|
|
|
565
566
|
// Own properties of SpiceClientGLib-2.0.SpiceClientGLib.Audio
|
|
566
567
|
|
|
567
568
|
readonly main_context: GLib.MainContext
|
|
569
|
+
readonly mainContext: GLib.MainContext
|
|
568
570
|
/**
|
|
569
571
|
* #SpiceSession this #SpiceAudio is associated with
|
|
570
572
|
*/
|
|
@@ -674,6 +676,9 @@ module Channel {
|
|
|
674
676
|
channel_id?: number | null
|
|
675
677
|
channel_type?: number | null
|
|
676
678
|
spice_session?: Session | null
|
|
679
|
+
channelId?: number | null
|
|
680
|
+
channelType?: number | null
|
|
681
|
+
spiceSession?: Session | null
|
|
677
682
|
}
|
|
678
683
|
|
|
679
684
|
}
|
|
@@ -683,7 +688,9 @@ interface Channel {
|
|
|
683
688
|
// Own properties of SpiceClientGLib-2.0.SpiceClientGLib.Channel
|
|
684
689
|
|
|
685
690
|
readonly channel_id: number
|
|
691
|
+
readonly channelId: number
|
|
686
692
|
readonly channel_type: number
|
|
693
|
+
readonly channelType: number
|
|
687
694
|
/**
|
|
688
695
|
* Get the underlying #GSocket. Note that you should not read or
|
|
689
696
|
* write any data to it directly since this will likely corrupt
|
|
@@ -692,7 +699,9 @@ interface Channel {
|
|
|
692
699
|
*/
|
|
693
700
|
readonly socket: Gio.Socket
|
|
694
701
|
readonly spice_session: Session
|
|
702
|
+
readonly spiceSession: Session
|
|
695
703
|
readonly total_read_bytes: number
|
|
704
|
+
readonly totalReadBytes: number
|
|
696
705
|
|
|
697
706
|
// Own fields of SpiceClientGLib-2.0.SpiceClientGLib.Channel
|
|
698
707
|
|
|
@@ -864,13 +873,13 @@ class Channel extends GObject.Object {
|
|
|
864
873
|
* @param str a string representation of the channel-type property
|
|
865
874
|
* @returns the channel-type property value for a @str channel
|
|
866
875
|
*/
|
|
867
|
-
static string_to_type(str: string
|
|
876
|
+
static string_to_type(str: string): number
|
|
868
877
|
/**
|
|
869
878
|
* Convert a channel-type property value to a string.
|
|
870
879
|
* @param type a channel-type property value
|
|
871
880
|
* @returns string representation of @type.
|
|
872
881
|
*/
|
|
873
|
-
static type_to_string(type: number): string
|
|
882
|
+
static type_to_string(type: number): string
|
|
874
883
|
}
|
|
875
884
|
|
|
876
885
|
module CursorChannel {
|
|
@@ -1158,6 +1167,10 @@ interface DisplayChannel {
|
|
|
1158
1167
|
* The last #SpiceGlScanout received.
|
|
1159
1168
|
*/
|
|
1160
1169
|
readonly gl_scanout: GlScanout
|
|
1170
|
+
/**
|
|
1171
|
+
* The last #SpiceGlScanout received.
|
|
1172
|
+
*/
|
|
1173
|
+
readonly glScanout: GlScanout
|
|
1161
1174
|
readonly height: number
|
|
1162
1175
|
/**
|
|
1163
1176
|
* Current monitors configuration.
|
|
@@ -1169,6 +1182,12 @@ interface DisplayChannel {
|
|
|
1169
1182
|
* reboot or dynamically adjust this.
|
|
1170
1183
|
*/
|
|
1171
1184
|
readonly monitors_max: number
|
|
1185
|
+
/**
|
|
1186
|
+
* The maximum number of monitors the server or guest supports.
|
|
1187
|
+
* May change during client lifetime, for instance guest may
|
|
1188
|
+
* reboot or dynamically adjust this.
|
|
1189
|
+
*/
|
|
1190
|
+
readonly monitorsMax: number
|
|
1172
1191
|
readonly width: number
|
|
1173
1192
|
|
|
1174
1193
|
// Own fields of SpiceClientGLib-2.0.SpiceClientGLib.DisplayChannel
|
|
@@ -1482,7 +1501,9 @@ interface FileTransferTask {
|
|
|
1482
1501
|
readonly id: number
|
|
1483
1502
|
readonly progress: number
|
|
1484
1503
|
readonly total_bytes: number
|
|
1504
|
+
readonly totalBytes: number
|
|
1485
1505
|
readonly transferred_bytes: number
|
|
1506
|
+
readonly transferredBytes: number
|
|
1486
1507
|
|
|
1487
1508
|
// Owm methods of SpiceClientGLib-2.0.SpiceClientGLib.FileTransferTask
|
|
1488
1509
|
|
|
@@ -1564,6 +1585,7 @@ interface InputsChannel {
|
|
|
1564
1585
|
// Own properties of SpiceClientGLib-2.0.SpiceClientGLib.InputsChannel
|
|
1565
1586
|
|
|
1566
1587
|
readonly key_modifiers: number
|
|
1588
|
+
readonly keyModifiers: number
|
|
1567
1589
|
|
|
1568
1590
|
// Own fields of SpiceClientGLib-2.0.SpiceClientGLib.InputsChannel
|
|
1569
1591
|
|
|
@@ -1851,6 +1873,20 @@ module MainChannel {
|
|
|
1851
1873
|
* -1 for unlimited size);
|
|
1852
1874
|
*/
|
|
1853
1875
|
max_clipboard?: number | null
|
|
1876
|
+
colorDepth?: number | null
|
|
1877
|
+
disableAnimation?: boolean | null
|
|
1878
|
+
/**
|
|
1879
|
+
* Disable automatic horizontal display position alignment.
|
|
1880
|
+
*/
|
|
1881
|
+
disableDisplayAlign?: boolean | null
|
|
1882
|
+
disableDisplayPosition?: boolean | null
|
|
1883
|
+
disableFontSmooth?: boolean | null
|
|
1884
|
+
disableWallpaper?: boolean | null
|
|
1885
|
+
/**
|
|
1886
|
+
* Maximum size of clipboard operations in bytes (default 100MB,
|
|
1887
|
+
* -1 for unlimited size);
|
|
1888
|
+
*/
|
|
1889
|
+
maxClipboard?: number | null
|
|
1854
1890
|
}
|
|
1855
1891
|
|
|
1856
1892
|
}
|
|
@@ -1860,21 +1896,37 @@ interface MainChannel {
|
|
|
1860
1896
|
// Own properties of SpiceClientGLib-2.0.SpiceClientGLib.MainChannel
|
|
1861
1897
|
|
|
1862
1898
|
readonly agent_caps_0: number
|
|
1899
|
+
readonly agentCaps0: number
|
|
1863
1900
|
readonly agent_connected: boolean
|
|
1901
|
+
readonly agentConnected: boolean
|
|
1864
1902
|
color_depth: number
|
|
1903
|
+
colorDepth: number
|
|
1865
1904
|
disable_animation: boolean
|
|
1905
|
+
disableAnimation: boolean
|
|
1866
1906
|
/**
|
|
1867
1907
|
* Disable automatic horizontal display position alignment.
|
|
1868
1908
|
*/
|
|
1869
1909
|
disable_display_align: boolean
|
|
1910
|
+
/**
|
|
1911
|
+
* Disable automatic horizontal display position alignment.
|
|
1912
|
+
*/
|
|
1913
|
+
disableDisplayAlign: boolean
|
|
1870
1914
|
disable_display_position: boolean
|
|
1915
|
+
disableDisplayPosition: boolean
|
|
1871
1916
|
disable_font_smooth: boolean
|
|
1917
|
+
disableFontSmooth: boolean
|
|
1872
1918
|
disable_wallpaper: boolean
|
|
1919
|
+
disableWallpaper: boolean
|
|
1873
1920
|
/**
|
|
1874
1921
|
* Maximum size of clipboard operations in bytes (default 100MB,
|
|
1875
1922
|
* -1 for unlimited size);
|
|
1876
1923
|
*/
|
|
1877
1924
|
max_clipboard: number
|
|
1925
|
+
/**
|
|
1926
|
+
* Maximum size of clipboard operations in bytes (default 100MB,
|
|
1927
|
+
* -1 for unlimited size);
|
|
1928
|
+
*/
|
|
1929
|
+
maxClipboard: number
|
|
1878
1930
|
/**
|
|
1879
1931
|
* Spice protocol specifies two mouse modes, client mode and
|
|
1880
1932
|
* server mode. In client mode (%SPICE_MOUSE_MODE_CLIENT), the
|
|
@@ -1885,6 +1937,16 @@ interface MainChannel {
|
|
|
1885
1937
|
* position and shape commands.
|
|
1886
1938
|
*/
|
|
1887
1939
|
readonly mouse_mode: number
|
|
1940
|
+
/**
|
|
1941
|
+
* Spice protocol specifies two mouse modes, client mode and
|
|
1942
|
+
* server mode. In client mode (%SPICE_MOUSE_MODE_CLIENT), the
|
|
1943
|
+
* affective mouse is the client side mouse: the client sends
|
|
1944
|
+
* mouse position within the display and the server sends mouse
|
|
1945
|
+
* shape messages. In server mode (%SPICE_MOUSE_MODE_SERVER), the
|
|
1946
|
+
* client sends relative mouse movements and the server sends
|
|
1947
|
+
* position and shape commands.
|
|
1948
|
+
*/
|
|
1949
|
+
readonly mouseMode: number
|
|
1888
1950
|
|
|
1889
1951
|
// Own fields of SpiceClientGLib-2.0.SpiceClientGLib.MainChannel
|
|
1890
1952
|
|
|
@@ -2429,6 +2491,7 @@ module PlaybackChannel {
|
|
|
2429
2491
|
mute?: boolean | null
|
|
2430
2492
|
nchannels?: number | null
|
|
2431
2493
|
volume?: any | null
|
|
2494
|
+
minLatency?: number | null
|
|
2432
2495
|
}
|
|
2433
2496
|
|
|
2434
2497
|
}
|
|
@@ -2438,6 +2501,7 @@ interface PlaybackChannel {
|
|
|
2438
2501
|
// Own properties of SpiceClientGLib-2.0.SpiceClientGLib.PlaybackChannel
|
|
2439
2502
|
|
|
2440
2503
|
min_latency: number
|
|
2504
|
+
minLatency: number
|
|
2441
2505
|
mute: boolean
|
|
2442
2506
|
nchannels: number
|
|
2443
2507
|
volume: any
|
|
@@ -2680,7 +2744,9 @@ interface PortChannel {
|
|
|
2680
2744
|
// Own properties of SpiceClientGLib-2.0.SpiceClientGLib.PortChannel
|
|
2681
2745
|
|
|
2682
2746
|
readonly port_name: string | null
|
|
2747
|
+
readonly portName: string | null
|
|
2683
2748
|
readonly port_opened: boolean
|
|
2749
|
+
readonly portOpened: boolean
|
|
2684
2750
|
|
|
2685
2751
|
// Own fields of SpiceClientGLib-2.0.SpiceClientGLib.PortChannel
|
|
2686
2752
|
|
|
@@ -3384,6 +3450,91 @@ module Session {
|
|
|
3384
3450
|
* certificate should be checked
|
|
3385
3451
|
*/
|
|
3386
3452
|
verify?: SessionVerify | null
|
|
3453
|
+
/**
|
|
3454
|
+
* File holding the CA certificates for the host the client is
|
|
3455
|
+
* connecting to
|
|
3456
|
+
*/
|
|
3457
|
+
caFile?: string | null
|
|
3458
|
+
/**
|
|
3459
|
+
* Images cache size. If 0, don't set.
|
|
3460
|
+
*/
|
|
3461
|
+
cacheSize?: number | null
|
|
3462
|
+
certSubject?: string | null
|
|
3463
|
+
clientSockets?: boolean | null
|
|
3464
|
+
/**
|
|
3465
|
+
* Display color depth to set on new display channels. If 0, don't set.
|
|
3466
|
+
*/
|
|
3467
|
+
colorDepth?: number | null
|
|
3468
|
+
/**
|
|
3469
|
+
* A string array of effects to disable. The settings will
|
|
3470
|
+
* be applied on new display channels. The following effets can be
|
|
3471
|
+
* disabled "wallpaper", "font-smooth", "animation", and "all",
|
|
3472
|
+
* which will disable all the effects. If NULL, don't apply changes.
|
|
3473
|
+
*/
|
|
3474
|
+
disableEffects?: string[] | null
|
|
3475
|
+
/**
|
|
3476
|
+
* If set to TRUE, the audio channels will be enabled for
|
|
3477
|
+
* playback and recording.
|
|
3478
|
+
*/
|
|
3479
|
+
enableAudio?: boolean | null
|
|
3480
|
+
/**
|
|
3481
|
+
* If set to TRUE, the smartcard channel will be enabled and smartcard
|
|
3482
|
+
* events will be forwarded to the guest
|
|
3483
|
+
*/
|
|
3484
|
+
enableSmartcard?: boolean | null
|
|
3485
|
+
/**
|
|
3486
|
+
* If set to TRUE, the usbredir channel will be enabled and USB devices
|
|
3487
|
+
* can be redirected to the guest
|
|
3488
|
+
*/
|
|
3489
|
+
enableUsbredir?: boolean | null
|
|
3490
|
+
/**
|
|
3491
|
+
* Whether to enable gl-scanout (Unix only). Set to TRUE by
|
|
3492
|
+
* default on EGL-enabled host, unless SPICE_DISABLE_GL_SCANOUT
|
|
3493
|
+
* environment variable is set.
|
|
3494
|
+
*/
|
|
3495
|
+
glScanout?: boolean | null
|
|
3496
|
+
/**
|
|
3497
|
+
* Glz window size. If 0, don't set.
|
|
3498
|
+
*/
|
|
3499
|
+
glzWindowSize?: number | null
|
|
3500
|
+
inhibitKeyboardGrab?: boolean | null
|
|
3501
|
+
/**
|
|
3502
|
+
* Whether this connection is read-only mode.
|
|
3503
|
+
*/
|
|
3504
|
+
readOnly?: boolean | null
|
|
3505
|
+
/**
|
|
3506
|
+
* A string array of channel types to be secured.
|
|
3507
|
+
*/
|
|
3508
|
+
secureChannels?: string[] | null
|
|
3509
|
+
/**
|
|
3510
|
+
* Whether to share the directory read-only.
|
|
3511
|
+
*/
|
|
3512
|
+
shareDirRo?: boolean | null
|
|
3513
|
+
/**
|
|
3514
|
+
* Location of the shared directory
|
|
3515
|
+
*/
|
|
3516
|
+
sharedDir?: string | null
|
|
3517
|
+
/**
|
|
3518
|
+
* This property is used when one wants to simulate a smartcard with no
|
|
3519
|
+
* hardware smartcard reader. If it's set to a NULL-terminated string
|
|
3520
|
+
* array containing the names of 3 valid certificates, these will be
|
|
3521
|
+
* used to simulate a smartcard in the guest
|
|
3522
|
+
* See also spice_smartcard_manager_insert_card()
|
|
3523
|
+
*/
|
|
3524
|
+
smartcardCertificates?: string[] | null
|
|
3525
|
+
/**
|
|
3526
|
+
* Path to the NSS certificate database containing the certificates to
|
|
3527
|
+
* use to simulate a software smartcard
|
|
3528
|
+
*/
|
|
3529
|
+
smartcardDb?: string | null
|
|
3530
|
+
/**
|
|
3531
|
+
* Port to connect to for TLS sessions
|
|
3532
|
+
*/
|
|
3533
|
+
tlsPort?: string | null
|
|
3534
|
+
/**
|
|
3535
|
+
* Path of the Unix socket to connect to
|
|
3536
|
+
*/
|
|
3537
|
+
unixPath?: string | null
|
|
3387
3538
|
}
|
|
3388
3539
|
|
|
3389
3540
|
}
|
|
@@ -3406,17 +3557,32 @@ interface Session {
|
|
|
3406
3557
|
* connecting to
|
|
3407
3558
|
*/
|
|
3408
3559
|
ca_file: string | null
|
|
3560
|
+
/**
|
|
3561
|
+
* File holding the CA certificates for the host the client is
|
|
3562
|
+
* connecting to
|
|
3563
|
+
*/
|
|
3564
|
+
caFile: string | null
|
|
3409
3565
|
/**
|
|
3410
3566
|
* Images cache size. If 0, don't set.
|
|
3411
3567
|
*/
|
|
3412
3568
|
cache_size: number
|
|
3569
|
+
/**
|
|
3570
|
+
* Images cache size. If 0, don't set.
|
|
3571
|
+
*/
|
|
3572
|
+
cacheSize: number
|
|
3413
3573
|
cert_subject: string | null
|
|
3574
|
+
certSubject: string | null
|
|
3414
3575
|
ciphers: string | null
|
|
3415
3576
|
client_sockets: boolean
|
|
3577
|
+
clientSockets: boolean
|
|
3416
3578
|
/**
|
|
3417
3579
|
* Display color depth to set on new display channels. If 0, don't set.
|
|
3418
3580
|
*/
|
|
3419
3581
|
color_depth: number
|
|
3582
|
+
/**
|
|
3583
|
+
* Display color depth to set on new display channels. If 0, don't set.
|
|
3584
|
+
*/
|
|
3585
|
+
colorDepth: number
|
|
3420
3586
|
/**
|
|
3421
3587
|
* A string array of effects to disable. The settings will
|
|
3422
3588
|
* be applied on new display channels. The following effets can be
|
|
@@ -3424,41 +3590,79 @@ interface Session {
|
|
|
3424
3590
|
* which will disable all the effects. If NULL, don't apply changes.
|
|
3425
3591
|
*/
|
|
3426
3592
|
disable_effects: string[]
|
|
3593
|
+
/**
|
|
3594
|
+
* A string array of effects to disable. The settings will
|
|
3595
|
+
* be applied on new display channels. The following effets can be
|
|
3596
|
+
* disabled "wallpaper", "font-smooth", "animation", and "all",
|
|
3597
|
+
* which will disable all the effects. If NULL, don't apply changes.
|
|
3598
|
+
*/
|
|
3599
|
+
disableEffects: string[]
|
|
3427
3600
|
/**
|
|
3428
3601
|
* If set to TRUE, the audio channels will be enabled for
|
|
3429
3602
|
* playback and recording.
|
|
3430
3603
|
*/
|
|
3431
3604
|
enable_audio: boolean
|
|
3605
|
+
/**
|
|
3606
|
+
* If set to TRUE, the audio channels will be enabled for
|
|
3607
|
+
* playback and recording.
|
|
3608
|
+
*/
|
|
3609
|
+
enableAudio: boolean
|
|
3432
3610
|
/**
|
|
3433
3611
|
* If set to TRUE, the smartcard channel will be enabled and smartcard
|
|
3434
3612
|
* events will be forwarded to the guest
|
|
3435
3613
|
*/
|
|
3436
3614
|
enable_smartcard: boolean
|
|
3615
|
+
/**
|
|
3616
|
+
* If set to TRUE, the smartcard channel will be enabled and smartcard
|
|
3617
|
+
* events will be forwarded to the guest
|
|
3618
|
+
*/
|
|
3619
|
+
enableSmartcard: boolean
|
|
3437
3620
|
/**
|
|
3438
3621
|
* If set to TRUE, the usbredir channel will be enabled and USB devices
|
|
3439
3622
|
* can be redirected to the guest
|
|
3440
3623
|
*/
|
|
3441
3624
|
enable_usbredir: boolean
|
|
3625
|
+
/**
|
|
3626
|
+
* If set to TRUE, the usbredir channel will be enabled and USB devices
|
|
3627
|
+
* can be redirected to the guest
|
|
3628
|
+
*/
|
|
3629
|
+
enableUsbredir: boolean
|
|
3442
3630
|
/**
|
|
3443
3631
|
* Whether to enable gl-scanout (Unix only). Set to TRUE by
|
|
3444
3632
|
* default on EGL-enabled host, unless SPICE_DISABLE_GL_SCANOUT
|
|
3445
3633
|
* environment variable is set.
|
|
3446
3634
|
*/
|
|
3447
3635
|
gl_scanout: boolean
|
|
3636
|
+
/**
|
|
3637
|
+
* Whether to enable gl-scanout (Unix only). Set to TRUE by
|
|
3638
|
+
* default on EGL-enabled host, unless SPICE_DISABLE_GL_SCANOUT
|
|
3639
|
+
* environment variable is set.
|
|
3640
|
+
*/
|
|
3641
|
+
glScanout: boolean
|
|
3448
3642
|
/**
|
|
3449
3643
|
* Glz window size. If 0, don't set.
|
|
3450
3644
|
*/
|
|
3451
3645
|
glz_window_size: number
|
|
3646
|
+
/**
|
|
3647
|
+
* Glz window size. If 0, don't set.
|
|
3648
|
+
*/
|
|
3649
|
+
glzWindowSize: number
|
|
3452
3650
|
/**
|
|
3453
3651
|
* URL of the SPICE host to connect to
|
|
3454
3652
|
*/
|
|
3455
3653
|
host: string | null
|
|
3456
3654
|
inhibit_keyboard_grab: boolean
|
|
3655
|
+
inhibitKeyboardGrab: boolean
|
|
3457
3656
|
/**
|
|
3458
3657
|
* #SpiceSessionMigration bit field indicating if a migration is in
|
|
3459
3658
|
* progress
|
|
3460
3659
|
*/
|
|
3461
3660
|
readonly migration_state: SessionMigration
|
|
3661
|
+
/**
|
|
3662
|
+
* #SpiceSessionMigration bit field indicating if a migration is in
|
|
3663
|
+
* progress
|
|
3664
|
+
*/
|
|
3665
|
+
readonly migrationState: SessionMigration
|
|
3462
3666
|
/**
|
|
3463
3667
|
* Spice server name.
|
|
3464
3668
|
*/
|
|
@@ -3485,18 +3689,34 @@ interface Session {
|
|
|
3485
3689
|
* Whether this connection is read-only mode.
|
|
3486
3690
|
*/
|
|
3487
3691
|
read_only: boolean
|
|
3692
|
+
/**
|
|
3693
|
+
* Whether this connection is read-only mode.
|
|
3694
|
+
*/
|
|
3695
|
+
readOnly: boolean
|
|
3488
3696
|
/**
|
|
3489
3697
|
* A string array of channel types to be secured.
|
|
3490
3698
|
*/
|
|
3491
3699
|
secure_channels: string[]
|
|
3700
|
+
/**
|
|
3701
|
+
* A string array of channel types to be secured.
|
|
3702
|
+
*/
|
|
3703
|
+
secureChannels: string[]
|
|
3492
3704
|
/**
|
|
3493
3705
|
* Whether to share the directory read-only.
|
|
3494
3706
|
*/
|
|
3495
3707
|
share_dir_ro: boolean
|
|
3708
|
+
/**
|
|
3709
|
+
* Whether to share the directory read-only.
|
|
3710
|
+
*/
|
|
3711
|
+
shareDirRo: boolean
|
|
3496
3712
|
/**
|
|
3497
3713
|
* Location of the shared directory
|
|
3498
3714
|
*/
|
|
3499
3715
|
shared_dir: string | null
|
|
3716
|
+
/**
|
|
3717
|
+
* Location of the shared directory
|
|
3718
|
+
*/
|
|
3719
|
+
sharedDir: string | null
|
|
3500
3720
|
/**
|
|
3501
3721
|
* This property is used when one wants to simulate a smartcard with no
|
|
3502
3722
|
* hardware smartcard reader. If it's set to a NULL-terminated string
|
|
@@ -3505,19 +3725,40 @@ interface Session {
|
|
|
3505
3725
|
* See also spice_smartcard_manager_insert_card()
|
|
3506
3726
|
*/
|
|
3507
3727
|
smartcard_certificates: string[]
|
|
3728
|
+
/**
|
|
3729
|
+
* This property is used when one wants to simulate a smartcard with no
|
|
3730
|
+
* hardware smartcard reader. If it's set to a NULL-terminated string
|
|
3731
|
+
* array containing the names of 3 valid certificates, these will be
|
|
3732
|
+
* used to simulate a smartcard in the guest
|
|
3733
|
+
* See also spice_smartcard_manager_insert_card()
|
|
3734
|
+
*/
|
|
3735
|
+
smartcardCertificates: string[]
|
|
3508
3736
|
/**
|
|
3509
3737
|
* Path to the NSS certificate database containing the certificates to
|
|
3510
3738
|
* use to simulate a software smartcard
|
|
3511
3739
|
*/
|
|
3512
3740
|
smartcard_db: string | null
|
|
3741
|
+
/**
|
|
3742
|
+
* Path to the NSS certificate database containing the certificates to
|
|
3743
|
+
* use to simulate a software smartcard
|
|
3744
|
+
*/
|
|
3745
|
+
smartcardDb: string | null
|
|
3513
3746
|
/**
|
|
3514
3747
|
* Port to connect to for TLS sessions
|
|
3515
3748
|
*/
|
|
3516
3749
|
tls_port: string | null
|
|
3750
|
+
/**
|
|
3751
|
+
* Port to connect to for TLS sessions
|
|
3752
|
+
*/
|
|
3753
|
+
tlsPort: string | null
|
|
3517
3754
|
/**
|
|
3518
3755
|
* Path of the Unix socket to connect to
|
|
3519
3756
|
*/
|
|
3520
3757
|
unix_path: string | null
|
|
3758
|
+
/**
|
|
3759
|
+
* Path of the Unix socket to connect to
|
|
3760
|
+
*/
|
|
3761
|
+
unixPath: string | null
|
|
3521
3762
|
/**
|
|
3522
3763
|
* URI of the SPICE host to connect to. The URI is of the form
|
|
3523
3764
|
* spice://hostname?port=XXX or spice://hostname?tls_port=XXX
|
|
@@ -4030,16 +4271,16 @@ interface URI {
|
|
|
4030
4271
|
|
|
4031
4272
|
// Owm methods of SpiceClientGLib-2.0.SpiceClientGLib.URI
|
|
4032
4273
|
|
|
4033
|
-
get_hostname(): string
|
|
4034
|
-
get_password(): string
|
|
4274
|
+
get_hostname(): string
|
|
4275
|
+
get_password(): string
|
|
4035
4276
|
get_port(): number
|
|
4036
|
-
get_scheme(): string
|
|
4037
|
-
get_user(): string
|
|
4038
|
-
set_hostname(hostname: string
|
|
4039
|
-
set_password(password: string
|
|
4277
|
+
get_scheme(): string
|
|
4278
|
+
get_user(): string
|
|
4279
|
+
set_hostname(hostname: string): void
|
|
4280
|
+
set_password(password: string): void
|
|
4040
4281
|
set_port(port: number): void
|
|
4041
|
-
set_scheme(scheme: string
|
|
4042
|
-
set_user(user: string
|
|
4282
|
+
set_scheme(scheme: string): void
|
|
4283
|
+
set_user(user: string): void
|
|
4043
4284
|
to_string(): string | null
|
|
4044
4285
|
|
|
4045
4286
|
// Class property signals of SpiceClientGLib-2.0.SpiceClientGLib.URI
|
|
@@ -4162,6 +4403,43 @@ module UsbDeviceManager {
|
|
|
4162
4403
|
* #SpiceSession this #SpiceUsbDeviceManager is associated with
|
|
4163
4404
|
*/
|
|
4164
4405
|
session?: Session | null
|
|
4406
|
+
/**
|
|
4407
|
+
* Set this to TRUE to automatically redirect newly plugged in device.
|
|
4408
|
+
*
|
|
4409
|
+
* Note when #SpiceGtkSession's auto-usbredir property is TRUE, this
|
|
4410
|
+
* property is controlled by #SpiceGtkSession.
|
|
4411
|
+
*/
|
|
4412
|
+
autoConnect?: boolean | null
|
|
4413
|
+
/**
|
|
4414
|
+
* Set a string specifying a filter to use to determine which USB devices
|
|
4415
|
+
* to autoconnect when plugged in, a filter consists of one or more rules.
|
|
4416
|
+
* Where each rule has the form of:
|
|
4417
|
+
*
|
|
4418
|
+
* `class,``vendor,``product,``version,``allow`
|
|
4419
|
+
*
|
|
4420
|
+
* Use -1 for `class/``vendor/``product/``version` to accept any value.
|
|
4421
|
+
*
|
|
4422
|
+
* And the rules themselves are concatenated like this:
|
|
4423
|
+
*
|
|
4424
|
+
* `rule1`|`rule2`|`rule3`
|
|
4425
|
+
*
|
|
4426
|
+
* The default setting filters out HID (class 0x03) USB devices from auto
|
|
4427
|
+
* connect and auto connects anything else. Note the explicit allow rule at
|
|
4428
|
+
* the end, this is necessary since by default all devices without a
|
|
4429
|
+
* matching filter rule will not auto-connect.
|
|
4430
|
+
*
|
|
4431
|
+
* Filter strings in this format can be easily created with the RHEV-M
|
|
4432
|
+
* USB filter editor tool.
|
|
4433
|
+
*/
|
|
4434
|
+
autoConnectFilter?: string | null
|
|
4435
|
+
/**
|
|
4436
|
+
* Set a string specifying a filter selecting USB devices to automatically
|
|
4437
|
+
* redirect after a Spice connection has been established.
|
|
4438
|
+
*
|
|
4439
|
+
* See #SpiceUsbDeviceManager:auto-connect-filter for the filter string
|
|
4440
|
+
* format.
|
|
4441
|
+
*/
|
|
4442
|
+
redirectOnConnect?: string | null
|
|
4165
4443
|
}
|
|
4166
4444
|
|
|
4167
4445
|
}
|
|
@@ -4177,6 +4455,13 @@ interface UsbDeviceManager extends Gio.Initable {
|
|
|
4177
4455
|
* property is controlled by #SpiceGtkSession.
|
|
4178
4456
|
*/
|
|
4179
4457
|
auto_connect: boolean
|
|
4458
|
+
/**
|
|
4459
|
+
* Set this to TRUE to automatically redirect newly plugged in device.
|
|
4460
|
+
*
|
|
4461
|
+
* Note when #SpiceGtkSession's auto-usbredir property is TRUE, this
|
|
4462
|
+
* property is controlled by #SpiceGtkSession.
|
|
4463
|
+
*/
|
|
4464
|
+
autoConnect: boolean
|
|
4180
4465
|
/**
|
|
4181
4466
|
* Set a string specifying a filter to use to determine which USB devices
|
|
4182
4467
|
* to autoconnect when plugged in, a filter consists of one or more rules.
|
|
@@ -4199,10 +4484,36 @@ interface UsbDeviceManager extends Gio.Initable {
|
|
|
4199
4484
|
* USB filter editor tool.
|
|
4200
4485
|
*/
|
|
4201
4486
|
auto_connect_filter: string | null
|
|
4487
|
+
/**
|
|
4488
|
+
* Set a string specifying a filter to use to determine which USB devices
|
|
4489
|
+
* to autoconnect when plugged in, a filter consists of one or more rules.
|
|
4490
|
+
* Where each rule has the form of:
|
|
4491
|
+
*
|
|
4492
|
+
* `class,``vendor,``product,``version,``allow`
|
|
4493
|
+
*
|
|
4494
|
+
* Use -1 for `class/``vendor/``product/``version` to accept any value.
|
|
4495
|
+
*
|
|
4496
|
+
* And the rules themselves are concatenated like this:
|
|
4497
|
+
*
|
|
4498
|
+
* `rule1`|`rule2`|`rule3`
|
|
4499
|
+
*
|
|
4500
|
+
* The default setting filters out HID (class 0x03) USB devices from auto
|
|
4501
|
+
* connect and auto connects anything else. Note the explicit allow rule at
|
|
4502
|
+
* the end, this is necessary since by default all devices without a
|
|
4503
|
+
* matching filter rule will not auto-connect.
|
|
4504
|
+
*
|
|
4505
|
+
* Filter strings in this format can be easily created with the RHEV-M
|
|
4506
|
+
* USB filter editor tool.
|
|
4507
|
+
*/
|
|
4508
|
+
autoConnectFilter: string | null
|
|
4202
4509
|
/**
|
|
4203
4510
|
* Get the number of available channels for redirecting USB devices.
|
|
4204
4511
|
*/
|
|
4205
4512
|
readonly free_channels: number
|
|
4513
|
+
/**
|
|
4514
|
+
* Get the number of available channels for redirecting USB devices.
|
|
4515
|
+
*/
|
|
4516
|
+
readonly freeChannels: number
|
|
4206
4517
|
/**
|
|
4207
4518
|
* Set a string specifying a filter selecting USB devices to automatically
|
|
4208
4519
|
* redirect after a Spice connection has been established.
|
|
@@ -4211,6 +4522,14 @@ interface UsbDeviceManager extends Gio.Initable {
|
|
|
4211
4522
|
* format.
|
|
4212
4523
|
*/
|
|
4213
4524
|
redirect_on_connect: string | null
|
|
4525
|
+
/**
|
|
4526
|
+
* Set a string specifying a filter selecting USB devices to automatically
|
|
4527
|
+
* redirect after a Spice connection has been established.
|
|
4528
|
+
*
|
|
4529
|
+
* See #SpiceUsbDeviceManager:auto-connect-filter for the filter string
|
|
4530
|
+
* format.
|
|
4531
|
+
*/
|
|
4532
|
+
redirectOnConnect: string | null
|
|
4214
4533
|
/**
|
|
4215
4534
|
* #SpiceSession this #SpiceUsbDeviceManager is associated with
|
|
4216
4535
|
*/
|