summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-09-23 09:57:20 -0400
committerChris Michael <cp.michael@samsung.com>2014-09-23 10:04:30 -0400
commite597f0b30b1dcf2e1bc5a0daa8398c146edca1c3 (patch)
tree36aea4cdae8b7aa00469f5017d50a6b8b88f3a12
parentd0dbd498dfa91e1e004406a3eeb72119cc4ce41c (diff)
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>
-rw-r--r--src/lib/eeze/eeze_udev_watch.c11
1 files changed, 11 insertions, 0 deletions
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,
235 goto error; 235 goto error;
236 break; 236 break;
237 237
238 case EEZE_UDEV_TYPE_DRM:
239 if ((!(test = udev_device_get_subsystem(device)))
240 || (strcmp(test, "drm")))
241 goto error;
242
243 break;
238 default: 244 default:
239 break; 245 break;
240 } 246 }
@@ -315,6 +321,11 @@ eeze_udev_watch_add(Eeze_Udev_Type type,
315 NULL); 321 NULL);
316 break; 322 break;
317 323
324 case EEZE_UDEV_TYPE_DRM:
325 udev_monitor_filter_add_match_subsystem_devtype(mon, "drm_minor",
326 NULL);
327 break;
328
318 default: 329 default:
319 break; 330 break;
320 } 331 }