regen pidl all: rm epan/dissectors/pidl/*-stamp; pushd epan/dissectors/pidl/ && make...
[wireshark-sm.git] / wsutil / console_win32.h
blobb1020c1ac6ff1352c9af4911b6f0f40a329ab394
1 /** @file
3 * Console support for MSWindows
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 2002, Jeffrey C. Foster <jfoste@woodward.com>
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef __CONSOLE_WIN32_H__
13 #define __CONSOLE_WIN32_H__
15 #include <wireshark.h>
17 #ifdef __cplusplus
18 extern "C" {
19 #endif /* __cplusplus */
21 #ifdef _WIN32
23 /** @file
24 * Win32 specific console.
27 /** Create Windows console.
30 WS_DLL_PUBLIC
31 void create_console(void);
33 /** Connect to stdio if available.
36 WS_DLL_PUBLIC
37 void restore_pipes(void);
39 /** Destroy Windows console.
42 WS_DLL_PUBLIC
43 void destroy_console(void);
45 /** Set console wait. GTK+ only.
46 * @param console_wait set/no set console wait
48 WS_DLL_PUBLIC
49 void set_console_wait(bool console_wait);
50 /** get console wait
51 * @return set/no set console wait
53 WS_DLL_PUBLIC
54 bool get_console_wait(void);
56 /** Set stdin capture.
57 * @param console_wait set/no stdin_capture
59 WS_DLL_PUBLIC
60 void set_stdin_capture(bool set_stdin_capture);
62 /** get stdin caputre
63 * @return set/no set stdin_capture
65 WS_DLL_PUBLIC
66 bool get_stdin_capture(void);
67 #endif/* _WIN32 */
69 #ifdef __cplusplus
71 #endif /* __cplusplus */
73 #endif /* __CONSOLE_WIN32_H__ */