mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 10:16:15 +02:00
ac89bb064a
All OS and IO operations should be moved out, leaving only some misc portable pure functions. This is useful to avoid copious CPP when doing things like Windows and Emscripten ports. Newly exposed functions to break cycles: - `restoreSignals` - `updateWindowSize`
41 lines
567 B
C++
41 lines
567 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include "logging.hh"
|
|
#include "serialise.hh"
|
|
#include "processes.hh"
|
|
|
|
namespace nix {
|
|
|
|
struct HookInstance
|
|
{
|
|
/**
|
|
* Pipes for talking to the build hook.
|
|
*/
|
|
Pipe toHook;
|
|
|
|
/**
|
|
* Pipe for the hook's standard output/error.
|
|
*/
|
|
Pipe fromHook;
|
|
|
|
/**
|
|
* Pipe for the builder's standard output/error.
|
|
*/
|
|
Pipe builderOut;
|
|
|
|
/**
|
|
* The process ID of the hook.
|
|
*/
|
|
Pid pid;
|
|
|
|
FdSink sink;
|
|
|
|
std::map<ActivityId, Activity> activities;
|
|
|
|
HookInstance();
|
|
|
|
~HookInstance();
|
|
};
|
|
|
|
}
|