xref: /openbmc/entity-manager/src/entity_manager/log_device_inventory.hpp (revision 90e4f0583c56d3f9263ecc79cd7f3de05f051c32)
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