Add support for opening a connection to a remote system bus using ssh (#77)

This commit is contained in:
Jay
2019-11-03 14:21:39 -05:00
committed by Stanislav Angelovič
parent c139110112
commit 099bc857ad
6 changed files with 45 additions and 1 deletions

View File

@@ -46,10 +46,12 @@ namespace sdbus { namespace internal {
enum class BusType
{
eSystem,
eSession
eSession,
eRemoteSystem,
};
Connection(BusType type, std::unique_ptr<ISdBus>&& interface);
Connection(const std::string& host, std::unique_ptr<ISdBus>&& interface);
~Connection() override;
void requestName(const std::string& name) override;
@@ -122,6 +124,7 @@ namespace sdbus { namespace internal {
std::thread asyncLoopThread_;
int loopExitFd_{-1};
std::string host_;
};
}}