source: tools/tracereport/tree.h @ 734dfb1

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 734dfb1 was d3ff1fb, checked in by Perry Lorier <perry@…>, 16 years ago

Add trace summary

  • Property mode set to 100644
File size: 578 bytes
Line 
1#ifndef TREE_H
2#define TREE_H
3
4typedef struct tree_t tree_t;
5typedef int (*keycmp_t)(const void *a, const void *b);
6typedef void (*visitor_t)(const void *key, void *value, void *data);
7
8void tree_insert(struct tree_t **tree,void *key,keycmp_t cmp,void *value);
9void *tree_replace(struct tree_t **tree,void *key,keycmp_t cmp,void *value);
10void *tree_find(tree_t **tree,void *key,keycmp_t keycmp);
11void *tree_delete(tree_t **tree,void *key,keycmp_t keycmp);
12void tree_inorder(struct tree_t **tree,visitor_t visitor, void *data);
13
14void dump_tree(tree_t *tree,int level);
15
16
17
18#endif
Note: See TracBrowser for help on using the repository browser.