xref: /illumos-gate/usr/src/cmd/fm/fmadm/common/fmadm.h (revision 2a8bcb4efb45d99ac41c94a75c396b362c414f7f)
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 (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef	_FMADM_H
27 #define	_FMADM_H
28 
29 #include <fm/fmd_adm.h>
30 #include <stdio.h>
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 #define	FMADM_EXIT_SUCCESS	0
37 #define	FMADM_EXIT_ERROR	1
38 #define	FMADM_EXIT_USAGE	2
39 
40 extern void note(const char *format, ...);
41 extern void warn(const char *format, ...);
42 extern void die(const char *format, ...);
43 
44 extern int cmd_config(fmd_adm_t *, int, char *[]);
45 extern int cmd_faulty(fmd_adm_t *, int, char *[]);
46 extern int cmd_flush(fmd_adm_t *, int, char *[]);
47 extern int cmd_gc(fmd_adm_t *, int, char *[]);
48 extern int cmd_load(fmd_adm_t *, int, char *[]);
49 extern int cmd_repair(fmd_adm_t *, int, char *[]);
50 extern int cmd_repaired(fmd_adm_t *, int, char *[]);
51 extern int cmd_replaced(fmd_adm_t *, int, char *[]);
52 extern int cmd_acquit(fmd_adm_t *, int, char *[]);
53 extern int cmd_reset(fmd_adm_t *, int, char *[]);
54 extern int cmd_rotate(fmd_adm_t *, int, char *[]);
55 extern int cmd_unload(fmd_adm_t *, int, char *[]);
56 
57 #ifdef	__cplusplus
58 }
59 #endif
60 
61 #endif	/* _FMADM_H */
62