Convert geef_odb to a gen_server

This commit is contained in:
Carlos Martín Nieto
2013-05-23 10:49:00 +02:00
parent 41113f3221
commit 7b1dacffc7
3 changed files with 88 additions and 21 deletions

View File

@@ -1,11 +1,9 @@
-record(geef_ref, {handle, name :: binary(), type :: atom(), target :: binary() | geef_oid()}).
-record(geef_odb, {handle}).
-record(geef_oid, {oid}).
-record(geef_object, {type :: atom(), handle}).
-record(geef_index_entry, {mode, id :: geef_oid(), path :: iolist()}).
-type geef_ref() :: #geef_ref{}.
-type geef_odb() :: #geef_odb{}.
-type geef_oid() :: #geef_oid{}.
-type geef_object() :: #geef_object{}.
-type geef_index_entry() :: #geef_index_entry{}.