forked from enlightenment/efl
no need to use get property when there are reasonable simple functions
SVN revision: 53729
This commit is contained in:
parent
c2d941930c
commit
ef1b10734e
|
@ -38,7 +38,7 @@ eeze_udev_syspath_get_parent(const char *syspath)
|
||||||
if (!(device = _new_device(syspath)))
|
if (!(device = _new_device(syspath)))
|
||||||
return NULL;
|
return NULL;
|
||||||
parent = udev_device_get_parent(device);
|
parent = udev_device_get_parent(device);
|
||||||
ret = eina_stringshare_add(udev_device_get_property_value(parent, "DEVPATH"));
|
ret = eina_stringshare_add(udev_device_get_syspath(parent));
|
||||||
udev_device_unref(device);
|
udev_device_unref(device);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ eeze_udev_syspath_get_devpath(const char *syspath)
|
||||||
if (!(device = _new_device(syspath)))
|
if (!(device = _new_device(syspath)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!(name = udev_device_get_property_value(device, "DEVNAME")))
|
if (!(name = udev_device_get_devnode(device)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
name = eina_stringshare_add(name);
|
name = eina_stringshare_add(name);
|
||||||
|
|
Loading…
Reference in New Issue