[PATCH spice 3/3] dcc: make dcc_compress_image_*() private

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

 



---
 server/dcc.c | 30 +++++++++++++++---------------
 server/dcc.h | 15 ---------------
 2 files changed, 15 insertions(+), 30 deletions(-)

diff --git a/server/dcc.c b/server/dcc.c
index b617b99..b8d4fea 100644
--- a/server/dcc.c
+++ b/server/dcc.c
@@ -646,9 +646,9 @@ static const LzImageType bitmap_fmt_to_lz_image_type[] = {
 
 #define MIN_GLZ_SIZE_FOR_ZLIB 100
 
-int dcc_compress_image_glz(DisplayChannelClient *dcc,
-                           SpiceImage *dest, SpiceBitmap *src, Drawable *drawable,
-                           compress_send_data_t* o_comp_data)
+static int dcc_compress_image_glz(DisplayChannelClient *dcc,
+                                  SpiceImage *dest, SpiceBitmap *src, Drawable *drawable,
+                                  compress_send_data_t* o_comp_data)
 {
     DisplayChannel *display_channel = DCC_TO_DC(dcc);
     stat_start_time_t start_time;
@@ -727,9 +727,9 @@ glz:
     return TRUE;
 }
 
-int dcc_compress_image_lz(DisplayChannelClient *dcc,
-                          SpiceImage *dest, SpiceBitmap *src,
-                          compress_send_data_t* o_comp_data, uint32_t group_id)
+static int dcc_compress_image_lz(DisplayChannelClient *dcc,
+                                 SpiceImage *dest, SpiceBitmap *src,
+                                 compress_send_data_t* o_comp_data, uint32_t group_id)
 {
     LzData *lz_data = &dcc->lz_data;
     LzContext *lz = dcc->lz;
@@ -791,9 +791,9 @@ int dcc_compress_image_lz(DisplayChannelClient *dcc,
     return TRUE;
 }
 
-int dcc_compress_image_jpeg(DisplayChannelClient *dcc, SpiceImage *dest,
-                            SpiceBitmap *src, compress_send_data_t* o_comp_data,
-                            uint32_t group_id)
+static int dcc_compress_image_jpeg(DisplayChannelClient *dcc, SpiceImage *dest,
+                                   SpiceBitmap *src, compress_send_data_t* o_comp_data,
+                                   uint32_t group_id)
 {
     JpegData *jpeg_data = &dcc->jpeg_data;
     LzData *lz_data = &dcc->lz_data;
@@ -918,9 +918,9 @@ int dcc_compress_image_jpeg(DisplayChannelClient *dcc, SpiceImage *dest,
 }
 
 #ifdef USE_LZ4
-int dcc_compress_image_lz4(DisplayChannelClient *dcc, SpiceImage *dest,
-                           SpiceBitmap *src, compress_send_data_t* o_comp_data,
-                           uint32_t group_id)
+static int dcc_compress_image_lz4(DisplayChannelClient *dcc, SpiceImage *dest,
+                                  SpiceBitmap *src, compress_send_data_t* o_comp_data,
+                                  uint32_t group_id)
 {
     Lz4Data *lz4_data = &dcc->lz4_data;
     Lz4EncoderContext *lz4 = dcc->lz4;
@@ -974,9 +974,9 @@ int dcc_compress_image_lz4(DisplayChannelClient *dcc, SpiceImage *dest,
 }
 #endif
 
-int dcc_compress_image_quic(DisplayChannelClient *dcc, SpiceImage *dest,
-                            SpiceBitmap *src, compress_send_data_t* o_comp_data,
-                            uint32_t group_id)
+static int dcc_compress_image_quic(DisplayChannelClient *dcc, SpiceImage *dest,
+                                   SpiceBitmap *src, compress_send_data_t* o_comp_data,
+                                   uint32_t group_id)
 {
     QuicData *quic_data = &dcc->quic_data;
     QuicContext *quic = dcc->quic;
diff --git a/server/dcc.h b/server/dcc.h
index 2a12226..f715792 100644
--- a/server/dcc.h
+++ b/server/dcc.h
@@ -219,20 +219,5 @@ int                        dcc_compress_image                        (DisplayCha
                                                                       SpiceImage *dest, SpiceBitmap *src, Drawable *drawable,
                                                                       int can_lossy,
                                                                       compress_send_data_t* o_comp_data);
-int                        dcc_compress_image_glz                    (DisplayChannelClient *dcc,
-                                                                      SpiceImage *dest, SpiceBitmap *src, Drawable *drawable,
-                                                                      compress_send_data_t* o_comp_data);
-int                        dcc_compress_image_lz                     (DisplayChannelClient *dcc,
-                                                                      SpiceImage *dest, SpiceBitmap *src,
-                                                                      compress_send_data_t* o_comp_data, uint32_t group_id);
-int                        dcc_compress_image_jpeg                   (DisplayChannelClient *dcc, SpiceImage *dest,
-                                                                      SpiceBitmap *src, compress_send_data_t* o_comp_data,
-                                                                      uint32_t group_id);
-int                        dcc_compress_image_quic                   (DisplayChannelClient *dcc, SpiceImage *dest,
-                                                                      SpiceBitmap *src, compress_send_data_t* o_comp_data,
-                                                                      uint32_t group_id);
-int                        dcc_compress_image_lz4                    (DisplayChannelClient *dcc, SpiceImage *dest,
-                                                                      SpiceBitmap *src, compress_send_data_t* o_comp_data,
-                                                                      uint32_t group_id);
 
 #endif /* DCC_H_ */
-- 
2.5.0

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://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]