]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Add virsysfs for handling sysfs files
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 7 Mar 2017 09:02:46 +0000 (10:02 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 27 Mar 2017 11:13:29 +0000 (13:13 +0200)
commita7b902c082ae2b33cc9d109925e54df48ca33e45
treedf6d3d5d1dcc596f5508e1290b7b9ce69c0b955a
parent15b5e4636421276a22b042a97afefe57ff020c6f
util: Add virsysfs for handling sysfs files

By using this we are able to easily switch the sysfs path being
used (fake it).  This will not only help tests in the future but can
be also used from files where the code is duplicated currently.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/Makefile.am
src/libvirt_private.syms
src/util/virsysfs.c [new file with mode: 0644]
src/util/virsysfs.h [new file with mode: 0644]
src/util/virsysfspriv.h [new file with mode: 0644]