www.pudn.com > ccache.rar > list.h


/******************************************************************** 
	created:	2008/01/23 
	filename: 	list.h 
	author:		Lichuang 
                 
	purpose:     
*********************************************************************/ 
 
#ifndef __LIST_H__ 
#define __LIST_H__ 
 
#include "ccache.h" 
 
int list_findnode(int hashindex, const void* key, ccache_t* cache, cmpfun cmp); 
int list_insertnode(int hashindex, const void* key, const void* data, ccache_t* cache, cmpfun cmp, delfun fun); 
int list_updatenode(int hashindex, const void* key, const void* data, ccache_t* cache, cmpfun cmp); 
//int list_deletenode(int hashindex, const void* key, void* data, ccache_t* cache, cmpfun cmp); 
int list_deletenode(int hashindex, int index, ccache_t* cache, cmpfun cmp); 
void list_initnodes(ccache_t* cache); 
void list_visitnodes(ccache_t* cache, int hashindex, visitfun visit); 
 
#endif /* __LIST_H__ */