chassiscommands.cpp (51acbdf0bb946c15242834b13509c2fc2507ab66) | chassiscommands.cpp (fcd2d3a943c4fb518d399d8a0addd1cc661e5628) |
---|---|
1/* 2// Copyright (c) 2019 Intel Corporation 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15*/ 16#include "xyz/openbmc_project/Common/error.hpp" 17 | 1/* 2// Copyright (c) 2019 Intel Corporation 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15*/ 16#include "xyz/openbmc_project/Common/error.hpp" 17 |
18#include <fstream> 19#include <iostream> | |
20#include <ipmid/api.hpp> 21#include <ipmid/utils.hpp> 22#include <nlohmann/json.hpp> 23#include <phosphor-logging/elog-errors.hpp> 24#include <phosphor-logging/log.hpp> | 18#include <ipmid/api.hpp> 19#include <ipmid/utils.hpp> 20#include <nlohmann/json.hpp> 21#include <phosphor-logging/elog-errors.hpp> 22#include <phosphor-logging/log.hpp> |
25#include <regex> | |
26#include <sdbusplus/timer.hpp> | 23#include <sdbusplus/timer.hpp> |
24#include <xyz/openbmc_project/Control/Power/RestorePolicy/server.hpp> 25 26#include <fstream> 27#include <iostream> 28#include <regex> |
|
27#include <stdexcept> 28#include <string_view> | 29#include <stdexcept> 30#include <string_view> |
29#include <xyz/openbmc_project/Control/Power/RestorePolicy/server.hpp> | |
30 31using namespace phosphor::logging; 32 33namespace ipmi::chassis 34{ 35static constexpr const char* buttonIntf = "xyz.openbmc_project.Chassis.Buttons"; 36 37const static constexpr char* idButtonPath = --- 628 unchanged lines hidden --- | 31 32using namespace phosphor::logging; 33 34namespace ipmi::chassis 35{ 36static constexpr const char* buttonIntf = "xyz.openbmc_project.Chassis.Buttons"; 37 38const static constexpr char* idButtonPath = --- 628 unchanged lines hidden --- |