This adds emitting of PropertiesChanged signal whenever the
mesh IV index is updated to indicate that the vlaues of "IvIndex"
property has been modified.
Change-Id: I7ce2a982348e7ed92185bccd745c9050f778bc11
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
rpl_init(net->node, iv_index);
}
+ node_property_changed(net->node, "IVIndex");
+
net->iv_index = iv_index;
net->iv_update = ivu;
}
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,
const char *node_get_storage_dir(struct mesh_node *node);
bool node_load_from_storage(const char *storage_dir);
void node_finalize_new_node(struct mesh_node *node, struct mesh_io *io);
+void node_property_changed(struct mesh_node *node, const char *property);