1
1
Fork 0
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:
John Ericson 2025-11-14 00:51:50 -05:00 committed by GitHub
parent 58acb5e49b
commit 8e15130589
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -259,11 +259,11 @@ nix_err nix_store_get_fs_closure(
* @param[in] callback The callback to call * @param[in] callback The callback to call
* @param[in] userdata The userdata to pass to the callback * @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, nix_c_context * context,
Store * store, Store * store,
const StorePath * path, 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); void * userdata);
/** /**
@ -300,7 +300,7 @@ nix_err nix_store_build_paths(
Store * store, Store * store,
const StorePath ** store_paths, const StorePath ** store_paths,
unsigned int num_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); void * userdata);
// cffi end // cffi end

View file

@ -65,7 +65,7 @@ typedef struct nix_store_path_hash_path
* @param[in] store_path the path to get the hash from * @param[in] store_path the path to get the hash from
* @return the decoded hash as 20 raw bytes * @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) * @brief Create a StorePath from its constituent parts (hash and name)