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)
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
18 #endif /* __cplusplus */
21 #include "support.h" /* bool type */
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(void);
41 void write_chatline_content(const char *txt
);
45 #endif /* __cplusplus */
47 #endif /* FC__CHATLINE_COMMON_H */