2 * io-private.h: Private definitions for file, console and find handles
5 * Dick Porter (dick@ximian.com)
7 * (C) 2002 Ximian, Inc.
10 #ifndef _WAPI_IO_PRIVATE_H_
11 #define _WAPI_IO_PRIVATE_H_
16 #include <mono/io-layer/io.h>
18 extern struct _WapiHandleOps _wapi_file_ops;
19 extern struct _WapiHandleOps _wapi_console_ops;
20 extern struct _WapiHandleOps _wapi_find_ops;
21 extern struct _WapiHandleOps _wapi_pipe_ops;
23 /* Currently used for both FILE, CONSOLE and PIPE handle types. This may
24 * have to change in future.
26 struct _WapiHandle_file
29 guint32 security_attributes;
37 /* The boolean is for distinguishing between a zeroed struct being not
38 * as yet assigned, and one containing a valid fd 0
40 struct _WapiHandlePrivate_file
45 WapiOverlappedCB callback;
48 struct _WapiHandle_find
53 struct _WapiHandlePrivate_find
62 int _wapi_file_handle_to_fd (gpointer handle);
63 gboolean _wapi_io_add_callback (gpointer handle,
64 WapiOverlappedCB callback,
68 #endif /* _WAPI_IO_PRIVATE_H_ */