libvirt/src/cpu
Eric Blake 03ba07cb73 hash: make virHashFree more free-like
Two-argument free functions are uncommon; match the style elsewhere
by caching the callback at creation.

* src/util/hash.h (virHashCreate, virHashFree): Move deallocator
argument to creation.
* cfg.mk (useless_free_options): Add virHashFree.
* src/util/hash.c (_virHashTable): Track deallocator.
(virHashCreate, virHashFree): Update to new signature.
* src/conf/domain_conf.c (virDomainObjListDeinit)
(virDomainObjListInit, virDomainDiskDefForeachPath)
(virDomainSnapshotObjListDeinit, virDomainSnapshotObjListInit):
Update callers.
* src/conf/nwfilter_params.c (virNWFilterHashTableFree)
(virNWFilterHashTableCreate): Likewise.
* src/conf/nwfilter_conf.c (virNWFilterTriggerVMFilterRebuild):
Likewise.
* src/cpu/cpu_generic.c (genericHashFeatures, genericBaseline):
Likewise.
* src/xen/xm_internal.c (xenXMOpen, xenXMClose): Likewise.
* src/nwfilter/nwfilter_learnipaddr.c (virNWFilterLearnInit)
(virNWFilterLearnShutdown): Likewise.
* src/qemu/qemu_command.c (qemuDomainPCIAddressSetCreate)
(qemuDomainPCIAddressSetFree): Likewise.
* src/qemu/qemu_process.c (qemuProcessWaitForMonitor): Likewise.
2011-02-21 08:27:02 -07:00
..
cpu_generic.c hash: make virHashFree more free-like 2011-02-21 08:27:02 -07:00
cpu_generic.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
cpu_map.c cpu: Add support for overriding path to CPU map XML file 2010-12-01 14:12:54 +01:00
cpu_map.h cpu: Add support for overriding path to CPU map XML file 2010-12-01 14:12:54 +01:00
cpu_map.xml cpu: Add support for Westmere CPU model 2011-01-14 17:28:42 +01:00
cpu_x86_data.h cpu: Unify CPUID data structures 2010-12-14 11:12:58 +01:00
cpu_x86.c cpu: plug memory leak 2011-01-10 16:57:54 -07:00
cpu_x86.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
cpu.c Enable support for nested SVM 2010-10-13 16:45:31 +01:00
cpu.h Enable support for nested SVM 2010-10-13 16:45:31 +01:00