Adriana Kobylak | f477fe2 | 2017-01-06 11:56:41 -0600 | [diff] [blame] | 1 | #include <sdbusplus/bus.hpp> |
| 2 | #include <sdbusplus/server/manager.hpp> |
Adriana Kobylak | 8f7941e | 2016-11-14 14:46:23 -0600 | [diff] [blame] | 3 | #include "config.h" |
| 4 | #include "log_manager.hpp" |
Adriana Kobylak | 8f7941e | 2016-11-14 14:46:23 -0600 | [diff] [blame] | 5 | |
| 6 | int main(int argc, char *argv[]) |
| 7 | { |
Adriana Kobylak | f477fe2 | 2017-01-06 11:56:41 -0600 | [diff] [blame] | 8 | auto bus = sdbusplus::bus::new_default(); |
| 9 | |
| 10 | // Add sdbusplus ObjectManager. |
| 11 | sdbusplus::server::manager::manager objManager(bus, OBJ_INTERNAL); |
| 12 | |
| 13 | phosphor::logging::Manager manager(bus, OBJ_INTERNAL); |
| 14 | |
| 15 | bus.request_name(BUSNAME_LOGGING); |
| 16 | |
| 17 | // TODO Create error log dbus object on demand, when the Commit interface |
| 18 | // creates an error log it'd call this entry interface to create an object. |
| 19 | |
| 20 | while(true) |
| 21 | { |
| 22 | bus.process_discard(); |
| 23 | bus.wait(); |
Adriana Kobylak | 8f7941e | 2016-11-14 14:46:23 -0600 | [diff] [blame] | 24 | } |
Adriana Kobylak | f477fe2 | 2017-01-06 11:56:41 -0600 | [diff] [blame] | 25 | |
| 26 | return 0; |
Adriana Kobylak | 8f7941e | 2016-11-14 14:46:23 -0600 | [diff] [blame] | 27 | } |