X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fconvert_json.h;h=d8825acdc167e95d9c2abbff679131cc7089e721;hb=b2ab5fd1615ac5f907e43992d0905a56cddf798f;hp=6732fcfa3148b52a078f5e4f2e95da9b9f9b9d2b;hpb=8af44f81637938db7e4651d2ef8a294cf43b1072;p=minetest.git diff --git a/src/convert_json.h b/src/convert_json.h index 6732fcfa3..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, - std::vector *extra_headers); - -#endif +std::string fastWriteJson(const Json::Value &value);