00001 #ifndef SPLAYTREE_TYPES_H 00002 #define SPLAYTREE_TYPES_H 00003 00004 typedef struct SPLAYNODE_T { 00005 int type; 00006 struct SPLAYNODE_T * left, * right; 00007 void * data; 00008 void * key; 00009 } splaynode_t; 00010 00011 typedef struct SPLAYTREE_T { 00012 splaynode_t * root; 00013 int (*compare)(); 00014 void * (*copy_key)(); 00015 void (*free_key)(); 00016 } splaytree_t; 00017 #endif