diff options
author | Gerald Combs <gerald@wireshark.org> | 2014-09-25 16:21:02 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-09-26 14:15:45 +0000 |
commit | 2d7c1135ed7bb93b6eb2fd0170443d3c990f1e1e (patch) | |
tree | c96b56b6aaf00a85609747af3a6bc887352fcb36 /ui/console.h | |
parent | ce36b20ca5d01490acd1fb6ca44a82dab85ba2a2 (diff) |
Move the console log handling code to ui/console.[ch].
Change-Id: I8e554a8e17399d78b0ef29dfb68109a219cd9f1b
Reviewed-on: https://code.wireshark.org/review/4294
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/console.h')
-rw-r--r-- | ui/console.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/ui/console.h b/ui/console.h new file mode 100644 index 0000000000..53343d1ab1 --- /dev/null +++ b/ui/console.h @@ -0,0 +1,57 @@ +/* console.h + * Console log handler routines + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef __CONSOLE_H__ +#define __CONSOLE_H__ + +#ifdef _WIN32 /* Needed for console I/O */ +#include <fcntl.h> +#include <conio.h> +#include <ui/win32/console_win32.h> +#endif + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** Set the console log handler. + */ +void set_console_log_handler(void); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __CONSOLE_H__ */ + +/* + * Editor modelines + * + * Local Variables: + * c-basic-offset: 4 + * tab-width: 8 + * indent-tabs-mode: nil + * End: + * + * ex: set shiftwidth=4 tabstop=8 expandtab: + * :indentSize=4:tabSize=8:noTabs=true: + */ |