summaryrefslogtreecommitdiffstats
path: root/server/red_parse_qxl.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-06-22 10:59:52 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-06-29 12:30:19 +0200
commit11034dda428865e442dd2c981851500ed96b9a0c (patch)
treec04e6a09c35d989e318f130c6cbc21ecf624b2c3 /server/red_parse_qxl.h
parentc17fdfd053b9520309a45a79b949a610a74efd3e (diff)
downloadspice-11034dda428865e442dd2c981851500ed96b9a0c.tar.gz
spice-11034dda428865e442dd2c981851500ed96b9a0c.tar.xz
spice-11034dda428865e442dd2c981851500ed96b9a0c.zip
qxl abi: parse QXLDrawable.
Diffstat (limited to 'server/red_parse_qxl.h')
-rw-r--r--server/red_parse_qxl.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/server/red_parse_qxl.h b/server/red_parse_qxl.h
new file mode 100644
index 00000000..d8955d2f
--- /dev/null
+++ b/server/red_parse_qxl.h
@@ -0,0 +1,60 @@
+/* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ Copyright (C) 2009,2010 Red Hat, Inc.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of
+ the License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef RED_ABI_TRANSLATE_H
+#define RED_ABI_TRANSLATE_H
+
+#include <spice/qxl_dev.h>
+#include <spice/start-packed.h>
+#include "red_common.h"
+#include "red_memslots.h"
+
+typedef struct SPICE_ATTR_PACKED RedDrawable {
+ QXLReleaseInfo *release_info;
+ uint32_t surface_id;
+ uint8_t effect;
+ uint8_t type;
+ uint8_t self_bitmap;
+ SpiceRect self_bitmap_area;
+ SpiceRect bbox;
+ SpiceClip clip;
+ uint32_t mm_time;
+ int32_t surfaces_dest[3];
+ SpiceRect surfaces_rects[3];
+ union {
+ SpiceFill fill;
+ SpiceOpaque opaque;
+ SpiceCopy copy;
+ SpiceTransparent transparent;
+ SpiceAlphaBlnd alpha_blend;
+ QXLCopyBits copy_bits;
+ SpiceBlend blend;
+ SpiceRop3 rop3;
+ SpiceStroke stroke;
+ SpiceText text;
+ SpiceBlackness blackness;
+ SpiceInvers invers;
+ SpiceWhiteness whiteness;
+ } u;
+} RedDrawable;
+
+void red_get_drawable(RedMemSlotInfo *slots, int group_id,
+ RedDrawable *red, SPICE_ADDRESS addr);
+void red_put_drawable(RedDrawable *red);
+
+#endif