2023-07-14 16:53:30 +03:00
|
|
|
#ifndef NIX_API_EXPR_INTERNAL_H
|
|
|
|
#define NIX_API_EXPR_INTERNAL_H
|
|
|
|
|
2023-08-11 12:49:10 +03:00
|
|
|
#include "eval.hh"
|
|
|
|
#include "attr-set.hh"
|
2024-02-27 23:08:00 +02:00
|
|
|
#include "nix_api_value.h"
|
|
|
|
|
2024-01-10 12:58:35 +02:00
|
|
|
struct EvalState
|
2023-08-28 17:45:02 +03:00
|
|
|
{
|
|
|
|
nix::EvalState state;
|
2023-07-14 16:53:30 +03:00
|
|
|
};
|
|
|
|
|
2023-08-28 17:45:02 +03:00
|
|
|
struct BindingsBuilder
|
|
|
|
{
|
|
|
|
nix::BindingsBuilder builder;
|
2023-07-27 16:58:18 +03:00
|
|
|
};
|
|
|
|
|
2024-02-27 23:08:00 +02:00
|
|
|
struct ListBuilder
|
|
|
|
{
|
2024-03-28 20:02:01 +02:00
|
|
|
nix::ListBuilder builder;
|
2024-02-27 23:08:00 +02:00
|
|
|
};
|
|
|
|
|
2024-02-25 01:28:04 +02:00
|
|
|
struct nix_string_return
|
|
|
|
{
|
|
|
|
std::string str;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct nix_printer
|
|
|
|
{
|
|
|
|
std::ostream & s;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct nix_string_context
|
|
|
|
{
|
|
|
|
nix::NixStringContext & ctx;
|
|
|
|
};
|
|
|
|
|
2024-04-05 17:08:18 +03:00
|
|
|
struct nix_realised_string
|
|
|
|
{
|
|
|
|
std::string str;
|
|
|
|
std::vector<StorePath> storePaths;
|
|
|
|
};
|
|
|
|
|
2023-07-14 16:53:30 +03:00
|
|
|
#endif // NIX_API_EXPR_INTERNAL_H
|