46 # include <libltdl/lt__glibc.h>
47 # include <libltdl/lt_system.h>
54 #if defined __cplusplus
63 typedef void * SListCallback (
SList *item,
void *userdata);
64 typedef int SListCompare (
const SList *item1,
const SList *item2,
70 LT_SCOPE
SList *slist_delete (
SList *
slist,
void (*delete_fct) (
void *item));
71 LT_SCOPE
SList *slist_remove (
SList **phead, SListCallback *find,
74 LT_SCOPE
SList *slist_sort (
SList *slist, SListCompare *compare,
78 LT_SCOPE
SList *slist_nth (
SList *slist,
size_t n);
79 LT_SCOPE
void * slist_find (
SList *slist, SListCallback *find,
81 LT_SCOPE
size_t slist_length (
SList *slist);
83 LT_SCOPE
void * slist_foreach (
SList *slist, SListCallback *
foreach,
86 LT_SCOPE
SList *slist_box (
const void *userdata);
87 LT_SCOPE
void * slist_unbox (
SList *item);
89 #if defined __cplusplus