Function nix_store_get_storedir

Source
pub unsafe extern "C" fn nix_store_get_storedir(
    context: *mut nix_c_context,
    store: *mut Store,
    callback: nix_get_string_callback,
    user_data: *mut c_void,
) -> nix_err
Expand description

get the storeDir of a Nix store, typically "/nix/store"

§Arguments

  • context [out] - Optional, stores error information
  • store [in] - nix store reference
  • callback [in] - Called with the URI.
  • user_data [in] - optional, arbitrary data, passed to the callback when it’s called.

§See also

nix_get_string_callback

§Returns

error code, NIX_OK on success.