summaryrefslogtreecommitdiff
path: root/include/rebar.hrl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-11-21 20:48:01 -0600
committerTristan Sloughter <t@crashfast.com>2014-11-22 20:24:21 -0600
commitf22db1302d710fbf017108852991cd6ac538de17 (patch)
tree2cac83b89b7aaac9da911eb63eb6ee1016ac6a60 /include/rebar.hrl
parente9b58f2775704226b514e967097e902a232081f3 (diff)
new dep graph working
Diffstat (limited to 'include/rebar.hrl')
-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()
+ }).