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 | |
Adriana Kobylak | 70bb6bc | 2017-02-21 19:51:52 -0600 | [diff] [blame] | 10 | // Add sdbusplus ObjectManager for the 'root' path of the logging manager. |
| 11 | sdbusplus::server::manager::manager objManager(bus, OBJ_LOGGING); |
Adriana Kobylak | f477fe2 | 2017-01-06 11:56:41 -0600 | [diff] [blame] | 12 | |
| 13 | phosphor::logging::Manager manager(bus, OBJ_INTERNAL); |
| 14 | |
| 15 | bus.request_name(BUSNAME_LOGGING); |
| 16 | |
Adriana Kobylak | f477fe2 | 2017-01-06 11:56:41 -0600 | [diff] [blame] | 17 | while(true) |
| 18 | { |
| 19 | bus.process_discard(); |
| 20 | bus.wait(); |
Adriana Kobylak | 8f7941e | 2016-11-14 14:46:23 -0600 | [diff] [blame] | 21 | } |
Adriana Kobylak | f477fe2 | 2017-01-06 11:56:41 -0600 | [diff] [blame] | 22 | |
| 23 | return 0; |
Adriana Kobylak | 8f7941e | 2016-11-14 14:46:23 -0600 | [diff] [blame] | 24 | } |