<div dir="ltr"><div>Checkout the function "<span style="color:rgb(0,0,0);white-space:pre-wrap">QxlDevice::Escape" in this patch:</span></div><a href="https://lists.freedesktop.org/archives/spice-devel/2016-August/031207.html">https://lists.freedesktop.org/archives/spice-devel/2016-August/031207.html</a><br><div><br></div><div>This is how it is used in the driver, please note that this patch is outdated and needs some modifications  to suit this patch of vdagent.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 17, 2016 at 10:59 AM, Frediano Ziglio <span dir="ltr"><<a href="mailto:fziglio@redhat.com" target="_blank">fziglio@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">><br>
> This patch defines the structures of ioctls that are used between<br>
> win-vdagent and the qxl-wddm-dod driver.<br>
><br>
> Signed-off-by: Sameeh Jubran <<a href="mailto:sameeh@daynix.com">sameeh@daynix.com</a>><br>
> ---<br>
>  spice/qxl_windows.h | 10 +++++++++-<br>
>  1 file changed, 9 insertions(+), 1 deletion(-)<br>
><br>
> diff --git a/spice/qxl_windows.h b/spice/qxl_windows.h<br>
> index bc2ceff..6e9627d 100644<br>
> --- a/spice/qxl_windows.h<br>
> +++ b/spice/qxl_windows.h<br>
> @@ -2,7 +2,7 @@<br>
>  #define _H_QXL_WINDOWS<br>
><br>
>  #include <spice/types.h><br>
> -<br>
> +#include <spice/qxl_dev.h><br>
>  #include <spice/start-packed.h><br>
><br>
>  enum {<br>
> @@ -16,6 +16,14 @@ typedef struct SPICE_ATTR_PACKED QXLEscapeSetCustomDisplay<br>
> {<br>
>      uint32_t bpp;<br>
>  } QXLEscapeSetCustomDisplay;<br>
><br>
> +typedef struct SPICE_ATTR_PACKED QXL_ESCAPE {<br>
> +    uint32_t ioctl;<br>
> +    union {<br>
> +        QXLEscapeSetCustomDisplay custom_display;<br>
> +        QXLHead monitor_config;<br>
> +    };<br>
> +} QXL_ESCAPE;<br>
> +<br>
<br>
</div></div>Better QXLEscape.<br>
<br>
I would be wondering how you use this structure in the driver code.<br>
Can you post a link to a changeset?<br>
<div class="HOEnZb"><div class="h5"><br>
>  #include <spice/end-packed.h><br>
><br>
>  #endif /* _H_QXL_WINDOWS */<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">Frediano<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font size="4" color="#0b5394" face="times new roman, serif">Respectfully,<br></font><div style="font-size:12.8px;color:rgb(136,136,136)"><font size="4" color="#0b5394" face="times new roman, serif"><b><i>Sameeh Jubran</i></b></font></div><div style="font-size:12.8px;color:rgb(136,136,136)"><i style="color:rgb(7,55,99);font-family:"times new roman",serif;font-size:large"><span style="line-height:15px"><a href="https://il.linkedin.com/pub/sameeh-jubran/87/747/a8a" title="View public profile" name="UNIQUE_ID_SafeHtmlFilter_UNIQUE_ID_SafeHtmlFilter_UNIQUE_ID_SafeHtmlFilter_UNIQUE_ID_SafeHtmlFilter_14e2c1de96f8c195_UNIQUE_ID_SafeHtmlFilter_SafeHtmlFilter_SafeHtmlFilter_webProfileURL" style="color:rgb(17,85,204);margin:0px;padding:0px;border-width:0px;outline:none;vertical-align:baseline;text-decoration:none" target="_blank">Linkedin</a></span></i><br></div><div style="font-size:12.8px;color:rgb(136,136,136)"><font size="4" face="times new roman, serif" color="#073763"><i>Junior Software Engineer @ <a href="http://www.daynix.com" target="_blank">Daynix</a>.</i></font></div></div></div></div></div></div></div>
</div>