grammar updates
[mono.git] / mono / io-layer / io-private.h
1 /*
2  * io-private.h:  Private definitions for file, console and find handles
3  *
4  * Author:
5  *      Dick Porter (dick@ximian.com)
6  *
7  * (C) 2002 Ximian, Inc.
8  */
9
10 #ifndef _WAPI_IO_PRIVATE_H_
11 #define _WAPI_IO_PRIVATE_H_
12
13 #include <config.h>
14 #include <glib.h>
15 #include <glob.h>
16
17 extern struct _WapiHandleOps _wapi_file_ops;
18 extern struct _WapiHandleOps _wapi_console_ops;
19 extern struct _WapiHandleOps _wapi_find_ops;
20 extern struct _WapiHandleOps _wapi_pipe_ops;
21
22 /* Currently used for both FILE, CONSOLE and PIPE handle types.  This may
23  * have to change in future.
24  */
25 struct _WapiHandle_file
26 {
27         guint32 filename;
28         guint32 security_attributes;
29         guint32 fileaccess;
30         guint32 sharemode;
31         guint32 attrs;
32 };
33
34 /* The boolean is for distinguishing between a zeroed struct being not
35  * as yet assigned, and one containing a valid fd 0
36  */
37 struct _WapiHandlePrivate_file
38 {
39         int fd;
40         gboolean assigned;
41 };
42
43 struct _WapiHandle_find
44 {
45         glob_t glob;
46         size_t count;
47 };
48
49 struct _WapiHandlePrivate_find
50 {
51         int dummy;
52 };
53
54 extern int _wapi_file_handle_to_fd (gpointer handle);
55
56 #endif /* _WAPI_IO_PRIVATE_H_ */