nix-super/src/libstore/build/hook-instance.hh

32 lines
482 B
C++
Raw Normal View History

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