main.cpp (8de46ffb8639e0c7931a1836bcef5ad24470842c) main.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
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
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
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
17#include "config.hpp"
17#include "manager.hpp"
18#include "password.hpp"
19
20#include <boost/asio.hpp>
21#include <phosphor-logging/elog-errors.hpp>
22#include <phosphor-logging/lg2.hpp>
23#include <sdbusplus/asio/connection.hpp>
24#include <sdbusplus/asio/object_server.hpp>

--- 8 unchanged lines hidden (view full) ---

33
34 /**
35 * Manager class is responsible for handling methods and signals under
36 * the following object path and interface.
37 *
38 * Object path : /xyz/openbmc_project/bios_config/manager
39 * Interface : xyz.openbmc_project.BIOSConfig.Manager
40 */
18#include "manager.hpp"
19#include "password.hpp"
20
21#include <boost/asio.hpp>
22#include <phosphor-logging/elog-errors.hpp>
23#include <phosphor-logging/lg2.hpp>
24#include <sdbusplus/asio/connection.hpp>
25#include <sdbusplus/asio/object_server.hpp>

--- 8 unchanged lines hidden (view full) ---

34
35 /**
36 * Manager class is responsible for handling methods and signals under
37 * the following object path and interface.
38 *
39 * Object path : /xyz/openbmc_project/bios_config/manager
40 * Interface : xyz.openbmc_project.BIOSConfig.Manager
41 */
41 bios_config::Manager manager(objectServer, systemBus);
42 bios_config::Manager manager(objectServer, systemBus, BIOS_PERSIST_PATH);
42
43 /**
44 * Password class is responsible for handling methods and signals under
45 * the following object path and interface.
46 *
47 * Object path : /xyz/openbmc_project/bios_config/password
48 * Interface : xyz.openbmc_project.BIOSConfig.Password
49 */
50 bios_config_pwd::Password password(objectServer, systemBus);
51
52 io.run();
53 return 0;
54}
43
44 /**
45 * Password class is responsible for handling methods and signals under
46 * the following object path and interface.
47 *
48 * Object path : /xyz/openbmc_project/bios_config/password
49 * Interface : xyz.openbmc_project.BIOSConfig.Password
50 */
51 bios_config_pwd::Password password(objectServer, systemBus);
52
53 io.run();
54 return 0;
55}