summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-09-16 00:11:13 +0200
committerFrediano Ziglio <fziglio@redhat.com>2015-11-09 14:51:19 +0000
commit66ed1f63b8b81621c136dd7cc3b6a1e7032d1394 (patch)
tree6a4557cfd8f7c1337ffc1d692df2923eaa28e8d9
parentdf716c5c53774bc632844a14307b9dd8d31c7fcf (diff)
downloadspice-66ed1f63b8b81621c136dd7cc3b6a1e7032d1394.zip
spice-66ed1f63b8b81621c136dd7cc3b6a1e7032d1394.tar.gz
spice-66ed1f63b8b81621c136dd7cc3b6a1e7032d1394.tar.xz
worker: make more functions static
Acked-by: Pavel Grunt <pgrunt@redhat.com>
-rw-r--r--server/red_worker.c64
1 files changed, 32 insertions, 32 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index fd0cf00..5fd145a 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -9211,7 +9211,7 @@ static void surface_dirty_region_to_rects(RedSurface *surface,
free(dirty_rects);
}
-void handle_dev_update_async(void *opaque, void *payload)
+static void handle_dev_update_async(void *opaque, void *payload)
{
RedWorker *worker = opaque;
RedWorkerMessageUpdateAsync *msg = payload;
@@ -9246,7 +9246,7 @@ void handle_dev_update_async(void *opaque, void *payload)
free(qxl_dirty_rects);
}
-void handle_dev_update(void *opaque, void *payload)
+static void handle_dev_update(void *opaque, void *payload)
{
RedWorker *worker = opaque;
RedWorkerMessageUpdate *msg = payload;
@@ -9281,7 +9281,7 @@ static void dev_add_memslot(RedWorker *worker, QXLDevMemSlot mem_slot)
mem_slot.generation);
}
-void handle_dev_add_memslot(void *opaque, void *payload)
+static void handle_dev_add_memslot(void *opaque, void *payload)
{
RedWorker *worker = opaque;
RedWorkerMessageAddMemslot *msg = payload;
@@ -9292,7 +9292,7 @@ void handle_dev_add_memslot(void *opaque, void *payload)
mem_slot.generation);
}
-void handle_dev_del_memslot(void *opaque, void *payload)
+static void handle_dev_del_memslot(void *opaque, void *payload)
{
RedWorker *worker = opaque;
RedWorkerMessageDelMemslot *msg = payload;
@@ -9330,7 +9330,7 @@ static void dev_destroy_surface_wait(RedWorker *worker, uint32_t surface_id)
}
}
-void handle_dev_destroy_surface_wait(void *opaque, void *payload)
+static void handle_dev_destroy_surface_wait(void *opaque, void *payload)
{
RedWorkerMessageDestroySurfaceWait *msg = payload;
RedWorker *worker = opaque;
@@ -9371,7 +9371,7 @@ static inline void dev_destroy_surfaces(RedWorker *worker)
cursor_channel_reset(worker->cursor_channel);
}
-void handle_dev_destroy_surfaces(void *opaque, void *payload)
+static void handle_dev_destroy_surfaces(void *opaque, void *payload)
{
RedWorker *worker = opaque;
@@ -9461,7 +9461,7 @@ static void dev_create_primary_surface(RedWorker *worker, uint32_t surface_id,
cursor_channel_init(worker->cursor_channel, NULL);
}
-void handle_dev_create_primary_surface(void *opaque, void *payload)
+static void handle_dev_create_primary_surface(void *opaque, void *payload)
{
RedWorkerMessageCreatePrimarySurface *msg = payload;
RedWorker *worker = opaque;
@@ -9490,7 +9490,7 @@ static void dev_destroy_primary_surface(RedWorker *worker, uint32_t surface_id)
cursor_channel_reset(worker->cursor_channel);
}
-void handle_dev_destroy_primary_surface(void *opaque, void *payload)
+static void handle_dev_destroy_primary_surface(void *opaque, void *payload)
{
RedWorkerMessageDestroyPrimarySurface *msg = payload;
RedWorker *worker = opaque;
@@ -9499,7 +9499,7 @@ void handle_dev_destroy_primary_surface(void *opaque, void *payload)
dev_destroy_primary_surface(worker, surface_id);
}
-void handle_dev_destroy_primary_surface_async(void *opaque, void *payload)
+static void handle_dev_destroy_primary_surface_async(void *opaque, void *payload)
{
RedWorkerMessageDestroyPrimarySurfaceAsync *msg = payload;
RedWorker *worker = opaque;
@@ -9525,14 +9525,14 @@ static void dev_flush_surfaces(RedWorker *worker)
flush_all_surfaces(worker);
}
-void handle_dev_flush_surfaces_async(void *opaque, void *payload)
+static void handle_dev_flush_surfaces_async(void *opaque, void *payload)
{
RedWorker *worker = opaque;
dev_flush_surfaces(worker);
}
-void handle_dev_stop(void *opaque, void *payload)
+static void handle_dev_stop(void *opaque, void *payload)
{
RedWorker *worker = opaque;
@@ -9589,7 +9589,7 @@ static int display_channel_wait_for_migrate_data(DisplayChannel *display)
return FALSE;
}
-void handle_dev_start(void *opaque, void *payload)
+static void handle_dev_start(void *opaque, void *payload)
{
RedWorker *worker = opaque;
@@ -9607,7 +9607,7 @@ void handle_dev_start(void *opaque, void *payload)
guest_set_client_capabilities(worker);
}
-void handle_dev_wakeup(void *opaque, void *payload)
+static void handle_dev_wakeup(void *opaque, void *payload)
{
RedWorker *worker = opaque;
@@ -9615,7 +9615,7 @@ void handle_dev_wakeup(void *opaque, void *payload)
red_dispatcher_clear_pending(worker->red_dispatcher, RED_DISPATCHER_PENDING_WAKEUP);
}
-void handle_dev_oom(void *opaque, void *payload)
+static void handle_dev_oom(void *opaque, void *payload)
{
RedWorker *worker = opaque;
@@ -9648,19 +9648,19 @@ void handle_dev_oom(void *opaque, void *payload)
red_dispatcher_clear_pending(worker->red_dispatcher, RED_DISPATCHER_PENDING_OOM);
}
-void handle_dev_reset_cursor(void *opaque, void *payload)
+static void handle_dev_reset_cursor(void *opaque, void *payload)
{
RedWorker *worker = opaque;
cursor_channel_reset(worker->cursor_channel);
}
-void handle_dev_reset_image_cache(void *opaque, void *payload)
+static void handle_dev_reset_image_cache(void *opaque, void *payload)
{
image_cache_reset(&((RedWorker *)opaque)->image_cache);
}
-void handle_dev_destroy_surface_wait_async(void *opaque, void *payload)
+static void handle_dev_destroy_surface_wait_async(void *opaque, void *payload)
{
RedWorkerMessageDestroySurfaceWaitAsync *msg = payload;
RedWorker *worker = opaque;
@@ -9668,14 +9668,14 @@ void handle_dev_destroy_surface_wait_async(void *opaque, void *payload)
dev_destroy_surface_wait(worker, msg->surface_id);
}
-void handle_dev_destroy_surfaces_async(void *opaque, void *payload)
+static void handle_dev_destroy_surfaces_async(void *opaque, void *payload)
{
RedWorker *worker = opaque;
dev_destroy_surfaces(worker);
}
-void handle_dev_create_primary_surface_async(void *opaque, void *payload)
+static void handle_dev_create_primary_surface_async(void *opaque, void *payload)
{
RedWorkerMessageCreatePrimarySurfaceAsync *msg = payload;
RedWorker *worker = opaque;
@@ -9683,7 +9683,7 @@ void handle_dev_create_primary_surface_async(void *opaque, void *payload)
dev_create_primary_surface(worker, msg->surface_id, msg->surface);
}
-void handle_dev_display_connect(void *opaque, void *payload)
+static void handle_dev_display_connect(void *opaque, void *payload)
{
RedWorkerMessageDisplayConnect *msg = payload;
RedWorker *worker = opaque;
@@ -9699,7 +9699,7 @@ void handle_dev_display_connect(void *opaque, void *payload)
free(msg->common_caps);
}
-void handle_dev_display_disconnect(void *opaque, void *payload)
+static void handle_dev_display_disconnect(void *opaque, void *payload)
{
RedWorkerMessageDisplayDisconnect *msg = payload;
RedChannelClient *rcc = msg->rcc;
@@ -9713,7 +9713,7 @@ void handle_dev_display_disconnect(void *opaque, void *payload)
red_channel_client_disconnect(rcc);
}
-void handle_dev_display_migrate(void *opaque, void *payload)
+static void handle_dev_display_migrate(void *opaque, void *payload)
{
RedWorkerMessageDisplayMigrate *msg = payload;
RedWorker *worker = opaque;
@@ -9774,7 +9774,7 @@ static void handle_dev_monitors_config_async(void *opaque, void *payload)
}
/* TODO: special, perhaps use another dispatcher? */
-void handle_dev_cursor_connect(void *opaque, void *payload)
+static void handle_dev_cursor_connect(void *opaque, void *payload)
{
RedWorkerMessageCursorConnect *msg = payload;
RedWorker *worker = opaque;
@@ -9790,7 +9790,7 @@ void handle_dev_cursor_connect(void *opaque, void *payload)
free(msg->common_caps);
}
-void handle_dev_cursor_disconnect(void *opaque, void *payload)
+static void handle_dev_cursor_disconnect(void *opaque, void *payload)
{
RedWorkerMessageCursorDisconnect *msg = payload;
RedChannelClient *rcc = msg->rcc;
@@ -9800,7 +9800,7 @@ void handle_dev_cursor_disconnect(void *opaque, void *payload)
red_channel_client_disconnect(rcc);
}
-void handle_dev_cursor_migrate(void *opaque, void *payload)
+static void handle_dev_cursor_migrate(void *opaque, void *payload)
{
RedWorkerMessageCursorMigrate *msg = payload;
RedChannelClient *rcc = msg->rcc;
@@ -9809,7 +9809,7 @@ void handle_dev_cursor_migrate(void *opaque, void *payload)
cursor_channel_client_migrate(CURSOR_CHANNEL_CLIENT(rcc));
}
-void handle_dev_set_compression(void *opaque, void *payload)
+static void handle_dev_set_compression(void *opaque, void *payload)
{
RedWorkerMessageSetCompression *msg = payload;
RedWorker *worker = opaque;
@@ -9847,7 +9847,7 @@ void handle_dev_set_compression(void *opaque, void *payload)
display_channel_compress_stats_reset(worker->display_channel);
}
-void handle_dev_set_streaming_video(void *opaque, void *payload)
+static void handle_dev_set_streaming_video(void *opaque, void *payload)
{
RedWorkerMessageSetStreamingVideo *msg = payload;
RedWorker *worker = opaque;
@@ -9869,7 +9869,7 @@ void handle_dev_set_streaming_video(void *opaque, void *payload)
}
}
-void handle_dev_set_mouse_mode(void *opaque, void *payload)
+static void handle_dev_set_mouse_mode(void *opaque, void *payload)
{
RedWorkerMessageSetMouseMode *msg = payload;
RedWorker *worker = opaque;
@@ -9878,7 +9878,7 @@ void handle_dev_set_mouse_mode(void *opaque, void *payload)
cursor_channel_set_mouse_mode(worker->cursor_channel, msg->mode);
}
-void handle_dev_add_memslot_async(void *opaque, void *payload)
+static void handle_dev_add_memslot_async(void *opaque, void *payload)
{
RedWorkerMessageAddMemslotAsync *msg = payload;
RedWorker *worker = opaque;
@@ -9886,14 +9886,14 @@ void handle_dev_add_memslot_async(void *opaque, void *payload)
dev_add_memslot(worker, msg->mem_slot);
}
-void handle_dev_reset_memslots(void *opaque, void *payload)
+static void handle_dev_reset_memslots(void *opaque, void *payload)
{
RedWorker *worker = opaque;
red_memslot_info_reset(&worker->mem_slots);
}
-void handle_dev_driver_unload(void *opaque, void *payload)
+static void handle_dev_driver_unload(void *opaque, void *payload)
{
RedWorker *worker = opaque;
@@ -9929,7 +9929,7 @@ static int loadvm_command(RedWorker *worker, QXLCommandExt *ext)
return TRUE;
}
-void handle_dev_loadvm_commands(void *opaque, void *payload)
+static void handle_dev_loadvm_commands(void *opaque, void *payload)
{
RedWorkerMessageLoadvmCommands *msg = payload;
RedWorker *worker = opaque;