2005-11-16 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mono / metadata / file-io.h
index 55ce838308783e6f9844e1c2967ed5b4671c58ca..6ef552ae97fa028e21f85f87da5489575cbe659d 100644 (file)
@@ -17,6 +17,8 @@
 #include <mono/metadata/object-internals.h>
 #include <mono/io-layer/io-layer.h>
 
+G_BEGIN_DECLS
+
 /* This is a copy of System.IO.FileAccess */
 typedef enum {
        FileAccess_Read=0x01,
@@ -95,21 +97,6 @@ typedef struct _MonoFSAsyncResult {
        MonoDelegate *real_cb;
 } MonoFSAsyncResult;
 
-#ifdef PLATFORM_WIN32
-typedef struct _WapiOverlapped WapiOverlapped;
-
-struct _WapiOverlapped
-{
-       guint32 Internal;
-       guint32 InternalHigh;
-       guint32 Offset;
-       guint32 OffsetHigh;
-       gpointer hEvent;
-       gpointer handle1;
-       gpointer handle2;
-};
-#endif
-
 /* System.IO.MonoIO */
 
 extern MonoBoolean
@@ -118,16 +105,9 @@ ves_icall_System_IO_MonoIO_CreateDirectory (MonoString *path, gint32 *error);
 extern MonoBoolean
 ves_icall_System_IO_MonoIO_RemoveDirectory (MonoString *path, gint32 *error);
 
-extern HANDLE 
-ves_icall_System_IO_MonoIO_FindFirstFile (MonoString *path, MonoIOStat *stat,
-                                         gint32 *error);
-
-extern MonoBoolean
-ves_icall_System_IO_MonoIO_FindNextFile (HANDLE find, MonoIOStat *stat,
-                                        gint32 *error);
-
-extern MonoBoolean
-ves_icall_System_IO_MonoIO_FindClose (HANDLE find, gint32 *error);
+MonoArray *
+ves_icall_System_IO_MonoIO_GetFileSystemEntries (MonoString *_path, MonoString *_pattern,
+                                       gint mask, gint attrs, gint32 *error);
 
 extern MonoString *
 ves_icall_System_IO_MonoIO_GetCurrentDirectory (gint32 *error);
@@ -229,18 +209,11 @@ ves_icall_System_IO_MonoIO_get_InvalidPathChars (void);
 extern gint32
 ves_icall_System_IO_MonoIO_GetTempPath (MonoString **mono_name);
 
-extern MonoBoolean
-ves_icall_System_IO_MonoIO_GetSupportsAsync (void);
-
-extern MonoBoolean
-ves_icall_System_IO_MonoIO_BeginRead (HANDLE handle, MonoFSAsyncResult *ares);
-
-extern MonoBoolean
-ves_icall_System_IO_MonoIO_BeginWrite (HANDLE handle, MonoFSAsyncResult *ares);
-
 extern void ves_icall_System_IO_MonoIO_Lock (HANDLE handle, gint64 position,
                                             gint64 length, gint32 *error);
 extern void ves_icall_System_IO_MonoIO_Unlock (HANDLE handle, gint64 position,
                                               gint64 length, gint32 *error);
 
+G_END_DECLS
+
 #endif /* _MONO_METADATA_FILEIO_H_ */