Skip to contentSkip to conversation

qxl: Fix new function name for spice-server library

PATCH In review Frediano Ziglio 4 participants 4 messages Jul 20, 2015 – Jul 22, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qxl: Fix new function name for spice-server library

The new spice-server function to limit the number of monitors (0.12.6) changed while development from spice_qxl_set_monitors_config_limit to spice_qxl_max_monitors (accepted upstream).
By mistake I post patch with former name.
This patch fix the function name.

---
 hw/display/qxl.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

I tested again doing a clean build, unfortunately I did some mistake and my tests worked.

hw/display/qxl.c +1 -2
index 4e5ff69..2288238 100644
@@ -273,8 +273,7 @@ static void qxl_spice_monitors_config_async(PCIQXLDevice *qxl, int replay)
     } else {
 #if SPICE_SERVER_VERSION >= 0x000c06 /* release 0.12.6 */
         if (qxl->max_outputs) {
-            spice_qxl_set_monitors_config_limit(&qxl->ssd.qxl,
-                                                qxl->max_outputs);
+            spice_qxl_set_max_monitors(&qxl->ssd.qxl, qxl->max_outputs);
         }
 #endif
         qxl->guest_monitors_config = qxl->ram->monitors_config;
Signature · 1 line
2.1.0
#1 lore raw
Quoted 20 lines · Frediano Ziglio

The new spice-server function to limit the number of monitors (0.12.6) changed while development from spice_qxl_set_monitors_config_limit to spice_qxl_max_monitors (accepted upstream).
By mistake I post patch with former name.
This patch fix the function name.

---
 hw/display/qxl.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

I tested again doing a clean build, unfortunately I did some mistake and my tests worked.

hw/display/qxl.c +0 -0
index 4e5ff69..2288238 100644

hw/display/qxl.c static void qxl_spice_monitors_config_async(PCIQXLDevice *qxl, int replay) · line 279

Quoted 9 lines
hw/display/qxl.c +1 -2
@@ -273,8 +273,7 @@ static void qxl_spice_monitors_config_async(PCIQXLDevice *qxl, int replay)
     } else {
 #if SPICE_SERVER_VERSION >= 0x000c06 /* release 0.12.6 */
         if (qxl->max_outputs) {
-            spice_qxl_set_monitors_config_limit(&qxl->ssd.qxl,
-                                                qxl->max_outputs);
+            spice_qxl_set_max_monitors(&qxl->ssd.qxl, qxl->max_outputs);
         }
 #endif
         qxl->guest_monitors_config = qxl->ram->monitors_config;

ACK from me,

Christophe

#2 lore raw
In reply to Frediano Ziglio
Quoted 30 lines · Frediano Ziglio

The new spice-server function to limit the number of monitors (0.12.6) changed while development from spice_qxl_set_monitors_config_limit to spice_qxl_max_monitors (accepted upstream).
By mistake I post patch with former name.
This patch fix the function name.

---
hw/display/qxl.c | 3 +--

1 file changed, 1 insertion(+), 2 deletions(-)

I tested again doing a clean build, unfortunately I did some mistake and my tests worked.

hw/display/qxl.c +1 -3
index 4e5ff69..2288238 100644
@@ -273,8 +273,7 @@ static void qxl_spice_monitors_config_async(PCIQXLDevice *qxl, int replay)
    } else {
 #if SPICE_SERVER_VERSION >= 0x000c06 /* release 0.12.6 */
        if (qxl->max_outputs) {
-            spice_qxl_set_monitors_config_limit(&qxl->ssd.qxl,
-                                                qxl->max_outputs);
+            spice_qxl_set_max_monitors(&qxl->ssd.qxl, qxl->max_outputs);
        }
 #endif
        qxl->guest_monitors_config = qxl->ram->monitors_config;
--
Quoted 2 lines

2.1.0

Same as the fix I did in order for this to work with upstream spice.

ACK. Weak, though, as I'm not a privileged one.

Martin

#3 lore raw

Hi

Quoted 10 lines · Martin Kletzander
Quoted 9 lines · Frediano Ziglio

The new spice-server function to limit the number of monitors (0.12.6) changed while development from spice_qxl_set_monitors_config_limit to spice_qxl_max_monitors (accepted upstream).
By mistake I post patch with former name.
This patch fix the function name.

ACK, I'll try sending a proper pull request for 2.4 since Gerd is on holidays

Quoted 16 lines
Quoted 16 lines

---
hw/display/qxl.c | 3 +--

1 file changed, 1 insertion(+), 2 deletions(-)

I tested again doing a clean build, unfortunately I did some mistake and my tests worked.

hw/display/qxl.c +0 -0
index 4e5ff69..2288238 100644
@@ -273,8 +273,7 @@ static void
 qxl_spice_monitors_config_async(PCIQXLDevice *qxl, int replay)
    } else {
 #if SPICE_SERVER_VERSION >= 0x000c06 /* release 0.12.6 */
        if (qxl->max_outputs) {
Quoted 8 lines
Quoted 8 lines
hw/display/qxl.c +1 -2
-            spice_qxl_set_monitors_config_limit(&qxl->ssd.qxl,
-                                                qxl->max_outputs);
+            spice_qxl_set_max_monitors(&qxl->ssd.qxl, qxl->max_outputs);
        }
 #endif
        qxl->guest_monitors_config = qxl->ram->monitors_config;

--
2.1.0

H>>

Quoted 12 lines

Same as the fix I did in order for this to work with upstream spice.

ACK. Weak, though, as I'm not a privileged one.

Martin

_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Signature · 1 line
Marc-André Lureau