diff options
Diffstat (limited to 'shard/lib/app/directory.ex')
-rw-r--r-- | shard/lib/app/directory.ex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/shard/lib/app/directory.ex b/shard/lib/app/directory.ex index 55413c4..a15de21 100644 --- a/shard/lib/app/directory.ex +++ b/shard/lib/app/directory.ex @@ -22,6 +22,10 @@ defmodule SApp.Directory do end end + defmodule State do + defstruct [:owner, :public, :name, :manifest, :id, :netgroup, :files, :revfiles] + end + def start_link(manifest) do GenServer.start_link(__MODULE__, manifest) end @@ -44,7 +48,7 @@ defmodule SApp.Directory do revfiles = for {n, m} <- SData.SignRev.get(files), into: %{}, do: {m, n} - {:ok, %{ + {:ok, %State{ owner: owner, public: public, name: name, manifest: manifest, id: id, netgroup: netgroup, files: files, revfiles: revfiles}} |