summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
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);
+};
/**************************************************************************
*************************************************************************/