summaryrefslogtreecommitdiff
path: root/src/env_vars.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-04-07 21:25:44 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-04-07 23:47:51 +0100
commit203a7732f5fafb5f9b7e8564bd3bd4587e168134 (patch)
treee136448924786ac638b8ad91304b6cdf6e5eb035 /src/env_vars.hh
parent33de42610dc08dd7bfd65f49a70ec68a478dee2d (diff)
Add support for querying client environement variables
At connection, a remote client sends all its environement to the server, which then provides access to client env through kak_client_env_VAR_NAME variables in the shell.
Diffstat (limited to 'src/env_vars.hh')
-rw-r--r--src/env_vars.hh18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/env_vars.hh b/src/env_vars.hh
new file mode 100644
index 00000000..087d51a7
--- /dev/null
+++ b/src/env_vars.hh
@@ -0,0 +1,18 @@
+#ifndef env_vars_hh_INCLUDED
+#define env_vars_hh_INCLUDED
+
+#include "string.hh"
+
+#include <unordered_map>
+
+namespace Kakoune
+{
+
+using EnvVarMap = std::unordered_map<String, String>;
+
+EnvVarMap get_env_vars();
+
+}
+
+#endif // env_vars_hh_INCLUDED
+