blob: 6a275ddc4c6597970c9df123d2a27f0ebf4e14de [file] [log] [blame]
Beerappa S M7af96e52021-04-20 18:57:54 +00001/*
2 * Copyright 2021-present Open Networking Foundation
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 * http://www.apache.org/licenses/LICENSE-2.0
7 * Unless required by applicable law or agreed to in writing, software
8 * distributed under the License is distributed on an "AS IS" BASIS,
9 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 * See the License for the specific language governing permissions and
11 * limitations under the License.
12 */
13
14#ifndef DMI_HW_MGMT_H_
15#define DMI_HH_MGMT_H_
16
17#include "hw_events_mgmt_service.grpc.pb.h"
18#include "hw_events_mgmt_service.pb.h"
19#include "dmi_common.h"
20
21class HWEventsMgmtService final : public dmi::NativeEventsManagementService::Service
22{
23 public:
24 static HWEventsMgmtService& getHwEventMgmtInstance()
25 {
26 static HWEventsMgmtService HwEventInstance;
27 return HwEventInstance;
28 }
29
30 grpc::Status ListEvents(
31 ServerContext* context,
32 const dmi::HardwareID* request,
33 dmi::ListEventsResponse* response)
34 {
35 //TODO write an internal API to handle the request
36 return Status(grpc::StatusCode::UNIMPLEMENTED, "RPC not implemented");
37 }
38
39 grpc::Status UpdateEventsConfiguration(
40 ServerContext* context,
41 const dmi::EventsConfigurationRequest* request,
42 dmi::EventsConfigurationResponse* response )
43 {
44 //TODO write an internal API to handle the request
45 return Status(grpc::StatusCode::UNIMPLEMENTED, "RPC not implemented");
46 }
47
48 private:
49 HWEventsMgmtService()
50 {
51 }
52
53 ~HWEventsMgmtService()
54 {
55 }
56};
57
58#endif