aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2016-06-06 14:21:11 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2016-06-06 14:35:51 -0700
commit7ae31a88980cba5e7e0173cad91e62dbfe1b0374 (patch)
tree8156bd4c5a58c2ae55382ef4fdcfd8fac8d13d9d /include/grpc++
parent0601df3a04a91e5e731e829989fd93290e301d97 (diff)
Add more comments, fix format issues
Diffstat (limited to 'include/grpc++')
-rw-r--r--include/grpc++/ext/proto_server_reflection_plugin.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/grpc++/ext/proto_server_reflection_plugin.h b/include/grpc++/ext/proto_server_reflection_plugin.h
index 774d3439e7..517c4737f5 100644
--- a/include/grpc++/ext/proto_server_reflection_plugin.h
+++ b/include/grpc++/ext/proto_server_reflection_plugin.h
@@ -31,8 +31,8 @@
*
*/
-#ifndef GRPCXX_PROTO_SERVER_REFLECTION_PLUGIN_H
-#define GRPCXX_PROTO_SERVER_REFLECTION_PLUGIN_H
+#ifndef GRPCXX_EXT_PROTO_SERVER_REFLECTION_PLUGIN_H
+#define GRPCXX_EXT_PROTO_SERVER_REFLECTION_PLUGIN_H
#include <grpc++/impl/server_builder_plugin.h>
#include <grpc++/support/config.h>
@@ -59,7 +59,11 @@ class ProtoServerReflectionPlugin : public ::grpc::ServerBuilderPlugin {
std::shared_ptr<::grpc::ProtoServerReflection> reflection_service_;
};
+// Add proto reflection plugin to ServerBuilder. This function should be called
+// at the static initialization time.
+void InitProtoReflectionServerBuilderPlugin();
+
} // namespace reflection
} // namespace grpc
-#endif // GRPCXX_PROTO_SERVER_REFLECTION_PLUGIN_H
+#endif // GRPCXX_EXT_PROTO_SERVER_REFLECTION_PLUGIN_H