]> xenbits.xensource.com Git - libvirt.git/commit
nwfilter: use virFindFileInPath for needed CLI tools
authorStefan Berger <stefanb@us.ibm.com>
Wed, 14 Apr 2010 10:29:55 +0000 (06:29 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Wed, 14 Apr 2010 10:29:55 +0000 (06:29 -0400)
commit274f09cbc5ed8be00127380327d9525b852a2d1d
treee0a70534737c551d10de8ef2de28ab450dd35d30
parent71057b1c58620aa0d0356058d998258f2d8d74e0
nwfilter: use virFindFileInPath for needed CLI tools

I am getting rid of determining the path to necessary CLI tools at
compile time. Instead, now the firewall driver has an initialization
function that uses virFindFileInPath() to determine the path to
necessary CLI tools and a shutdown function to free allocated memory.
The rest of the patch mostly deals with availability of the CLI tools
and to not call certain code blocks if a tool is not available and that
strings now have to be built slightly differently.
configure.ac
src/conf/nwfilter_conf.h
src/nwfilter/nwfilter_driver.c
src/nwfilter/nwfilter_ebiptables_driver.c
src/nwfilter/nwfilter_gentech_driver.c
src/nwfilter/nwfilter_gentech_driver.h