2 * filewatcher.h: File System Watcher internal calls
5 * Gonzalo Paniagua Javier (gonzalo@ximian.com)
7 * (C) 2004 Novell, Inc. (http://www.novell.com)
10 #ifndef _MONO_METADATA_FILEWATCHER_H
11 #define _MONO_METADATA_FILEWATCHER_H
13 #include <mono/metadata/object.h>
14 #include <mono/io-layer/io-layer.h>
20 #ifdef HAVE_SYS_SYSCALL_H
21 #include <sys/syscall.h>
26 gboolean ves_icall_System_IO_FSW_SupportsFSW (void);
28 gpointer ves_icall_System_IO_FSW_OpenDirectory (MonoString *path, gpointer reserved);
30 gboolean ves_icall_System_IO_FSW_CloseDirectory (gpointer handle);
32 gboolean ves_icall_System_IO_FSW_ReadDirectoryChanges (
35 gboolean includeSubdirs,
40 gboolean ves_icall_System_IO_FAMW_InternalFAMNextEvent (gpointer conn,
41 MonoString **filename,
45 int ves_icall_System_IO_InotifyWatcher_GetInotifyInstance (void);
46 int ves_icall_System_IO_InotifyWatcher_AddWatch (int fd, MonoString *directory, gint32 mask);
47 int ves_icall_System_IO_InotifyWatcher_RemoveWatch (int fd, gint32 watch_descriptor);