mirror of
https://github.com/NixOS/nix.git
synced 2025-12-03 23:51:00 +01:00
nix_api_store: add userdata param to nix_store_build
This commit is contained in:
parent
1e583c4ebd
commit
1777e4a5bb
2 changed files with 8 additions and 3 deletions
|
|
@ -98,10 +98,13 @@ bool nix_store_is_valid_path(nix_c_context *context, Store *store,
|
|||
* @param[out] context Optional, stores error information
|
||||
* @param[in] store nix store reference
|
||||
* @param[in] path Path to build
|
||||
* @param[in] userdata data to pass to every callback invocation
|
||||
* @param[in] cb called for every built output
|
||||
*/
|
||||
nix_err nix_store_build(nix_c_context *context, Store *store, StorePath *path,
|
||||
void (*cb)(const char *outname, const char *out));
|
||||
void *userdata,
|
||||
void (*cb)(void *userdata, const char *outname,
|
||||
const char *out));
|
||||
|
||||
/**
|
||||
* @brief get the version of a nix store
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue