/* * io-private.h: Private definitions for file, console and find handles * * Author: * Dick Porter (dick@ximian.com) * * (C) 2002 Ximian, Inc. */ #ifndef _WAPI_IO_PRIVATE_H_ #define _WAPI_IO_PRIVATE_H_ #include #include #include #include extern struct _WapiHandleOps _wapi_file_ops; extern struct _WapiHandleOps _wapi_console_ops; extern struct _WapiHandleOps _wapi_find_ops; extern struct _WapiHandleOps _wapi_pipe_ops; /* Currently used for both FILE, CONSOLE and PIPE handle types. This may * have to change in future. */ struct _WapiHandle_file { guint32 filename; guint32 security_attributes; guint32 fileaccess; guint32 sharemode; guint32 attrs; }; /* 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; gboolean async; WapiOverlappedCB callback; }; struct _WapiHandle_find { glob_t glob; size_t count; }; struct _WapiHandlePrivate_find { int dummy; }; 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_ */