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>
19 #endif /* __cplusplus */
24 * Win32 specific console.
27 /** Create Windows console.
31 void create_console(void);
33 /** Connect to stdio if available.
37 void restore_pipes(void);
39 /** Destroy Windows console.
43 void destroy_console(void);
45 /** Set console wait. GTK+ only.
46 * @param console_wait set/no set console wait
49 void set_console_wait(bool console_wait
);
51 * @return set/no set console wait
54 bool get_console_wait(void);
56 /** Set stdin capture.
57 * @param console_wait set/no stdin_capture
60 void set_stdin_capture(bool set_stdin_capture
);
63 * @return set/no set stdin_capture
66 bool get_stdin_capture(void);
71 #endif /* __cplusplus */
73 #endif /* __CONSOLE_WIN32_H__ */