1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 14:53:16 +02:00

C API: rename nix_observe_string -> nix_get_string_callback

This commit is contained in:
José Luis Lafuente 2024-03-29 10:01:16 +01:00
parent 061140fc8f
commit 2bb609bce2
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A
5 changed files with 17 additions and 17 deletions

View file

@ -20,16 +20,16 @@ nix_err nix_context_error(nix_c_context * context);
/**
* Internal use only.
*
* Helper to invoke nix_observe_string
* Helper to invoke nix_get_string_callback
* @param context optional, the context to store errors in if this function
* fails
* @param str The string to observe
* @param callback Called with the observed string.
* @param user_data optional, arbitrary data, passed to the callback when it's called.
* @return NIX_OK if there were no errors.
* @see nix_observe_string
* @see nix_get_string_callback
*/
nix_err call_nix_observe_string(const std::string str, void * callback, void * user_data);
nix_err call_nix_get_string_callback(const std::string str, void * callback, void * user_data);
#define NIXC_CATCH_ERRS \
catch (...) \