• E
    hash: add common utility functions · 09567144
    Eric Blake 提交于
    I almost wrote a hash value free function that just called
    VIR_FREE, then realized I couldn't be the first person to
    do that.  Sure enough, it was worth factoring into a common
    helper routine.
    
    * src/util/virhash.h (virHashValueFree): New function.
    * src/util/virhash.c (virHashValueFree): Implement it.
    * src/util/virobject.h (virObjectFreeHashData): New function.
    * src/libvirt_private.syms (virhash.h, virobject.h): Export them.
    * src/nwfilter/nwfilter_learnipaddr.c (virNWFilterLearnInit): Use
    common function.
    * src/qemu/qemu_capabilities.c (virQEMUCapsCacheNew): Likewise.
    * src/qemu/qemu_command.c (qemuDomainCCWAddressSetCreate):
    Likewise.
    * src/qemu/qemu_monitor.c (qemuMonitorGetBlockInfo): Likewise.
    * src/qemu/qemu_process.c (qemuProcessWaitForMonitor): Likewise.
    * src/util/virclosecallbacks.c (virCloseCallbacksNew): Likewise.
    * src/util/virkeyfile.c (virKeyFileParseGroup): Likewise.
    * tests/qemumonitorjsontest.c
    (testQemuMonitorJSONqemuMonitorJSONGetBlockInfo): Likewise.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    09567144
libvirt_private.syms 46.4 KB