1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright 2018 Intel Corporation 3 4 #pragma once 5 6 #include <nlohmann/json.hpp> 7 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 16 void logDeviceAdded(const nlohmann::json& record); 17 18 void logDeviceRemoved(const nlohmann::json& record); 19 20 InvAddRemoveInfo queryInvInfo(const nlohmann::json& record); 21