1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-21 11:30:30 -04:00
nix/src/libstore/build/hook-instance.hh

32 lines
482 B
C++
Raw Normal View History

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