Merge pull request #1936 from esdrubal/DotNetRelativeOrAbsolute
[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 G_BEGIN_DECLS
23
24 gint ves_icall_System_IO_FSW_SupportsFSW (void);
25
26 gboolean ves_icall_System_IO_FAMW_InternalFAMNextEvent (gpointer conn,
27                                                         MonoString **filename,
28                                                         gint *code,
29                                                         gint *reqnum);
30
31 int ves_icall_System_IO_InotifyWatcher_GetInotifyInstance (void);
32 int ves_icall_System_IO_InotifyWatcher_AddWatch (int fd, MonoString *directory, gint32 mask);
33 int ves_icall_System_IO_InotifyWatcher_RemoveWatch (int fd, gint32 watch_descriptor);
34
35 int ves_icall_System_IO_KqueueMonitor_kevent_notimeout (int *kq, gpointer changelist, int nchanges, gpointer eventlist, int nevents);
36
37 G_END_DECLS
38
39 #endif
40