diff options
author | Volker Lendecke <vl@samba.org> | 2010-02-07 15:47:07 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-02-13 13:26:11 +0100 |
commit | 3ab78e31f095639a77ea3c086e765d91424fa6fa (patch) | |
tree | 78019f93643788d30302bff09f9934ea26f6faed | |
parent | 22607320841100148dbaed17983be7703d2172b1 (diff) | |
download | samba-3ab78e31f095639a77ea3c086e765d91424fa6fa.tar.gz samba-3ab78e31f095639a77ea3c086e765d91424fa6fa.tar.bz2 samba-3ab78e31f095639a77ea3c086e765d91424fa6fa.zip |
s3: Make adt_tree data definitions private to adt_tree.c
-rw-r--r-- | source3/include/adt_tree.h | 17 | ||||
-rw-r--r-- | source3/lib/adt_tree.c | 14 |
2 files changed, 15 insertions, 16 deletions
diff --git a/source3/include/adt_tree.h b/source3/include/adt_tree.h index b9f935ebdc..b910b7cbbc 100644 --- a/source3/include/adt_tree.h +++ b/source3/include/adt_tree.h @@ -20,22 +20,7 @@ #ifndef ADT_TREE_H #define ADT_TREE_H -/* data structure used to build the tree */ - -struct tree_node { - struct tree_node *parent; - struct tree_node **children; - int num_children; - char *key; - void *data_p; -}; - -struct sorted_tree { - struct tree_node *root; - - /* not used currently (is it needed?) */ - int (*compare)(void* x, void *y); -}; +struct sorted_tree; /* * API diff --git a/source3/lib/adt_tree.c b/source3/lib/adt_tree.c index b184394614..343173b4f4 100644 --- a/source3/lib/adt_tree.c +++ b/source3/lib/adt_tree.c @@ -20,6 +20,20 @@ #include "includes.h" #include "adt_tree.h" +struct tree_node { + struct tree_node *parent; + struct tree_node **children; + int num_children; + char *key; + void *data_p; +}; + +struct sorted_tree { + struct tree_node *root; + + /* not used currently (is it needed?) */ + int (*compare)(void* x, void *y); +}; /************************************************************************** *************************************************************************/ |