example would be modifications via the "ifconfig"
command line utility.
+ boolean Blocked [readonly]
+
+ Indicates if a device transmission capability is
+ blocked or not. This property is a translation of
+ the device rfkill status. If it is hard or soft
+ blocked, this property will be true.
+
+ Once a device is blocked, enabling it will fail.
+
uint16 ScanInterval [readwrite]
The scan interval describes the time in seconds
DBUS_TYPE_BOOLEAN, &device->powered);
}
+static void blocked_changed(struct connman_device *device)
+{
+ connman_dbus_property_changed_basic(device->element.path,
+ CONNMAN_DEVICE_INTERFACE, "Blocked",
+ DBUS_TYPE_BOOLEAN, &device->blocked);
+}
+
int __connman_device_enable(struct connman_device *device)
{
int err;
connman_dbus_dict_append_basic(&dict, "Powered",
DBUS_TYPE_BOOLEAN, &device->powered);
+ connman_dbus_dict_append_basic(&dict, "Blocked",
+ DBUS_TYPE_BOOLEAN, &device->blocked);
+
if (device->driver && device->driver->scan)
connman_dbus_dict_append_basic(&dict, "Scanning",
DBUS_TYPE_BOOLEAN, &device->scanning);
device->blocked = blocked;
+ blocked_changed(device);
+
if (device->offlinemode == TRUE)
return 0;