aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh.hrl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2017-03-02 20:02:50 +0100
committerHans Nilsson <[email protected]>2017-04-07 10:19:55 +0200
commitccef9f6e379a2cee828a9b914a49a4ebc831f936 (patch)
tree98fa6a64deeb0b075afea3e515eb7e5b389546d6 /lib/ssh/src/ssh.hrl
parent7925b59450dd6f34b756da7b10dd10af95304d94 (diff)
downloadotp-ccef9f6e379a2cee828a9b914a49a4ebc831f936.tar.gz
otp-ccef9f6e379a2cee828a9b914a49a4ebc831f936.tar.bz2
otp-ccef9f6e379a2cee828a9b914a49a4ebc831f936.zip
ssh: Make an internal option delete function
Diffstat (limited to 'lib/ssh/src/ssh.hrl')
-rw-r--r--lib/ssh/src/ssh.hrl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh.hrl b/lib/ssh/src/ssh.hrl
index c1ba58ed40..63eeb0bd0a 100644
--- a/lib/ssh/src/ssh.hrl
+++ b/lib/ssh/src/ssh.hrl
@@ -89,6 +89,10 @@
-define(PUT_INTERNAL_OPT(KeyVal,Opts), ?do_put_opt(internal_options,KeyVal,Opts) ).
-define(PUT_SOCKET_OPT(KeyVal,Opts), ?do_put_opt(socket_options, KeyVal,Opts) ).
+-define(do_del_opt(C,K,O), ssh_options:delete_key(C,K,O, ?MODULE,?LINE)).
+-define(DELETE_INTERNAL_OPT(Key,Opts), ?do_del_opt(internal_options,Key,Opts) ).
+
+
%% Types
-type role() :: client | server .
-type ok_error(SuccessType) :: {ok, SuccessType} | {error, any()} .