2010-03-01 Robert Jordan <robertj@gmx.net>
[mono.git] / mono / metadata / filewatcher.h
1 /*
2  * filewatcher.h: File System Watcher internal calls
3  *
4  * Authors:
5  *      Gonzalo Paniagua Javier (gonzalo@ximian.com)
6  *
7  * (C) 2004 Novell, Inc. (http://www.novell.com)
8  */
9
10 #ifndef _MONO_METADATA_FILEWATCHER_H
11 #define _MONO_METADATA_FILEWATCHER_H
12
13 #include <mono/metadata/object.h>
14 #include <mono/io-layer/io-layer.h>
15 #include "mono/utils/mono-compiler.h"
16 #include <glib.h>
17
18 #ifdef HAVE_UNISTD_H
19 #include <unistd.h>
20 #endif
21
22 #ifdef HAVE_SYS_SYSCALL_H
23 #include <sys/syscall.h>
24 #endif
25
26 G_BEGIN_DECLS
27
28 gboolean ves_icall_System_IO_FSW_SupportsFSW (void) MONO_INTERNAL;
29
30 gboolean ves_icall_System_IO_FAMW_InternalFAMNextEvent (gpointer conn,
31                                                         MonoString **filename,
32                                                         gint *code,
33                                                         gint *reqnum) MONO_INTERNAL;
34
35 int ves_icall_System_IO_InotifyWatcher_GetInotifyInstance (void) MONO_INTERNAL;
36 int ves_icall_System_IO_InotifyWatcher_AddWatch (int fd, MonoString *directory, gint32 mask) MONO_INTERNAL;
37 int ves_icall_System_IO_InotifyWatcher_RemoveWatch (int fd, gint32 watch_descriptor) MONO_INTERNAL;
38
39 G_END_DECLS
40
41 #endif
42