From: Steinar H. Gunderson Date: Sat, 19 Mar 2016 15:50:10 +0000 (+0100) Subject: Give the proto a package name. X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=dace61600a12f3f1ad1abcb2625f4c497e8f15ba Give the proto a package name. --- diff --git a/src/client.cpp b/src/client.cpp index b1eead58..054e4ce5 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -11,6 +11,7 @@ using grpc::Channel; using grpc::ClientContext; using grpc::Status; +using namespace hashprobe; std::string FormatMove(Move move) { if (move == MOVE_NULL) { diff --git a/src/hashprobe.proto b/src/hashprobe.proto index a7efa8ce..505f06e7 100644 --- a/src/hashprobe.proto +++ b/src/hashprobe.proto @@ -1,4 +1,6 @@ syntax = "proto3"; +package hashprobe; + message HashProbeRequest { string fen = 1; } diff --git a/src/main.cpp b/src/main.cpp index 0e3e3abb..0d94cd43 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -39,6 +39,7 @@ using grpc::ServerBuilder; using grpc::ServerContext; using grpc::Status; using grpc::StatusCode; +using namespace hashprobe; class HashProbeImpl final : public HashProbe::Service { public: