Author: gonzalo
Date: 2005-03-10 12:44:18 -0500 (Thu, 10 Mar 2005)
New Revision: 41657

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/filewatcher.c
Log:
2005-03-10 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * filewatcher.c: commented out the code for windows watcher, as we don't
        use it (we use the managed implementation instead).



Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2005-03-10 16:32:45 UTC (rev 41656)
+++ trunk/mono/mono/metadata/ChangeLog  2005-03-10 17:44:18 UTC (rev 41657)
@@ -1,3 +1,8 @@
+2005-03-10 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * filewatcher.c: commented out the code for windows watcher, as we don't
+       use it (we use the managed implementation instead).
+
 2005-03-10  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * object-internals.h (MonoThread): Remove 'unused1' field.

Modified: trunk/mono/mono/metadata/filewatcher.c
===================================================================
--- trunk/mono/mono/metadata/filewatcher.c      2005-03-10 16:32:45 UTC (rev 
41656)
+++ trunk/mono/mono/metadata/filewatcher.c      2005-03-10 17:44:18 UTC (rev 
41657)
@@ -16,7 +16,9 @@
 #include <mono/metadata/filewatcher.h>
 
 #if (defined (PLATFORM_WIN32) && WINVER >= 0x0400)
-/* Supported under windows */
+/* TODO:
+ * We use the managed watcher on windows, so the code inside this #if is never 
used
+ */
 gint
 ves_icall_System_IO_FSW_SupportsFSW (void)
 {
@@ -26,25 +28,29 @@
 gpointer
 ves_icall_System_IO_FSW_OpenDirectory (MonoString *path, gpointer reserved)
 {
+       return NULL;
+       /*
        gpointer dir;
        gchar *utf8path;
 
        MONO_ARCH_SAVE_REGS;
 
-       utf8path = mono_string_to_utf8 (path);
        dir = CreateFile (path, GENERIC_READ, FILE_SHARE_READ | 
FILE_SHARE_DELETE,
                          NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, 
NULL);
-       g_free (utf8path);
 
        return dir;
+       */
 }
 
 gboolean
 ves_icall_System_IO_FSW_CloseDirectory (gpointer handle)
 {
+       return FALSE;
+       /*
        MONO_ARCH_SAVE_REGS;
 
        return CloseHandle (handle);
+       */
 }
 
 gboolean
@@ -55,6 +61,8 @@
                                                gpointer overlap,
                                                gpointer callback)
 {
+       return FALSE;
+       /*
        gpointer dest;
        gint size;
        MonoObject *delegate = (MonoObject *) callback;
@@ -69,7 +77,7 @@
        im = mono_get_delegate_invoke (mono_object_get_class (delegate));
        func = mono_compile_method (im);
        return FALSE;
-       /* return ReadDirectoryChanges (handle, dest, size, includeSubdirs, 
filters,
+       * return ReadDirectoryChanges (handle, dest, size, includeSubdirs, 
filters,
                                     NULL, (LPOVERLAPPED) overlap,
                                     func); */
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to