diff options
author | kwolekr <kwolekr@minetest.net> | 2014-02-15 18:20:15 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-02-15 19:13:14 -0500 |
commit | 3570f3e396acad4a6b5381d06c2dae5cf4e95fbd (patch) | |
tree | 1ce53a41271802efdd9f88de83b2c68e06cd2f33 /src/util/serialize.h | |
parent | c87316487840fd176662207acef4fb15286e32e8 (diff) | |
download | minetest-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.h | 10 |
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 |