[amd64] Fix mingw-w64 build. (#4519)
[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/utils/mono-compiler.h"
15 #include <glib.h>
16
17 #ifdef HAVE_UNISTD_H
18 #include <unistd.h>
19 #endif
20
21 G_BEGIN_DECLS
22
23 gint ves_icall_System_IO_FSW_SupportsFSW (void);
24
25 gboolean ves_icall_System_IO_FAMW_InternalFAMNextEvent (gpointer conn,
26                                                         MonoString **filename,
27                                                         gint *code,
28                                                         gint *reqnum);
29
30 int ves_icall_System_IO_InotifyWatcher_GetInotifyInstance (void);
31 int ves_icall_System_IO_InotifyWatcher_AddWatch (int fd, MonoString *directory, gint32 mask);
32 int ves_icall_System_IO_InotifyWatcher_RemoveWatch (int fd, gint32 watch_descriptor);
33
34 int ves_icall_System_IO_KqueueMonitor_kevent_notimeout (int *kq, gpointer changelist, int nchanges, gpointer eventlist, int nevents);
35
36 G_END_DECLS
37
38 #endif
39