replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later.
[metze/wireshark/wip.git] / ui / win32 / console_win32.h
1 /* console_win32.h
2  * Console support for MSWindows
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 2002, Jeffrey C. Foster <jfoste@woodward.com>
7  *
8  * SPDX-License-Identifier: GPL-2.0-or-later
9  */
10
11 #ifndef __CONSOLE_WIN32_H__
12 #define __CONSOLE_WIN32_H__
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif /* __cplusplus */
17
18 #ifdef _WIN32
19
20 /** @file
21  * Win32 specific console.
22  */
23
24 /** Create Windows console.
25  *
26  */
27 void create_console(void);
28
29 /** Destroy Windows console.
30  *
31  */
32 void destroy_console(void);
33
34 /** Set console wait. GTK+ only.
35  * @param console_wait set/no set console wait
36  */
37 void set_console_wait(gboolean console_wait);
38 /** get console wait
39  * @return set/no set console wait
40  */
41 gboolean get_console_wait(void);
42
43 /** Set has console. GTK+ only.
44  * @param has_console set/no set has_console
45  */
46 void set_has_console(gboolean has_console);
47
48 gboolean get_has_console(void);
49
50 /** Set stdin capture.
51  * @param console_wait set/no stdin_capture
52  */
53 void set_stdin_capture(gboolean set_stdin_capture);
54
55 /** get stdin caputre
56  * @return set/no set stdin_capture
57  */
58 gboolean get_stdin_capture(void);
59 #endif/* _WIN32 */
60
61 #ifdef __cplusplus
62 }
63 #endif /* __cplusplus */
64
65 #endif /* __CONSOLE_WIN32_H__ */
66
67 /*
68  * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
69  *
70  * Local variables:
71  * c-basic-offset: 4
72  * tab-width: 8
73  * indent-tabs-mode: nil
74  * End:
75  *
76  * vi: set shiftwidth=4 tabstop=8 expandtab:
77  * :indentSize=4:tabSize=8:noTabs=true:
78  */