2 * Copyright (C) 2006 Vincent Hanquez <vincent@snarc.org>
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 only.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * Inotify OCaml binding
56 type event = wd * type_event list * int32 * string option
58 val int_of_wd : wd -> int
59 val string_of_event : type_event -> string
61 val init : unit -> Unix.file_descr
62 val add_watch : Unix.file_descr -> string -> select_event list -> wd
63 val rm_watch : Unix.file_descr -> wd -> unit
64 val read : Unix.file_descr -> event list