mirror of
https://github.com/NixOS/nix
synced 2025-06-26 07:31:15 +02:00
nix_api_expr: add error handling to incref, decref
This commit is contained in:
parent
ada2af4f88
commit
866558af34
4 changed files with 43 additions and 26 deletions
|
@ -120,13 +120,13 @@ void nix_state_free(State *state);
|
|||
*
|
||||
* @param[in] object The object to keep alive
|
||||
*/
|
||||
void nix_gc_incref(const void *);
|
||||
nix_err nix_gc_incref(nix_c_context *, const void *);
|
||||
/**
|
||||
* @brief Decrease the GC refcount
|
||||
*
|
||||
* @param[in] object The object to stop referencing
|
||||
*/
|
||||
void nix_gc_decref(const void *);
|
||||
nix_err nix_gc_decref(nix_c_context *, const void *);
|
||||
|
||||
/**
|
||||
* @brief Trigger the garbage collector manually
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue