summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-08-05 13:51:08 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-08-05 13:51:08 +0100
commit84fd6d19eca799cf45d2086e7e7eb5fd418e194a (patch)
treee64ebaff6f120f8da7b864f961c19da9459f8ff5
parent38b6cb44dbf85ce8aacc4b568e35e41f050c17b3 (diff)
downloadrabbitmq-server-84fd6d19eca799cf45d2086e7e7eb5fd418e194a.tar.gz
more specs
Specs for access_control, binding, alarm, auth_backend, auth_backend_internal, auth_mechanism, auth_mechansim_amqplain, auth_mechanism_cr_demo, auth_mechanism_plain, backing_queue, basic, and binary_generator are up to date.
-rw-r--r--src/rabbit_access_control.erl3
-rw-r--r--src/rabbit_binding.erl4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/rabbit_access_control.erl b/src/rabbit_access_control.erl
index c0ae18c0..ca28d686 100644
--- a/src/rabbit_access_control.erl
+++ b/src/rabbit_access_control.erl
@@ -32,6 +32,9 @@
-spec(check_user_pass_login/2 ::
(rabbit_types:username(), rabbit_types:password())
-> {'ok', rabbit_types:user()} | {'refused', string(), [any()]}).
+-spec(check_user_login/2 ::
+ (rabbit_types:username(), [{atom(), any()}])
+ -> {'ok', rabbit_types:user()} | {'refused', string(), [any()]}).
-spec(check_vhost_access/2 ::
(rabbit_types:user(), rabbit_types:vhost())
-> 'ok' | rabbit_types:channel_exit()).
diff --git a/src/rabbit_binding.erl b/src/rabbit_binding.erl
index 205d5bba..89002a70 100644
--- a/src/rabbit_binding.erl
+++ b/src/rabbit_binding.erl
@@ -68,9 +68,9 @@
-spec(info/1 :: (rabbit_types:binding()) -> rabbit_types:infos()).
-spec(info/2 :: (rabbit_types:binding(), rabbit_types:info_keys()) ->
rabbit_types:infos()).
--spec(info_all/1 :: (rabbit_types:vhost()) -> [rabbit_types:infos()]).
+-spec(info_all/1 :: (rabbit_types:vhost()) -> rabbit_types:infos()).
-spec(info_all/2 ::(rabbit_types:vhost(), rabbit_types:info_keys())
- -> [rabbit_types:infos()]).
+ -> rabbit_types:infos()).
-spec(has_for_source/1 :: (rabbit_types:binding_source()) -> boolean()).
-spec(remove_for_source/1 :: (rabbit_types:binding_source()) -> bindings()).
-spec(remove_for_destination/1 ::