Files
lix/src/libstore/build/hook-instance.hh
T
Jade Lovelace 94ca95714e Include rearrangement: libstore
Change-Id: I27c83510d9053bb8bdd7eda9ad3a4b77d633056a
2024-11-18 12:22:39 -08:00

42 lines
623 B
C++

#pragma once
///@file
#include "lix/libutil/logging.hh"
#include "lix/libutil/processes.hh"
#include "lix/libutil/serialise.hh"
namespace nix {
struct HookInstance
{
/**
* Pipe for talking to the build hook.
*/
AutoCloseFD toHook;
/**
* Pipe for the hook's standard output/error.
*/
AutoCloseFD fromHook;
/**
* Pipe for the builder's standard output/error.
*/
AutoCloseFD builderOut;
/**
* The process ID of the hook.
*/
Pid pid;
FdSink sink;
std::map<ActivityId, Activity> activities;
HookInstance();
~HookInstance();
};
}