]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virfile: Add helpers for reading simple values
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 7 Mar 2017 09:36:54 +0000 (10:36 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 27 Mar 2017 11:13:29 +0000 (13:13 +0200)
commit9fdd077de7f13cf1b03e26cf01f52983fd97ad5c
tree2caa17f8f63a923715761ae66e9d966d3adc510e
parent5b5fee00fd3926094766be49f1e656df51afc84d
virfile: Add helpers for reading simple values

These helpers are doing just a read and covert the value, but they
properly size the read limit, handle additional whitespace characters,
and unify error reporting.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/libvirt_private.syms
src/util/virfile.c
src/util/virfile.h