diff options
Diffstat (limited to 'src/server/shared/JSON/ProtobufJSON.h')
-rw-r--r-- | src/server/shared/JSON/ProtobufJSON.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/server/shared/JSON/ProtobufJSON.h b/src/server/shared/JSON/ProtobufJSON.h index 876028e518c..bae1cffc1d6 100644 --- a/src/server/shared/JSON/ProtobufJSON.h +++ b/src/server/shared/JSON/ProtobufJSON.h @@ -19,13 +19,20 @@ #define ProtobufJSON_h__ #include "Define.h" -#include <google/protobuf/message.h> #include <string> +namespace google +{ + namespace protobuf + { + class Message; + } +} + namespace JSON { TC_SHARED_API std::string Serialize(google::protobuf::Message const& message); - TC_SHARED_API bool Deserialize(std::string json, google::protobuf::Message* message); + TC_SHARED_API bool Deserialize(std::string const& json, google::protobuf::Message* message); } #endif // ProtobufJSON_h__ |