devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e597f0b30b1dcf2e1bc5a0daa8398c146edca1c3

commit e597f0b30b1dcf2e1bc5a0daa8398c146edca1c3
Author: Chris Michael <[email protected]>
Date:   Tue Sep 23 09:57:20 2014 -0400

    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 <[email protected]>
---
 src/lib/eeze/eeze_udev_watch.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/lib/eeze/eeze_udev_watch.c b/src/lib/eeze/eeze_udev_watch.c
index 6ff9e85..c51f396 100644
--- a/src/lib/eeze/eeze_udev_watch.c
+++ b/src/lib/eeze/eeze_udev_watch.c
@@ -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;
      }

-- 


Reply via email to