summaryrefslogtreecommitdiff
path: root/src/remote.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/remote.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/remote.hh')
-rw-r--r--src/remote.hh4
1 files changed, 3 insertions, 1 deletions
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<UserInterface>&& 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<RemoteClient> connect_to(const String& session,
std::unique_ptr<UserInterface>&& ui,
+ const EnvVarMap& env_vars,
const String& init_command);
void send_command(const String& session, const String& command);