libvirt/src/conf
Peter Krempa 4eb8e9ae8b util: hash: Rewrite sorting of elements in virHashGetItems
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>
2020-11-06 10:31:57 +01:00
..
backup_conf.c virStorageSourceNew: Abort on failure 2020-09-23 22:37:56 +02:00
backup_conf.h
capabilities.c conf: convert final DIR* to g_autoptr 2020-11-02 22:01:36 -05:00
capabilities.h
checkpoint_conf.c conf: use g_new0 2020-10-08 11:09:27 +02:00
checkpoint_conf.h
cpu_conf.c conf: cpu: use g_new0 2020-10-08 11:09:27 +02:00
cpu_conf.h cpu: Wire in XML validation 2020-10-07 11:26:27 +02:00
device_conf.c virDomainNetFindIdx: add support for CCW addresses 2020-09-24 13:48:31 +02:00
device_conf.h virDomainNetFindIdx: add support for CCW addresses 2020-09-24 13:48:31 +02:00
domain_addr.c util: hash: Remove virHashValueFree 2020-10-22 15:02:46 +02:00
domain_addr.h conf: domain_addr: Refactor hash usage in zpci reservation code 2020-10-22 15:02:46 +02:00
domain_audit.c
domain_audit.h
domain_capabilities.c conf: use g_new0 2020-10-08 11:09:27 +02:00
domain_capabilities.h
domain_conf.c domain_conf: make virDomainDiskSetSource() void 2020-11-05 16:31:16 +01:00
domain_conf.h domain_conf: make virDomainDiskSetSource() void 2020-11-05 16:31:16 +01:00
domain_event.c libvirt: support memory failure event 2020-10-23 09:41:52 +02:00
domain_event.h libvirt: support memory failure event 2020-10-23 09:41:52 +02:00
domain_nwfilter.c conf: nwfilter: Replace 'virNWFilterHashTableCreate' with 'virHashNew' 2020-10-22 15:02:46 +02:00
domain_nwfilter.h
interface_conf.c conf: interface: use g_new0 2020-10-08 11:09:27 +02:00
interface_conf.h
meson.build
moment_conf.c
moment_conf.h
netdev_bandwidth_conf.c conf: Add support for vDPA network devices 2020-10-20 14:46:52 -04:00
netdev_bandwidth_conf.h
netdev_vlan_conf.c conf: use g_new0 2020-10-08 11:09:27 +02:00
netdev_vlan_conf.h
netdev_vport_profile_conf.c conf: use g_new0 2020-10-08 11:09:27 +02:00
netdev_vport_profile_conf.h
network_conf.c conf: network: use g_new0 2020-10-08 11:09:26 +02:00
network_conf.h
network_event.c
network_event.h
networkcommon_conf.c conf: use g_new0 2020-10-08 11:09:27 +02:00
networkcommon_conf.h
node_device_conf.c conf: node_device: cleanup virNodeDevCapCCWParseXML 2020-11-04 19:15:23 +01:00
node_device_conf.h Include vdpa devices in node device list 2020-10-26 02:39:29 -04:00
node_device_event.c
node_device_event.h
node_device_util.c
node_device_util.h
numa_conf.c conf: numa: use g_new0 2020-10-08 11:09:27 +02:00
numa_conf.h
nwfilter_conf.c conf: use g_new0 2020-10-08 11:09:27 +02:00
nwfilter_conf.h
nwfilter_ipaddrmap.c conf: nwfilter: Replace 'virNWFilterHashTableCreate' with 'virHashNew' 2020-10-22 15:02:46 +02:00
nwfilter_ipaddrmap.h
nwfilter_params.c util: hash: Rewrite sorting of elements in virHashGetItems 2020-11-06 10:31:57 +01:00
nwfilter_params.h conf: nwfilter: Replace 'virNWFilterHashTableCreate' with 'virHashNew' 2020-10-22 15:02:46 +02:00
object_event_private.h
object_event.c conf: use g_new0 2020-10-08 11:09:27 +02:00
object_event.h
secret_conf.c conf: use g_new0 2020-10-08 11:09:27 +02:00
secret_conf.h
secret_event.c
secret_event.h
snapshot_conf_priv.h virDomainSnapshotDiskDefFree: Export and register as autoptr func 2020-10-01 09:55:02 +02:00
snapshot_conf.c conf: use g_new0 2020-10-08 11:09:27 +02:00
snapshot_conf.h virDomainSnapshotDiskDefFree: Export and register as autoptr func 2020-10-01 09:55:02 +02:00
storage_adapter_conf.c
storage_adapter_conf.h
storage_capabilities.c
storage_capabilities.h
storage_conf.c conf: storage: use g_new0 2020-10-08 11:09:27 +02:00
storage_conf.h
storage_event.c
storage_event.h
virchrdev.c util: hash: Change type of hash table name/key to 'char' 2020-10-22 15:02:46 +02:00
virchrdev.h
virconftypes.h
virdomaincheckpointobjlist.c conf: use g_new0 2020-10-08 11:09:27 +02:00
virdomaincheckpointobjlist.h
virdomainmomentobjlist.c util: hash: Change type of hash table name/key to 'char' 2020-10-22 15:02:46 +02:00
virdomainmomentobjlist.h backup: Allow for lists of checkpoint objects 2019-07-26 16:48:58 -05:00
virdomainobjlist.c change DIR* int g_autoptr(DIR) where appropriate 2020-11-02 22:01:36 -05:00
virdomainobjlist.h
virdomainsnapshotobjlist.c conf: use g_new0 2020-10-08 11:09:27 +02:00
virdomainsnapshotobjlist.h
virinterfaceobj.c util: hash: Change type of hash table name/key to 'char' 2020-10-22 15:02:46 +02:00
virinterfaceobj.h
virnetworkobj.c remove unnecessary cleanup labels and unused return variables 2020-11-02 22:01:36 -05:00
virnetworkobj.h
virnetworkportdef.c conf: use g_new0 2020-10-08 11:09:27 +02:00
virnetworkportdef.h
virnodedeviceobj.c Include vdpa devices in node device list 2020-10-26 02:39:29 -04:00
virnodedeviceobj.h
virnwfilterbindingdef.c conf: nwfilter: Replace 'virNWFilterHashTableCreate' with 'virHashNew' 2020-10-22 15:02:46 +02:00
virnwfilterbindingdef.h
virnwfilterbindingobj.c
virnwfilterbindingobj.h
virnwfilterbindingobjlist.c change DIR* int g_autoptr(DIR) where appropriate 2020-11-02 22:01:36 -05:00
virnwfilterbindingobjlist.h
virnwfilterobj.c change DIR* int g_autoptr(DIR) where appropriate 2020-11-02 22:01:36 -05:00
virnwfilterobj.h
virsavecookie.c
virsavecookie.h
virsecretobj.c change DIR* int g_autoptr(DIR) where appropriate 2020-11-02 22:01:36 -05:00
virsecretobj.h
virstorageobj.c change DIR* int g_autoptr(DIR) where appropriate 2020-11-02 22:01:36 -05:00
virstorageobj.h