mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +01:00
core: Open the private bus connection and acquire name
This commit is contained in:
parent
f3b9d44be7
commit
f299d96e77
@ -72,13 +72,18 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
l_debug("Bus location: %s", bus_name);
|
l_debug("Bus location: %s", bus_name);
|
||||||
|
|
||||||
|
if (!kdbus_open_bus(bus_name, "net.connman.iwd", "iwd")) {
|
||||||
|
exit_status = EXIT_FAILURE;
|
||||||
|
goto destroy;
|
||||||
|
}
|
||||||
|
|
||||||
l_main_run();
|
l_main_run();
|
||||||
|
|
||||||
exit_status = EXIT_SUCCESS;
|
exit_status = EXIT_SUCCESS;
|
||||||
|
|
||||||
|
destroy:
|
||||||
l_free(bus_name);
|
l_free(bus_name);
|
||||||
|
|
||||||
destroy:
|
|
||||||
kdbus_destroy_bus();
|
kdbus_destroy_bus();
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
Loading…
Reference in New Issue
Block a user