blob: fce02b48ffaa88722af816df305f9be4449b41c9 [file] [log] [blame]
SunnySrivastava1984b59fd092020-02-03 09:58:56 -06001#include "config.h"
2
3#include "manager.hpp"
4
5#include <cstdlib>
6#include <exception>
7#include <iostream>
8#include <sdbusplus/bus.hpp>
9
Priyanga Ramasamy9d149342020-07-16 23:41:26 +053010int main(int /*argc*/, char** /*argv*/)
SunnySrivastava1984b59fd092020-02-03 09:58:56 -060011{
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}