Ratan Gupta | cb7098d | 2017-04-14 17:46:05 +0530 | [diff] [blame] | 1 | #include <sdbusplus/bus.hpp> |
| 2 | #include <sdbusplus/server/manager.hpp> |
| 3 | #include "config.h" |
| 4 | #include "network_manager.hpp" |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 5 | |
| 6 | int main(int argc, char *argv[]) |
| 7 | { |
Ratan Gupta | cb7098d | 2017-04-14 17:46:05 +0530 | [diff] [blame] | 8 | auto bus = sdbusplus::bus::new_default(); |
| 9 | |
| 10 | // Add sdbusplus Object Manager for the 'root' path of the network manager. |
| 11 | sdbusplus::server::manager::manager objManager(bus, OBJ_NETWORK); |
| 12 | |
| 13 | phosphor::network::Manager manager(bus, OBJ_NETWORK); |
| 14 | |
| 15 | bus.request_name(BUSNAME_NETWORK); |
| 16 | |
| 17 | while(true) |
| 18 | { |
| 19 | bus.process_discard(); |
| 20 | bus.wait(); |
| 21 | } |
| 22 | |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 23 | return 0; |
| 24 | } |