| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
|---|---|
| 2 | |
| 3 | #pragma once |
| 4 | |
| 5 | #include "proto/services.service.h" |
| 6 | |
| 7 | #include <librpc/rpc.h> |
| 8 | #include <memory> |
| 9 | |
| 10 | #define UNIT_STATE_RECEIVER_SERVICE_SERVERNAME "mos.service_manager.unit_state_receiver" |
| 11 | |
| 12 | class UnitStateReceiverServiceImpl : public IUnitStateReceiverService |
| 13 | { |
| 14 | public: |
| 15 | using IUnitStateReceiverService::IUnitStateReceiverService; |
| 16 | virtual rpc_result_code_t notify(rpc_context_t *, UnitStateNotifyRequest *req, UnitStateNotifyResponse *res) override; |
| 17 | }; |
| 18 | |
| 19 | inline const auto UnitStateReceiverService = std::make_unique<UnitStateReceiverServiceImpl>(UNIT_STATE_RECEIVER_SERVICE_SERVERNAME); |
| 20 |