list.h

socketmud/src/list.h · 640 B

From the archive MySQLMud.tar.gz

Download the archive   « Back to the archive contents

/* file: list.h
 *
 * Headerfile for a basic double-linked list
 */

#ifndef _SOCK_LIST_HEADER
#define _SOCK_LIST_HEADER

typedef struct List      SOCK_LIST;
typedef struct Iterator  ITERATOR;

SOCK_LIST      *AllocList          ( void );
ITERATOR  *AllocIterator      ( SOCK_LIST *pList);
void      *NextInList         ( ITERATOR *pIter );
void       AttachToList       ( void *pContent, SOCK_LIST *pList );
void       DetachFromList     ( void *pContent, SOCK_LIST *pList );
void       FreeIterator       ( ITERATOR *pIter );
void       FreeList           ( SOCK_LIST *pList );
int        SizeOfList         ( SOCK_LIST *pList );

#endif

Site Stats

Snippets: 1791
Codebases: 571