Nix
2.35.2
Nix, the purely functional package manager: C API (experimental)
Toggle main menu visibility
Loading...
Searching...
No Matches
nix_api_main.h
Go to the documentation of this file.
1
#ifndef NIX_API_MAIN_H
2
#define NIX_API_MAIN_H
13
14
#include "
nix_api_util.h
"
15
#include <stdbool.h>
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
// cffi start
21
31
nix_err
nix_init_plugins
(
nix_c_context
* context);
32
39
nix_err
nix_set_log_format
(
nix_c_context
* context,
const
char
* format);
40
41
// cffi end
42
#ifdef __cplusplus
43
}
44
#endif
48
#endif
// NIX_API_MAIN_H
nix_err
nix_err
Type for error codes in the Nix system.
Definition
nix_api_util.h:59
nix_init_plugins
nix_err nix_init_plugins(nix_c_context *context)
Loads the plugins specified in Nix's plugin-files setting.
nix_set_log_format
nix_err nix_set_log_format(nix_c_context *context, const char *format)
Sets the log format.
nix_api_util.h
Main entry for the libutil C bindings.
nix_c_context
This object stores error state.
src
libmain-c
nix_api_main.h
Generated by
1.17.0