[Spice-devel] [WIP spice-gtk 0/4] Add webdav channel

Marc-André Lureau marcandre.lureau at gmail.com
Sun Jan 12 09:40:22 PST 2014


From: Marc-André Lureau <marcandre.lureau at redhat.com>

Hi,

This is the work in progress of a webdav channel implementation for
spice-gtk.  See spice.proto RFC and commit comments for more details.

To test the channel, launch qemu with org.spice-space.webdav.0 port redirected to virtio, ex:

-device virtserialport,..,chardev=charchannel1,name=org.spice-space.webdav.0 -chardev spiceport,name=org.spice-space.webdav.0,id=charchannel1

Then connect with spice-gtk and run "while true ; do spice-webdavd -p
8000 ; done" in guest. You can then access dav://localhost:8000 or
browse the remote filesystems in nautilus. gvfs-fuse can be used to
mount the filesystem for applications that do not support gio.

The server can be used and tested independantly with the webdav-server
tool.

Marc-André Lureau (4):
  port: send opened a port-event signal on init
  spicy: do not flush and disconnect all kind of ports
  Add SpiceVMC GIOStream
  WIP: webdav channel

 configure.ac               |    5 +
 gtk/Makefile.am            |   19 +-
 gtk/channel-base.c         |   48 +
 gtk/channel-port.c         |   38 +-
 gtk/channel-webdav.c       |  582 +++++++++
 gtk/channel-webdav.h       |   82 ++
 gtk/map-file               |    1 +
 gtk/spice-channel-priv.h   |    8 +
 gtk/spice-channel.c        |    6 +
 gtk/spice-client.h         |    1 +
 gtk/spice-glib-sym-file    |    2 +
 gtk/spice-gtk-session.c    |    1 -
 gtk/spice-session-priv.h   |    2 +
 gtk/spice-session.c        |    4 +-
 gtk/spicy.c                |    3 +-
 gtk/vmcstream.c            |  532 +++++++++
 gtk/vmcstream.h            |   81 ++
 gtk/webdav/Makefile.am     |   43 +
 gtk/webdav/guuid.c         |  471 ++++++++
 gtk/webdav/guuid.h         |  105 ++
 gtk/webdav/test-start      |  141 +++
 gtk/webdav/webdav-server.c |  197 +++
 gtk/webdav/webdav.c        | 2855 ++++++++++++++++++++++++++++++++++++++++++++
 gtk/webdav/webdav.h        |   44 +
 spice-common               |    2 +-
 25 files changed, 5233 insertions(+), 40 deletions(-)
 create mode 100644 gtk/channel-webdav.c
 create mode 100644 gtk/channel-webdav.h
 create mode 100644 gtk/vmcstream.c
 create mode 100644 gtk/vmcstream.h
 create mode 100644 gtk/webdav/Makefile.am
 create mode 100644 gtk/webdav/guuid.c
 create mode 100644 gtk/webdav/guuid.h
 create mode 100755 gtk/webdav/test-start
 create mode 100644 gtk/webdav/webdav-server.c
 create mode 100644 gtk/webdav/webdav.c
 create mode 100644 gtk/webdav/webdav.h

-- 
1.8.4.2



More information about the Spice-devel mailing list