Support for scalable font and gui elements
[oweals/minetest.git] / src / serverlist.h
index e81e64c5b3acb8d9eb17b4fadc1c280961a9cce2..bc40a1b3952c76c5b9e1e79f9f081e2271412a5a 100644 (file)
@@ -19,6 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include <iostream>
 #include "config.h"
+#include "mods.h"
 #include "json/json.h"
 
 #ifndef SERVERLIST_HEADER
@@ -29,9 +30,7 @@ typedef Json::Value ServerListSpec;
 namespace ServerList
 {
        std::vector<ServerListSpec> getLocal();
-       #if USE_CURL
        std::vector<ServerListSpec> getOnline();
-       #endif
        bool deleteEntry(ServerListSpec server);
        bool insert(ServerListSpec server);
        std::vector<ServerListSpec> deSerialize(std::string liststring);
@@ -39,7 +38,9 @@ namespace ServerList
        std::vector<ServerListSpec> deSerializeJson(std::string liststring);
        std::string serializeJson(std::vector<ServerListSpec>);
        #if USE_CURL
-       void sendAnnounce(std::string action = "", u16 clients = 0);
+       void sendAnnounce(std::string action = "", const std::vector<std::string> & clients_names = std::vector<std::string>(), 
+                               double uptime = 0, u32 game_time = 0, float lag = 0, std::string gameid = "", 
+                               std::vector<ModSpec> mods = std::vector<ModSpec>());
        #endif
 } //ServerList namespace