src/network/network_gamelist.h
author bjarni
Sun, 11 Mar 2007 16:31:18 +0000
branchcpp_gui
changeset 6298 c30fe89622df
parent 6168 b587bfc4e44e
child 10429 1b99254f9607
permissions -rw-r--r--
(svn r9119) [cpp_gui] -Sync with trunk (r9003:9100)
2186
461a2aff3486 (svn r2701) Insert Id tags into all source files
tron
parents: 738
diff changeset
     1
/* $Id$ */
461a2aff3486 (svn r2701) Insert Id tags into all source files
tron
parents: 738
diff changeset
     2
543
e3b43338096b (svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff changeset
     3
#ifndef NETWORK_GAMELIST_H
e3b43338096b (svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff changeset
     4
#define NETWORK_GAMELIST_H
e3b43338096b (svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff changeset
     5
6168
b587bfc4e44e (svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents: 6148
diff changeset
     6
/** Structure with information shown in the game list (GUI) */
b587bfc4e44e (svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents: 6148
diff changeset
     7
struct NetworkGameList {
b587bfc4e44e (svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents: 6148
diff changeset
     8
	NetworkGameInfo info;  ///< The game information of this server
b587bfc4e44e (svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents: 6148
diff changeset
     9
	uint32 ip;             ///< The IP of the game server
b587bfc4e44e (svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents: 6148
diff changeset
    10
	uint16 port;           ///< The port of the game server
b587bfc4e44e (svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents: 6148
diff changeset
    11
	bool online;           ///< False if the server did not respond (default status)
b587bfc4e44e (svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents: 6148
diff changeset
    12
	bool manually;         ///< True if the server was added manually
b587bfc4e44e (svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents: 6148
diff changeset
    13
	uint8 retries;         ///< Number of retries (to stop requerying)
b587bfc4e44e (svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents: 6148
diff changeset
    14
	NetworkGameList *next; ///< Next pointer to make a linked game list
b587bfc4e44e (svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents: 6148
diff changeset
    15
};
b587bfc4e44e (svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents: 6148
diff changeset
    16
b587bfc4e44e (svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents: 6148
diff changeset
    17
/** Game list of this client */
b587bfc4e44e (svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents: 6148
diff changeset
    18
extern NetworkGameList *_network_game_list;
b587bfc4e44e (svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents: 6148
diff changeset
    19
543
e3b43338096b (svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff changeset
    20
NetworkGameList *NetworkGameListAddItem(uint32 ip, uint16 port);
738
0b2fb79e64fc (svn r1194) Feature: You can now add and remove servers from the server list. Those will be remembered until you delete them by pressing the Delete key.
dominik
parents: 716
diff changeset
    21
void NetworkGameListRemoveItem(NetworkGameList *remove);
6298
c30fe89622df (svn r9119) [cpp_gui] -Sync with trunk (r9003:9100)
bjarni
parents: 6168
diff changeset
    22
void NetworkGameListRequery();
543
e3b43338096b (svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff changeset
    23
e3b43338096b (svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff changeset
    24
#endif /* NETWORK_GAMELIST_H */