[][src]Function lxc_sys2::list_active_containers

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

Get a list of active 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