summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBen Hood <0x6e6562@gmail.com>2008-09-27 21:11:02 +0100
committerBen Hood <0x6e6562@gmail.com>2008-09-27 21:11:02 +0100
commit8322a19757583d44a5756cc5085b9151b2e668dc (patch)
treedcad36df1c08354b9bfe8d61b8ef709f5abe5132 /include
parentadce7ef238e992d5861ffc8e40887cc5d830f5ee (diff)
downloadrabbitmq-server-8322a19757583d44a5756cc5085b9151b2e668dc.tar.gz
Dialyzer fixes
Diffstat (limited to 'include')
-rw-r--r--include/rabbit.hrl5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl
index 0ab51b36..4189d20f 100644
--- a/include/rabbit.hrl
+++ b/include/rabbit.hrl
@@ -70,6 +70,7 @@
-type(node() :: atom()).
-type(socket() :: port()).
-type(thunk(T) :: fun(() -> T)).
+-type(function(T) :: fun((T) -> T)).
%% this is really an abstract type, but dialyzer does not support them
-type(guid() :: any()).
@@ -84,6 +85,10 @@
-type(user() ::
#user{username :: username(),
password :: password()}).
+-type(resource() ::
+ #resource{virtual_host :: vhost(),
+ kind :: 'queue' | 'exchange',
+ name :: resource_name()}).
-type(amqqueue() ::
#amqqueue{name :: queue_name(),
durable :: bool(),