Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / metadata / console-win32.c
1 /**
2  * \file
3  * ConsoleDriver internal calls for Win32
4  *
5  * Author:
6  *      Gonzalo Paniagua Javier (gonzalo@ximian.com)
7  *
8  * Copyright (C) 2005-2009 Novell, Inc. (http://www.novell.com)
9  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
10  */
11
12 #include <config.h>
13 #include <glib.h>
14 #include <stdio.h>
15 #include <string.h>
16 #include <fcntl.h>
17 #include <errno.h>
18 #include <signal.h>
19 #include <sys/types.h>
20
21 #ifdef HAVE_SYS_TIME_H
22 #include <sys/time.h>
23 #endif
24
25 #include <mono/metadata/appdomain.h>
26 #include <mono/metadata/object-internals.h>
27 #include <mono/metadata/class-internals.h>
28 #include <mono/metadata/domain-internals.h>
29 #include <mono/metadata/gc-internals.h>
30 #include <mono/metadata/metadata.h>
31
32 #include <mono/metadata/console-io.h>
33 #include <mono/metadata/exception.h>
34
35 void
36 mono_console_init (void)
37 {
38 }
39
40 void
41 mono_console_handle_async_ops (void)
42 {
43 }
44
45 #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT)
46 MonoBoolean
47 ves_icall_System_ConsoleDriver_Isatty (HANDLE handle)
48 {
49         DWORD mode;
50         return GetConsoleMode (handle, &mode) != 0;
51 }
52
53 MonoBoolean
54 ves_icall_System_ConsoleDriver_SetEcho (MonoBoolean want_echo)
55 {
56         return FALSE;
57 }
58
59 MonoBoolean
60 ves_icall_System_ConsoleDriver_SetBreak (MonoBoolean want_break)
61 {
62         return FALSE;
63 }
64
65 gint32
66 ves_icall_System_ConsoleDriver_InternalKeyAvailable (gint32 timeout)
67 {
68         return FALSE;
69 }
70
71 MonoBoolean
72 ves_icall_System_ConsoleDriver_TtySetup (MonoString *keypad, MonoString *teardown, MonoArray **control_chars, int **size)
73 {
74         return FALSE;
75 }
76 #endif /* G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) */