Freeciv-3.2
Loading...
Searching...
No Matches
meta.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__META_H
14#define FC__META_H
15
16#include "freeciv_config.h"
17
18#include "support.h" /* bool type */
19
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 */
24
30
31const char *default_meta_patches_string(void);
32const char *default_meta_message_string(void);
33
34const char *get_meta_patches_string(void);
35const char *get_meta_message_string(void);
36const char *get_user_meta_message_string(void);
37
39
40void set_meta_patches_string(const char *string);
41void set_meta_message_string(const char *string);
42void set_user_meta_message_string(const char *string);
43
44char *meta_addr_port(void);
45
46void server_close_meta(void);
48bool is_metaserver_open(void);
49
51
52#endif /* FC__META_H */
char * incite_cost
Definition comments.c:75
static GtkWidget * persistent
void maybe_automatic_meta_message(const char *automatic)
Definition meta.c:152
void set_meta_patches_string(const char *string)
Definition meta.c:172
const char * get_user_meta_message_string(void)
Definition meta.c:137
bool is_metaserver_open(void)
Definition meta.c:483
char * meta_addr_port(void)
Definition meta.c:203
void set_meta_message_string(const char *string)
Definition meta.c:180
const char * default_meta_message_string(void)
Definition meta.c:91
void server_close_meta(void)
Definition meta.c:455
const char * default_meta_patches_string(void)
Definition meta.c:83
const char * get_meta_message_string(void)
Definition meta.c:115
bool send_server_info_to_metaserver(enum meta_flag flag)
Definition meta.c:491
bool server_open_meta(bool persistent)
Definition meta.c:464
const char * get_meta_patches_string(void)
Definition meta.c:107
void set_user_meta_message_string(const char *string)
Definition meta.c:188
meta_flag
Definition meta.h:25
@ META_GOODBYE
Definition meta.h:28
@ META_INFO
Definition meta.h:26
@ META_REFRESH
Definition meta.h:27