diff options
author | Darkvater <darkvater@openttd.org> | 2006-01-26 13:01:53 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-01-26 13:01:53 +0000 |
commit | fa735869e1ccc1ed809db04dc10685ca414704bd (patch) | |
tree | 32a23800f06df891eb2f65452f6eb17f3e1f9030 /network_gamelist.c | |
parent | 8721b05453af34541ac6cc80598706e0d7604250 (diff) | |
download | openttd-fa735869e1ccc1ed809db04dc10685ca414704bd.tar.xz |
(svn r3435) - Fix a warning, removed unused extern and some comments in network_gamelist.c
Diffstat (limited to 'network_gamelist.c')
-rw-r--r-- | network_gamelist.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/network_gamelist.c b/network_gamelist.c index a90b50aaa..0085f0fca 100644 --- a/network_gamelist.c +++ b/network_gamelist.c @@ -12,7 +12,11 @@ extern void UpdateNetworkGameWindow(bool unselect); - +/** Add a new item to the linked gamelist. If the IP and Port match + * return the existing item instead of adding it again + * @param ip the IP-address (inet_addr) of the to-be added item + * @param port the port the server is running on + * @return a point to the newly added or already existing item */ NetworkGameList *NetworkGameListAddItem(uint32 ip, uint16 port) { NetworkGameList *item, *prev_item; @@ -38,6 +42,8 @@ NetworkGameList *NetworkGameListAddItem(uint32 ip, uint16 port) return item; } +/** Remove an item from the gamelist linked list + * @param remove pointer to the item to be removed */ void NetworkGameListRemoveItem(NetworkGameList *remove) { NetworkGameList *item, *prev_item; |