diff options
Diffstat (limited to 'src/tool.h')
-rw-r--r-- | src/tool.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tool.h b/src/tool.h index c6bf0ad73..f6b196a49 100644 --- a/src/tool.h +++ b/src/tool.h @@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <string> #include <iostream> #include "itemgroup.h" +#include <json/json.h> struct ToolGroupCap { @@ -42,6 +43,9 @@ struct ToolGroupCap *time = i->second; return true; } + + void toJson(Json::Value &object) const; + void fromJson(const Json::Value &json); }; @@ -69,6 +73,8 @@ struct ToolCapabilities void serialize(std::ostream &os, u16 version) const; void deSerialize(std::istream &is); + void serializeJson(std::ostream &os) const; + void deserializeJson(std::istream &is); }; struct DigParams |