[Spice-devel] [PATCH 19/19] display: remove some public declarations

Frediano Ziglio fziglio at redhat.com
Wed Nov 25 07:27:43 PST 2015


From: Marc-André Lureau <marcandre.lureau at gmail.com>

---
 server/display-channel.c | 6 ++++--
 server/display-channel.h | 3 ---
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/server/display-channel.c b/server/display-channel.c
index 811799a..fe4dd3e 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -20,6 +20,8 @@
 
 #include "display-channel.h"
 
+static void drawable_draw(DisplayChannel *display, Drawable *drawable);
+
 uint32_t display_channel_generate_uid(DisplayChannel *display)
 {
     spice_return_val_if_fail(display != NULL, 0);
@@ -1298,7 +1300,7 @@ static void drawable_free(DisplayChannel *display, Drawable *drawable)
     display->free_drawables = (_Drawable *)drawable;
 }
 
-void drawables_init(DisplayChannel *display)
+static void drawables_init(DisplayChannel *display)
 {
     int i;
 
@@ -1414,7 +1416,7 @@ static void drawable_deps_draw(DisplayChannel *display, Drawable *drawable)
     }
 }
 
-void drawable_draw(DisplayChannel *display, Drawable *drawable)
+static void drawable_draw(DisplayChannel *display, Drawable *drawable)
 {
     RedSurface *surface;
     SpiceCanvas *canvas;
diff --git a/server/display-channel.h b/server/display-channel.h
index 0e0c1f1..e17381c 100644
--- a/server/display-channel.h
+++ b/server/display-channel.h
@@ -432,7 +432,4 @@ static inline void region_add_clip_rects(QRegion *rgn, SpiceClipRects *data)
     }
 }
 
-void drawable_draw(DisplayChannel *display, Drawable *item);
-void drawables_init(DisplayChannel *display);
-
 #endif /* DISPLAY_CHANNEL_H_ */
-- 
2.4.3



More information about the Spice-devel mailing list