Associate org.spice-space.webdav.0 port to webdav channel

For example, with qemu, a webdav channel can be created this way:

 -chardev spiceport,name=org.spice-space.webdav.0,...

And redirected to a virtio port:

 -device virtserialport,...,name=org.spice-space.webdav.0
This commit is contained in:
Marc-André Lureau 2013-11-29 11:16:19 +01:00
parent e044cfca1e
commit 25f6745202
2 changed files with 7 additions and 2 deletions

View File

@ -2975,7 +2975,11 @@ static int spice_server_char_device_add_interface(SpiceServer *s,
dev_state = spicevmc_device_connect(char_device, SPICE_CHANNEL_USBREDIR);
}
else if (strcmp(char_device->subtype, SUBTYPE_PORT) == 0) {
dev_state = spicevmc_device_connect(char_device, SPICE_CHANNEL_PORT);
if (strcmp(char_device->portname, "org.spice-space.webdav.0") == 0) {
dev_state = spicevmc_device_connect(char_device, SPICE_CHANNEL_WEBDAV);
} else {
dev_state = spicevmc_device_connect(char_device, SPICE_CHANNEL_PORT);
}
}
if (dev_state) {
@ -3513,6 +3517,7 @@ SPICE_GNUC_VISIBLE int spice_server_set_channel_security(SpiceServer *s, const c
[ SPICE_CHANNEL_SMARTCARD] = "smartcard",
#endif
[ SPICE_CHANNEL_USBREDIR ] = "usbredir",
[ SPICE_CHANNEL_WEBDAV ] = "webdav",
};
int i;

@ -1 +1 @@
Subproject commit 57ce430ccd66bd1ca2447c14503234cfb88e2365
Subproject commit 01955e70079876de62bb8c86ee6793c1405fb47d