aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-05-12 11:59:40 -0400
committerChris Michael <cp.michael@samsung.com>2015-05-12 12:07:31 -0400
commite577a108cf4d802d9a09fbe7ebb8ea9e02dac688 (patch)
tree6a7a1504e8c2e79f6a5d49e4ff83746b27d6546d /src/lib/ecore_drm
parentecore-drm: Fix ecore_drm_output_edid_get to return a hex string (diff)
downloadefl-e577a108cf4d802d9a09fbe7ebb8ea9e02dac688.tar.gz
ecore-drm: Add a 'name' field to Ecore_Drm_Event_Output
Summary: This adds a new 'name' field to the Ecore_Drm_Event_Output structure so that when we catch drm output events in E, we can compare this name to find an e_randr screen and update compositor's outputs. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm')
-rw-r--r--src/lib/ecore_drm/Ecore_Drm.h1
-rw-r--r--src/lib/ecore_drm/ecore_drm_output.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h
index f468b56c3f..0a8b7d4665 100644
--- a/src/lib/ecore_drm/Ecore_Drm.h
+++ b/src/lib/ecore_drm/Ecore_Drm.h
@@ -147,6 +147,7 @@ struct _Ecore_Drm_Event_Output
int transform;
const char *make;
const char *model;
+ const char *name; /** @since 1.15 */
Eina_Bool plug : 1;
};
diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c
index 9b571d0ad6..00f2ae48cf 100644
--- a/src/lib/ecore_drm/ecore_drm_output.c
+++ b/src/lib/ecore_drm/ecore_drm_output.c
@@ -30,6 +30,7 @@ _ecore_drm_output_event_free(void *data EINA_UNUSED, void *event)
eina_stringshare_del(e->make);
eina_stringshare_del(e->model);
+ eina_stringshare_del(e->name);
free(event);
}
@@ -51,6 +52,7 @@ _ecore_drm_output_event_send(const Ecore_Drm_Output *output, Eina_Bool plug)
e->subpixel_order = output->subpixel;
e->make = eina_stringshare_ref(output->make);
e->model = eina_stringshare_ref(output->model);
+ e->name = eina_stringshare_ref(output->name);
e->transform = 0;
ecore_event_add(ECORE_DRM_EVENT_OUTPUT, e,
_ecore_drm_output_event_free, NULL);