Nix 2.28.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
17extern "C" {
18#endif
19// cffi start
20
21typedef struct nix_flake_settings nix_flake_settings;
22
23// Function prototypes
30nix_flake_settings * nix_flake_settings_new(nix_c_context * context);
31
35void nix_flake_settings_free(nix_flake_settings * settings);
36
46 nix_c_context * context, nix_flake_settings * settings, nix_eval_state_builder * builder);
47
48#ifdef __cplusplus
49} // extern "C"
50#endif
51
52#endif
nix_err
Type for error codes in the Nix system.
Definition nix_api_util.h:59
struct nix_eval_state_builder nix_eval_state_builder
Builder for EvalState.
Definition nix_api_expr.h:36
nix_err nix_flake_settings_add_to_eval_state_builder(nix_c_context *context, nix_flake_settings *settings, nix_eval_state_builder *builder)
Initialize a nix_flake_settings to contain builtins.getFlake and potentially more.
void nix_flake_settings_free(nix_flake_settings *settings)
Release the resources associated with a nix_flake_settings.
nix_flake_settings * nix_flake_settings_new(nix_c_context *context)
Main entry for the libexpr C bindings.
Main entry for the libstore C bindings.
Main entry for the libutil C bindings.
This object stores error state.