Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

sf_sdlist.c File Reference

#include "sf_sdlist.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

int sf_sdlist_init (sfSDList *list, void(*destroy)(void *data))
int sf_sdlist_delete (sfSDList *list)
int sf_sdlist_insert_next (sfSDList *list, SDListItem *item, void *data, SDListItem *container)
int sf_sdlist_append (sfSDList *list, void *data, SDListItem *container)
int sf_sdlist_remove_next (sfSDList *list, SDListItem *item)
int sf_sdlist_remove (sfSDList *list, SDListItem *item)
void print_sdlist (sfSDList *a)


Function Documentation

void print_sdlist sfSDList a  ) 
 

Definition at line 223 of file sf_sdlist.c.

References sfSDList::head, _SDListItem::next, NULL, and sfSDList::size.

int sf_sdlist_append sfSDList list,
void *  data,
SDListItem container
 

Definition at line 114 of file sf_sdlist.c.

References sf_sdlist_insert_next(), and sfSDList::tail.

Referenced by mempool_alloc(), mempool_free(), and mempool_init().

int sf_sdlist_delete sfSDList list  ) 
 

Definition at line 54 of file sf_sdlist.c.

References sfSDList::head, NULL, and sf_sdlist_remove_next().

int sf_sdlist_init sfSDList list,
void(*)(void *data)  destroy
 

Definition at line 36 of file sf_sdlist.c.

References sfSDList::destroy, sfSDList::head, NULL, sfSDList::size, and sfSDList::tail.

Referenced by mempool_init().

int sf_sdlist_insert_next sfSDList list,
SDListItem item,
void *  data,
SDListItem container
 

Definition at line 76 of file sf_sdlist.c.

References _SDListItem::data, sfSDList::head, _SDListItem::next, NULL, _SDListItem::prev, sfSDList::size, and sfSDList::tail.

Referenced by sf_sdlist_append().

int sf_sdlist_remove sfSDList list,
SDListItem item
 

Definition at line 176 of file sf_sdlist.c.

References _SDListItem::data, _SDListItem::next, NULL, and _SDListItem::prev.

Referenced by mempool_alloc(), and mempool_free().

int sf_sdlist_remove_next sfSDList list,
SDListItem item
 

Definition at line 118 of file sf_sdlist.c.

References _SDListItem::data, sfSDList::destroy, sfSDList::head, _SDListItem::next, NULL, _SDListItem::prev, sfSDList::size, and sfSDList::tail.

Referenced by sf_sdlist_delete().


Generated on Sun May 14 14:51:26 2006 by  doxygen 1.4.2