|
Nix 2.35.2
Nix, the purely functional package manager: C API (experimental)
|
C bindings for nix libmain. More...
Files | |
| file | /builddir/build/BUILD/nix-2.35.2-build/nix-2.35.2/src/libmain-c/nix_api_main.h |
| Main entry for the libmain C bindings. | |
Functions | |
| nix_err | nix_init_plugins (nix_c_context *context) |
| Loads the plugins specified in Nix's plugin-files setting. | |
| nix_err | nix_set_log_format (nix_c_context *context, const char *format) |
| Sets the log format. | |
C bindings for nix libmain.
libmain has misc utilities for CLI commands
| nix_err nix_init_plugins | ( | nix_c_context * | context | ) |
Loads the plugins specified in Nix's plugin-files setting.
Call this once, after calling your desired init functions and setting relevant settings.
| [out] | context | Optional, stores error information |
| nix_err nix_set_log_format | ( | nix_c_context * | context, |
| const char * | format ) |
Sets the log format.
| [out] | context | Optional, stores error information |
| [in] | format | The string name of the format. |