Make some function static

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
Frediano Ziglio 2016-05-24 10:15:51 +01:00
parent 70f04bdab3
commit 8782bb3211
7 changed files with 9 additions and 11 deletions

View File

@ -281,7 +281,7 @@ static void add_drawable_surface_images(DisplayChannelClient *dcc, Drawable *dra
dcc_push_surface_image(dcc, drawable->surface_id);
}
void red_drawable_pipe_item_free(RedPipeItem *item)
static void red_drawable_pipe_item_free(RedPipeItem *item)
{
RedDrawablePipeItem *dpi = SPICE_CONTAINEROF(item, RedDrawablePipeItem,
dpi_pipe_item);

View File

@ -21,6 +21,8 @@
#include "display-channel.h"
static void drawable_draw(DisplayChannel *display, Drawable *drawable);
static Drawable *display_channel_drawable_try_new(DisplayChannel *display,
int process_commands_generation);
uint32_t display_channel_generate_uid(DisplayChannel *display)
{
@ -848,7 +850,7 @@ static bool drawable_can_stream(DisplayChannel *display, Drawable *drawable)
return TRUE;
}
void display_channel_print_stats(DisplayChannel *display)
static void display_channel_print_stats(DisplayChannel *display)
{
#ifdef RED_WORKER_STAT
stat_time_t total = display->add_stat.total;
@ -1331,8 +1333,8 @@ static void drawables_init(DisplayChannel *display)
*
* @return pointer to uninitialized Drawable or NULL on failure
*/
Drawable *display_channel_drawable_try_new(DisplayChannel *display,
int process_commands_generation)
static Drawable *display_channel_drawable_try_new(DisplayChannel *display,
int process_commands_generation)
{
Drawable *drawable;

View File

@ -280,8 +280,6 @@ void display_channel_set_stream_video (DisplayCha
int display_channel_get_streams_timeout (DisplayChannel *display);
void display_channel_compress_stats_print (const DisplayChannel *display);
void display_channel_compress_stats_reset (DisplayChannel *display);
Drawable * display_channel_drawable_try_new (DisplayChannel *display,
int process_commands_generation);
void display_channel_surface_unref (DisplayChannel *display,
uint32_t surface_id);
void display_channel_current_flush (DisplayChannel *display,

View File

@ -585,7 +585,7 @@ error:
return NULL;
}
void red_put_image(SpiceImage *red)
static void red_put_image(SpiceImage *red)
{
if (red == NULL)
return;

View File

@ -118,7 +118,6 @@ void red_get_rect_ptr(SpiceRect *red, const QXLRect *qxl);
int red_get_drawable(RedMemSlotInfo *slots, int group_id,
RedDrawable *red, QXLPHYSICAL addr, uint32_t flags);
void red_put_drawable(RedDrawable *red);
void red_put_image(SpiceImage *red);
int red_get_update_cmd(RedMemSlotInfo *slots, int group_id,
RedUpdateCmd *red, QXLPHYSICAL addr);

View File

@ -27,7 +27,7 @@
item != NULL; \
item = ring_next(&(display)->streams, item))
void stream_agent_stats_print(StreamAgent *agent)
static void stream_agent_stats_print(StreamAgent *agent)
{
#ifdef STREAM_STATS
StreamStats *stats = &agent->stats;
@ -161,7 +161,7 @@ void stream_agent_unref(DisplayChannel *display, StreamAgent *agent)
stream_unref(display, agent->stream);
}
void red_stream_clip_item_free(RedPipeItem *base)
static void red_stream_clip_item_free(RedPipeItem *base)
{
g_return_if_fail(base != NULL);
RedStreamClipItem *item = SPICE_CONTAINEROF(base, RedStreamClipItem, base);

View File

@ -159,7 +159,6 @@ void stream_detach_behind (DisplayChan
void stream_agent_unref (DisplayChannel *display,
StreamAgent *agent);
void stream_agent_stats_print (StreamAgent *agent);
void stream_agent_stop (StreamAgent *agent);
void detach_stream(DisplayChannel *display, Stream *stream, int detach_sized);