OpenTTD: src/network/network_gamelist.h Source File

OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

network_gamelist.h
Go to the documentation of this file.
1 /* $Id: network_gamelist.h 17248 2009-08-21 20:21:05Z rubidium $ */
2
3 /*
4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 */
9
12 #ifndef NETWORK_GAMELIST_H
13 #define NETWORK_GAMELIST_H
14
15 #include "core/address.h"
16 #include "network_type.h"
17
19 struct NetworkGameList {
20 NetworkGameInfo info;
21 NetworkAddress address;
22 bool online;
23 bool manually;
24 uint8 retries;
25 NetworkGameList *next;
26 };
27
29 extern NetworkGameList *_network_game_list;
30
31 void NetworkGameListAddItemDelayed(NetworkGameList *item);
32 NetworkGameList *NetworkGameListAddItem(NetworkAddress address);
33 void NetworkGameListRemoveItem(NetworkGameList *remove);
34 void NetworkGameListRequery();
35
36 #endif /* NETWORK_GAMELIST_H */