diff options
author | Chris Michael <cp.michael@samsung.com> | 2014-09-23 12:51:23 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2014-09-23 13:01:11 -0400 |
commit | 34ba873497ad6626a541c67d4ecbae5610057d71 (patch) | |
tree | 45f981bf722ab1676efa2da6888799a0a273e417 /src/lib/eeze | |
parent | 0a6f26a106c9a2710435397156a77260cce430b2 (diff) | |
download | efl-34ba873497ad6626a541c67d4ecbae5610057d71.tar.gz |
eeze: Add eeze_udev_syspath_get_synum function
Summary: This adds an API declaration for getting the sysnum of a
device from the syspath. This is needed in the ecore-drm code to fetch
the id of a device.
@feature
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/eeze')
-rw-r--r-- | src/lib/eeze/Eeze.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/eeze/Eeze.h b/src/lib/eeze/Eeze.h index 65e90bd37c..a3bb9f8f04 100644 --- a/src/lib/eeze/Eeze.h +++ b/src/lib/eeze/Eeze.h @@ -558,6 +558,17 @@ EAPI Eina_Bool eeze_udev_syspath_is_touchpad(const char *syspath); * @since 1.7 */ EAPI Eina_Bool eeze_udev_syspath_is_joystick(const char *syspath); + +/** + * Get the sysnum value of a device from the /sys/ path. + * + * @param syspath The /sys/ path with or without the /sys/ + * @return A integer with the sysnum or -1 on failure + * + * @since 1.12 + */ +EAPI int eeze_udev_syspath_get_sysnum(const char *syspath); + /** * @} */ |