1 /** 2 * \file 3 * File System Watcher internal calls 4 * 5 * Authors: 6 * Gonzalo Paniagua Javier (gonzalo@ximian.com) 7 * 8 * (C) 2004 Novell, Inc. (http://www.novell.com) 9 */ 10 11 #ifndef _MONO_METADATA_FILEWATCHER_H 12 #define _MONO_METADATA_FILEWATCHER_H 13 14 #include <mono/metadata/object.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 41