mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 18:56:16 +02:00
9207f94582
This function returns true or false depending on whether the Nix client is trusted or not. Mostly relevant when speaking to a remote store with a daemon. We include this information in `nix ping store` and `nix doctor` Co-Authored-By: John Ericson <John.Ericson@Obsidian.Systems>
18 lines
310 B
C++
18 lines
310 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include "serialise.hh"
|
|
#include "store-api.hh"
|
|
|
|
namespace nix::daemon {
|
|
|
|
enum RecursiveFlag : bool { NotRecursive = false, Recursive = true };
|
|
|
|
void processConnection(
|
|
ref<Store> store,
|
|
FdSource & from,
|
|
FdSink & to,
|
|
TrustedFlag trusted,
|
|
RecursiveFlag recursive);
|
|
|
|
}
|