Shuffle some types

Put types in the modules they belong to instead of including them in
each one from the header.
This commit is contained in:
Carlos Martín Nieto
2013-08-31 14:43:25 +02:00
parent dea88e5a59
commit b04809ca59
15 changed files with 78 additions and 50 deletions

View File

@@ -6,9 +6,12 @@
-include("geef_records.hrl").
-type blob() :: geef_obj:object(blob).
-export_type([blob/0]).
-export([lookup/2, size/1, content/1]).
-spec lookup(pid(), geef_oid() | iolist()) -> {ok, geef_object()} | {error, term()}.
-spec lookup(pid(), geef_oid:oid() | iolist()) -> {ok, blob()} | {error, term()}.
lookup(Repo, Id) ->
geef_obj:lookup(Repo, Id, blob).