From fc38fff843dda1c4b831f86fd8342df5e3ca976b Mon Sep 17 00:00:00 2001 From: Lia Stratopoulos <167905060+lia-viam@users.noreply.github.com> Date: Wed, 18 Dec 2024 07:50:48 -0500 Subject: [PATCH] commit configure input file --- src/viam/sdk/common/grpc_client_fwd.hpp.in | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/viam/sdk/common/grpc_client_fwd.hpp.in diff --git a/src/viam/sdk/common/grpc_client_fwd.hpp.in b/src/viam/sdk/common/grpc_client_fwd.hpp.in new file mode 100644 index 000000000..e6ba5799f --- /dev/null +++ b/src/viam/sdk/common/grpc_client_fwd.hpp.in @@ -0,0 +1,55 @@ +#pragma once + +#cmakedefine VIAMCPPSDK_GRPCXX_LEGACY_CLIENT_FWD + +#ifndef VIAMCPPSDK_GRPCXX_LEGACY_CLIENT_FWD + +// Forward declaration file for grpc ClientContext and ClientReaderInterface. +// This file provides includes for recent (>= 1.32.0) versions of grpc. + +namespace grpc { + +class ClientContext; + +template +class ClientReaderInterface; + +} // namespace grpc + +namespace viam { +namespace sdk { + +using GrpcClientContext = ::grpc::ClientContext; + +template +using GrpcClientReaderInterface = ::grpc::ClientReaderInterface; + +} // namespace sdk +} // namespace viam + +#else + +// Forward declaration file for grpc ClientContext and ClientReaderInterface. +// This file provides includes for the oldest supported versions of grpc (< 1.32.0). + +namespace grpc_impl { + +class ClientContext; + +template +class ClientReaderInterface; + +} // namespace grpc_impl + +namespace viam { +namespace sdk { + +using GrpcClientContext = ::grpc_impl::ClientContext; + +template +using GrpcClientReaderInterface = ::grpc_impl::ClientReaderInterface; + +} // namespace sdk +} // namespace viam + +#endif