[PATCH 09/23] virsh: Move 'cmdEvent' and all of it's machinery to virsh-domain-event.c

Ján Tomko jtomko at redhat.com
Wed Mar 2 14:33:55 UTC 2022


*its

On a Wednesday in 2022, Peter Krempa wrote:
>'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 at redhat.com>
>---
> po/POTFILES.in                 |    1 +
> tools/meson.build              |    1 +
> tools/virsh-completer-domain.c |   19 -
> tools/virsh-completer-domain.h |    5 -
> tools/virsh-domain-event.c     | 1007 ++++++++++++++++++++++++++++++++
> tools/virsh-domain-event.h     |   23 +
> tools/virsh-domain.c           |  946 ------------------------------
> tools/virsh.c                  |    2 +
> tools/virsh.h                  |    1 +
> 9 files changed, 1035 insertions(+), 970 deletions(-)
> create mode 100644 tools/virsh-domain-event.c
> create mode 100644 tools/virsh-domain-event.h
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20220302/e40b4313/attachment-0001.sig>


More information about the libvir-list mailing list