eeze: Add ability to get syspath from a watch for DRM

Summary: This adds the EEZE_UDEV_TYPE_DRM to the switch for
_get_syspath_from_watch.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-09-23 09:57:20 -04:00
parent d0dbd498df
commit e597f0b30b
1 changed files with 11 additions and 0 deletions

View File

@ -235,6 +235,12 @@ _get_syspath_from_watch(void *data,
goto error;
break;
case EEZE_UDEV_TYPE_DRM:
if ((!(test = udev_device_get_subsystem(device)))
|| (strcmp(test, "drm")))
goto error;
break;
default:
break;
}
@ -315,6 +321,11 @@ eeze_udev_watch_add(Eeze_Udev_Type type,
NULL);
break;
case EEZE_UDEV_TYPE_DRM:
udev_monitor_filter_add_match_subsystem_devtype(mon, "drm_minor",
NULL);
break;
default:
break;
}