aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/JSON/ProtobufJSON.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2017-05-13 11:49:09 +0200
committerShauren <shauren.trinity@gmail.com>2017-05-13 11:49:09 +0200
commitbeb3316089b350a43e917d896e682298df8dcfc0 (patch)
tree8006c52594009f226d834991d101c97057699594 /src/server/shared/JSON/ProtobufJSON.h
parentc00316d3d4b57826cc8e38feed24faf84832c04b (diff)
Core/Shared: Include cleanup
Diffstat (limited to 'src/server/shared/JSON/ProtobufJSON.h')
-rw-r--r--src/server/shared/JSON/ProtobufJSON.h11
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__