summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-06-06 17:00:21 +0200
committernsensfel <SpamShield0@noot-noot.org>2018-06-06 17:00:21 +0200
commitdaa6c9b3fa9a62d3f6a1a696f67976e904d641b9 (patch)
treeb4a599ef48871050dbfe78dae0397ad67d491ed5 /src/shared/struct/sh_db_item.erl
parent82081d45fd64294f4bc417085e06284f3487b32f (diff)
...
Diffstat (limited to 'src/shared/struct/sh_db_item.erl')
-rw-r--r--src/shared/struct/sh_db_item.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/struct/sh_db_item.erl b/src/shared/struct/sh_db_item.erl
index 98a1cb4..3692a88 100644
--- a/src/shared/struct/sh_db_item.erl
+++ b/src/shared/struct/sh_db_item.erl
@@ -47,7 +47,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% EXPORTED FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
--spec new (any(), db_user:permission(), any()) -> type().
+-spec new (any(), sh_db_user:permission(), any()) -> type().
new (ID, Permission, Value) ->
#db_item
{
@@ -59,13 +59,13 @@ new (ID, Permission, Value) ->
-spec get_id (type()) -> any().
get_id (#db_item { id = Result }) -> Result.
--spec get_permission (type()) -> db_user:permission().
+-spec get_permission (type()) -> sh_db_user:permission().
get_permission (#db_item { perm = Result }) -> Result.
-spec get_value (type()) -> any().
get_value (#db_item { val = Result }) -> Result.
--spec set_permission (db_user:permission(), type()) -> type().
+-spec set_permission (sh_db_user:permission(), type()) -> type().
set_permission (Perm, Item) -> Item#db_item{ perm = Perm }.
-spec set_value (any(), type()) -> type().