Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/chatline_common.h Source File

Freeciv-3.1

Loading...
Searching...
No Matches
chatline_common.h
Go to the documentation of this file.
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.
7
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
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20/* utility */
21#include "support.h" /* bool type */
22
23/* common */
24#include "featured_text.h" /* struct text_tag_list, struct ft_color */
25
26int send_chat(const char *message);
27 int send_chat_printf(const char *format, ...)
28 fc__attribute((__format__ (__printf__, 1, 2)));
29
30void output_window_append(const struct ft_color color,
31 const char *featured_text);
32void 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)));
37void output_window_event(const char *plain_text,
38 const struct text_tag_list *tags, int conn_id);
39
40void chat_welcome_message(bool gui_has_copying_mitem);
41void write_chatline_content(const char *txt);
42
43void fc_allocate_ow_mutex(void);
44void fc_release_ow_mutex(void);
45void fc_init_ow_mutex(void);
46void fc_destroy_ow_mutex(void);
47
48#ifdef __cplusplus
49}
50#endif /* __cplusplus */
51
52#endif /* FC__CHATLINE_COMMON_H */
send_chat
int send_chat(const char *message)
Definition chatline_common.c:46
send_chat_printf
int send_chat_printf(const char *format,...) fc__attribute((__format__(__printf__
write_chatline_content
void write_chatline_content(const char *txt)
Definition chatline_common.c:196
fc_allocate_ow_mutex
void fc_allocate_ow_mutex(void)
Definition chatline_common.c:71
fc_release_ow_mutex
void fc_release_ow_mutex(void)
Definition chatline_common.c:79
output_window_printf
void output_window_printf(const struct ft_color color, const char *format,...) fc__attribute((__format__(__printf__
output_window_event
void void output_window_event(const char *plain_text, const struct text_tag_list *tags, int conn_id)
Definition chatline_common.c:166
output_window_vprintf
void output_window_vprintf(const struct ft_color color, const char *format, va_list args)
Definition chatline_common.c:139
output_window_append
int void output_window_append(const struct ft_color color, const char *featured_text)
Definition chatline_common.c:104
chat_welcome_message
void chat_welcome_message(bool gui_has_copying_mitem)
Definition chatline_common.c:177
fc_destroy_ow_mutex
void fc_destroy_ow_mutex(void)
Definition chatline_common.c:95
fc_init_ow_mutex
void fc_init_ow_mutex(void)
Definition chatline_common.c:87
featured_text.h
color
Definition colors.h:20
ft_color
Definition featured_text.h:141
message
Definition messagewin_common.h:29
support.h
fc__attribute
#define fc__attribute(x)
Definition support.h:89