summaryrefslogtreecommitdiff
path: root/gtk/channel-usbredir-priv.h
AgeCommit message (Collapse)AuthorFilesLines
2012-10-09usb-redir: Fix read error handling depending on SpiceUsbDevice == libusb_deviceHans de Goede1-0/+1
This has not been true for a while now, but since getting an error return from usbredirhost_read_guest_data() is rare no one has tripped over this sofar. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2012-02-22usbredir: Add awareness of host/guest side filteringHans de Goede1-0/+6
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2012-02-20usbredir: make channel lifetime equal to session lifetimeHans de Goede1-11/+20
2012-01-03usbredir: Drop our embeddied GUsb copyHans de Goede1-6/+4
No that we no longer use GUsbSource we're hardly using any code from GUsb, so drop our embeddied GUsb copy and do the last few things (device enumeration through gudev) ourselves. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2011-12-22usbredir: Use new libusbredirhost write flush callbackHans de Goede1-2/+0
The new (in usbredir-0.3.2) usbredirhost_open_full() function allows us to be notified whenever usb packets completing result in data to be send to the host. This removes the need for using g_usb_source_set_callback and seeing if there is data to write on any of the usb channels each time some usb event happens. This also bumps the minimum needed libusbredirhost version to 0.3.2 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2011-11-16channel-usbredir: Make spice_usbredir_channel_connect asyncHans de Goede1-4/+10
With the (upcoming) introduction of the usb device node acl helper, which uses policykit, spice_usbredir_channel_connect() may take a long time as it will be waiting for the helper, which will be waiting for policykit which may be interacting with the user -> Make spice_usbredir_channel_connect() async Note that this patch only changes spice_usbredir_channel_connect's API to use the standard GIO async API, it is not actually async after this patch since it does not yet call the acl helper. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2011-08-30Add an usbredir channelHans de Goede1-0/+43
Signed-off-by: Hans de Goede <hdegoede@redhat.com>