1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-15 15:02:42 +01:00

Separate headers from source files

The short answer for why we need to do this is so we can consistently do
`#include "nix/..."`. Without this change, there are ways to still make
that work, but they are hacky, and they have downsides such as making it
harder to make sure headers from the wrong Nix library (e..g.
`libnixexpr` headers in `libnixutil`) aren't being used.

The C API alraedy used `nix_api_*`, so its headers are *not* put in
subdirectories accordingly.

Progress on #7876

We resisted doing this for a while because it would be annoying to not
have the header source file pairs close by / easy to change file
path/name from one to the other. But I am ameliorating that with
symlinks in the next commit.
This commit is contained in:
John Ericson 2025-02-20 14:15:07 -05:00
parent 326548bae5
commit f3e1c47f47
664 changed files with 2974 additions and 2913 deletions

View file

@ -1,18 +1,18 @@
#include "archive.hh"
#include "binary-cache-store.hh"
#include "compression.hh"
#include "derivations.hh"
#include "source-accessor.hh"
#include "globals.hh"
#include "nar-info.hh"
#include "sync.hh"
#include "remote-fs-accessor.hh"
#include "nar-info-disk-cache.hh"
#include "nar-accessor.hh"
#include "thread-pool.hh"
#include "callback.hh"
#include "signals.hh"
#include "archive.hh"
#include "nix/archive.hh"
#include "nix/binary-cache-store.hh"
#include "nix/compression.hh"
#include "nix/derivations.hh"
#include "nix/source-accessor.hh"
#include "nix/globals.hh"
#include "nix/nar-info.hh"
#include "nix/sync.hh"
#include "nix/remote-fs-accessor.hh"
#include "nix/nar-info-disk-cache.hh"
#include "nix/nar-accessor.hh"
#include "nix/thread-pool.hh"
#include "nix/callback.hh"
#include "nix/signals.hh"
#include "nix/archive.hh"
#include <chrono>
#include <future>

View file

