use inlist for wl surface list
authorMike Blumenkrantz <m.blumenkran@samsung.com>
Mon, 19 Aug 2013 02:31:24 +0000 (03:31 +0100)
committerMike Blumenkrantz <m.blumenkran@samsung.com>
Mon, 19 Aug 2013 02:31:24 +0000 (03:31 +0100)
src/bin/e_comp_wl.c
src/bin/e_comp_wl.h

index 94c2f49..c2ee2dc 100644 (file)
@@ -1621,7 +1621,7 @@ _e_comp_wl_cb_surface_create(struct wl_client *client, struct wl_resource *resou
                                   ews, _e_comp_wl_cb_surface_destroy);
 
    /* add this surface to the list of surfaces */
-   _e_wl_comp->surfaces = eina_list_append(_e_wl_comp->surfaces, ews);
+   _e_wl_comp->surfaces = eina_inlist_append(_e_wl_comp->surfaces, EINA_INLIST_GET(ews));
 }
 
 static void 
@@ -1679,7 +1679,7 @@ _e_comp_wl_cb_surface_destroy(struct wl_resource *resource)
      wl_resource_destroy(cb->wl.resource);
 
    /* remove this surface from the compositor's list of surfaces */
-   _e_wl_comp->surfaces = eina_list_remove(_e_wl_comp->surfaces, ews);
+   _e_wl_comp->surfaces = eina_inlist_remove(_e_wl_comp->surfaces, EINA_INLIST_GET(ews));
 
    /* free the allocated surface structure */
    E_FREE(ews);
index b58b91b..fbc0150 100644 (file)
@@ -278,6 +278,7 @@ struct _E_Wayland_Buffer_Reference
 
 struct _E_Wayland_Surface
 {
+   EINA_INLIST;
    struct 
      {
         struct wl_resource *surface;
@@ -482,7 +483,7 @@ struct _E_Wayland_Compositor
 
    E_Wayland_Input *input;
 
-   Eina_List *surfaces;
+   Eina_Inlist *surfaces;
    Eina_List *seats;
 
    struct wl_list outputs;