summaryrefslogtreecommitdiff
path: root/source3/include/adt_tree.h
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-09-03 16:38:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:03:30 -0500
commit99c909c2fa2b847e6f55f6f5706d5f46014f8b86 (patch)
tree3ace78f58bbb31bc6de9ecf12cb2d3f41c48b7d0 /source3/include/adt_tree.h
parent93954d6390370331731bda5fcf251dc0a796c744 (diff)
downloadsamba-99c909c2fa2b847e6f55f6f5706d5f46014f8b86.tar.gz
samba-99c909c2fa2b847e6f55f6f5706d5f46014f8b86.tar.bz2
samba-99c909c2fa2b847e6f55f6f5706d5f46014f8b86.zip
r9998: starting content for maintainers file
(This used to be commit 554c22faeefe6932a01aa7bd6e2861c5abd37510)
Diffstat (limited to 'source3/include/adt_tree.h')
-rw-r--r--source3/include/adt_tree.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/include/adt_tree.h b/source3/include/adt_tree.h
index 2fbfb55e88..51b6fb1c88 100644
--- a/source3/include/adt_tree.h
+++ b/source3/include/adt_tree.h
@@ -1,7 +1,7 @@
/*
* Unix SMB/CIFS implementation.
* Generic Abstract Data Types
- * Copyright (C) Gerald Carter 2002.
+ * Copyright (C) Gerald Carter 2002-2005.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -39,17 +39,18 @@ typedef struct _tree_node {
typedef struct _tree_root {
TREE_NODE *root;
+
+ /* not used currently (is it needed?) */
int (*compare)(void* x, void *y);
- void (*free_func)(void *p);
} SORTED_TREE;
/*
* API
*/
-/* initializer and desctrutor */
-SORTED_TREE* pathtree_init( void *data_p, int (cmp_fn)(void*, void*), void (free_fn)(void*) );
-void pathtree_destroy( SORTED_TREE *tree );
+/* create a new tree, talloc_free() to throw it away */
+
+SORTED_TREE* pathtree_init( void *data_p, int (cmp_fn)(void*, void*) );
/* add a new path component */