summaryrefslogtreecommitdiff
path: root/mesh/node.c
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2020-06-19 14:26:53 -0700
committerBrian Gix <brian.gix@intel.com>2020-06-22 14:36:55 -0700
commitaf07ca6950c9fc988d256232878aea4699df1ca6 (patch)
tree8da8e97f12e3ed1cdcf689ddd320fb4ba0f485e1 /mesh/node.c
parent3391fb4a06613130273d3a416753e7f088b971e6 (diff)
downloadbluez-af07ca6950c9fc988d256232878aea4699df1ca6.tar.gz
mesh: Emit PropertiesChanged when IV Index changes
This adds emitting of PropertiesChanged signal whenever the mesh IV index is updated to indicate that the vlaues of "IvIndex" property has been modified.
Diffstat (limited to 'mesh/node.c')
-rw-r--r--mesh/node.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mesh/node.c b/mesh/node.c
index cf4d93aec..ee6d1833f 100644
--- a/mesh/node.c
+++ b/mesh/node.c
@@ -2280,6 +2280,15 @@ static void setup_node_interface(struct l_dbus_interface *iface)
NULL);
}
+void node_property_changed(struct mesh_node *node, const char *property)
+{
+ struct l_dbus *bus = dbus_get_bus();
+
+ if (bus)
+ l_dbus_property_changed(dbus_get_bus(), node->obj_path,
+ MESH_NODE_INTERFACE, property);
+}
+
bool node_dbus_init(struct l_dbus *bus)
{
if (!l_dbus_register_interface(bus, MESH_NODE_INTERFACE,