diff options
author | Vlad Alexandru Ionescu <vlad@rabbitmq.com> | 2011-01-22 00:08:36 +0000 |
---|---|---|
committer | Vlad Alexandru Ionescu <vlad@rabbitmq.com> | 2011-01-22 00:08:36 +0000 |
commit | 9af87d4f2762ea8652dec8eb42d1c751d5028556 (patch) | |
tree | 484c03801b36005aae94cdd534fb80f6983b857d | |
parent | 1cc1ac6dc8c43a7d6fc6e36abb80cecd3a74414c (diff) | |
download | rabbitmq-server-9af87d4f2762ea8652dec8eb42d1c751d5028556.tar.gz |
adding specs to rabbit_client_sup
-rw-r--r-- | src/rabbit_client_sup.erl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/rabbit_client_sup.erl b/src/rabbit_client_sup.erl index 336a8cd7..dbdc6cd4 100644 --- a/src/rabbit_client_sup.erl +++ b/src/rabbit_client_sup.erl @@ -22,6 +22,21 @@ -export([init/1]). +-include("rabbit.hrl"). + +%%---------------------------------------------------------------------------- + +-ifdef(use_specs). + +-spec(start_link/1 :: (mfa()) -> + rabbit_types:ok_pid_or_error()). +-spec(start_link/2 :: ({'local', atom()}, mfa()) -> + rabbit_types:ok_pid_or_error()). + +-endif. + +%%---------------------------------------------------------------------------- + start_link(Callback) -> supervisor2:start_link(?MODULE, Callback). |