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 ***********************************************************************/
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 */
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 */