about summary refs log tree commit diff
path: root/src/libexpr/eval.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-02-12T16·57+0100
committerGitHub <noreply@github.com>2019-02-12T16·57+0100
commit7a7ec2229834aa294b3e09df7f514b7134287ec2 (patch)
tree4c704e904b9ed21536ceb39632e61d7c78b2917b /src/libexpr/eval.hh
parent01d07b1e92c298f729a73705907b2987da9a4d0c (diff)
parentb30be6b450f872f8be6dc8afa28f4b030fa8d1d1 (diff)
Merge pull request #2628 from shlevy/context-introspection
Context introspection
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r--src/libexpr/eval.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index d0f298e168e9..9fe3878916d5 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -316,6 +316,9 @@ private:
 /* Return a string representing the type of the value `v'. */
 string showType(const Value & v);
 
+/* Decode a context string ‘!<name>!<path>’ into a pair <path,
+   name>. */
+std::pair<string, string> decodeContext(const string & s);
 
 /* If `path' refers to a directory, then append "/default.nix". */
 Path resolveExprPath(Path path);