libvirt/src/nwfilter
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
..
xml example: add ipv6 filters examples 2020-11-04 17:21:45 +01:00
meson.build src/nwfilter/nwfilter_driver: convert to use GLib DBus 2020-09-17 18:20:28 +02:00
nwfilter_dhcpsnoop.c util: hash: Change type of hash table name/key to 'char' 2020-10-22 15:02:46 +02:00
nwfilter_dhcpsnoop.h src/nwfilter: use #pragma once in headers 2019-06-19 17:12:30 +02:00
nwfilter_driver.c src/nwfilter/nwfilter_driver: convert to use GLib DBus 2020-09-17 18:20:28 +02:00
nwfilter_driver.h src/nwfilter: use #pragma once in headers 2019-06-19 17:12:30 +02:00
nwfilter_ebiptables_driver.c util: hash: Rewrite sorting of elements in virHashGetItems 2020-11-06 10:31:57 +01:00
nwfilter_ebiptables_driver.h src/nwfilter: use #pragma once in headers 2019-06-19 17:12:30 +02:00
nwfilter_gentech_driver.c util: hash: Change type of hash table name/key to 'char' 2020-10-22 15:02:46 +02:00
nwfilter_gentech_driver.h src/nwfilter: use #pragma once in headers 2019-06-19 17:12:30 +02:00
nwfilter_learnipaddr.c util: hash: Remove virHashValueFree 2020-10-22 15:02:46 +02:00
nwfilter_learnipaddr.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
nwfilter_tech_driver.h src/nwfilter: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virtnwfilterd.init.in configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
virtnwfilterd.service.in systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00
virtnwfilterd.sysconf systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00