1 /********************************************************************** 2 Freeciv - Copyright (C) 2003 - The Freeciv Project 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__CONNECTDLG_COMMON_H 14 #define FC__CONNECTDLG_COMMON_H 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif /* __cplusplus */ 19 20 /* utility */ 21 #include "support.h" /* bool */ 22 23 bool client_start_server(void); 24 void client_kill_server(bool force); 25 26 bool is_server_running(void); 27 bool can_client_access_hack(void); 28 29 void send_client_wants_hack(const char *filename); 30 void send_save_game(const char *filename); 31 32 void set_ruleset(const char *ruleset); 33 34 #ifdef __cplusplus 35 } 36 #endif /* __cplusplus */ 37 38 #endif /* FC__CONNECTDLG_COMMON_H */ 39