summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-07 15:47:07 +0100
committerVolker Lendecke <vl@samba.org>2010-02-13 13:26:11 +0100
commit3ab78e31f095639a77ea3c086e765d91424fa6fa (patch)
tree78019f93643788d30302bff09f9934ea26f6faed /source3
parent22607320841100148dbaed17983be7703d2172b1 (diff)
downloadsamba-3ab78e31f095639a77ea3c086e765d91424fa6fa.tar.gz
samba-3ab78e31f095639a77ea3c086e765d91424fa6fa.tar.bz2
samba-3ab78e31f095639a77ea3c086e765d91424fa6fa.zip
s3: Make adt_tree data definitions private to adt_tree.c
Diffstat (limited to 'source3')
-rw-r--r--source3/include/adt_tree.h17
-rw-r--r--source3/lib/adt_tree.c14
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);
+};
/**************************************************************************
*************************************************************************/