Move nif functions to geef_nif

This commit is contained in:
Carlos Martín Nieto
2013-04-25 11:05:57 +02:00
parent 54d9e8b63a
commit 65227fe85b
10 changed files with 31 additions and 31 deletions

View File

@@ -12,12 +12,12 @@
%% @doc Get the hex-encoded hash
-spec fmt(oid()) -> binary().
fmt(#oid{oid=Oid}) ->
geef:oid_fmt(Oid).
geef_nif:oid_fmt(Oid).
%% @doc Parse an iolist as a hash
-spec parse(iolist()) -> oid().
parse(Sha) ->
Oid = geef:oid_parse(Sha),
Oid = geef_nif:oid_parse(Sha),
#oid{oid=Oid}.
-ifdef(TEST).