| Alexander Hansen | 4e1142d | 2025-07-25 17:07:27 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: Apache-2.0 |
| 2 | // SPDX-FileCopyrightText: Copyright 2018 Intel Corporation |
| 3 | |
| Alexander Hansen | f57a259 | 2025-06-27 15:07:07 +0200 | [diff] [blame] | 4 | #pragma once |
| 5 | |
| 6 | #include <nlohmann/json.hpp> |
| 7 | |
| Alexander Hansen | 90e4f05 | 2025-10-10 22:58:01 +0200 | [diff] [blame^] | 8 | struct InvAddRemoveInfo |
| 9 | { |
| 10 | std::string model = "Unknown"; |
| 11 | std::string type = "Unknown"; |
| 12 | std::string sn = "Unknown"; |
| 13 | std::string name = "Unknown"; |
| 14 | }; |
| 15 | |
| Alexander Hansen | f57a259 | 2025-06-27 15:07:07 +0200 | [diff] [blame] | 16 | void logDeviceAdded(const nlohmann::json& record); |
| 17 | |
| 18 | void logDeviceRemoved(const nlohmann::json& record); |
| Alexander Hansen | 90e4f05 | 2025-10-10 22:58:01 +0200 | [diff] [blame^] | 19 | |
| 20 | InvAddRemoveInfo queryInvInfo(const nlohmann::json& record); |