[Spice-devel] [PATCH spice-gtk v4 08/29] fixup! usb-redir: extend USB backend to support emulated devices
Victor Toso
victortoso at redhat.com
Tue Aug 27 10:02:56 UTC 2019
On Tue, Aug 27, 2019 at 10:22:25AM +0100, Frediano Ziglio wrote:
> Indentation function declaration
Acked-by: Victor Toso <victortoso at redhat.com>
> ---
> src/usb-backend.c | 41 +++++++++++++++++++++--------------------
> 1 file changed, 21 insertions(+), 20 deletions(-)
>
> diff --git a/src/usb-backend.c b/src/usb-backend.c
> index 13d24d52..36a73a89 100644
> --- a/src/usb-backend.c
> +++ b/src/usb-backend.c
> @@ -794,9 +794,9 @@ void spice_usb_backend_return_write_data(SpiceUsbBackendChannel *ch, void *data)
> }
> }
>
> -static void usbredir_control_packet(void *priv,
> - uint64_t id, struct usb_redir_control_packet_header *h,
> - uint8_t *data, int data_len)
> +static void
> +usbredir_control_packet(void *priv, uint64_t id, struct usb_redir_control_packet_header *h,
> + uint8_t *data, int data_len)
> {
> SpiceUsbBackendChannel *ch = priv;
> SpiceUsbBackendDevice *d = ch->attached;
> @@ -849,9 +849,9 @@ static void usbredir_control_packet(void *priv,
> usbredirparser_free_packet_data(ch->parser, data);
> }
>
> -static void usbredir_bulk_packet(void *priv,
> - uint64_t id, struct usb_redir_bulk_packet_header *h,
> - uint8_t *data, int data_len)
> +static void
> +usbredir_bulk_packet(void *priv, uint64_t id, struct usb_redir_bulk_packet_header *h,
> + uint8_t *data, int data_len)
> {
> SpiceUsbBackendChannel *ch = priv;
> SpiceUsbBackendDevice *d = ch->attached;
> @@ -894,22 +894,23 @@ static void usbredir_device_reset(void *priv)
> }
> }
>
> -static void usbredir_interface_info(void *priv,
> - struct usb_redir_interface_info_header *interface_info)
> +static void
> +usbredir_interface_info(void *priv, struct usb_redir_interface_info_header *interface_info)
> {
> SpiceUsbBackendChannel *ch = priv;
> SPICE_DEBUG("%s not implemented %p", __FUNCTION__, ch);
> }
>
> -static void usbredir_interface_ep_info(void *priv,
> - struct usb_redir_ep_info_header *ep_info)
> +static void
> +usbredir_interface_ep_info(void *priv, struct usb_redir_ep_info_header *ep_info)
> {
> SpiceUsbBackendChannel *ch = priv;
> SPICE_DEBUG("%s not implemented %p", __FUNCTION__, ch);
> }
>
> -static void usbredir_set_configuration(void *priv,
> - uint64_t id, struct usb_redir_set_configuration_header *set_configuration)
> +static void
> +usbredir_set_configuration(void *priv, uint64_t id,
> + struct usb_redir_set_configuration_header *set_configuration)
> {
> SpiceUsbBackendChannel *ch = priv;
> struct usb_redir_configuration_status_header h;
> @@ -934,8 +935,8 @@ static void usbredir_get_configuration(void *priv, uint64_t id)
> usbredir_write_flush_callback(ch);
> }
>
> -static void usbredir_set_alt_setting(void *priv,
> - uint64_t id, struct usb_redir_set_alt_setting_header *s)
> +static void
> +usbredir_set_alt_setting(void *priv, uint64_t id, struct usb_redir_set_alt_setting_header *s)
> {
> SpiceUsbBackendChannel *ch = priv;
> struct usb_redir_alt_setting_status_header sh;
> @@ -947,8 +948,8 @@ static void usbredir_set_alt_setting(void *priv,
> usbredir_write_flush_callback(ch);
> }
>
> -static void usbredir_get_alt_setting(void *priv,
> - uint64_t id, struct usb_redir_get_alt_setting_header *s)
> +static void
> +usbredir_get_alt_setting(void *priv, uint64_t id, struct usb_redir_get_alt_setting_header *s)
> {
> SpiceUsbBackendChannel *ch = priv;
> struct usb_redir_alt_setting_status_header sh;
> @@ -980,8 +981,8 @@ static void usbredir_filter_reject(void *priv)
> }
>
> /* Note that the ownership of the rules array is passed on to the callback. */
> -static void usbredir_filter_filter(void *priv,
> - struct usbredirfilter_rule *r, int count)
> +static void
> +usbredir_filter_filter(void *priv, struct usbredirfilter_rule *r, int count)
> {
> SpiceUsbBackendChannel *ch = priv;
> SPICE_DEBUG("%s ch %p %d filters", __FUNCTION__, ch, count);
> @@ -1012,8 +1013,8 @@ static void usbredir_device_disconnect_ack(void *priv)
> ch->wait_disconnect_ack = 0;
> }
>
> -static void usbredir_hello(void *priv,
> - struct usb_redir_hello_header *hello)
> +static void
> +usbredir_hello(void *priv, struct usb_redir_hello_header *hello)
> {
> SpiceUsbBackendChannel *ch = priv;
> SpiceUsbBackendDevice *d = ch->attached;
> --
> 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/8608eb61/attachment-0001.sig>
More information about the Spice-devel
mailing list