Revert some changes which don't have proper dependencies.
[mono-project.git] / mono / metadata / console-win32-uwp.c
blob6f59a60e43b2e4b529ce9458718494461075f6e3
1 /**
2 * \file
3 * UWP console support for Mono.
5 * Copyright 2016 Microsoft
6 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
7 */
8 #include <config.h>
9 #include <glib.h>
10 #include "mono/utils/mono-compiler.h"
12 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
13 #include <windows.h>
14 #include "mono/metadata/console-win32-internals.h"
15 #include "icall-decl.h"
17 MonoBoolean
18 ves_icall_System_ConsoleDriver_Isatty (HANDLE handle, MonoError* error)
20 g_unsupported_api ("Console");
22 mono_error_set_not_supported (error, G_UNSUPPORTED_API, "Console");
24 SetLastError (ERROR_NOT_SUPPORTED);
26 return FALSE;
29 MonoBoolean
30 ves_icall_System_ConsoleDriver_SetEcho (MonoBoolean want_echo, MonoError* error)
32 g_unsupported_api ("Console");
34 mono_error_set_not_supported (error, G_UNSUPPORTED_API, "Console");
36 SetLastError (ERROR_NOT_SUPPORTED);
38 return FALSE;
41 MonoBoolean
42 ves_icall_System_ConsoleDriver_SetBreak (MonoBoolean want_break, MonoError* error)
44 g_unsupported_api ("Console");
46 mono_error_set_not_supported (error, G_UNSUPPORTED_API, "Console");
48 SetLastError (ERROR_NOT_SUPPORTED);
50 return FALSE;
53 gint32
54 ves_icall_System_ConsoleDriver_InternalKeyAvailable (gint32 timeout, MonoError* error)
56 g_unsupported_api ("Console");
58 mono_error_set_not_supported (error, G_UNSUPPORTED_API, "Console");
60 SetLastError (ERROR_NOT_SUPPORTED);
62 return FALSE;
65 MonoBoolean
66 ves_icall_System_ConsoleDriver_TtySetup (MonoStringHandle keypad, MonoStringHandle teardown, MonoArrayHandleOut control_chars, int **size, MonoError* error)
68 g_unsupported_api ("Console");
70 mono_error_set_not_supported (error, G_UNSUPPORTED_API, "Console");
72 SetLastError (ERROR_NOT_SUPPORTED);
74 return FALSE;
77 #else /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */
79 MONO_EMPTY_SOURCE_FILE (console_win32_uwp);
80 #endif /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */