Function list_all_containers

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

Get a complete list of all containers for a given lxcpath.


Parameters

lxcpath Full LXCPATH path to consider.

names out Dynamically-allocated array of container names.

cret out Dynamically-allocated list of containers.


Returns Number of containers found, or -1 on error.


note: Some of the containers may not be “defined”.

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

note: names and cret may both (or either) be specified as NULL.

note: names and cret must be freed by the caller.


version: 1.0.0