diff options
author | MichaĆ Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com> | 2019-11-12 11:43:27 +0100 |
---|---|---|
committer | Abhay Agarwal <ay.agarwal@samsung.com> | 2020-01-07 10:40:17 +0530 |
commit | f0f5a382406de9bc5cf2f8ce3f665be778725363 (patch) | |
tree | f8681cfdfd1386c326b9f048f1fb098528e5570b | |
parent | 2945dd6c1dce33f20a9956a62919fe1140265353 (diff) | |
download | bluez-f0f5a382406de9bc5cf2f8ce3f665be778725363.tar.gz bluez-f0f5a382406de9bc5cf2f8ce3f665be778725363.tar.bz2 bluez-f0f5a382406de9bc5cf2f8ce3f665be778725363.zip |
mesh: Add missing property interface to node objects
Change-Id: I4e57e4e0def574511f3e72a048f56f52b1764da7
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
-rw-r--r-- | mesh/node.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mesh/node.c b/mesh/node.c index d2e959e4..cfb7383b 100644 --- a/mesh/node.c +++ b/mesh/node.c @@ -328,6 +328,10 @@ static void free_node_dbus_resources(struct mesh_node *node) l_dbus_object_remove_interface(dbus_get_bus(), node->obj_path, MESH_MANAGEMENT_INTERFACE); + + l_dbus_object_remove_interface(dbus_get_bus(), node->obj_path, + L_DBUS_INTERFACE_PROPERTIES); + l_free(node->obj_path); node->obj_path = NULL; } @@ -1052,6 +1056,10 @@ static bool register_node_object(struct mesh_node *node) MESH_MANAGEMENT_INTERFACE, node)) return false; + if (!l_dbus_object_add_interface(dbus_get_bus(), node->obj_path, + L_DBUS_INTERFACE_PROPERTIES, NULL)) + return false; + return true; } |