summary refs log tree commit diff stats
path: root/lib/posix/inotify.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/posix/inotify.nim')
-rw-r--r--lib/posix/inotify.nim7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/posix/inotify.nim b/lib/posix/inotify.nim
index c6f0633ff..14cac4d72 100644
--- a/lib/posix/inotify.nim
+++ b/lib/posix/inotify.nim
@@ -12,14 +12,15 @@
 # Get the platform-dependent flags.  
 # Structure describing an inotify event.  
 type 
-  Tinotify_event*{.pure, final, importc: "struct inotify_event", 
+  InotifyEvent*{.pure, final, importc: "struct inotify_event", 
                    header: "<sys/inotify.h>".} = object 
     wd*{.importc: "wd".}: cint # Watch descriptor.  
     mask*{.importc: "mask".}: uint32 # Watch mask.  
     cookie*{.importc: "cookie".}: uint32 # Cookie to synchronize two events.  
     len*{.importc: "len".}: uint32 # Length (including NULs) of name.  
     name*{.importc: "name".}: char # Name.  
-    
+{.deprecated: [Tinotify_event: InotifyEvent].}
+
 # Supported events suitable for MASK parameter of INOTIFY_ADD_WATCH.  
 const 
   IN_ACCESS* = 0x00000001   # File was accessed.  
@@ -69,4 +70,4 @@ proc inotify_add_watch*(fd: cint; name: cstring; mask: uint32): cint{.
     cdecl, importc: "inotify_add_watch", header: "<sys/inotify.h>".}
 # Remove the watch specified by WD from the inotify instance FD.  
 proc inotify_rm_watch*(fd: cint; wd: cint): cint{.cdecl, 
-    importc: "inotify_rm_watch", header: "<sys/inotify.h>".}
\ No newline at end of file
+    importc: "inotify_rm_watch", header: "<sys/inotify.h>".}