aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-03-13 18:36:39 +0100
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-03-13 18:36:39 +0100
commit613d6fe997c8744f76f23a5819f6613ec3b288c2 (patch)
treeb6a4c89e370793a085d525081e3e9ec7a97c5566 /include/grpc++
parentd446eb86fae18df3c473c96676da5bcf4f69178c (diff)
Moving ZeroCopyOutputStream to grpc++/config.h.
Diffstat (limited to 'include/grpc++')
-rw-r--r--include/grpc++/config.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/grpc++/config.h b/include/grpc++/config.h
index 327ed7a549..fd7672784b 100644
--- a/include/grpc++/config.h
+++ b/include/grpc++/config.h
@@ -52,12 +52,26 @@
#define GRPC_CUSTOM_MESSAGE ::google::protobuf::Message
#endif
+#ifndef GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM
+#include <google/protobuf/io/zero_copy_stream.h>
+#define GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM ::google::protobuf::io::ZeroCopyOutputStream
+#define GRPC_CUSTOM_ZEROCOPYINPUTSTREAM ::google::protobuf::io::ZeroCopyInputStream
+#endif
+
+
namespace grpc {
typedef GRPC_CUSTOM_STRING string;
namespace protobuf {
+
typedef GRPC_CUSTOM_MESSAGE Message;
+
+namespace io {
+typedef GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM ZeroCopyOutputStream;
+typedef GRPC_CUSTOM_ZEROCOPYINPUTSTREAM ZeroCopyInputStream;
+} // namespace io
+
} // namespace protobuf
} // namespace grpc