diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
commit | e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch) | |
tree | 68cb5ef9081156392f1dd62a00c6ccc1451b93df /wsutil/console_win32.h | |
parent | Initial commit. (diff) | |
download | wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip |
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wsutil/console_win32.h')
-rw-r--r-- | wsutil/console_win32.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/wsutil/console_win32.h b/wsutil/console_win32.h new file mode 100644 index 00000000..b1020c1a --- /dev/null +++ b/wsutil/console_win32.h @@ -0,0 +1,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__ */ |