store_get_fs_closure

Function store_get_fs_closure 

Source
pub unsafe extern "C" fn store_get_fs_closure(
    context: *mut c_context,
    store: *mut Store,
    store_path: *const StorePath,
    flip_direction: bool,
    include_outputs: bool,
    include_derivers: bool,
    userdata: *mut c_void,
    callback: Option<unsafe extern "C" fn(context: *mut c_context, userdata: *mut c_void, store_path: *const StorePath)>,
) -> err
Expand description

@brief Gets the closure of a specific store path

@note The callback borrows each StorePath only for the duration of the call.

@param[out] context Optional, stores error information @param[in] store nix store reference @param[in] store_path The path to compute from @param[in] flip_direction If false, compute the forward closure (paths referenced by any store path in the closure). If true, compute the backward closure (paths that reference any store path in the closure). @param[in] include_outputs If flip_direction is false: for any derivation in the closure, include its outputs. If flip_direction is true: for any output in the closure, include derivations that produce it. @param[in] include_derivers If flip_direction is false: for any output in the closure, include the derivation that produced it. If flip_direction is true: for any derivation in the closure, include its outputs. @param[in] callback The function to call for every store path, in no particular order @param[in] userdata The userdata to pass to the callback