1
0
Fork 0
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:
Yorick van Pelt 2023-07-28 16:21:29 +02:00 committed by José Luis Lafuente
parent ada2af4f88
commit 866558af34
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A
4 changed files with 43 additions and 26 deletions

View file

@ -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