repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add task deletion and acknowledgements
[mTask.git]
/
Utils
/
SDS.icl
diff --git
a/Utils/SDS.icl
b/Utils/SDS.icl
index
f1184a8
..
cd684ae
100644
(file)
--- a/
Utils/SDS.icl
+++ b/
Utils/SDS.icl
@@
-22,3
+22,9
@@
bcStateStore = memoryShare "mTaskBCState" zero
mTaskTaskStore :: Shared [String]
mTaskTaskStore = memoryShare "mTaskTasks" ["count", "ledon", "ledoff"]
mTaskTaskStore :: Shared [String]
mTaskTaskStore = memoryShare "mTaskTasks" ["count", "ledon", "ledoff"]
+
+getSDSStore :: MTaskShare -> Shared Int
+getSDSStore sh = memoryShare sh.realShare 0
+
+getSDSRecord :: Int -> Task MTaskShare
+getSDSRecord i = get sdsStore @ \l->hd [s\\s<-l | s.identifier == i]