summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/rebar.hrl16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/rebar.hrl b/include/rebar.hrl
index af3f81c..794d738 100644
--- a/include/rebar.hrl
+++ b/include/rebar.hrl
@@ -27,3 +27,19 @@
-else.
-type rebar_dict() :: dict().
-endif.
+
+-ifdef(namespaced_types).
+-type rebar_digraph() :: digraph:graph().
+-else.
+-type rebar_digraph() :: digraph().
+-endif.
+
+-define(GRAPH_VSN, 2).
+-type v() :: {digraph:vertex(), term()} | 'false'.
+-type e() :: {digraph:vertex(), digraph:vertex()}.
+-type graph() :: {list(v()), list(e())}.
+-record(graph,
+ {
+ vsn = ?GRAPH_VSN :: pos_integer(),
+ info = {[], []} :: graph()
+ }).