[Spice-devel] [PATCH spice-protocol v3] Add ioctls structures to qxl_windows.h

Sameeh Jubran sameeh at daynix.com
Wed Aug 17 08:54:35 UTC 2016


Checkout the function "QxlDevice::Escape" in this patch:
https://lists.freedesktop.org/archives/spice-devel/2016-August/031207.html

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.

On Wed, Aug 17, 2016 at 10:59 AM, Frediano Ziglio <fziglio at redhat.com>
wrote:

> >
> > This patch defines the structures of ioctls that are used between
> > win-vdagent and the qxl-wddm-dod driver.
> >
> > Signed-off-by: Sameeh Jubran <sameeh at daynix.com>
> > ---
> >  spice/qxl_windows.h | 10 +++++++++-
> >  1 file changed, 9 insertions(+), 1 deletion(-)
> >
> > diff --git a/spice/qxl_windows.h b/spice/qxl_windows.h
> > index bc2ceff..6e9627d 100644
> > --- a/spice/qxl_windows.h
> > +++ b/spice/qxl_windows.h
> > @@ -2,7 +2,7 @@
> >  #define _H_QXL_WINDOWS
> >
> >  #include <spice/types.h>
> > -
> > +#include <spice/qxl_dev.h>
> >  #include <spice/start-packed.h>
> >
> >  enum {
> > @@ -16,6 +16,14 @@ typedef struct SPICE_ATTR_PACKED
> QXLEscapeSetCustomDisplay
> > {
> >      uint32_t bpp;
> >  } QXLEscapeSetCustomDisplay;
> >
> > +typedef struct SPICE_ATTR_PACKED QXL_ESCAPE {
> > +    uint32_t ioctl;
> > +    union {
> > +        QXLEscapeSetCustomDisplay custom_display;
> > +        QXLHead monitor_config;
> > +    };
> > +} QXL_ESCAPE;
> > +
>
> Better QXLEscape.
>
> I would be wondering how you use this structure in the driver code.
> Can you post a link to a changeset?
>
> >  #include <spice/end-packed.h>
> >
> >  #endif /* _H_QXL_WINDOWS */
>
> Frediano
>



-- 
Respectfully,
*Sameeh Jubran*
*Linkedin <https://il.linkedin.com/pub/sameeh-jubran/87/747/a8a>*
*Junior Software Engineer @ Daynix <http://www.daynix.com>.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160817/c1f922da/attachment.html>


More information about the Spice-devel mailing list