Moved make_escapes() and remove_escapes() to support.c.
[freeciv.git] / server / meta.h
blob32c1972a41bae2196185c8edd6a3b82587d562cb
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__META_H
14 #define FC__META_H
16 #include "freeciv_config.h"
18 #include "support.h" /* bool type */
20 #define DEFAULT_META_SERVER_NO_SEND TRUE
21 #define DEFAULT_META_SERVER_ADDR FREECIV_META_URL
22 #define METASERVER_REFRESH_INTERVAL (3*60)
23 #define METASERVER_MIN_UPDATE_INTERVAL 7 /* not too short, not too long */
25 enum meta_flag {
26 META_INFO,
27 META_REFRESH,
28 META_GOODBYE
31 const char *default_meta_patches_string(void);
32 const char *default_meta_message_string(void);
34 const char *get_meta_patches_string(void);
35 const char *get_meta_message_string(void);
36 const char *get_user_meta_message_string(void);
38 void maybe_automatic_meta_message(const char *automatic);
40 void set_meta_patches_string(const char *string);
41 void set_meta_message_string(const char *string);
42 void set_user_meta_message_string(const char *string);
44 char *meta_addr_port(void);
46 void server_close_meta(void);
47 bool server_open_meta(bool persistent);
48 bool is_metaserver_open(void);
50 bool send_server_info_to_metaserver(enum meta_flag flag);
52 #endif /* FC__META_H */