Stop sharing requirement_unit_state_ereq().
[freeciv.git] / client / chatline_common.h
blob3c210fe58dfaa1694d6a494e0bddf1fdefc414f6
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 ***********************************************************************/
13 #ifndef FC__CHATLINE_COMMON_H
14 #define FC__CHATLINE_COMMON_H
16 #ifdef __cplusplus
17 extern "C" {
18 #endif /* __cplusplus */
20 /* utility */
21 #include "support.h" /* bool type */
23 /* common */
24 #include "featured_text.h" /* struct text_tag_list, struct ft_color */
26 int send_chat(const char *message);
27 int send_chat_printf(const char *format, ...)
28 fc__attribute((__format__ (__printf__, 1, 2)));
30 void output_window_append(const struct ft_color color,
31 const char *featured_text);
32 void output_window_vprintf(const struct ft_color color,
33 const char *format, va_list args);
34 void output_window_printf(const struct ft_color color,
35 const char *format, ...)
36 fc__attribute((__format__ (__printf__, 2, 3)));
37 void output_window_event(const char *plain_text,
38 const struct text_tag_list *tags, int conn_id);
40 void chat_welcome_message(bool gui_has_copying_mitem);
41 void write_chatline_content(const char *txt);
43 void fc_allocate_ow_mutex(void);
44 void fc_release_ow_mutex(void);
45 void fc_init_ow_mutex(void);
46 void fc_destroy_ow_mutex(void);
48 #ifdef __cplusplus
50 #endif /* __cplusplus */
52 #endif /* FC__CHATLINE_COMMON_H */