]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: cgroup: Use GHashTable instead of virHashTable
authorPeter Krempa <pkrempa@redhat.com>
Tue, 20 Oct 2020 15:01:51 +0000 (17:01 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 22 Oct 2020 13:02:46 +0000 (15:02 +0200)
commitb16629f00c7dab1f77d451e5bb5c758abc98cd5c
tree4ef23e405a59d622ee231e4e767dbfcf1b196260
parent2751b9757b6941e39b47cc837efb72a7d1487f1e
util: cgroup: Use GHashTable instead of virHashTable

Rewrite using GHashTable which already has interfaces for using a number
as hash key. Glib's implementation doesn't copy the key by default, so
we need to allocate it, but overal the interface is more suited for this
case.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/util/vircgroup.c
src/util/vircgroupbackend.h
src/util/vircgrouppriv.h
src/util/vircgroupv1.c
src/util/vircgroupv2.c