[Spice-devel] [PATCH v4 09/19] Make some function static
Frediano Ziglio
fziglio at redhat.com
Tue Jun 14 09:33:01 UTC 2016
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
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 2e5984a..f423f22 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 ce8010c..9674465 100644
--- a/server/dcc-encoders.h
+++ b/server/dcc-encoders.h
@@ -42,12 +42,10 @@ void image_encoder_shared_stat_print(const ImageEncoderSharedData *shared_data);
void image_encoders_init(ImageEncoders *enc, ImageEncoderSharedData *shared_data);
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
More information about the Spice-devel
mailing list