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 3378b099e5fa11a2629a91c17a1bba98a6222c8d
Author: Christopher Michael <[email protected]>
AuthorDate: Wed Aug 27 16:08:01 2025 -0500
ecore_drm2: Add event structure to use for when a display gets
added/removed
---
src/lib/ecore_drm2/Ecore_Drm2.h | 14 ++++++++++++++
src/lib/ecore_drm2/ecore_drm2.c | 3 +++
2 files changed, 17 insertions(+)
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index 466328848d..447212d376 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -76,8 +76,22 @@ typedef struct _Ecore_Drm2_Event_Activate
Eina_Bool active : 1;
} Ecore_Drm2_Event_Activate;
+/* public structure to represent an event for display state changes */
+typedef struct _Ecore_Drm2_Event_Display_Changed
+{
+ unsigned int id;
+ int x, y, w, h;
+ int phys_width, phys_height;
+ unsigned int refresh, scale;
+ int subpixel, transform;
+ const char *make, *model, *name;
+ Eina_Bool connected : 1;
+ Eina_Bool enabled : 1;
+} Ecore_Drm2_Event_Display_Changed;
+
/* API events */
EAPI extern int ECORE_DRM2_EVENT_ACTIVATE;
+EAPI extern int ECORE_DRM2_EVENT_DISPLAY_CHANGED;
/* API functions */
EAPI int ecore_drm2_init(void);
diff --git a/src/lib/ecore_drm2/ecore_drm2.c b/src/lib/ecore_drm2/ecore_drm2.c
index b435c63733..348e63b37b 100644
--- a/src/lib/ecore_drm2/ecore_drm2.c
+++ b/src/lib/ecore_drm2/ecore_drm2.c
@@ -48,6 +48,7 @@ int (*sym_drmModeSetPlane)(int fd, uint32_t plane_id, uint32_t crtc_id, uint32_t
bool (*sym_drmModeFormatModifierBlobIterNext)(const drmModePropertyBlobRes *blob, drmModeFormatModifierIterator *iter);
EAPI int ECORE_DRM2_EVENT_ACTIVATE = -1;
+EAPI int ECORE_DRM2_EVENT_DISPLAY_CHANGED = -1;
/* local static functions */
static Eina_Bool
@@ -170,6 +171,7 @@ ecore_drm2_init(void)
}
ECORE_DRM2_EVENT_ACTIVATE = ecore_event_type_new();
+ ECORE_DRM2_EVENT_DISPLAY_CHANGED = ecore_event_type_new();
if (!_ecore_drm2_link()) goto link_err;
@@ -204,6 +206,7 @@ ecore_drm2_shutdown(void)
if (_drm_lib) dlclose(_drm_lib);
ECORE_DRM2_EVENT_ACTIVATE = -1;
+ ECORE_DRM2_EVENT_DISPLAY_CHANGED = -1;
eina_log_domain_unregister(_ecore_drm2_log_dom);
_ecore_drm2_log_dom = -1;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.