2019-12-15 16:48:58 -06:00
|
|
|
/*
|
|
|
|
|
Copyright (c) 2019 - present Advanced Micro Devices, Inc. All rights reserved.
|
|
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
|
THE SOFTWARE.
|
|
|
|
|
*/
|
2019-12-22 20:30:58 -06:00
|
|
|
#ifndef SERVER_INCLUDE_RDC_RDC_ADMIN_SERVICE_H_
|
|
|
|
|
#define SERVER_INCLUDE_RDC_RDC_ADMIN_SERVICE_H_
|
2019-12-15 16:48:58 -06:00
|
|
|
|
2024-01-22 18:56:42 -06:00
|
|
|
#include "amd_smi/amdsmi.h"
|
2019-12-22 20:30:58 -06:00
|
|
|
#include "rdc.grpc.pb.h" // NOLINT
|
|
|
|
|
#include "rdc/rdc_admin_service.h"
|
2019-12-15 16:48:58 -06:00
|
|
|
|
2020-01-06 20:32:55 -06:00
|
|
|
namespace amd {
|
|
|
|
|
namespace rdc {
|
|
|
|
|
|
2019-12-22 20:30:58 -06:00
|
|
|
class RDCAdminServiceImpl final : public ::rdc::RdcAdmin::Service {
|
2019-12-15 16:48:58 -06:00
|
|
|
public:
|
2019-12-22 20:30:58 -06:00
|
|
|
RDCAdminServiceImpl();
|
|
|
|
|
~RDCAdminServiceImpl();
|
|
|
|
|
::grpc::Status VerifyConnection(::grpc::ServerContext* context,
|
2020-01-06 20:32:55 -06:00
|
|
|
const ::rdc::VerifyConnectionRequest* request,
|
|
|
|
|
::rdc::VerifyConnectionResponse* reply) override;
|
2023-12-04 15:24:34 -06:00
|
|
|
|
2019-12-15 16:48:58 -06:00
|
|
|
private:
|
|
|
|
|
};
|
|
|
|
|
|
2020-03-02 15:06:01 -06:00
|
|
|
} // namespace rdc
|
|
|
|
|
} // namespace amd
|
2020-01-06 20:32:55 -06:00
|
|
|
|
2019-12-22 20:30:58 -06:00
|
|
|
#endif // SERVER_INCLUDE_RDC_RDC_ADMIN_SERVICE_H_
|