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

@@ -73,13 +73,13 @@ init(Handle) ->
%% @private
handle_call({sort, Opts}, _From, State = #state{handle=Handle}) ->
geef:revwalk_sorting(Handle, Opts),
geef_nif:revwalk_sorting(Handle, Opts),
{reply, ok, State};
handle_call({push, Oid}, _From, State = #state{handle=Handle}) ->
Reply = geef:revwalk_push(Handle, Oid, false),
Reply = geef_nif:revwalk_push(Handle, Oid, false),
{reply, Reply, State};
handle_call({hide, Oid}, _From, State = #state{handle=Handle}) ->
Reply = geef:revwalk_push(Handle, Oid, true),
Reply = geef_nif:revwalk_push(Handle, Oid, true),
{reply, Reply, State};
handle_call(next, _From, State = #state{handle=Handle}) ->
Reply = handle_next(Handle),
@@ -108,7 +108,7 @@ code_change(_OldVsn, State, _Extra) ->
%%%===================================================================
handle_next(Handle) ->
case geef:revwalk_next(Handle) of
case geef_nif:revwalk_next(Handle) of
{ok, Oid} ->
{ok, #oid{oid=Oid}};
Other ->