1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 01:11:15 +02:00

Make prim_exec and prim_importNative available to plugins

This commit is contained in:
Shea Levy 2018-04-09 10:26:50 -04:00
parent 377cf43ff6
commit fd98fca7bb
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27
2 changed files with 10 additions and 2 deletions

View file

@ -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);
}