Freeciv-3.2
Loading...
Searching...
No Matches
server
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
25
enum
meta_flag
{
26
META_INFO
,
27
META_REFRESH
,
28
META_GOODBYE
29
};
30
31
const
char
*
default_meta_patches_string
(
void
);
32
const
char
*
default_meta_message_string
(
void
);
33
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
);
37
38
void
maybe_automatic_meta_message
(
const
char
*
automatic
);
39
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
);
43
44
char
*
meta_addr_port
(
void
);
45
46
void
server_close_meta
(
void
);
47
bool
server_open_meta
(
bool
persistent
);
48
bool
is_metaserver_open
(
void
);
49
50
bool
send_server_info_to_metaserver
(
enum
meta_flag
flag);
51
52
#endif
/* FC__META_H */
incite_cost
char * incite_cost
Definition
comments.c:75
persistent
static GtkWidget * persistent
Definition
rallypointdlg.c:40
maybe_automatic_meta_message
void maybe_automatic_meta_message(const char *automatic)
Definition
meta.c:152
set_meta_patches_string
void set_meta_patches_string(const char *string)
Definition
meta.c:172
get_user_meta_message_string
const char * get_user_meta_message_string(void)
Definition
meta.c:137
is_metaserver_open
bool is_metaserver_open(void)
Definition
meta.c:483
meta_addr_port
char * meta_addr_port(void)
Definition
meta.c:203
set_meta_message_string
void set_meta_message_string(const char *string)
Definition
meta.c:180
default_meta_message_string
const char * default_meta_message_string(void)
Definition
meta.c:91
server_close_meta
void server_close_meta(void)
Definition
meta.c:455
default_meta_patches_string
const char * default_meta_patches_string(void)
Definition
meta.c:83
get_meta_message_string
const char * get_meta_message_string(void)
Definition
meta.c:115
send_server_info_to_metaserver
bool send_server_info_to_metaserver(enum meta_flag flag)
Definition
meta.c:491
server_open_meta
bool server_open_meta(bool persistent)
Definition
meta.c:464
get_meta_patches_string
const char * get_meta_patches_string(void)
Definition
meta.c:107
set_user_meta_message_string
void set_user_meta_message_string(const char *string)
Definition
meta.c:188
meta_flag
meta_flag
Definition
meta.h:25
META_GOODBYE
@ META_GOODBYE
Definition
meta.h:28
META_INFO
@ META_INFO
Definition
meta.h:26
META_REFRESH
@ META_REFRESH
Definition
meta.h:27
support.h
Generated on Sun Dec 22 2024 23:00:34 for Freeciv-3.2 by
1.9.8