]> xenbits.xensource.com Git - libvirt.git/commit
Add helpers for resolving path to resources in build tree
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 24 Apr 2014 14:05:42 +0000 (15:05 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 25 Apr 2014 10:42:28 +0000 (11:42 +0100)
commit63a92e72204f57f8e8b31a3fc4b7bb0bf375e0c5
treea78eb4bbc42a77f210324381c936f44092339340
parent18dc77d3b59b2e8e50f1b0c5638dd78d5be4a625
Add helpers for resolving path to resources in build tree

Add virFileFindResource which will try to locate files
in the local build tree if the calling binary (eg libvirtd or
test suite) is being run from the build tree. The corresponding
virFileActivateDirOverride should be called at startup passing
in argv[0]. This will be examined for evidence of libtool magic
binary prefix / sub-directory in order to activate the override.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/Makefile.am
src/libvirt_private.syms
src/util/virfile.c
src/util/virfile.h