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:
parent
061140fc8f
commit
2bb609bce2
5 changed files with 17 additions and 17 deletions
|
@ -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 (...) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue