projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the player information version_string return value (#8616)
[oweals/minetest.git]
/
src
/
convert_json.h
diff --git
a/src/convert_json.h
b/src/convert_json.h
index ea9bafb799a4afcd6507d81d889dc07b474f955f..d8825acdc167e95d9c2abbff679131cc7089e721 100644
(file)
--- 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.
*/
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);