[virt-tools-list] [virt-viewer] Propagate USB redirection controller messages
Hans de Goede
hdegoede at redhat.com
Tue Apr 3 19:30:44 UTC 2012
ACK.
On 04/03/2012 03:22 PM, Christophe Fergeau wrote:
> ---
> src/remote-viewer.c | 17 ++++++++++++++++-
> 1 file changed, 16 insertions(+), 1 deletion(-)
>
> diff --git a/src/remote-viewer.c b/src/remote-viewer.c
> index 7dda7fe..c244067 100644
> --- a/src/remote-viewer.c
> +++ b/src/remote-viewer.c
> @@ -583,7 +583,8 @@ spice_ctrl_notified(SpiceCtrlController *ctrl,
> g_str_equal(pspec->name, "port") ||
> g_str_equal(pspec->name, "password") ||
> g_str_equal(pspec->name, "ca-file") ||
> - g_str_equal(pspec->name, "enable-smartcard")) {
> + g_str_equal(pspec->name, "enable-smartcard") ||
> + g_str_equal(pspec->name, "enable-usbredir")) {
> g_object_set_property(G_OBJECT(session), pspec->name,&value);
> } else if (g_str_equal(pspec->name, "sport")) {
> g_object_set_property(G_OBJECT(session), "tls-port",&value);
> @@ -591,6 +592,20 @@ spice_ctrl_notified(SpiceCtrlController *ctrl,
> g_object_set_property(G_OBJECT(session), "ciphers",&value);
> } else if (g_str_equal(pspec->name, "host-subject")) {
> g_object_set_property(G_OBJECT(session), "cert-subject",&value);
> + } else if (g_str_equal(pspec->name, "enable-usb-autoshare")) {
> + SpiceUsbDeviceManager *manager;
> + manager = spice_usb_device_manager_get(session, NULL);
> + if (manager != NULL) {
> + g_object_set_property(G_OBJECT(manager), "auto-connect",&value);
> + }
> + } else if (g_str_equal(pspec->name, "usb-filter")) {
> + SpiceUsbDeviceManager *manager;
> + manager = spice_usb_device_manager_get(session, NULL);
> + if (manager != NULL) {
> + g_object_set_property(G_OBJECT(manager),
> + "auto-connect-filter",
> +&value);
> + }
> } else if (g_str_equal(pspec->name, "title")) {
> g_object_set_property(G_OBJECT(app), "title",&value);
> } else if (g_str_equal(pspec->name, "display-flags")) {
More information about the virt-tools-list
mailing list