xref: /reactos/sdk/lib/conutils/instream.h (revision 19b18ce2)
1 /*
2  * PROJECT:     ReactOS Console Utilities Library
3  * LICENSE:     GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE:     Provides basic abstraction wrappers around CRT streams or
5  *              Win32 console API I/O functions, to deal with i18n + Unicode
6  *              related problems.
7  * COPYRIGHT:   Copyright 2017-2018 ReactOS Team
8  *              Copyright 2017-2018 Hermes Belusca-Maito
9  */
10 
11 /**
12  * @file    instream.h
13  * @ingroup ConUtils
14  *
15  * @brief   Console I/O utility API -- Input
16  **/
17 
18 #ifndef __INSTREAM_H__
19 #define __INSTREAM_H__
20 
21 #pragma once
22 
23 /*
24  * Enable this define if you want to only use CRT functions to output
25  * UNICODE stream to the console, as in the way explained by
26  * http://archives.miloush.net/michkap/archive/2008/03/18/8306597.html
27  */
28 /** NOTE: Experimental! Don't use USE_CRT yet because output to console is a bit broken **/
29 // #define USE_CRT
30 
31 #ifndef _UNICODE
32 #error The ConUtils library at the moment only supports compilation with _UNICODE defined!
33 #endif
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 // Shadow type, implementation-specific
40 typedef struct _CON_STREAM CON_STREAM, *PCON_STREAM;
41 
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
47 #endif  /* __INSTREAM_H__ */
48 
49 /* EOF */
50