New test.
[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 <dirent.h>
16 #include <mono/io-layer/io.h>
17 #include <mono/io-layer/wapi-private.h>
18
19 extern struct _WapiHandleOps _wapi_file_ops;
20 extern struct _WapiHandleOps _wapi_console_ops;
21 extern struct _WapiHandleOps _wapi_find_ops;
22 extern struct _WapiHandleOps _wapi_pipe_ops;
23
24 extern void _wapi_file_details (gpointer handle_info);
25 extern void _wapi_console_details (gpointer handle_info);
26 extern void _wapi_pipe_details (gpointer handle_info);
27
28 /* Currently used for both FILE, CONSOLE and PIPE handle types.  This may
29  * have to change in future.
30  */
31 struct _WapiHandle_file
32 {
33         gchar *filename;
34         struct _WapiFileShare *share_info;      /* Pointer into shared mem */
35         guint32 security_attributes;
36         guint32 fileaccess;
37         guint32 sharemode;
38         guint32 attrs;
39 };
40
41 struct _WapiHandle_find
42 {
43         gchar **namelist;
44         gchar *dir_part;
45         int num;
46         size_t count;
47 };
48
49 #endif /* _WAPI_IO_PRIVATE_H_ */