3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-23 06:02:37 +01:00

dbus: Use a #define for IWD_MANAGER_PATH

This commit is contained in:
Denis Kenzior 2014-10-23 15:07:08 -05:00
parent 852072e836
commit ae95cbd172
2 changed files with 6 additions and 2 deletions

View File

@ -25,6 +25,8 @@
#define IWD_MANAGER_INTERFACE "net.connman.iwd.Manager" #define IWD_MANAGER_INTERFACE "net.connman.iwd.Manager"
#define IWD_DEVICE_INTERFACE "net.connman.iwd.Device" #define IWD_DEVICE_INTERFACE "net.connman.iwd.Device"
#define IWD_MANAGER_PATH "/"
struct l_dbus; struct l_dbus;
struct l_dbus *dbus_get_bus(void); struct l_dbus *dbus_get_bus(void);

View File

@ -71,7 +71,8 @@ static void setup_manager_interface(struct l_dbus_interface *interface)
bool manager_init(struct l_dbus *dbus) 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)) { setup_manager_interface, NULL, NULL)) {
l_info("Unable to register %s interface", l_info("Unable to register %s interface",
IWD_MANAGER_INTERFACE); IWD_MANAGER_INTERFACE);
@ -83,7 +84,8 @@ bool manager_init(struct l_dbus *dbus)
bool manager_exit(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; return true;
} }