From 203a7732f5fafb5f9b7e8564bd3bd4587e168134 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 7 Apr 2014 21:25:44 +0100 Subject: 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. --- src/remote.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/remote.hh') diff --git a/src/remote.hh b/src/remote.hh index 22259930..cebd56cf 100644 --- a/src/remote.hh +++ b/src/remote.hh @@ -4,6 +4,7 @@ #include "display_buffer.hh" #include "event_manager.hh" #include "user_interface.hh" +#include "env_vars.hh" namespace Kakoune { @@ -23,7 +24,7 @@ class RemoteClient { public: RemoteClient(int socket, std::unique_ptr&& ui, - const String& init_command); + const EnvVarMap& env_vars, const String& init_command); private: void process_next_message(); @@ -35,6 +36,7 @@ private: }; std::unique_ptr connect_to(const String& session, std::unique_ptr&& ui, + const EnvVarMap& env_vars, const String& init_command); void send_command(const String& session, const String& command); -- cgit v1.2.3