eina: add eina_list_data_idx().
authorMichal Jagiello <m.jagiello@samsung.com>
Wed, 25 Mar 2015 18:29:49 +0000 (19:29 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Wed, 25 Mar 2015 18:40:41 +0000 (19:40 +0100)
commit6b8824680888abc16e5e300ab75e383550670262
tree039d52bbd1dc2e9bd4c9d89e3e9f29a899ded8af
parentcf27288b505b5745493c01caa85b0103749c96d7
eina: add eina_list_data_idx().

Summary:
Now the developer has to iterate the whole list to find the
index of the first occurence of the data.
I see that it is possible to get the index of the item for
the genlist widget, but for the eina_list not.

With these APIs it will be easier to implement *index_get
functions for the rest of widgets which contain items (Elm_List,
Elm_Ctxpopup etc.).

These functions returns the index of the given data or node in the eina_list.

Reviewers: Hermet, cedric

Subscribers: raster, cedric

Differential Revision: https://phab.enlightenment.org/D2189

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/eina/eina_list.c
src/lib/eina/eina_list.h