]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: Move declaration of struct _qemuMonitor to qemu_monitor_priv.h
authorPeter Krempa <pkrempa@redhat.com>
Mon, 14 Feb 2022 15:07:41 +0000 (16:07 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 15 Feb 2022 08:32:23 +0000 (09:32 +0100)
commit7c35c483eaa78eb847e0865cbb210d5355f75d7a
tree6b9b23c1453a6433ec24ed493e5fa1f4505bb368
parentf9ae469a6ebb17e0990096e826f049c1c46cd760
qemu: monitor: Move declaration of struct _qemuMonitor to qemu_monitor_priv.h

In order to mock the SCM_RIGHTS sendmsg to simulate sending
filedescriptors to fake qemu in tests we need access to some fields of
'struct _qemuMonitor'. Move its declaration to the private header file.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor_priv.h