***/
typedef struct SilcTreeHeaderStruct SilcTreeHeader;
-/****f* silcutil/SilcTreeCompare
- *
- * SYNOPSIS
- *
- * typedef int (*SilcTreeCompare)(void *entry1, void *entry2,
- * void *context);
- *
- * DESCRIPTION
- *
- * Callback function of this type is called to compare values in the
- * tree. If the `entry1' is smaller, equal to or greater than `entry2'
- * this function must return less than, equal to, or greater than zero,
- * respectively.
- *
- ***/
-typedef int (*SilcTreeCompare)(void *entry1, void *entry2, void *context);
-
/****d* silcutil/SilcTreeType
*
* NAME
* SYNOPSIS
*
* SilcBool silc_tree_init(SilcTree tree, SilcTreeType type,
- * SilcTreeCompare compare, void *context,
+ * SilcCompare compare, void *context,
* SilcUInt16 offset, SilcBool duplicates);
*
* DESCRIPTION
__silc_tree_init(&(tree), type, compare, context, offset, d)
static inline
SilcBool __silc_tree_init(SilcTree *tree,
- SilcTreeType type, SilcTreeCompare compare,
+ SilcTreeType type, SilcCompare compare,
void *context, SilcUInt32 offset,
SilcBool duplicates)
{
* DESCRIPTION
*
* Add `entry' to the `tree'. Returns TRUE after the entry has been
- * added to the tree. If the `tree' does not allocate duplicate entries
+ * added to the tree. If the `tree' does not allow duplicate entries
* this will return FALSE if same value as `entry' is already in the
* tree.
*
* SYNOPSIS
*
* void *silc_tree_find_ext(SilcTree *tree, void *entry,
- * SilcTreeCompare compare, void *context);
+ * SilcCompare compare, void *context);
*
* DESCRIPTION
*