From e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 22:34:10 +0200 Subject: Adding upstream version 4.2.2. Signed-off-by: Daniel Baumann --- wsutil/console_win32.h | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 wsutil/console_win32.h (limited to 'wsutil/console_win32.h') diff --git a/wsutil/console_win32.h b/wsutil/console_win32.h new file mode 100644 index 0000000..b1020c1 --- /dev/null +++ b/wsutil/console_win32.h @@ -0,0 +1,73 @@ +/** @file + * + * Console support for MSWindows + * + * Wireshark - Network traffic analyzer + * By Gerald Combs + * Copyright 2002, Jeffrey C. Foster + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#ifndef __CONSOLE_WIN32_H__ +#define __CONSOLE_WIN32_H__ + +#include + +#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__ */ -- cgit v1.2.3