aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_subsystem.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2013-01-24 16:51:42 +0100
committerIngela Anderton Andin <[email protected]>2013-01-25 09:22:20 +0100
commit089f235dd2c2945a63383e79e02616c1a99b50a6 (patch)
tree00c47ade0de558d12a23accc01fafdddf6251b46 /lib/ssh/src/ssh_subsystem.erl
parent0ab216f3dc96890b50f7430895ad5d7f6251f129 (diff)
downloadotp-089f235dd2c2945a63383e79e02616c1a99b50a6.tar.gz
otp-089f235dd2c2945a63383e79e02616c1a99b50a6.tar.bz2
otp-089f235dd2c2945a63383e79e02616c1a99b50a6.zip
ssh: Fix dialyzer and doc warnings
Diffstat (limited to 'lib/ssh/src/ssh_subsystem.erl')
-rw-r--r--lib/ssh/src/ssh_subsystem.erl47
1 files changed, 0 insertions, 47 deletions
diff --git a/lib/ssh/src/ssh_subsystem.erl b/lib/ssh/src/ssh_subsystem.erl
deleted file mode 100644
index 5a9fa32668..0000000000
--- a/lib/ssh/src/ssh_subsystem.erl
+++ /dev/null
@@ -1,47 +0,0 @@
--module(ssh_subsystem).
-
-%% API to special server side channel that can be pluged into the erlang ssh daemeon
--callback init(Args :: term()) ->
- {ok, State :: term()} | {ok, State :: term(), timeout() | hibernate} |
- {stop, Reason :: term()} | ignore.
-
--callback terminate(Reason :: (normal | shutdown | {shutdown, term()} |
- term()),
- State :: term()) ->
- term().
-
--callback handle_msg(Msg ::term(), State :: term()) ->
- {noreply, NewState :: term()} |
- {noreply, NewState :: term(), timeout() | hibernate} |
- {stop, Reason :: term(), NewState :: term()}.
-
--callback handle_ssh_msg({ssh_cm, ConnectionRef::term(), SshMsg::term()},
- State::term()) -> {ok, State::term()} |
- {stop, ChannelId::integer(),
- State::term()}.
-
-%%% API
--export([start/4, start/5, start_link/4, start_link/5, enter_loop/1]).
-
-%% gen_server callbacks
--export([init/1, terminate/2]).
-
-start(ConnectionManager, ChannelId, CallBack, CbInitArgs) ->
- ssh_channel:start(ConnectionManager, ChannelId, CallBack, CbInitArgs, undefined).
-
-start(ConnectionManager, ChannelId, CallBack, CbInitArgs, Exec) ->
- ssh_channel:start(ConnectionManager, ChannelId, CallBack, CbInitArgs, Exec).
-
-start_link(ConnectionManager, ChannelId, CallBack, CbInitArgs) ->
- ssh_channel:start_link(ConnectionManager, ChannelId, CallBack, CbInitArgs, undefined).
-
-start_link(ConnectionManager, ChannelId, CallBack, CbInitArgs, Exec) ->
- ssh_channel:start_link(ConnectionManager, ChannelId, CallBack, CbInitArgs, Exec).
-
-enter_loop(State) ->
- ssh_channel:enter_loop(State).
-
-init(Args) ->
- ssh_channel:init(Args).
-terminate(Reason, State) ->
- ssh_channel:terminate(Reason, State).