@ -1,4 +1,4 @@
#include "build-result.hh"
#include "nix/build-result.hh"
namespace nix {

View file

@ -1,22 +1,22 @@
#include "derivation-goal.hh"
#include "nix/build/derivation-goal.hh"
#ifndef _WIN32 // TODO enable build hook on Windows
# include "hook-instance.hh"
# include "nix/build/hook-instance.hh"
#endif
#include "processes.hh"
#include "config-global.hh"
#include "worker.hh"
#include "builtins.hh"
#include "builtins/buildenv.hh"
#include "references.hh"
#include "finally.hh"
#include "util.hh"
#include "archive.hh"
#include "compression.hh"
#include "common-protocol.hh"
#include "common-protocol-impl.hh"
#include "topo-sort.hh"
#include "callback.hh"
#include "local-store.hh" // TODO remove, along with remaining downcasts
#include "nix/processes.hh"
#include "nix/config-global.hh"
#include "nix/build/worker.hh"
#include "nix/builtins.hh"
#include "nix/builtins/buildenv.hh"
#include "nix/references.hh"
#include "nix/finally.hh"
#include "nix/util.hh"
#include "nix/archive.hh"
#include "nix/compression.hh"
#include "nix/common-protocol.hh"
#include "nix/common-protocol-impl.hh"
#include "nix/topo-sort.hh"
#include "nix/callback.hh"
#include "nix/local-store.hh" // TODO remove, along with remaining downcasts
#include <regex>
#include <queue>
@ -32,7 +32,7 @@
#include <nlohmann/json.hpp>
#include "strings.hh"
#include "nix/strings.hh"
namespace nix {

View file

@ -1,8 +1,8 @@
#include "drv-output-substitution-goal.hh"
#include "finally.hh"
#include "worker.hh"
#include "substitution-goal.hh"
#include "callback.hh"
#include "nix/build/drv-output-substitution-goal.hh"
#include "nix/finally.hh"
#include "nix/build/worker.hh"
#include "nix/build/substitution-goal.hh"
#include "nix/callback.hh"
namespace nix {

View file

@ -1,10 +1,10 @@
#include "worker.hh"
#include "substitution-goal.hh"
#include "nix/build/worker.hh"
#include "nix/build/substitution-goal.hh"
#ifndef _WIN32 // TODO Enable building on Windows
# include "derivation-goal.hh"
# include "nix/build/derivation-goal.hh"
#endif
#include "local-store.hh"
#include "strings.hh"
#include "nix/local-store.hh"
#include "nix/strings.hh"
namespace nix {

View file

@ -1,5 +1,5 @@
#include "goal.hh"
#include "worker.hh"
#include "nix/build/goal.hh"
#include "nix/build/worker.hh"
namespace nix {

View file

@ -1,8 +1,8 @@
#include "worker.hh"
#include "substitution-goal.hh"
#include "nar-info.hh"
#include "finally.hh"
#include "signals.hh"
#include "nix/build/worker.hh"
#include "nix/build/substitution-goal.hh"
#include "nix/nar-info.hh"
#include "nix/finally.hh"
#include "nix/signals.hh"
#include <coroutine>
namespace nix {

View file

@ -1,14 +1,14 @@
#include "local-store.hh"
#include "machines.hh"
#include "worker.hh"
#include "substitution-goal.hh"
#include "drv-output-substitution-goal.hh"
#include "derivation-goal.hh"
#include "nix/local-store.hh"
#include "nix/machines.hh"
#include "nix/build/worker.hh"
#include "nix/build/substitution-goal.hh"
#include "nix/build/drv-output-substitution-goal.hh"
#include "nix/build/derivation-goal.hh"
#ifndef _WIN32 // TODO Enable building on Windows
# include "local-derivation-goal.hh"
# include "hook-instance.hh"
# include "nix/build/local-derivation-goal.hh"
# include "nix/build/hook-instance.hh"
#endif
#include "signals.hh"
#include "nix/signals.hh"
namespace nix {

View file

@ -1,6 +1,6 @@
#include "buildenv.hh"
#include "derivations.hh"
#include "signals.hh"
#include "nix/builtins/buildenv.hh"
#include "nix/derivations.hh"
#include "nix/signals.hh"
#include <sys/stat.h>
#include <sys/types.h>

View file

@ -1,8 +1,8 @@
#include "builtins.hh"
#include "filetransfer.hh"
#include "store-api.hh"
#include "archive.hh"
#include "compression.hh"
#include "nix/builtins.hh"
#include "nix/filetransfer.hh"
#include "nix/store-api.hh"
#include "nix/archive.hh"
#include "nix/compression.hh"
namespace nix {

View file

@ -1,5 +1,5 @@
#include "builtins.hh"
#include "tarfile.hh"
#include "nix/builtins.hh"
#include "nix/tarfile.hh"
namespace nix {

View file

@ -1,11 +1,11 @@
#include "serialise.hh"
#include "path-with-outputs.hh"
#include "store-api.hh"
#include "build-result.hh"
#include "common-protocol.hh"
#include "common-protocol-impl.hh"
#include "archive.hh"
#include "derivations.hh"
#include "nix/serialise.hh"
#include "nix/path-with-outputs.hh"
#include "nix/store-api.hh"
#include "nix/build-result.hh"
#include "nix/common-protocol.hh"
#include "nix/common-protocol-impl.hh"
#include "nix/archive.hh"
#include "nix/derivations.hh"
#include <nlohmann/json.hpp>

View file

@ -1,7 +1,7 @@
#include <regex>
#include "common-ssh-store-config.hh"
#include "ssh.hh"
#include "nix/common-ssh-store-config.hh"
#include "nix/ssh.hh"
namespace nix {

View file

@ -1,6 +1,6 @@
#include "args.hh"
#include "content-address.hh"
#include "split.hh"
#include "nix/args.hh"
#include "nix/content-address.hh"
#include "nix/split.hh"
namespace nix {

View file

@ -1,23 +1,23 @@
#include "daemon.hh"
#include "signals.hh"
#include "worker-protocol.hh"
#include "worker-protocol-connection.hh"
#include "worker-protocol-impl.hh"
#include "build-result.hh"
#include "store-api.hh"
#include "store-cast.hh"
#include "gc-store.hh"
#include "log-store.hh"
#include "indirect-root-store.hh"
#include "path-with-outputs.hh"
#include "finally.hh"
#include "archive.hh"
#include "derivations.hh"
#include "args.hh"
#include "git.hh"
#include "nix/daemon.hh"
#include "nix/signals.hh"
#include "nix/worker-protocol.hh"
#include "nix/worker-protocol-connection.hh"
#include "nix/worker-protocol-impl.hh"
#include "nix/build-result.hh"
#include "nix/store-api.hh"
#include "nix/store-cast.hh"
#include "nix/gc-store.hh"
#include "nix/log-store.hh"
#include "nix/indirect-root-store.hh"
#include "nix/path-with-outputs.hh"
#include "nix/finally.hh"
#include "nix/archive.hh"
#include "nix/derivations.hh"
#include "nix/args.hh"
#include "nix/git.hh"
#ifndef _WIN32 // TODO need graceful async exit support on Windows?
# include "monitor-fd.hh"
# include "nix/monitor-fd.hh"
#endif
#include <sstream>

View file

@ -1,8 +1,8 @@
#include "derivation-options.hh"
#include "json-utils.hh"
#include "parsed-derivations.hh"
#include "types.hh"
#include "util.hh"
#include "nix/derivation-options.hh"
#include "nix/json-utils.hh"
#include "nix/parsed-derivations.hh"
#include "nix/types.hh"
#include "nix/util.hh"
#include <optional>
#include <string>
#include <variant>

View file

@ -1,14 +1,14 @@
#include "derivations.hh"
#include "downstream-placeholder.hh"
#include "store-api.hh"
#include "globals.hh"
#include "types.hh"
#include "util.hh"
#include "split.hh"
#include "common-protocol.hh"
#include "common-protocol-impl.hh"
#include "strings-inline.hh"
#include "json-utils.hh"
#include "nix/derivations.hh"
#include "nix/downstream-placeholder.hh"
#include "nix/store-api.hh"
#include "nix/globals.hh"
#include "nix/types.hh"
#include "nix/util.hh"
#include "nix/split.hh"
#include "nix/common-protocol.hh"
#include "nix/common-protocol-impl.hh"
#include "nix/strings-inline.hh"
#include "nix/json-utils.hh"
#include <boost/container/small_vector.hpp>
#include <nlohmann/json.hpp>

View file

@ -1,5 +1,5 @@
#include "derived-path-map.hh"
#include "util.hh"
#include "nix/derived-path-map.hh"
#include "nix/util.hh"
namespace nix {

View file

@ -1,7 +1,7 @@
#include "derived-path.hh"
#include "derivations.hh"
#include "store-api.hh"
#include "comparator.hh"
#include "nix/derived-path.hh"
#include "nix/derivations.hh"
#include "nix/store-api.hh"
#include "nix/comparator.hh"
#include <nlohmann/json.hpp>

View file

@ -1,5 +1,5 @@
#include "downstream-placeholder.hh"
#include "derivations.hh"
#include "nix/downstream-placeholder.hh"
#include "nix/derivations.hh"
namespace nix {

View file

@ -1,5 +1,5 @@
#include "store-api.hh"
#include "callback.hh"
#include "nix/store-api.hh"
#include "nix/callback.hh"
namespace nix {

View file

@ -1,8 +1,8 @@
#include "serialise.hh"
#include "store-api.hh"
#include "archive.hh"
#include "common-protocol.hh"
#include "common-protocol-impl.hh"
#include "nix/serialise.hh"
#include "nix/store-api.hh"
#include "nix/archive.hh"
#include "nix/common-protocol.hh"
#include "nix/common-protocol-impl.hh"
#include <algorithm>

View file

@ -1,19 +1,19 @@
#include "filetransfer.hh"
#include "globals.hh"
#include "config-global.hh"
#include "store-api.hh"
#include "s3.hh"
#include "compression.hh"
#include "finally.hh"
#include "callback.hh"
#include "signals.hh"
#include "nix/filetransfer.hh"
#include "nix/globals.hh"
#include "nix/config-global.hh"
#include "nix/store-api.hh"
#include "nix/s3.hh"
#include "nix/compression.hh"
#include "nix/finally.hh"
#include "nix/callback.hh"
#include "nix/signals.hh"
#if ENABLE_S3
#include <aws/core/client/ClientConfiguration.h>
#endif
#if __linux__
# include "namespaces.hh"
# include "nix/namespaces.hh"
#endif
#include <unistd.h>

View file

@ -1,14 +1,14 @@
#include "derivations.hh"
#include "globals.hh"
#include "local-store.hh"
#include "finally.hh"
#include "unix-domain-socket.hh"
#include "signals.hh"
#include "posix-fs-canonicalise.hh"
#include "nix/derivations.hh"
#include "nix/globals.hh"
#include "nix/local-store.hh"
#include "nix/finally.hh"
#include "nix/unix-domain-socket.hh"
#include "nix/signals.hh"
#include "nix/posix-fs-canonicalise.hh"
#if !defined(__linux__)
// For shelling out to lsof
# include "processes.hh"
# include "nix/processes.hh"
#endif
#include <functional>

View file

@ -1,11 +1,11 @@
#include "globals.hh"
#include "config-global.hh"
#include "current-process.hh"
#include "archive.hh"
#include "args.hh"
#include "abstract-setting-to-json.hh"
#include "compute-levels.hh"
#include "signals.hh"
#include "nix/globals.hh"
#include "nix/config-global.hh"
#include "nix/current-process.hh"
#include "nix/archive.hh"
#include "nix/args.hh"
#include "nix/abstract-setting-to-json.hh"
#include "nix/compute-levels.hh"
#include "nix/signals.hh"
#include <algorithm>
#include <map>
@ -26,16 +26,16 @@
#endif
#if __APPLE__
# include "processes.hh"
# include "nix/processes.hh"
#endif
#include "config-impl.hh"
#include "nix/config-impl.hh"
#ifdef __APPLE__
#include <sys/sysctl.h>
#endif
#include "strings.hh"
#include "nix/strings.hh"
namespace nix {

View file

@ -1,8 +1,8 @@
#include "http-binary-cache-store.hh"
#include "filetransfer.hh"
#include "globals.hh"
#include "nar-info-disk-cache.hh"
#include "callback.hh"
#include "nix/http-binary-cache-store.hh"
#include "nix/filetransfer.hh"
#include "nix/globals.hh"
#include "nix/nar-info-disk-cache.hh"
#include "nix/callback.hh"
namespace nix {

View file

@ -1,11 +1,11 @@
#pragma once
///@file
#include "signature/local-keys.hh"
#include "store-api.hh"
#include "log-store.hh"
#include "nix/signature/local-keys.hh"
#include "nix/store-api.hh"
#include "nix/log-store.hh"
#include "pool.hh"
#include "nix/pool.hh"
#include <atomic>

View file

@ -1,8 +1,8 @@
#pragma once
///@file
#include "realisation.hh"
#include "derived-path.hh"
#include "nix/realisation.hh"
#include "nix/derived-path.hh"
#include <string>
#include <chrono>

View file

@ -1,15 +1,15 @@
#pragma once
///@file
#include "parsed-derivations.hh"
#include "derivation-options.hh"
#include "nix/parsed-derivations.hh"
#include "nix/derivation-options.hh"
#ifndef _WIN32
# include "user-lock.hh"
# include "nix/user-lock.hh"
#endif
#include "outputs-spec.hh"
#include "store-api.hh"
#include "pathlocks.hh"
#include "goal.hh"
#include "nix/outputs-spec.hh"
#include "nix/store-api.hh"
#include "nix/pathlocks.hh"
#include "nix/build/goal.hh"
namespace nix {

View file

@ -4,10 +4,10 @@
#include <thread>
#include <future>
#include "store-api.hh"
#include "goal.hh"
#include "realisation.hh"
#include "muxable-pipe.hh"
#include "nix/store-api.hh"
#include "nix/build/goal.hh"
#include "nix/realisation.hh"
#include "nix/muxable-pipe.hh"
namespace nix {

View file

@ -1,8 +1,8 @@
#pragma once
///@file
#include "store-api.hh"
#include "build-result.hh"
#include "nix/store-api.hh"
#include "nix/build-result.hh"
#include <coroutine>

View file

@ -1,10 +1,10 @@
#pragma once
///@file
#include "worker.hh"
#include "store-api.hh"
#include "goal.hh"
#include "muxable-pipe.hh"
#include "nix/build/worker.hh"
#include "nix/store-api.hh"
#include "nix/build/goal.hh"
#include "nix/muxable-pipe.hh"
#include <coroutine>
#include <future>
#include <source_location>

View file

@ -1,11 +1,11 @@
#pragma once
///@file
#include "types.hh"
#include "store-api.hh"
#include "goal.hh"
#include "realisation.hh"
#include "muxable-pipe.hh"
#include "nix/types.hh"
#include "nix/store-api.hh"
#include "nix/build/goal.hh"
#include "nix/realisation.hh"
#include "nix/muxable-pipe.hh"
#include <future>
#include <thread>

View file

@ -1,7 +1,7 @@
#pragma once
///@file
#include "derivations.hh"
#include "nix/derivations.hh"
namespace nix {

View file

@ -1,7 +1,7 @@
#pragma once
///@file
#include "store-api.hh"
#include "nix/store-api.hh"
namespace nix {

View file

@ -8,8 +8,8 @@
* contributing guide.
*/
#include "common-protocol.hh"
#include "length-prefixed-protocol-helper.hh"
#include "nix/common-protocol.hh"
#include "nix/length-prefixed-protocol-helper.hh"
namespace nix {

View file

@ -1,7 +1,7 @@
#pragma once
///@file
#include "serialise.hh"
#include "nix/serialise.hh"
namespace nix {

View file

@ -1,7 +1,7 @@
#pragma once
///@file
#include "store-api.hh"
#include "nix/store-api.hh"
namespace nix {

View file

@ -2,10 +2,10 @@
///@file
#include <variant>
#include "hash.hh"
#include "path.hh"
#include "file-content-address.hh"
#include "variant-wrapper.hh"
#include "nix/hash.hh"
#include "nix/path.hh"
#include "nix/file-content-address.hh"
#include "nix/variant-wrapper.hh"
namespace nix {

View file

@ -1,8 +1,8 @@
#pragma once
///@file
#include "serialise.hh"
#include "store-api.hh"
#include "nix/serialise.hh"
#include "nix/store-api.hh"
namespace nix::daemon {

View file

@ -6,8 +6,8 @@
#include <optional>
#include <variant>
#include "types.hh"
#include "json-impls.hh"
#include "nix/types.hh"
#include "nix/json-impls.hh"
namespace nix {

View file

@ -1,14 +1,14 @@
#pragma once
///@file
#include "path.hh"
#include "types.hh"
#include "hash.hh"
#include "content-address.hh"
#include "repair-flag.hh"
#include "derived-path-map.hh"
#include "sync.hh"
#include "variant-wrapper.hh"
#include "nix/path.hh"
#include "nix/types.hh"
#include "nix/hash.hh"
#include "nix/content-address.hh"
#include "nix/repair-flag.hh"
#include "nix/derived-path-map.hh"
#include "nix/sync.hh"
#include "nix/variant-wrapper.hh"
#include <map>
#include <variant>

View file

@ -1,8 +1,8 @@
#pragma once
///@file
#include "types.hh"
#include "derived-path.hh"
#include "nix/types.hh"
#include "nix/derived-path.hh"
namespace nix {

View file

@ -1,10 +1,10 @@
#pragma once
///@file
#include "path.hh"
#include "outputs-spec.hh"
#include "config.hh"
#include "ref.hh"
#include "nix/path.hh"
#include "nix/outputs-spec.hh"
#include "nix/config.hh"
#include "nix/ref.hh"
#include <variant>

View file

@ -1,9 +1,9 @@
#pragma once
///@file
#include "hash.hh"
#include "path.hh"
#include "derived-path.hh"
#include "nix/hash.hh"
#include "nix/path.hh"
#include "nix/derived-path.hh"
namespace nix {

View file

@ -4,11 +4,11 @@
#include <string>
#include <future>
#include "logging.hh"
#include "types.hh"
#include "ref.hh"
#include "config.hh"
#include "serialise.hh"
#include "nix/logging.hh"
#include "nix/types.hh"
#include "nix/ref.hh"
#include "nix/config.hh"
#include "nix/serialise.hh"
namespace nix {

View file

@ -3,7 +3,7 @@
#include <unordered_set>
#include "store-api.hh"
#include "nix/store-api.hh"
namespace nix {

View file

@ -1,11 +1,11 @@
#pragma once
///@file
#include "types.hh"
#include "config.hh"
#include "environment-variables.hh"
#include "experimental-features.hh"
#include "users.hh"
#include "nix/types.hh"
#include "nix/config.hh"
#include "nix/environment-variables.hh"
#include "nix/experimental-features.hh"
#include "nix/users.hh"
#include <map>
#include <limits>

View file

@ -1,4 +1,4 @@
#include "binary-cache-store.hh"
#include "nix/binary-cache-store.hh"
namespace nix {

View file

@ -1,7 +1,7 @@
#pragma once
///@file
#include "local-fs-store.hh"
#include "nix/local-fs-store.hh"
namespace nix {

View file

@ -1,7 +1,7 @@
#pragma once
///@file
#include "signature/local-keys.hh"
#include "nix/signature/local-keys.hh"
namespace nix {

View file

@ -1,12 +1,12 @@
#pragma once
///@file
#include "common-ssh-store-config.hh"
#include "store-api.hh"
#include "ssh.hh"
#include "callback.hh"
#include "pool.hh"
#include "serve-protocol.hh"
#include "nix/common-ssh-store-config.hh"
#include "nix/store-api.hh"
#include "nix/ssh.hh"
#include "nix/callback.hh"
#include "nix/pool.hh"
#include "nix/serve-protocol.hh"
namespace nix {

View file

@ -8,7 +8,7 @@
* Used by both the Worker and Serve protocols.
*/
#include "types.hh"
#include "nix/types.hh"
namespace nix {

View file

@ -1,4 +1,4 @@
#include "binary-cache-store.hh"
#include "nix/binary-cache-store.hh"
namespace nix {

View file

@ -1,9 +1,9 @@
#pragma once
///@file
#include "store-api.hh"
#include "gc-store.hh"
#include "log-store.hh"
#include "nix/store-api.hh"
#include "nix/gc-store.hh"
#include "nix/log-store.hh"
namespace nix {

View file

@ -1,4 +1,4 @@
#include "local-store.hh"
#include "nix/local-store.hh"
namespace nix {

View file

@ -1,12 +1,12 @@
#pragma once
///@file
#include "sqlite.hh"
#include "nix/sqlite.hh"
#include "pathlocks.hh"
#include "store-api.hh"
#include "indirect-root-store.hh"
#include "sync.hh"
#include "nix/pathlocks.hh"
#include "nix/store-api.hh"
#include "nix/indirect-root-store.hh"
#include "nix/sync.hh"
#include <chrono>
#include <future>

View file

@ -1,7 +1,7 @@
#pragma once
///@file
#include "store-api.hh"
#include "nix/store-api.hh"
namespace nix {

View file

@ -1,8 +1,8 @@
#pragma once
///@file
#include "ref.hh"
#include "store-reference.hh"
#include "nix/ref.hh"
#include "nix/store-reference.hh"
namespace nix {

View file

@ -1,7 +1,7 @@
#pragma once
///@file
#include "store-api.hh"
#include "nix/store-api.hh"
namespace nix {

View file

@ -0,0 +1,82 @@
# Public headers directory
include_dirs = [
include_directories('..'),
]
config_h = configure_file(
configuration : configdata,
output : 'config-store.hh',
)
headers = [config_h] + files(
'binary-cache-store.hh',
'build-result.hh',
'build/derivation-goal.hh',
'build/drv-output-substitution-goal.hh',
'build/goal.hh',
'build/substitution-goal.hh',
'build/worker.hh',
'builtins.hh',
'builtins/buildenv.hh',
'common-protocol-impl.hh',
'common-protocol.hh',
'common-ssh-store-config.hh',
'content-address.hh',
'daemon.hh',
'derivations.hh',
'derivation-options.hh',
'derived-path-map.hh',
'derived-path.hh',
'downstream-placeholder.hh',
'filetransfer.hh',
'gc-store.hh',
'globals.hh',
'http-binary-cache-store.hh',
'indirect-root-store.hh',
'keys.hh',
'legacy-ssh-store.hh',
'length-prefixed-protocol-helper.hh',
'local-binary-cache-store.hh',
'local-fs-store.hh',
'local-overlay-store.hh',
'local-store.hh',
'log-store.hh',
'machines.hh',
'make-content-addressed.hh',
'names.hh',
'nar-accessor.hh',
'nar-info-disk-cache.hh',
'nar-info.hh',
'outputs-spec.hh',
'parsed-derivations.hh',
'path-info.hh',
'path-references.hh',
'path-regex.hh',
'path-with-outputs.hh',
'path.hh',
'pathlocks.hh',
'posix-fs-canonicalise.hh',
'profiles.hh',
'realisation.hh',
'remote-fs-accessor.hh',
'remote-store-connection.hh',
'remote-store.hh',
'restricted-store.hh',
's3-binary-cache-store.hh',
's3.hh',
'ssh-store.hh',
'serve-protocol-connection.hh',
'serve-protocol-impl.hh',
'serve-protocol.hh',
'sqlite.hh',
'ssh.hh',
'store-api.hh',
'store-cast.hh',
'store-dir-config.hh',
'store-reference.hh',
'uds-remote-store.hh',
'worker-protocol-connection.hh',
'worker-protocol-impl.hh',
'worker-protocol.hh',
)

View file

@ -3,7 +3,7 @@
#include <memory>
#include "types.hh"
#include "nix/types.hh"
namespace nix {

View file

@ -1,7 +1,7 @@
#pragma once
///@file
#include "source-accessor.hh"
#include "nix/source-accessor.hh"
#include <functional>

View file

@ -1,9 +1,9 @@
#pragma once
///@file
#include "ref.hh"
#include "nar-info.hh"
#include "realisation.hh"
#include "nix/ref.hh"
#include "nix/nar-info.hh"
#include "nix/realisation.hh"
namespace nix {

View file

@ -1,9 +1,9 @@
#pragma once
///@file
#include "types.hh"
#include "hash.hh"
#include "path-info.hh"
#include "nix/types.hh"
#include "nix/hash.hh"
#include "nix/path-info.hh"
namespace nix {

View file

@ -6,8 +6,8 @@
#include <set>
#include <variant>
#include "json-impls.hh"
#include "variant-wrapper.hh"
#include "nix/json-impls.hh"
#include "nix/variant-wrapper.hh"
namespace nix {

View file

@ -1,8 +1,8 @@
#pragma once
///@file
#include "derivations.hh"
#include "store-api.hh"
#include "nix/derivations.hh"
#include "nix/store-api.hh"
#include <nlohmann/json_fwd.hpp>

View file

@ -1,10 +1,10 @@
#pragma once
///@file
#include "signature/signer.hh"
#include "path.hh"
#include "hash.hh"
#include "content-address.hh"
#include "nix/signature/signer.hh"
#include "nix/path.hh"
#include "nix/hash.hh"
#include "nix/content-address.hh"
#include <string>
#include <optional>

View file

@ -1,8 +1,8 @@
#pragma once
///@file
#include "references.hh"
#include "path.hh"
#include "nix/references.hh"
#include "nix/path.hh"
namespace nix {

View file

@ -1,8 +1,8 @@
#pragma once
///@file
#include "path.hh"
#include "derived-path.hh"
#include "nix/path.hh"
#include "nix/derived-path.hh"
namespace nix {

View file

@ -3,7 +3,7 @@
#include <string_view>
#include "types.hh"
#include "nix/types.hh"
namespace nix {

View file

@ -1,7 +1,7 @@
#pragma once
///@file
#include "file-descriptor.hh"
#include "nix/file-descriptor.hh"
namespace nix {

View file

@ -4,8 +4,8 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "types.hh"
#include "error.hh"
#include "nix/types.hh"
#include "nix/error.hh"
namespace nix {

View file

@ -7,8 +7,8 @@
* See the manual for additional information.
*/
#include "types.hh"
#include "pathlocks.hh"
#include "nix/types.hh"
#include "nix/pathlocks.hh"
#include <optional>
#include <time.h>

View file

@ -3,12 +3,12 @@
#include <variant>
#include "hash.hh"
#include "path.hh"
#include "derived-path.hh"
#include "nix/hash.hh"
#include "nix/path.hh"
#include "nix/derived-path.hh"
#include <nlohmann/json_fwd.hpp>
#include "comparator.hh"
#include "signature/signer.hh"
#include "nix/comparator.hh"
#include "nix/signature/signer.hh"
namespace nix {

View file

@ -1,9 +1,9 @@
#pragma once
///@file
#include "source-accessor.hh"
#include "ref.hh"
#include "store-api.hh"
#include "nix/source-accessor.hh"
#include "nix/ref.hh"
#include "nix/store-api.hh"
namespace nix {

View file

@ -1,10 +1,10 @@
#pragma once
///@file
#include "remote-store.hh"
#include "worker-protocol.hh"
#include "worker-protocol-connection.hh"
#include "pool.hh"
#include "nix/remote-store.hh"
#include "nix/worker-protocol.hh"
#include "nix/worker-protocol-connection.hh"
#include "nix/pool.hh"
namespace nix {

View file

@ -4,9 +4,9 @@
#include <limits>
#include <string>
#include "store-api.hh"
#include "gc-store.hh"
#include "log-store.hh"
#include "nix/store-api.hh"
#include "nix/gc-store.hh"
#include "nix/log-store.hh"
namespace nix {

View file

@ -1,7 +1,7 @@
#pragma once
///@file
#include "binary-cache-store.hh"
#include "nix/binary-cache-store.hh"
#include <atomic>

View file

@ -3,7 +3,7 @@
#if ENABLE_S3
#include "ref.hh"
#include "nix/ref.hh"
#include <optional>
#include <string>

View file

@ -1,8 +1,8 @@
#pragma once
///@file
#include "serve-protocol.hh"
#include "store-api.hh"
#include "nix/serve-protocol.hh"
#include "nix/store-api.hh"
namespace nix {

View file

@ -8,8 +8,8 @@
* contributing guide.
*/
#include "serve-protocol.hh"
#include "length-prefixed-protocol-helper.hh"
#include "nix/serve-protocol.hh"
#include "nix/length-prefixed-protocol-helper.hh"
namespace nix {

View file

@ -1,7 +1,7 @@
#pragma once
///@file
#include "common-protocol.hh"
#include "nix/common-protocol.hh"
namespace nix {

View file

@ -4,7 +4,7 @@
#include <functional>
#include <string>
#include "error.hh"
#include "nix/error.hh"
struct sqlite3;
struct sqlite3_stmt;

View file

@ -1,10 +1,10 @@
#pragma once
///@file
#include "common-ssh-store-config.hh"
#include "store-api.hh"
#include "local-fs-store.hh"
#include "remote-store.hh"
#include "nix/common-ssh-store-config.hh"
#include "nix/store-api.hh"
#include "nix/local-fs-store.hh"
#include "nix/remote-store.hh"
namespace nix {

View file

@ -1,9 +1,9 @@
#pragma once
///@file
#include "sync.hh"
#include "processes.hh"
#include "file-system.hh"
#include "nix/sync.hh"
#include "nix/processes.hh"
#include "nix/file-system.hh"
namespace nix {

View file

@ -1,20 +1,20 @@
#pragma once
///@file
#include "path.hh"
#include "derived-path.hh"
#include "hash.hh"
#include "content-address.hh"
#include "serialise.hh"
#include "lru-cache.hh"
#include "sync.hh"
#include "globals.hh"
#include "config.hh"
#include "path-info.hh"
#include "repair-flag.hh"
#include "store-dir-config.hh"
#include "store-reference.hh"
#include "source-path.hh"
#include "nix/path.hh"
#include "nix/derived-path.hh"
#include "nix/hash.hh"
#include "nix/content-address.hh"
#include "nix/serialise.hh"
#include "nix/lru-cache.hh"
#include "nix/sync.hh"
#include "nix/globals.hh"
#include "nix/config.hh"
#include "nix/path-info.hh"
#include "nix/repair-flag.hh"
#include "nix/store-dir-config.hh"
#include "nix/store-reference.hh"
#include "nix/source-path.hh"
#include <nlohmann/json_fwd.hpp>
#include <atomic>

View file

@ -1,7 +1,7 @@
#pragma once
///@file
#include "store-api.hh"
#include "nix/store-api.hh"
namespace nix {

View file

@ -1,10 +1,10 @@
#pragma once
#include "path.hh"
#include "hash.hh"
#include "content-address.hh"
#include "globals.hh"
#include "config.hh"
#include "nix/path.hh"
#include "nix/hash.hh"
#include "nix/content-address.hh"
#include "nix/globals.hh"
#include "nix/config.hh"
#include <map>
#include <string>

View file

@ -3,7 +3,7 @@
#include <variant>
#include "types.hh"
#include "nix/types.hh"
namespace nix {

View file

@ -1,9 +1,9 @@
#pragma once
///@file
#include "remote-store.hh"
#include "remote-store-connection.hh"
#include "indirect-root-store.hh"
#include "nix/remote-store.hh"
#include "nix/remote-store-connection.hh"
#include "nix/indirect-root-store.hh"
namespace nix {

View file

@ -1,8 +1,8 @@
#pragma once
///@file
#include "worker-protocol.hh"
#include "store-api.hh"
#include "nix/worker-protocol.hh"
#include "nix/store-api.hh"
namespace nix {

View file

@ -8,8 +8,8 @@
* contributing guide.
*/
#include "worker-protocol.hh"
#include "length-prefixed-protocol-helper.hh"
#include "nix/worker-protocol.hh"
#include "nix/length-prefixed-protocol-helper.hh"
namespace nix {

View file

@ -3,7 +3,7 @@
#include <chrono>
#include "common-protocol.hh"
#include "nix/common-protocol.hh"
namespace nix {

View file

@ -1,4 +1,4 @@
#include "indirect-root-store.hh"
#include "nix/indirect-root-store.hh"
namespace nix {

View file

@ -1,6 +1,6 @@
#include "file-system.hh"
#include "globals.hh"
#include "keys.hh"
#include "nix/file-system.hh"
#include "nix/globals.hh"
#include "nix/keys.hh"
namespace nix {

View file

@ -1,17 +1,17 @@
#include "legacy-ssh-store.hh"
#include "common-ssh-store-config.hh"
#include "archive.hh"
#include "pool.hh"
#include "remote-store.hh"
#include "serve-protocol.hh"
#include "serve-protocol-connection.hh"
#include "serve-protocol-impl.hh"
#include "build-result.hh"
#include "store-api.hh"
#include "path-with-outputs.hh"
#include "ssh.hh"
#include "derivations.hh"
#include "callback.hh"
#include "nix/legacy-ssh-store.hh"
#include "nix/common-ssh-store-config.hh"
#include "nix/archive.hh"
#include "nix/pool.hh"
#include "nix/remote-store.hh"
#include "nix/serve-protocol.hh"
#include "nix/serve-protocol-connection.hh"
#include "nix/serve-protocol-impl.hh"
#include "nix/build-result.hh"
#include "nix/store-api.hh"
#include "nix/path-with-outputs.hh"
#include "nix/ssh.hh"
#include "nix/derivations.hh"
#include "nix/callback.hh"
namespace nix {

Some files were not shown because too many files have changed in this diff Show more