diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2010-11-11 20:28:33 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-11-11 20:28:33 +0000 |
commit | 44cf639fb82a396082f8c79bcd7ec018d344de13 (patch) | |
tree | 8856116944371a37f129474219efef44249c0acc | |
parent | c15fe8df0a4fd77a89243f98fd198f96527396d5 (diff) | |
download | rabbitmq-server-44cf639fb82a396082f8c79bcd7ec018d344de13.tar.gz |
move around and correct digraph builder types
-rw-r--r-- | src/rabbit_misc.erl | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl index ef949836..0522afdc 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()). |