These are functions which find/supplement lists of devices. More...
Functions | |
EAPI Eina_List * | eeze_udev_find_similar_from_syspath (const char *syspath) |
Returns a stringshared list of all syspaths that are (or should be) the same device as the device pointed at by syspath . More... | |
EAPI Eina_List * | eeze_udev_find_unlisted_similar (Eina_List *list) |
Updates a list of all syspaths that are (or should be) the same device. More... | |
EAPI Eina_List * | eeze_udev_find_by_sysattr (const char *sysattr, const char *value) |
Find a list of devices by a sysattr (and, optionally, a value of that sysattr). More... | |
EAPI Eina_List * | eeze_udev_find_by_type (Eeze_Udev_Type type, const char *name) |
Find devices using an Eeze_Udev_Type and/or a name. More... | |
EAPI Eina_List * | eeze_udev_find_by_filter (const char *subsystem, const char *type, const char *name) |
A more advanced find, allows finds using udev properties. More... | |
Detailed Description
These are functions which find/supplement lists of devices.
Function Documentation
EAPI Eina_List* eeze_udev_find_by_filter | ( | const char * | subsystem, |
const char * | type, | ||
const char * | name | ||
) |
A more advanced find, allows finds using udev properties.
- Parameters
-
subsystem The udev subsystem to filter by, or NULL
type "ID_INPUT_KEY", "ID_INPUT_MOUSE", "ID_INPUT_TOUCHPAD", NULL
, etcname A filter for the device name, or NULL
- Returns
- A stringshared Eina_List* of matched devices or
NULL
on failure
Return a list of syspaths (/sys/$syspath) for matching udev devices. Requires at least one filter.
EAPI Eina_List* eeze_udev_find_by_sysattr | ( | const char * | sysattr, |
const char * | value | ||
) |
Find a list of devices by a sysattr (and, optionally, a value of that sysattr).
- Parameters
-
sysattr The attribute to find value Optional: the value that the attribute should have
- Returns
- A stringshared list of the devices found with the attribute
EAPI Eina_List* eeze_udev_find_by_type | ( | Eeze_Udev_Type | type, |
const char * | name | ||
) |
Find devices using an Eeze_Udev_Type and/or a name.
- Parameters
-
type An Eeze_Udev_Type or 0 name A filter for the device name or NULL
- Returns
- A stringshared Eina_List of matched devices or
NULL
on failure
Return a list of syspaths (/sys/$syspath) for matching udev devices.
References EEZE_UDEV_TYPE_BLUETOOTH, EEZE_UDEV_TYPE_DRIVE_CDROM, EEZE_UDEV_TYPE_DRIVE_INTERNAL, EEZE_UDEV_TYPE_DRIVE_MOUNTABLE, EEZE_UDEV_TYPE_DRIVE_REMOVABLE, EEZE_UDEV_TYPE_IS_IT_HOT_OR_IS_IT_COLD_SENSOR, EEZE_UDEV_TYPE_JOYSTICK, EEZE_UDEV_TYPE_KEYBOARD, EEZE_UDEV_TYPE_MOUSE, EEZE_UDEV_TYPE_NET, EEZE_UDEV_TYPE_NONE, EEZE_UDEV_TYPE_POWER_AC, EEZE_UDEV_TYPE_POWER_BAT, EEZE_UDEV_TYPE_TOUCHPAD, and EEZE_UDEV_TYPE_V4L.
EAPI Eina_List* eeze_udev_find_similar_from_syspath | ( | const char * | syspath | ) |
Returns a stringshared list of all syspaths that are (or should be) the same device as the device pointed at by syspath
.
- Parameters
-
syspath The syspath of the device to find matches for
- Returns
- All devices which are the same as the one passed
EAPI Eina_List* eeze_udev_find_unlisted_similar | ( | Eina_List * | list | ) |
Updates a list of all syspaths that are (or should be) the same device.
- Parameters
-
list The list of devices to update
- Returns
- The updated list
This function will update list
to include all devices matching devices with syspaths currently stored in list
. All strings are stringshared.
- Note
- This is an expensive call, do not use it unless you must.