summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-11-11 20:28:33 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2010-11-11 20:28:33 +0000
commit67fa3a9677d1607bff1d3dc63fb2eca5237ea8e7 (patch)
tree8856116944371a37f129474219efef44249c0acc
parentb632949ee3c9178dbe8635a27b05eaa681f0b427 (diff)
downloadrabbitmq-server-git-67fa3a9677d1607bff1d3dc63fb2eca5237ea8e7.tar.gz
move around and correct digraph builder types
-rw-r--r--src/rabbit_misc.erl11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index ef949836c8..0522afdc8d 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -84,6 +84,12 @@
-type(optdef() :: {flag, string()} | {option, string(), any()}).
-type(channel_or_connection_exit()
:: rabbit_types:channel_exit() | rabbit_types:connection_exit()).
+-type(digraph_label() :: term()).
+-type(graph_vertex_fun() ::
+ fun ((atom(), [term()]) -> {digraph:vertex(), digraph_label()})).
+-type(graph_edge_fun() ::
+ fun ((atom(), [term()]) -> {digraph:vertex(), digraph:vertex()})).
+-type(graph_error_fun() :: fun ((any()) -> any() | no_return())).
-spec(method_record_type/1 :: (rabbit_framing:amqp_method_record())
-> rabbit_framing:amqp_method_name()).
@@ -185,11 +191,6 @@
-spec(get_options/2 :: ([optdef()], [string()])
-> {[string()], [{string(), any()}]}).
-spec(all_module_attributes/1 :: (atom()) -> [{atom(), [term()]}]).
--type(graph_vertex_fun() ::
- fun ((atom(), [term()]) -> {digraph:vertex(), digraph:label()})).
--type(graph_edge_fun() ::
- fun ((atom(), [term()]) -> {digraph:vertex(), digraph:vertex()})).
--type(graph_error_fun() :: fun ((any()) -> any() | no_return())).
-spec(build_acyclic_graph/4 :: (graph_vertex_fun(), graph_edge_fun(),
graph_error_fun(), [{atom(), [term()]}]) ->
digraph()).