Freeciv-3.1: /fast/freeciv/nightly/S3_1/server/meta.h Source File

Freeciv-3.1

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
25 enum meta_flag {
26 META_INFO,
27 META_REFRESH,
28 META_GOODBYE
29};
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
38void maybe_automatic_meta_message(const char *automatic);
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);
47bool server_open_meta(bool persistent);
48bool is_metaserver_open(void);
49
50bool send_server_info_to_metaserver(enum meta_flag flag);
51
52#endif /* FC__META_H */
persistent
static GtkWidget * persistent
Definition rallypointdlg.c:40
maybe_automatic_meta_message
void maybe_automatic_meta_message(const char *automatic)
Definition meta.c:151
set_meta_patches_string
void set_meta_patches_string(const char *string)
Definition meta.c:171
get_user_meta_message_string
const char * get_user_meta_message_string(void)
Definition meta.c:136
is_metaserver_open
bool is_metaserver_open(void)
Definition meta.c:482
meta_addr_port
char * meta_addr_port(void)
Definition meta.c:202
set_meta_message_string
void set_meta_message_string(const char *string)
Definition meta.c:179
default_meta_message_string
const char * default_meta_message_string(void)
Definition meta.c:90
server_close_meta
void server_close_meta(void)
Definition meta.c:454
default_meta_patches_string
const char * default_meta_patches_string(void)
Definition meta.c:82
get_meta_message_string
const char * get_meta_message_string(void)
Definition meta.c:114
send_server_info_to_metaserver
bool send_server_info_to_metaserver(enum meta_flag flag)
Definition meta.c:490
server_open_meta
bool server_open_meta(bool persistent)
Definition meta.c:463
get_meta_patches_string
const char * get_meta_patches_string(void)
Definition meta.c:106
set_user_meta_message_string
void set_user_meta_message_string(const char *string)
Definition meta.c:187
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