Nix
2.26.3
Nix, the purely functional package manager: C API (experimental)
Loading...
Searching...
No Matches
nix_api_flake.h
Go to the documentation of this file.
1
#ifndef NIX_API_FLAKE_H
2
#define NIX_API_FLAKE_H
11
12
#include "
nix_api_store.h
"
13
#include "
nix_api_util.h
"
14
#include "
nix_api_expr.h
"
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
// cffi start
20
21
typedef
struct
nix_flake_settings nix_flake_settings;
22
23
// Function prototypes
30
nix_flake_settings *
nix_flake_settings_new
(
nix_c_context
* context);
31
35
void
nix_flake_settings_free
(nix_flake_settings * settings);
36
40
nix_err
nix_flake_init_global
(
nix_c_context
* context, nix_flake_settings * settings);
41
42
#ifdef __cplusplus
43
}
// extern "C"
44
#endif
45
46
#endif
nix_err
nix_err
Type for error codes in the Nix system.
Definition
nix_api_util.h:59
nix_flake_init_global
nix_err nix_flake_init_global(nix_c_context *context, nix_flake_settings *settings)
Register Flakes support process-wide.
nix_flake_settings_free
void nix_flake_settings_free(nix_flake_settings *settings)
Release the resources associated with a nix_flake_settings.
nix_flake_settings_new
nix_flake_settings * nix_flake_settings_new(nix_c_context *context)
nix_api_expr.h
Main entry for the libexpr C bindings.
nix_api_store.h
Main entry for the libstore C bindings.
nix_api_util.h
Main entry for the libutil C bindings.
nix_c_context
This object stores error state.
src
libflake-c
nix_api_flake.h
Generated by
1.13.2