linked_list.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include "linked_list.h"

Go to the source code of this file.

Functions

int cp_list_txlock (cp_list *list, int type)
int cp_list_txunlock (cp_list *list)
cp_listcp_list_create_internal (int mode, cp_compare_fn compare_fn, cp_copy_fn copy_fn, cp_destructor_fn item_destructor, int is_view)
cp_listcp_list_create ()
cp_listcp_list_create_nosync ()
cp_listcp_list_create_list (int mode, cp_compare_fn compare_fn, cp_copy_fn copy_fn, cp_destructor_fn item_destructor)
cp_listcp_list_create_view (int mode, cp_compare_fn compare_fn, cp_copy_fn copy_fn, cp_destructor_fn item_destructor, cp_lock *lock)
void cp_list_destroy_internal (cp_list *list, cp_destructor_fn fn, int mode)
void cp_list_destroy (cp_list *list)
void cp_list_destroy_by_option (cp_list *list, int option)
void cp_list_destroy_custom (cp_list *list, cp_destructor_fn fn)
long cp_list_item_count (cp_list *list)
void * cp_list_insert (cp_list *list, void *item)
void * cp_list_remove (cp_list *list, void *item)
void * cp_list_insert_after (cp_list *list, void *item, void *existing)
void * cp_list_insert_before (cp_list *list, void *item, void *existing)
void * cp_list_search (cp_list *list, void *item)
int cp_list_callback (cp_list *l, int(*item_action)(void *, void *), void *id)
void * cp_list_append (cp_list *list, void *item)
void * cp_list_get_head (cp_list *list)
void * cp_list_get_tail (cp_list *list)
void * cp_list_remove_head (cp_list *list)
void * cp_list_remove_tail (cp_list *list)
int cp_list_is_empty (cp_list *list)
int cp_list_lock_internal (cp_list *list, int mode)
int cp_list_unlock_internal (cp_list *list)
int cp_list_lock (cp_list *list, int type)
int cp_list_unlock (cp_list *list)
int cp_list_get_mode (cp_list *list)
int cp_list_set_mode (cp_list *list, int mode)
int cp_list_unset_mode (cp_list *list, int mode)
int cp_list_use_mempool (cp_list *list, cp_mempool *pool)
int cp_list_share_mempool (cp_list *list, cp_shared_mempool *pool)
cp_list_iteratorcp_list_create_iterator (cp_list *list, int type)
int cp_list_iterator_init (cp_list_iterator *iterator, cp_list *list, int type)
int cp_list_iterator_head (cp_list_iterator *iterator)
int cp_list_iterator_tail (cp_list_iterator *iterator)
int cp_list_iterator_init_tail (cp_list_iterator *iterator, cp_list *list, int type)
int cp_list_iterator_release (cp_list_iterator *iterator)
int cp_list_iterator_destroy (cp_list_iterator *iterator)
void * cp_list_iterator_next (cp_list_iterator *iterator)
void * cp_list_iterator_prev (cp_list_iterator *iterator)
void * cp_list_iterator_curr (cp_list_iterator *iterator)
void * cp_list_iterator_insert (cp_list_iterator *iterator, void *item)
void * cp_list_iterator_append (cp_list_iterator *iterator, void *item)
void * cp_list_iterator_remove (cp_list_iterator *iterator)


Detailed Description

Implementation of cp_list Collection with linked elements and cp_list_iterator.

The elements are stored in cp_list_entry objects.

Definition in file linked_list.c.


Generated on Mon Dec 5 23:00:22 2011 for cprops by  doxygen 1.4.7