[][src]Function lxc_sys2::lxc_get_wait_states

pub unsafe extern "C" fn lxc_get_wait_states(
    states: *mut *const c_char
) -> c_int

Obtain a list of all container states.


Parameters

states out states Caller-allocated array to hold all states (may be NULL).


Returns

Number of container states.


note: Passing NULL for states allows the caller to first calculate how many states there are before calling the function again, the second time providing a suitably-sized array to store the static string pointers in.

note: The states array should be freed by the caller, but not the strings the elements point to.


version: 1.0.0