Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/include/adt_tree.h

    r414 r745  
    2121#define ADT_TREE_H
    2222
    23 /* data structure used to build the tree */
    24 
    25 typedef struct _tree_node {
    26         struct _tree_node       *parent;
    27         struct _tree_node       **children;
    28         int                     num_children;
    29         char                    *key;
    30         void                    *data_p;
    31 } TREE_NODE;
    32 
    33 typedef struct _tree_root {
    34         TREE_NODE       *root;
    35 
    36         /* not used currently (is it needed?) */
    37         int             (*compare)(void* x, void *y);
    38 } SORTED_TREE;
     23struct sorted_tree;
    3924
    4025/*
     
    4429/* create a new tree, talloc_free() to throw it away */
    4530
    46 SORTED_TREE*  pathtree_init( void *data_p, int (cmp_fn)(void*, void*) );
     31struct sorted_tree *pathtree_init(void *data_p);
    4732
    4833/* add a new path component */
    4934
    50 WERROR        pathtree_add( SORTED_TREE *tree, const char *path, void *data_p );
     35WERROR pathtree_add(struct sorted_tree *tree, const char *path, void *data_p );
    5136
    5237/* search path */
    5338
    54 void*         pathtree_find( SORTED_TREE *tree, char *key );
     39void *pathtree_find(struct sorted_tree *tree, char *key );
    5540
    5641/* debug (print) functions */
    5742
    58 void          pathtree_print_keys( SORTED_TREE *tree, int debug );
     43void pathtree_print_keys(struct sorted_tree *tree, int debug );
    5944
    6045
Note: See TracChangeset for help on using the changeset viewer.