Tomáš Pecka | 7acf392 | 2021-08-10 11:16:57 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2020 CESNET, https://photonics.cesnet.cz/ |
| 3 | * |
| 4 | * Written by Tomáš Pecka <tomas.pecka@fit.cvut.cz> |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #pragma once |
| 9 | |
| 10 | #include <functional> |
| 11 | #include <map> |
| 12 | #include <memory> |
| 13 | #include <optional> |
| 14 | #include <sysrepo-cpp/Session.hpp> |
| 15 | #include "LLDP.h" |
| 16 | #include "utils/log-fwd.h" |
| 17 | |
| 18 | namespace velia::system { |
| 19 | |
| 20 | class LLDPCallback { |
| 21 | public: |
| 22 | explicit LLDPCallback(std::shared_ptr<LLDPDataProvider> lldp); |
Václav Kubernát | 7efd6d5 | 2021-11-09 01:31:11 +0100 | [diff] [blame] | 23 | sysrepo::ErrorCode operator()(sysrepo::Session session, uint32_t subscriptionId, std::string_view moduleName, std::optional<std::string_view> subXPath, std::optional<std::string_view> requestXPath, uint32_t, std::optional<libyang::DataNode>& output); |
Tomáš Pecka | 7acf392 | 2021-08-10 11:16:57 +0200 | [diff] [blame] | 24 | |
| 25 | private: |
| 26 | velia::Log m_log; |
| 27 | std::shared_ptr<LLDPDataProvider> m_lldp; |
Tomáš Pecka | 7acf392 | 2021-08-10 11:16:57 +0200 | [diff] [blame] | 28 | }; |
| 29 | |
| 30 | } |