diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-09-03 20:03:01 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-09-03 20:03:01 +0000 |
| commit | 53da3f0d40ff9eb171b3d8eaaeed148e9ddd2f8b (patch) | |
| tree | d9014120bd015f7e3fcc4f2cf997321ba0494b70 /src/engine/e_if_client.h | |
| parent | 37f3fa6c6efe231d5a172dbee6a50d63bf42b910 (diff) | |
| download | zcatch-53da3f0d40ff9eb171b3d8eaaeed148e9ddd2f8b.tar.gz zcatch-53da3f0d40ff9eb171b3d8eaaeed148e9ddd2f8b.zip | |
added favorites. no saving of them yet however
Diffstat (limited to 'src/engine/e_if_client.h')
| -rw-r--r-- | src/engine/e_if_client.h | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/src/engine/e_if_client.h b/src/engine/e_if_client.h index af5df1e4..98d92a64 100644 --- a/src/engine/e_if_client.h +++ b/src/engine/e_if_client.h @@ -57,7 +57,11 @@ enum BROWSESORT_NUMPLAYERS, BROWSEQUICK_SERVERNAME=1, - BROWSEQUICK_PLAYERNAME=2 + BROWSEQUICK_PLAYERNAME=2, + + BROWSETYPE_INTERNET = 0, + BROWSETYPE_LAN = 1, + BROWSETYPE_FAVORITES = 2 }; /* @@ -81,12 +85,15 @@ typedef struct int sorted_index; int server_index; + NETADDR netaddr; + int quicksearch_hit; int progression; int max_players; int num_players; int flags; + int favorite; int latency; /* in ms */ char gametype[16]; char name[64]; @@ -192,13 +199,13 @@ float client_localtime(); Issues a refresh of the server browser. Arguments: - lan - Tells the function if it should do a LAN listing or an Internet listing. + type - What type of servers to browse, internet, lan or favorites. Remarks: This will cause a broadcast on the local network if the lan argument is set. Otherwise it call ask all the master servers for their servers lists. */ -void client_serverbrowse_refresh(int lan); +void client_serverbrowse_refresh(int type); /* Function: client_serverbrowse_sorted_get @@ -291,6 +298,24 @@ void client_serverbrowse_update(); */ int client_serverbrowse_lan(); +/* + Function: client_serverbrowse_addfavorite + Adds a server to the favorite list + + Arguments: + addr - Address of the favorite server. +*/ +void client_serverbrowse_addfavorite(NETADDR addr); + +/* + Function: client_serverbrowse_removefavorite + Removes a server to the favorite list + + Arguments: + addr - Address of the favorite server. +*/ +void client_serverbrowse_removefavorite(NETADDR addr); + /********************************************************************************** Group: Actions **********************************************************************************/ |