diff options
author | rubenwardy <rw@rubenwardy.com> | 2021-01-22 15:08:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 15:08:57 +0000 |
commit | 67aa75d444d0e5cfff2728dbbcffd6f95b2fe88b (patch) | |
tree | f3a2079a9b17056508e8197a701cf90447e4ea4b /src/serverlist.h | |
parent | 4fcd000e20a26120349184cb9d40342b7876e6b8 (diff) | |
download | hax-minetest-server-67aa75d444d0e5cfff2728dbbcffd6f95b2fe88b.tar.gz hax-minetest-server-67aa75d444d0e5cfff2728dbbcffd6f95b2fe88b.zip |
Use JSON for favorites, move server list code to Lua (#10085)
Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'src/serverlist.h')
-rw-r--r-- | src/serverlist.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/serverlist.h b/src/serverlist.h index 2b82b7431..4a0bd5efa 100644 --- a/src/serverlist.h +++ b/src/serverlist.h @@ -24,21 +24,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #pragma once -typedef Json::Value ServerListSpec; - namespace ServerList { -std::vector<ServerListSpec> getLocal(); -std::vector<ServerListSpec> getOnline(); - -bool deleteEntry(const ServerListSpec &server); -bool insert(const ServerListSpec &server); - -std::vector<ServerListSpec> deSerialize(const std::string &liststring); -const std::string serialize(const std::vector<ServerListSpec> &serverlist); -std::vector<ServerListSpec> deSerializeJson(const std::string &liststring); -const std::string serializeJson(const std::vector<ServerListSpec> &serverlist); - #if USE_CURL enum AnnounceAction {AA_START, AA_UPDATE, AA_DELETE}; void sendAnnounce(AnnounceAction, u16 port, |