#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;
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_ */