]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: Move lxcContainerAvailable to virprocess
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 11 Jan 2017 09:23:39 +0000 (10:23 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 11 Jan 2017 17:02:35 +0000 (18:02 +0100)
commit083fcd06d3be105073ad765b48979ee68e16bbaa
tree407d48f949d93a07aa5045aaf3db36246d481cae
parent2ff8c30548c73e7eb892c89795e74b60cacd519d
lxc: Move lxcContainerAvailable to virprocess

Other drivers (like qemu) would like to know if the namespaces
are available therefore it makes sense to move this function to
a shared module.

At the same time, this function had some default namespaces that
are checked with every call. It is not necessary - let callers
pass just those namespaces they are interested in.

With the move the function is renamed to
virProcessNamespaceAvailable.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/libvirt_private.syms
src/lxc/lxc_container.c
src/lxc/lxc_container.h
src/lxc/lxc_driver.c
src/util/virprocess.c
src/util/virprocess.h