lix/src/libstore/build/hook-instance.hh

32 lines
482 B
C++
Raw Normal View History

2020-10-11 16:17:24 +00:00
#pragma once
2020-10-12 17:16:13 +00:00
#include "logging.hh"
#include "serialise.hh"
namespace nix {
2020-10-11 16:17:24 +00:00
struct HookInstance
{
2020-10-11 16:17:24 +00:00
/* Pipes for talking to the build hook. */
Pipe toHook;
2020-10-11 16:17:24 +00:00
/* Pipe for the hook's standard output/error. */
Pipe fromHook;
2020-10-11 16:17:24 +00:00
/* Pipe for the builder's standard output/error. */
Pipe builderOut;
2020-10-11 16:17:24 +00:00
/* The process ID of the hook. */
Pid pid;
2020-10-11 16:17:24 +00:00
FdSink sink;
2020-10-11 16:17:24 +00:00
std::map<ActivityId, Activity> activities;
2020-10-11 16:17:24 +00:00
HookInstance();
2020-10-11 16:17:24 +00:00
~HookInstance();
};
}