[Spice-devel] [PATCH 04/10] Rename display_channel_set_monitors_config_to_primary()

Jonathon Jongsma jjongsma at redhat.com
Thu Sep 8 16:52:54 UTC 2016


Since this function is a DisplayChannel method, use a name consistent
with naming conventions.
---
 server/display-channel.c | 2 +-
 server/display-channel.h | 2 +-
 server/red-worker.c      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/display-channel.c b/server/display-channel.c
index 34e0099..581cf18 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -2081,7 +2081,7 @@ void display_channel_update_monitors_config(DisplayChannel *display,
         monitors_config_new(config->heads, count, max_allowed);
 }
 
-void set_monitors_config_to_primary(DisplayChannel *display)
+void display_channel_set_monitors_config_to_primary(DisplayChannel *display)
 {
     DrawContext *context = &display->priv->surfaces[0].context;
     QXLHead head = { 0, };
diff --git a/server/display-channel.h b/server/display-channel.h
index b8ba05a..06d30d8 100644
--- a/server/display-channel.h
+++ b/server/display-channel.h
@@ -248,7 +248,7 @@ void                       display_channel_gl_draw_done              (DisplayCha
 
 void display_channel_update_monitors_config(DisplayChannel *display, QXLMonitorsConfig *config,
                                             uint16_t count, uint16_t max_allowed);
-void set_monitors_config_to_primary(DisplayChannel *display);
+void display_channel_set_monitors_config_to_primary(DisplayChannel *display);
 
 gboolean display_channel_validate_surface(DisplayChannel *display, uint32_t surface_id);
 void display_channel_reset_image_cache(DisplayChannel *self);
diff --git a/server/red-worker.c b/server/red-worker.c
index 92ab59c..3ce43b7 100644
--- a/server/red-worker.c
+++ b/server/red-worker.c
@@ -634,7 +634,7 @@ static void dev_create_primary_surface(RedWorker *worker, uint32_t surface_id,
 
     display_channel_create_surface(display, 0, surface.width, surface.height, surface.stride, surface.format,
                                    line_0, surface.flags & QXL_SURF_FLAG_KEEP_DATA, TRUE);
-    set_monitors_config_to_primary(display);
+    display_channel_set_monitors_config_to_primary(display);
 
     if (display_is_connected(worker) && !worker->display_channel->common.during_target_migrate) {
         /* guest created primary, so it will (hopefully) send a monitors_config
-- 
2.7.4



More information about the Spice-devel mailing list