diff options
author | Volker Lendecke <vl@samba.org> | 2010-02-07 15:45:42 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-02-13 13:26:11 +0100 |
commit | 22607320841100148dbaed17983be7703d2172b1 (patch) | |
tree | db61493e040208160d03295966a25f099429ea32 /source3/include | |
parent | ceebed6ce19a5821b01a30f6ebc47871b27b413a (diff) | |
download | samba-22607320841100148dbaed17983be7703d2172b1.tar.gz samba-22607320841100148dbaed17983be7703d2172b1.tar.bz2 samba-22607320841100148dbaed17983be7703d2172b1.zip |
s3: SORTED_TREE -> struct sorted_tree
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/adt_tree.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/include/adt_tree.h b/source3/include/adt_tree.h index 08c7791802..b9f935ebdc 100644 --- a/source3/include/adt_tree.h +++ b/source3/include/adt_tree.h @@ -30,12 +30,12 @@ struct tree_node { void *data_p; }; -typedef struct _tree_root { +struct sorted_tree { struct tree_node *root; /* not used currently (is it needed?) */ int (*compare)(void* x, void *y); -} SORTED_TREE; +}; /* * API @@ -43,19 +43,19 @@ typedef struct _tree_root { /* create a new tree, talloc_free() to throw it away */ -SORTED_TREE* pathtree_init( void *data_p, int (cmp_fn)(void*, void*) ); +struct sorted_tree *pathtree_init( void *data_p, int (cmp_fn)(void*, void*) ); /* add a new path component */ -WERROR pathtree_add( SORTED_TREE *tree, const char *path, void *data_p ); +WERROR pathtree_add(struct sorted_tree *tree, const char *path, void *data_p ); /* search path */ -void* pathtree_find( SORTED_TREE *tree, char *key ); +void *pathtree_find(struct sorted_tree *tree, char *key ); /* debug (print) functions */ -void pathtree_print_keys( SORTED_TREE *tree, int debug ); +void pathtree_print_keys(struct sorted_tree *tree, int debug ); #endif |