connman_bool_t scanning);
int connman_device_set_disconnected(struct connman_device *device,
connman_bool_t disconnected);
+connman_bool_t connman_device_get_disconnected(struct connman_device *device);
int connman_device_set_connected(struct connman_device *device,
connman_bool_t connected);
}
/**
+ * connman_device_get_disconnected:
+ * @device: device structure
+ *
+ * Get device disconnected state
+ */
+connman_bool_t connman_device_get_disconnected(struct connman_device *device)
+{
+ return device->disconnected;
+}
+
+/**
* connman_device_set_connected:
* @device: device structure
* @connected: connected state