summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2016-03-10 11:03:08 -0600
committerJonathon Jongsma <jjongsma@redhat.com>2016-03-11 09:52:47 -0600
commit6eb8d0a3350f6e16af3cbb7d9cf12e59e415537b (patch)
treeab9cce1a43b2a35777e00723d053240b25db50f8
parentda1b2ad771e19e1aa52828ac7dde4fffaab6b406 (diff)
downloadspice-gtk-6eb8d0a3350f6e16af3cbb7d9cf12e59e415537b.tar.gz
spice-gtk-6eb8d0a3350f6e16af3cbb7d9cf12e59e415537b.tar.xz
spice-gtk-6eb8d0a3350f6e16af3cbb7d9cf12e59e415537b.zip
Rename spice_usb_acl_helper_open_acl() to _open_acl_async()
Follow established practice and make the function's behavior more explicit.
-rw-r--r--src/channel-usbredir.c12
-rw-r--r--src/usb-acl-helper.c14
-rw-r--r--src/usb-acl-helper.h10
3 files changed, 18 insertions, 18 deletions
diff --git a/src/channel-usbredir.c b/src/channel-usbredir.c
index dd9557b..b37f464 100644
--- a/src/channel-usbredir.c
+++ b/src/channel-usbredir.c
@@ -363,12 +363,12 @@ void spice_usbredir_channel_connect_device_async(
priv->acl_helper = spice_usb_acl_helper_new();
g_object_set(spice_channel_get_session(SPICE_CHANNEL(channel)),
"inhibit-keyboard-grab", TRUE, NULL);
- spice_usb_acl_helper_open_acl(priv->acl_helper,
- libusb_get_bus_number(device),
- libusb_get_device_address(device),
- cancellable,
- spice_usbredir_channel_open_acl_cb,
- channel);
+ spice_usb_acl_helper_open_acl_async(priv->acl_helper,
+ libusb_get_bus_number(device),
+ libusb_get_device_address(device),
+ cancellable,
+ spice_usbredir_channel_open_acl_cb,
+ channel);
return;
#else
if (!spice_usbredir_channel_open_device(channel, &err)) {
diff --git a/src/usb-acl-helper.c b/src/usb-acl-helper.c
index 1cc2c4f..20400eb 100644
--- a/src/usb-acl-helper.c
+++ b/src/usb-acl-helper.c
@@ -184,11 +184,11 @@ SpiceUsbAclHelper *spice_usb_acl_helper_new(void)
}
G_GNUC_INTERNAL
-void spice_usb_acl_helper_open_acl(SpiceUsbAclHelper *self,
- gint busnum, gint devnum,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
+void spice_usb_acl_helper_open_acl_async(SpiceUsbAclHelper *self,
+ gint busnum, gint devnum,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
{
g_return_if_fail(SPICE_IS_USB_ACL_HELPER(self));
@@ -203,7 +203,7 @@ void spice_usb_acl_helper_open_acl(SpiceUsbAclHelper *self,
gchar buf[128];
result = g_simple_async_result_new(G_OBJECT(self), callback, user_data,
- spice_usb_acl_helper_open_acl);
+ spice_usb_acl_helper_open_acl_async);
if (priv->out_ch) {
g_simple_async_result_set_error(result,
@@ -273,7 +273,7 @@ gboolean spice_usb_acl_helper_open_acl_finish(
GSimpleAsyncResult *result = G_SIMPLE_ASYNC_RESULT(res);
g_return_val_if_fail(g_simple_async_result_is_valid(res, G_OBJECT(self),
- spice_usb_acl_helper_open_acl),
+ spice_usb_acl_helper_open_acl_async),
FALSE);
if (g_simple_async_result_propagate_error(result, err))
diff --git a/src/usb-acl-helper.h b/src/usb-acl-helper.h
index aa5d3d4..e2e27db 100644
--- a/src/usb-acl-helper.h
+++ b/src/usb-acl-helper.h
@@ -57,11 +57,11 @@ GType spice_usb_acl_helper_get_type(void);
SpiceUsbAclHelper *spice_usb_acl_helper_new(void);
-void spice_usb_acl_helper_open_acl(SpiceUsbAclHelper *self,
- gint busnum, gint devnum,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
+void spice_usb_acl_helper_open_acl_async(SpiceUsbAclHelper *self,
+ gint busnum, gint devnum,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
gboolean spice_usb_acl_helper_open_acl_finish(
SpiceUsbAclHelper *self, GAsyncResult *res, GError **err);