b914e0e qemu_hotplug: new function qemuDomainRemoveAuditDevice()

Authored and Committed by Laine Stump 5 years ago
    qemu_hotplug: new function qemuDomainRemoveAuditDevice()
    
    This function can be called with a virDomainDevicePtr and whether or
    not the removal was successful, and it will call the appropriate
    virDomainAudit*() function with the appropriate args for whatever type
    of device it's given (or do nothing, if that's appropriate). This
    permits generalizing some code that currently has a separate copy for
    each type of device.
    
    NB: Although the function initially will be called only with
    success=false, that has been made an argument so that in the future
    (when the qemuDomainRemove*Device() functions have had their common
    functionality consolidated into qemuDomainRemoveDevice()), this new
    common code can call qemuDomainRemoveAuditDevice() for all types.
    
    Signed-off-by: Laine Stump <laine@laine.org>
    ACKed-by: Peter Krempa <pkrempa@redhat.com>
    
        
file modified
+55 -0