]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Move 'cmdEvent' and all of its machinery to virsh-domain-event.c
authorPeter Krempa <pkrempa@redhat.com>
Mon, 21 Feb 2022 13:02:19 +0000 (14:02 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 3 Mar 2022 10:06:56 +0000 (11:06 +0100)
commitea3e64fefdfb2e02ff80e6d21e7e242a7551fdd7
treefddee398b88096a6c66cc000222838b123dd9023
parentc704d27d4a941337a956ab7fe77b95892019976b
virsh: Move 'cmdEvent' and all of its machinery to virsh-domain-event.c

'cmdEvent' along with all the helper functions it needs is ~950 LOC.
Move it out from virsh-domain.c to virsh-domain-event.c along with the
completer function so that the new module doesn't have to expose any new
types.

Semantically this creates a new category in 'virsh help' but all other
behaviour stays the same.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
po/POTFILES.in
tools/meson.build
tools/virsh-completer-domain.c
tools/virsh-completer-domain.h
tools/virsh-domain-event.c [new file with mode: 0644]
tools/virsh-domain-event.h [new file with mode: 0644]
tools/virsh-domain.c
tools/virsh.c
tools/virsh.h