discomfitor pushed a commit to branch master.
commit 71b387deea7048fbc27af1a38048dcc7c7923996
Author: Mike Blumenkrantz <[email protected]>
Date: Mon Aug 19 03:31:24 2013 +0100
use inlist for wl surface list
---
src/bin/e_comp_wl.c | 4 ++--
src/bin/e_comp_wl.h | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 94c2f49..c2ee2dc 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -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);
diff --git a/src/bin/e_comp_wl.h b/src/bin/e_comp_wl.h
index b58b91b..fbc0150 100644
--- a/src/bin/e_comp_wl.h
+++ b/src/bin/e_comp_wl.h
@@ -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;
--
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk