Function nix_store_get_version

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

get the version of a nix store. If the store doesn’t have a version (like the dummy store), returns an empty string.

§Arguments

  • context [out] - Optional, stores error information
  • store [in] - nix store reference
  • callback [in] - Called with the version.
  • 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.