[Spice-commits] 6 commits - spice/enums.h spice/qxl_dev.h
Hans de Goede
jwrdegoede at kemper.freedesktop.org
Fri Feb 11 06:09:30 PST 2011
spice/enums.h | 4 ++--
spice/qxl_dev.h | 35 +++++++++++++++++++----------------
2 files changed, 21 insertions(+), 18 deletions(-)
New commits:
commit 9d5ef9beeca722b2ceff7d15aaa3aaaaf07ecfbf
Author: Alon Levy <alevy at redhat.com>
Date: Thu Feb 10 18:51:30 2011 +0200
enums: typedefy SpiceBitmapFmt
diff --git a/spice/enums.h b/spice/enums.h
index 76fec0c..29f5933 100644
--- a/spice/enums.h
+++ b/spice/enums.h
@@ -142,7 +142,7 @@ enum SpiceImageFlags {
SPICE_IMAGE_FLAGS_MASK = 0x7
};
-enum SpiceBitmapFmt {
+typedef enum SpiceBitmapFmt {
SPICE_BITMAP_FMT_INVALID,
SPICE_BITMAP_FMT_1BIT_LE,
SPICE_BITMAP_FMT_1BIT_BE,
@@ -155,7 +155,7 @@ enum SpiceBitmapFmt {
SPICE_BITMAP_FMT_RGBA,
SPICE_BITMAP_FMT_ENUM_END
-};
+} SpiceBitmapFmt;
enum SpiceBitmapFlags {
SPICE_BITMAP_FLAGS_PAL_CACHE_ME = (1 << 0),
commit f5689c14cfc361b7113804773db6ec31ff2eaeb8
Author: Alon Levy <alevy at redhat.com>
Date: Thu Feb 10 15:42:47 2011 +0200
qxl_dev.h: make QXLEffectType an enum instead of defines
diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h
index 0bdbe55..7219bfc 100644
--- a/spice/qxl_dev.h
+++ b/spice/qxl_dev.h
@@ -340,14 +340,17 @@ typedef struct SPICE_ATTR_PACKED QXLCopyBits {
QXLPoint src_pos;
} QXLCopyBits;
-#define QXL_EFFECT_BLEND 0
-#define QXL_EFFECT_OPAQUE 1
-#define QXL_EFFECT_REVERT_ON_DUP 2
-#define QXL_EFFECT_BLACKNESS_ON_DUP 3
-#define QXL_EFFECT_WHITENESS_ON_DUP 4
-#define QXL_EFFECT_NOP_ON_DUP 5
-#define QXL_EFFECT_NOP 6
-#define QXL_EFFECT_OPAQUE_BRUSH 7
+typedef enum QXLEffectType
+{
+ QXL_EFFECT_BLEND = 0,
+ QXL_EFFECT_OPAQUE = 1,
+ QXL_EFFECT_REVERT_ON_DUP = 2,
+ QXL_EFFECT_BLACKNESS_ON_DUP = 3,
+ QXL_EFFECT_WHITENESS_ON_DUP = 4,
+ QXL_EFFECT_NOP_ON_DUP = 5,
+ QXL_EFFECT_NOP = 6,
+ QXL_EFFECT_OPAQUE_BRUSH = 7
+} QXLEffectType;
typedef struct SPICE_ATTR_PACKED QXLPattern {
QXLPHYSICAL pat;
commit 07aa808a21f0106fea5f792388807606bb2a79e1
Author: Alon Levy <alevy at redhat.com>
Date: Thu Feb 10 15:42:24 2011 +0200
qxl_dev.h: make QXLBitmapFlags a typedef
diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h
index ab12c07..0bdbe55 100644
--- a/spice/qxl_dev.h
+++ b/spice/qxl_dev.h
@@ -579,11 +579,11 @@ typedef enum QXLImageFlags {
QXL_IMAGE_HIGH_BITS_SET = (1 << 1),
} QXLImageFlags;
-enum {
+typedef enum QXLBitmapFlags {
QXL_BITMAP_DIRECT = (1 << 0),
QXL_BITMAP_UNSTABLE = (1 << 1),
QXL_BITMAP_TOP_DOWN = (1 << 2), // == SPICE_BITMAP_FLAGS_TOP_DOWN
-};
+} QXLBitmapFlags;
#define QXL_SET_IMAGE_ID(image, _group, _unique) { \
(image)->descriptor.id = (((uint64_t)_unique) << 32) | _group; \
commit 6e719d6fccd696bf0e58b88f0a80ba4d41a153ff
Author: Alon Levy <alevy at redhat.com>
Date: Thu Feb 10 15:42:01 2011 +0200
qxl_dev.h: make QXLSurfaceCmdType a typedef
diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h
index 2b2bb56..ab12c07 100644
--- a/spice/qxl_dev.h
+++ b/spice/qxl_dev.h
@@ -511,10 +511,10 @@ typedef struct SPICE_ATTR_PACKED QXLDrawable {
} u;
} QXLDrawable;
-enum QXLSurfaceCmdType {
+typedef enum QXLSurfaceCmdType {
QXL_SURFACE_CMD_CREATE,
QXL_SURFACE_CMD_DESTROY,
-};
+} QXLSurfaceCmdType;
typedef struct SPICE_ATTR_PACKED QXLSurface {
uint32_t format;
commit 3b67b660b682281fe6e9c71949a8755380342f12
Author: Alon Levy <alevy at redhat.com>
Date: Thu Feb 10 13:01:52 2011 +0200
qxl_dev.h: name QXL_IMAGE_* flags as type and enum QXLImageFlags
diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h
index 354008d..2b2bb56 100644
--- a/spice/qxl_dev.h
+++ b/spice/qxl_dev.h
@@ -574,10 +574,10 @@ typedef union {
uint64_t value;
} QXLImageIDUnion;
-enum {
+typedef enum QXLImageFlags {
QXL_IMAGE_CACHE = (1 << 0),
QXL_IMAGE_HIGH_BITS_SET = (1 << 1),
-};
+} QXLImageFlags;
enum {
QXL_BITMAP_DIRECT = (1 << 0),
commit dbe9402bc2a4db0a61713e560405b0152d374628
Author: Alon Levy <alevy at redhat.com>
Date: Thu Feb 10 12:59:43 2011 +0200
qxl_dev.h: make QXLCmdType enum also a typedef
diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h
index ce9c61f..354008d 100644
--- a/spice/qxl_dev.h
+++ b/spice/qxl_dev.h
@@ -154,14 +154,14 @@ typedef struct SPICE_ATTR_PACKED QXLModes {
} QXLModes;
/* qxl-1 compat: append only */
-enum QXLCmdType {
+typedef enum QXLCmdType {
QXL_CMD_NOP,
QXL_CMD_DRAW,
QXL_CMD_UPDATE,
QXL_CMD_CURSOR,
QXL_CMD_MESSAGE,
QXL_CMD_SURFACE,
-};
+} QXLCmdType;
/* qxl-1 compat: fixed */
typedef struct SPICE_ATTR_PACKED QXLCommand {
More information about the Spice-commits
mailing list