Re: [libvirt] [PATCH 1/9] Add helpers for resolving path to resources in build tree

2014-04-25 Thread Daniel P. Berrange
On Fri, Apr 25, 2014 at 12:51:54AM +0530, Nehal J Wani wrote: > > + * virFileFindResourceFull: > > + * @filename: libvirt distributed filename without any path > > + * @prefix: optional string to prepend to filename > > + * @suffix: optional string to append to filename > > + * @builddir: location

Re: [libvirt] [PATCH 1/9] Add helpers for resolving path to resources in build tree

2014-04-24 Thread Eric Blake
On 04/24/2014 10:05 AM, Daniel P. Berrange wrote: > 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 passi

Re: [libvirt] [PATCH 1/9] Add helpers for resolving path to resources in build tree

2014-04-24 Thread Eric Blake
On 04/24/2014 01:21 PM, Nehal J Wani wrote: >> + * virFileFindResourceFull: >> + * @filename: libvirt distributed filename without any path >> + * @prefix: optional string to prepend to filename >> + * @suffix: optional string to append to filename >> + * @builddir: location of the binary in the so

Re: [libvirt] [PATCH 1/9] Add helpers for resolving path to resources in build tree

2014-04-24 Thread Nehal J Wani
> + * virFileFindResourceFull: > + * @filename: libvirt distributed filename without any path > + * @prefix: optional string to prepend to filename > + * @suffix: optional string to append to filename > + * @builddir: location of the binary in the source tree build tree > + * @installdir: location

[libvirt] [PATCH 1/9] Add helpers for resolving path to resources in build tree

2014-04-24 Thread Daniel P. Berrange
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 libto