blob: bd41b63fd950f4d5adf45db65cc65335cf624734 [file] [log] [blame]
Gunnar Mills01a323b2017-01-18 09:48:13 -06001#include <iostream>
2#include <cstdlib>
3#include <exception>
4#include <sdbusplus/bus.hpp>
5#include "config.h"
6#include "version_software_manager.hpp"
7
8int main(int argc, char* argv[])
9{
10 auto bus = sdbusplus::bus::new_default();
11
12 // Add sdbusplus ObjectManager.
13 sdbusplus::server::manager::manager objManager(bus,
14 SOFTWARE_OBJPATH);
15
16 phosphor::software::manager::Version manager(bus,
17 SOFTWARE_OBJPATH);
18
19 bus.request_name(VERSION_BUSNAME);
20
21 while (true)
22 {
23 bus.process_discard();
24 bus.wait();
25 }
26 return 0;
27}