mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-31 18:33:11 +00:00
4eb8e9ae8b
All but one of the callers either use the list in arbitrary order or sorted by key. Rewrite the function so that it supports sorting by key natively and make it return the element count. This in turn allows to rewrite the only caller to sort by value internally. This allows to remove multiple sorting functions which were sorting by key and the function will be also later reused for some hash operations internally. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Matt Coleman <matt@datto.com> |
||
---|---|---|
.. | ||
backup_conf.c | ||
backup_conf.h | ||
capabilities.c | ||
capabilities.h | ||
checkpoint_conf.c | ||
checkpoint_conf.h | ||
cpu_conf.c | ||
cpu_conf.h | ||
device_conf.c | ||
device_conf.h | ||
domain_addr.c | ||
domain_addr.h | ||
domain_audit.c | ||
domain_audit.h | ||
domain_capabilities.c | ||
domain_capabilities.h | ||
domain_conf.c | ||
domain_conf.h | ||
domain_event.c | ||
domain_event.h | ||
domain_nwfilter.c | ||
domain_nwfilter.h | ||
interface_conf.c | ||
interface_conf.h | ||
meson.build | ||
moment_conf.c | ||
moment_conf.h | ||
netdev_bandwidth_conf.c | ||
netdev_bandwidth_conf.h | ||
netdev_vlan_conf.c | ||
netdev_vlan_conf.h | ||
netdev_vport_profile_conf.c | ||
netdev_vport_profile_conf.h | ||
network_conf.c | ||
network_conf.h | ||
network_event.c | ||
network_event.h | ||
networkcommon_conf.c | ||
networkcommon_conf.h | ||
node_device_conf.c | ||
node_device_conf.h | ||
node_device_event.c | ||
node_device_event.h | ||
node_device_util.c | ||
node_device_util.h | ||
numa_conf.c | ||
numa_conf.h | ||
nwfilter_conf.c | ||
nwfilter_conf.h | ||
nwfilter_ipaddrmap.c | ||
nwfilter_ipaddrmap.h | ||
nwfilter_params.c | ||
nwfilter_params.h | ||
object_event_private.h | ||
object_event.c | ||
object_event.h | ||
secret_conf.c | ||
secret_conf.h | ||
secret_event.c | ||
secret_event.h | ||
snapshot_conf_priv.h | ||
snapshot_conf.c | ||
snapshot_conf.h | ||
storage_adapter_conf.c | ||
storage_adapter_conf.h | ||
storage_capabilities.c | ||
storage_capabilities.h | ||
storage_conf.c | ||
storage_conf.h | ||
storage_event.c | ||
storage_event.h | ||
virchrdev.c | ||
virchrdev.h | ||
virconftypes.h | ||
virdomaincheckpointobjlist.c | ||
virdomaincheckpointobjlist.h | ||
virdomainmomentobjlist.c | ||
virdomainmomentobjlist.h | ||
virdomainobjlist.c | ||
virdomainobjlist.h | ||
virdomainsnapshotobjlist.c | ||
virdomainsnapshotobjlist.h | ||
virinterfaceobj.c | ||
virinterfaceobj.h | ||
virnetworkobj.c | ||
virnetworkobj.h | ||
virnetworkportdef.c | ||
virnetworkportdef.h | ||
virnodedeviceobj.c | ||
virnodedeviceobj.h | ||
virnwfilterbindingdef.c | ||
virnwfilterbindingdef.h | ||
virnwfilterbindingobj.c | ||
virnwfilterbindingobj.h | ||
virnwfilterbindingobjlist.c | ||
virnwfilterbindingobjlist.h | ||
virnwfilterobj.c | ||
virnwfilterobj.h | ||
virsavecookie.c | ||
virsavecookie.h | ||
virsecretobj.c | ||
virsecretobj.h | ||
virstorageobj.c | ||
virstorageobj.h |