* eina: Patch from Albin Tonnerre that add a new accessor for Inlist container.

SVN revision: 40726
This commit is contained in:
Cedric BAIL 2009-05-18 14:49:57 +00:00
parent 16ae86eacb
commit c38a387a05
2 changed files with 2 additions and 0 deletions

View File

@ -8,3 +8,4 @@ Cedric Bail <cedric.bail@free.fr>
Peter "pfritz" Wehrfritz <peter.wehrfritz@web.de>
Arnaud de Turckheim "quarium" <quarium@gmail.com>
Alexandre "diaxen" Becoulet <diaxen@free.fr>
Albin Tonnerre <albin.tonnerre@gmail.com>

View File

@ -38,6 +38,7 @@ struct _Eina_Inlist
#define EINA_INLIST Eina_Inlist __in_list
#define EINA_INLIST_GET(Inlist) (&((Inlist)->__in_list))
#define EINA_INLIST_CONTAINER_GET(ptr, type) ((type *) ((Eina_Inlist *) ptr - offsetof(type, __in_list)))
EAPI Eina_Inlist * eina_inlist_append(Eina_Inlist *in_list, Eina_Inlist *in_item) EINA_ARG_NONNULL(2) EINA_WARN_UNUSED_RESULT;
EAPI Eina_Inlist * eina_inlist_prepend(Eina_Inlist *in_list, Eina_Inlist *in_item) EINA_ARG_NONNULL(2) EINA_WARN_UNUSED_RESULT;