• Eric Blake's avatar
    qemu: support arbitrary monitor events · e3da8f17
    Eric Blake authored
    Wrap the new virConnectDomainQemuMonitorEventRegister function
    added in libvirt 1.2.3.  This patch copies heavily from
    network events (commit 6ea5be0d) and from event loop callbacks
    in libvirt-override.c, since in the libvirt_qemu module, we
    must expose top-level functions rather than class members.
    
    * generator.py (qemu_skip_function): Don't generate event code.
    (qemuBuildWrappers): Delay manual portion until after imports.
    * libvirt-qemu-override.py (qemuMonitorEventRegister)
    (qemuMonitorEventDeregister): New file.
    * libvirt-qemu-override.c
    (libvirt_qemu_virConnectDomainQemuMonitorEventFreeFunc)
    (libvirt_qemu_virConnectDomainQemuMonitorEventCallback)
    (libvirt_qemu_virConnectDomainQemuMonitorEventRegister)
    (libvirt_qemu_virConnectDomainQemuMonitorEventDeregister)
    (libvirt_qemu_lookupPythonFunc, getLibvirtQemuDictObject)
    (getLibvirtQemuModuleObject): New functions.
    Signed-off-by: 's avatarEric Blake <eblake@redhat.com>
    e3da8f17
libvirt-qemu-override.py 1.6 KB