summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2008-11-12 23:27:12 +0000
committerMatthias Radestock <matthias@lshift.net>2008-11-12 23:27:12 +0000
commit62f021010858ec2c4a3e5f555968b0dc68305ebc (patch)
treeb4c7829f6859032880337eb741ea4521acc945d4
parent17f996b9df7c8b9661b5edc8f2f90b6ca919099a (diff)
downloadrabbitmq-server-git-62f021010858ec2c4a3e5f555968b0dc68305ebc.tar.gz
move info types into common header file
so we can re-use them
-rw-r--r--include/rabbit.hrl2
-rw-r--r--src/rabbit_amqqueue.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl
index 706a92af7a..267e018b44 100644
--- a/include/rabbit.hrl
+++ b/include/rabbit.hrl
@@ -66,6 +66,8 @@
-type(node() :: atom()).
-type(socket() :: port()).
-type(thunk(T) :: fun(() -> T)).
+-type(info_key() :: atom()).
+-type(info() :: {info_key(), any()}).
%% this is really an abstract type, but dialyzer does not support them
-type(guid() :: any()).
diff --git a/src/rabbit_amqqueue.erl b/src/rabbit_amqqueue.erl
index 2b5b628ddf..c93ae89a3b 100644
--- a/src/rabbit_amqqueue.erl
+++ b/src/rabbit_amqqueue.erl
@@ -55,8 +55,6 @@
-type(qfun(A) :: fun ((amqqueue()) -> A)).
-type(ok_or_errors() ::
'ok' | {'error', [{'error' | 'exit' | 'throw', any()}]}).
--type(info_key() :: atom()).
--type(info() :: {info_key(), any()}).
-spec(start/0 :: () -> 'ok').
-spec(recover/0 :: () -> 'ok').