Re: windows spice-client-glib hotplug not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 21, 2019 at 7:29 PM Uri Lublin <uril@xxxxxxxxxx> wrote:
>
> On 8/21/19 3:25 AM, zhou qi wrote:
> > Hello, I write a demo under windows unsing *spice-client-glib only*, I> can get usb devices from UsbManager. but hotplug is not working. no> device change event recieved.
>
> Hello,
>
> > I found the function g_udev_client_initable_init in win-usb-dev.c create> a hidden window to monitor WM_DEVICECHANGE message. but I could not> found the corresponding message loop(GetMessage/DispatchMessage...).> Where is the message loop(gtk)? Does it depends on some higher> library(gtk)?How can I get usb hotplug working?
>
> These events are sent to wnd_proc by Windows (the OS).
>
> The hidden window is created, so spice-gtk gets those
> messages from Windows.
>
> Note that this code was moved recently in spice-gtk -- now it's in
> usb-backend.c (that replaces win-usb-dev.c)
>
> Uri

In addition to the response from Uri:
spice-client-glib does not have its own message loop,
GetMessage/DispatchMessage must be in the application that uses
libspice*.dll
So, the application should have its own window, probably the modal
dialog also will satisfy (as it has its own message loop)

> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]