Tom Joseph | 536ea32 | 2018-09-14 10:02:20 +0530 | [diff] [blame^] | 1 | #include <string> |
| 2 | #include <experimental/filesystem> |
| 3 | #include "config.h" |
| 4 | #include "ldap_mapper_mgr.hpp" |
| 5 | |
| 6 | int main(int argc, char** argv) |
| 7 | { |
| 8 | auto bus = sdbusplus::bus::new_default(); |
| 9 | sdbusplus::server::manager::manager objManager( |
| 10 | bus, phosphor::user::mapperMgrRoot); |
| 11 | |
| 12 | phosphor::user::LDAPMapperMgr mapperMgr(bus, phosphor::user::mapperMgrRoot); |
| 13 | |
| 14 | // Claim the bus name for the application |
| 15 | bus.request_name(LDAP_MAPPER_MANAGER_BUSNAME); |
| 16 | |
| 17 | // Wait for client request |
| 18 | while (true) |
| 19 | { |
| 20 | // Process D-Bus calls |
| 21 | bus.process_discard(); |
| 22 | bus.wait(); |
| 23 | } |
| 24 | return 0; |
| 25 | } |