[io-layer] Extract socket (#4241)
[mono.git] / mono / io-layer / wapi.h
1 /*
2  * wapi.h:  Public include files
3  *
4  * Author:
5  *      Dick Porter (dick@ximian.com)
6  *
7  * (C) 2002 Ximian, Inc.
8  */
9
10 #ifndef _WAPI_WAPI_H_
11 #define _WAPI_WAPI_H_
12
13 #include <glib.h>
14
15 #include <sys/types.h>
16
17 #include <mono/io-layer/wapi-remap.h>
18 #include <mono/io-layer/io.h>
19 #include <mono/io-layer/io-portability.h>
20 #include <mono/io-layer/error.h>
21
22 G_BEGIN_DECLS
23
24 #define WAIT_FAILED        ((int) 0xFFFFFFFF)
25 #define WAIT_OBJECT_0      ((int) 0x00000000)
26 #define WAIT_ABANDONED_0   ((int) 0x00000080)
27 #define WAIT_TIMEOUT       ((int) 0x00000102)
28 #define WAIT_IO_COMPLETION ((int) 0x000000C0)
29
30 void
31 wapi_init (void);
32
33 void
34 wapi_cleanup (void);
35
36 gboolean
37 CloseHandle (gpointer handle);
38
39 pid_t
40 wapi_getpid (void);
41
42 G_END_DECLS
43
44 #endif /* _WAPI_WAPI_H_ */