mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-gtk
synced 2026-08-26 18:14:38 +00:00
controller: handle USB redirection messages
This commit is contained in:
@@ -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
Submodule spice-common updated: 2ab866f522...e96dbb4172
Reference in New Issue
Block a user