mirror of
https://github.com/NixOS/nix
synced 2025-06-28 05:21:16 +02:00
C API: Use nix_get_string_callback
typedef
This commit is contained in:
parent
76444a3958
commit
774e7213e8
6 changed files with 19 additions and 62 deletions
|
@ -175,11 +175,7 @@ nix_err nix_libutil_init(nix_c_context * context);
|
|||
* @return NIX_ERR_KEY if the setting is unknown, or NIX_OK if the setting was retrieved
|
||||
* successfully.
|
||||
*/
|
||||
nix_err nix_setting_get(
|
||||
nix_c_context * context,
|
||||
const char * key,
|
||||
void (*callback)(const char * start, unsigned int n, void * user_data),
|
||||
void * user_data);
|
||||
nix_err nix_setting_get(nix_c_context * context, const char * key, nix_get_string_callback callback, void * user_data);
|
||||
|
||||
/**
|
||||
* @brief Sets a setting in the nix global configuration.
|
||||
|
@ -246,10 +242,7 @@ const char * nix_err_msg(nix_c_context * context, const nix_c_context * ctx, uns
|
|||
* @return NIX_OK if there were no errors, an error code otherwise.
|
||||
*/
|
||||
nix_err nix_err_info_msg(
|
||||
nix_c_context * context,
|
||||
const nix_c_context * read_context,
|
||||
void (*callback)(const char * start, unsigned int n, void * user_data),
|
||||
void * user_data);
|
||||
nix_c_context * context, const nix_c_context * read_context, nix_get_string_callback callback, void * user_data);
|
||||
|
||||
/**
|
||||
* @brief Retrieves the error name from a context.
|
||||
|
@ -268,10 +261,7 @@ nix_err nix_err_info_msg(
|
|||
* @return NIX_OK if there were no errors, an error code otherwise.
|
||||
*/
|
||||
nix_err nix_err_name(
|
||||
nix_c_context * context,
|
||||
const nix_c_context * read_context,
|
||||
void (*callback)(const char * start, unsigned int n, void * user_data),
|
||||
void * user_data);
|
||||
nix_c_context * context, const nix_c_context * read_context, nix_get_string_callback callback, void * user_data);
|
||||
|
||||
/**
|
||||
* @brief Retrieves the most recent error code from a nix_c_context
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue