summaryrefslogtreecommitdiffstats
path: root/wsutil/console_win32.h
blob: b1020c1ac6ff1352c9af4911b6f0f40a329ab394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/** @file
 *
 * Console support for MSWindows
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 2002, Jeffrey C. Foster <jfoste@woodward.com>
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef __CONSOLE_WIN32_H__
#define __CONSOLE_WIN32_H__

#include <wireshark.h>

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#ifdef _WIN32

/** @file
 * Win32 specific console.
 */

/** Create Windows console.
 *
 */
WS_DLL_PUBLIC
void create_console(void);

/** Connect to stdio if available.
 *
 */
WS_DLL_PUBLIC
void restore_pipes(void);

/** Destroy Windows console.
 *
 */
WS_DLL_PUBLIC
void destroy_console(void);

/** Set console wait. GTK+ only.
 * @param console_wait set/no set console wait
 */
WS_DLL_PUBLIC
void set_console_wait(bool console_wait);
/** get console wait
 * @return set/no set console wait
 */
WS_DLL_PUBLIC
bool get_console_wait(void);

/** Set stdin capture.
 * @param console_wait set/no stdin_capture
 */
WS_DLL_PUBLIC
void set_stdin_capture(bool set_stdin_capture);

/** get stdin caputre
 * @return set/no set stdin_capture
 */
WS_DLL_PUBLIC
bool get_stdin_capture(void);
#endif/* _WIN32 */

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __CONSOLE_WIN32_H__ */