| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
|---|---|
| 2 | |
| 3 | #include "dm_server.hpp" |
| 4 | #include "libsm.h" |
| 5 | |
| 6 | #include <librpc/rpc_server.h> |
| 7 | #include <stdio.h> |
| 8 | #include <stdlib.h> |
| 9 | |
| 10 | int main(int argc, const char *argv[]) |
| 11 | { |
| 12 | MOS_UNUSED(argc); |
| 13 | MOS_UNUSED(argv); |
| 14 | |
| 15 | DeviceManagerServer dm_server; |
| 16 | ReportServiceState(status: UnitStatus::Started, message: "DM started"); |
| 17 | |
| 18 | dm_server.run(); |
| 19 | fputs(string: "device_manager: server exited\n", stream: stderr); |
| 20 | |
| 21 | return 0; |
| 22 | } |
| 23 |