New test.
[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
16 #ifdef HAVE_UNISTD_H
17 #include <unistd.h>
18 #endif
19
20 #ifdef HAVE_SYS_SYSCALL_H
21 #include <sys/syscall.h>
22 #endif
23
24 G_BEGIN_DECLS
25
26 gboolean ves_icall_System_IO_FSW_SupportsFSW (void);
27
28 gpointer ves_icall_System_IO_FSW_OpenDirectory (MonoString *path, gpointer reserved);
29
30 gboolean ves_icall_System_IO_FSW_CloseDirectory (gpointer handle);
31
32 gboolean ves_icall_System_IO_FSW_ReadDirectoryChanges (
33                                                 gpointer handle,
34                                                 MonoArray *buffer,
35                                                 gboolean includeSubdirs,
36                                                 gint filters,
37                                                 gpointer overlap,
38                                                 gpointer callback);
39
40 gboolean ves_icall_System_IO_FAMW_InternalFAMNextEvent (gpointer conn,
41                                                         MonoString **filename,
42                                                         gint *code,
43                                                         gint *reqnum);
44
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);
48
49 G_END_DECLS
50
51 #endif
52