aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/hook-instance.hh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-10-12 20:47:22 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-10-12 20:47:22 +0000
commit1b8ebe92dc9c7d7db5d7001a84e85c5603056823 (patch)
tree0d252ad5a448982614c3bc2fbf9fd62c89ca3002 /src/libstore/build/hook-instance.hh
parent5c74a6147b4b81dc5b173f190f02f6681ec4b0fe (diff)
parenta73959e6beef05e84c283a2117bbe7dc5801bade (diff)
Merge remote-tracking branch 'obsidian/split_build_cc' into typed-goal-maps
Diffstat (limited to 'src/libstore/build/hook-instance.hh')
-rw-r--r--src/libstore/build/hook-instance.hh31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/libstore/build/hook-instance.hh b/src/libstore/build/hook-instance.hh
new file mode 100644
index 000000000..9e8cff128
--- /dev/null
+++ b/src/libstore/build/hook-instance.hh
@@ -0,0 +1,31 @@
+#pragma once
+
+#include "logging.hh"
+#include "serialise.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();
+};
+
+}