aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops.hh
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2018-04-09 10:26:50 -0400
committerShea Levy <shea@shealevy.com>2018-04-09 10:26:50 -0400
commitfd98fca7bbcea393957e63f25e36d82ada43e255 (patch)
tree53309393f1f22fb3e4eda1639952889e4778efed /src/libexpr/primops.hh
parent377cf43ff6cb1b9f52308a0f0e1b296004a71742 (diff)
Make prim_exec and prim_importNative available to plugins
Diffstat (limited to 'src/libexpr/primops.hh')
-rw-r--r--src/libexpr/primops.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libexpr/primops.hh b/src/libexpr/primops.hh
index 31bf3f84f..c790b30f6 100644
--- a/src/libexpr/primops.hh
+++ b/src/libexpr/primops.hh
@@ -15,4 +15,12 @@ struct RegisterPrimOp
RegisterPrimOp(std::string name, size_t arity, PrimOpFun fun);
};
+/* These primops are disabled without enableNativeCode, but plugins
+ may wish to use them in limited contexts without globally enabling
+ them. */
+/* Load a ValueInitializer from a DSO and return whatever it initializes */
+void prim_importNative(EvalState & state, const Pos & pos, Value * * args, Value & v);
+/* Execute a program and parse its output */
+void prim_exec(EvalState & state, const Pos & pos, Value * * args, Value & v);
+
}