2005-07-24 16:12:37 +02:00
|
|
|
/* $Id$ */
|
|
|
|
|
2004-12-04 18:54:56 +01:00
|
|
|
#ifndef NETWORK_GAMELIST_H
|
|
|
|
#define NETWORK_GAMELIST_H
|
|
|
|
|
2007-02-02 22:32:58 +01:00
|
|
|
/** Structure with information shown in the game list (GUI) */
|
|
|
|
struct NetworkGameList {
|
|
|
|
NetworkGameInfo info; ///< The game information of this server
|
|
|
|
uint32 ip; ///< The IP of the game server
|
|
|
|
uint16 port; ///< The port of the game server
|
|
|
|
bool online; ///< False if the server did not respond (default status)
|
|
|
|
bool manually; ///< True if the server was added manually
|
|
|
|
uint8 retries; ///< Number of retries (to stop requerying)
|
|
|
|
NetworkGameList *next; ///< Next pointer to make a linked game list
|
|
|
|
};
|
|
|
|
|
|
|
|
/** Game list of this client */
|
|
|
|
extern NetworkGameList *_network_game_list;
|
|
|
|
|
2004-12-04 18:54:56 +01:00
|
|
|
NetworkGameList *NetworkGameListAddItem(uint32 ip, uint16 port);
|
2004-12-20 23:14:39 +01:00
|
|
|
void NetworkGameListRemoveItem(NetworkGameList *remove);
|
2007-03-07 12:47:46 +01:00
|
|
|
void NetworkGameListRequery();
|
2004-12-04 18:54:56 +01:00
|
|
|
|
|
|
|
#endif /* NETWORK_GAMELIST_H */
|