virsh: Split cmds of domain group from virsh.c

This splits commands to manage domain into virsh-domain.c,The helpers
not for common use are moved into them too. Standard copyright is added
for the new file.

* tools/virsh.c:
  - Remove commands for domain group, and one helper
    (vshDomainVcpuStateToString)
  - vshStreamSink is moved before commands's definition for it's
    also used by commands not of domain group, such as volUpload.

* tools/virsh-domain.c:
  - New file, commands for domain group and the one helper are
    moved into it.

* po/POTFILES.in:
  - Add virsh-domain.c

* cfg.mk:
  - Skip to check config.h including for virsh-domain.c
This commit is contained in:
Osier Yang 2012-07-25 23:37:18 +08:00
parent 9f4baa222e
commit 73b89ed838
4 changed files with 8061 additions and 8043 deletions

2
cfg.mk
View File

@ -773,7 +773,7 @@ exclude_file_name_regexp--sc_prohibit_xmlURI = ^src/util/viruri\.c$$
exclude_file_name_regexp--sc_prohibit_return_as_function = \.py$$ exclude_file_name_regexp--sc_prohibit_return_as_function = \.py$$
_virsh_includes=(edit|domain-monitor) _virsh_includes=(edit|domain-monitor|domain)
exclude_file_name_regexp--sc_require_config_h = ^(examples/|tools/virsh-$(_virsh_includes)\.c$$) exclude_file_name_regexp--sc_require_config_h = ^(examples/|tools/virsh-$(_virsh_includes)\.c$$)
exclude_file_name_regexp--sc_require_config_h_first = ^(examples/|tools/virsh-$(_virsh_includes)\.c$$) exclude_file_name_regexp--sc_require_config_h_first = ^(examples/|tools/virsh-$(_virsh_includes)\.c$$)

View File

@ -178,6 +178,7 @@ tools/console.c
tools/libvirt-guests.init.sh tools/libvirt-guests.init.sh
tools/virsh.c tools/virsh.c
tools/virsh-domain-monitor.c tools/virsh-domain-monitor.c
tools/virsh-domain.c
tools/virsh-edit.c tools/virsh-edit.c
tools/virt-host-validate-common.c tools/virt-host-validate-common.c
tools/virt-host-validate-lxc.c tools/virt-host-validate-lxc.c

8049
tools/virsh-domain.c Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff