inotify.mli (1419B)
1 (* 2 * Copyright (C) 2006-2008 Vincent Hanquez <vincent@snarc.org> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU Lesser General Public License as published 6 * by the Free Software Foundation; version 2.1 only. with the special 7 * exception on linking described in file LICENSE. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU Lesser General Public License for more details. 13 * 14 * Inotify OCaml binding 15 *) 16 type select_event = 17 | S_Access 18 | S_Attrib 19 | S_Close_write 20 | S_Close_nowrite 21 | S_Create 22 | S_Delete 23 | S_Delete_self 24 | S_Modify 25 | S_Move_self 26 | S_Moved_from 27 | S_Moved_to 28 | S_Open 29 | S_Dont_follow 30 | S_Mask_add 31 | S_Oneshot 32 | S_Onlydir 33 | S_Excl_unlink 34 | S_Move 35 | S_Close 36 | S_All 37 38 type type_event = 39 | Access 40 | Attrib 41 | Close_write 42 | Close_nowrite 43 | Create 44 | Delete 45 | Delete_self 46 | Modify 47 | Move_self 48 | Moved_from 49 | Moved_to 50 | Open 51 | Ignored 52 | Isdir 53 | Q_overflow 54 | Unmount 55 56 type wd 57 type event = wd * type_event list * int32 * string option 58 59 val int_of_wd : wd -> int 60 val string_of_event : type_event -> string 61 62 val init : unit -> Unix.file_descr 63 val add_watch : Unix.file_descr -> string -> select_event list -> wd 64 val rm_watch : Unix.file_descr -> wd -> unit 65 val read : Unix.file_descr -> event list