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 b73e7c651193d80d52870af7254ad5c71ad3bf8c
Author: Christopher Michael <devilho...@comcast.net>
AuthorDate: Thu Sep 4 10:12:15 2025 -0500

    ecore_drm2: Add API to return crtc id
---
 src/lib/ecore_drm2/Ecore_Drm2.h       | 1 +
 src/lib/ecore_drm2/ecore_drm2_crtcs.c | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index 1c0fbcbc2c..47c2187681 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -174,6 +174,7 @@ EAPI void ecore_drm2_display_gamma_set(Ecore_Drm2_Display *disp, uint16_t size,
 
 /* Crtc API functions */
 EAPI void ecore_drm2_crtc_geometry_get(Ecore_Drm2_Crtc *crtc, int *x, int *y, int *w, int *h);
+EAPI uint32_t ecore_drm2_crtc_id_get(Ecore_Drm2_Crtc *crtc);
 
 /* Framebuffer API functions */
 EAPI Ecore_Drm2_Fb *ecore_drm2_fb_create(Ecore_Drm2_Device *dev, int width, int height, int depth, int bpp, unsigned int format, void *bo);
diff --git a/src/lib/ecore_drm2/ecore_drm2_crtcs.c b/src/lib/ecore_drm2/ecore_drm2_crtcs.c
index 9d15230807..c32b715251 100644
--- a/src/lib/ecore_drm2/ecore_drm2_crtcs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_crtcs.c
@@ -388,3 +388,10 @@ ecore_drm2_crtc_geometry_get(Ecore_Drm2_Crtc *crtc, int *x, int *y, int *w, int
 
    sym_drmModeFreeCrtc(cptr);
 }
+
+EAPI uint32_t
+ecore_drm2_crtc_id_get(Ecore_Drm2_Crtc *crtc)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(crtc, 0);
+   return crtc->id;
+}

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

Reply via email to