mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-gtk
synced 2026-01-08 21:36:55 +00:00
controller: handle USB redirection messages
This commit is contained in:
parent
79436bcd0d
commit
2eaa3cf7ad
@ -62,6 +62,10 @@ namespace SpiceProtocol {
|
||||
|
||||
ENABLE_SMARTCARD,
|
||||
|
||||
ENABLE_USB,
|
||||
ENABLE_USB_AUTOSHARE,
|
||||
USB_FILTER,
|
||||
|
||||
//spice client -> external app
|
||||
MENU_ITEM_CLICK,
|
||||
|
||||
|
||||
@ -43,6 +43,9 @@ public class Controller: Object {
|
||||
public bool send_cad { private set; get; }
|
||||
public string[] disable_effects {private set; get; }
|
||||
public uint32 color_depth {private set; get; }
|
||||
public bool enable_usbredir { private set; get; }
|
||||
public bool enable_usb_autoshare { private set; get; }
|
||||
public string usb_filter { private set; get; }
|
||||
|
||||
public signal void do_connect ();
|
||||
public signal void show ();
|
||||
@ -160,6 +163,15 @@ public class Controller: Object {
|
||||
case SpiceProtocol.Controller.MsgId.HIDE:
|
||||
hide ();
|
||||
break;
|
||||
case SpiceProtocol.Controller.MsgId.ENABLE_USB:
|
||||
enable_usbredir = (bool)v.value;
|
||||
break;
|
||||
case SpiceProtocol.Controller.MsgId.ENABLE_USB_AUTOSHARE:
|
||||
enable_usb_autoshare = (bool)v.value;
|
||||
break;
|
||||
case SpiceProtocol.Controller.MsgId.USB_FILTER:
|
||||
usb_filter = str;
|
||||
break;
|
||||
default:
|
||||
warn_if_reached ();
|
||||
return false;
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit 2ab866f522d8f730a93288fd82a596f00f193909
|
||||
Subproject commit e96dbb4172ec7a47a5b15d3b9e921e12623fddaa
|
||||
Loading…
Reference in New Issue
Block a user