[PATCH v3 08/17] Make some function static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 server/dcc-encoders.c | 4 ++--
 server/dcc-encoders.h | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/server/dcc-encoders.c b/server/dcc-encoders.c
index ad32954..c2bc88c 100644
--- a/server/dcc-encoders.c
+++ b/server/dcc-encoders.c
@@ -523,7 +523,7 @@ static void image_encoders_free_glz_drawable_instance(ImageEncoders *enc,
  * if possible.
  * NOTE - the caller should prevent encoding using the dictionary during this operation
  */
-void image_encoders_free_glz_drawable(ImageEncoders *enc, RedGlzDrawable *drawable)
+static void image_encoders_free_glz_drawable(ImageEncoders *enc, RedGlzDrawable *drawable)
 {
     RingItem *head_instance = ring_get_head(&drawable->instances);
     int cont = (head_instance != NULL);
@@ -633,7 +633,7 @@ void image_encoders_glz_detach_from_drawable(struct Drawable *drawable)
     }
 }
 
-void image_encoders_freeze_glz(ImageEncoders *enc)
+static void image_encoders_freeze_glz(ImageEncoders *enc)
 {
     pthread_rwlock_wrlock(&enc->glz_dict->encode_lock);
     enc->glz_dict->migrate_freeze = TRUE;
diff --git a/server/dcc-encoders.h b/server/dcc-encoders.h
index 5d8fce6..1600063 100644
--- a/server/dcc-encoders.h
+++ b/server/dcc-encoders.h
@@ -42,12 +42,10 @@ void image_encoder_globals_stat_print(const ImageEncoderGlobals *globals);
 
 void image_encoders_init(ImageEncoders *enc, ImageEncoderGlobals *globals);
 void image_encoders_free(ImageEncoders *enc);
-void image_encoders_free_glz_drawable(ImageEncoders *enc, RedGlzDrawable *drawable);
 int image_encoders_free_some_independent_glz_drawables(ImageEncoders *enc);
 void image_encoders_free_glz_drawables(ImageEncoders *enc);
 void image_encoders_free_glz_drawables_to_free(ImageEncoders* enc);
 gboolean image_encoders_glz_create(ImageEncoders *enc, uint8_t id);
-void image_encoders_freeze_glz(ImageEncoders *enc);
 void image_encoders_release_glz(ImageEncoders *enc);
 void image_encoders_glz_free_from_drawable(struct Drawable *drawable);
 void image_encoders_glz_detach_from_drawable(struct Drawable *drawable);
-- 
2.7.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]