Nix 2.29.0
Nix, the purely functional package manager: C API (experimental)
|
Functions | |
nix_err | nix_setting_get (nix_c_context *context, const char *key, nix_get_string_callback callback, void *user_data) |
Retrieves a setting from the nix global configuration. | |
nix_err | nix_setting_set (nix_c_context *context, const char *key, const char *value) |
Sets a setting in the nix global configuration. |
nix_err nix_setting_get | ( | nix_c_context * | context, |
const char * | key, | ||
nix_get_string_callback | callback, | ||
void * | user_data ) |
Retrieves a setting from the nix global configuration.
This function requires nix_libutil_init() to be called at least once prior to its use.
[out] | context | optional, Stores error information |
[in] | key | The key of the setting to retrieve. |
[in] | callback | Called with the setting value. |
[in] | user_data | optional, arbitrary data, passed to the callback when it's called. |
nix_err nix_setting_set | ( | nix_c_context * | context, |
const char * | key, | ||
const char * | value ) |
Sets a setting in the nix global configuration.
Use "extra-<setting name>" to append to the setting's value.
Settings only apply for new States. Call nix_plugins_init() when you are done with the settings to load any plugins.
[out] | context | optional, Stores error information |
[in] | key | The key of the setting to set. |
[in] | value | The value to set for the setting. |