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:
parent
2260732084
commit
3ab78e31f0
@ -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
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
/**************************************************************************
|
||||
*************************************************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user