summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_device.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-07-21 15:48:40 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-08-09 14:56:58 -0500
commit8ff59b2c55a58331625b6d997918e64eddc84b10 (patch)
tree85a9d9398281b1aad159517e8e9bdee2c0adc3b8 /src/lib/ecore_drm2/ecore_drm2_device.c
parentbe0af0ed00148c55e1eb519444ea48201677badb (diff)
ecore_drm2: Pass Ecore_Drm2_Device instead of fd to most functions
Intended to simplify the upcoming commit that merges device find and device open into a single function that returns a device. The fd is something callers shouldn't really need to get their hands on, right now there are still a few places where it's needed, but those will be gone soon too.
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_device.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index 3545d1a299..aa8917ce4e 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -885,6 +885,14 @@ ecore_drm2_device_prefer_shadow(Ecore_Drm2_Device *device)
885 return EINA_FALSE; 885 return EINA_FALSE;
886} 886}
887 887
888EAPI int
889ecore_drm2_device_fd_get(Ecore_Drm2_Device *device)
890{
891 EINA_SAFETY_ON_NULL_RETURN_VAL(device, -1);
892
893 return device->fd;
894}
895
888/* prevent crashing with old apps compiled against these functions */ 896/* prevent crashing with old apps compiled against these functions */
889EAPI void ecore_drm2_device_keyboard_cached_context_set(){}; 897EAPI void ecore_drm2_device_keyboard_cached_context_set(){};
890EAPI void ecore_drm2_device_keyboard_cached_keymap_set(){}; 898EAPI void ecore_drm2_device_keyboard_cached_keymap_set(){};