Translated using Weblate (Chinese (Simplified))
[oweals/minetest.git] / src / convert_json.h
index ea9bafb799a4afcd6507d81d889dc07b474f955f..d8825acdc167e95d9c2abbff679131cc7089e721 100644 (file)
@@ -17,18 +17,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef __CONVERT_JSON_H__
-#define __CONVERT_JSON_H__
+#pragma once
 
-#include "json/json.h"
+#include <json/json.h>
 
-struct ModStoreMod;
-struct ModStoreModDetails;
+Json::Value fetchJsonValue(const std::string &url,
+               std::vector<std::string> *extra_headers);
 
-std::vector<ModStoreMod>    readModStoreList(Json::Value& modlist);
-ModStoreModDetails          readModStoreModDetails(Json::Value& details);
-
-Json::Value                 fetchJsonValue(const std::string &url,
-                                           struct curl_slist *chunk);
-
-#endif
+std::string fastWriteJson(const Json::Value &value);