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