summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2014-09-25 16:36:24 +0200
committerLinus Nordberg <linus@nordberg.se>2014-09-25 16:36:24 +0200
commit256ec932dc0621c64a427da7ea76531c116263e7 (patch)
tree2fa260ee4676adeb02c1c6ee8aeea952835856be /src
parent0b253574667acde453a50a2b61cf46d6f7a6c86e (diff)
Rename inclusion_and_more/2.
Diffstat (limited to 'src')
-rw-r--r--src/plop.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plop.erl b/src/plop.erl
index 39ab2c0..b549616 100644
--- a/src/plop.erl
+++ b/src/plop.erl
@@ -26,7 +26,7 @@
%% API.
-export([start_link/2, stop/0]).
-export([get_logid/0, serialise/1]).
--export([add/2, sth/0, get/2, consistency/2, inclusion/2, inclusion_and_more/2]).
+-export([add/2, sth/0, get/2, consistency/2, inclusion/2, inclusion_and_entry/2]).
%% API for tests.
-export([read_keyfile_rsa/2, read_keyfiles_ec/2]).
-export([testing_get_pubkey/0]).
@@ -118,10 +118,10 @@ consistency(TreeSizeFirst, TreeSizeSecond) ->
{ok, mtl()} | {notfound, string()}.
inclusion(Hash, TreeSize) ->
gen_server:call(?MODULE, {inclusion, {Hash, TreeSize}}).
--spec inclusion_and_more(non_neg_integer(), non_neg_integer()) ->
- {ok, {mtl(), binary()}} | {notfound, string()}.
-inclusion_and_more(Index, TreeSize) ->
- gen_server:call(?MODULE, {inclusion_and_more, {Index, TreeSize}}).
+-spec inclusion_and_entry(non_neg_integer(), non_neg_integer()) ->
+ {ok, {mtl(), binary()}} | {notfound, string()}.
+inclusion_and_entry(Index, TreeSize) ->
+ gen_server:call(?MODULE, {inclusion_and_entry, {Index, TreeSize}}).
get_logid() ->
gen_server:call(?MODULE, {get, logid}).
testing_get_pubkey() ->
@@ -167,7 +167,7 @@ handle_call({inclusion, {Hash, TreeSize}}, _From, Plop) ->
end,
{reply, R, Plop};
-handle_call({inclusion_and_more, {Index, TreeSize}}, _From, Plop) ->
+handle_call({inclusion_and_entry, {Index, TreeSize}}, _From, Plop) ->
R = case db:find(index, Index) of
[] ->
{notfound, "Unknown index"}; % FIXME: include Index