xref: /onnv-gate/usr/src/cmd/mdb/common/modules/genunix/avl.h (revision 789:b348f31ed315)
1*789Sahrens /*
2*789Sahrens  * CDDL HEADER START
3*789Sahrens  *
4*789Sahrens  * The contents of this file are subject to the terms of the
5*789Sahrens  * Common Development and Distribution License, Version 1.0 only
6*789Sahrens  * (the "License").  You may not use this file except in compliance
7*789Sahrens  * with the License.
8*789Sahrens  *
9*789Sahrens  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*789Sahrens  * or http://www.opensolaris.org/os/licensing.
11*789Sahrens  * See the License for the specific language governing permissions
12*789Sahrens  * and limitations under the License.
13*789Sahrens  *
14*789Sahrens  * When distributing Covered Code, include this CDDL HEADER in each
15*789Sahrens  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*789Sahrens  * If applicable, add the following below this CDDL HEADER, with the
17*789Sahrens  * fields enclosed by brackets "[]" replaced with your own identifying
18*789Sahrens  * information: Portions Copyright [yyyy] [name of copyright owner]
19*789Sahrens  *
20*789Sahrens  * CDDL HEADER END
21*789Sahrens  */
22*789Sahrens /*
23*789Sahrens  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*789Sahrens  * Use is subject to license terms.
25*789Sahrens  */
26*789Sahrens 
27*789Sahrens #ifndef	_MDB_AVL_H
28*789Sahrens #define	_MDB_AVL_H
29*789Sahrens 
30*789Sahrens #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*789Sahrens 
32*789Sahrens #ifdef	__cplusplus
33*789Sahrens extern "C" {
34*789Sahrens #endif
35*789Sahrens 
36*789Sahrens #define	AVL_WALK_NAME	"avl"
37*789Sahrens #define	AVL_WALK_DESC	"given any avl_tree_t *, forward walk all " \
38*789Sahrens 			"entries in tree"
39*789Sahrens 
40*789Sahrens extern int avl_walk_init(mdb_walk_state_t *);
41*789Sahrens extern int avl_walk_step(mdb_walk_state_t *);
42*789Sahrens extern void avl_walk_fini(mdb_walk_state_t *wsp);
43*789Sahrens 
44*789Sahrens #ifdef	__cplusplus
45*789Sahrens }
46*789Sahrens #endif
47*789Sahrens 
48*789Sahrens #endif	/* _MDB_AVL_H */
49