aboutsummaryrefslogtreecommitdiff
path: root/Inotify.dcl
diff options
context:
space:
mode:
Diffstat (limited to 'Inotify.dcl')
-rw-r--r--Inotify.dcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/Inotify.dcl b/Inotify.dcl
index e021c45..3811abc 100644
--- a/Inotify.dcl
+++ b/Inotify.dcl
@@ -9,7 +9,7 @@ from Data.Maybe import ::Maybe
:: INMask :== Int
:: INEvent :== Int
-:: INCallback st :== INEvent st *World -> *(st, *World)
+:: INCallback st :== INEvent (Maybe String) st *World -> *(st, *World)
(|-) infixl 6 :: (INMask INMask -> INMask)
@@ -23,6 +23,8 @@ inotify_rm_watch :: !INWatch !*(Inotify st) -> *(Bool, *Inotify st)
inotify_poll :: *(Inotify st) -> *Inotify st
inotify_check :: *(Inotify st) *World -> *(*Inotify st, *World)
+inotify_loop_forever :: *(Inotify st) *World -> *(*Inotify st, *World)
+
IN_ACCESS :== 0x00000001 // File was accessed
IN_MODIFY :== 0x00000002 // File was modified
IN_ATTRIB :== 0x00000004 // Metadata changed