forked from enlightenment/enlightenment
its not guaranteed that storage devices will have UDI's beginning with 'storage', nor does it make sense to query those that do for capability 'volume'.
check all devices for both capabilities SVN revision: 30774
This commit is contained in:
parent
bcd4833484
commit
a8f3c6a4aa
|
@ -278,18 +278,13 @@ _e_dbus_cb_dev_all(void *user_data, void *reply_data, DBusError *error)
|
|||
while ((device = ecore_list_next(ret->strings)))
|
||||
{
|
||||
// printf("DB INIT DEV+: %s\n", device);
|
||||
if (!strncmp(device, "/org/freedesktop/Hal/devices/storage",
|
||||
strlen("/org/freedesktop/Hal/devices/storage")))
|
||||
{
|
||||
char *udi;
|
||||
int ret;
|
||||
|
||||
udi = device;
|
||||
ret = e_hal_device_query_capability(_e_dbus_conn, udi, "storage",
|
||||
_e_dbus_cb_store_is, strdup(udi));
|
||||
e_hal_device_query_capability(_e_dbus_conn, udi, "volume",
|
||||
_e_dbus_cb_vol_is, strdup(udi));
|
||||
}
|
||||
char *udi;
|
||||
|
||||
udi = device;
|
||||
e_hal_device_query_capability(_e_dbus_conn, udi, "storage",
|
||||
_e_dbus_cb_store_is, strdup(udi));
|
||||
e_hal_device_query_capability(_e_dbus_conn, udi, "volume",
|
||||
_e_dbus_cb_vol_is, strdup(udi));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue