1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

s3: Make adt_tree data definitions private to adt_tree.c

This commit is contained in:
Volker Lendecke 2010-02-07 15:47:07 +01:00
parent 2260732084
commit 3ab78e31f0
2 changed files with 15 additions and 16 deletions

View File

@ -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

View File

@ -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);
};
/**************************************************************************
*************************************************************************/