mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 15:32:43 +01:00
Apply suggestions from code review
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
parent
58acb5e49b
commit
8e15130589
2 changed files with 4 additions and 4 deletions
|
|
@ -259,11 +259,11 @@ nix_err nix_store_get_fs_closure(
|
|||
* @param[in] callback The callback to call
|
||||
* @param[in] userdata The userdata to pass to the callback
|
||||
*/
|
||||
nix_err nix_store_drv_from_path(
|
||||
nix_err nix_store_drv_from_store_path(
|
||||
nix_c_context * context,
|
||||
Store * store,
|
||||
const StorePath * path,
|
||||
void (*callback)(void * userdata, const nix_derivation * drv),
|
||||
nix_err (*callback)(nix_c_context * return_ctx, void * userdata, const nix_derivation * drv),
|
||||
void * userdata);
|
||||
|
||||
/**
|
||||
|
|
@ -300,7 +300,7 @@ nix_err nix_store_build_paths(
|
|||
Store * store,
|
||||
const StorePath ** store_paths,
|
||||
unsigned int num_store_paths,
|
||||
void (*callback)(void * userdata, const char * path, const char * result),
|
||||
nix_err (*callback)(nix_c_context * ctx, void * userdata, const char * path, const char * result),
|
||||
void * userdata);
|
||||
|
||||
// cffi end
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ typedef struct nix_store_path_hash_path
|
|||
* @param[in] store_path the path to get the hash from
|
||||
* @return the decoded hash as 20 raw bytes
|
||||
*/
|
||||
nix_store_path_hash_path nix_store_path_hash(const StorePath * store_path);
|
||||
nix_err nix_store_path_hash(const StorePath *store_path, nix_store_path_hash_part * hash_part_out);
|
||||
|
||||
/**
|
||||
* @brief Create a StorePath from its constituent parts (hash and name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue