| SunnySrivastava1984 | b59fd09 | 2020-02-03 09:58:56 -0600 | [diff] [blame^] | 1 | #include "config.h" |
| 2 | |||||
| 3 | #include "manager.hpp" | ||||
| 4 | |||||
| 5 | #include <cstdlib> | ||||
| 6 | #include <exception> | ||||
| 7 | #include <iostream> | ||||
| 8 | #include <sdbusplus/bus.hpp> | ||||
| 9 | |||||
| 10 | int main(int argc, char* argv[]) | ||||
| 11 | { | ||||
| 12 | try | ||||
| 13 | { | ||||
| 14 | openpower::vpd::manager::Manager vpdManager( | ||||
| 15 | sdbusplus::bus::new_system(), BUSNAME, OBJPATH, IFACE); | ||||
| 16 | vpdManager.run(); | ||||
| 17 | exit(EXIT_SUCCESS); | ||||
| 18 | } | ||||
| 19 | catch (const std::exception& e) | ||||
| 20 | { | ||||
| 21 | std::cerr << e.what() << "\n"; | ||||
| 22 | } | ||||
| 23 | exit(EXIT_FAILURE); | ||||
| 24 | } | ||||