[Spice-commits] server/reds.c server/tests

Lukáš Hrázký lukash at kemper.freedesktop.org
Thu Apr 5 14:52:27 UTC 2018


 server/reds.c                     |    2 +-
 server/tests/test-stream-device.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 68b621186548ca25dfbc54ad88e1cc05c209b06c
Author: Lukáš Hrázký <lhrazky at redhat.com>
Date:   Thu Apr 5 16:46:06 2018 +0200

    Rename the virtio port for streaming
    
    The name 'com.redhat.stream.0' is too generic and in no way denotes it
    belongs to SPICE. It is preferred to have the project's domain in the
    name and Red Hat doesn't own the project. Rename it to
    org.spice-space.stream.0.
    
    Signed-off-by: Lukáš Hrázký <lhrazky at redhat.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/server/reds.c b/server/reds.c
index 998f2ffa..935448d8 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3145,7 +3145,7 @@ static int spice_server_char_device_add_interface(SpiceServer *reds,
     else if (strcmp(char_device->subtype, SUBTYPE_PORT) == 0) {
         if (strcmp(char_device->portname, "org.spice-space.webdav.0") == 0) {
             dev_state = spicevmc_device_connect(reds, char_device, SPICE_CHANNEL_WEBDAV);
-        } else if (strcmp(char_device->portname, "com.redhat.stream.0") == 0) {
+        } else if (strcmp(char_device->portname, "org.spice-space.stream.0") == 0) {
             dev_state = RED_CHAR_DEVICE(stream_device_connect(reds, char_device));
         } else {
             dev_state = spicevmc_device_connect(reds, char_device, SPICE_CHANNEL_PORT);
diff --git a/server/tests/test-stream-device.c b/server/tests/test-stream-device.c
index 3c9209a4..2fdd0a39 100644
--- a/server/tests/test-stream-device.c
+++ b/server/tests/test-stream-device.c
@@ -107,7 +107,7 @@ static SpiceCharDeviceInterface vmc_interface = {
 // this specifically creates a stream device
 static SpiceCharDeviceInstance vmc_instance = {
     .subtype = "port",
-    .portname = "com.redhat.stream.0",
+    .portname = "org.spice-space.stream.0",
 };
 
 static uint8_t *add_stream_hdr(uint8_t *p, StreamMsgType type, uint32_t size)


More information about the Spice-commits mailing list