summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-12-17 12:21:24 +0100
committerHans de Goede <hdegoede@redhat.com>2012-01-03 10:16:32 +0100
commit3db994f56295b0b946a9eb19cd469db7799006e4 (patch)
tree5acc5dbada824e2f8a66070fca2078fe040428ee
parent23ba4d499d0a1f5a5672adadb83bce176e8315d7 (diff)
usbredir: Add locking callbacks for libusbredirhost
This is a preparation patch for handling usb packet completion in a separate thread. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--gtk/channel-usbredir.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/channel-usbredir.c b/gtk/channel-usbredir.c
index f266cf3..09bd47d 100644
--- a/gtk/channel-usbredir.c
+++ b/gtk/channel-usbredir.c
@@ -195,10 +195,10 @@ static gboolean spice_usbredir_channel_open_device(
usbredir_read_callback,
usbredir_write_callback,
usbredir_write_flush_callback,
- NULL,
- NULL,
- NULL,
- NULL,
+ (usbredirparser_alloc_lock)g_mutex_new,
+ (usbredirparser_lock)g_mutex_lock,
+ (usbredirparser_unlock)g_mutex_unlock,
+ (usbredirparser_free_lock)g_mutex_free,
channel, PACKAGE_STRING,
spice_util_get_debug() ? usbredirparser_debug : usbredirparser_warning,
usbredirhost_fl_write_cb_owns_buffer);