]> xenbits.xensource.com Git - libvirt.git/commit
tools: Introduce new client generic module vsh
authorErik Skultety <eskultet@redhat.com>
Mon, 15 Jun 2015 16:53:58 +0000 (18:53 +0200)
committerErik Skultety <eskultet@redhat.com>
Fri, 14 Aug 2015 13:45:44 +0000 (15:45 +0200)
commit834c5720e4434f0bcc807bb1cf20855af63e24a3
tree7e5427d7639f68934bea62fb41b1f587b6576353
parentb5d63e997bb4cbaa3c9d5e35e38998b0c1e78fd1
tools: Introduce new client generic module vsh

In order to share as much virsh' logic as possible with upcomming
virt-admin client we need to split virsh logic into virsh specific and
client generic features.

Since majority of virsh methods should be generic enough to be used by
other clients, it's much easier to rename virsh specific data to virshX
than doing this vice versa. It moved generic virsh commands (including info
and opts structures) to generic module vsh.c.

Besides renaming methods and structures, this patch also involves introduction
of a client specific control structure being referenced as private data in the
original control structure, introduction of a new global vsh Initializer,
which currently doesn't do much, but there is a potential for added
functionality in the future.
Lastly it introduced client hooks which are especially necessary during
client connecting phase.
30 files changed:
cfg.mk
po/POTFILES.in
src/libvirt_private.syms
src/util/virstring.c
src/util/virstring.h
tools/Makefile.am
tools/virsh-console.c
tools/virsh-console.h
tools/virsh-domain-monitor.c
tools/virsh-domain-monitor.h
tools/virsh-domain.c
tools/virsh-domain.h
tools/virsh-host.c
tools/virsh-interface.c
tools/virsh-interface.h
tools/virsh-network.c
tools/virsh-network.h
tools/virsh-nodedev.c
tools/virsh-nwfilter.c
tools/virsh-nwfilter.h
tools/virsh-pool.c
tools/virsh-pool.h
tools/virsh-secret.c
tools/virsh-snapshot.c
tools/virsh-volume.c
tools/virsh-volume.h
tools/virsh.c
tools/virsh.h
tools/vsh.c [new file with mode: 0644]
tools/vsh.h [new file with mode: 0644]