manager.cpp (ea6a65f0e893ef608135e7ab871a22349edaa3a2) | manager.cpp (5c7e80d5a431d7cb9645a6e0b30627bbcb40c633) |
---|---|
1/* 2// Copyright (c) 2020 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 --- 297 unchanged lines hidden (view full) --- 306 307 auto pendingAttrs = Base::pendingAttributes(pendingAttribute, false); 308 serialize(*this, biosFile); 309 310 return pendingAttrs; 311} 312 313Manager::Manager(sdbusplus::asio::object_server& objectServer, | 1/* 2// Copyright (c) 2020 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 --- 297 unchanged lines hidden (view full) --- 306 307 auto pendingAttrs = Base::pendingAttributes(pendingAttribute, false); 308 serialize(*this, biosFile); 309 310 return pendingAttrs; 311} 312 313Manager::Manager(sdbusplus::asio::object_server& objectServer, |
314 std::shared_ptr<sdbusplus::asio::connection>& systemBus) : | 314 std::shared_ptr<sdbusplus::asio::connection>& systemBus, 315 std::string persistPath) : |
315 sdbusplus::xyz::openbmc_project::BIOSConfig::server::Manager( 316 *systemBus, objectPath), 317 objServer(objectServer), systemBus(systemBus) 318{ | 316 sdbusplus::xyz::openbmc_project::BIOSConfig::server::Manager( 317 *systemBus, objectPath), 318 objServer(objectServer), systemBus(systemBus) 319{ |
319 fs::path biosDir(BIOS_PERSIST_PATH); | 320 fs::path biosDir(persistPath); |
320 fs::create_directories(biosDir); 321 biosFile = biosDir / biosPersistFile; 322 deserialize(biosFile, *this); 323} 324 325} // namespace bios_config | 321 fs::create_directories(biosDir); 322 biosFile = biosDir / biosPersistFile; 323 deserialize(biosFile, *this); 324} 325 326} // namespace bios_config |