diff options
author | Alex Auvolat <alex@adnab.me> | 2018-10-16 17:35:29 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-10-16 17:35:29 +0200 |
commit | 80200dc43f271938fb14ec4eb4712e8dd7375aeb (patch) | |
tree | 27b4e8f8a5e0ae9a939f8723cb1123b2592592e8 /shard/lib/app/directory.ex | |
parent | 9ab6bdd4536a060f981932f09c5c8f722de25a81 (diff) | |
download | shard-80200dc43f271938fb14ec4eb4712e8dd7375aeb.tar.gz shard-80200dc43f271938fb14ec4eb4712e8dd7375aeb.zip |
nothing big
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}} |