flake_reference_and_fragment_from_string

Function flake_reference_and_fragment_from_string 

Source
pub unsafe extern "C" fn flake_reference_and_fragment_from_string(
    context: *mut c_context,
    fetchSettings: *mut fetchers_settings,
    flakeSettings: *mut flake_settings,
    parseFlags: *mut flake_reference_parse_flags,
    str_: *const c_char,
    strLen: usize,
    flakeReferenceOut: *mut *mut flake_reference,
    fragmentCallback: get_string_callback,
    fragmentCallbackUserData: *mut c_void,
) -> err
Expand description

@brief Parse a URL-like string into a nix_flake_reference.

@param[out] context context – Optional, stores error information @param[in] fetchSettings context – The fetch settings to use @param[in] flakeSettings context – The flake settings to use @param[in] parseFlags context – Specific context and parameters such as base directory

@param[in] str input – The URI-like string to parse @param[in] strLen input – The length of str

@param[out] flakeReferenceOut result – The resulting flake reference @param[in] fragmentCallback result – A callback to call with the fragment part of the URL @param[in] fragmentCallbackUserData result – User data to pass to the fragment callback

@return NIX_OK on success, NIX_ERR on failure