This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch devs/devilhorns/apos
in repository efl.

View the commit online.

commit c7d2f9960de047f77af035c96473d6c8a90d8ccd
Author: Christopher Michael <devilho...@comcast.net>
AuthorDate: Wed Jan 17 07:48:21 2024 -0500

    ecore_drm2: Add API to return device fd
---
 src/lib/ecore_drm2/Ecore_Drm2.h        | 1 +
 src/lib/ecore_drm2/ecore_drm2_device.c | 8 +++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index 79012e88d6..9913186f18 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -85,6 +85,7 @@ EAPI Eina_Bool ecore_drm2_device_vt_set(Ecore_Drm2_Device *dev, int vt);
 EAPI int ecore_drm2_device_clock_id_get(Ecore_Drm2_Device *dev);
 EAPI void ecore_drm2_device_pointer_xy_get(Ecore_Drm2_Device *dev, int *x, int *y);
 EAPI void ecore_drm2_device_pointer_warp(Ecore_Drm2_Device *dev, int x, int y);
+EAPI int ecore_drm2_device_fd_get(Ecore_Drm2_Device *dev);
 
 /* Display API functions */
 EAPI char *ecore_drm2_display_name_get(Ecore_Drm2_Display *disp);
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index 799a2bb48c..2528336502 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -459,7 +459,6 @@ EAPI int
 ecore_drm2_device_clock_id_get(Ecore_Drm2_Device *dev)
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(dev, -1);
-
    return dev->clock_id;
 }
 
@@ -483,3 +482,10 @@ ecore_drm2_device_pointer_warp(Ecore_Drm2_Device *dev, int x, int y)
 
    elput_input_pointer_xy_set(dev->em, NULL, x, y);
 }
+
+EAPI int
+ecore_drm2_device_fd_get(Ecore_Drm2_Device *dev)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(dev, -1);
+   return dev->fd;
+}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to