From f79be3fae1b51614fb9f0102a5e475e687bd6e0f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 19 Mar 2016 16:50:10 +0100 Subject: [PATCH] Give the proto a package name. --- src/client.cpp | 1 + src/hashprobe.proto | 2 ++ src/main.cpp | 1 + 3 files changed, 4 insertions(+) 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: -- 2.39.2