]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: split out virsh.h
authorEric Blake <eblake@redhat.com>
Sat, 18 Aug 2012 03:16:04 +0000 (21:16 -0600)
committerEric Blake <eblake@redhat.com>
Sat, 18 Aug 2012 03:54:42 +0000 (21:54 -0600)
commitc2e494cc570540827d3ba8562a56349686bc2cc2
treed6546f91c9cf0a16905a54eb71907dd25f17a32e
parent8e8809e1312781bb2ddd76af869d853d3f275060
virsh: split out virsh.h

Having one .c file include another does not give any compilation
benefits; move towards modular .o files by first splitting out
reused declarations into a new virsh.h.  This patch doesn't try
very hard to see which functions are used or not, to make it
easier to review the file split.  Future patches can further trim
the header to be smaller.

* tools/Makefile.am (virsh_SOURCES): List new file, and prepare
for others.
* tools/virsh.c: Split declarations...
* tools/virsh.h: ...into new file, and make several functions
non-static.
* tools/virsh-domain-monitor.c (vshGetDomainDescription): Make
non-static.
tools/Makefile.am
tools/virsh-domain-monitor.c
tools/virsh.c
tools/virsh.h [new file with mode: 0644]