45 # include <libltdl/lt__glibc.h>
46 # include <libltdl/lt_system.h>
53 #if defined(__cplusplus)
62 typedef void * SListCallback (
SList *item,
void *userdata);
63 typedef int SListCompare (
const SList *item1,
const SList *item2,
69 LT_SCOPE
SList *slist_delete (
SList *
slist,
void (*delete_fct) (
void *item));
70 LT_SCOPE
SList *slist_remove (
SList **phead, SListCallback *find,
73 LT_SCOPE
SList *slist_sort (
SList *slist, SListCompare *compare,
77 LT_SCOPE
SList *slist_nth (
SList *slist,
size_t n);
78 LT_SCOPE
void * slist_find (
SList *slist, SListCallback *find,
80 LT_SCOPE
size_t slist_length (
SList *slist);
82 LT_SCOPE
void * slist_foreach (
SList *slist, SListCallback *
foreach,
85 LT_SCOPE
SList *slist_box (
const void *userdata);
86 LT_SCOPE
void * slist_unbox (
SList *item);
88 #if defined(__cplusplus)