tron@2186: /* $Id$ */ tron@2186: truelight@543: #ifndef NETWORK_GAMELIST_H truelight@543: #define NETWORK_GAMELIST_H truelight@543: rubidium@6168: /** Structure with information shown in the game list (GUI) */ rubidium@6168: struct NetworkGameList { rubidium@6168: NetworkGameInfo info; ///< The game information of this server rubidium@6168: uint32 ip; ///< The IP of the game server rubidium@6168: uint16 port; ///< The port of the game server rubidium@6168: bool online; ///< False if the server did not respond (default status) rubidium@6168: bool manually; ///< True if the server was added manually rubidium@6168: uint8 retries; ///< Number of retries (to stop requerying) rubidium@6168: NetworkGameList *next; ///< Next pointer to make a linked game list rubidium@6168: }; rubidium@6168: rubidium@6168: /** Game list of this client */ rubidium@6168: extern NetworkGameList *_network_game_list; rubidium@6168: truelight@543: NetworkGameList *NetworkGameListAddItem(uint32 ip, uint16 port); dominik@738: void NetworkGameListRemoveItem(NetworkGameList *remove); bjarni@6298: void NetworkGameListRequery(); truelight@543: truelight@543: #endif /* NETWORK_GAMELIST_H */