]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Remove virsysfs and instead enhance virFileReadValue* functions
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 5 Apr 2017 14:13:52 +0000 (16:13 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 9 May 2017 11:12:40 +0000 (13:12 +0200)
commit7008e1086961f61ca26365b2b7500132ab98658d
tree2799bdd61a3ca23268dc0b5839af5fa8361c31ae
parentae60ea48bc57e9a41b954e0d18886a95c366d521
util: Remove virsysfs and instead enhance virFileReadValue* functions

It is no longer needed thanks to the great virfilewrapper.c.  And this
way we don't have to add a new set of functions for each prefixed
path.

While on that, add two functions that weren't there before, string and
scaled integer reading ones.  Also increase the length of the string
being read by one to accompany for the optional newline at the
end (i.e. change INT_STRLEN_BOUND to INT_BUFSIZE_BOUND).

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
13 files changed:
src/Makefile.am
src/conf/capabilities.c
src/libvirt_private.syms
src/util/virfile.c
src/util/virfile.h
src/util/virhostcpu.c
src/util/virsysfs.c [deleted file]
src/util/virsysfs.h [deleted file]
src/util/virsysfspriv.h [deleted file]
tests/Makefile.am
tests/vircaps2xmltest.c
tests/virhostcputest.c
tests/virnumamock.c