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 cfb8cabb3b2dfabff9735ac594e27652b79bc071
Author: Christopher Michael <devilho...@comcast.net>
AuthorDate: Wed Jan 17 07:26:13 2024 -0500

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

diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index 0261484989..ce89c76554 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -82,6 +82,7 @@ EAPI void ecore_drm2_device_pointer_max_set(Ecore_Drm2_Device *dev, int w, int h
 EAPI Eina_Bool ecore_drm2_device_pointer_rotation_set(Ecore_Drm2_Device *dev, int rotation);
 EAPI void ecore_drm2_device_calibrate(Ecore_Drm2_Device *dev, int w, int h);
 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);
 
 /* 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 d6a4bd67d4..a36e7c8c76 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -454,3 +454,11 @@ ecore_drm2_device_vt_set(Ecore_Drm2_Device *dev, int vt)
    EINA_SAFETY_ON_NULL_RETURN_VAL(dev->em, EINA_FALSE);
    return elput_manager_vt_set(dev->em, vt);
 }
+
+EAPI int
+ecore_drm2_device_clock_id_get(Ecore_Drm2_Device *dev)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(dev, -1);
+
+   return dev->clock_id;
+}

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

Reply via email to