2004-11-04 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mono / io-layer / io-private.h
index 306e253ab0d8af44bc8bbcee37c10113ab6860e9..0fd2b4a7d4bec586e697c34a555b0913571306b9 100644 (file)
@@ -12,7 +12,8 @@
 
 #include <config.h>
 #include <glib.h>
-#include <glob.h>
+#include <dirent.h>
+#include <mono/io-layer/io.h>
 
 extern struct _WapiHandleOps _wapi_file_ops;
 extern struct _WapiHandleOps _wapi_console_ops;
@@ -29,28 +30,35 @@ struct _WapiHandle_file
        guint32 fileaccess;
        guint32 sharemode;
        guint32 attrs;
+       dev_t device;
+       ino_t inode;
 };
 
-/* The boolean is for distinguishing between a zeroed struct being not
- * as yet assigned, and one containing a valid fd 0
- */
 struct _WapiHandlePrivate_file
 {
-       int fd;
-       gboolean assigned;
+       WapiFDMapped fd_mapped;
+       gboolean async;
+       WapiOverlappedCB callback;
 };
 
 struct _WapiHandle_find
 {
-       glob_t glob;
-       size_t count;
+       int dummy;
 };
 
 struct _WapiHandlePrivate_find
 {
-       int dummy;
+       gchar **namelist;
+       gchar *dir_part;
+       int num;
+       size_t count;
 };
 
-extern int _wapi_file_handle_to_fd (gpointer handle);
+G_BEGIN_DECLS
+int _wapi_file_handle_to_fd (gpointer handle);
+gboolean _wapi_io_add_callback (gpointer handle,
+                               WapiOverlappedCB callback,
+                               guint64 flags);
+G_END_DECLS
 
 #endif /* _WAPI_IO_PRIVATE_H_ */