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