webperimental: killstack decides stack protects.
[freeciv.git] / client / gui-stub / chatline.c
blobd82f500dacad4128e63dfb9896ee30ba7ffbbb9f
1 /**********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
14 #ifdef HAVE_CONFIG_H
15 #include <fc_config.h>
16 #endif
18 /* client */
19 #include "climisc.h" /* for write_chatline_content */
21 /* gui main header */
22 #include "gui_stub.h"
24 #include "chatline.h"
26 /**************************************************************************
27 Appends the string to the chat output window. The string should be
28 inserted on its own line, although it will have no newline.
29 **************************************************************************/
30 void gui_real_output_window_append(const char *astring,
31 const struct text_tag_list *tags,
32 int conn_id)
34 /* PORTME */
37 /**************************************************************************
38 Get the text of the output window, and call write_chatline_content() to
39 log it.
40 **************************************************************************/
41 void log_output_window(void)
43 /* PORTME */
44 write_chatline_content(NULL);
47 /**************************************************************************
48 Clear all text from the output window.
49 **************************************************************************/
50 void clear_output_window(void)
52 /* PORTME */
53 #if 0
54 set_output_window_text(_("Cleared output window."));
55 #endif
58 /**************************************************************************
59 Got version message from metaserver thread.
60 **************************************************************************/
61 void gui_version_message(const char *vertext)
63 output_window_append(ftc_client, vertext);