[Spice-devel] [PATCH spice-gtk v4 02/29] fixup! usb-redir: define interfaces to support emulated devices

Victor Toso victortoso at redhat.com
Tue Aug 27 09:48:25 UTC 2019


Hi,

On Tue, Aug 27, 2019 at 10:22:19AM +0100, Frediano Ziglio wrote:
> Cosmetic style fixes
> ---
>  src/usb-backend.c | 17 +++++++++++------
>  1 file changed, 11 insertions(+), 6 deletions(-)
> 
> diff --git a/src/usb-backend.c b/src/usb-backend.c
> index de2b55ec..7f9fcc17 100644
> --- a/src/usb-backend.c
> +++ b/src/usb-backend.c
> @@ -200,7 +200,7 @@ static int compare_dev_list_fire_callback(SpiceUsbBackend *be,
>  }
>  
>  static LRESULT subclass_proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
> -                            UINT_PTR uIdSubclass, DWORD_PTR dwRefData)
> +                             UINT_PTR uIdSubclass, DWORD_PTR dwRefData)
>  {
>      SpiceUsbBackend *be = (SpiceUsbBackend *)dwRefData;
>      if (uMsg == WM_DEVICECHANGE && !be->redirecting) {
> @@ -306,14 +306,16 @@ static int enable_hotplug_support(SpiceUsbBackend *be, const char **error_on_ena
>      return rc;
>  }
>  
> -static inline void set_redirecting(SpiceUsbBackend *be, gboolean on) {
> +static inline void set_redirecting(SpiceUsbBackend *be, gboolean on)
> +{
>      /* nothing on Linux */
>  }
>  
>  #endif
>  
>  /* lock functions for usbredirhost and usbredirparser */
> -static void *usbredir_alloc_lock(void) {
> +static void *usbredir_alloc_lock(void)
> +{
>      GMutex *mutex;
>  
>      mutex = g_new0(GMutex, 1);
> @@ -322,20 +324,23 @@ static void *usbredir_alloc_lock(void) {
>      return mutex;
>  }
>  
> -static void usbredir_free_lock(void *user_data) {
> +static void usbredir_free_lock(void *user_data)
> +{
>      GMutex *mutex = user_data;
>  
>      g_mutex_clear(mutex);
>      g_free(mutex);
>  }
>  
> -static void usbredir_lock_lock(void *user_data) {
> +static void usbredir_lock_lock(void *user_data)
> +{
>      GMutex *mutex = user_data;
>  
>      g_mutex_lock(mutex);
>  }
>  
> -static void usbredir_unlock_lock(void *user_data) {
> +static void usbredir_unlock_lock(void *user_data)
> +{

Acked-by: Victor Toso <victortoso at redhat.com>

>      GMutex *mutex = user_data;
>  
>      g_mutex_unlock(mutex);
> -- 
> 2.20.1
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20190827/77ba6af4/attachment-0001.sig>


More information about the Spice-devel mailing list