aboutsummaryrefslogtreecommitdiff
path: root/src/util/serialize.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-02-15 18:20:15 -0500
committerkwolekr <kwolekr@minetest.net>2014-02-15 19:13:14 -0500
commit3570f3e396acad4a6b5381d06c2dae5cf4e95fbd (patch)
tree1ce53a41271802efdd9f88de83b2c68e06cd2f33 /src/util/serialize.h
parentc87316487840fd176662207acef4fb15286e32e8 (diff)
downloadminetest-3570f3e396acad4a6b5381d06c2dae5cf4e95fbd.tar.gz
minetest-3570f3e396acad4a6b5381d06c2dae5cf4e95fbd.tar.bz2
minetest-3570f3e396acad4a6b5381d06c2dae5cf4e95fbd.zip
Add minetest.set_noiseparam_defaults() Lua API
Diffstat (limited to 'src/util/serialize.h')
-rw-r--r--src/util/serialize.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/serialize.h b/src/util/serialize.h
index 7a37cd70f..4c8836021 100644
--- a/src/util/serialize.h
+++ b/src/util/serialize.h
@@ -401,5 +401,15 @@ std::string serializeJsonString(const std::string &plain);
// Reads a string encoded in JSON format
std::string deSerializeJsonString(std::istream &is);
+// Creates a string containing comma delimited values of a struct whose layout is
+// described by the parameter format
+bool serializeStructToString(std::string *outstr,
+ std::string format, void *value);
+
+// Reads a comma delimited string of values into a struct whose layout is
+// decribed by the parameter format
+bool deSerializeStringToStruct(std::string valstr,
+ std::string format, void *out, size_t olen);
+
#endif