ecore-drm: Add a 'name' field to Ecore_Drm_Event_Output
authorChris Michael <cp.michael@samsung.com>
Tue, 12 May 2015 15:59:40 +0000 (11:59 -0400)
committerChris Michael <cp.michael@samsung.com>
Tue, 12 May 2015 16:07:31 +0000 (12:07 -0400)
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>
src/lib/ecore_drm/Ecore_Drm.h
src/lib/ecore_drm/ecore_drm_output.c

index f468b56..0a8b7d4 100644 (file)
@@ -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;
 };
 
index 9b571d0..00f2ae4 100644 (file)
@@ -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);