diff options
author | Ingela Anderton Andin <[email protected]> | 2011-12-05 12:09:52 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2011-12-05 12:09:52 +0100 |
commit | e930283dbe0c7aeefb31d535e90b644a993cc0f7 (patch) | |
tree | 1042020e09d532bccc132d8dae10a976e0ac3c3b /lib/ssl/src/ssl_session_cache_api.erl | |
parent | 9c14afeb742f9e20ead11316a467483d4a0c48ba (diff) | |
parent | 2b8deca534abb8e329cefd354e351d6f05b1f933 (diff) | |
download | otp-e930283dbe0c7aeefb31d535e90b644a993cc0f7.tar.gz otp-e930283dbe0c7aeefb31d535e90b644a993cc0f7.tar.bz2 otp-e930283dbe0c7aeefb31d535e90b644a993cc0f7.zip |
Merge branch 'ia/ssl/dialyzer-R15'
* ia/ssl/dialyzer-R15:
Callback specs now handled by -callback directive in the behaviour module.
Diffstat (limited to 'lib/ssl/src/ssl_session_cache_api.erl')
-rw-r--r-- | lib/ssl/src/ssl_session_cache_api.erl | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/lib/ssl/src/ssl_session_cache_api.erl b/lib/ssl/src/ssl_session_cache_api.erl index f8416bf327..f2b22b0f1b 100644 --- a/lib/ssl/src/ssl_session_cache_api.erl +++ b/lib/ssl/src/ssl_session_cache_api.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2008-2010. All Rights Reserved. +%% Copyright Ericsson AB 2008-2011. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -20,18 +20,15 @@ %% -module(ssl_session_cache_api). +-include("ssl_handshake.hrl"). +-include("ssl_internal.hrl"). --export([behaviour_info/1]). +-type key() :: {{host(), inet:port_number()}, session_id()} | {inet:port_number(), session_id()}. -behaviour_info(callbacks) -> - [ - {init, 1}, - {terminate, 1}, - {lookup, 2}, - {update, 3}, - {delete, 2}, - {foldl, 3}, - {select_session, 2} - ]; -behaviour_info(_) -> - undefined. +-callback init(list()) -> db_handle(). +-callback terminate(db_handle()) -> any(). +-callback lookup(db_handle(), key()) -> #session{} | undefined. +-callback update(db_handle(), key(), #session{}) -> any(). +-callback delete(db_handle(), key()) -> any(). +-callback foldl(fun(), term(), db_handle()) -> term(). +-callback select_session(db_handle(), {host(), inet:port_number()} | inet:port_number()) -> [#session{}]. |