1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-30 07:33: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

@ -62,7 +62,7 @@ nix_err nix_store_get_uri(nix_c_context * context, Store * store, void * callbac
context->last_err_code = NIX_OK;
try {
auto res = store->ptr->getUri();
return call_nix_observe_string(res, callback, user_data);
return call_nix_get_string_callback(res, callback, user_data);
}
NIXC_CATCH_ERRS
}
@ -73,7 +73,7 @@ nix_err nix_store_get_version(nix_c_context * context, Store * store, void * cal
context->last_err_code = NIX_OK;
try {
auto res = store->ptr->getVersion();
return call_nix_observe_string(res.value_or(""), callback, user_data);
return call_nix_get_string_callback(res.value_or(""), callback, user_data);
}
NIXC_CATCH_ERRS
}