These are functions which monitor udev for events. More...
|EAPI Eeze_Udev_Watch *||eeze_udev_watch_add (Eeze_Udev_Type type, int event, Eeze_Udev_Watch_Cb cb, void *user_data)|
|Add a watch for a device type. More...|
|EAPI void *||eeze_udev_watch_del (Eeze_Udev_Watch *watch)|
|Deletes a watch. More...|
These are functions which monitor udev for events.
Eeze watches are simple: you specify a type of device to watch (or all devices), some events (or all) to watch for, a callback, and some data, and then udev watches those device types for events of the type you specified. Your callback is called with a syspath of the triggering device and the event that happened to the device, along with the data you associated with the watch and the watch object itself in case you want to stop the watch easily in a callback.
|EAPI Eeze_Udev_Watch* eeze_udev_watch_add||(||Eeze_Udev_Type||type,|
Add a watch for a device type.
|type||The Eeze_Udev_Type to watch|
|event||The events to watch; an OR list of Eeze_Udev_Event (ie (EEZE_UDEV_EVENT_ADD | EEZE_UDEV_EVENT_REMOVE)), or 0 for all events|
|cb||The function to call when the watch receives data of type Eeze_Udev_Watch_Cb|
|user_data||Data to pass to the callback function|
Eeze watches will monitor udev for changes of type(s)
event to devices of type
type. When these changes occur, the stringshared syspath of the device will be sent to function
func, along with the bitmask of the event type which can be detected through binary &.
Deletes a watch.
|watch||An Eeze_Udev_Watch object|
Deletes a watch, closing file descriptors and freeing related udev memory.
Referenced by ecore_drm_device_close().