mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
dbus: Use a #define for IWD_MANAGER_PATH
This commit is contained in:
parent
852072e836
commit
ae95cbd172
@ -25,6 +25,8 @@
|
||||
#define IWD_MANAGER_INTERFACE "net.connman.iwd.Manager"
|
||||
#define IWD_DEVICE_INTERFACE "net.connman.iwd.Device"
|
||||
|
||||
#define IWD_MANAGER_PATH "/"
|
||||
|
||||
struct l_dbus;
|
||||
|
||||
struct l_dbus *dbus_get_bus(void);
|
||||
|
@ -71,7 +71,8 @@ static void setup_manager_interface(struct l_dbus_interface *interface)
|
||||
|
||||
bool manager_init(struct l_dbus *dbus)
|
||||
{
|
||||
if (!l_dbus_register_interface(dbus, "/", IWD_MANAGER_INTERFACE,
|
||||
if (!l_dbus_register_interface(dbus, IWD_MANAGER_PATH,
|
||||
IWD_MANAGER_INTERFACE,
|
||||
setup_manager_interface, NULL, NULL)) {
|
||||
l_info("Unable to register %s interface",
|
||||
IWD_MANAGER_INTERFACE);
|
||||
@ -83,7 +84,8 @@ bool manager_init(struct l_dbus *dbus)
|
||||
|
||||
bool manager_exit(struct l_dbus *dbus)
|
||||
{
|
||||
l_dbus_unregister_interface(dbus, "/", IWD_MANAGER_INTERFACE);
|
||||
l_dbus_unregister_interface(dbus, IWD_MANAGER_PATH,
|
||||
IWD_MANAGER_INTERFACE);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user