[Spice-devel] [PATCH 1/6] qxl_dev.h: make QXLCmdType enum also a typedef

Alon Levy alevy at redhat.com
Thu Feb 10 10:14:34 PST 2011


---
 spice/qxl_dev.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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 {
-- 
1.7.4



More information about the Spice-devel mailing list