The command processing loop is working now. Ready for the real deal

This commit is contained in:
Maas-Maarten Zeeman
2011-10-21 00:03:49 +02:00
parent 3a0eb12fd8
commit 87318f8764
2 changed files with 104 additions and 37 deletions

View File

@@ -22,10 +22,10 @@ open(Filename) ->
%% @doc Open a database connection
%%
open(Filename, Timeout) ->
Db = esqlite_start(),
{ok, Db} = esqlite_start(),
Ref = make_ref(),
ok = esqlite_open(Db, Ref, Filename, self()),
ok = esqlite_open(Db, Ref, self(), Filename),
case receive_answer(Ref, Timeout) of
ok ->
{ok, Db};