]> git.sesse.net Git - stockfish/commitdiff
Give the proto a package name.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 19 Mar 2016 15:50:10 +0000 (16:50 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 26 Dec 2018 09:43:37 +0000 (10:43 +0100)
src/client.cpp
src/hashprobe.proto
src/main.cpp

index b1eead58d5d5d9dc54bfb3bb8a55642b20c89c2e..054e4ce5573ed16daf8c4a1f12f65c2da942f17f 100644 (file)
@@ -11,6 +11,7 @@
 using grpc::Channel;
 using grpc::ClientContext;
 using grpc::Status;
 using grpc::Channel;
 using grpc::ClientContext;
 using grpc::Status;
+using namespace hashprobe;
 
 std::string FormatMove(Move move) {
   if (move == MOVE_NULL) {
 
 std::string FormatMove(Move move) {
   if (move == MOVE_NULL) {
index a7efa8ce8c13683b4cd94a5397c1e677d6c57775..505f06e76f24c1c1b1ee4f6e8ad2b94019dbad19 100644 (file)
@@ -1,4 +1,6 @@
 syntax = "proto3";
 syntax = "proto3";
+package hashprobe;
+
 message HashProbeRequest {
        string fen = 1;
 }
 message HashProbeRequest {
        string fen = 1;
 }
index 0e3e3abbb0a8b57c129bf62f39d901fe1ff2a16d..0d94cd43ff4686726e8f9c167e57dde52934723b 100644 (file)
@@ -39,6 +39,7 @@ using grpc::ServerBuilder;
 using grpc::ServerContext;
 using grpc::Status;
 using grpc::StatusCode;
 using grpc::ServerContext;
 using grpc::Status;
 using grpc::StatusCode;
+using namespace hashprobe;
 
 class HashProbeImpl final : public HashProbe::Service {
 public:
 
 class HashProbeImpl final : public HashProbe::Service {
 public: