]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Re-write virsh console to use streams
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 27 Jul 2010 09:40:30 +0000 (10:40 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 11 Nov 2010 16:03:20 +0000 (16:03 +0000)
commitdad4b5d47f8ce8ea44ca2ef462c43eb3d5954bf5
treef5e50ef6d5daba2dbef7e5418cb0359f115fe1bb
parent77960c0e9d74cfdf1e35201835c21e35e463b119
Re-write virsh console to use streams

This re-writes the 'virsh console' command so that it uses
the new streams API. This lets it run remotely and/or as a
non-root user. This requires that virsh be linked against
the simple event loop from libvirtd in daemon/event.c
As an added bonus, it can now connect to any console device,
not just the first one.

* tools/Makefile.am: Link to event.c
* tools/console.c, tools/console.h: Rewrite to use the
  virDomainOpenConsole() APIs with streams
* tools/virsh.c: Support choosing the console name
  via --devname $NAME
.x-sc_avoid_write
tools/Makefile.am
tools/console.c
tools/console.h
tools/virsh.c
tools/virsh.pod