devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e577a108cf4d802d9a09fbe7ebb8ea9e02dac688

commit e577a108cf4d802d9a09fbe7ebb8ea9e02dac688
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue May 12 11:59:40 2015 -0400

    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.mich...@samsung.com>
---
 src/lib/ecore_drm/Ecore_Drm.h        | 1 +
 src/lib/ecore_drm/ecore_drm_output.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h
index f468b56..0a8b7d4 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 9b571d0..00f2ae4 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);

-- 


Reply via email to