xref: /illumos-gate/usr/src/cmd/fm/eversholt/common/check.h (revision ddb365bfc9e868ad24ccdcb0dc91af18b10df082)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  *
26  * check.h -- public definitions for check module
27  *
28  * the checking functions are called by the tree_X() functions
29  * in tree.c.  this header file exports the checking functions
30  * from check.c so that tree.c can see them.  nobody else uses them.
31  */
32 
33 #ifndef	_ESC_COMMON_CHECK_H
34 #define	_ESC_COMMON_CHECK_H
35 
36 #ifdef	__cplusplus
37 extern "C" {
38 #endif
39 
40 void check_init(void);
41 void check_fini(void);
42 void check_report_combination(struct node *np);
43 void check_arrow(struct node *np);
44 void check_stmt_required_properties(struct node *stmtnp);
45 void check_stmt_allowed_properties(enum nodetype t,
46     struct node *nvpairnp, struct lut *lutp);
47 void check_propnames(enum nodetype t, struct node *np, int from, int to);
48 void check_propscope(struct node *np);
49 void check_proplists(enum nodetype t, struct node *np);
50 void check_upset_engine(struct node *lhs, struct node *rhs, void *arg);
51 void check_refcount(struct node *lhs, struct node *rhs, void *arg);
52 int check_cycle_level(long long val);
53 void check_cycle(struct node *lhs, struct node *rhs, void *arg);
54 void check_type_iterator(struct node *np);
55 void check_name_iterator(struct node *np);
56 void check_func(struct node *np);
57 void check_expr(struct node *np);
58 void check_event(struct node *np);
59 void check_required_props(struct node *lhs, struct node *rhs, void *arg);
60 
61 #ifdef	__cplusplus
62 }
63 #endif
64 
65 #endif	/* _ESC_COMMON_CHECK_H */
66