X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fconvert_json.h;h=d8825acdc167e95d9c2abbff679131cc7089e721;hb=2dff3dd03f7ba25f3fab7c360759ddbf93615668;hp=ea9bafb799a4afcd6507d81d889dc07b474f955f;hpb=7cac34c807b6f38eaca3bc8296566493c8874e03;p=minetest.git diff --git a/src/convert_json.h b/src/convert_json.h index ea9bafb79..d8825acdc 100644 --- a/src/convert_json.h +++ b/src/convert_json.h @@ -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 -struct ModStoreMod; -struct ModStoreModDetails; +Json::Value fetchJsonValue(const std::string &url, + std::vector *extra_headers); -std::vector 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);