aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2010-07-07 10:47:46 +0200
committerRaimo Niskanen <[email protected]>2010-07-07 10:47:46 +0200
commit9b02822645a15985fca8f73b75456538c362cd2a (patch)
tree815f21f246dd2e4f08c9f146b62aa4bfe86f00f1
parenta1a9aff12c1365dc155328410c5253d7495f757f (diff)
parent1c511359ba2556fdf357d778d7e20b5468db97d8 (diff)
downloadotp-9b02822645a15985fca8f73b75456538c362cd2a.tar.gz
otp-9b02822645a15985fca8f73b75456538c362cd2a.tar.bz2
otp-9b02822645a15985fca8f73b75456538c362cd2a.zip
Merge branch 'ks/auth-specs' into dev
* ks/auth-specs: auth: Fix types and specs
-rw-r--r--lib/kernel/src/auth.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/kernel/src/auth.erl b/lib/kernel/src/auth.erl
index 7fe30ae828..5c7fe2421d 100644
--- a/lib/kernel/src/auth.erl
+++ b/lib/kernel/src/auth.erl
@@ -50,6 +50,8 @@
%% Exported functions
%%----------------------------------------------------------------------
+-spec start_link() -> {'ok',pid()} | {'error', term()} | 'ignore'.
+
start_link() ->
gen_server:start_link({local, auth}, auth, [], []).
@@ -134,7 +136,9 @@ init([]) ->
%% The net kernel will let all message to the auth server
%% through as is
--type calls() :: 'echo' | 'sync_cookie' | {'set_cookie', node(), term()}.
+-type calls() :: 'echo' | 'sync_cookie'
+ | {'get_cookie', node()}
+ | {'set_cookie', node(), term()}.
-spec handle_call(calls(), {pid(), term()}, state()) ->
{'reply', 'hello' | 'true' | 'nocookie' | cookie(), state()}.