aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2019-04-12 11:58:08 +0200
committerHans Nilsson <[email protected]>2019-04-12 11:58:08 +0200
commitd90b83daa112f1d271b054300640a5b563241590 (patch)
tree558ce78d7b3070ebdb3ff94401e626ea22e6c954
parent1feae54b6a313f7a35ca1671e3c50f8b434a1bb0 (diff)
parent3f588941ec05bc69f4bd2ba76c391825f702338e (diff)
downloadotp-d90b83daa112f1d271b054300640a5b563241590.tar.gz
otp-d90b83daa112f1d271b054300640a5b563241590.tar.bz2
otp-d90b83daa112f1d271b054300640a5b563241590.zip
Merge branch 'hans/ssh/ssh_channel-init/OTP-15762' into maint-21
* hans/ssh/ssh_channel-init/OTP-15762: ssh: Add ssh_channel:init/1
-rw-r--r--lib/ssh/src/ssh_channel.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh_channel.erl b/lib/ssh/src/ssh_channel.erl
index 443bd05086..1d977e3bc9 100644
--- a/lib/ssh/src/ssh_channel.erl
+++ b/lib/ssh/src/ssh_channel.erl
@@ -58,6 +58,7 @@
State::term()}.
%%% API
-export([start/4, start/5, start_link/4, start_link/5, call/2, call/3,
+ init/1,
cast/2, reply/2, enter_loop/1]).
%%====================================================================
@@ -76,6 +77,9 @@ cast(ChannelPid, Msg) ->
reply(From, Msg) ->
ssh_client_channel:reply(From, Msg).
+init(Args) ->
+ ssh_client_channel:init(Args).
+
start(ConnectionManager, ChannelId, CallBack, CbInitArgs) ->
ssh_client_channel:start(ConnectionManager, ChannelId, CallBack, CbInitArgs).