commit 0508879e2a64a4ecac6a37ab0669e1263d37e2e5
parent 55f9639ee37cfca0590cba58f7d58b5c57749a10
Author: Denis Kenzior <denkenz@gmail.com>
Date: Wed, 29 Jan 2020 10:51:40 -0600
hwsim: Use L_DBUS_PROPERTY_FLAG_AUTO_EMIT
Diffstat:
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/tools/hwsim.c b/tools/hwsim.c
@@ -2151,25 +2151,32 @@ static void setup_rule_interface(struct l_dbus_interface *interface)
{
l_dbus_interface_method(interface, "Remove", 0, rule_remove, "", "");
- l_dbus_interface_property(interface, "Source", 0, "s",
+ l_dbus_interface_property(interface, "Source",
+ L_DBUS_PROPERTY_FLAG_AUTO_EMIT, "s",
rule_property_get_source,
rule_property_set_source);
- l_dbus_interface_property(interface, "Destination", 0, "s",
+ l_dbus_interface_property(interface, "Destination",
+ L_DBUS_PROPERTY_FLAG_AUTO_EMIT, "s",
rule_property_get_destination,
rule_property_set_destination);
- l_dbus_interface_property(interface, "Bidirectional", 0, "b",
+ l_dbus_interface_property(interface, "Bidirectional",
+ L_DBUS_PROPERTY_FLAG_AUTO_EMIT, "b",
rule_property_get_bidirectional,
rule_property_set_bidirectional);
- l_dbus_interface_property(interface, "Frequency", 0, "u",
+ l_dbus_interface_property(interface, "Frequency",
+ L_DBUS_PROPERTY_FLAG_AUTO_EMIT, "u",
rule_property_get_frequency,
rule_property_set_frequency);
- l_dbus_interface_property(interface, "Priority", 0, "n",
+ l_dbus_interface_property(interface, "Priority",
+ L_DBUS_PROPERTY_FLAG_AUTO_EMIT, "n",
rule_property_get_priority,
rule_property_set_priority);
- l_dbus_interface_property(interface, "SignalStrength", 0, "n",
+ l_dbus_interface_property(interface, "SignalStrength",
+ L_DBUS_PROPERTY_FLAG_AUTO_EMIT, "n",
rule_property_get_signal,
rule_property_set_signal);
- l_dbus_interface_property(interface, "Drop", 0, "b",
+ l_dbus_interface_property(interface, "Drop",
+ L_DBUS_PROPERTY_FLAG_AUTO_EMIT, "b",
rule_property_get_drop,
rule_property_set_drop);
}