diff mbox

qxl: add defines from latest spice-protocol.

Message ID 1309954766-9728-2-git-send-email-alevy@redhat.com
State New
Headers show

Commit Message

Alon Levy July 6, 2011, 12:19 p.m. UTC
From: Gerd Hoffmann <kraxel@redhat.com>

Allows to build with older spice-protocol versions.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/qxl.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

Comments

Gerd Hoffmann July 7, 2011, 7:33 a.m. UTC | #1
On 07/06/11 14:19, Alon Levy wrote:
> From: Gerd Hoffmann<kraxel@redhat.com>
>
> Allows to build with older spice-protocol versions.

Given that we can't get away with changing the protocol only but require 
a new libspices-server for the new features this is pointless ...

cheers,
   Gerd
Alon Levy July 7, 2011, 7:43 a.m. UTC | #2
On Thu, Jul 07, 2011 at 09:33:05AM +0200, Gerd Hoffmann wrote:
> On 07/06/11 14:19, Alon Levy wrote:
> >From: Gerd Hoffmann<kraxel@redhat.com>
> >
> >Allows to build with older spice-protocol versions.
> 
> Given that we can't get away with changing the protocol only but
> require a new libspices-server for the new features this is
> pointless ...
> 

right. wasn't thinking.

> cheers,
>   Gerd
>
diff mbox

Patch

diff --git a/hw/qxl.c b/hw/qxl.c
index 0b9a4c7..6be54c4 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -28,6 +28,21 @@ 
 
 #include "qxl.h"
 
+/* old spice-protocol */
+#ifndef QXL_INTERRUPT_IO_CMD
+#define QXL_INTERRUPT_IO_CMD               (1 << 2)
+#define QXL_INTERRUPT_ERROR                (1 << 3)
+#define QXL_IO_UPDATE_AREA_ASYNC           (QXL_IO_DESTROY_ALL_SURFACES +1)
+#define QXL_IO_NOTIFY_OOM_ASYNC            (QXL_IO_DESTROY_ALL_SURFACES +2)
+#define QXL_IO_MEMSLOT_ADD_ASYNC           (QXL_IO_DESTROY_ALL_SURFACES +3)
+#define QXL_IO_CREATE_PRIMARY_ASYNC        (QXL_IO_DESTROY_ALL_SURFACES +4)
+#define QXL_IO_DESTROY_PRIMARY_ASYNC       (QXL_IO_DESTROY_ALL_SURFACES +5)
+#define QXL_IO_DESTROY_SURFACE_ASYNC       (QXL_IO_DESTROY_ALL_SURFACES +6)
+#define QXL_IO_DESTROY_ALL_SURFACES_ASYNC  (QXL_IO_DESTROY_ALL_SURFACES +7)
+#undef QXL_IO_RANGE_SIZE
+#define QXL_IO_RANGE_SIZE (QXL_IO_DESTROY_ALL_SURFACES + 8)
+#endif
+
 #undef SPICE_RING_PROD_ITEM
 #define SPICE_RING_PROD_ITEM(r, ret) {                                  \
         typeof(r) start = r;                                            \