diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-04-07 21:25:44 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-04-07 23:47:51 +0100 |
| commit | 203a7732f5fafb5f9b7e8564bd3bd4587e168134 (patch) | |
| tree | e136448924786ac638b8ad91304b6cdf6e5eb035 /src/env_vars.hh | |
| parent | 33de42610dc08dd7bfd65f49a70ec68a478dee2d (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.hh | 18 |
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 + |
