diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2013-01-30 14:03:54 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2013-01-30 14:03:54 +0100 |
commit | 19615f03adff1d2dcb22a216728e74e9a656c38f (patch) | |
tree | 13170ebd6ee62e983ec6e0192459b1f0019116ed | |
parent | b170b7f618622f71f2e6b7b1ae65d24f25039c73 (diff) |
controller: add proxy property
-rw-r--r-- | data/spice-protocol.vapi | 2 | ||||
-rw-r--r-- | gtk/controller/controller.vala | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/data/spice-protocol.vapi b/data/spice-protocol.vapi index 66f1373..cca03ed 100644 --- a/data/spice-protocol.vapi +++ b/data/spice-protocol.vapi @@ -66,6 +66,8 @@ namespace SpiceProtocol { ENABLE_USB_AUTOSHARE, USB_FILTER, + PROXY, + //spice client -> external app MENU_ITEM_CLICK, diff --git a/gtk/controller/controller.vala b/gtk/controller/controller.vala index 1ff621f..84b4527 100644 --- a/gtk/controller/controller.vala +++ b/gtk/controller/controller.vala @@ -46,6 +46,7 @@ public class Controller: Object { public bool enable_usbredir { private set; get; } public bool enable_usb_autoshare { private set; get; } public string usb_filter { private set; get; } + public string proxy { private set; get; } public signal void do_connect (); public signal void show (); @@ -196,6 +197,10 @@ public class Controller: Object { usb_filter = str; debug ("got USB_FILTER %s".printf (str)); break; + case SpiceProtocol.Controller.MsgId.PROXY: + proxy = str; + debug ("got PROXY %s".printf (str)); + break; default: debug ("got unknown msg.id %u".printf (msg.id)); warn_if_reached (); |