diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2010-09-03 15:32:16 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-09-03 15:32:16 +0100 |
commit | 9a484e99114d27eba19685ccc48213bc3a47dbea (patch) | |
tree | b60089d08f1b59099f8970236283039386cfda4d /src/rabbit_router.erl | |
parent | d4d10ffaa96cc2d50643f3fea1083ce6fc76b5f4 (diff) | |
download | rabbitmq-server-9a484e99114d27eba19685ccc48213bc3a47dbea.tar.gz |
add some missing specs
Diffstat (limited to 'src/rabbit_router.erl')
-rw-r--r-- | src/rabbit_router.erl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/rabbit_router.erl b/src/rabbit_router.erl index ec049a1a..bfccb0da 100644 --- a/src/rabbit_router.erl +++ b/src/rabbit_router.erl @@ -33,9 +33,7 @@ -include_lib("stdlib/include/qlc.hrl"). -include("rabbit.hrl"). --export([deliver/2, - match_bindings/2, - match_routing_key/2]). +-export([deliver/2, match_bindings/2, match_routing_key/2]). %%---------------------------------------------------------------------------- @@ -45,9 +43,15 @@ -type(routing_key() :: binary()). -type(routing_result() :: 'routed' | 'unroutable' | 'not_delivered'). +-type(qpids() :: [pid()]). -spec(deliver/2 :: - ([pid()], rabbit_types:delivery()) -> {routing_result(), [pid()]}). + (qpids(), rabbit_types:delivery()) -> {routing_result(), qpids()}). +-spec(match_bindings/2 :: (rabbit_exchange:name(), + fun ((rabbit_types:binding()) -> boolean())) -> + qpids()). +-spec(match_routing_key/2 :: (rabbit_exchange:name(), routing_key() | '_') -> + qpids()). -endif. |