xref: /titanic_41/usr/src/cmd/fm/fmadm/common/fmadm.h (revision dd49f125507979bb2ab505a8daf2a46d1be27051)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30 
31 #include <fm/fmd_adm.h>
32 #include <stdio.h>
33 
34 #ifdef	__cplusplus
35 extern "C" {
36 #endif
37 
38 #define	FMADM_EXIT_SUCCESS	0
39 #define	FMADM_EXIT_ERROR	1
40 #define	FMADM_EXIT_USAGE	2
41 
42 extern void note(const char *format, ...);
43 extern void warn(const char *format, ...);
44 extern void die(const char *format, ...);
45 
46 extern int cmd_config(fmd_adm_t *, int, char *[]);
47 extern int cmd_faulty(fmd_adm_t *, int, char *[]);
48 extern int cmd_flush(fmd_adm_t *, int, char *[]);
49 extern int cmd_gc(fmd_adm_t *, int, char *[]);
50 extern int cmd_load(fmd_adm_t *, int, char *[]);
51 extern int cmd_repair(fmd_adm_t *, int, char *[]);
52 extern int cmd_repaired(fmd_adm_t *, int, char *[]);
53 extern int cmd_replaced(fmd_adm_t *, int, char *[]);
54 extern int cmd_acquit(fmd_adm_t *, int, char *[]);
55 extern int cmd_reset(fmd_adm_t *, int, char *[]);
56 extern int cmd_rotate(fmd_adm_t *, int, char *[]);
57 extern int cmd_unload(fmd_adm_t *, int, char *[]);
58 
59 #ifdef	__cplusplus
60 }
61 #endif
62 
63 #endif	/* _FMADM_H */
64