Initial snarf.
[shack.git] / libmojave / unix / lm_notify.mli
blob0a61d31deca5106e90e1148b54485118e767accf
1 (*
2 * File-change notification services.
4 * ----------------------------------------------------------------
6 * @begin[license]
7 * Copyright (C) 2004 Mojave Group, Caltech
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation,
12 * version 2.1 of the License.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 * Additional permission is given to link this library with the
24 * OpenSSL project's "OpenSSL" library, and with the OCaml runtime,
25 * and you may distribute the linked executables. See the file
26 * LICENSE.libmojave for more details.
28 * Author: Jason Hickey
29 * @email{jyh@cs.caltech.edu}
30 * @end[license]
34 * Event manager.
36 type t
39 * Events.
41 type code =
42 Changed
43 | Deleted
44 | StartExecuting
45 | StopExecuting
46 | Created
47 | Moved
48 | Acknowledge
49 | Exists
50 | EndExist
51 | DirectoryChanged
53 type event =
54 { notify_code : code;
55 notify_name : string
59 * Debugging.
61 val debug_notify : bool ref
62 val string_of_code : code -> string
65 * Methods.
67 val enabled : bool
68 val create : unit -> t
69 val close : t -> unit
70 val file_descr : t -> Unix.file_descr
71 val monitor : t -> string -> bool -> unit
72 val pending : t -> bool
73 val next_event : t -> event
75 val suspend : t -> string -> unit
76 val resume : t -> string -> unit
77 val cancel : t -> string -> unit
79 val suspend_all : t -> unit
80 val resume_all : t -> unit
81 val cancel_all : t -> unit
83 (*!
84 * @docoff
86 * -*-
87 * Local Variables:
88 * Caml-master: "compile"
89 * End:
90 * -*-