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