-
-
Couldn't load subscription status.
- Fork 1.7k
libstore-c: add nix_store_get_fs_closure #14025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -245,6 +245,30 @@ void nix_derivation_free(nix_derivation * drv); | |
| */ | ||
| nix_err nix_store_copy_closure(nix_c_context * context, Store * srcStore, Store * dstStore, StorePath * path); | ||
|
|
||
| /** | ||
| * @brief Gets the closure of a specific store path | ||
| * | ||
| * @note The callback borrows each StorePath only for the duration of the call. | ||
| * | ||
| * @param[out] context Optional, stores error information | ||
| * @param[in] store nix store reference | ||
| * @param[in] store_path The path to compute from | ||
| * @param[in] flip_direction | ||
| * @param[in] include_outputs | ||
| * @param[in] include_derivers | ||
| * @param[in] callback The function to call for every store path, in no particular order | ||
| * @param[in] userdata The userdata to pass to the callback | ||
| */ | ||
| nix_err nix_store_get_fs_closure( | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it would be better to put this above There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
| nix_c_context * context, | ||
| Store * store, | ||
| const StorePath * store_path, | ||
| bool flip_direction, | ||
| bool include_outputs, | ||
| bool include_derivers, | ||
| void * userdata, | ||
| void (*callback)(nix_c_context * context, void * userdata, const StorePath * store_path)); | ||
|
|
||
| // cffi end | ||
| #ifdef __cplusplus | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@roberth is the right thing to just copy the doc from the C++ function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the docs are good, then that's fine