Function nix_store_parse_path

Source
pub unsafe extern "C" fn nix_store_parse_path(
    context: *mut nix_c_context,
    store: *mut Store,
    path: *const c_char,
) -> *mut StorePath
Expand description

Parse a Nix store path into a StorePath

Note Don’t forget to free this path using nix_store_path_free()!

§Arguments

  • context [out] - Optional, stores error information
  • store [in] - nix store reference
  • path [in] - Path string to parse, copied

§Returns

owned store path, NULL on error