[Spice-devel] [PATCH] reduce header dependencies

Frediano Ziglio fziglio at redhat.com
Fri Mar 4 13:35:06 UTC 2016


Avoid to include headers in cursor-channel.h which are only
used by cursor-channel.c

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/cursor-channel.c | 1 +
 server/cursor-channel.h | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/server/cursor-channel.c b/server/cursor-channel.c
index 3e3c7a7..268e34f 100644
--- a/server/cursor-channel.c
+++ b/server/cursor-channel.c
@@ -22,6 +22,7 @@
 #include <glib.h>
 #include "common/generated_server_marshallers.h"
 #include "cursor-channel.h"
+#include "cache-item.h"
 
 #define CLIENT_CURSOR_CACHE_SIZE 256
 
diff --git a/server/cursor-channel.h b/server/cursor-channel.h
index 967a117..4dad4b6 100644
--- a/server/cursor-channel.h
+++ b/server/cursor-channel.h
@@ -22,8 +22,6 @@
 #include "reds.h"
 #include "red-worker.h"
 #include "red-parse-qxl.h"
-#include "cache-item.h"
-#include "stat.h"
 
 typedef struct CursorChannel CursorChannel;
 typedef struct CursorChannelClient CursorChannelClient;
-- 
2.5.0



More information about the Spice-devel mailing list