[][src]Function lxc_sys2::list_defined_containers

pub unsafe extern "C" fn list_defined_containers(
    lxcpath: *const c_char,
    names: *mut *mut *mut c_char,
    cret: *mut *mut *mut lxc_container
) -> *const c_int

Get a list of defined containers in a lxcpath.


Parameters

lxcpath lxcpath under which to look.

names If not NULL, then a list of container names will be returned here.

cret If not NULL, then a list of lxc_containers will be returned here.


Returns

Number of containers found, or -1 on error.


note: Values returned in cret are sorted by container name.


version: 1.0.0